text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">I've been porting over some debugging code into Deno 1.0.0 and discovered that the file path in stack traces can be suppressed under certain scenarios.</p> <p dir="auto">I have simplified the test scenario to the following code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Place this code in /tmp/deno_test as path_test.ts // % cd /tmp/deno_test // % deno run path_test.ts // Exception contains full path // % cd /tmp // % deno run deno_test/path_test.ts // Exception does not contain full path!! import * as path from &quot;https://deno.land/std/path/mod.ts&quot;; function f1(){ throw new Error(&quot;damn&quot;) } try { f1() }catch(e){ console.log(e) }"><pre class="notranslate"><span class="pl-c">// Place this code in /tmp/deno_test as path_test.ts</span> <span class="pl-c">// % cd /tmp/deno_test</span> <span class="pl-c">// % deno run path_test.ts</span> <span class="pl-c">// Exception contains full path</span> <span class="pl-c">// % cd /tmp</span> <span class="pl-c">// % deno run deno_test/path_test.ts</span> <span class="pl-c">// Exception does not contain full path!!</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">path</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/std/path/mod.ts"</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">f1</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">Error</span><span class="pl-kos">(</span><span class="pl-s">"damn"</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-en">f1</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-k">catch</span><span class="pl-kos">(</span><span class="pl-s1">e</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">e</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Here the output from my Ubuntu 20.04 with Deno 1.0.0:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/tmp/deno_test$ deno run path_test.ts Compile file:///tmp/deno_test/path_test.ts Error: damn at f1 (file:///tmp/deno_test/path_test.ts:11:22) at file:///tmp/deno_test/path_test.ts:14:3 /tmp/deno_test$ cd ../ /tmp$ deno run deno_test/path_test.ts Compile file:///tmp/deno_test/path_test.ts Error: damn at f1 (path_test.ts:11:22) at path_test.ts:14:3"><pre class="notranslate">/tmp/deno_test$ deno run path_test.ts Compile file:///tmp/deno_test/path_test.ts Error: damn at f1 (file:///tmp/deno_test/path_test.ts:11:22) at file:///tmp/deno_test/path_test.ts:14:3 /tmp/deno_test$ <span class="pl-c1">cd</span> ../ /tmp$ deno run deno_test/path_test.ts Compile file:///tmp/deno_test/path_test.ts Error: damn at f1 (path_test.ts:11:22) at path_test.ts:14:3</pre></div> <p dir="auto">When the line <code class="notranslate">import * as path from "https://deno.land/std/path/mod.ts"</code> is commented out the issue goes away on my machine.</p>
<p dir="auto">When I import any deno module (for ex, the parse module), the error message show only the file name instead of the full path of the source file. That avoid the vscode from creating a link where I can click and jump to the line of the error.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26843533/81490998-0e702380-925f-11ea-8528-ff8f556ea56f.png"><img src="https://user-images.githubusercontent.com/26843533/81490998-0e702380-925f-11ea-8528-ff8f556ea56f.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Without importing anything, the full path of the file is shown as expected.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26843533/81491011-33fd2d00-925f-11ea-9966-33e6a082222a.png"><img src="https://user-images.githubusercontent.com/26843533/81491011-33fd2d00-925f-11ea-9966-33e6a082222a.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">I successfully created a ground foliage system using instanced buffer geometry. Setting up the instancing wasn’t nearly as bad as I though it would be, however one aspect was just downright tedious.</p> <p dir="auto">What I’m referring to is recreating the Lambert shader manually and then adding in the custom orientation / position adjustments. This was necessary for the foliage material to respect scene lighting / shadows etc. Rebuilding the Lambert Material into a ShaderMaterial was not fun.</p> <p dir="auto">Would it not be easier to have a few for example: ShaderChunks[‘Instancing’]? If I’m not overlooking anything, it would just require a few chunks, an instancing_pars chunk which could contain the instancing attributes and applyQuaternionToVector function (from three.js dev instancing examples), and one right after the ‘begin_vertex’ chunk to alter the vec3 transformed variable using the function.</p> <p dir="auto">Would this not be much more user friendly? If a user wants to take advantage of instancing (who wouldn't), they simply have to set instancing: true on the material and of course set up the needed buffer attributes. They would no longer have to manually reconstruct an entire materials shader.</p> <p dir="auto">I've seen more complex examples of trying to ease usage of instancing, perhaps we should start with something a little more simple like this?</p> <p dir="auto">I’d be more than happy to make a PR, if this is desirable.</p>
<p dir="auto">Hello,</p> <p dir="auto">i am interested in creating a HUD in webgl. I know html can be used to overlay over the scene, but having the UI accelerated on the card can have some mighty advantages, mostly integration with the rest of the app, 3D transforms/transparency and shader special effects.</p> <p dir="auto">I was wondering if there was a way to dual render a scene and blend/overlay it. For example to render a a first time with a perspective camera, and then render a second HUD layer on top with an orthographic camera and blend it with the first.</p> <p dir="auto">thanks</p>
0
<p dir="auto">Hi,</p> <p dir="auto">I've just noticed a dangerous "silent overflow" in Numpy when used in Jupyter notebooks. I understand there were other discussions about similar silent overflows, but this has really put me on the wrong foot, and I believe there must be millions of calculations out there silently failing, and thus giving wrong results.</p> <p dir="auto">Here is a function that stretches the values of an array between a given minimum and maximum:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np from scipy import ndimage def stretcher(a, new_min, new_max): old_min = ndimage.minimum(a) old_max = ndimage.maximum(a) if old_min == old_max: return a - old_min + new_min return new_min + (a - old_min) * (new_max - new_min) / (old_max - old_min)"><pre class="notranslate"><code class="notranslate">import numpy as np from scipy import ndimage def stretcher(a, new_min, new_max): old_min = ndimage.minimum(a) old_max = ndimage.maximum(a) if old_min == old_max: return a - old_min + new_min return new_min + (a - old_min) * (new_max - new_min) / (old_max - old_min) </code></pre></div> <p dir="auto">If we execute this code that stretches the values to a positive interval:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a = np.array([0, -182, -10, 0], np.int16) b = stretcher(a, new_min=np.int16(0), new_max=np.int16(182)) print(b)"><pre class="notranslate"><code class="notranslate">a = np.array([0, -182, -10, 0], np.int16) b = stretcher(a, new_min=np.int16(0), new_max=np.int16(182)) print(b) </code></pre></div> <p dir="auto">we get this result:</p> <p dir="auto"><code class="notranslate">[-178.08791209 0. 172. -178.08791209]</code></p> <p dir="auto">A very logic result! But not for earthlings like me... You see, I understand that 0 + 182 * 182 / 182 returns -178.08791209 because it is interpreted as 0 + (182 * 182) / 182 , and 182 * 182 = 33124, which is greater than the maximum that np.int16 can hold (32767). However, I would prefer the execution to fail, so that I know I must take extra measures in my code to catch such overflows.</p> <p dir="auto">Moreover, <code class="notranslate">print(b.dtype)</code> returns <code class="notranslate">float64</code>, so one would never think that 182*182 did not fit in a 64 bit float...</p> <p dir="auto">The correct result is returned by this slightly modified statement (notice the grouping of the division operation):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return new_min + (a - old_min) * ((new_max - new_min) / (old_max - old_min)) [182. 0. 172. 182.]"><pre class="notranslate"><code class="notranslate">return new_min + (a - old_min) * ((new_max - new_min) / (old_max - old_min)) [182. 0. 172. 182.] </code></pre></div> <p dir="auto">The result type is <code class="notranslate">float32</code> in this case (don't ask me why).</p> <p dir="auto">The fact that <code class="notranslate">x*y/z</code> returns a different result than<code class="notranslate"> x*(y/z)</code> when z is not zero (nor close to zero) and x, y, and z are quite moderate values is also a concerning issue.</p> <p dir="auto">I don't know how Numpy optimizes calculations, but when you see a division (which seems to automatically convert the result to float), you might want to convert all values from that statement to float before any operation takes place.</p> <p dir="auto">I see that if I run this:</p> <p dir="auto"><code class="notranslate">print(np.int16(182)*np.int16(182))</code></p> <p dir="auto">in a Jupyter notebook I do get the result -32412 and a warning:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[path to Python here]\lib\site-packages\ipykernel\__main__.py:1: RuntimeWarning: overflow encountered in short_scalars if __name__ == '__main__':"><pre class="notranslate"><code class="notranslate">[path to Python here]\lib\site-packages\ipykernel\__main__.py:1: RuntimeWarning: overflow encountered in short_scalars if __name__ == '__main__': </code></pre></div> <p dir="auto">Currently there is no warning in Jupyter notebooks when the same operation is inside a function. It is so easy to believe that everything works fine!</p> <p dir="auto">You may say that it's Jupyter's fault, but if the integer overflow would have caused an error, I would have seen the problem immediately in Jupyter, too.</p> <p dir="auto">You may also say that I should not work with int16, but with int32 or int64. However, I am constrained by the libraries I work with. Some of them accept only uint8, others int16, and others int32. I already do a lot of conversions back and forth. If I have to convert each time I fear an overflow may happen the code will be messy and slow. I currently cast just before feeding the data to those libraries that accept a single type of data.</p> <p dir="auto">By the way, wasn't Python supposed to automatically cast to wider range types when needed? I understand that Numpy tries to keep the type of the result unchanged if the two operands have the same type, but in this case the type will change anyway, so why imposing a constraint (resulting in an error) when the constraint is lifted automatically one step further in the same statement?</p> <p dir="auto">I think it is more logical, useful, pythonic and correct (numerically speaking) to automatically cast to higher types when needed and either issuing a warning about such cast, or returning an extra flag indicating that the type has changed, than to return a wrong result and issue a warning about it (which disappears anyway as shown above).</p> <p dir="auto">Thanks,</p> <p dir="auto">Andrei</p>
<p dir="auto">Simple demo:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: np.uint8(0) - np.uint8(1) RuntimeWarning: overflow encountered in ubyte_scalars Out[1]: 255 In [2]: np.uint8(0)[...] - np.uint8(1)[...] Out[2]: 255"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">0</span>) <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">1</span>) <span class="pl-v">RuntimeWarning</span>: <span class="pl-s1">overflow</span> <span class="pl-s1">encountered</span> <span class="pl-c1">in</span> <span class="pl-s1">ubyte_scalars</span> <span class="pl-v">Out</span>[<span class="pl-c1">1</span>]: <span class="pl-c1">255</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">0</span>)[...] <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">uint8</span>(<span class="pl-c1">1</span>)[...] <span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-c1">255</span></pre></div> <p dir="auto">Should we even warn at all for unsigned integers?</p>
1
<p dir="auto">Version <code class="notranslate">1.7.1</code> is failing to compile and install via <strong>brew</strong> on an older iMac. The iMac is running <strong>macOS High Sierra</strong>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="==&gt; Installing deno ==&gt; python build/gen.py ==&gt; ninja -C out ==&gt; cargo install -vv Last 15 lines from /Users/justin/Library/Logs/Homebrew/deno/03.cargo: [rusty_v8 0.16.0] See //build/toolchain/mac/BUILD.gn:15:1: whence it was imported. [rusty_v8 0.16.0] import(&quot;//build/config/mac/mac_sdk.gni&quot;) [rusty_v8 0.16.0] ^-------------------------------------- [rusty_v8 0.16.0] See //BUILD.gn:4:1: which caused the file to be included. [rusty_v8 0.16.0] static_library(&quot;rusty_v8&quot;) { [rusty_v8 0.16.0] ^--------------------------- [rusty_v8 0.16.0] thread 'main' panicked at ' [rusty_v8 0.16.0] command did not execute successfully, got: exit code: 1 [rusty_v8 0.16.0] [rusty_v8 0.16.0] build script failed, must exit now', /Users/justin/Library/Caches/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/cargo_gn-0.0.15/src/lib.rs:203:3 [rusty_v8 0.16.0] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace error: failed to compile `deno v1.7.1 (/private/tmp/deno-20210204-79091-yndwd1/deno/cli)`, intermediate artifacts can be found at `/private/tmp/deno-20210204-79091-yndwd1/deno/target` Caused by: build failed Do not report this issue to Homebrew/brew or Homebrew/core!"><pre class="notranslate"><code class="notranslate">==&gt; Installing deno ==&gt; python build/gen.py ==&gt; ninja -C out ==&gt; cargo install -vv Last 15 lines from /Users/justin/Library/Logs/Homebrew/deno/03.cargo: [rusty_v8 0.16.0] See //build/toolchain/mac/BUILD.gn:15:1: whence it was imported. [rusty_v8 0.16.0] import("//build/config/mac/mac_sdk.gni") [rusty_v8 0.16.0] ^-------------------------------------- [rusty_v8 0.16.0] See //BUILD.gn:4:1: which caused the file to be included. [rusty_v8 0.16.0] static_library("rusty_v8") { [rusty_v8 0.16.0] ^--------------------------- [rusty_v8 0.16.0] thread 'main' panicked at ' [rusty_v8 0.16.0] command did not execute successfully, got: exit code: 1 [rusty_v8 0.16.0] [rusty_v8 0.16.0] build script failed, must exit now', /Users/justin/Library/Caches/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/cargo_gn-0.0.15/src/lib.rs:203:3 [rusty_v8 0.16.0] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace error: failed to compile `deno v1.7.1 (/private/tmp/deno-20210204-79091-yndwd1/deno/cli)`, intermediate artifacts can be found at `/private/tmp/deno-20210204-79091-yndwd1/deno/target` Caused by: build failed Do not report this issue to Homebrew/brew or Homebrew/core! </code></pre></div>
<p dir="auto">We struggled with updating deno at Homebrew for a while (cf. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="766981428" data-permission-text="Title is private" data-url="https://github.com/Homebrew/homebrew-core/issues/66920" data-hovercard-type="pull_request" data-hovercard-url="/Homebrew/homebrew-core/pull/66920/hovercard" href="https://github.com/Homebrew/homebrew-core/pull/66920">Homebrew/homebrew-core#66920</a>) and it seems that part of the reason is that the build is non-deterministic. The exact same build configuration can succeed now and fail (edit: with the same version!) later and vice-versa.</p> <p dir="auto">This is partly summarized in the table at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="766981428" data-permission-text="Title is private" data-url="https://github.com/Homebrew/homebrew-core/issues/66920" data-hovercard-type="pull_request" data-hovercard-url="/Homebrew/homebrew-core/pull/66920/hovercard?comment_id=765711570&amp;comment_type=issue_comment" href="https://github.com/Homebrew/homebrew-core/pull/66920#issuecomment-765711570">Homebrew/homebrew-core#66920 (comment)</a>. These are all attempts at building deno 1.7.0.</p> <p dir="auto">In particular, note that the build configuration is the same between <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/Homebrew/homebrew-core/commit/54c027e24f0ba91816ff906af17efe05d1b5d663/hovercard" href="https://github.com/Homebrew/homebrew-core/commit/54c027e24f0ba91816ff906af17efe05d1b5d663">Homebrew/homebrew-core@<tt>54c027e</tt></a> and <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/Homebrew/homebrew-core/commit/77e4ad870875fb3666c56650622bafc01e7401e2/hovercard" href="https://github.com/Homebrew/homebrew-core/commit/77e4ad870875fb3666c56650622bafc01e7401e2">Homebrew/homebrew-core@<tt>77e4ad8</tt></a> (the first two commits in the table), but the two commits have starkly different build outcomes.</p> <p dir="auto">The last three commits in that table are also the same, with differing results.</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-remove-classes-from-an-element-with-jquery" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-remove-classes-from-an-element-with-jquery</a> has an issue.<br> Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">If you just type this:<br> $("button").removeClass();<br> without the "btn-default" as a parameter for the removeClass function, the "Go to my next challenge" already gets enabled.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6985314/9446917/03b3876e-4ac7-11e5-9a81-0346179a9c44.png"><img src="https://cloud.githubusercontent.com/assets/6985314/9446917/03b3876e-4ac7-11e5-9a81-0346179a9c44.png" alt="screen shot 2015-08-25 at 1 16 19 am" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-remove-classes-from-an-element-with-jquery" rel="nofollow">http://freecodecamp.com/challenges/waypoint-remove-classes-from-an-element-with-jquery</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7223909/9313930/2008f742-4526-11e5-8ad7-82b8649935cc.png"><img src="https://cloud.githubusercontent.com/assets/7223909/9313930/2008f742-4526-11e5-8ad7-82b8649935cc.png" alt="image" style="max-width: 100%;"></a>.</p> <p dir="auto">It has to control if the user has really removed the <em>btn-default</em> class. You can in the screenshot that it accepts the code even though i have not inserted <em>btn-default</em> in the <em>removeClass()</em> function</p>
1
<p dir="auto">(Initially <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="93348742" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/1212" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/1212/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/1212">#1212</a>, which I opened and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BerkeleyTrue/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BerkeleyTrue">@BerkeleyTrue</a> closed without discussion and which I can't reopen.)</p> <blockquote> <p dir="auto">This really isn't Ideal to compare your solutions</p> </blockquote> <p dir="auto">Actually, from a learner's perspective, being able to compare their own solution against the ideal solution is absolutely ideal. In fact, <strong>"If feedback is not appropriate (either from an instructor or from self-reference to an information source), then the practice tends to be ineffective or even detrimental to learning."</strong> [1]. It isn't about competition with others, but self-reflection.</p> <p dir="auto">One of the biggest challenges becomes identifying "the ideal solution". But interestingly, reviewing peers' work can be, <em>in and of itself</em>, an effective pedagogical method if certain conditions are met [2, 3, 4], and FCC is a poster-child for these conditions!</p> <p dir="auto">The current approach means:</p> <ul dir="auto"> <li>Having to go search for feedback (e.g. go look it up on the wiki), which means many learners simply won't get that feedback.</li> <li>Lack of comparison between alternative answers (e.g. comparing and rating multiple working solutions) means learners aren't exposed to other solution paradigms, and therefore aren't developing <em>relevant</em> critical thinking skills.</li> </ul> <p dir="auto">And to be very clear, providing alternative solutions <em>does not necessitate competition</em>. Reviewing multiple alternative solutions (including non-optimal solutions), and comparing peers' ratings of solutions, is the goal. There is no need for names, affiliations, or anything else that breeds competition with anyone else. However, it should encourage self-reflection.</p> <p dir="auto">[1] <a href="https://en.wikipedia.org/wiki/Practice_%28learning_method%29#Deliberate_practice" rel="nofollow">https://en.wikipedia.org/wiki/Practice_%28learning_method%29#Deliberate_practice</a></p> <p dir="auto">[2] <a href="https://onlinelearninginsights.wordpress.com/2013/03/09/why-and-when-peer-grading-is-effective-for-open-and-online-learning/" rel="nofollow">https://onlinelearninginsights.wordpress.com/2013/03/09/why-and-when-peer-grading-is-effective-for-open-and-online-learning/</a> , particularly:</p> <blockquote> <p dir="auto">Listed below are a list of conditions needed to ensure that peer grading is effective:</p> <ol dir="auto"> <li>When learners are at a similar skill level.</li> <li>When assignments are low stakes [i.e. when a course is taken for professional development of personal interest as was the Digital Cultures course].</li> <li>Where credit is not granted.</li> <li>When learners are mature, self-directed and motivated.</li> <li>When learners have experience in learning and navigating within a networked setting [if the review is completed in an open and online setting].</li> <li>Learners have a developed set of communication skills.</li> </ol> </blockquote> <p dir="auto">[3] <a href="http://www.lrdc.pitt.edu/schunn/research/peers.html" rel="nofollow">http://www.lrdc.pitt.edu/schunn/research/peers.html</a></p> <p dir="auto">[4] <a href="http://eric.ed.gov/?id=EJ938586" rel="nofollow">http://eric.ed.gov/?id=EJ938586</a></p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-passing-values-to-functions-with-arguments#?solution=%2F%2F%20Example%0Afunction%20ourFunction%28a%2C%20b%29%20%7B%0A%20%20console.log%28a%20-%20b%29%3B%0A%7D%0A%2F%2FourFunction%2810%2C%205%29%3B%20%2F%2F%20Outputs%205%0A%0A%2F%2F%20Only%20change%20code%20below%20this%20line.%0A%0Afunction%20myFunction%28arg1%2C%20arg2%29%20%7B%0A%20%20console.log%28arg1%20%2B%20arg2%29%3B%0A%7D%0A%0AmyFunction%284%2C5%29%3B%0A" rel="nofollow">Waypoint: Passing Values to Functions with Arguments</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 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="// Example function ourFunction(a, b) { console.log(a - b); } //ourFunction(10, 5); // Outputs 5 // Only change code below this line. function myFunction(arg1, arg2) { console.log(arg1 + arg2); } myFunction(4,5); "><pre class="notranslate"><span class="pl-c">// Example</span> <span class="pl-k">function</span> <span class="pl-en">ourFunction</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">a</span> <span class="pl-c1">-</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">//ourFunction(10, 5); // Outputs 5</span> <span class="pl-c">// Only change code below this line.</span> <span class="pl-k">function</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-s1">arg1</span><span class="pl-kos">,</span> <span class="pl-s1">arg2</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">arg1</span> <span class="pl-c1">+</span> <span class="pl-s1">arg2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-c1">4</span><span class="pl-kos">,</span><span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
0
<p dir="auto">Hi,<br> After installing a plugin, I cannot search another plugin. I need to restart ATOM to make this work.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5646166/8380330/c6b4c4b6-1c42-11e5-96bb-a2834ed9f024.png"><img src="https://cloud.githubusercontent.com/assets/5646166/8380330/c6b4c4b6-1c42-11e5-96bb-a2834ed9f024.png" alt="screen shot 2015-06-26 at 8 31 39 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Use case:<br> Open Packages -&gt; Settings view -&gt; Install packages, then enter some text in search field, but nothing doing.<br> for get result I must change Packages button to Themes and switch again for a get search result.<br> No 'Enter' key action here too</p>
1
<p dir="auto">Hi,</p> <p dir="auto">It's not clear to me what 2D/3D corner case I've found myself in between Scipy, pyinstaller, and GH actions, but since it seemed related to other issues (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="878802120" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/14002" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/14002/hovercard" href="https://github.com/scipy/scipy/issues/14002">#14002</a>), I wanted to report, feel free to close if best reported in one of those other tools instead.</p> <p dir="auto">As part of the <a href="https://github.com/CellProfiler/CellProfiler">CellProfiler</a> <a href="https://github.com/CellProfiler/CellProfiler/blob/4.2.x/.github/workflows/release.yml">build process on GH actions</a> we pip install SciPy (just from PyPI, nothing fancy) as part of the process of installing CellProfiler then use pyinstaller to package in our dependencies via the <a href="https://github.com/CellProfiler/distribution/blob/b1b653ae85c0fb5b04030627614e2228c8152936/windows/CellProfiler.spec">linked spec</a> . When we tested a release we put together yesterday, we found that on Windows but not Mac pyinstaller was unable to find the OpenBLAS dll, leading to a bunch of messages ala the below</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2022-12-15T13:28:48.4432784Z 112298 WARNING: lib not found: libopenblas-57db09cfe174768fb409a6bb5a530d4c.dll dependency of c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\scipy\sparse\linalg\_isolve\_iterative.cp38-win_amd64.pyd 2022-12-15T13:28:48.4550912Z 112314 WARNING: lib not found: libopenblas-57db09cfe174768fb409a6bb5a530d4c.dll dependency of c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\scipy\special\_ufuncs.cp38-win_amd64.pyd"><pre class="notranslate"><code class="notranslate">2022-12-15T13:28:48.4432784Z 112298 WARNING: lib not found: libopenblas-57db09cfe174768fb409a6bb5a530d4c.dll dependency of c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\scipy\sparse\linalg\_isolve\_iterative.cp38-win_amd64.pyd 2022-12-15T13:28:48.4550912Z 112314 WARNING: lib not found: libopenblas-57db09cfe174768fb409a6bb5a530d4c.dll dependency of c:\hostedtoolcache\windows\python\3.8.10\x64\lib\site-packages\scipy\special\_ufuncs.cp38-win_amd64.pyd </code></pre></div> <p dir="auto">The application was built, but then failed on launch due to scipy.libs not being able to be found.</p> <p dir="auto">We had last built in August with 1.9.0, so after trying other stuff we tried pinning to that, and the build succeeded - I didn't test 1.9.1 or .2 . Is it expected that the location or packaging of that dll would be different in 1.9.0 vs 1.9.3 ? I did <a href="https://github.com/CellProfiler/distribution/commits/4.2.x/windows/CellProfiler.spec">try a bunch of things</a> (to be fair, my PyInstaller skills are poor hahaha) to try to get it to find the dll, but none succeded. Thanks in advance for any help you can give - happy to upload build logs or anything else you think may help.</p>
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">From scipy 1.9.1 to scipy 1.9.3 the directory used to install dlls on windows changed.<br> scipy-1.9.1: dlls are installed in .../site-packages/scipy/.libs<br> scipy-1.9.3: dlls are installed in .../site-packages/scipy.libs</p> <p dir="auto">This causes pyinstaller builds using scipy-1.9.3 to fail as the expected dll location changed.</p> <p dir="auto">If this change was intented I will file a bug report with pyinstaller to update the scipy installer hook.</p> <h3 dir="auto">Reproducing Code Example</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="None"><pre class="notranslate"><span class="pl-c1">None</span></pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="None"><pre class="notranslate">None</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">1.9.3 1.23.1 sys.version_info(major=3, minor=10, micro=6, releaselevel='final', serial=0)</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Is it possible, to implement something like this:<br> When there is an active process in the current tab, a confirmation dialect window may show up before actually closing.</p> <p dir="auto">When I was writing vim, I need to use <code class="notranslate">C-W</code> to switch among vim tabs.<br> <code class="notranslate">C-W</code> is also the hotkey to close the current tab.<br> When the first two times I ran into this problem, I suppose it was some crashing thing.<br> Finally, I realized it was a hotkey conflict.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">I did not dive into the code base of this project yet, but I hope it is not too hard to implement.</p>
<p dir="auto">I can not input Chinese, can only input English, where to set the character?</p>
0
<h2 dir="auto">Feature request</h2> <p dir="auto"><strong>What is the expected behavior?</strong><br> After searching in the "search" bottom panel, only one the workspace files should appear.<br> After last update it shows both the "workspace file" and the "localhost file".</p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong><br> Making the search results more readable and avoid redundant items.<br> And avoid "this file has not been saved" yellow alert icon that appears in the edited "workspace files" every time you unwillingly edit the "localhost file" instead.</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong><br> It was showing only the workspace one version ago, I think that's fine, but maybe this has a reason that I can't understand, so I think the best way would add an option.</p> <p dir="auto"><strong>Are you willing to work on this yourself?</strong><br> yes, sure!</p> <p dir="auto"><strong>Screenshot</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/422159/55644973-c0f8cb80-57ad-11e9-9ce0-56e0c4d1f730.JPG"><img src="https://user-images.githubusercontent.com/422159/55644973-c0f8cb80-57ad-11e9-9ce0-56e0c4d1f730.JPG" alt="Capture" style="max-width: 100%;"></a></p>
<ul class="contains-task-list"> <li> <p dir="auto">Operating System: Linux</p> </li> <li> <p dir="auto">Node Version: 12</p> </li> <li> <p dir="auto">NPM Version: 6</p> </li> <li> <p dir="auto">webpack Version: 4</p> </li> <li> <p dir="auto">webpack-dev-server Version: 3</p> </li> <li> <p dir="auto">Browser: Chrome</p> </li> <li> <p dir="auto">[x ] This is a <strong>bug</strong></p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This is a <strong>modification</strong> request</p> </li> </ul> <h3 dir="auto">Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" output: { path: path.resolve(ROOT_PATH, 'dist'), publicPath: '0.0.0.0:10005/', filename: '[name].bundle.js', chunkFilename: '[id].bundle.js' }, devServer: { allowedHosts: ['.ec2.pin220.com', '.pinterdev.com'], // 0.0.0.0 binds to all interfaces. The public port is 8080 which is served // by nginx and proxied to the internal webpack port of 10005. host: '0.0.0.0', port: 10005, hotOnly: true, publicPath: '0.0.0.0:10005/' }"><pre class="notranslate"> output: <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-c1">ROOT_PATH</span><span class="pl-kos">,</span> <span class="pl-s">'dist'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">publicPath</span>: <span class="pl-s">'0.0.0.0:10005/'</span><span class="pl-kos">,</span> <span class="pl-c1">filename</span>: <span class="pl-s">'[name].bundle.js'</span><span class="pl-kos">,</span> <span class="pl-c1">chunkFilename</span>: <span class="pl-s">'[id].bundle.js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">devServer</span>: <span class="pl-kos">{</span> <span class="pl-c1">allowedHosts</span>: <span class="pl-kos">[</span><span class="pl-s">'.ec2.pin220.com'</span><span class="pl-kos">,</span> <span class="pl-s">'.pinterdev.com'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c">// 0.0.0.0 binds to all interfaces. The public port is 8080 which is served</span> <span class="pl-c">// by nginx and proxied to the internal webpack port of 10005.</span> <span class="pl-c1">host</span>: <span class="pl-s">'0.0.0.0'</span><span class="pl-kos">,</span> <span class="pl-c1">port</span>: <span class="pl-c1">10005</span><span class="pl-kos">,</span> <span class="pl-c1">hotOnly</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">publicPath</span>: <span class="pl-s">'0.0.0.0:10005/'</span> <span class="pl-kos">}</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (module.hot) module.hot.accept(); const root = document.getElementById('root'); if (root !== null) { ReactDOM.render(&lt;App /&gt;, root); } "><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">hot</span><span class="pl-kos">)</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">hot</span><span class="pl-kos">.</span><span class="pl-en">accept</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">root</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">'root'</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">root</span> <span class="pl-c1">!==</span> <span class="pl-c1">null</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">App</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-s1">root</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Work</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Doesn't work, just says</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[WDS] App hot update... log.js?1afd:24 [HMR] Checking for updates on the server..."><pre class="notranslate"><code class="notranslate">[WDS] App hot update... log.js?1afd:24 [HMR] Checking for updates on the server... </code></pre></div>
0
<p dir="auto">[ERROR] 2021-12-11 18:18:37.516 [ShardingSphere-Command-0] o.a.s.p.f.c.CommandExecutorTask - Exception occur:<br> java.sql.SQLException: exception while executing query: java.math.BigInteger cannot be cast to java.lang.Long<br> at org.apache.calcite.avatica.Helper.createException(Helper.java:56)<br> at org.apache.calcite.avatica.Helper.createException(Helper.java:41)<br> at org.apache.calcite.avatica.AvaticaConnection.executeQueryInternal(AvaticaConnection.java:577)<br> at org.apache.calcite.avatica.AvaticaPreparedStatement.executeQuery(AvaticaPreparedStatement.java:137)<br> at org.apache.shardingsphere.infra.executor.sql.federate.original.OriginalFilterableExecutor.execute(OriginalFilterableExecutor.java:87)<br> at org.apache.shardingsphere.infra.executor.sql.federate.original.OriginalFilterableExecutor.executeQuery(OriginalFilterableExecutor.java:77)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.federateExecute(ProxySQLExecutor.java:164)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:136)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:127)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxyLockEngine.doExecute(ProxyLockEngine.java:103)<br> at org.apache.shardingsphere.proxy.backend.communication.ProxyLockEngine.execute(ProxyLockEngine.java:81)<br> at org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicationEngine.execute(DatabaseCommunicationEngine.java:126)<br> at org.apache.shardingsphere.proxy.backend.text.data.impl.SchemaAssignedDatabaseBackendHandler.execute(SchemaAssignedDatabaseBackendHandler.java:55)<br> at org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:61)<br> at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:99)<br> at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:72)<br> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br> at java.lang.Thread.run(Thread.java:748)<br> Caused by: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long<br> at Baz$2.apply(Unknown Source)<br> at Baz$2.apply(Unknown Source)<br> at org.apache.calcite.linq4j.EnumerableDefaults.toLookup_(EnumerableDefaults.java:3604)<br> at org.apache.calcite.linq4j.EnumerableDefaults.toLookup(EnumerableDefaults.java:3594)<br> at org.apache.calcite.linq4j.EnumerableDefaults.toLookup(EnumerableDefaults.java:3570)<br> at org.apache.calcite.linq4j.DefaultEnumerable.toLookup(DefaultEnumerable.java:748)<br> at org.apache.calcite.linq4j.EnumerableDefaults$6.enumerator(EnumerableDefaults.java:1316)<br> at org.apache.calcite.linq4j.AbstractEnumerable.iterator(AbstractEnumerable.java:33)<br> at org.apache.calcite.avatica.MetaImpl.createCursor(MetaImpl.java:90)<br> at org.apache.calcite.avatica.AvaticaResultSet.execute(AvaticaResultSet.java:184)<br> at org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:64)<br> at org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:43)<br> at org.apache.calcite.avatica.AvaticaConnection.executeQueryInternal(AvaticaConnection.java:573)<br> ... 16 common frames omitted</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/sharding-sphere/sharding-sphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="http://shardingsphere.io/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 <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">3.1.0</p> <h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3> <p dir="auto">Sharding-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">subquery can work as expect</p> <h3 dir="auto">Actual behavior</h3> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto"><a href="https://github.com/apache/incubator-shardingsphere/files/2864758/bug.txt">bug.txt</a></p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
0
<p dir="auto"><code class="notranslate">go get</code> is frequently used by users and developers on hostile networks (eg, the internet) to fetch and run code. Incredibly, when HTTPS connections fail (for instance because an attacker is denying access to HTTPS), <code class="notranslate">go get</code> falls back to HTTP.</p> <p dir="auto">Please remove support for plain HTTP, or refuse to use it without the user specifying explicitly that they want to make HTTP connections!</p>
<p dir="auto">Currently it is impossible to securely fetch a package via <code class="notranslate">go get</code>, because it downloads via an insecure protocol if secure protocols fail or are not available. It is possible for an attacker to block secure ports (443 for HTTPS and 22 for git+ssh) and serve malicious packages via plain-text HTTP or git protocols.</p> <p dir="auto">I propose making it an explicit option to enable insecure protocols, e.g. <code class="notranslate">-allow-insecure</code>.</p> <p dir="auto">As a compromise (e.g. for backwards compatibility), <code class="notranslate">-secure</code> option may be implemented instead, making insecure behavior the default, but allowing users to add the flag to disable plain-text protocols.</p>
1
<p dir="auto">Ran into this test failure case while building locally</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.599 sec &lt;&lt;&lt; FAILURE! - in io.druid.metadata.SQLMetadataSupervisorManagerTest testInsertAndGet(io.druid.metadata.SQLMetadataSupervisorManagerTest) Time elapsed: 0.599 sec &lt;&lt;&lt; ERROR! org.skife.jdbi.v2.exceptions.CallbackFailedException: org.skife.jdbi.v2.exceptions.UnableToExecuteStatementException: java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'SQL160506204201978' defined on 'DRUIDTEST7CB9E3D334F949E0B23A8BE51C7EAFE8_SUPERVISORS'. [statement:&quot;INSERT INTO druidTest7cb9e3d334f949e0b23a8be51c7eafe8_supervisors (id, spec_id, version, payload) VALUES (:id, :spec_id, :version, :payload)&quot;, located:&quot;INSERT INTO druidTest7cb9e3d334f949e0b23a8be51c7eafe8_supervisors (id, spec_id, version, payload) VALUES (:id, :spec_id, :version, :payload)&quot;, rewritten:&quot;INSERT INTO druidTest7cb9e3d334f949e0b23a8be51c7eafe8_supervisors (id, spec_id, version, payload) VALUES (?, ?, ?, ?)&quot;, arguments:{ positional:{}, named:{id:'test-supervisor-1_2016-05-06T20:42:01.963Z',payload:[123, 34, 116, 121, 112, 101, 34, 58, 34, 84, 101, 115, 116, 83, 117, 112, 101, 114, 118, 105, 115, 111, 114, 83, 112, 101, 99, 34, 44, 34, 105, 100, 34, 58, 34, 116, 101, 115, 116, 45, 115, 117, 112, 101, 114, 118, 105, 115, 111, 114, 45, 49, 34, 44, 34, 100, 97, 116, 97, 34, 58, 123, 34, 107, 101, 121, 49, 45, 49, 34, 58, 34, 118, 97, 108, 117, 101, 49, 45, 49, 45, 51, 34, 44, 34, 107, 101, 121, 49, 45, 50, 34, 58, 34, 118, 97, 108, 117, 101, 49, 45, 50, 45, 51, 34, 125, 125],spec_id:'test-supervisor-1',version:'2016-05-06T20:42:01.963Z'}, finder:[]}] at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source) at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source) at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source) at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source) at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source) at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source) at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source) at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source) at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.skife.jdbi.v2.SQLStatement.internalExecute(SQLStatement.java:1328) at org.skife.jdbi.v2.Update.execute(Update.java:56) at io.druid.metadata.SQLMetadataSupervisorManager$1.withHandle(SQLMetadataSupervisorManager.java:88) at io.druid.metadata.SQLMetadataSupervisorManager$1.withHandle(SQLMetadataSupervisorManager.java:83) at org.skife.jdbi.v2.DBI.withHandle(DBI.java:281) at io.druid.metadata.SQLMetadataSupervisorManager.insert(SQLMetadataSupervisorManager.java:81) at io.druid.metadata.SQLMetadataSupervisorManagerTest.testInsertAndGet(SQLMetadataSupervisorManagerTest.java:99)"><pre class="notranslate"><code class="notranslate">Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.599 sec &lt;&lt;&lt; FAILURE! - in io.druid.metadata.SQLMetadataSupervisorManagerTest testInsertAndGet(io.druid.metadata.SQLMetadataSupervisorManagerTest) Time elapsed: 0.599 sec &lt;&lt;&lt; ERROR! org.skife.jdbi.v2.exceptions.CallbackFailedException: org.skife.jdbi.v2.exceptions.UnableToExecuteStatementException: java.sql.SQLIntegrityConstraintViolationException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'SQL160506204201978' defined on 'DRUIDTEST7CB9E3D334F949E0B23A8BE51C7EAFE8_SUPERVISORS'. [statement:"INSERT INTO druidTest7cb9e3d334f949e0b23a8be51c7eafe8_supervisors (id, spec_id, version, payload) VALUES (:id, :spec_id, :version, :payload)", located:"INSERT INTO druidTest7cb9e3d334f949e0b23a8be51c7eafe8_supervisors (id, spec_id, version, payload) VALUES (:id, :spec_id, :version, :payload)", rewritten:"INSERT INTO druidTest7cb9e3d334f949e0b23a8be51c7eafe8_supervisors (id, spec_id, version, payload) VALUES (?, ?, ?, ?)", arguments:{ positional:{}, named:{id:'test-supervisor-1_2016-05-06T20:42:01.963Z',payload:[123, 34, 116, 121, 112, 101, 34, 58, 34, 84, 101, 115, 116, 83, 117, 112, 101, 114, 118, 105, 115, 111, 114, 83, 112, 101, 99, 34, 44, 34, 105, 100, 34, 58, 34, 116, 101, 115, 116, 45, 115, 117, 112, 101, 114, 118, 105, 115, 111, 114, 45, 49, 34, 44, 34, 100, 97, 116, 97, 34, 58, 123, 34, 107, 101, 121, 49, 45, 49, 34, 58, 34, 118, 97, 108, 117, 101, 49, 45, 49, 45, 51, 34, 44, 34, 107, 101, 121, 49, 45, 50, 34, 58, 34, 118, 97, 108, 117, 101, 49, 45, 50, 45, 51, 34, 125, 125],spec_id:'test-supervisor-1',version:'2016-05-06T20:42:01.963Z'}, finder:[]}] at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.iapi.error.StandardException.newException(Unknown Source) at org.apache.derby.impl.sql.execute.IndexChanger.insertAndCheckDups(Unknown Source) at org.apache.derby.impl.sql.execute.IndexChanger.doInsert(Unknown Source) at org.apache.derby.impl.sql.execute.IndexChanger.insert(Unknown Source) at org.apache.derby.impl.sql.execute.IndexSetChanger.insert(Unknown Source) at org.apache.derby.impl.sql.execute.RowChangerImpl.insertRow(Unknown Source) at org.apache.derby.impl.sql.execute.InsertResultSet.normalInsertCore(Unknown Source) at org.apache.derby.impl.sql.execute.InsertResultSet.open(Unknown Source) at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source) at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source) at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source) at org.apache.derby.impl.jdbc.EmbedPreparedStatement.execute(Unknown Source) at org.skife.jdbi.v2.SQLStatement.internalExecute(SQLStatement.java:1328) at org.skife.jdbi.v2.Update.execute(Update.java:56) at io.druid.metadata.SQLMetadataSupervisorManager$1.withHandle(SQLMetadataSupervisorManager.java:88) at io.druid.metadata.SQLMetadataSupervisorManager$1.withHandle(SQLMetadataSupervisorManager.java:83) at org.skife.jdbi.v2.DBI.withHandle(DBI.java:281) at io.druid.metadata.SQLMetadataSupervisorManager.insert(SQLMetadataSupervisorManager.java:81) at io.druid.metadata.SQLMetadataSupervisorManagerTest.testInsertAndGet(SQLMetadataSupervisorManagerTest.java:99) </code></pre></div>
<p dir="auto">Currently the initialization routine checks for implementations in the extension coordinates, and optionally (via <code class="notranslate">druid.extensions.searchCurrentClassloader</code>) in the classpath.</p> <p dir="auto">This can cause unexpected binding behavior where items are attempted to be bound twice if the extension happens to also be in the classpath.</p> <p dir="auto">Steps to reproduce:<br> 1.Unzip a fresh copy of the services self contained tar.gz<br> 2.Copy an extension to the lib directory which happens to also be in the list of coordinates under config/_common <code class="notranslate">cp ~/.m2/repository/io/druid/extensions/mysql-metadata-storage/0.7.0-SNAPSHOT/mysql-metadata-storage-0.7.0-SNAPSHOT.jar lib/</code><br> 3.Run it <code class="notranslate">java -cp config/_common/:config/coordinator/:lib/* io.druid.cli.Main server coordinator</code></p> <p dir="auto">result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2015-01-07 11:26:58,945 INFO [main] io.druid.initialization.Initialization - Adding extension module[class io.druid.metadata.storage.mysql.MySQLMetadataStorageModule] for class[io.druid.initialization.DruidModule] Exception in thread &quot;main&quot; com.google.inject.CreationException: Guice creation errors: 1) Map injection failed due to duplicated key &quot;mysql&quot; at com.google.inject.multibindings.MapBinder$RealMapBinder$1.initialize(MapBinder.java:357) at io.druid.guice.PolyBind.optionBinder(PolyBind.java:94) 1 error at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:448) at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110) at com.google.inject.Guice.createInjector(Guice.java:96) at com.google.inject.Guice.createInjector(Guice.java:73) at com.google.inject.Guice.createInjector(Guice.java:62) at io.druid.initialization.Initialization.makeInjectorWithModules(Initialization.java:371) at io.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:57) at io.druid.cli.ServerRunnable.run(ServerRunnable.java:39) at io.druid.cli.Main.main(Main.java:90)"><pre class="notranslate"><code class="notranslate">2015-01-07 11:26:58,945 INFO [main] io.druid.initialization.Initialization - Adding extension module[class io.druid.metadata.storage.mysql.MySQLMetadataStorageModule] for class[io.druid.initialization.DruidModule] Exception in thread "main" com.google.inject.CreationException: Guice creation errors: 1) Map injection failed due to duplicated key "mysql" at com.google.inject.multibindings.MapBinder$RealMapBinder$1.initialize(MapBinder.java:357) at io.druid.guice.PolyBind.optionBinder(PolyBind.java:94) 1 error at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:448) at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110) at com.google.inject.Guice.createInjector(Guice.java:96) at com.google.inject.Guice.createInjector(Guice.java:73) at com.google.inject.Guice.createInjector(Guice.java:62) at io.druid.initialization.Initialization.makeInjectorWithModules(Initialization.java:371) at io.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:57) at io.druid.cli.ServerRunnable.run(ServerRunnable.java:39) at io.druid.cli.Main.main(Main.java:90) </code></pre></div> <p dir="auto">Alternatively, put the extension's jar in the classpath, then run with a COMPLETELY DIFFERENT extension (like <code class="notranslate">druid.extensions.coordinates=["io.druid.extensions:druid-kafka-seven"]</code>)</p> <p dir="auto">same effect.</p>
0
<p dir="auto">Behold the insanity. I'll take this one, just wanted to make a note of it.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1789/3146041/6d9afee8-ea40-11e3-8669-352cbf004040.png"><img src="https://cloud.githubusercontent.com/assets/1789/3146041/6d9afee8-ea40-11e3-8669-352cbf004040.png" alt="screenshot 2014-06-02 19 26 40" style="max-width: 100%;"></a></p>
<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.176.0<br> <strong>System</strong>: Mac OS X 10.10.2<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: EEXIST, file already exists '/Users/renews/.atom/storage'</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Users/renews/.atom/packages/auto-update-packages/node_modules/fs-plus/node_modules/mkdirp/index.js:74 undefined"><pre class="notranslate"><code class="notranslate">At /Users/renews/.atom/packages/auto-update-packages/node_modules/fs-plus/node_modules/mkdirp/index.js:74 undefined </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;.git&quot;, &quot;.svn&quot;, &quot;.DS_Store&quot;, &quot;.vagrant&quot; ], &quot;disabledPackages&quot;: [ &quot;atom-jshint&quot;, &quot;vim-mode&quot;, &quot;terminal&quot; ], &quot;themes&quot;: [ &quot;spacegray-dark-ui&quot;, &quot;monokai&quot; ], &quot;projectHome&quot;: &quot;/Users/renews/SkyDrive/projetos&quot; }, &quot;editor&quot;: { &quot;fontSize&quot;: 12, &quot;showInvisibles&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>.git<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>.svn<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>.DS_Store<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>.vagrant<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-jshint<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>vim-mode<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>terminal<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>spacegray-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>monokai<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>/Users/renews/SkyDrive/projetos<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">12</span>, <span class="pl-ent">"showInvisibles"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User Atom-Syntax-highlighting-for-Sass, v0.5.0 ScssBundle, v0.4.0 atom-beautify, v0.3.4 atom-handlebars, v0.4.0 atom-lint, v0.20.0 auto-update-packages, v0.2.1 coffee-compile, v0.8.4 coffee-eval, v0.8.0 coffee-lint, v0.7.3 color-picker, v1.2.6 command-logger, v0.20.0 css-color-highlight, v0.3.0 docs-snippets, v0.8.0 editor-stats, v0.16.0 emmet, v2.2.1 foundation5-snippets, v0.2.0 language-haml, v0.14.0 linter, v0.9.0 meteor-api, v2.9.0 minitest-snippets, v0.2.0 monokai, v0.9.0 open-last-project, v0.1.1 package-sync, v0.1.1 pretty-json, v0.3.1 project-manager, v1.14.1 rspec-snippets, v0.4.0 ruby-define-method, v0.1.0 ruby-strftime-reference, v0.2.0 script, v2.15.1 spacegray-dark-ui, v0.5.0 trailing-spaces, v0.2.3 travis-ci-status, v0.11.0 visual-bell, v0.9.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>Syntax<span class="pl-k">-</span>highlighting<span class="pl-k">-</span><span class="pl-k">for</span><span class="pl-k">-</span>Sass, v0.<span class="pl-ii">5</span>.<span class="pl-ii">0</span> ScssBundle, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> atom<span class="pl-k">-</span>beautify, v0.<span class="pl-ii">3</span>.<span class="pl-ii">4</span> atom<span class="pl-k">-</span>handlebars, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> atom<span class="pl-k">-</span>lint, v0.<span class="pl-ii">20</span>.<span class="pl-ii">0</span> auto<span class="pl-k">-</span>update<span class="pl-k">-</span>packages, v0.<span class="pl-ii">2</span>.<span class="pl-ii">1</span> coffee<span class="pl-k">-</span>compile, v0.<span class="pl-ii">8</span>.<span class="pl-ii">4</span> coffee<span class="pl-k">-</span>eval, v0.<span class="pl-ii">8</span>.<span class="pl-ii">0</span> coffee<span class="pl-k">-</span>lint, v0.<span class="pl-ii">7</span>.<span class="pl-ii">3</span> color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">2</span>.<span class="pl-ii">6</span> command<span class="pl-k">-</span>logger, v0.<span class="pl-ii">20</span>.<span class="pl-ii">0</span> css<span class="pl-k">-</span>color<span class="pl-k">-</span>highlight, v0.<span class="pl-ii">3</span>.<span class="pl-ii">0</span> docs<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">8</span>.<span class="pl-ii">0</span> editor<span class="pl-k">-</span>stats, v0.<span class="pl-ii">16</span>.<span class="pl-ii">0</span> emmet, v2.<span class="pl-ii">2</span>.<span class="pl-ii">1</span> foundation5<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> language<span class="pl-k">-</span>haml, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> meteor<span class="pl-k">-</span>api, v2.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> minitest<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> monokai, v0.<span class="pl-ii">9</span>.<span class="pl-ii">0</span> open<span class="pl-k">-</span>last<span class="pl-k">-</span>project, v0.<span class="pl-ii">1</span>.<span class="pl-ii">1</span> <span class="pl-k">package</span><span class="pl-k">-</span>sync, v0.<span class="pl-ii">1</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">1</span> project<span class="pl-k">-</span>manager, v1.<span class="pl-ii">14</span>.<span class="pl-ii">1</span> rspec<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> ruby<span class="pl-k">-</span>define<span class="pl-k">-</span>method, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> ruby<span class="pl-k">-</span>strftime<span class="pl-k">-</span>reference, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> script, v2.<span class="pl-ii">15</span>.<span class="pl-ii">1</span> spacegray<span class="pl-k">-</span>dark<span class="pl-k">-</span>ui, v0.<span class="pl-ii">5</span>.<span class="pl-ii">0</span> trailing<span class="pl-k">-</span>spaces, v0.<span class="pl-ii">2</span>.<span class="pl-ii">3</span> travis<span class="pl-k">-</span>ci<span class="pl-k">-</span>status, v0.<span class="pl-ii">11</span>.<span class="pl-ii">0</span> visual<span class="pl-k">-</span>bell, v0.<span class="pl-ii">9</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>
0
<h2 dir="auto">Exception</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════ The following assertion was thrown during a scheduler callback: Child with id 36 is invisible and should not be added to tree. 'package:flutter/src/semantics/semantics.dart': Failed assertion: line 370 pos 16: '!child.isInvisible' Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new When the exception was thrown, this was the stack: ════════════════════════════════════════════════════════════════════════════════════════════════════"><pre class="notranslate"><code class="notranslate">══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════ The following assertion was thrown during a scheduler callback: Child with id 36 is invisible and should not be added to tree. 'package:flutter/src/semantics/semantics.dart': Failed assertion: line 370 pos 16: '!child.isInvisible' Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new When the exception was thrown, this was the stack: ════════════════════════════════════════════════════════════════════════════════════════════════════ </code></pre></div> <h2 dir="auto">flutter analyze</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing /Users/hao/Documents/flutter_proj/shop... No issues found! Ran in 5.8s"><pre class="notranslate"><code class="notranslate">Analyzing /Users/hao/Documents/flutter_proj/shop... No issues found! Ran in 5.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 (on Mac OS X 10.13.1 17B1003, locale zh-Hans-CN, channel alpha) • Flutter at /Users/hao/Documents/flutter • Framework revision d957c8f040 (3 days ago), 2017-11-30 13:29:59 -0800 • Engine revision 77d8acb9be • Tools Dart version 1.25.0-dev.11.0 • Engine Dart version 2.0.0-dev.9.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3) • Android SDK at /Users/hao/Library/Android/sdk • Unable to locate Android NDK. • Unable to locate compiler in Android NDK. • Platform android-25, build-tools 25.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_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 9.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.1, Build version 9B55 • ios-deploy 1.9.2 • CocoaPods version 1.3.1 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] Connected devices • iPhone 6s • AB7E1A1A-2F6B-469E-BA9F-BFAFA8C9A288 • ios • iOS 11.1 (simulator) "><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.13.1 17B1003, locale zh-Hans-CN, channel alpha) • Flutter at /Users/hao/Documents/flutter • Framework revision d957c8f040 (3 days ago), 2017-11-30 13:29:59 -0800 • Engine revision 77d8acb9be • Tools Dart version 1.25.0-dev.11.0 • Engine Dart version 2.0.0-dev.9.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3) • Android SDK at /Users/hao/Library/Android/sdk • Unable to locate Android NDK. • Unable to locate compiler in Android NDK. • Platform android-25, build-tools 25.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_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 9.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.1, Build version 9B55 • ios-deploy 1.9.2 • CocoaPods version 1.3.1 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] Connected devices • iPhone 6s • AB7E1A1A-2F6B-469E-BA9F-BFAFA8C9A288 • ios • iOS 11.1 (simulator) </code></pre></div> <h3 dir="auto">What does this exception mean?</h3>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Set up two string-based platform message channels between Flutter and Android, with Flutter sending on one channel and Android sending on the other. Send replies on both sides, and configure reply handlers on both sides.</p> <p dir="auto">If you send or reply <code class="notranslate">null</code> or <code class="notranslate">''</code> from Flutter, it is received as <code class="notranslate">''</code> on the Android platform.<br> If you send or reply <code class="notranslate">null</code> or <code class="notranslate">''</code> from Android, it is received as <code class="notranslate">null</code> in the Flutter app.</p> <p dir="auto">I would have expected <code class="notranslate">null</code> and the empty string to be communicated faithfully. And, barring that, the behavior to be independent of the direction of communication.</p> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter doctor [✓] Flutter (on Linux, channel master) • Flutter at /usr/local/google/home/mravn/github/flutter • Framework revision a73df87986 (4 hours ago), 2017-02-28 10:51:52 • Engine revision 335daf1930 • Tools Dart version 1.23.0-dev.0.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.2) • Android SDK at /usr/local/google/home/mravn/Android/Sdk • Platform android-25, build-tools 25.0.2 • OpenJDK Runtime Environment (build 1.8.0_112-google-v7-146844476-143772575) [✓] Android Studio (version 2.2) • Android Studio at /opt/android-studio-with-blaze-2.2 • Gradle version 2.14.1 [✓] Android Studio (version 2.2) • Android Studio at /opt/android-studio-2.2 • Gradle version 2.14.1 [✓] Android Studio (version 2.1) • Android Studio at /opt/android-studio-2.1 • Gradle version 2.14.1 [✓] Android Studio (version unknown) • Android Studio at /opt/android-studio-stable • android-studio-dir = /opt/android-studio-stable • Gradle version 2.14.1 [✓] Gradle (2.14.1) • gradle-dir = /opt/android-studio-stable/gradle/gradle-2.14.1 • Consider removing the gradle-dir setting to use Gradle from Android Studio. [✓] IntelliJ IDEA Community Edition (version 2016.1) • Dart plugin version 145.971.7 • Flutter plugin version 0.1.1 [✓] IntelliJ IDEA Community Edition (version 2016.2) • Dart plugin version 162.2485 • Flutter plugin version 0.1.3 [✓] IntelliJ IDEA Ultimate Edition (version 2016.3) • Dart plugin version 163.13137 • Flutter plugin version 0.1.11 [✓] IntelliJ IDEA Ultimate Edition (version 2016.2) • Dart plugin version 162.2924 • Flutter plugin version 0.1.8.1 [✓] Connected devices • Nexus 5X • 00bff34682e4b2ab • android-arm • Android 7.1.1 (API 25)"><pre class="notranslate"><code class="notranslate">$ flutter doctor [✓] Flutter (on Linux, channel master) • Flutter at /usr/local/google/home/mravn/github/flutter • Framework revision a73df87986 (4 hours ago), 2017-02-28 10:51:52 • Engine revision 335daf1930 • Tools Dart version 1.23.0-dev.0.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.2) • Android SDK at /usr/local/google/home/mravn/Android/Sdk • Platform android-25, build-tools 25.0.2 • OpenJDK Runtime Environment (build 1.8.0_112-google-v7-146844476-143772575) [✓] Android Studio (version 2.2) • Android Studio at /opt/android-studio-with-blaze-2.2 • Gradle version 2.14.1 [✓] Android Studio (version 2.2) • Android Studio at /opt/android-studio-2.2 • Gradle version 2.14.1 [✓] Android Studio (version 2.1) • Android Studio at /opt/android-studio-2.1 • Gradle version 2.14.1 [✓] Android Studio (version unknown) • Android Studio at /opt/android-studio-stable • android-studio-dir = /opt/android-studio-stable • Gradle version 2.14.1 [✓] Gradle (2.14.1) • gradle-dir = /opt/android-studio-stable/gradle/gradle-2.14.1 • Consider removing the gradle-dir setting to use Gradle from Android Studio. [✓] IntelliJ IDEA Community Edition (version 2016.1) • Dart plugin version 145.971.7 • Flutter plugin version 0.1.1 [✓] IntelliJ IDEA Community Edition (version 2016.2) • Dart plugin version 162.2485 • Flutter plugin version 0.1.3 [✓] IntelliJ IDEA Ultimate Edition (version 2016.3) • Dart plugin version 163.13137 • Flutter plugin version 0.1.11 [✓] IntelliJ IDEA Ultimate Edition (version 2016.2) • Dart plugin version 162.2924 • Flutter plugin version 0.1.8.1 [✓] Connected devices • Nexus 5X • 00bff34682e4b2ab • android-arm • Android 7.1.1 (API 25) </code></pre></div>
0
<p dir="auto">The line (</p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/numpy/numpy/blob/843792b6d349133114930911424772e6bbbc0c9c/numpy/core/numeric.py#L2157">numpy/numpy/core/numeric.py</a> </p> <p class="mb-0 color-fg-muted"> Line 2157 in <a data-pjax="true" class="commit-tease-sha" href="/numpy/numpy/commit/843792b6d349133114930911424772e6bbbc0c9c">843792b</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="L2157" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2157"></td> <td id="LC2157" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-en">all</span>(<span class="pl-en">less_equal</span>(<span class="pl-en">abs</span>(<span class="pl-s1">x</span><span class="pl-c1">-</span><span class="pl-s1">y</span>), <span class="pl-s1">atol</span> <span class="pl-c1">+</span> <span class="pl-s1">rtol</span> <span class="pl-c1">*</span> <span class="pl-en">abs</span>(<span class="pl-s1">y</span>))) </td> </tr> </tbody></table> </div> </div> ):<p></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="r = all(less_equal(abs(x-y), atol + rtol * abs(y)))"><pre class="notranslate"><code class="notranslate">r = all(less_equal(abs(x-y), atol + rtol * abs(y))) </code></pre></div> <p dir="auto">abs(y) can be negative if y contains the smallest negative integer.</p> <p dir="auto">The following demonstrates the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; a=np.int32(-2147483648) &gt;&gt;&gt; a -2147483648 &gt;&gt;&gt; a==a True &gt;&gt;&gt; abs(a) -2147483648 &gt;&gt;&gt; np.allclose(a, a) False"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; a=np.int32(-2147483648) &gt;&gt;&gt; a -2147483648 &gt;&gt;&gt; a==a True &gt;&gt;&gt; abs(a) -2147483648 &gt;&gt;&gt; np.allclose(a, a) False </code></pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1684" rel="nofollow">http://projects.scipy.org/numpy/ticket/1684</a> on 2010-11-22 by trac user lamblin, assigned to unknown.</em></p> <p dir="auto">If I create an array containing the minimal value of an int dtype, for instance an 'int8' array containing -128, numpy.allclose fails to detect it is "close" to itself, although it is equal.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; a = numpy.asarray(-128, dtype='int8') &gt;&gt;&gt; numpy.all(a == a) True &gt;&gt;&gt; numpy.allclose(a, a) False"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; a = numpy.asarray(-128, dtype='int8') &gt;&gt;&gt; numpy.all(a == a) True &gt;&gt;&gt; numpy.allclose(a, a) False </code></pre></div> <p dir="auto">I would expect:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; numpy.allclose(a, a) True"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; numpy.allclose(a, a) True </code></pre></div> <p dir="auto">This is due to the fact that the tolerance uses numpy.absolute, and in that case, it is negative:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; numpy.absolute(a) array([-128], dtype=int8)"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; numpy.absolute(a) array([-128], dtype=int8) </code></pre></div> <p dir="auto">I reproduced the same with int16 and -2<strong>15, int32 and -2</strong>31, and int64 and -2**63.</p>
1
<p dir="auto">Perhaps I overlooked it browsing through the json file but i didn't see another means to achieve transparency and i'm not a fan of the acrylic effects blurring factor or the fact that it turns off when the window is not selected. The traditional console provides for a static opacity just like in most nix envs, i'd hope it's just a matter of time before it's implemented here?</p>
<p dir="auto">Multiline text pasted from the clipboard includes CRLF pairs in all cases; this is inappropriate for "Unix-space" sessions, such as WSL.</p> <h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.145] Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.145] Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Select multiline text in Terminal.<br> Copy it (via right-click, ostensibly)<br> Paste it (again via right-click)</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">When pasting into a Unix-space session -- such as WSL -- pasted text should have a reasonable set of line-ending characters.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Line endings are "doubled" on text paste to Unix-space sessions.</p>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">Integer overflow when doing 1x1 convolution on very large tensor</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">This is the minimal code example that produces this bug.</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 conv = nn.Conv2d(128, 3, kernel_size=1).half().cuda() test_tensor = torch.rand((1, 128, 4096, 4096), device='cuda', dtype=torch.float16) with torch.no_grad(): out_tensor = conv(test_tensor)"><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-s1">conv</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Conv2d</span>(<span class="pl-c1">128</span>, <span class="pl-c1">3</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">half</span>().<span class="pl-en">cuda</span>() <span class="pl-s1">test_tensor</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>((<span class="pl-c1">1</span>, <span class="pl-c1">128</span>, <span class="pl-c1">4096</span>, <span class="pl-c1">4096</span>), <span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-s">'cuda'</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">torch</span>.<span class="pl-s1">float16</span>) <span class="pl-k">with</span> <span class="pl-s1">torch</span>.<span class="pl-en">no_grad</span>(): <span class="pl-s1">out_tensor</span> <span class="pl-c1">=</span> <span class="pl-en">conv</span>(<span class="pl-s1">test_tensor</span>)</pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) &lt;ipython-input-1-28bf39f6ead7&gt; in &lt;module&gt;() 7 8 with torch.no_grad(): ----&gt; 9 out_tensor = conv(test_tensor) 2 frames /usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs) 720 result = self._slow_forward(*input, **kwargs) 721 else: --&gt; 722 result = self.forward(*input, **kwargs) 723 for hook in itertools.chain( 724 _global_forward_hooks.values(), /usr/local/lib/python3.6/dist-packages/torch/nn/modules/conv.py in forward(self, input) 417 418 def forward(self, input: Tensor) -&gt; Tensor: --&gt; 419 return self._conv_forward(input, self.weight) 420 421 class Conv3d(_ConvNd): /usr/local/lib/python3.6/dist-packages/torch/nn/modules/conv.py in _conv_forward(self, input, weight) 414 _pair(0), self.dilation, self.groups) 415 return F.conv2d(input, weight, self.bias, self.stride, --&gt; 416 self.padding, self.dilation, self.groups) 417 418 def forward(self, input: Tensor) -&gt; Tensor: RuntimeError: N &gt; 0 INTERNAL ASSERT FAILED at &quot;/pytorch/aten/src/ATen/cuda/detail/KernelUtils.h&quot;:27, please report a bug to PyTorch. CUDA kernel launch blocks must be positive, but got N=-2147483648"><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) &lt;ipython-input-1-28bf39f6ead7&gt; in &lt;module&gt;() 7 8 with torch.no_grad(): ----&gt; 9 out_tensor = conv(test_tensor) 2 frames /usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs) 720 result = self._slow_forward(*input, **kwargs) 721 else: --&gt; 722 result = self.forward(*input, **kwargs) 723 for hook in itertools.chain( 724 _global_forward_hooks.values(), /usr/local/lib/python3.6/dist-packages/torch/nn/modules/conv.py in forward(self, input) 417 418 def forward(self, input: Tensor) -&gt; Tensor: --&gt; 419 return self._conv_forward(input, self.weight) 420 421 class Conv3d(_ConvNd): /usr/local/lib/python3.6/dist-packages/torch/nn/modules/conv.py in _conv_forward(self, input, weight) 414 _pair(0), self.dilation, self.groups) 415 return F.conv2d(input, weight, self.bias, self.stride, --&gt; 416 self.padding, self.dilation, self.groups) 417 418 def forward(self, input: Tensor) -&gt; Tensor: RuntimeError: N &gt; 0 INTERNAL ASSERT FAILED at "/pytorch/aten/src/ATen/cuda/detail/KernelUtils.h":27, please report a bug to PyTorch. CUDA kernel launch blocks must be positive, but got N=-2147483648 </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">No RunTimeError, out_tensor is float16 tensor of shape 1x3x4096x4096.</p> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.6.0+cu101<br> Is debug build: False<br> CUDA used to build PyTorch: 10.1</p> <p dir="auto">OS: Ubuntu 18.04.3 LTS (x86_64)<br> GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0<br> Clang version: 6.0.0-1ubuntu2 (tags/RELEASE_600/final)<br> CMake version: version 3.12.0</p> <p dir="auto">Python version: 3.6 (64-bit runtime)<br> Is CUDA available: True<br> CUDA runtime version: 10.1.243<br> GPU models and configuration: GPU 0: Tesla T4<br> Nvidia driver version: 418.67<br> cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5</p> <p dir="auto">Versions of relevant libraries:<br> [pip3] numpy==1.18.5<br> [pip3] torch==1.6.0+cu101<br> [pip3] torchsummary==1.5.1<br> [pip3] torchtext==0.3.1<br> [pip3] torchvision==0.7.0+cu101<br> [conda] Could not collect</p> <h2 dir="auto">Additional context</h2> <p dir="auto">I ran this in Google Colab.<br> If I change number of groups in convolution to any N &gt; 1, everything works fine.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</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> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ngimel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ngimel">@ngimel</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">Get following error message when running <code class="notranslate">torch.nn.Conv3d.forward()</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="N &gt; 0 INTERNAL ASSERT FAILED at /tmp/pip-req-build-ltpwwdv7/aten/src/ATen/cuda/detail/KernelUtils.h:27, please report a bug to PyTorch. CUDA kernel launch blocks must be positive, but got N=-2147483648"><pre class="notranslate"><code class="notranslate">N &gt; 0 INTERNAL ASSERT FAILED at /tmp/pip-req-build-ltpwwdv7/aten/src/ATen/cuda/detail/KernelUtils.h:27, please report a bug to PyTorch. CUDA kernel launch blocks must be positive, but got N=-2147483648 </code></pre></div> <h2 dir="auto">To Reproduce</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch torch.backends.cudnn.enabled=False x = torch.rand(1, 32, 512, 512, 256).to('cuda:0') m = torch.nn.Conv3d(32, 1, kernel_size=1, padding=0,stride=1,bias=False).to('cuda:0') x = m(x) # Assert!!"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-s1">torch</span>.<span class="pl-s1">backends</span>.<span class="pl-s1">cudnn</span>.<span class="pl-s1">enabled</span><span class="pl-c1">=</span><span class="pl-c1">False</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">1</span>, <span class="pl-c1">32</span>, <span class="pl-c1">512</span>, <span class="pl-c1">512</span>, <span class="pl-c1">256</span>).<span class="pl-en">to</span>(<span class="pl-s">'cuda:0'</span>) <span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">Conv3d</span>(<span class="pl-c1">32</span>, <span class="pl-c1">1</span>, <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-c1">0</span>,<span class="pl-s1">stride</span><span class="pl-c1">=</span><span class="pl-c1">1</span>,<span class="pl-s1">bias</span><span class="pl-c1">=</span><span class="pl-c1">False</span>).<span class="pl-en">to</span>(<span class="pl-s">'cuda:0'</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-en">m</span>(<span class="pl-s1">x</span>) <span class="pl-c"># Assert!!</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs) 530 result = self._slow_forward(*input, **kwargs) 531 else: --&gt; 532 result = self.forward(*input, **kwargs) 533 for hook in self._forward_hooks.values(): 534 hook_result = hook(self, input, result) /opt/conda/lib/python3.6/site-packages/torch/nn/modules/conv.py in forward(self, input) 478 self.dilation, self.groups) 479 return F.conv3d(input, self.weight, self.bias, self.stride, --&gt; 480 self.padding, self.dilation, self.groups) 481 482 RuntimeError: N &gt; 0 INTERNAL ASSERT FAILED at /tmp/pip-req-build-ltpwwdv7/aten/src/ATen/cuda/detail/KernelUtils.h:27, please report a bug to PyTorch. CUDA kernel launch blocks must be positive, but got N=-2147483648"><pre class="notranslate"><code class="notranslate">/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs) 530 result = self._slow_forward(*input, **kwargs) 531 else: --&gt; 532 result = self.forward(*input, **kwargs) 533 for hook in self._forward_hooks.values(): 534 hook_result = hook(self, input, result) /opt/conda/lib/python3.6/site-packages/torch/nn/modules/conv.py in forward(self, input) 478 self.dilation, self.groups) 479 return F.conv3d(input, self.weight, self.bias, self.stride, --&gt; 480 self.padding, self.dilation, self.groups) 481 482 RuntimeError: N &gt; 0 INTERNAL ASSERT FAILED at /tmp/pip-req-build-ltpwwdv7/aten/src/ATen/cuda/detail/KernelUtils.h:27, please report a bug to PyTorch. CUDA kernel launch blocks must be positive, but got N=-2147483648 </code></pre></div> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.4.0a0+a5b4d78<br> Is debug build: False<br> CUDA used to build PyTorch: 10.2</p> <p dir="auto">OS: Ubuntu 18.04.3 LTS (x86_64)<br> GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0<br> Clang version: Could not collect<br> CMake version: version 3.14.0</p> <p dir="auto">Python version: 3.6 (64-bit runtime)<br> Is CUDA available: True<br> CUDA runtime version: 10.2.89<br> GPU models and configuration:<br> GPU 0: Tesla V100-SXM2-32GB</p> <p dir="auto">Nvidia driver version: 440.33.01<br> cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</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> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ngimel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ngimel">@ngimel</a></p>
1
<p dir="auto">When the while loop is infinite (say by not incrementing the iterator), the error is not surfaced, and the last test does not appear.The current behavior does not indicate that there is a problem with the code; the experience just breaks silently.</p> <p dir="auto">This may be expected behavior, as the infinite evaluation will preclude the second test running, but there may be a more elegant way to surface this issue. Let me know how best to follow up on this, or if it is duplicated elsewhere.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13111622/11424788/cf92a53c-9404-11e5-90f5-e58f2e443b24.png"><img src="https://cloud.githubusercontent.com/assets/13111622/11424788/cf92a53c-9404-11e5-90f5-e58f2e443b24.png" alt="screen shot 2015-11-26 at 6 13 13 am" style="max-width: 100%;"></a></p> <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-iterate-with-javascript-while-loops?solution=var%20myArray%20%3D%20%5B%5D%3B%0Avar%20i%20%3D%200%3B%0A%0A%2F%2F%20Only%20change%20code%20below%20this%20line.%0A%0Awhile%20%28i%20%3C%205%29%7B%0A%20%20myArray.push%28i%29%3B%0A%20%20%0A%7D%0A%0A%2F%2F%20Only%20change%20code%20above%20this%20line.%0A%0Aif%28typeof%28myArray%29%20!%3D%3D%20%22undefined%22%29%7B%28function%28%29%7Breturn%20myArray%3B%7D%29%28%29%3B%7D%0A%0A" rel="nofollow">Waypoint: Iterate with JavaScript While Loops</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var myArray = []; var i = 0; // Only change code below this line. while (i &lt; 5){ myArray.push(i); } // Only change code above this line. if(typeof(myArray) !== &quot;undefined&quot;){(function(){return myArray;})();} "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myArray</span> <span class="pl-c1">=</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">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-c">// Only change code below this line.</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-s1">myArray</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// Only change code above this line.</span> <span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-k">typeof</span><span class="pl-kos">(</span><span class="pl-s1">myArray</span><span class="pl-kos">)</span> <span class="pl-c1">!==</span> <span class="pl-s">"undefined"</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-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span><span class="pl-k">return</span> <span class="pl-s1">myArray</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">Thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/d3ddd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/d3ddd">@d3ddd</a> for reporting this and including the link.</p> <p dir="auto">Warning - this will cause an infinite loop and crash your browser, but if you still take a look at the code and confirm it is indeed an infinite loop.</p> <p dir="auto">We used to have safeguards against infinite loops, but it seems those are no longer working (we've gotten several complaints in the past few days about this all the sudden).</p> <p dir="auto"><a href="http://freecodecamp.com/challenges/bonfire-spinal-tap-case#?solution=function%20spinalCase(str)%20%7B%0A%20%20%2F%2F%20%22It's%20such%20a%20fine%20line%20between%20stupid%2C%20and%20clever.%22%0A%20%20%2F%2F%20--David%20St.%20Hubbins%0A%20%20%0A%20%20if(str.indexOf('%20')%20%3D%3D%3D%20-1%20%26%26%20str.indexOf('_')%20%3D%3D%3D%20-1)%20%7B%0A%20%20%20%20%0A%20%20%20%20str%20%3D%20str.split('')%3B%0A%20%20%20%20%0A%20%20%20%20for(var%20i%3D0%3B%20i%3Cstr.length%3B%20i%2B%2B)%20%7B%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20if(str%5Bi%5D%20%3D%3D%3D%20str%5Bi%5D.toUpperCase())%20%7B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20str.splice(i%2C%200%2C%20'%20')%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%0A%20%20%20%20%7D%0A%20%20%20%20%0A%20%20%7D%0A%20%20%0A%20%20%0A%20%20%0A%20%20%20return%20str.replace(%2F%20%2Fg%2C%20'-').replace(%2F_%2Fg%2C%20'-').toLowerCase()%3B%0A%7D%0A%0AspinalCase('This%20Is%20Spinal%20Tap')%3B%0A%0A%2F%2FNOTES%3A%0A%2F%2F%20%20%20%20%20%20If%20no%20spaces%20-%20or%20_%20then%20Turn%20str%20into%20array.%20Look%20for%20capital%20letters%20and%20insert%20space%20before%20the%20capital%0A%2F%2F%20%20%20%20%20%20then%20you%20can%20join%20array%20back%20into%20screen%20and%20perfom%20classci%20regex%20like%20alrady%20done%20son.%0A" rel="nofollow">http://freecodecamp.com/challenges/bonfire-spinal-tap-case#?solution=function%20spinalCase(str)%20%7B%0A%20%20%2F%2F%20%22It's%20such%20a%20fine%20line%20between%20stupid%2C%20and%20clever.%22%0A%20%20%2F%2F%20--David%20St.%20Hubbins%0A%20%20%0A%20%20if(str.indexOf('%20')%20%3D%3D%3D%20-1%20%26%26%20str.indexOf('_')%20%3D%3D%3D%20-1)%20%7B%0A%20%20%20%20%0A%20%20%20%20str%20%3D%20str.split('')%3B%0A%20%20%20%20%0A%20%20%20%20for(var%20i%3D0%3B%20i%3Cstr.length%3B%20i%2B%2B)%20%7B%0A%20%20%20%20%20%20%0A%20%20%20%20%20%20if(str%5Bi%5D%20%3D%3D%3D%20str%5Bi%5D.toUpperCase())%20%7B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20str.splice(i%2C%200%2C%20'%20')%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%0A%20%20%20%20%7D%0A%20%20%20%20%0A%20%20%7D%0A%20%20%0A%20%20%0A%20%20%0A%20%20%20return%20str.replace(%2F%20%2Fg%2C%20'-').replace(%2F_%2Fg%2C%20'-').toLowerCase()%3B%0A%7D%0A%0AspinalCase('This%20Is%20Spinal%20Tap')%3B%0A%0A%2F%2FNOTES%3A%0A%2F%2F%20%20%20%20%20%20If%20no%20spaces%20-%20or%20_%20then%20Turn%20str%20into%20array.%20Look%20for%20capital%20letters%20and%20insert%20space%20before%20the%20capital%0A%2F%2F%20%20%20%20%20%20then%20you%20can%20join%20array%20back%20into%20screen%20and%20perfom%20classci%20regex%20like%20alrady%20done%20son.%0A</a></p>
1
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.0 (latest released)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Debian GNU/Linux 10 (buster)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow-providers-celery==2.1.0 apache-airflow-providers-mysql==2.1.1 apache-airflow-providers-postgres==2.3.0 apache-airflow-providers-sqlite==2.0.1"><pre class="notranslate"><code class="notranslate">apache-airflow-providers-celery==2.1.0 apache-airflow-providers-mysql==2.1.1 apache-airflow-providers-postgres==2.3.0 apache-airflow-providers-sqlite==2.0.1 </code></pre></div> <h3 dir="auto">Deployment</h3> <p dir="auto">Docker-Compose</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">docker-compose file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="version: &quot;2&quot; services: airflow-webserver: build: . image: airflow command: airflow webserver ports: - &quot;8080:8080&quot; airflow-scheduler: image: airflow command: airflow scheduler airflow-flower: image: airflow command: airflow celery flower ports: - &quot;5555:5555&quot; depends_on: - airflow-celery - airflow-webserver - airflow-scheduler - airflow-worker - airflow-broker airflow-worker: image: airflow command: airflow celery worker airflow-celery: image: mysql:8.0.19 environment: MYSQL_PASSWORD: ... MYSQL_USER: ... MYSQL_DATABASE: airflow MYSQL_HOST: airflow-celery airflow-broker: image: redis:5.0.7-alpine volumes: dbdata:"><pre class="notranslate"><code class="notranslate">version: "2" services: airflow-webserver: build: . image: airflow command: airflow webserver ports: - "8080:8080" airflow-scheduler: image: airflow command: airflow scheduler airflow-flower: image: airflow command: airflow celery flower ports: - "5555:5555" depends_on: - airflow-celery - airflow-webserver - airflow-scheduler - airflow-worker - airflow-broker airflow-worker: image: airflow command: airflow celery worker airflow-celery: image: mysql:8.0.19 environment: MYSQL_PASSWORD: ... MYSQL_USER: ... MYSQL_DATABASE: airflow MYSQL_HOST: airflow-celery airflow-broker: image: redis:5.0.7-alpine volumes: dbdata: </code></pre></div> <p dir="auto">Dockerfile:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM python:3.8 COPY requirements.txt . RUN pip install -U pip RUN pip install -r requirements.txt"><pre class="notranslate"><code class="notranslate">FROM python:3.8 COPY requirements.txt . RUN pip install -U pip RUN pip install -r requirements.txt </code></pre></div> <p dir="auto">requirements.txt:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow[celery,postgres,slack,docker,redis,mysql,http]==2.2.0 kombu==4.6.10 python-dotenv psycopg2-binary ..."><pre class="notranslate"><code class="notranslate">apache-airflow[celery,postgres,slack,docker,redis,mysql,http]==2.2.0 kombu==4.6.10 python-dotenv psycopg2-binary ... </code></pre></div> <h3 dir="auto">What happened</h3> <p dir="auto">After updating <code class="notranslate">requirements.txt</code> file to use Airflow <code class="notranslate">2.2.0</code> instead of <code class="notranslate">2.1.4</code>, I ran:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/airflow $ docker-compose build --no-cache ~/airflow $ docker-compose up -d --force ~/airflow $ docker exec -it airflow_airflow-webserver_1 airflow db upgrade"><pre class="notranslate"><code class="notranslate">~/airflow $ docker-compose build --no-cache ~/airflow $ docker-compose up -d --force ~/airflow $ docker exec -it airflow_airflow-webserver_1 airflow db upgrade </code></pre></div> <p dir="auto">Which throws this exception:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DB: mysql://airflow:***@airflow-celery/airflow [2021-10-13 12:22:57,699] {db.py:823} INFO - Creating tables INFO [alembic.runtime.migration] Context impl MySQLImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. INFO [alembic.runtime.migration] Running upgrade 142555e44c17 -&gt; 7b2661a43ba3, TaskInstance keyed to DagRun Traceback (most recent call last): File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1276, in _execute_context self.dialect.do_execute( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py&quot;, line 608, in do_execute cursor.execute(statement, parameters) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py&quot;, line 206, in execute res = self._query(query) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py&quot;, line 319, in _query db.query(q) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py&quot;, line 259, in query _mysql.connection.query(self, query) MySQLdb._exceptions.OperationalError: (1091, &quot;Can't DROP 'dag_id'; check that column/key exists&quot;) The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/usr/local/bin/airflow&quot;, line 8, in &lt;module&gt; sys.exit(main()) File &quot;/usr/local/lib/python3.8/site-packages/airflow/__main__.py&quot;, line 40, in main args.func(args) File &quot;/usr/local/lib/python3.8/site-packages/airflow/cli/cli_parser.py&quot;, line 48, in command return func(*args, **kwargs) File &quot;/usr/local/lib/python3.8/site-packages/airflow/utils/cli.py&quot;, line 92, in wrapper return f(*args, **kwargs) File &quot;/usr/local/lib/python3.8/site-packages/airflow/cli/commands/db_command.py&quot;, line 48, in upgradedb db.upgradedb() File &quot;/usr/local/lib/python3.8/site-packages/airflow/utils/session.py&quot;, line 70, in wrapper return func(*args, session=session, **kwargs) File &quot;/usr/local/lib/python3.8/site-packages/airflow/utils/db.py&quot;, line 824, in upgradedb command.upgrade(config, 'heads') File &quot;/usr/local/lib/python3.8/site-packages/alembic/command.py&quot;, line 320, in upgrade script.run_env() File &quot;/usr/local/lib/python3.8/site-packages/alembic/script/base.py&quot;, line 563, in run_env util.load_python_file(self.dir, &quot;env.py&quot;) File &quot;/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py&quot;, line 92, in load_python_file module = load_module_py(module_id, path) File &quot;/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py&quot;, line 108, in load_module_py spec.loader.exec_module(module) # type: ignore File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 848, in exec_module File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed File &quot;/usr/local/lib/python3.8/site-packages/airflow/migrations/env.py&quot;, line 107, in &lt;module&gt; run_migrations_online() File &quot;/usr/local/lib/python3.8/site-packages/airflow/migrations/env.py&quot;, line 101, in run_migrations_online context.run_migrations() File &quot;&lt;string&gt;&quot;, line 8, in run_migrations File &quot;/usr/local/lib/python3.8/site-packages/alembic/runtime/environment.py&quot;, line 851, in run_migrations self.get_context().run_migrations(**kw) File &quot;/usr/local/lib/python3.8/site-packages/alembic/runtime/migration.py&quot;, line 620, in run_migrations step.migration_fn(**kw) File &quot;/usr/local/lib/python3.8/site-packages/airflow/migrations/versions/7b2661a43ba3_taskinstance_keyed_to_dagrun.py&quot;, line 140, in upgrade batch_op.create_unique_constraint('dag_run_dag_id_run_id_key', ['dag_id', 'run_id']) File &quot;/usr/local/lib/python3.8/contextlib.py&quot;, line 120, in __exit__ next(self.gen) File &quot;/usr/local/lib/python3.8/site-packages/alembic/operations/base.py&quot;, line 374, in batch_alter_table impl.flush() File &quot;/usr/local/lib/python3.8/site-packages/alembic/operations/batch.py&quot;, line 107, in flush fn(*arg, **kw) File &quot;/usr/local/lib/python3.8/site-packages/alembic/ddl/mysql.py&quot;, line 150, in drop_constraint super(MySQLImpl, self).drop_constraint(const) File &quot;/usr/local/lib/python3.8/site-packages/alembic/ddl/impl.py&quot;, line 340, in drop_constraint self._exec(schema.DropConstraint(const)) File &quot;/usr/local/lib/python3.8/site-packages/alembic/ddl/impl.py&quot;, line 197, in _exec return conn.execute(construct, multiparams) File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1011, in execute return meth(self, multiparams, params) File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/ddl.py&quot;, line 72, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1068, in _execute_ddl ret = self._execute_context( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1316, in _execute_context self._handle_dbapi_exception( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1510, in _handle_dbapi_exception util.raise_( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py&quot;, line 182, in raise_ raise exception File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1276, in _execute_context self.dialect.do_execute( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py&quot;, line 608, in do_execute cursor.execute(statement, parameters) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py&quot;, line 206, in execute res = self._query(query) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py&quot;, line 319, in _query db.query(q) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py&quot;, line 259, in query _mysql.connection.query(self, query) sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (1091, &quot;Can't DROP 'dag_id'; check that column/key exists&quot;) [SQL: ALTER TABLE dag_run DROP INDEX dag_id] (Background on this error at: http://sqlalche.me/e/13/e3q8)"><pre class="notranslate"><code class="notranslate">DB: mysql://airflow:***@airflow-celery/airflow [2021-10-13 12:22:57,699] {db.py:823} INFO - Creating tables INFO [alembic.runtime.migration] Context impl MySQLImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. INFO [alembic.runtime.migration] Running upgrade 142555e44c17 -&gt; 7b2661a43ba3, TaskInstance keyed to DagRun Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context self.dialect.do_execute( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute cursor.execute(statement, parameters) File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute res = self._query(query) File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query db.query(q) File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 259, in query _mysql.connection.query(self, query) MySQLdb._exceptions.OperationalError: (1091, "Can't DROP 'dag_id'; check that column/key exists") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/bin/airflow", line 8, in &lt;module&gt; sys.exit(main()) File "/usr/local/lib/python3.8/site-packages/airflow/__main__.py", line 40, in main args.func(args) File "/usr/local/lib/python3.8/site-packages/airflow/cli/cli_parser.py", line 48, in command return func(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/airflow/utils/cli.py", line 92, in wrapper return f(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/airflow/cli/commands/db_command.py", line 48, in upgradedb db.upgradedb() File "/usr/local/lib/python3.8/site-packages/airflow/utils/session.py", line 70, in wrapper return func(*args, session=session, **kwargs) File "/usr/local/lib/python3.8/site-packages/airflow/utils/db.py", line 824, in upgradedb command.upgrade(config, 'heads') File "/usr/local/lib/python3.8/site-packages/alembic/command.py", line 320, in upgrade script.run_env() File "/usr/local/lib/python3.8/site-packages/alembic/script/base.py", line 563, in run_env util.load_python_file(self.dir, "env.py") File "/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py", line 92, in load_python_file module = load_module_py(module_id, path) File "/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py", line 108, in load_module_py spec.loader.exec_module(module) # type: ignore File "&lt;frozen importlib._bootstrap_external&gt;", line 848, in exec_module File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed File "/usr/local/lib/python3.8/site-packages/airflow/migrations/env.py", line 107, in &lt;module&gt; run_migrations_online() File "/usr/local/lib/python3.8/site-packages/airflow/migrations/env.py", line 101, in run_migrations_online context.run_migrations() File "&lt;string&gt;", line 8, in run_migrations File "/usr/local/lib/python3.8/site-packages/alembic/runtime/environment.py", line 851, in run_migrations self.get_context().run_migrations(**kw) File "/usr/local/lib/python3.8/site-packages/alembic/runtime/migration.py", line 620, in run_migrations step.migration_fn(**kw) File "/usr/local/lib/python3.8/site-packages/airflow/migrations/versions/7b2661a43ba3_taskinstance_keyed_to_dagrun.py", line 140, in upgrade batch_op.create_unique_constraint('dag_run_dag_id_run_id_key', ['dag_id', 'run_id']) File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__ next(self.gen) File "/usr/local/lib/python3.8/site-packages/alembic/operations/base.py", line 374, in batch_alter_table impl.flush() File "/usr/local/lib/python3.8/site-packages/alembic/operations/batch.py", line 107, in flush fn(*arg, **kw) File "/usr/local/lib/python3.8/site-packages/alembic/ddl/mysql.py", line 150, in drop_constraint super(MySQLImpl, self).drop_constraint(const) File "/usr/local/lib/python3.8/site-packages/alembic/ddl/impl.py", line 340, in drop_constraint self._exec(schema.DropConstraint(const)) File "/usr/local/lib/python3.8/site-packages/alembic/ddl/impl.py", line 197, in _exec return conn.execute(construct, multiparams) File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1011, in execute return meth(self, multiparams, params) File "/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1068, in _execute_ddl ret = self._execute_context( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context self._handle_dbapi_exception( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1510, in _handle_dbapi_exception util.raise_( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ raise exception File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context self.dialect.do_execute( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute cursor.execute(statement, parameters) File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute res = self._query(query) File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query db.query(q) File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 259, in query _mysql.connection.query(self, query) sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (1091, "Can't DROP 'dag_id'; check that column/key exists") [SQL: ALTER TABLE dag_run DROP INDEX dag_id] (Background on this error at: http://sqlalche.me/e/13/e3q8) </code></pre></div> <p dir="auto">Trying to drop the index manually, gives the same output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/airflow $ docker exec -it airflow_airflow-celery_1 mysql mysql&gt; use airflow; mysql&gt; ALTER TABLE airflow.dag_run DROP INDEX dag_id; ERROR 1091 (42000): Can't DROP 'dag_id'; check that column/key exists"><pre class="notranslate"><code class="notranslate">~/airflow $ docker exec -it airflow_airflow-celery_1 mysql mysql&gt; use airflow; mysql&gt; ALTER TABLE airflow.dag_run DROP INDEX dag_id; ERROR 1091 (42000): Can't DROP 'dag_id'; check that column/key exists </code></pre></div> <h3 dir="auto">What you expected to happen</h3> <p dir="auto"><code class="notranslate">airflow db upgrade</code> to not fail</p> <h3 dir="auto">How to reproduce</h3> <ul dir="auto"> <li>Copy the provided <code class="notranslate">docker-compose.yml</code> file content in conjunction with <code class="notranslate">Dockerfile</code> &amp; <code class="notranslate">requirements.txt</code> with Airflow <code class="notranslate">2.1.4</code></li> <li>Init db</li> <li>build docker containers</li> <li>all services should to be up &amp; running</li> <li>now update <code class="notranslate">requirements.txt</code> to use <code class="notranslate">2.2.0</code></li> <li>build docker containers again</li> <li>Run <code class="notranslate">airflow db upgrade</code> command</li> <li>You would see error in stdout as well as <code class="notranslate">worker</code> service fails to run</li> </ul> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.0 (latest released)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Debian GNU/Linux 10 (buster)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow-providers-celery==2.1.0 apache-airflow-providers-mysql==2.1.1 apache-airflow-providers-postgres==2.3.0 apache-airflow-providers-sqlite==2.0.1"><pre class="notranslate"><code class="notranslate">apache-airflow-providers-celery==2.1.0 apache-airflow-providers-mysql==2.1.1 apache-airflow-providers-postgres==2.3.0 apache-airflow-providers-sqlite==2.0.1 </code></pre></div> <h3 dir="auto">Deployment</h3> <p dir="auto">Docker-Compose</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">docker-compose file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="version: &quot;2&quot; services: airflow-webserver: build: . image: airflow command: airflow webserver ports: - &quot;8080:8080&quot; airflow-scheduler: image: airflow command: airflow scheduler airflow-flower: image: airflow command: airflow celery flower ports: - &quot;5555:5555&quot; depends_on: - airflow-celery - airflow-webserver - airflow-scheduler - airflow-worker - airflow-broker airflow-worker: image: airflow command: airflow celery worker airflow-celery: image: mysql:8.0.19 environment: MYSQL_PASSWORD: ... MYSQL_USER: ... MYSQL_DATABASE: airflow MYSQL_HOST: airflow-celery airflow-broker: image: redis:5.0.7-alpine volumes: dbdata:"><pre class="notranslate"><code class="notranslate">version: "2" services: airflow-webserver: build: . image: airflow command: airflow webserver ports: - "8080:8080" airflow-scheduler: image: airflow command: airflow scheduler airflow-flower: image: airflow command: airflow celery flower ports: - "5555:5555" depends_on: - airflow-celery - airflow-webserver - airflow-scheduler - airflow-worker - airflow-broker airflow-worker: image: airflow command: airflow celery worker airflow-celery: image: mysql:8.0.19 environment: MYSQL_PASSWORD: ... MYSQL_USER: ... MYSQL_DATABASE: airflow MYSQL_HOST: airflow-celery airflow-broker: image: redis:5.0.7-alpine volumes: dbdata: </code></pre></div> <p dir="auto">Dockerfile:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM python:3.8 COPY requirements.txt . RUN pip install -U pip RUN pip install -r requirements.txt"><pre class="notranslate"><code class="notranslate">FROM python:3.8 COPY requirements.txt . RUN pip install -U pip RUN pip install -r requirements.txt </code></pre></div> <p dir="auto">requirements.txt:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow[celery,postgres,slack,docker,redis,mysql,http]==2.2.0 kombu==4.6.10 python-dotenv psycopg2-binary ..."><pre class="notranslate"><code class="notranslate">apache-airflow[celery,postgres,slack,docker,redis,mysql,http]==2.2.0 kombu==4.6.10 python-dotenv psycopg2-binary ... </code></pre></div> <h3 dir="auto">What happened</h3> <p dir="auto">After updating <code class="notranslate">requirements.txt</code> file to use Airflow <code class="notranslate">2.2.0</code> instead of <code class="notranslate">2.1.4</code>, I ran:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/airflow $ docker-compose build --no-cache ~/airflow $ docker-compose up -d --force ~/airflow $ docker exec -it airflow_airflow-webserver_1 airflow db upgrade"><pre class="notranslate"><code class="notranslate">~/airflow $ docker-compose build --no-cache ~/airflow $ docker-compose up -d --force ~/airflow $ docker exec -it airflow_airflow-webserver_1 airflow db upgrade </code></pre></div> <p dir="auto">Which throws this exception:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DB: mysql://airflow:***@airflow-celery/airflow [2021-10-13 12:22:57,699] {db.py:823} INFO - Creating tables INFO [alembic.runtime.migration] Context impl MySQLImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. INFO [alembic.runtime.migration] Running upgrade 142555e44c17 -&gt; 7b2661a43ba3, TaskInstance keyed to DagRun Traceback (most recent call last): File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1276, in _execute_context self.dialect.do_execute( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py&quot;, line 608, in do_execute cursor.execute(statement, parameters) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py&quot;, line 206, in execute res = self._query(query) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py&quot;, line 319, in _query db.query(q) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py&quot;, line 259, in query _mysql.connection.query(self, query) MySQLdb._exceptions.OperationalError: (1091, &quot;Can't DROP 'dag_id'; check that column/key exists&quot;) The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/usr/local/bin/airflow&quot;, line 8, in &lt;module&gt; sys.exit(main()) File &quot;/usr/local/lib/python3.8/site-packages/airflow/__main__.py&quot;, line 40, in main args.func(args) File &quot;/usr/local/lib/python3.8/site-packages/airflow/cli/cli_parser.py&quot;, line 48, in command return func(*args, **kwargs) File &quot;/usr/local/lib/python3.8/site-packages/airflow/utils/cli.py&quot;, line 92, in wrapper return f(*args, **kwargs) File &quot;/usr/local/lib/python3.8/site-packages/airflow/cli/commands/db_command.py&quot;, line 48, in upgradedb db.upgradedb() File &quot;/usr/local/lib/python3.8/site-packages/airflow/utils/session.py&quot;, line 70, in wrapper return func(*args, session=session, **kwargs) File &quot;/usr/local/lib/python3.8/site-packages/airflow/utils/db.py&quot;, line 824, in upgradedb command.upgrade(config, 'heads') File &quot;/usr/local/lib/python3.8/site-packages/alembic/command.py&quot;, line 320, in upgrade script.run_env() File &quot;/usr/local/lib/python3.8/site-packages/alembic/script/base.py&quot;, line 563, in run_env util.load_python_file(self.dir, &quot;env.py&quot;) File &quot;/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py&quot;, line 92, in load_python_file module = load_module_py(module_id, path) File &quot;/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py&quot;, line 108, in load_module_py spec.loader.exec_module(module) # type: ignore File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 848, in exec_module File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed File &quot;/usr/local/lib/python3.8/site-packages/airflow/migrations/env.py&quot;, line 107, in &lt;module&gt; run_migrations_online() File &quot;/usr/local/lib/python3.8/site-packages/airflow/migrations/env.py&quot;, line 101, in run_migrations_online context.run_migrations() File &quot;&lt;string&gt;&quot;, line 8, in run_migrations File &quot;/usr/local/lib/python3.8/site-packages/alembic/runtime/environment.py&quot;, line 851, in run_migrations self.get_context().run_migrations(**kw) File &quot;/usr/local/lib/python3.8/site-packages/alembic/runtime/migration.py&quot;, line 620, in run_migrations step.migration_fn(**kw) File &quot;/usr/local/lib/python3.8/site-packages/airflow/migrations/versions/7b2661a43ba3_taskinstance_keyed_to_dagrun.py&quot;, line 140, in upgrade batch_op.create_unique_constraint('dag_run_dag_id_run_id_key', ['dag_id', 'run_id']) File &quot;/usr/local/lib/python3.8/contextlib.py&quot;, line 120, in __exit__ next(self.gen) File &quot;/usr/local/lib/python3.8/site-packages/alembic/operations/base.py&quot;, line 374, in batch_alter_table impl.flush() File &quot;/usr/local/lib/python3.8/site-packages/alembic/operations/batch.py&quot;, line 107, in flush fn(*arg, **kw) File &quot;/usr/local/lib/python3.8/site-packages/alembic/ddl/mysql.py&quot;, line 150, in drop_constraint super(MySQLImpl, self).drop_constraint(const) File &quot;/usr/local/lib/python3.8/site-packages/alembic/ddl/impl.py&quot;, line 340, in drop_constraint self._exec(schema.DropConstraint(const)) File &quot;/usr/local/lib/python3.8/site-packages/alembic/ddl/impl.py&quot;, line 197, in _exec return conn.execute(construct, multiparams) File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1011, in execute return meth(self, multiparams, params) File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/ddl.py&quot;, line 72, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1068, in _execute_ddl ret = self._execute_context( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1316, in _execute_context self._handle_dbapi_exception( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1510, in _handle_dbapi_exception util.raise_( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py&quot;, line 182, in raise_ raise exception File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1276, in _execute_context self.dialect.do_execute( File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py&quot;, line 608, in do_execute cursor.execute(statement, parameters) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py&quot;, line 206, in execute res = self._query(query) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py&quot;, line 319, in _query db.query(q) File &quot;/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py&quot;, line 259, in query _mysql.connection.query(self, query) sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (1091, &quot;Can't DROP 'dag_id'; check that column/key exists&quot;) [SQL: ALTER TABLE dag_run DROP INDEX dag_id] (Background on this error at: http://sqlalche.me/e/13/e3q8)"><pre class="notranslate"><code class="notranslate">DB: mysql://airflow:***@airflow-celery/airflow [2021-10-13 12:22:57,699] {db.py:823} INFO - Creating tables INFO [alembic.runtime.migration] Context impl MySQLImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. INFO [alembic.runtime.migration] Running upgrade 142555e44c17 -&gt; 7b2661a43ba3, TaskInstance keyed to DagRun Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context self.dialect.do_execute( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute cursor.execute(statement, parameters) File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute res = self._query(query) File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query db.query(q) File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 259, in query _mysql.connection.query(self, query) MySQLdb._exceptions.OperationalError: (1091, "Can't DROP 'dag_id'; check that column/key exists") The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/bin/airflow", line 8, in &lt;module&gt; sys.exit(main()) File "/usr/local/lib/python3.8/site-packages/airflow/__main__.py", line 40, in main args.func(args) File "/usr/local/lib/python3.8/site-packages/airflow/cli/cli_parser.py", line 48, in command return func(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/airflow/utils/cli.py", line 92, in wrapper return f(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/airflow/cli/commands/db_command.py", line 48, in upgradedb db.upgradedb() File "/usr/local/lib/python3.8/site-packages/airflow/utils/session.py", line 70, in wrapper return func(*args, session=session, **kwargs) File "/usr/local/lib/python3.8/site-packages/airflow/utils/db.py", line 824, in upgradedb command.upgrade(config, 'heads') File "/usr/local/lib/python3.8/site-packages/alembic/command.py", line 320, in upgrade script.run_env() File "/usr/local/lib/python3.8/site-packages/alembic/script/base.py", line 563, in run_env util.load_python_file(self.dir, "env.py") File "/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py", line 92, in load_python_file module = load_module_py(module_id, path) File "/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py", line 108, in load_module_py spec.loader.exec_module(module) # type: ignore File "&lt;frozen importlib._bootstrap_external&gt;", line 848, in exec_module File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed File "/usr/local/lib/python3.8/site-packages/airflow/migrations/env.py", line 107, in &lt;module&gt; run_migrations_online() File "/usr/local/lib/python3.8/site-packages/airflow/migrations/env.py", line 101, in run_migrations_online context.run_migrations() File "&lt;string&gt;", line 8, in run_migrations File "/usr/local/lib/python3.8/site-packages/alembic/runtime/environment.py", line 851, in run_migrations self.get_context().run_migrations(**kw) File "/usr/local/lib/python3.8/site-packages/alembic/runtime/migration.py", line 620, in run_migrations step.migration_fn(**kw) File "/usr/local/lib/python3.8/site-packages/airflow/migrations/versions/7b2661a43ba3_taskinstance_keyed_to_dagrun.py", line 140, in upgrade batch_op.create_unique_constraint('dag_run_dag_id_run_id_key', ['dag_id', 'run_id']) File "/usr/local/lib/python3.8/contextlib.py", line 120, in __exit__ next(self.gen) File "/usr/local/lib/python3.8/site-packages/alembic/operations/base.py", line 374, in batch_alter_table impl.flush() File "/usr/local/lib/python3.8/site-packages/alembic/operations/batch.py", line 107, in flush fn(*arg, **kw) File "/usr/local/lib/python3.8/site-packages/alembic/ddl/mysql.py", line 150, in drop_constraint super(MySQLImpl, self).drop_constraint(const) File "/usr/local/lib/python3.8/site-packages/alembic/ddl/impl.py", line 340, in drop_constraint self._exec(schema.DropConstraint(const)) File "/usr/local/lib/python3.8/site-packages/alembic/ddl/impl.py", line 197, in _exec return conn.execute(construct, multiparams) File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1011, in execute return meth(self, multiparams, params) File "/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/ddl.py", line 72, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1068, in _execute_ddl ret = self._execute_context( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context self._handle_dbapi_exception( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1510, in _handle_dbapi_exception util.raise_( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ raise exception File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context self.dialect.do_execute( File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute cursor.execute(statement, parameters) File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 206, in execute res = self._query(query) File "/usr/local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 319, in _query db.query(q) File "/usr/local/lib/python3.8/site-packages/MySQLdb/connections.py", line 259, in query _mysql.connection.query(self, query) sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) (1091, "Can't DROP 'dag_id'; check that column/key exists") [SQL: ALTER TABLE dag_run DROP INDEX dag_id] (Background on this error at: http://sqlalche.me/e/13/e3q8) </code></pre></div> <p dir="auto">Trying to drop the index manually, gives the same output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/airflow $ docker exec -it airflow_airflow-celery_1 mysql mysql&gt; use airflow; mysql&gt; ALTER TABLE airflow.dag_run DROP INDEX dag_id; ERROR 1091 (42000): Can't DROP 'dag_id'; check that column/key exists"><pre class="notranslate"><code class="notranslate">~/airflow $ docker exec -it airflow_airflow-celery_1 mysql mysql&gt; use airflow; mysql&gt; ALTER TABLE airflow.dag_run DROP INDEX dag_id; ERROR 1091 (42000): Can't DROP 'dag_id'; check that column/key exists </code></pre></div> <h3 dir="auto">What you expected to happen</h3> <p dir="auto"><code class="notranslate">airflow db upgrade</code> to not fail</p> <h3 dir="auto">How to reproduce</h3> <ul dir="auto"> <li>Copy the provided <code class="notranslate">docker-compose.yml</code> file content in conjunction with <code class="notranslate">Dockerfile</code> &amp; <code class="notranslate">requirements.txt</code> with Airflow <code class="notranslate">2.1.4</code></li> <li>Init db</li> <li>build docker containers</li> <li>all services should to be up &amp; running</li> <li>now update <code class="notranslate">requirements.txt</code> to use <code class="notranslate">2.2.0</code></li> <li>build docker containers again</li> <li>Run <code class="notranslate">airflow db upgrade</code> command</li> <li>You would see error in stdout as well as <code class="notranslate">worker</code> service fails to run</li> </ul> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
1
<p dir="auto"><strong>What is the current behavior?</strong><br> Currenty render method is invoking even I am returned null in the getDerivedStateFromProps irrespective of whether props changed or not (just to check the behavior).</p> <p dir="auto">Here is CodeSandBox link:</p> <p dir="auto"><strong><a href="https://codesandbox.io/s/7wy6xm1z10" rel="nofollow">https://codesandbox.io/s/7wy6xm1z10</a></strong></p> <p dir="auto">Expected behavior : Not to invoke render method.</p> <p dir="auto"><strong>React version: 16.6.3</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from &quot;react&quot;; class Demo extends React.Component { constructor(props) { super(props); this.state = { hello: &quot;sam&quot; }; } static getDerivedStateFromProps(props, state) { console.log(&quot;getDerivedStateFromProps &quot;, props, state); return null; } render() { console.log(&quot;render&quot;, this.state); return ( &lt;React.Fragment&gt; Hello &lt;hr /&gt; &lt;button onClick={() =&gt; this.setState(() =&gt; { return { name: &quot;Kiran&quot; }; }) } &gt; click me &lt;/button&gt; &lt;/React.Fragment&gt; ); } componentDidMount() { this.state = { HEHE: &quot;HEHE&quot; }; console.log(&quot;DidMount&quot;); } getSnapshotBeforeUpdate() { console.log(&quot;getsnapshotbeforeupdate&quot;); return 12; } componentDidUpdate(props, state, snapshot) { console.log(&quot;DId Update&quot;, props, state, snapshot); } componentWillUnMount() { console.log(&quot;Will Unmount&quot;); } } export default Demo;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-v">Demo</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">props</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">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">hello</span>: <span class="pl-s">"sam"</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">static</span> <span class="pl-en">getDerivedStateFromProps</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">,</span> <span class="pl-s1">state</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">"getDerivedStateFromProps "</span><span class="pl-kos">,</span> <span class="pl-s1">props</span><span class="pl-kos">,</span> <span class="pl-s1">state</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"render"</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-v">Fragment</span><span class="pl-c1">&gt;</span> Hello <span class="pl-c1">&lt;</span><span class="pl-ent">hr</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"Kiran"</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">&gt;</span> click me <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-v">Fragment</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">componentDidMount</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">HEHE</span>: <span class="pl-s">"HEHE"</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">"DidMount"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">getSnapshotBeforeUpdate</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"getsnapshotbeforeupdate"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-c1">12</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">componentDidUpdate</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">,</span> <span class="pl-s1">state</span><span class="pl-kos">,</span> <span class="pl-s1">snapshot</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">"DId Update"</span><span class="pl-kos">,</span> <span class="pl-s1">props</span><span class="pl-kos">,</span> <span class="pl-s1">state</span><span class="pl-kos">,</span> <span class="pl-s1">snapshot</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">componentWillUnMount</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Will Unmount"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Demo</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">Bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">Returning <code class="notranslate">null</code> from <code class="notranslate">getDerivedStateFromProps</code> triggers updates and <code class="notranslate">componentDidUpdate</code> is being called.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (<a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>) or CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example below:</strong></p> <p dir="auto"><a href="https://jsfiddle.net/69z2wepo/328290/" rel="nofollow">https://jsfiddle.net/69z2wepo/328290/</a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto"><code class="notranslate">componentDidUpdate</code> and <code class="notranslate">render</code> methods should not be called.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li></li> <li></li> <li></li> <li></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></td> </tr> <tr> <td>node</td> <td></td> </tr> <tr> <td>OS</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<h1 dir="auto">Bug report</h1> <p dir="auto">css content strings added for icons appear as stings not as icons</p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">a css class defined as<br> <code class="notranslate">.a::before { content: '\f054'; }</code><br> dont render the icon, instead some text is displayed<br> A clear and concise description of what the bug is.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">USe this code sandbox to view the issue and a probable workaround with scss<br> <a href="https://codesandbox.io/s/async-wind-uj7z6" rel="nofollow">https://codesandbox.io/s/async-wind-uj7z6</a><br> Steps to reproduce the behavior, please provide code snippets or a repository:</p> <ol dir="auto"> <li>Create a css class with 'content' eg: a.css<br> <code class="notranslate">a::before { content: '\f054'; }</code></li> <li>import the css class into the react component<br> <code class="notranslate">import css from "../style/a.css";</code></li> <li><code class="notranslate">&lt;style jsx&gt;{css}&lt;/style&gt;</code> in the component to render the styles</li> <li>in the render function add html in a way that the class will get selected<br> eg:<br> <code class="notranslate">&lt;a&gt;Hi&lt;/a&gt;</code></li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">The icon should render instead of the text</p> <h2 dir="auto">Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3959554/73247859-d2e1aa00-41d7-11ea-84af-63f10f4f5b44.png"><img src="https://user-images.githubusercontent.com/3959554/73247859-d2e1aa00-41d7-11ea-84af-63f10f4f5b44.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">If applicable, add screenshots to help explain your problem.</p> <h2 dir="auto">System information</h2> <p dir="auto">-package.json dev deps<br> <code class="notranslate">"devDependencies": { "cross-env": "^5.2.0", "node-sass": "^4.7.2", "sass-loader": "7.1.0" },</code><br> -next.config.js<br> `<br> module.exports = {<br> webpack: (config, { defaultLoaders }) =&gt; {<br> config.module.rules.push({<br> test: /.scss|css$/,<br> use: [<br> defaultLoaders.babel,<br> {<br> loader: require('styled-jsx/webpack').loader,<br> options: {<br> type: 'scoped'<br> }<br> },<br> 'sass-loader'<br> ]<br> })</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" return config }"><pre class="notranslate"><code class="notranslate"> return config } </code></pre></div> <p dir="auto">}<br> `</p> <ul dir="auto"> <li>Browser Chrome</li> <li>Version of Next.js: seems to be broken in v9, v9.1 and v9.2, works fine in v7 and v8 though</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Seems like a issue related to the style-jsx version that is bundled<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="507529894" data-permission-text="Title is private" data-url="https://github.com/vercel/styled-jsx/issues/589" data-hovercard-type="issue" data-hovercard-url="/vercel/styled-jsx/issues/589/hovercard" href="https://github.com/vercel/styled-jsx/issues/589">vercel/styled-jsx#589</a>, i have commented my findings and workaround in that issue as well</p>
0
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.19.2</li> <li>Operating System: Mac</li> <li>Node.js version: 12.22</li> <li>Browser: All</li> <li>Extra: Docker Focal Image 1.19.2</li> </ul> <p dir="auto"><strong>Code Snippet</strong></p> <p dir="auto">Help us help you! Put down a short code snippet that illustrates your bug and<br> that we can run and debug locally. For example:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//config.js outputDir: 'src/tests/e2e/test-results', use: { screenshot: 'on', }, reporter: [ ['html', { open: 'never', outputFolder: 'src/tests/e2e/test-results' }], ],"><pre class="notranslate"><span class="pl-c">//config.js</span> <span class="pl-s1">outputDir</span>: <span class="pl-s">'src/tests/e2e/test-results'</span><span class="pl-kos">,</span> <span class="pl-s1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">screenshot</span>: <span class="pl-s">'on'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">reporter</span>: <span class="pl-kos">[</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-c1">open</span>: <span class="pl-s">'never'</span><span class="pl-kos">,</span> <span class="pl-c1">outputFolder</span>: <span class="pl-s">'src/tests/e2e/test-results'</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span></pre></div> <p dir="auto"><strong>Describe the bug</strong><br> As noticed in the above config, I want test artifacts and html report to be in the same directory.</p> <p dir="auto">When I run the tests locally, it generates the <code class="notranslate">index.html</code> only and screenshot isn't saved.<br> When I run the tests on Docker (using volume mount), it generates the <code class="notranslate">index.html</code> as well as screenshots are saved.</p> <p dir="auto">Wondering why this is the case?</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [1.34.3]</li> <li>Operating System: [MacOS Ventura - Version 13.4]</li> <li>Browser: [All, Chromium, Firefox, WebKit]</li> <li>Other info:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ node -v v19.4.0 $ yarn -v 1.22.19 $ yarn list --pattern @playwright/test yarn list v1.22.19 └─ @playwright/[email protected]"><pre class="notranslate"><code class="notranslate">$ node -v v19.4.0 $ yarn -v 1.22.19 $ yarn list --pattern @playwright/test yarn list v1.22.19 └─ @playwright/[email protected] </code></pre></div> <h3 dir="auto">Additional notes:</h3> <p dir="auto">I get this problem when I created a new playwright project with <code class="notranslate">yarn create playwright</code></p>
0
<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> <p dir="auto">Add decoding inputs to generate</p> <h2 dir="auto">Motivation</h2> <p dir="auto">When generating with encoder-decoder, one may want to insert context for the decoder.<br> I'm currently working on summarization given that I know some parts of the gt. But other ideas can come to mind.</p> <h2 dir="auto">Your contribution</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @torch.no_grad() def generate( self, input_ids: Optional[torch.LongTensor] = None, max_length: Optional[int] = None, min_length: Optional[int] = None, do_sample: Optional[bool] = None, early_stopping: Optional[bool] = None, num_beams: Optional[int] = None, temperature: Optional[float] = None, top_k: Optional[int] = None, top_p: Optional[float] = None, repetition_penalty: Optional[float] = None, bad_words_ids: Optional[Iterable[int]] = None, bos_token_id: Optional[int] = None, pad_token_id: Optional[int] = None, eos_token_id: Optional[int] = None, length_penalty: Optional[float] = None, no_repeat_ngram_size: Optional[int] = None, num_return_sequences: Optional[int] = None, attention_mask: Optional[torch.LongTensor] = None, decoder_start_token_id: Optional[int] = None, decoder_input_ids: Optional[torch.LongTensor] = None, decoder_attention_mask: Optional[torch.LongTensor] = None, use_cache: Optional[bool] = None, **model_specific_kwargs ) -&gt; torch.LongTensor:"><pre class="notranslate"><code class="notranslate"> @torch.no_grad() def generate( self, input_ids: Optional[torch.LongTensor] = None, max_length: Optional[int] = None, min_length: Optional[int] = None, do_sample: Optional[bool] = None, early_stopping: Optional[bool] = None, num_beams: Optional[int] = None, temperature: Optional[float] = None, top_k: Optional[int] = None, top_p: Optional[float] = None, repetition_penalty: Optional[float] = None, bad_words_ids: Optional[Iterable[int]] = None, bos_token_id: Optional[int] = None, pad_token_id: Optional[int] = None, eos_token_id: Optional[int] = None, length_penalty: Optional[float] = None, no_repeat_ngram_size: Optional[int] = None, num_return_sequences: Optional[int] = None, attention_mask: Optional[torch.LongTensor] = None, decoder_start_token_id: Optional[int] = None, decoder_input_ids: Optional[torch.LongTensor] = None, decoder_attention_mask: Optional[torch.LongTensor] = None, use_cache: Optional[bool] = None, **model_specific_kwargs ) -&gt; torch.LongTensor: </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" r&quot;&quot;&quot; Generates sequences for models with a LM head. The method currently supports greedy decoding, beam-search decoding, sampling with temperature, sampling with top-k or nucleus sampling. Adapted in part from Facebook's XLM beam search code_. .. _Facebook's XLM beam search code: https://github.com/facebookresearch/XLM/blob/9e6f6814d17be4fe5b15f2e6c43eb2b2d76daeb4/src/model/transformer.py#L529 Parameters: input_ids: (`optional`) `torch.LongTensor` of shape `(batch_size, sequence_length)` The sequence used as a prompt for the generation. If `None` the method initializes it as an empty `torch.LongTensor` of shape `(1,)`. max_length: (`optional`) int The max length of the sequence to be generated. Between `min_length` and infinity. Default to 20. min_length: (`optional`) int The min length of the sequence to be generated. Between 0 and infinity. Default to 0. do_sample: (`optional`) bool If set to `False` greedy decoding is used. Otherwise sampling is used. Defaults to `False` as defined in `configuration_utils.PretrainedConfig`. early_stopping: (`optional`) bool if set to `True` beam search is stopped when at least `num_beams` sentences finished per batch. Defaults to `False` as defined in `configuration_utils.PretrainedConfig`. num_beams: (`optional`) int Number of beams for beam search. Must be between 1 and infinity. 1 means no beam search. Default to 1. temperature: (`optional`) float The value used to module the next token probabilities. Must be strictly positive. Default to 1.0. top_k: (`optional`) int The number of highest probability vocabulary tokens to keep for top-k-filtering. Between 1 and infinity. Default to 50. top_p: (`optional`) float The cumulative probability of parameter highest probability vocabulary tokens to keep for nucleus sampling. Must be between 0 and 1. Default to 1. repetition_penalty: (`optional`) float The parameter for repetition penalty. Between 1.0 and infinity. 1.0 means no penalty. Default to 1.0. pad_token_id: (`optional`) int Padding token. Default to specicic model pad_token_id or None if it does not exist. bos_token_id: (`optional`) int BOS token. Defaults to `bos_token_id` as defined in the models config. eos_token_id: (`optional`) int EOS token. Defaults to `eos_token_id` as defined in the models config. length_penalty: (`optional`) float Exponential penalty to the length. Default to 1. no_repeat_ngram_size: (`optional`) int If set to int &gt; 0, all ngrams of size `no_repeat_ngram_size` can only occur once. bad_words_ids: (`optional`) list of lists of int `bad_words_ids` contains tokens that are not allowed to be generated. In order to get the tokens of the words that should not appear in the generated text, use `tokenizer.encode(bad_word, add_prefix_space=True)`. num_return_sequences: (`optional`) int The number of independently computed returned sequences for each element in the batch. Default to 1. attention_mask (`optional`) obj: `torch.LongTensor` of same shape as `input_ids` Mask to avoid performing attention on padding token indices. Mask values selected in ``[0, 1]``: ``1`` for tokens that are NOT MASKED, ``0`` for MASKED tokens. Defaults to `None`. `What are attention masks? &lt;../glossary.html#attention-mask&gt;`__ decoder_start_token_id=None: (`optional`) int If an encoder-decoder model starts decoding with a different token than BOS. Defaults to `None` and is changed to `BOS` later. use_cache: (`optional`) bool If `use_cache` is True, past key values are used to speed up decoding if applicable to model. Defaults to `True`. model_specific_kwargs: (`optional`) dict Additional model specific kwargs will be forwarded to the `forward` function of the model. Return: output: `torch.LongTensor` of shape `(batch_size * num_return_sequences, sequence_length)` sequence_length is either equal to max_length or shorter if all batches finished early due to the `eos_token_id` Examples:: tokenizer = AutoTokenizer.from_pretrained('distilgpt2') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('distilgpt2') # Download model and configuration from S3 and cache. outputs = model.generate(max_length=40) # do greedy decoding print('Generated: {}'.format(tokenizer.decode(outputs[0], skip_special_tokens=True))) tokenizer = AutoTokenizer.from_pretrained('openai-gpt') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('openai-gpt') # Download model and configuration from S3 and cache. input_context = 'The dog' input_ids = tokenizer.encode(input_context, return_tensors='pt') # encode input context outputs = model.generate(input_ids=input_ids, num_beams=5, num_return_sequences=3, temperature=1.5) # generate 3 independent sequences using beam search decoding (5 beams) with sampling from initial context 'The dog' for i in range(3): # 3 output sequences were generated print('Generated {}: {}'.format(i, tokenizer.decode(outputs[i], skip_special_tokens=True))) tokenizer = AutoTokenizer.from_pretrained('distilgpt2') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('distilgpt2') # Download model and configuration from S3 and cache. input_context = 'The dog' input_ids = tokenizer.encode(input_context, return_tensors='pt') # encode input context outputs = model.generate(input_ids=input_ids, max_length=40, temperature=0.7, num_return_sequences=3) # 3 generate sequences using by sampling for i in range(3): # 3 output sequences were generated print('Generated {}: {}'.format(i, tokenizer.decode(outputs[i], skip_special_tokens=True))) tokenizer = AutoTokenizer.from_pretrained('ctrl') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('ctrl') # Download model and configuration from S3 and cache. input_context = 'Legal My neighbor is' # &quot;Legal&quot; is one of the control codes for ctrl input_ids = tokenizer.encode(input_context, return_tensors='pt') # encode input context outputs = model.generate(input_ids=input_ids, max_length=50, temperature=0.7, repetition_penalty=1.2) # generate sequences print('Generated: {}'.format(tokenizer.decode(outputs[0], skip_special_tokens=True))) tokenizer = AutoTokenizer.from_pretrained('gpt2') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('gpt2') # Download model and configuration from S3 and cache. input_context = 'My cute dog' # &quot;Legal&quot; is one of the control codes for ctrl bad_words_ids = [tokenizer.encode(bad_word, add_prefix_space=True) for bad_word in ['idiot', 'stupid', 'shut up']] input_ids = tokenizer.encode(input_context, return_tensors='pt') # encode input context outputs = model.generate(input_ids=input_ids, max_length=100, do_sample=True, bad_words_ids=bad_words_ids) # generate sequences without allowing bad_words to be generated &quot;&quot;&quot; # We cannot generate if the model does not have a LM head if self.get_output_embeddings() is None: raise AttributeError( &quot;You tried to generate sequences with a model that does not have a LM Head.&quot; &quot;Please use another model class (e.g. `OpenAIGPTLMHeadModel`, `XLNetLMHeadModel`, `GPT2LMHeadModel`, `CTRLLMHeadModel`, `T5WithLMHeadModel`, `TransfoXLLMHeadModel`, `XLMWithLMHeadModel`, `BartForConditionalGeneration` )&quot; ) max_length = max_length if max_length is not None else self.config.max_length min_length = min_length if min_length is not None else self.config.min_length do_sample = do_sample if do_sample is not None else self.config.do_sample early_stopping = early_stopping if early_stopping is not None else self.config.early_stopping use_cache = use_cache if use_cache is not None else self.config.use_cache num_beams = num_beams if num_beams is not None else self.config.num_beams temperature = temperature if temperature is not None else self.config.temperature top_k = top_k if top_k is not None else self.config.top_k top_p = top_p if top_p is not None else self.config.top_p repetition_penalty = repetition_penalty if repetition_penalty is not None else self.config.repetition_penalty bos_token_id = bos_token_id if bos_token_id is not None else self.config.bos_token_id pad_token_id = pad_token_id if pad_token_id is not None else self.config.pad_token_id eos_token_id = eos_token_id if eos_token_id is not None else self.config.eos_token_id length_penalty = length_penalty if length_penalty is not None else self.config.length_penalty no_repeat_ngram_size = ( no_repeat_ngram_size if no_repeat_ngram_size is not None else self.config.no_repeat_ngram_size ) bad_words_ids = bad_words_ids if bad_words_ids is not None else self.config.bad_words_ids num_return_sequences = ( num_return_sequences if num_return_sequences is not None else self.config.num_return_sequences ) decoder_start_token_id = ( decoder_start_token_id if decoder_start_token_id is not None else self.config.decoder_start_token_id ) if input_ids is not None: batch_size = input_ids.shape[0] # overriden by the input batch_size else: batch_size = 1 assert isinstance(max_length, int) and max_length &gt; 0, &quot;`max_length` should be a strictly positive integer.&quot; assert isinstance(min_length, int) and min_length &gt;= 0, &quot;`min_length` should be a positive integer.&quot; assert isinstance(do_sample, bool), &quot;`do_sample` should be a boolean.&quot; assert isinstance(early_stopping, bool), &quot;`early_stopping` should be a boolean.&quot; assert isinstance(use_cache, bool), &quot;`use_cache` should be a boolean.&quot; assert isinstance(num_beams, int) and num_beams &gt; 0, &quot;`num_beams` should be a strictly positive integer.&quot; assert temperature &gt; 0, &quot;`temperature` should be strictly positive.&quot; assert isinstance(top_k, int) and top_k &gt;= 0, &quot;`top_k` should be a positive integer.&quot; assert 0 &lt;= top_p &lt;= 1, &quot;`top_p` should be between 0 and 1.&quot; assert repetition_penalty &gt;= 1.0, &quot;`repetition_penalty` should be &gt;= 1.&quot; assert input_ids is not None or ( isinstance(bos_token_id, int) and bos_token_id &gt;= 0 ), &quot;If input_ids is not defined, `bos_token_id` should be a positive integer.&quot; assert pad_token_id is None or ( isinstance(pad_token_id, int) and (pad_token_id &gt;= 0) ), &quot;`pad_token_id` should be a positive integer.&quot; assert (eos_token_id is None) or ( isinstance(eos_token_id, int) and (eos_token_id &gt;= 0) ), &quot;`eos_token_id` should be a positive integer.&quot; assert length_penalty &gt; 0, &quot;`length_penalty` should be strictly positive.&quot; assert ( isinstance(no_repeat_ngram_size, int) and no_repeat_ngram_size &gt;= 0 ), &quot;`no_repeat_ngram_size` should be a positive integer.&quot; assert ( isinstance(num_return_sequences, int) and num_return_sequences &gt; 0 ), &quot;`num_return_sequences` should be a strictly positive integer.&quot; assert ( bad_words_ids is None or isinstance(bad_words_ids, list) and isinstance(bad_words_ids[0], list) ), &quot;`bad_words_ids` is either `None` or a list of lists of tokens that should not be generated&quot; if input_ids is None: assert isinstance(bos_token_id, int) and bos_token_id &gt;= 0, ( &quot;you should either supply a context to complete as `input_ids` input &quot; &quot;or a `bos_token_id` (integer &gt;= 0) as a first token to start the generation.&quot; ) input_ids = torch.full( (batch_size, 1), bos_token_id, dtype=torch.long, device=next(self.parameters()).device, ) else: assert input_ids.dim() == 2, &quot;Input prompt should be of shape (batch_size, sequence length).&quot; # not allow to duplicate outputs when greedy decoding if do_sample is False: if num_beams == 1: # no_beam_search greedy generation conditions assert ( num_return_sequences == 1 ), &quot;Greedy decoding will always produce the same output for num_beams == 1 and num_return_sequences &gt; 1. Please set num_return_sequences = 1&quot; else: # beam_search greedy generation conditions assert ( num_beams &gt;= num_return_sequences ), &quot;Greedy beam search decoding cannot return more sequences than it has beams. Please set num_beams &gt;= num_return_sequences&quot; # create attention mask if necessary # TODO (PVP): this should later be handled by the forward fn() in each model in the future see PR 3140 if (attention_mask is None) and (pad_token_id is not None) and (pad_token_id in input_ids): attention_mask = input_ids.ne(pad_token_id).long() elif attention_mask is None: attention_mask = input_ids.new_ones(input_ids.shape) # set pad_token_id to eos_token_id if not set. Important that this is done after # attention_mask is created if pad_token_id is None and eos_token_id is not None: logger.warning( &quot;Setting `pad_token_id` to {} (first `eos_token_id`) to generate sequence&quot;.format(eos_token_id) ) pad_token_id = eos_token_id # current position and vocab size if hasattr(self.config, &quot;vocab_size&quot;): vocab_size = self.config.vocab_size elif ( self.config.is_encoder_decoder and hasattr(self.config, &quot;decoder&quot;) and hasattr(self.config.decoder, &quot;vocab_size&quot;) ): vocab_size = self.config.decoder.vocab_size # set effective batch size and effective batch multiplier according to do_sample if do_sample: effective_batch_size = batch_size * num_return_sequences effective_batch_mult = num_return_sequences else: effective_batch_size = batch_size effective_batch_mult = 1 if self.config.is_encoder_decoder: if decoder_start_token_id is None: decoder_start_token_id = bos_token_id assert ( decoder_start_token_id is not None ), &quot;decoder_start_token_id or bos_token_id has to be defined for encoder-decoder generation&quot; assert hasattr(self, &quot;get_encoder&quot;), &quot;{} should have a 'get_encoder' function defined&quot;.format(self) assert callable(self.get_encoder), &quot;{} should be a method&quot;.format(self.get_encoder) # get encoder and store encoder outputs encoder = self.get_encoder() encoder_outputs: tuple = encoder(input_ids, attention_mask=attention_mask) # Expand input ids if num_beams &gt; 1 or num_return_sequences &gt; 1 if self.config.is_encoder_decoder: if decoder_input_ids is not None: input_ids = decoder_input_ids else: # create empty decoder_input_ids input_ids = torch.full( (effective_batch_size * num_beams, 1), decoder_start_token_id, dtype=torch.long, device=next(self.parameters()).device, ) cur_len = 1 assert ( batch_size == encoder_outputs[0].shape[0] ), f&quot;expected encoder_outputs[0] to have 1st dimension bs={batch_size}, got {encoder_outputs[0].shape[0]} &quot; # expand batch_idx to assign correct encoder output for expanded input_ids (due to num_beams &gt; 1 and num_return_sequences &gt; 1) expanded_batch_idxs = ( torch.arange(batch_size) .view(-1, 1) .repeat(1, num_beams * effective_batch_mult) .view(-1) .to(input_ids.device) ) # expand encoder_outputs encoder_outputs = (encoder_outputs[0].index_select(0, expanded_batch_idxs), *encoder_outputs[1:]) else: encoder_outputs = None cur_len = input_ids.shape[-1] assert ( cur_len &lt; max_length ), f&quot;The context has {cur_len} number of tokens, but `max_length` is only {max_length}. Please make sure that `max_length` is bigger than the number of tokens, by setting either `generate(max_length=...,...)` or `config.max_length = ...`&quot; if num_return_sequences &gt; 1 or num_beams &gt; 1: input_ids_len = input_ids.shape[-1] input_ids = input_ids.unsqueeze(1).expand(batch_size, effective_batch_mult * num_beams, input_ids_len) attention_mask = attention_mask.unsqueeze(1).expand( batch_size, effective_batch_mult * num_beams, attention_mask.shape[-1] ) input_ids = input_ids.contiguous().view( effective_batch_size * num_beams, input_ids_len ) # shape: (batch_size * num_return_sequences * num_beams, cur_len) attention_mask = attention_mask.contiguous().view( effective_batch_size * num_beams, attention_mask.shape[-1] ) # shape: (batch_size * num_return_sequences * num_beams, cur_len) if num_beams &gt; 1: output = self._generate_beam_search( input_ids, cur_len=cur_len, max_length=max_length, min_length=min_length, do_sample=do_sample, early_stopping=early_stopping, temperature=temperature, top_k=top_k, top_p=top_p, repetition_penalty=repetition_penalty, no_repeat_ngram_size=no_repeat_ngram_size, bad_words_ids=bad_words_ids, pad_token_id=pad_token_id, eos_token_id=eos_token_id, batch_size=effective_batch_size, num_return_sequences=num_return_sequences, length_penalty=length_penalty, num_beams=num_beams, vocab_size=vocab_size, encoder_outputs=encoder_outputs, attention_mask=attention_mask, use_cache=use_cache, decoder_attention_mask=decoder_attention_mask, model_specific_kwargs=model_specific_kwargs, ) else: output = self._generate_no_beam_search( input_ids, cur_len=cur_len, max_length=max_length, min_length=min_length, do_sample=do_sample, temperature=temperature, top_k=top_k, top_p=top_p, repetition_penalty=repetition_penalty, no_repeat_ngram_size=no_repeat_ngram_size, bad_words_ids=bad_words_ids, pad_token_id=pad_token_id, eos_token_id=eos_token_id, batch_size=effective_batch_size, encoder_outputs=encoder_outputs, attention_mask=attention_mask, use_cache=use_cache, decoder_attention_mask=decoder_attention_mask, model_specific_kwargs=model_specific_kwargs, ) return output def _generate_no_beam_search( self, input_ids, cur_len, max_length, min_length, do_sample, temperature, top_k, top_p, repetition_penalty, no_repeat_ngram_size, bad_words_ids, pad_token_id, eos_token_id, batch_size, encoder_outputs, attention_mask, use_cache, decoder_attention_mask, model_specific_kwargs, ): &quot;&quot;&quot; Generate sequences for each example without beam search (num_beams == 1). All returned sequence are generated independantly. &quot;&quot;&quot; # length of generated sentences / unfinished sentences unfinished_sents = input_ids.new(batch_size).fill_(1) sent_lengths = input_ids.new(batch_size).fill_(max_length) past = (encoder_outputs, None) if encoder_outputs is not None else None while cur_len &lt; max_length: model_inputs = self.prepare_inputs_for_generation( input_ids, past=past, attention_mask=attention_mask, use_cache=use_cache, **model_specific_kwargs ) model_inputs['decoder_attention_mask'] = decoder_attention_mask outputs = self(**model_inputs) next_token_logits = outputs[0][:, -1, :] scores = self.postprocess_next_token_scores( scores=next_token_logits, input_ids=input_ids, no_repeat_ngram_size=no_repeat_ngram_size, bad_words_ids=bad_words_ids, cur_len=cur_len, min_length=min_length, max_length=max_length, eos_token_id=eos_token_id, repetition_penalty=repetition_penalty, batch_size=batch_size, num_beams=1, ) # if model has past, then set the past variable to speed up decoding if self._use_cache(outputs, use_cache): past = outputs[1] if do_sample: # Temperature (higher temperature =&gt; more likely to sample low probability tokens) if temperature != 1.0: scores = scores / temperature # Top-p/top-k filtering next_token_logscores = top_k_top_p_filtering(scores, top_k=top_k, top_p=top_p) # Sample probs = F.softmax(next_token_logscores, dim=-1) next_token = torch.multinomial(probs, num_samples=1).squeeze(1) else: # Greedy decoding next_token = torch.argmax(next_token_logits, dim=-1) # update generations and finished sentences if eos_token_id is not None: # pad finished sentences if eos_token_id exist tokens_to_add = next_token * unfinished_sents + (pad_token_id) * (1 - unfinished_sents) else: tokens_to_add = next_token # add token and increase length by one input_ids = torch.cat([input_ids, tokens_to_add.unsqueeze(-1)], dim=-1) cur_len = cur_len + 1 if eos_token_id is not None: eos_in_sents = tokens_to_add == eos_token_id # if sentence is unfinished and the token to add is eos, sent_lengths is filled with current length is_sents_unfinished_and_token_to_add_is_eos = unfinished_sents.mul(eos_in_sents.long()).bool() sent_lengths.masked_fill_(is_sents_unfinished_and_token_to_add_is_eos, cur_len) # unfinished_sents is set to zero if eos in sentence unfinished_sents.mul_((~eos_in_sents).long()) # stop when there is a &lt;/s&gt; in each sentence, or if we exceed the maximul length if unfinished_sents.max() == 0: break # extend attention_mask for new generated input if only decoder if self.config.is_encoder_decoder is False: attention_mask = torch.cat( [attention_mask, attention_mask.new_ones((attention_mask.shape[0], 1))], dim=-1 ) return input_ids def _generate_beam_search( self, input_ids, cur_len, max_length, min_length, do_sample, early_stopping, temperature, top_k, top_p, repetition_penalty, no_repeat_ngram_size, bad_words_ids, pad_token_id, eos_token_id, batch_size, num_return_sequences, length_penalty, num_beams, vocab_size, encoder_outputs, attention_mask, use_cache, decoder_attention_mask, model_specific_kwargs, ): &quot;&quot;&quot; Generate sequences for each example with beam search. &quot;&quot;&quot; # generated hypotheses generated_hyps = [ BeamHypotheses(num_beams, max_length, length_penalty, early_stopping=early_stopping) for _ in range(batch_size) ] # scores for each sentence in the beam beam_scores = torch.zeros((batch_size, num_beams), dtype=torch.float, device=input_ids.device) # for greedy decoding it is made sure that only tokens of the first beam are considered to avoid sampling the exact same tokens three times if do_sample is False: beam_scores[:, 1:] = -1e9 beam_scores = beam_scores.view(-1) # shape (batch_size * num_beams,) # cache compute states past = (encoder_outputs, None) if encoder_outputs is not None else None # done sentences done = [False for _ in range(batch_size)] while cur_len &lt; max_length: model_inputs = self.prepare_inputs_for_generation( input_ids, past=past, attention_mask=attention_mask, use_cache=use_cache, **model_specific_kwargs ) model_inputs['decoder_attention_mask'] = decoder_attention_mask outputs = self(**model_inputs) # (batch_size * num_beams, cur_len, vocab_size) next_token_logits = outputs[0][:, -1, :] # (batch_size * num_beams, vocab_size) # if model has past, then set the past variable to speed up decoding if self._use_cache(outputs, use_cache): past = outputs[1] if self.config.is_encoder_decoder and do_sample is False: # TODO (PVP) still a bit hacky here - there might be a better solution next_token_logits = self.adjust_logits_during_generation( next_token_logits, cur_len=cur_len, max_length=max_length ) scores = F.log_softmax(next_token_logits, dim=-1) # (batch_size * num_beams, vocab_size) scores = self.postprocess_next_token_scores( scores=scores, input_ids=input_ids, no_repeat_ngram_size=no_repeat_ngram_size, bad_words_ids=bad_words_ids, cur_len=cur_len, min_length=min_length, max_length=max_length, eos_token_id=eos_token_id, repetition_penalty=repetition_penalty, batch_size=batch_size, num_beams=num_beams, ) assert scores.shape == (batch_size * num_beams, vocab_size), &quot;Shapes of scores: {} != {}&quot;.format( scores.shape, (batch_size * num_beams, vocab_size) ) if do_sample: _scores = scores + beam_scores[:, None].expand_as(scores) # (batch_size * num_beams, vocab_size) # Temperature if temperature != 1.0: _scores = _scores / temperature # Top-p/top-k filtering _scores = top_k_top_p_filtering( _scores, top_k=top_k, top_p=top_p, min_tokens_to_keep=2 ) # (batch_size * num_beams, vocab_size) # re-organize to group the beam together to sample from all beam_idxs _scores = _scores.contiguous().view( batch_size, num_beams * vocab_size ) # (batch_size, num_beams * vocab_size) # Sample 2 next tokens for each beam (so we have some spare tokens and match output of greedy beam search) probs = F.softmax(_scores, dim=-1) next_tokens = torch.multinomial(probs, num_samples=2 * num_beams) # (batch_size, num_beams * 2) # Compute next scores next_scores = torch.gather(_scores, -1, next_tokens) # (batch_size, num_beams * 2) # sort the sampled vector to make sure that the first num_beams samples are the best next_scores, next_scores_indices = torch.sort(next_scores, descending=True, dim=1) next_tokens = torch.gather(next_tokens, -1, next_scores_indices) # (batch_size, num_beams * 2) else: next_scores = scores + beam_scores[:, None].expand_as(scores) # (batch_size * num_beams, vocab_size) # re-organize to group the beam together (we are keeping top hypothesis accross beams) next_scores = next_scores.view( batch_size, num_beams * vocab_size ) # (batch_size, num_beams * vocab_size) next_scores, next_tokens = torch.topk(next_scores, 2 * num_beams, dim=1, largest=True, sorted=True) assert next_scores.size() == next_tokens.size() == (batch_size, 2 * num_beams) # next batch beam content next_batch_beam = [] # for each sentence for batch_idx in range(batch_size): # if we are done with this sentence, add a pad token if done[batch_idx]: assert ( len(generated_hyps[batch_idx]) &gt;= num_beams ), &quot;Batch can only be done if at least {} beams have been generated&quot;.format(num_beams) assert ( eos_token_id is not None and pad_token_id is not None ), &quot;generated beams &gt;= num_beams -&gt; eos_token_id and pad_token have to be defined&quot; next_batch_beam.extend([(0, pad_token_id, 0)] * num_beams) # pad the batch continue # next sentence beam content, this will get added to next_batch_beam next_sent_beam = [] # next tokens for this sentence for beam_token_rank, (beam_token_id, beam_token_score) in enumerate( zip(next_tokens[batch_idx], next_scores[batch_idx]) ): # get beam and token IDs beam_id = beam_token_id // vocab_size token_id = beam_token_id % vocab_size effective_beam_id = batch_idx * num_beams + beam_id # add to generated hypotheses if end of sentence if (eos_token_id is not None) and (token_id.item() == eos_token_id): # if beam_token does not belong to top num_beams tokens, it should not be added is_beam_token_worse_than_top_num_beams = beam_token_rank &gt;= num_beams if is_beam_token_worse_than_top_num_beams: continue generated_hyps[batch_idx].add( input_ids[effective_beam_id].clone(), beam_token_score.item(), ) else: # add next predicted token since it is not eos_token next_sent_beam.append((beam_token_score, token_id, effective_beam_id)) # once the beam for next step is full, don't add more tokens to it. if len(next_sent_beam) == num_beams: break # Check if we are done so that we can save a pad step if all(done) done[batch_idx] = done[batch_idx] or generated_hyps[batch_idx].is_done( next_scores[batch_idx].max().item(), cur_len ) # update next beam content assert len(next_sent_beam) == num_beams, &quot;Beam should always be full&quot; next_batch_beam.extend(next_sent_beam) assert len(next_batch_beam) == num_beams * (batch_idx + 1), &quot;We should have added num_beams each step&quot; # stop when we are done with each sentence if all(done): break # sanity check / prepare next batch assert len(next_batch_beam) == batch_size * num_beams beam_scores = beam_scores.new([x[0] for x in next_batch_beam]) beam_tokens = input_ids.new([x[1] for x in next_batch_beam]) beam_idx = input_ids.new([x[2] for x in next_batch_beam]) # re-order batch and update current length input_ids = input_ids[beam_idx, :] input_ids = torch.cat([input_ids, beam_tokens.unsqueeze(1)], dim=-1) cur_len = cur_len + 1 # re-order internal states if past is not None: past = self._reorder_cache(past, beam_idx) # extend attention_mask for new generated input if only decoder if self.config.is_encoder_decoder is False: attention_mask = torch.cat( [attention_mask, attention_mask.new_ones((attention_mask.shape[0], 1))], dim=-1 ) # finalize all open beam hypotheses and add to generated hypotheses for batch_idx in range(batch_size): if done[batch_idx]: continue # test that beam scores match previously calculated scores if not eos and batch_idx not done if eos_token_id is not None and all( (token_id % vocab_size).item() != eos_token_id for token_id in next_tokens[batch_idx] ): assert torch.all( next_scores[batch_idx, :num_beams] == beam_scores.view(batch_size, num_beams)[batch_idx] ), &quot;If batch_idx is not done, final next scores: {} have to equal to accumulated beam_scores: {}&quot;.format( next_scores[:, :num_beams][batch_idx], beam_scores.view(batch_size, num_beams)[batch_idx], ) # need to add best num_beams hypotheses to generated hyps for beam_id in range(num_beams): effective_beam_id = batch_idx * num_beams + beam_id final_score = beam_scores[effective_beam_id].item() final_tokens = input_ids[effective_beam_id] generated_hyps[batch_idx].add(final_tokens, final_score) # depending on whether greedy generation is wanted or not define different output_batch_size and output_num_return_sequences_per_batch output_batch_size = batch_size if do_sample else batch_size * num_return_sequences output_num_return_sequences_per_batch = 1 if do_sample else num_return_sequences # select the best hypotheses sent_lengths = input_ids.new(output_batch_size) best = [] # retrieve best hypotheses for i, hypotheses in enumerate(generated_hyps): sorted_hyps = sorted(hypotheses.beams, key=lambda x: x[0]) for j in range(output_num_return_sequences_per_batch): effective_batch_idx = output_num_return_sequences_per_batch * i + j best_hyp = sorted_hyps.pop()[1] sent_lengths[effective_batch_idx] = len(best_hyp) best.append(best_hyp) # shorter batches are padded if sent_lengths.min().item() != sent_lengths.max().item(): assert pad_token_id is not None, &quot;`Pad_token_id` has to be defined&quot; sent_max_len = min(sent_lengths.max().item() + 1, max_length) decoded = input_ids.new(output_batch_size, sent_max_len).fill_(pad_token_id) # fill with hypothesis and eos_token_id if necessary for i, hypo in enumerate(best): decoded[i, : sent_lengths[i]] = hypo if sent_lengths[i] &lt; max_length: decoded[i, sent_lengths[i]] = eos_token_id else: # none of the hypotheses have an eos_token assert (len(hypo) == max_length for hypo in best) decoded = torch.stack(best).type(torch.long).to(next(self.parameters()).device) return decoded"><pre class="notranslate"><code class="notranslate"> r""" Generates sequences for models with a LM head. The method currently supports greedy decoding, beam-search decoding, sampling with temperature, sampling with top-k or nucleus sampling. Adapted in part from Facebook's XLM beam search code_. .. _Facebook's XLM beam search code: https://github.com/facebookresearch/XLM/blob/9e6f6814d17be4fe5b15f2e6c43eb2b2d76daeb4/src/model/transformer.py#L529 Parameters: input_ids: (`optional`) `torch.LongTensor` of shape `(batch_size, sequence_length)` The sequence used as a prompt for the generation. If `None` the method initializes it as an empty `torch.LongTensor` of shape `(1,)`. max_length: (`optional`) int The max length of the sequence to be generated. Between `min_length` and infinity. Default to 20. min_length: (`optional`) int The min length of the sequence to be generated. Between 0 and infinity. Default to 0. do_sample: (`optional`) bool If set to `False` greedy decoding is used. Otherwise sampling is used. Defaults to `False` as defined in `configuration_utils.PretrainedConfig`. early_stopping: (`optional`) bool if set to `True` beam search is stopped when at least `num_beams` sentences finished per batch. Defaults to `False` as defined in `configuration_utils.PretrainedConfig`. num_beams: (`optional`) int Number of beams for beam search. Must be between 1 and infinity. 1 means no beam search. Default to 1. temperature: (`optional`) float The value used to module the next token probabilities. Must be strictly positive. Default to 1.0. top_k: (`optional`) int The number of highest probability vocabulary tokens to keep for top-k-filtering. Between 1 and infinity. Default to 50. top_p: (`optional`) float The cumulative probability of parameter highest probability vocabulary tokens to keep for nucleus sampling. Must be between 0 and 1. Default to 1. repetition_penalty: (`optional`) float The parameter for repetition penalty. Between 1.0 and infinity. 1.0 means no penalty. Default to 1.0. pad_token_id: (`optional`) int Padding token. Default to specicic model pad_token_id or None if it does not exist. bos_token_id: (`optional`) int BOS token. Defaults to `bos_token_id` as defined in the models config. eos_token_id: (`optional`) int EOS token. Defaults to `eos_token_id` as defined in the models config. length_penalty: (`optional`) float Exponential penalty to the length. Default to 1. no_repeat_ngram_size: (`optional`) int If set to int &gt; 0, all ngrams of size `no_repeat_ngram_size` can only occur once. bad_words_ids: (`optional`) list of lists of int `bad_words_ids` contains tokens that are not allowed to be generated. In order to get the tokens of the words that should not appear in the generated text, use `tokenizer.encode(bad_word, add_prefix_space=True)`. num_return_sequences: (`optional`) int The number of independently computed returned sequences for each element in the batch. Default to 1. attention_mask (`optional`) obj: `torch.LongTensor` of same shape as `input_ids` Mask to avoid performing attention on padding token indices. Mask values selected in ``[0, 1]``: ``1`` for tokens that are NOT MASKED, ``0`` for MASKED tokens. Defaults to `None`. `What are attention masks? &lt;../glossary.html#attention-mask&gt;`__ decoder_start_token_id=None: (`optional`) int If an encoder-decoder model starts decoding with a different token than BOS. Defaults to `None` and is changed to `BOS` later. use_cache: (`optional`) bool If `use_cache` is True, past key values are used to speed up decoding if applicable to model. Defaults to `True`. model_specific_kwargs: (`optional`) dict Additional model specific kwargs will be forwarded to the `forward` function of the model. Return: output: `torch.LongTensor` of shape `(batch_size * num_return_sequences, sequence_length)` sequence_length is either equal to max_length or shorter if all batches finished early due to the `eos_token_id` Examples:: tokenizer = AutoTokenizer.from_pretrained('distilgpt2') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('distilgpt2') # Download model and configuration from S3 and cache. outputs = model.generate(max_length=40) # do greedy decoding print('Generated: {}'.format(tokenizer.decode(outputs[0], skip_special_tokens=True))) tokenizer = AutoTokenizer.from_pretrained('openai-gpt') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('openai-gpt') # Download model and configuration from S3 and cache. input_context = 'The dog' input_ids = tokenizer.encode(input_context, return_tensors='pt') # encode input context outputs = model.generate(input_ids=input_ids, num_beams=5, num_return_sequences=3, temperature=1.5) # generate 3 independent sequences using beam search decoding (5 beams) with sampling from initial context 'The dog' for i in range(3): # 3 output sequences were generated print('Generated {}: {}'.format(i, tokenizer.decode(outputs[i], skip_special_tokens=True))) tokenizer = AutoTokenizer.from_pretrained('distilgpt2') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('distilgpt2') # Download model and configuration from S3 and cache. input_context = 'The dog' input_ids = tokenizer.encode(input_context, return_tensors='pt') # encode input context outputs = model.generate(input_ids=input_ids, max_length=40, temperature=0.7, num_return_sequences=3) # 3 generate sequences using by sampling for i in range(3): # 3 output sequences were generated print('Generated {}: {}'.format(i, tokenizer.decode(outputs[i], skip_special_tokens=True))) tokenizer = AutoTokenizer.from_pretrained('ctrl') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('ctrl') # Download model and configuration from S3 and cache. input_context = 'Legal My neighbor is' # "Legal" is one of the control codes for ctrl input_ids = tokenizer.encode(input_context, return_tensors='pt') # encode input context outputs = model.generate(input_ids=input_ids, max_length=50, temperature=0.7, repetition_penalty=1.2) # generate sequences print('Generated: {}'.format(tokenizer.decode(outputs[0], skip_special_tokens=True))) tokenizer = AutoTokenizer.from_pretrained('gpt2') # Initialize tokenizer model = AutoModelWithLMHead.from_pretrained('gpt2') # Download model and configuration from S3 and cache. input_context = 'My cute dog' # "Legal" is one of the control codes for ctrl bad_words_ids = [tokenizer.encode(bad_word, add_prefix_space=True) for bad_word in ['idiot', 'stupid', 'shut up']] input_ids = tokenizer.encode(input_context, return_tensors='pt') # encode input context outputs = model.generate(input_ids=input_ids, max_length=100, do_sample=True, bad_words_ids=bad_words_ids) # generate sequences without allowing bad_words to be generated """ # We cannot generate if the model does not have a LM head if self.get_output_embeddings() is None: raise AttributeError( "You tried to generate sequences with a model that does not have a LM Head." "Please use another model class (e.g. `OpenAIGPTLMHeadModel`, `XLNetLMHeadModel`, `GPT2LMHeadModel`, `CTRLLMHeadModel`, `T5WithLMHeadModel`, `TransfoXLLMHeadModel`, `XLMWithLMHeadModel`, `BartForConditionalGeneration` )" ) max_length = max_length if max_length is not None else self.config.max_length min_length = min_length if min_length is not None else self.config.min_length do_sample = do_sample if do_sample is not None else self.config.do_sample early_stopping = early_stopping if early_stopping is not None else self.config.early_stopping use_cache = use_cache if use_cache is not None else self.config.use_cache num_beams = num_beams if num_beams is not None else self.config.num_beams temperature = temperature if temperature is not None else self.config.temperature top_k = top_k if top_k is not None else self.config.top_k top_p = top_p if top_p is not None else self.config.top_p repetition_penalty = repetition_penalty if repetition_penalty is not None else self.config.repetition_penalty bos_token_id = bos_token_id if bos_token_id is not None else self.config.bos_token_id pad_token_id = pad_token_id if pad_token_id is not None else self.config.pad_token_id eos_token_id = eos_token_id if eos_token_id is not None else self.config.eos_token_id length_penalty = length_penalty if length_penalty is not None else self.config.length_penalty no_repeat_ngram_size = ( no_repeat_ngram_size if no_repeat_ngram_size is not None else self.config.no_repeat_ngram_size ) bad_words_ids = bad_words_ids if bad_words_ids is not None else self.config.bad_words_ids num_return_sequences = ( num_return_sequences if num_return_sequences is not None else self.config.num_return_sequences ) decoder_start_token_id = ( decoder_start_token_id if decoder_start_token_id is not None else self.config.decoder_start_token_id ) if input_ids is not None: batch_size = input_ids.shape[0] # overriden by the input batch_size else: batch_size = 1 assert isinstance(max_length, int) and max_length &gt; 0, "`max_length` should be a strictly positive integer." assert isinstance(min_length, int) and min_length &gt;= 0, "`min_length` should be a positive integer." assert isinstance(do_sample, bool), "`do_sample` should be a boolean." assert isinstance(early_stopping, bool), "`early_stopping` should be a boolean." assert isinstance(use_cache, bool), "`use_cache` should be a boolean." assert isinstance(num_beams, int) and num_beams &gt; 0, "`num_beams` should be a strictly positive integer." assert temperature &gt; 0, "`temperature` should be strictly positive." assert isinstance(top_k, int) and top_k &gt;= 0, "`top_k` should be a positive integer." assert 0 &lt;= top_p &lt;= 1, "`top_p` should be between 0 and 1." assert repetition_penalty &gt;= 1.0, "`repetition_penalty` should be &gt;= 1." assert input_ids is not None or ( isinstance(bos_token_id, int) and bos_token_id &gt;= 0 ), "If input_ids is not defined, `bos_token_id` should be a positive integer." assert pad_token_id is None or ( isinstance(pad_token_id, int) and (pad_token_id &gt;= 0) ), "`pad_token_id` should be a positive integer." assert (eos_token_id is None) or ( isinstance(eos_token_id, int) and (eos_token_id &gt;= 0) ), "`eos_token_id` should be a positive integer." assert length_penalty &gt; 0, "`length_penalty` should be strictly positive." assert ( isinstance(no_repeat_ngram_size, int) and no_repeat_ngram_size &gt;= 0 ), "`no_repeat_ngram_size` should be a positive integer." assert ( isinstance(num_return_sequences, int) and num_return_sequences &gt; 0 ), "`num_return_sequences` should be a strictly positive integer." assert ( bad_words_ids is None or isinstance(bad_words_ids, list) and isinstance(bad_words_ids[0], list) ), "`bad_words_ids` is either `None` or a list of lists of tokens that should not be generated" if input_ids is None: assert isinstance(bos_token_id, int) and bos_token_id &gt;= 0, ( "you should either supply a context to complete as `input_ids` input " "or a `bos_token_id` (integer &gt;= 0) as a first token to start the generation." ) input_ids = torch.full( (batch_size, 1), bos_token_id, dtype=torch.long, device=next(self.parameters()).device, ) else: assert input_ids.dim() == 2, "Input prompt should be of shape (batch_size, sequence length)." # not allow to duplicate outputs when greedy decoding if do_sample is False: if num_beams == 1: # no_beam_search greedy generation conditions assert ( num_return_sequences == 1 ), "Greedy decoding will always produce the same output for num_beams == 1 and num_return_sequences &gt; 1. Please set num_return_sequences = 1" else: # beam_search greedy generation conditions assert ( num_beams &gt;= num_return_sequences ), "Greedy beam search decoding cannot return more sequences than it has beams. Please set num_beams &gt;= num_return_sequences" # create attention mask if necessary # TODO (PVP): this should later be handled by the forward fn() in each model in the future see PR 3140 if (attention_mask is None) and (pad_token_id is not None) and (pad_token_id in input_ids): attention_mask = input_ids.ne(pad_token_id).long() elif attention_mask is None: attention_mask = input_ids.new_ones(input_ids.shape) # set pad_token_id to eos_token_id if not set. Important that this is done after # attention_mask is created if pad_token_id is None and eos_token_id is not None: logger.warning( "Setting `pad_token_id` to {} (first `eos_token_id`) to generate sequence".format(eos_token_id) ) pad_token_id = eos_token_id # current position and vocab size if hasattr(self.config, "vocab_size"): vocab_size = self.config.vocab_size elif ( self.config.is_encoder_decoder and hasattr(self.config, "decoder") and hasattr(self.config.decoder, "vocab_size") ): vocab_size = self.config.decoder.vocab_size # set effective batch size and effective batch multiplier according to do_sample if do_sample: effective_batch_size = batch_size * num_return_sequences effective_batch_mult = num_return_sequences else: effective_batch_size = batch_size effective_batch_mult = 1 if self.config.is_encoder_decoder: if decoder_start_token_id is None: decoder_start_token_id = bos_token_id assert ( decoder_start_token_id is not None ), "decoder_start_token_id or bos_token_id has to be defined for encoder-decoder generation" assert hasattr(self, "get_encoder"), "{} should have a 'get_encoder' function defined".format(self) assert callable(self.get_encoder), "{} should be a method".format(self.get_encoder) # get encoder and store encoder outputs encoder = self.get_encoder() encoder_outputs: tuple = encoder(input_ids, attention_mask=attention_mask) # Expand input ids if num_beams &gt; 1 or num_return_sequences &gt; 1 if self.config.is_encoder_decoder: if decoder_input_ids is not None: input_ids = decoder_input_ids else: # create empty decoder_input_ids input_ids = torch.full( (effective_batch_size * num_beams, 1), decoder_start_token_id, dtype=torch.long, device=next(self.parameters()).device, ) cur_len = 1 assert ( batch_size == encoder_outputs[0].shape[0] ), f"expected encoder_outputs[0] to have 1st dimension bs={batch_size}, got {encoder_outputs[0].shape[0]} " # expand batch_idx to assign correct encoder output for expanded input_ids (due to num_beams &gt; 1 and num_return_sequences &gt; 1) expanded_batch_idxs = ( torch.arange(batch_size) .view(-1, 1) .repeat(1, num_beams * effective_batch_mult) .view(-1) .to(input_ids.device) ) # expand encoder_outputs encoder_outputs = (encoder_outputs[0].index_select(0, expanded_batch_idxs), *encoder_outputs[1:]) else: encoder_outputs = None cur_len = input_ids.shape[-1] assert ( cur_len &lt; max_length ), f"The context has {cur_len} number of tokens, but `max_length` is only {max_length}. Please make sure that `max_length` is bigger than the number of tokens, by setting either `generate(max_length=...,...)` or `config.max_length = ...`" if num_return_sequences &gt; 1 or num_beams &gt; 1: input_ids_len = input_ids.shape[-1] input_ids = input_ids.unsqueeze(1).expand(batch_size, effective_batch_mult * num_beams, input_ids_len) attention_mask = attention_mask.unsqueeze(1).expand( batch_size, effective_batch_mult * num_beams, attention_mask.shape[-1] ) input_ids = input_ids.contiguous().view( effective_batch_size * num_beams, input_ids_len ) # shape: (batch_size * num_return_sequences * num_beams, cur_len) attention_mask = attention_mask.contiguous().view( effective_batch_size * num_beams, attention_mask.shape[-1] ) # shape: (batch_size * num_return_sequences * num_beams, cur_len) if num_beams &gt; 1: output = self._generate_beam_search( input_ids, cur_len=cur_len, max_length=max_length, min_length=min_length, do_sample=do_sample, early_stopping=early_stopping, temperature=temperature, top_k=top_k, top_p=top_p, repetition_penalty=repetition_penalty, no_repeat_ngram_size=no_repeat_ngram_size, bad_words_ids=bad_words_ids, pad_token_id=pad_token_id, eos_token_id=eos_token_id, batch_size=effective_batch_size, num_return_sequences=num_return_sequences, length_penalty=length_penalty, num_beams=num_beams, vocab_size=vocab_size, encoder_outputs=encoder_outputs, attention_mask=attention_mask, use_cache=use_cache, decoder_attention_mask=decoder_attention_mask, model_specific_kwargs=model_specific_kwargs, ) else: output = self._generate_no_beam_search( input_ids, cur_len=cur_len, max_length=max_length, min_length=min_length, do_sample=do_sample, temperature=temperature, top_k=top_k, top_p=top_p, repetition_penalty=repetition_penalty, no_repeat_ngram_size=no_repeat_ngram_size, bad_words_ids=bad_words_ids, pad_token_id=pad_token_id, eos_token_id=eos_token_id, batch_size=effective_batch_size, encoder_outputs=encoder_outputs, attention_mask=attention_mask, use_cache=use_cache, decoder_attention_mask=decoder_attention_mask, model_specific_kwargs=model_specific_kwargs, ) return output def _generate_no_beam_search( self, input_ids, cur_len, max_length, min_length, do_sample, temperature, top_k, top_p, repetition_penalty, no_repeat_ngram_size, bad_words_ids, pad_token_id, eos_token_id, batch_size, encoder_outputs, attention_mask, use_cache, decoder_attention_mask, model_specific_kwargs, ): """ Generate sequences for each example without beam search (num_beams == 1). All returned sequence are generated independantly. """ # length of generated sentences / unfinished sentences unfinished_sents = input_ids.new(batch_size).fill_(1) sent_lengths = input_ids.new(batch_size).fill_(max_length) past = (encoder_outputs, None) if encoder_outputs is not None else None while cur_len &lt; max_length: model_inputs = self.prepare_inputs_for_generation( input_ids, past=past, attention_mask=attention_mask, use_cache=use_cache, **model_specific_kwargs ) model_inputs['decoder_attention_mask'] = decoder_attention_mask outputs = self(**model_inputs) next_token_logits = outputs[0][:, -1, :] scores = self.postprocess_next_token_scores( scores=next_token_logits, input_ids=input_ids, no_repeat_ngram_size=no_repeat_ngram_size, bad_words_ids=bad_words_ids, cur_len=cur_len, min_length=min_length, max_length=max_length, eos_token_id=eos_token_id, repetition_penalty=repetition_penalty, batch_size=batch_size, num_beams=1, ) # if model has past, then set the past variable to speed up decoding if self._use_cache(outputs, use_cache): past = outputs[1] if do_sample: # Temperature (higher temperature =&gt; more likely to sample low probability tokens) if temperature != 1.0: scores = scores / temperature # Top-p/top-k filtering next_token_logscores = top_k_top_p_filtering(scores, top_k=top_k, top_p=top_p) # Sample probs = F.softmax(next_token_logscores, dim=-1) next_token = torch.multinomial(probs, num_samples=1).squeeze(1) else: # Greedy decoding next_token = torch.argmax(next_token_logits, dim=-1) # update generations and finished sentences if eos_token_id is not None: # pad finished sentences if eos_token_id exist tokens_to_add = next_token * unfinished_sents + (pad_token_id) * (1 - unfinished_sents) else: tokens_to_add = next_token # add token and increase length by one input_ids = torch.cat([input_ids, tokens_to_add.unsqueeze(-1)], dim=-1) cur_len = cur_len + 1 if eos_token_id is not None: eos_in_sents = tokens_to_add == eos_token_id # if sentence is unfinished and the token to add is eos, sent_lengths is filled with current length is_sents_unfinished_and_token_to_add_is_eos = unfinished_sents.mul(eos_in_sents.long()).bool() sent_lengths.masked_fill_(is_sents_unfinished_and_token_to_add_is_eos, cur_len) # unfinished_sents is set to zero if eos in sentence unfinished_sents.mul_((~eos_in_sents).long()) # stop when there is a &lt;/s&gt; in each sentence, or if we exceed the maximul length if unfinished_sents.max() == 0: break # extend attention_mask for new generated input if only decoder if self.config.is_encoder_decoder is False: attention_mask = torch.cat( [attention_mask, attention_mask.new_ones((attention_mask.shape[0], 1))], dim=-1 ) return input_ids def _generate_beam_search( self, input_ids, cur_len, max_length, min_length, do_sample, early_stopping, temperature, top_k, top_p, repetition_penalty, no_repeat_ngram_size, bad_words_ids, pad_token_id, eos_token_id, batch_size, num_return_sequences, length_penalty, num_beams, vocab_size, encoder_outputs, attention_mask, use_cache, decoder_attention_mask, model_specific_kwargs, ): """ Generate sequences for each example with beam search. """ # generated hypotheses generated_hyps = [ BeamHypotheses(num_beams, max_length, length_penalty, early_stopping=early_stopping) for _ in range(batch_size) ] # scores for each sentence in the beam beam_scores = torch.zeros((batch_size, num_beams), dtype=torch.float, device=input_ids.device) # for greedy decoding it is made sure that only tokens of the first beam are considered to avoid sampling the exact same tokens three times if do_sample is False: beam_scores[:, 1:] = -1e9 beam_scores = beam_scores.view(-1) # shape (batch_size * num_beams,) # cache compute states past = (encoder_outputs, None) if encoder_outputs is not None else None # done sentences done = [False for _ in range(batch_size)] while cur_len &lt; max_length: model_inputs = self.prepare_inputs_for_generation( input_ids, past=past, attention_mask=attention_mask, use_cache=use_cache, **model_specific_kwargs ) model_inputs['decoder_attention_mask'] = decoder_attention_mask outputs = self(**model_inputs) # (batch_size * num_beams, cur_len, vocab_size) next_token_logits = outputs[0][:, -1, :] # (batch_size * num_beams, vocab_size) # if model has past, then set the past variable to speed up decoding if self._use_cache(outputs, use_cache): past = outputs[1] if self.config.is_encoder_decoder and do_sample is False: # TODO (PVP) still a bit hacky here - there might be a better solution next_token_logits = self.adjust_logits_during_generation( next_token_logits, cur_len=cur_len, max_length=max_length ) scores = F.log_softmax(next_token_logits, dim=-1) # (batch_size * num_beams, vocab_size) scores = self.postprocess_next_token_scores( scores=scores, input_ids=input_ids, no_repeat_ngram_size=no_repeat_ngram_size, bad_words_ids=bad_words_ids, cur_len=cur_len, min_length=min_length, max_length=max_length, eos_token_id=eos_token_id, repetition_penalty=repetition_penalty, batch_size=batch_size, num_beams=num_beams, ) assert scores.shape == (batch_size * num_beams, vocab_size), "Shapes of scores: {} != {}".format( scores.shape, (batch_size * num_beams, vocab_size) ) if do_sample: _scores = scores + beam_scores[:, None].expand_as(scores) # (batch_size * num_beams, vocab_size) # Temperature if temperature != 1.0: _scores = _scores / temperature # Top-p/top-k filtering _scores = top_k_top_p_filtering( _scores, top_k=top_k, top_p=top_p, min_tokens_to_keep=2 ) # (batch_size * num_beams, vocab_size) # re-organize to group the beam together to sample from all beam_idxs _scores = _scores.contiguous().view( batch_size, num_beams * vocab_size ) # (batch_size, num_beams * vocab_size) # Sample 2 next tokens for each beam (so we have some spare tokens and match output of greedy beam search) probs = F.softmax(_scores, dim=-1) next_tokens = torch.multinomial(probs, num_samples=2 * num_beams) # (batch_size, num_beams * 2) # Compute next scores next_scores = torch.gather(_scores, -1, next_tokens) # (batch_size, num_beams * 2) # sort the sampled vector to make sure that the first num_beams samples are the best next_scores, next_scores_indices = torch.sort(next_scores, descending=True, dim=1) next_tokens = torch.gather(next_tokens, -1, next_scores_indices) # (batch_size, num_beams * 2) else: next_scores = scores + beam_scores[:, None].expand_as(scores) # (batch_size * num_beams, vocab_size) # re-organize to group the beam together (we are keeping top hypothesis accross beams) next_scores = next_scores.view( batch_size, num_beams * vocab_size ) # (batch_size, num_beams * vocab_size) next_scores, next_tokens = torch.topk(next_scores, 2 * num_beams, dim=1, largest=True, sorted=True) assert next_scores.size() == next_tokens.size() == (batch_size, 2 * num_beams) # next batch beam content next_batch_beam = [] # for each sentence for batch_idx in range(batch_size): # if we are done with this sentence, add a pad token if done[batch_idx]: assert ( len(generated_hyps[batch_idx]) &gt;= num_beams ), "Batch can only be done if at least {} beams have been generated".format(num_beams) assert ( eos_token_id is not None and pad_token_id is not None ), "generated beams &gt;= num_beams -&gt; eos_token_id and pad_token have to be defined" next_batch_beam.extend([(0, pad_token_id, 0)] * num_beams) # pad the batch continue # next sentence beam content, this will get added to next_batch_beam next_sent_beam = [] # next tokens for this sentence for beam_token_rank, (beam_token_id, beam_token_score) in enumerate( zip(next_tokens[batch_idx], next_scores[batch_idx]) ): # get beam and token IDs beam_id = beam_token_id // vocab_size token_id = beam_token_id % vocab_size effective_beam_id = batch_idx * num_beams + beam_id # add to generated hypotheses if end of sentence if (eos_token_id is not None) and (token_id.item() == eos_token_id): # if beam_token does not belong to top num_beams tokens, it should not be added is_beam_token_worse_than_top_num_beams = beam_token_rank &gt;= num_beams if is_beam_token_worse_than_top_num_beams: continue generated_hyps[batch_idx].add( input_ids[effective_beam_id].clone(), beam_token_score.item(), ) else: # add next predicted token since it is not eos_token next_sent_beam.append((beam_token_score, token_id, effective_beam_id)) # once the beam for next step is full, don't add more tokens to it. if len(next_sent_beam) == num_beams: break # Check if we are done so that we can save a pad step if all(done) done[batch_idx] = done[batch_idx] or generated_hyps[batch_idx].is_done( next_scores[batch_idx].max().item(), cur_len ) # update next beam content assert len(next_sent_beam) == num_beams, "Beam should always be full" next_batch_beam.extend(next_sent_beam) assert len(next_batch_beam) == num_beams * (batch_idx + 1), "We should have added num_beams each step" # stop when we are done with each sentence if all(done): break # sanity check / prepare next batch assert len(next_batch_beam) == batch_size * num_beams beam_scores = beam_scores.new([x[0] for x in next_batch_beam]) beam_tokens = input_ids.new([x[1] for x in next_batch_beam]) beam_idx = input_ids.new([x[2] for x in next_batch_beam]) # re-order batch and update current length input_ids = input_ids[beam_idx, :] input_ids = torch.cat([input_ids, beam_tokens.unsqueeze(1)], dim=-1) cur_len = cur_len + 1 # re-order internal states if past is not None: past = self._reorder_cache(past, beam_idx) # extend attention_mask for new generated input if only decoder if self.config.is_encoder_decoder is False: attention_mask = torch.cat( [attention_mask, attention_mask.new_ones((attention_mask.shape[0], 1))], dim=-1 ) # finalize all open beam hypotheses and add to generated hypotheses for batch_idx in range(batch_size): if done[batch_idx]: continue # test that beam scores match previously calculated scores if not eos and batch_idx not done if eos_token_id is not None and all( (token_id % vocab_size).item() != eos_token_id for token_id in next_tokens[batch_idx] ): assert torch.all( next_scores[batch_idx, :num_beams] == beam_scores.view(batch_size, num_beams)[batch_idx] ), "If batch_idx is not done, final next scores: {} have to equal to accumulated beam_scores: {}".format( next_scores[:, :num_beams][batch_idx], beam_scores.view(batch_size, num_beams)[batch_idx], ) # need to add best num_beams hypotheses to generated hyps for beam_id in range(num_beams): effective_beam_id = batch_idx * num_beams + beam_id final_score = beam_scores[effective_beam_id].item() final_tokens = input_ids[effective_beam_id] generated_hyps[batch_idx].add(final_tokens, final_score) # depending on whether greedy generation is wanted or not define different output_batch_size and output_num_return_sequences_per_batch output_batch_size = batch_size if do_sample else batch_size * num_return_sequences output_num_return_sequences_per_batch = 1 if do_sample else num_return_sequences # select the best hypotheses sent_lengths = input_ids.new(output_batch_size) best = [] # retrieve best hypotheses for i, hypotheses in enumerate(generated_hyps): sorted_hyps = sorted(hypotheses.beams, key=lambda x: x[0]) for j in range(output_num_return_sequences_per_batch): effective_batch_idx = output_num_return_sequences_per_batch * i + j best_hyp = sorted_hyps.pop()[1] sent_lengths[effective_batch_idx] = len(best_hyp) best.append(best_hyp) # shorter batches are padded if sent_lengths.min().item() != sent_lengths.max().item(): assert pad_token_id is not None, "`Pad_token_id` has to be defined" sent_max_len = min(sent_lengths.max().item() + 1, max_length) decoded = input_ids.new(output_batch_size, sent_max_len).fill_(pad_token_id) # fill with hypothesis and eos_token_id if necessary for i, hypo in enumerate(best): decoded[i, : sent_lengths[i]] = hypo if sent_lengths[i] &lt; max_length: decoded[i, sent_lengths[i]] = eos_token_id else: # none of the hypotheses have an eos_token assert (len(hypo) == max_length for hypo in best) decoded = torch.stack(best).type(torch.long).to(next(self.parameters()).device) return decoded </code></pre></div> <p dir="auto">`</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2> <p dir="auto">For "class BertEncoder" in modeling_bert.py, remove duplicate hidden_states of the last layer</p> <h2 dir="auto">Motivation</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2401439/64491964-fb0c5300-d2a0-11e9-9873-d86ee9041db3.png"><img src="https://user-images.githubusercontent.com/2401439/64491964-fb0c5300-d2a0-11e9-9873-d86ee9041db3.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Bert-Base models have 12 layers instead of 13 layers. But when config.output_hidden_states is true, "len(all_hidden_states)" is printed 13 instead of 12. It seems that the two lines under "# Add last layer" is improper, since the last layer's hidden_states are already added.</p>
0
<h1 dir="auto">Feature request</h1> <h2 dir="auto">Is your feature request related to a problem? Please describe.</h2> <p dir="auto">I created a <code class="notranslate">account</code> folder in the <code class="notranslate">pages</code> folder. And in this <code class="notranslate">account</code> folder, I added a <code class="notranslate">index.js</code> file.</p> <p dir="auto">I would like to reach this page through <code class="notranslate">/account/</code>, but I get a 404 error. It is only reachable through <code class="notranslate">/account</code>.</p> <h2 dir="auto">Describe the solution you'd like</h2> <p dir="auto">When I create a folder, I would like to be able to reach it with a trailing slash.</p>
<p dir="auto">trailing slash in link for legit page works for client side navigation but leads to not found bundle and 404 on hard refresh (ssr)</p> <h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">let me know if title needs further clarification.</p> <p dir="auto"><a href="https://github.com/zeit/next.js/issues?q=is%3Aissue+trailing+slash+is%3Aclosed">all relevant issues</a> has been closed with reasoning that its been fixed in 6-canary (I believe it is not) or by improved serve (which is true only in perhaps production static export).</p> <p dir="auto">I'm rewriting my existing blog to next.js and i previously used trailing slashes. Latest <code class="notranslate">serve</code> can help with it once i build my next.js powered blog. But in order to fix dev env i need either to get rid of trailing slashes and utilize <code class="notranslate">301 Moved Permanently</code> in prod; or live with broken trailing slash support in dev.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Here is minimal reproducible case (link to repro repo is below snippet):</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// pages/index.js import Link from &quot;next/link&quot;; export default () =&gt; ( &lt;Link href=&quot;/about/&quot;&gt; &lt;a&gt;About&lt;/a&gt; &lt;/Link&gt; ); // pages/index.js export default () =&gt; &quot;about&quot;;"><pre class="notranslate"><span class="pl-c">// pages/index.js</span> <span class="pl-k">import</span> <span class="pl-v">Link</span> <span class="pl-k">from</span> <span class="pl-s">"next/link"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</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-c1">&lt;</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/about/"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span>About<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Link</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// pages/index.js</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">"about"</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Minimal reproducible repo <a href="https://github.com/iamstarkov/next.js-trailing-slash-bug-demo">https://github.com/iamstarkov/next.js-trailing-slash-bug-demo</a></p> <ol dir="auto"> <li>clone repo <code class="notranslate">git clone https://github.com/iamstarkov/next.js-trailing-slash-bug-demo</code></li> <li>change directory <code class="notranslate">cd next.js-trailing-slash-bug-demo</code></li> <li>install deps <code class="notranslate">yarn</code></li> <li>run dev: <code class="notranslate">yarn dev</code></li> <li>open <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a></li> <li>open devtools' network tab</li> <li>observe <code class="notranslate">http://localhost:3000/_next/static/development/pages/about.js</code> being 200ed</li> <li>observe <code class="notranslate">http://localhost:3000/_next/on-demand-entries-ping?page=/about/</code> being 200ed</li> <li>observe <code class="notranslate">http://localhost:3000/about/</code> being 404ed</li> <li>observe persistent attempts to resolve <code class="notranslate">http://localhost:3000/about/</code></li> <li>observe in the terminal <code class="notranslate">Client pings, but there's no entry for page: /about/</code></li> <li>refresh the page</li> <li>observe 404 page.</li> <li>remove trailing slash in the url or click <a href="http://localhost:3000/about" rel="nofollow">http://localhost:3000/about</a></li> <li>observe page being 200ed</li> <li>to ensure error persistence repeat steps 5-15 once.</li> </ol> <h2 dir="auto">Expected behavior</h2> <ol dir="auto"> <li><code class="notranslate">/about/</code> shouldnt be resolved as <code class="notranslate">404 not found</code></li> <li><code class="notranslate">/about/</code> should be resolved as <code class="notranslate">200 ok</code></li> <li>Server should not print <code class="notranslate">Client pings, but there's no entry for page: /about/</code></li> <li>both <code class="notranslate">/about</code> and <code class="notranslate">/about/</code> should work the same way</li> </ol> <h2 dir="auto">Screenshots</h2> <p dir="auto">N/A</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS High Sierra 10.13.6 (17G65)</li> <li>Browser (should not matter, but can repro'ed in chrome 69.0.3497.100 and safari Version 12.0 (13606.2.11) (was the same for safari 11)</li> <li>Version of Next.js: 7.0.0 (could repro on 5.x and 6.x)</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Add any other context about the problem here.</p> <p dir="auto">If you change this code in <a href="https://github.com/zeit/next.js/blob/459c1c13d054b37442126889077b7056269eeb35/server/on-demand-entry-handler.js#L242-L249">https://github.com/zeit/next.js/blob/459c1c13d054b37442126889077b7056269eeb35/server/on-demand-entry-handler.js#L242-L249</a></p> <p dir="auto">or <code class="notranslate">node_modules/next/dist/server/on-demand-entry-handler.js</code> locally</p> <div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" const { query } = parse(req.url, true) const page = normalizePage(query.page) + console.log('query.page', query.page); + console.log('page', page); + console.log('Object.keys(entries)', Object.keys(entries)); const entryInfo = entries[page] // If there's no entry. // Then it seems like an weird issue. if (!entryInfo) { const message = `Client pings, but there's no entry for page: ${page}`"><pre class="notranslate"> const { query } = parse(req.url, true) const page = normalizePage(query.page) <span class="pl-mi1"><span class="pl-mi1">+</span> console.log('query.page', query.page);</span> <span class="pl-mi1"><span class="pl-mi1">+</span> console.log('page', page);</span> <span class="pl-mi1"><span class="pl-mi1">+</span> console.log('Object.keys(entries)', Object.keys(entries));</span> const entryInfo = entries[page] // If there's no entry. // Then it seems like an weird issue. if (!entryInfo) { const message = `Client pings, but there's no entry for page: ${page}`</pre></div> <p dir="auto">and restart <code class="notranslate">next dev</code> and open <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a> and click about link then:</p> <ul dir="auto"> <li>for <code class="notranslate">/about</code> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="query.page /about page /about Object.keys(entries) [ '/', '/about' ]"><pre class="notranslate"><code class="notranslate">query.page /about page /about Object.keys(entries) [ '/', '/about' ] </code></pre></div> </li> <li>for <code class="notranslate">/about/</code>: <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="query.page /about/ page /about/ Object.keys(entries) [ '/', '/about' ] Client pings, but there's no entry for page: /about/"><pre class="notranslate"><code class="notranslate">query.page /about/ page /about/ Object.keys(entries) [ '/', '/about' ] Client pings, but there's no entry for page: /about/ </code></pre></div> </li> </ul> <p dir="auto">I think the problem (at least part of it) is in inability of onDemandEntryHandler's middleware to find page in entries if page has trailing slash.</p> <p dir="auto">I hope my 2 hours of investigation and preparation can help with fixing this issue.</p>
1
<p dir="auto">Since I updated my pandas lib, I can't do this anymore</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="db = pandas.HDFStore(path) df = db.get('x') df = df[['a', 'b', 'c']]"><pre class="notranslate"><code class="notranslate">db = pandas.HDFStore(path) df = db.get('x') df = df[['a', 'b', 'c']] </code></pre></div> <p dir="auto">It throw me Exception('Reindexing only valid with uniquely valued Index objects',)</p> <p dir="auto">Mrknacky</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd a = pd.TimedeltaIndex(range(3),unit='S') print (a[1])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">TimedeltaIndex</span>(<span class="pl-en">range</span>(<span class="pl-c1">3</span>),<span class="pl-s1">unit</span><span class="pl-c1">=</span><span class="pl-s">'S'</span>) <span class="pl-en">print</span> (<span class="pl-s1">a</span>[<span class="pl-c1">1</span>])</pre></div> <p dir="auto">gives output</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="11574 days 01:46:40"><pre class="notranslate"><code class="notranslate">11574 days 01:46:40 </code></pre></div> <p dir="auto">I would expect the same output as from</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd import numpy as np npa = np.array(range(3),dtype='timedelta64[s]') a = pd.TimedeltaIndex(npa) print(a[1])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">npa</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-en">range</span>(<span class="pl-c1">3</span>),<span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'timedelta64[s]'</span>) <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">TimedeltaIndex</span>(<span class="pl-s1">npa</span>) <span class="pl-en">print</span>(<span class="pl-s1">a</span>[<span class="pl-c1">1</span>])</pre></div> <p dir="auto">giving output</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 0 days 00:00:01"><pre class="notranslate"><code class="notranslate"> 0 days 00:00:01 </code></pre></div> <p dir="auto">This is pandas 0.15.1 as installed by conda update pandas from a fresh python 3.4 install of anaconda.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" INSTALLED VERSIONS ------------------ commit: None python: 3.4.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: nb_NO pandas: 0.15.1 nose: 1.3.4 Cython: 0.21 numpy: 1.9.1 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.2.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.1 pytz: 2014.9 bottleneck: None tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.0 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: None xlsxwriter: 0.5.7 lxml: 3.4.0 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.7 pymysql: None psycopg2: None"><pre class="notranslate"><code class="notranslate"> INSTALLED VERSIONS ------------------ commit: None python: 3.4.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: nb_NO pandas: 0.15.1 nose: 1.3.4 Cython: 0.21 numpy: 1.9.1 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.2.0 sphinx: 1.2.3 patsy: 0.3.0 dateutil: 2.1 pytz: 2014.9 bottleneck: None tables: 3.1.1 numexpr: 2.3.1 matplotlib: 1.4.0 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: None xlsxwriter: 0.5.7 lxml: 3.4.0 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.7 pymysql: None psycopg2: None </code></pre></div>
0
<p dir="auto">My machine has a Titan X card so I would like to use the memory as efficient as possible to avoid expensive data transfer between the CPU and GPU. Therefore, I want to have as many images as possible (let's say 5 GB) on the GPU memory inside a <code class="notranslate">tf.Variable</code> or <code class="notranslate">tf.constant</code>. However, I also want to update these data tensors after a number of iterations (<em>e.g.</em> a replay memory). For training, I then only need to send sample indices to the GPU and use <code class="notranslate">tf.slice</code> to generate a training batch.</p> <p dir="auto">My question is what the correct way is to update specific elements in an existing <code class="notranslate">tf.Variable</code>? I already found methods using <code class="notranslate">tf.scatter_update</code> and <code class="notranslate">tf.slice</code>:</p> <p dir="auto"><a href="http://stackoverflow.com/questions/34685947/adjust-single-value-within-tensor-tensorflow" rel="nofollow">http://stackoverflow.com/questions/34685947/adjust-single-value-within-tensor-tensorflow</a><br> <a href="http://stackoverflow.com/questions/37593960/set-k-largest-elements-of-a-tensor-to-zero-in-tensorflow" rel="nofollow">http://stackoverflow.com/questions/37593960/set-k-largest-elements-of-a-tensor-to-zero-in-tensorflow</a></p> <p dir="auto">But these methods seem cumbersome and tricky. Are there better ways of updating existing variables?</p>
<p dir="auto">I've been trying to install tensorflow with GPU support using these steps:<br> <a href="http://www.nvidia.com/object/gpu-accelerated-applications-tensorflow-installation.html" rel="nofollow">http://www.nvidia.com/object/gpu-accelerated-applications-tensorflow-installation.html</a></p> <p dir="auto">This is the error message that I'm getting when I try to run the bazel build command for building the tensorflow pip package (with the --config-cuda flag set):</p> <p dir="auto"><code class="notranslate">bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</code></p> <p dir="auto">i get :<br> <code class="notranslate">The specified --crosstool_top '//third_party/gpus/crosstool:crosstool' is not a valid cc_toolchain_suite rule</code></p> <p dir="auto">What's strange is that if i remove the --config=cuda flag, I don't get the error message while building and I'm able to install tensorflow successfully - but without GPU support.</p>
0
<p dir="auto">Using the following file in the current directory:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="### MATPLOTLIBRC FORMAT # See https://matplotlib.org/users/customizing.html #### CONFIGURATION BEGINS HERE # Custom math font settings (always use LaTeX &quot;Computer Modern&quot;) mathtext.fontset : cm mathtext.rm : serif"><pre class="notranslate"><code class="notranslate">### MATPLOTLIBRC FORMAT # See https://matplotlib.org/users/customizing.html #### CONFIGURATION BEGINS HERE # Custom math font settings (always use LaTeX "Computer Modern") mathtext.fontset : cm mathtext.rm : serif </code></pre></div> <p dir="auto">results in</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import matplotlib Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;.../python3.7/site-packages/matplotlib/__init__.py&quot;, line 1111, in &lt;module&gt; rcParamsOrig = RcParams(rcParams.copy()) File &quot;.../python3.7/site-packages/matplotlib/__init__.py&quot;, line 891, in __getitem__ from matplotlib import pyplot as plt File &quot;.../python3.7/site-packages/matplotlib/pyplot.py&quot;, line 32, in &lt;module&gt; import matplotlib.colorbar File &quot;.../python3.7/site-packages/matplotlib/colorbar.py&quot;, line 40, in &lt;module&gt; import matplotlib._constrained_layout as constrained_layout File &quot;.../python3.7/site-packages/matplotlib/_constrained_layout.py&quot;, line 52, in &lt;module&gt; from matplotlib.legend import Legend File &quot;.../python3.7/site-packages/matplotlib/legend.py&quot;, line 43, in &lt;module&gt; from matplotlib.offsetbox import HPacker, VPacker, TextArea, DrawingArea File &quot;.../python3.7/site-packages/matplotlib/offsetbox.py&quot;, line 33, in &lt;module&gt; from matplotlib.image import BboxImage File &quot;.../python3.7/site-packages/matplotlib/image.py&quot;, line 19, in &lt;module&gt; from matplotlib.backend_bases import FigureCanvasBase File &quot;.../python3.7/site-packages/matplotlib/backend_bases.py&quot;, line 46, in &lt;module&gt; from matplotlib import ( ImportError: cannot import name 'get_backend' from 'matplotlib' (.../python3.7/site-packages/matplotlib/__init__.py)"><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">matplotlib</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"&lt;stdin&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-v">File</span> <span class="pl-s">".../python3.7/site-packages/matplotlib/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1111</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">rcParamsOrig</span> <span class="pl-c1">=</span> <span class="pl-v">RcParams</span>(<span class="pl-s1">rcParams</span>.<span class="pl-en">copy</span>()) <span class="pl-v">File</span> <span class="pl-s">".../python3.7/site-packages/matplotlib/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">891</span>, <span class="pl-s1">in</span> <span class="pl-s1">__getitem__</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-v">File</span> <span class="pl-s">".../python3.7/site-packages/matplotlib/pyplot.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">32</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">colorbar</span> <span class="pl-v">File</span> <span class="pl-s">".../python3.7/site-packages/matplotlib/colorbar.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">40</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">_constrained_layout</span> <span class="pl-k">as</span> <span class="pl-s1">constrained_layout</span> <span class="pl-v">File</span> <span class="pl-s">".../python3.7/site-packages/matplotlib/_constrained_layout.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">52</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">legend</span> <span class="pl-s1">import</span> <span class="pl-v">Legend</span> <span class="pl-v">File</span> <span class="pl-s">".../python3.7/site-packages/matplotlib/legend.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">43</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">offsetbox</span> <span class="pl-s1">import</span> <span class="pl-v">HPacker</span>, <span class="pl-v">VPacker</span>, <span class="pl-v">TextArea</span>, <span class="pl-v">DrawingArea</span> <span class="pl-v">File</span> <span class="pl-s">".../python3.7/site-packages/matplotlib/offsetbox.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">33</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">image</span> <span class="pl-s1">import</span> <span class="pl-v">BboxImage</span> <span class="pl-v">File</span> <span class="pl-s">".../python3.7/site-packages/matplotlib/image.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">19</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">backend_bases</span> <span class="pl-s1">import</span> <span class="pl-v">FigureCanvasBase</span> <span class="pl-v">File</span> <span class="pl-s">".../python3.7/site-packages/matplotlib/backend_bases.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">46</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> ( <span class="pl-v">ImportError</span>: <span class="pl-s1">cannot</span> <span class="pl-k">import</span> <span class="pl-s1">name</span> <span class="pl-s">'get_backend'</span> <span class="pl-k">from</span> <span class="pl-s">'matplotlib'</span> (...<span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">matplotlib</span><span class="pl-c1">/</span><span class="pl-s1">__init__</span>.<span class="pl-s1">py</span>)</pre></div>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Importing matplotlib fails with <code class="notranslate">ImportError: cannot import name 'get_backend' from 'matplotlib'</code>.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span></pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/lib/python3.7/site-packages/matplotlib/__init__.py&quot;, line 1080, in &lt;module&gt; rcParamsOrig = RcParams(rcParams.copy()) File &quot;/usr/lib/python3.7/site-packages/matplotlib/__init__.py&quot;, line 870, in __getitem__ from matplotlib import pyplot as plt File &quot;/usr/lib/python3.7/site-packages/matplotlib/pyplot.py&quot;, line 33, in &lt;module&gt; import matplotlib.image File &quot;/usr/lib/python3.7/site-packages/matplotlib/image.py&quot;, line 18, in &lt;module&gt; from matplotlib.backend_bases import FigureCanvasBase File &quot;/usr/lib/python3.7/site-packages/matplotlib/backend_bases.py&quot;, line 46, in &lt;module&gt; from matplotlib import ( ImportError: cannot import name 'get_backend' from 'matplotlib' (/usr/lib/python3.7/site-packages/matplotlib/__init__.py)"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/usr/lib/python3.7/site-packages/matplotlib/__init__.py", line 1080, in &lt;module&gt; rcParamsOrig = RcParams(rcParams.copy()) File "/usr/lib/python3.7/site-packages/matplotlib/__init__.py", line 870, in __getitem__ from matplotlib import pyplot as plt File "/usr/lib/python3.7/site-packages/matplotlib/pyplot.py", line 33, in &lt;module&gt; import matplotlib.image File "/usr/lib/python3.7/site-packages/matplotlib/image.py", line 18, in &lt;module&gt; from matplotlib.backend_bases import FigureCanvasBase File "/usr/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 46, in &lt;module&gt; from matplotlib import ( ImportError: cannot import name 'get_backend' from 'matplotlib' (/usr/lib/python3.7/site-packages/matplotlib/__init__.py) </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">Matplotlib is imported</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: GNU/Linux</li> <li>Matplotlib version: 3.0 git master</li> <li>Python version: 3.7.1</li> </ul> <p dir="auto">Python from Arch repo, matplotlib from git master.</p>
1
<p dir="auto">I just did a <code class="notranslate">yarn upgrade</code> in order to get access to the <code class="notranslate">Select</code> component. Material UI updated, but it appears there's a bug in the release version; I keep getting a build error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in ./node_modules/material-ui/Chip/Chip.js Module not found: Error: Can't resolve '../svg-icons/Cancel' in '&lt;my-repo&gt;\node_modules\material-ui\Chip' @ ./node_modules/material-ui/Chip/Chip.js 58:14-44 @ ./node_modules/material-ui/Chip/index.js @ ./node_modules/material-ui/index.es.js @ ./src/views/downloads/index.js @ ./src/app/container/content.js @ ./src/app/container/index.js @ ./src/app/index.js @ ./src/index.js @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/index.js"><pre class="notranslate"><code class="notranslate">ERROR in ./node_modules/material-ui/Chip/Chip.js Module not found: Error: Can't resolve '../svg-icons/Cancel' in '&lt;my-repo&gt;\node_modules\material-ui\Chip' @ ./node_modules/material-ui/Chip/Chip.js 58:14-44 @ ./node_modules/material-ui/Chip/index.js @ ./node_modules/material-ui/index.es.js @ ./src/views/downloads/index.js @ ./src/app/container/content.js @ ./src/app/container/index.js @ ./src/app/index.js @ ./src/index.js @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/index.js </code></pre></div> <p dir="auto">I've tried restarting the server to make sure it's not just a fluke, but I can't get rid of the issue.</p>
<p dir="auto">The latest release of Material-UI (v1.0.0-beta.9) doesn't render correctly.</p> <blockquote> <p dir="auto">Error in ./node_modules/material-ui/Chip/Chip.js<br> Module not found: Can't resolve '../svg-icons/Cancel'</p> </blockquote> <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> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">The material-ui page should compile correctly.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Compiling a component using Chip throws and error.</p> <blockquote> <p dir="auto">Error in ./node_modules/material-ui/Chip/Chip.js<br> Module not found: Can't resolve '../svg-icons/Cancel'</p> </blockquote> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Add Chip component to page</li> <li>Start app</li> <li>Exception is thrown</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>Material-UI</td> <td>v1.0.0-beta.9</td> </tr> <tr> <td>React</td> <td>15.4.2</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
1
<p dir="auto">It's not possible to find which version of TLS was used, or indeed any of the SSL parameters, after a transfer.<br> Could some of this metadata be made available, perhaps only if specified in the request.</p> <p dir="auto">Is there any indication that TLS was used at all ?</p>
<p dir="auto">When requests answer is from (atleast) ISO-8859-1, the module take so long for process the response.</p> <h2 dir="auto">Expected Result</h2> <p dir="auto">Similar time than curl or browser time around 1 sec</p> <h2 dir="auto">Actual Result</h2> <p dir="auto">The answer takes more than 2 minutes<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30806958/96336246-ae3ba400-107e-11eb-803d-4e3489d42c6f.png"><img src="https://user-images.githubusercontent.com/30806958/96336246-ae3ba400-107e-11eb-803d-4e3489d42c6f.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Reproduction Steps</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="url = 'https://geoportal.minetur.gob.es/VCTEL/infoantenasGeoJSON.do?idCapa=null&amp;bbox=-1.5525697885398,39.26519497205,-1.549179476345,39.273649294864&amp;zoom=4' r = requests.get(url, headers=headers) print(r.json()) "><pre class="notranslate"><code class="notranslate">url = 'https://geoportal.minetur.gob.es/VCTEL/infoantenasGeoJSON.do?idCapa=null&amp;bbox=-1.5525697885398,39.26519497205,-1.549179476345,39.273649294864&amp;zoom=4' r = requests.get(url, headers=headers) print(r.json()) </code></pre></div> <h2 dir="auto">System Information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;chardet&quot;: { &quot;version&quot;: &quot;3.0.4&quot; }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;2.10&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;3.8.5&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;5.4.64-1-MANJARO&quot;, &quot;system&quot;: &quot;Linux&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;&quot;, &quot;version&quot;: null }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.24.0&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;1010107f&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.25.10&quot; }, &quot;using_pyopenssl&quot;: false }"><pre class="notranslate"><code class="notranslate">{ "chardet": { "version": "3.0.4" }, "cryptography": { "version": "" }, "idna": { "version": "2.10" }, "implementation": { "name": "CPython", "version": "3.8.5" }, "platform": { "release": "5.4.64-1-MANJARO", "system": "Linux" }, "pyOpenSSL": { "openssl_version": "", "version": null }, "requests": { "version": "2.24.0" }, "system_ssl": { "version": "1010107f" }, "urllib3": { "version": "1.25.10" }, "using_pyopenssl": false } </code></pre></div> <h2 dir="auto">Thoughts</h2> <p dir="auto">This looks like a problem with encoding as requests needs to guess the encoding, maybe adding a parameter or a way for specify the answer encoding would speed it up</p>
0
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">I have a next.js app which uses exclusively static rendering. I recently upgraded it to 9.2.0 and released it to production. Everything worked.</p> <p dir="auto">After several more commits, we started to see our script just not start executing. That's how it looks. No console errors, no network errors, but none of the script seems to run. We have ajax loading spinners that are baked into the static html of the site by the build process, and that's all we see. The ajax loads never happen. Apparently we are getting no script running.</p> <p dir="auto">"yarn dev" / localhost:3000 works fine. It's only when building production.</p> <p dir="auto">So I have a specific commit based on 9.2.0 that works, and a subsequent one that does not. However, nothing about the commit where it broke has anything I would ever suspect to be related to this. And if I go to our latest commit and revert the one where the break starts, it is <em>still broken</em>.</p> <p dir="auto">It's as if it has more to do with the quantity of code than what the code is??</p> <p dir="auto">Taking all our changes but reverting to 9.1.7 resolves the issue. I tested 9.2.1 and it does NOT resolve the issue.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">My challenge is how to give you a reproducible test case. I can't share my code obviously and I don't know how to boil this down to something minimal quite yet.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">I'd like the benefits of 9.2.x and have my script keep working.</p> <h2 dir="auto">Screenshots</h2> <p dir="auto">Not sure these would help</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: Win 10</li> <li>Browser: Brave, Chrome, and IE11. We originally conflated this with an IE issue we were working on... we don't normally look at IE :)</li> <li>Version of Next.js: 9.2.0</li> </ul> <h2 dir="auto">Additional context</h2>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">If a module used in a polyfill becomes a separate chunk, any page that doesn't import the same module will break in production, because the chunk is added to main.js webpack dependencies but isn't added as a script tag.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">I've created a repo which reproduces the bug: <a href="https://github.com/jmswrnr/next-9.2.0-chunk-bug">https://github.com/jmswrnr/next-9.2.0-chunk-bug</a></p> <p dir="auto">The bug only occurs in a production build, so: <code class="notranslate">npm run build</code> and <code class="notranslate">npm run start</code></p> <ul dir="auto"> <li><a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a> - Simple page - <strong>fails mount</strong></li> <li><a href="http://localhost:3000/dynamic" rel="nofollow">http://localhost:3000/dynamic</a> - Dynamic import with <code class="notranslate">{ ssr: false }</code> - <strong>fails mount</strong></li> <li><a href="http://localhost:3000/import" rel="nofollow">http://localhost:3000/import</a> - Import polyfill dependency - <strong>successfully mounts</strong></li> </ul> <h2 dir="auto">Expected behavior</h2> <p dir="auto">All pages should trigger <code class="notranslate">useEffect</code> and display <code class="notranslate">Mounted: true</code></p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: Windows</li> <li>Browser: chrome</li> <li>Version of Next.js: <strong>9.2.0</strong> and <strong>9.2.1-canary.2</strong></li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Using polyfill method from example: <a href="https://github.com/zeit/next.js/blob/master/examples/with-polyfills/next.config.js">https://github.com/zeit/next.js/blob/master/examples/with-polyfills/next.config.js</a></p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.19008.1000] Windows Terminal version : 0.6.2951 Lenovo Thinkpad P1 : Intel Xeon E-2176M Hybrid Graphics with Intel P630 and Nvidia Quadro P2000 64GB RAM Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.19008.1000] Windows Terminal version : 0.6.2951 Lenovo Thinkpad P1 : Intel Xeon E-2176M Hybrid Graphics with Intel P630 and Nvidia Quadro P2000 64GB RAM Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Very easy to reproduce. Have the performance monitor open and bring terminal to foreground. The GPU usage spikes.<br> I noticed this issue because, mouse becomes laggy and UI is almost unusable.</p> <p dir="auto">I am pasting two screen shots when the terminal goes foreground and when the terminal goes background</p> <h2 dir="auto">High GPU usage when the terminal is foreground</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/808507/67729628-30434080-f9c8-11e9-90b2-2c7c830876b1.png"><img src="https://user-images.githubusercontent.com/808507/67729628-30434080-f9c8-11e9-90b2-2c7c830876b1.png" alt="terminal_highcpu" style="max-width: 100%;"></a></p> <h2 dir="auto">Low GPU usage when the terminal goes background</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/808507/67729634-35a08b00-f9c8-11e9-8b29-0887781578e7.png"><img src="https://user-images.githubusercontent.com/808507/67729634-35a08b00-f9c8-11e9-8b29-0887781578e7.png" alt="terminal_lowcpu" style="max-width: 100%;"></a></p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">A relatively idle terminal should not be consuming 100% GPU and there by freezing the UI</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">UI lockups due to 100% GPU</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> Possibility of being able to elevate to administrator privileges through a command in the terminal, as it works in the linux systems for example. It is counterproductive to have to open new instances to gain access to administrator privilege.
0
<p dir="auto">I have the following file:</p> <p dir="auto">file.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import $ from 'jquery';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">$</span> <span class="pl-k">from</span> <span class="pl-s">'jquery'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I transform it as such:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="babel --retainLines=true file.js"><pre class="notranslate"><code class="notranslate">babel --retainLines=true file.js </code></pre></div> <p dir="auto">and the output is:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict'; function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { 'default': obj }; } var _jquery = require('jquery'); var _jquery2 = _interopRequireDefault(_jquery); "><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">obj</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">__esModule</span> ? <span class="pl-s1">obj</span> : <span class="pl-kos">{</span> <span class="pl-s">'default'</span>: <span class="pl-s1">obj</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">_jquery</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'jquery'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_jquery2</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_jquery</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I'm using gulp-babel and it's showing me error</p> <p dir="auto">Unknown option: retainLines</p>
1
<p dir="auto">I can't input any character of Chinese language.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">You have to have good precision with your mouse to drag resize the window because the resize area is only a couple of pixels wide. This makes for a frustrating experience when you attempt to drag resize the window.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Do what the current conshost window does. It provides somewhere between a 6-8 pixel width drag resize area.</p>
0
<p dir="auto">angular 2.0.0-beta.0<br> loader.html and loader.css are located in directory /admin-angular-two/components/loader/</p> <p dir="auto">This code doesn't work:<br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/component/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/component">@component</a>({<br> selector: 'loader',<br> templateUrl: '/admin-angular-two/components/loader/loader.html',<br> styleUrls: ['/admin-angular-two/components/loader/loader.css']<br> })</p> <p dir="auto">but this works:<br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/component/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/component">@component</a>({<br> selector: 'loader',<br> templateUrl: '/admin-angular-two/components/loader/loader.html',<br> styleUrls: ['../../../admin-angular-two/components/loader/loader.css']<br> })</p> <p dir="auto">base url is setted:</p> &lt;script&gt;document.write('');&lt;/script&gt;
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="styleUrls: [&quot;dist/stylesheet/App.css&quot;] // this works perfectly styleUrls: [&quot;/dist/stylesheet/App.css&quot;] // this does not work"><pre class="notranslate">styleUrls: <span class="pl-kos">[</span><span class="pl-s">"dist/stylesheet/App.css"</span><span class="pl-kos">]</span> <span class="pl-c">// this works perfectly</span> styleUrls: <span class="pl-kos">[</span><span class="pl-s">"/dist/stylesheet/App.css"</span><span class="pl-kos">]</span> <span class="pl-c">// this does not work</span></pre></div> <p dir="auto">any idea?</p>
1
<p dir="auto"><strong>I'm submitting a bug report</strong></p> <p dir="auto"><strong>Webpack version:</strong><br> 2.1.0-beta.23</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> OSX</p> <p dir="auto"><strong>Current behavior:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.entry['something'] should be one of these: string | [string] The entry point for one output file"><pre class="notranslate"><code class="notranslate">Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.entry['something'] should be one of these: string | [string] The entry point for one output file </code></pre></div> <p dir="auto"><strong>Expected/desired behavior:</strong><br> Should work since I am actually passing an array of strings as entry point(s)</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> Bug</p> <p dir="auto"><strong>What is the current behavior?</strong><br> I'm using a module called jquery-datetimepicker in my project. When I install it from the npm repo everything is fine. However, I had to make some changes to it and I tried bundling the local copy. When I load it into the browser I get what appears to be a syntax error saying that a function is not defined.</p> <p dir="auto"><code class="notranslate">Uncaught TypeError: $(...).datetimepicker is not a function</code></p> <p dir="auto">To rule out any mistakes on my part, I installed the module from the npm repo, moved it to a different location, then installed it as a local module, but got the same error. This means that identical modules are treated differently depending on how they were installed.</p> <p dir="auto"><strong>Problems:</strong> There are a number of problems / inconsistencies that I noticed:</p> <ol dir="auto"> <li>I have to manually go into the local module and install it's dependencies, even though they are already installed in the main project.</li> <li>After examining the bundle with minimization disabled, I noticed I have 2 jQuery entries</li> <li>This duplicate jQuery chunk (both the exact same version) seems to be causing the syntax error I mentioned before.</li> </ol> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">Download the attached minimal example and follow the steps:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd test npm install webpack "><pre class="notranslate"><code class="notranslate">cd test npm install webpack </code></pre></div> <p dir="auto">At this point everything works. Open the html in your browser and click on the fields, you will get the datetimpicker and no errors.</p> <p dir="auto">Next install as local module:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mv node_modules/jquery-datetimepicker ~/ npm install --save ~/jquery-datetimepicker "><pre class="notranslate"><code class="notranslate">mv node_modules/jquery-datetimepicker ~/ npm install --save ~/jquery-datetimepicker </code></pre></div> <p dir="auto">At this this point you'll noticed that:</p> <ol dir="auto"> <li>Package.json now specifies the path to the module</li> <li>In node_modules, the jquery-datetimepicker module directory is replaced with a link to the actual module location</li> </ol> <p dir="auto">If you now try to run webpack, you'll get errors that jquery-datetimepicker is missing dependencies. To get pass that, you would need to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd ~/jquery-datetimepicker nmp install "><pre class="notranslate"><code class="notranslate">cd ~/jquery-datetimepicker nmp install </code></pre></div> <p dir="auto">After you've done that, you'll be able to run webpack, but the bundle will contain a duplicate jQuery chunk (even if I force the use of the same version of jQuery by modifying jquery-datetimepicker's package.json file) and you'll get the syntax error when you try to render.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> I would expect the module to be resolved the same way regardless of it's location.</p> <ul dir="auto"> <li>I should not have to install the jquery-datetimepicker dependencies by hand.<br> If I understand the resolve behavior, it should go abc/node_modules/jquery-datetimepicker/node_modules. When it doesn't find that it should try abc/node_modules where it should be able to find everything it needs.</li> <li>I should get only a single jQuery chunk</li> <li>I should not be getting a syntax error.</li> </ul> <p dir="auto">I manually removed the duplicate jQuery chunk and fixed the dependency IDs, and that seems to fix the problem. Not sure why, as far as I can tell there is no syntax error in the file, but it could be some sort of chunk ordering issue.</p> <p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.</strong></p> <p dir="auto">Here is the system info:<br> <a href="https://github.com/webpack/webpack/files/9084782/system_info.txt">system_info.txt</a></p> <p dir="auto">Minimal example:</p> <p dir="auto"><a href="https://github.com/webpack/webpack/files/9085573/test.zip">test.zip</a></p>
0
<p dir="auto">It would be great if we could export all settings, shortcuts, snippets, extensions in one step and import them in another machine.</p>
<p dir="auto">Implement indent rulers similar to what's used in other editors (<a href="https://github.com/Microsoft/vscode/issues/3803#issuecomment-195682393" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3803/hovercard">see this screenshot</a>).</p> <p dir="auto">This should be a setting that is on by default but that can be disabled in settings.json.</p> <p dir="auto">Perhaps we can call it <code class="notranslate">"editor.indentGuides:" true</code></p> <p dir="auto">Vertical tab rulers should show for each tab level in (also include position 0 within nested section of code, such as classes, functions, Html tag nesting etc...)</p> <p dir="auto">Addresses issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139179739" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3803" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3803/hovercard" href="https://github.com/microsoft/vscode/issues/3803">#3803</a>. Some users have trouble not knowing where the left edge of the code editor is. This is partly because the code editor and the glyph margin is not visually separated. This is particularly a problem for users who use small tab sizes (such as 2 spaces).</p>
0
<p dir="auto">Currently both deno itself and executable generated from <code class="notranslate">deno compile</code> are not static executable, but generating static executable will help a lot since some Linux distributes doesn't have glibc (like Alpine Linux, which is used widely in Docker).</p>
<p dir="auto">When trying to run deno on Centos 7, it fails:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[maxim@maxim deno] $ target/release/deno tests/worker.js target/release/deno: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by target/release/deno)"><pre class="notranslate">[maxim@maxim deno] $ target/release/deno tests/worker.js target/release/deno: /lib64/libc.so.6: version <span class="pl-s"><span class="pl-pds">`</span>GLIBC_2.18<span class="pl-s"><span class="pl-pds">'</span> not found (required by target/release/deno)</span></span></pre></div> <p dir="auto">Additional information:<br> First things first, Centos 7 is based on RHEL 7, as one may know. And, according to <a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.0_release_notes/sect-red_hat_enterprise_linux-7.0_release_notes-compiler_and_tools-glibc" rel="nofollow">redhat.com</a>:</p> <blockquote> <p dir="auto">In Red Hat Enterprise Linux 7, the glibc libraries (libc, libm, libpthread, NSS plug-ins, and others) are based on the glibc 2.17 release</p> </blockquote> <p dir="auto">Replacing system glibc is a <a href="https://serverfault.com/questions/894625/safely-upgrade-glibc-on-centos-7#comment1155836_894689" rel="nofollow">very bad idea</a>, basically because all binaries on the system are compatible with specific glibc version. So, that's not an option.</p> <p dir="auto">However, the RHEL 8 Beta is using glibc 2.28 (<a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8-beta/html-single/8.0_beta_release_notes/index#compilers_and_development_tools_2" rel="nofollow">source</a>), but Centos 8 will only be released when the stable version of RHEL 8 will be released (<a href="https://www.centos.org/forums/viewtopic.php?t=68821" rel="nofollow">source</a>), so updating Centos is not an option right now.</p> <p dir="auto">I have also tried installing glibc in a nonstandard location as described <a href="https://serverfault.com/a/894689/281189" rel="nofollow">here</a>. Unfortunately, when I try to run deno with that custom glibc, I'm getting:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[maxim@maxim deno]$ LD_LIBRARY_PATH=/opt/glibc-2.18/lib target/release/deno tests/worker.js Segmentation fault (core dumped)"><pre class="notranslate">[maxim@maxim deno]$ LD_LIBRARY_PATH=/opt/glibc-2.18/lib target/release/deno tests/worker.js Segmentation fault (core dumped)</pre></div> <p dir="auto">I've tried to debug it with <code class="notranslate">lldb</code>, <code class="notranslate">gdb</code>, <code class="notranslate">abrt</code>, but neither option worked for me. Probably, because I'm doing something wrong.<br> <code class="notranslate">lldb</code>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[maxim@maxim deno]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib lldb -- target/debug/deno tests/worker.js lldb: relocation error: /opt/glibc-2.18/lib/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference"><pre class="notranslate">[maxim@maxim deno]$ LD_LIBRARY_PATH=<span class="pl-smi">$LD_LIBRARY_PATH</span>:/opt/glibc-2.18/lib lldb -- target/debug/deno tests/worker.js lldb: relocation error: /opt/glibc-2.18/lib/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined <span class="pl-k">in</span> file ld-linux-x86-64.so.2 with link <span class="pl-k">time</span> reference</pre></div> <p dir="auto"><code class="notranslate">gdb</code>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[maxim@maxim deno]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib gdb target/release/deno tests/worker.js gdb: relocation error: /opt/glibc-2.18/lib/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference"><pre class="notranslate">[maxim@maxim deno]$ LD_LIBRARY_PATH=<span class="pl-smi">$LD_LIBRARY_PATH</span>:/opt/glibc-2.18/lib gdb target/release/deno tests/worker.js gdb: relocation error: /opt/glibc-2.18/lib/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined <span class="pl-k">in</span> file ld-linux-x86-64.so.2 with link <span class="pl-k">time</span> reference</pre></div> <p dir="auto">And <code class="notranslate">abrt</code> won't detect any crashes, even though I've set <code class="notranslate">OpenGPGCheck = no</code> and <code class="notranslate">ProcessUnpackaged = yes</code> in <code class="notranslate">/etc/abrt/abrt-action-save-package-data.conf</code>, restarted <code class="notranslate">abrtd</code> and <code class="notranslate">abrt-ccpp</code>, and finally tried rebooting, nothing helped.<br> I hope, that I'm doing something wrong, because right now I think using custom glibc is the only option, if I don't want to containerize deno.</p> <p dir="auto">Also, as far as I understand, GLIBC_2.18 isn't a direct requirement of deno, but rather a requirement of some third-party.<br> I've found Chromium bug <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=749077" rel="nofollow">glibc dependency creeped up to 2.18 in M61, breaking EL7 support</a> which seems relevant, but it was fixed a while ago.<br> I'm not really good in C or library symbols to find which dependency requires 2.18, so any help here would be really appreciated.</p> <p dir="auto">I hope that <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ry">@ry</a> also would agree that we should support Centos, and probably when this issue got fixed, we can run travis not only for <a href="https://docs.travis-ci.com/user/reference/trusty/" rel="nofollow">Ubuntu 14.04 LTS (trusty)</a> but also for Centos. Many thanks for your attention!</p>
1
<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.read_excel('Financial Sample.xlsx') print df "><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-en">read_excel</span>(<span class="pl-s">'Financial Sample.xlsx'</span>) <span class="pl-k">print</span> <span class="pl-s1">df</span> </pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">My excel sheet has a column in which people can enter number of words but when i am reading it through pandas it is only taking up to 45 characters and the rest of it is printed as ". . ."</p> <p dir="auto">[this should explain <strong>why</strong> the current behaviour is a problem and why the expected output is a better solution.]</p> <p dir="auto"><strong>Note</strong>: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!</p> <p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p> <p dir="auto">For documentation-related issues, you can check the latest versions of the docs on <code class="notranslate">master</code> here:</p> <p dir="auto"><a href="https://pandas-docs.github.io/pandas-docs-travis/" rel="nofollow">https://pandas-docs.github.io/pandas-docs-travis/</a></p> <p dir="auto">If the issue has not been resolved there, go ahead and file it in the issue tracker.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">The pandas ecel reader should read the whole cell in the excel file</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <p dir="auto">the output is like follows:</p> <details> <p dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]<br> 3 <a href="https://www.crowdfundinsider.com/2017/12/12589" rel="nofollow">https://www.crowdfundinsider.com/2017/12/12589</a>...<br> where the dot's represent more data but it is not getting printed.</p> </details>
<p dir="auto">This can be shunted into the tslibs todo list after it has been seen.</p> <p dir="auto"><code class="notranslate">tslibs.conversion.tz_localize_to_utc</code> has a comment <code class="notranslate"># Vectorized version of DstTzInfo.localize</code>. Two of the places where <code class="notranslate">tz_localize_to_utc</code> are called are for a singleton <code class="notranslate">np.array([self.value], dtype='i8')</code>. If there is a scalar version available, we can avoid array creation and iteration overhead.</p>
0
<p dir="auto">When using the following notation for extending a layout:</p> <p dir="auto"><code class="notranslate">{% extends "@FOSUser/layout.html.twig" %}</code></p> <p dir="auto">the view from the actual <code class="notranslate">FOSUserBundle</code> is used, even when it's overriden by a bundle that implements:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public function getParent() { return 'FOSUserBundle'; }"><pre class="notranslate"><code class="notranslate">public function getParent() { return 'FOSUserBundle'; } </code></pre></div>
<p dir="auto">Url validator accept as valid an url like the following:<br> <a href="http://testsub+domanin.domanin.com:8080/test" rel="nofollow">http://testsub+domanin.domanin.com:8080/test</a></p> <p dir="auto">but does not accept<br> <a href="http://test_sub_domanin.domanin.com:8080/test" rel="nofollow">http://test_sub_domanin.domanin.com:8080/test</a></p> <p dir="auto">The problem seems to be here:<br> symfony / src / Symfony / Component / Validator / Constraints / UrlValidator.php<br> Line 28: ([\pL\pN\pS-]+.)+[\pL]+ # a domain name</p> <p dir="auto">The fix can be as simple as replacing \pS (mathematical symbol) with \pP (punctuation character) or even better i think \pPc (Connector Punctuation character)</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">No<br> <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):<br> Features Request</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> [root@localhost ~]# kubectl version<br> Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-alpha.0.1877+3f4a66f3d6892b-dirty", GitCommit:"3f4a66f3d6892b8d8831a8a60b91fd1afbefee4d", GitTreeState:"dirty", BuildDate:"2016-10-31T20:47:46Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto">[root@localhost ~]# kubeadm version<br> kubeadm version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-alpha.0.1534+cf7301f16c0363-dirty", GitCommit:"cf7301f16c036363c4fdcb5d4d0c867720214598", GitTreeState:"dirty", BuildDate:"2016-09-27T18:10: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>:x89_64</li> <li><strong>OS</strong> (e.g. from /etc/os-release):Ubuntu 16.04</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux kubenode01 4.4.0-38-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35453339" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/57" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/57/hovercard" href="https://github.com/kubernetes/kubernetes/pull/57">#57</a>-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li> <li><strong>Install tools</strong>:kubeadm</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">While running performance tests (start 30 pods per node in 50 nodes cluster) I faced the following problem.</p> <ol dir="auto"> <li>Create replication controller and resize it to 1500. I saw the following logs:<br> I0327 14:45:09.036772 14025 density.go:109] Controller my-hostname-density30-7bb294b4-d487-11e4-9336-a0481cabf39b: Found 0 pods out of 1500<br> I0327 14:45:16.918259 14025 density.go:109] Controller my-hostname-density30-7bb294b4-d487-11e4-9336-a0481cabf39b: Found 835 pods out of 1500<br> I0327 14:45:24.465116 14025 density.go:129] Controller my-hostname-density30-7bb294b4-d487-11e4-9336-a0481cabf39b: Found 1500 pods out of 1500</li> <li>However, looking into scheduler logs, the first time when it attempts to schedule any of those pods is related to the log:<br> I0327 13:45:55.474005 4551 factory.go:166] About to try and schedule pod my-hostname-density30-7bb294b4-d487-11e4-9336-a0481cabf39bfjo6e</li> </ol> <p dir="auto">This is roughly ~45 seconds after the first pod was created. The question is what the scheduler was doing in the meantime - the only logs from that time are:<br> I0327 13:40:52.230407 4551 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF<br> E0327 13:40:52.231778 4551 reflector.go:149] watch of *api.Service ended with error: 401: The event in requested index is outdated and cleared (the requested history has been cleared [4053/16]) [<br> 5052]<br> I0327 13:45:53.272954 4551 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF<br> I0327 13:45:53.273448 4551 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF<br> E0327 13:45:53.277590 4551 reflector.go:149] watch of *api.Pod ended with error: 401: The event in requested index is outdated and cleared (the requested history has been cleared [12989/5082]) [1<br> 3988]<br> E0327 13:45:53.277823 4551 reflector.go:149] watch of *api.Service ended with error: 401: The event in requested index is outdated and cleared (the requested history has been cleared [12989/5082]<br> ) [13988]<br> I0327 13:45:55.474005 4551 factory.go:166] About to try and schedule pod my-hostname-density30-7bb294b4-d487-11e4-9336-a0481cabf39bfjo6e</p> <p dir="auto">A very similar thing happened in Kubelet. During the same test, the first pod was bind to minion "*0jxm" at:<br> I0327 13:46:00.291905 4551 factory.go:303] Attempting to bind my-hostname-density30-7bb294b4-d487-11e4-9336-a0481cabf39b7aukl to e2e-test-wojtekt-minion-0jxm.c.groovy-sentry-504.internal</p> <p dir="auto">However, Kubelet reacted to it 50 seconds later:<br> I0327 13:46:50.560684 4712 kubelet.go:1099] No Infra Container for "my-hostname-density30-7bb294b4-d487-11e4-9336-a0481cabf39b7aukl_default" found. All containers will be restarted.</p> <p dir="auto">Again, it seems that nothing was really happening during that 50 seconds. The Kubelet logs from that time are:<br> I0327 13:44:55.038542 4712 server.go:654] GET /healthz: (886.441µs) 0 [[monit/5.4] 127.0.0.1:37322]<br> E0327 13:46:43.817523 4712 reflector.go:149] watch of *api.Node ended with error: 401: The event in requested index is outdated and cleared (the requested history has been cleared [17177/7110]) [18176<br> ]<br> I0327 13:46:46.492099 4712 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF<br> I0327 13:46:46.492181 4712 iowatcher.go:91] Unexpected EOF during watch stream event decoding: unexpected EOF<br> E0327 13:46:47.256804 4712 reflector.go:149] watch of *api.Service ended with error: 401: The event in requested index is outdated and cleared (the requested history has been cleared [17354/6384]) [18<br> 353]<br> E0327 13:46:47.256950 4712 reflector.go:149] watch of *api.Pod ended with error: 401: The event in requested index is outdated and cleared (the requested history has been cleared [17352/8087]) [18351]<br> I0327 13:46:50.558471 4712 kubelet.go:1099] No Infra Container for "my-hostname-density30-7bb294b4-d487-11e4-9336-a0481cabf39b8hwgv_default" found. All containers will be restarted.<br> ...<br> [and it works since then].</p> <p dir="auto">Investigate what is happening during that 45 seconds periods of "nothing".</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fgrzadkowski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fgrzadkowski">@fgrzadkowski</a></p>
0
<h3 dir="auto">Description</h3> <p dir="auto">Hello! I recently was struggling to find a bug in my code, when I realized the problem came from some weird behavior from Jax. Below, note the inconsistency in evaluation when mutliplying <code class="notranslate">jnp.array(False)</code> with arrays of length &gt;1:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import jax.numpy as jnp f = jnp.array(False) t = jnp.array(True) inf=jnp.inf a = jnp.array([inf]) b = jnp.array([inf, inf]) # Scalar multiplication (what I used as a baseline for 'normal') print( t * inf ) # -&gt; Array(inf, dtype=float32) print( f * inf ) # -&gt; Array(0., dtype=float32) # Array multiplication print( t * a ) # normal behavior -&gt; Array([inf], dtype=float32) print( f * a ) # normal behavior -&gt; Array([0.], dtype=float32) print( t * b ) # normal behavior -&gt; Array([inf, inf], dtype=float32) print( f * b ) # unexpected behavior! -&gt; Array([nan, nan], dtype=float32)"><pre class="notranslate"><code class="notranslate">import jax.numpy as jnp f = jnp.array(False) t = jnp.array(True) inf=jnp.inf a = jnp.array([inf]) b = jnp.array([inf, inf]) # Scalar multiplication (what I used as a baseline for 'normal') print( t * inf ) # -&gt; Array(inf, dtype=float32) print( f * inf ) # -&gt; Array(0., dtype=float32) # Array multiplication print( t * a ) # normal behavior -&gt; Array([inf], dtype=float32) print( f * a ) # normal behavior -&gt; Array([0.], dtype=float32) print( t * b ) # normal behavior -&gt; Array([inf, inf], dtype=float32) print( f * b ) # unexpected behavior! -&gt; Array([nan, nan], dtype=float32) </code></pre></div> <p dir="auto">It seems like there is a low probability that this behavior is intentional, so I decided to open this issue. Thanks in advance for any help!</p> <h3 dir="auto">What jax/jaxlib version are you using?</h3> <p dir="auto">jax 0.4.8, jaxlib 0.4.7</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.9.12, using Ubuntu on WSL2</p> <h3 dir="auto">NVIDIA GPU info</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="+-----------------------------------------------------------------------------+ | NVIDIA-SMI 525.65 Driver Version: 527.37 CUDA Version: 12.0 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A | | N/A 53C P8 2W / N/A | 3850MiB / 4096MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 11014 C /python3.9 N/A | +-----------------------------------------------------------------------------+"><pre class="notranslate"><code class="notranslate">+-----------------------------------------------------------------------------+ | NVIDIA-SMI 525.65 Driver Version: 527.37 CUDA Version: 12.0 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A | | N/A 53C P8 2W / N/A | 3850MiB / 4096MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 11014 C /python3.9 N/A | +-----------------------------------------------------------------------------+ </code></pre></div>
<h3 dir="auto">Description</h3> <p dir="auto">Multiplying a NaN by False in jax gives a 0. See example below:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="nan = jnp.array(float('nan'), dtype=jnp.float32) print(nan) print(nan * jnp.array(0., dtype=jnp.float32)) print(nan * jnp.array(False, dtype=jnp.bool_))"><pre class="notranslate"><span class="pl-s1">nan</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">array</span>(<span class="pl-en">float</span>(<span class="pl-s">'nan'</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">float32</span>) <span class="pl-en">print</span>(<span class="pl-s1">nan</span>) <span class="pl-en">print</span>(<span class="pl-s1">nan</span> <span class="pl-c1">*</span> <span class="pl-s1">jnp</span>.<span class="pl-en">array</span>(<span class="pl-c1">0.</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">float32</span>)) <span class="pl-en">print</span>(<span class="pl-s1">nan</span> <span class="pl-c1">*</span> <span class="pl-s1">jnp</span>.<span class="pl-en">array</span>(<span class="pl-c1">False</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">bool_</span>))</pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nan nan 0.0"><pre class="notranslate"><code class="notranslate">nan nan 0.0 </code></pre></div> <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">CPU</p> <h3 dir="auto">Additional System Info</h3> <p dir="auto">Linux</p>
1
<pre class="notranslate">package main func main() { i := 0 go func() { i = 1 }() } This compiles without errors. I would expect this to give an "i declared and not used" error.</pre>
<pre class="notranslate">What steps will reproduce the problem? 1. Launch godoc -path=/home/user/user_go_dir/ -http=:3000 2. Visit 127.0.0.1:3000 in a browser. 3. Try to find the package documentation for the user's custom packages. What is the expected output? There should be a link somewhere on the page which links to the package documentation for /home/user/user_go_dir/ What do you see instead? No such link (altho it did exist in an older version of godoc). Which revision are you using? (hg identify) weekly.2012-02-14 +43cf9b39b647</pre>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-target-the-parent-of-an-element-using-jquery?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.prop%28%22disabled%22%2C%20true%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.remove%28%29%3B%0A%20%20%20%20%24%28%22%23target2%22%29.appendTo%28%22%23right-well%22%29%3B%0A%20%20%20%20%24%28%22%23target5%22%29.clone%28%29.appendTo%28%22%23left-well%22%29%3B%0A%0A%20%20%7D%29%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">Waypoint: Target the Parent of an Element Using jQuery</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/45.0.2454.85 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">A bug seems to be present: Chrome 46.0.2490.86 m; Windows 8.1 with respect to <code class="notranslate">appendTo()</code> function.</p> <p dir="auto"><code class="notranslate">$("#target2").appendTo($("#right-well"));</code> does work, but not the <code class="notranslate">$("#target2").appendTo("#right-well");</code>, the latter being suggested in the tutorial.</p> <p dir="auto">Hard reload and cache clearing did not seem to solve the problem.</p>
1
<p dir="auto">In version 2.0.4 the borders of select elements are not rounded.<br> Tested in Windows Firefox 13</p>
<p dir="auto">In the latest version of the bootstrap i.e 2.0.4 form-search does not apply rounded corners to the input text box, but the documentation still says .form-search applies rounded corners to the input text box.</p> <p dir="auto">IMHO it's a regression.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=grussell" rel="nofollow">Gary Russell</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9200?redirect=false" rel="nofollow">SPR-9200</a></strong> and commented</p> <p dir="auto">A number of errors have crept into the DMLC Javadocs.</p> <p dir="auto">For example:</p> <ul dir="auto"> <li>setCachLevel() says that while the default is CACHE_NONE with an external txManager, it can be overridden. This is not the case because a new connection is obtained for each poll and bound to the thread.</li> <li>setTransactionManager refers to AMLC class Javadocs, which in turn imply that for downstream JmsTemplate within an <code class="notranslate">@Transacted</code> method needs the LC to have an external JmsTransactionManager.</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;* The effect is similar to &quot;sessionTransacted&quot; set * to &quot;true&quot;, the difference being that this external transaction management * will also affect independent JMS access code within the service layer * (e.g. based on {@link org.springframework.jms.core.JmsTemplate} or * {@link org.springframework.jms.connection.TransactionAwareConnectionFactoryProxy}), * not just direct JMS Session usage in a {@link SessionAwareMessageListener}.&quot;"><pre class="notranslate"><code class="notranslate">"* The effect is similar to "sessionTransacted" set * to "true", the difference being that this external transaction management * will also affect independent JMS access code within the service layer * (e.g. based on {@link org.springframework.jms.core.JmsTemplate} or * {@link org.springframework.jms.connection.TransactionAwareConnectionFactoryProxy}), * not just direct JMS Session usage in a {@link SessionAwareMessageListener}." </code></pre></div> <p dir="auto">In fact, even with sessionTransacted=true the session is bound to the thread via a LocallyExposedJmsResourceHolder and no external txManager is required and, if provided, precludes caching in the DMLC (CCF is needed).</p> <p dir="auto">It is now generally recommended that an external txManager only be provided if JTA is needed.</p> <p dir="auto">Suggest a thorough review of all Listener Container documentation regarding the use of JmsTransactionManager.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?123631-JMS-DMLC-not-caching-connection-when-using-TX-despite-cacheLevel-CACHE_CONSUMER" rel="nofollow">http://forum.springsource.org/showthread.php?123631-JMS-DMLC-not-caching-connection-when-using-TX-despite-cacheLevel-CACHE_CONSUMER</a></p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398109622" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12536" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12536/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12536">#12536</a> Better abstraction for transactional configuration in DMLC (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/674bad4cfa21f40f9d8103ce729c54c2092a9f93/hovercard" href="https://github.com/spring-projects/spring-framework/commit/674bad4cfa21f40f9d8103ce729c54c2092a9f93"><tt>674bad4</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cosmicpaul" rel="nofollow">Paul Nardone</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8806?redirect=false" rel="nofollow">SPR-8806</a></strong> and commented</p> <p dir="auto">Transcribed by cbeams from Paul's original comment on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112358" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12995" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12995/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12995">#12995</a></p> <blockquote> <p dir="auto">I am experiencing an issue with ExtendedBeanInfo and covariante propertytypes i've yet to isolate a simple test but it appears to be due using JDK PropertyDescriptor and the long standing JDK bug that are the cause resulting in</p> <p dir="auto">java.beans.IntrospectionException: type mismatch between read and write methods<br> at java.beans.PropertyDescriptor.findPropertyType(PropertyDescriptor.java:603)<br> at java.beans.PropertyDescriptor.setWriteMethod(PropertyDescriptor.java:270)<br> at java.beans.PropertyDescriptor.&lt;init&gt;(PropertyDescriptor.java:117)<br> at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:260)<br> at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:178)<br> at org.springframework.beans.ExtendedBeanInfo.&lt;init&gt;(ExtendedBeanInfo.java:95)<br> at org.springframework.beans.CachedIntrospectionResults.&lt;init&gt;(CachedIntrospectionResults.java:224)<br> ... 124 more</p> </blockquote> <hr> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/19024/testspringprops_1.zip" rel="nofollow">testspringprops_1.zip</a> (<em>10.74 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398113255" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13137" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13137/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13137">#13137</a> Regression - Introspection with BeanUtils started failing for java.awt.Component derived classes (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112358" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12995" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12995/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12995">#12995</a> Review ExtendedBeanInfo implementation</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398155112" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14663" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14663/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14663">#14663</a> Overhaul non-void JavaBean write method support</li> </ul>
0
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19928289" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/4213" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/4213/hovercard" href="https://github.com/ansible/ansible/pull/4213">#4213</a> added support to address instances by their names in route53, but a host_vars file with the same name is not being picked up by ansible.</p>
<h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ssh connection plugin</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.2.0 config file = /root/rescube-devops/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.0.2.0 config file = /root/rescube-devops/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <p dir="auto">ansible adds the -q (quiet) option when using ssh, but this hides the errors produced by ssh even when using -vvv</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">try to connect to a host with authorized keys not set up</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook playbook.yml -vvv"><pre class="notranslate"><code class="notranslate">ansible-playbook playbook.yml -vvv </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The output should contain the string (the stderr from ssh when not using -q):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Permission denied (publickey,password)."><pre class="notranslate"><code class="notranslate">Permission denied (publickey,password). </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [targetmachine]: UNREACHABLE! =&gt; {&quot;changed&quot;: false, &quot;msg&quot;: &quot;Failed to connect to the host via ssh.&quot;, &quot;unreachable&quot;: true} to retry, use: --limit @playbook.retry PLAY RECAP ********************************************************************* targetmachine : ok=0 changed=0 unreachable=1 failed=0 "><pre class="notranslate"><code class="notranslate">fatal: [targetmachine]: UNREACHABLE! =&gt; {"changed": false, "msg": "Failed to connect to the host via ssh.", "unreachable": true} to retry, use: --limit @playbook.retry PLAY RECAP ********************************************************************* targetmachine : ok=0 changed=0 unreachable=1 failed=0 </code></pre></div> <p dir="auto">I believe -vvv should turn off the -q for ssh and show the ssh output to the user, to help diagnose the problem. Also ansible-playbook -vvvv could even enable -vvv for ssh (and only display if retval!=0) :)</p>
0
<p dir="auto">The following code fails with an ICE:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(associated_types)] trait ATrait&lt;T&gt; { type Output; fn return_output() -&gt; &lt;Self as ATrait&lt;T&gt;&gt;::Output; }"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>associated_types<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">trait</span> <span class="pl-smi">ATrait</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Output</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">return_output</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; &lt;<span class="pl-smi">Self</span> <span class="pl-k">as</span> <span class="pl-smi">ATrait</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span>&gt;<span class="pl-kos">::</span><span class="pl-smi">Output</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="associated.rs:4:43: 4:44 error: internal compiler error: unbound path path(T) associated.rs:4 fn return_output() -&gt; &lt;Self as ATrait&lt;T&gt;&gt;::Output; ^ note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:113"><pre class="notranslate"><code class="notranslate">associated.rs:4:43: 4:44 error: internal compiler error: unbound path path(T) associated.rs:4 fn return_output() -&gt; &lt;Self as ATrait&lt;T&gt;&gt;::Output; ^ note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'Box&lt;Any&gt;', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:113 </code></pre></div>
<p dir="auto">The version is <code class="notranslate">rustc 0.12.0-nightly (9508faa22 2014-09-17 23:45:36 +0000)</code></p> <p dir="auto">Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="trait Foo&lt;T&gt; { type Bar; fn get_bar() -&gt; &lt;Self as Foo&lt;T&gt;&gt;::Bar; }"><pre class="notranslate"><code class="notranslate">trait Foo&lt;T&gt; { type Bar; fn get_bar() -&gt; &lt;Self as Foo&lt;T&gt;&gt;::Bar; } </code></pre></div> <p dir="auto">Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\Tomaka17\Projets\test\src\main.rs:5:34: 5:35 error: internal compiler e rror: unbound path path(T) C:\Users\Tomaka17\Projets\test\src\main.rs:5 fn get_bar() -&gt; &lt;Self as Foo&lt;T&gt; &gt;::Bar; ^ note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugr eport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'Box&lt;Any&gt;', C:\bot\slave\nightly-win32\build\src\libsynta x\ast_util.rs:751"><pre class="notranslate"><code class="notranslate">C:\Users\Tomaka17\Projets\test\src\main.rs:5:34: 5:35 error: internal compiler e rror: unbound path path(T) C:\Users\Tomaka17\Projets\test\src\main.rs:5 fn get_bar() -&gt; &lt;Self as Foo&lt;T&gt; &gt;::Bar; ^ note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugr eport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'Box&lt;Any&gt;', C:\bot\slave\nightly-win32\build\src\libsynta x\ast_util.rs:751 </code></pre></div> <p dir="auto">(because of some issues with my shell I can't print a backtrace for now)</p>
1
<h3 dir="auto">Description</h3> <p dir="auto">[Description of the issue]</p> <h3 dir="auto">Steps to Reproduce</h3> <ol dir="auto"> <li>[First Step]</li> <li>[Second Step]</li> <li>[and so on...]</li> </ol> <p dir="auto"><strong>Expected behavior:</strong> [What you expect to happen]</p> <p dir="auto"><strong>Actual behavior:</strong> [What actually happens]</p> <p dir="auto"><strong>Reproduces how often:</strong> [What percentage of the time does it reproduce?]</p> <h3 dir="auto">Versions</h3> <p dir="auto">Please paste here the output of executing <code class="notranslate">scrapy version --verbose</code> in the command line.</p> <h3 dir="auto">Additional context</h3> <p dir="auto">Any additional information, configuration, data or output from commands that might be necessary to reproduce or understand the issue. Please try not to include screenshots of code or the command line, paste the contents as text instead. You can use <a href="https://help.github.com/en/articles/creating-and-highlighting-code-blocks">GitHub Flavored Markdown</a> to make the text look better.</p>
<p dir="auto">this is partly bug, partly feature but you can do something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="scrapy crawl dmoz -a start_requests=&quot;this&quot;"><pre class="notranslate"><code class="notranslate">scrapy crawl dmoz -a start_requests="this" </code></pre></div> <p dir="auto">and it will effectively overwrite spider start_requests with string "this" so that you will get</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2015-12-10 14:19:05 [twisted] CRITICAL: Unhandled error in Deferred: Traceback (most recent call last): File &quot;/home/pawel//src/scrapy/scrapy/cmdline.py&quot;, line 150, in _run_command cmd.run(args, opts) File &quot;/home/pawel/scrapy/scrapy/commands/crawl.py&quot;, line 57, in run self.crawler_process.crawl(spname, **opts.spargs) File &quot;/home/pawelsrc/scrapy/scrapy/crawler.py&quot;, line 153, in crawl d = crawler.crawl(*args, **kwargs) File &quot;/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py&quot;, line 1274, in unwindGenerator return _inlineCallbacks(None, gen, Deferred()) --- &lt;exception caught here&gt; --- File &quot;/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py&quot;, line 1128, in _inlineCallbacks result = g.send(result) File &quot;/home/pawel/src/scrapy/scrapy/crawler.py&quot;, line 72, in crawl start_requests = iter(self.spider.start_requests()) exceptions.TypeError: 'str' object is not callable 2015-12-10 14:19:05 [twisted] CRITICAL: "><pre class="notranslate"><code class="notranslate">2015-12-10 14:19:05 [twisted] CRITICAL: Unhandled error in Deferred: Traceback (most recent call last): File "/home/pawel//src/scrapy/scrapy/cmdline.py", line 150, in _run_command cmd.run(args, opts) File "/home/pawel/scrapy/scrapy/commands/crawl.py", line 57, in run self.crawler_process.crawl(spname, **opts.spargs) File "/home/pawelsrc/scrapy/scrapy/crawler.py", line 153, in crawl d = crawler.crawl(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1274, in unwindGenerator return _inlineCallbacks(None, gen, Deferred()) --- &lt;exception caught here&gt; --- File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks result = g.send(result) File "/home/pawel/src/scrapy/scrapy/crawler.py", line 72, in crawl start_requests = iter(self.spider.start_requests()) exceptions.TypeError: 'str' object is not callable 2015-12-10 14:19:05 [twisted] CRITICAL: </code></pre></div> <p dir="auto">I discovered this when client asked to add option to pass download_delay when scheduling. Turns out you can do this without any updates to spider, but the type will be invalid.</p> <p dir="auto">I think it could be dangerous though, it allows lots of control over spider settings and can cause mysterious bugs, imagine you have some spider attribute that is string and someone passes this attribute from command line too. It would be unexpected for most users that command line argument can overwrite object attribute. The line responsible for this is here: <a href="https://github.com/scrapy/scrapy/blob/master/scrapy/spiders/__init__.py#L30">https://github.com/scrapy/scrapy/blob/master/scrapy/spiders/__init__.py#L30</a></p>
0
<p dir="auto">Hi guys,<br> I get an infinite loop using beta7, this is the Safari's stacktrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Script terminated by timeout at: DebugDomRenderer&lt;/DebugDomRenderer.prototype.createText@http://localhost:2067/node_modules/angular2/bundles/angular2.dev.js:7184:11 viewFactory_t0@viewFactory_t:256:18 viewFactory_t0@viewFactory_t:266:1 viewFactory_t0@viewFactory_t:266:1 viewFactory_t0@viewFactory_t:266:1 viewFactory_t0@viewFactory_t:266:1 viewFactory_t0@viewFactory_t:266:1 ..."><pre class="notranslate"><code class="notranslate">Error: Script terminated by timeout at: DebugDomRenderer&lt;/DebugDomRenderer.prototype.createText@http://localhost:2067/node_modules/angular2/bundles/angular2.dev.js:7184:11 viewFactory_t0@viewFactory_t:256:18 viewFactory_t0@viewFactory_t:266:1 viewFactory_t0@viewFactory_t:266:1 viewFactory_t0@viewFactory_t:266:1 viewFactory_t0@viewFactory_t:266:1 viewFactory_t0@viewFactory_t:266:1 ... </code></pre></div> <p dir="auto">My packages:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;angular2&quot;: &quot;2.0.0-beta.7&quot;, &quot;systemjs&quot;: &quot;0.19.20&quot;, &quot;es6-promise&quot;: &quot;^3.0.2&quot;, &quot;es6-shim&quot;: &quot;^0.33.3&quot;, &quot;reflect-metadata&quot;: &quot;0.1.2&quot;, &quot;rxjs&quot;: &quot;5.0.0-beta.2&quot;, &quot;zone.js&quot;: &quot;0.5.15&quot;,"><pre class="notranslate"><code class="notranslate"> "angular2": "2.0.0-beta.7", "systemjs": "0.19.20", "es6-promise": "^3.0.2", "es6-shim": "^0.33.3", "reflect-metadata": "0.1.2", "rxjs": "5.0.0-beta.2", "zone.js": "0.5.15", </code></pre></div> <p dir="auto">My tsd:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;version&quot;: &quot;v4&quot;, &quot;repo&quot;: &quot;borisyankov/DefinitelyTyped&quot;, &quot;ref&quot;: &quot;master&quot;, &quot;path&quot;: &quot;typings&quot;, &quot;bundle&quot;: &quot;typings/tsd.d.ts&quot;, &quot;installed&quot;: { &quot;jquery/jquery.d.ts&quot;: { &quot;commit&quot;: &quot;9027703c0bd831319dcdf7f3169f7a468537f448&quot; }, &quot;bootstrap/bootstrap.d.ts&quot;: { &quot;commit&quot;: &quot;9027703c0bd831319dcdf7f3169f7a468537f448&quot; } }, &quot;ambientDependencies&quot;: { &quot;es6-shim&quot;: &quot;github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2&quot; } }"><pre class="notranslate"><code class="notranslate">{ "version": "v4", "repo": "borisyankov/DefinitelyTyped", "ref": "master", "path": "typings", "bundle": "typings/tsd.d.ts", "installed": { "jquery/jquery.d.ts": { "commit": "9027703c0bd831319dcdf7f3169f7a468537f448" }, "bootstrap/bootstrap.d.ts": { "commit": "9027703c0bd831319dcdf7f3169f7a468537f448" } }, "ambientDependencies": { "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2" } } </code></pre></div> <p dir="auto">My boot:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="///&lt;reference path=&quot;../../node_modules/angular2/typings/browser.d.ts&quot;/&gt; import {bootstrap} from 'angular2/platform/browser' import {AppComponent} from './app.component' import {ROUTER_PROVIDERS} from 'angular2/router'; import {HTTP_PROVIDERS} from 'angular2/http' import 'rxjs/add/operator/map'; import 'rxjs/add/operator/retry'; bootstrap(AppComponent, [ROUTER_PROVIDERS, HTTP_PROVIDERS]);"><pre class="notranslate"><code class="notranslate">///&lt;reference path="../../node_modules/angular2/typings/browser.d.ts"/&gt; import {bootstrap} from 'angular2/platform/browser' import {AppComponent} from './app.component' import {ROUTER_PROVIDERS} from 'angular2/router'; import {HTTP_PROVIDERS} from 'angular2/http' import 'rxjs/add/operator/map'; import 'rxjs/add/operator/retry'; bootstrap(AppComponent, [ROUTER_PROVIDERS, HTTP_PROVIDERS]); </code></pre></div> <p dir="auto">My rooting class:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {Component} from 'angular2/core'; import {RouteConfig, Router, Location, Instruction, ROUTER_DIRECTIVES} from 'angular2/router'; import {MainComponent} from './components/sections/main.component'; import {NotFoundComponent} from './components/sections/not-found.component'; import {EventEmitterService} from './services/event-emitter.service'; import {NavigationService, Routes} from './services/navigation.service'; @Component({ selector: 'my-app', template: '&lt;router-outlet&gt;&lt;/router-outlet&gt;', directives: [ROUTER_DIRECTIVES], providers: [EventEmitterService, NavigationService] }) @RouteConfig([ {path:'/' , name: Routes.Main , component: MainComponent, useAsDefault: true}, {path:'/not-found' , name: Routes.NotFound , component: NotFoundComponent} ]) export class AppComponent { public constructor(private _router: Router, _location:Location) { _router.recognize(_location.path()).then((instruction: Instruction) =&gt; { if (!instruction) _router.recognize('/not-found').then((instruction: Instruction) =&gt; _router.navigateByInstruction(instruction, true)); }); } } "><pre class="notranslate"><code class="notranslate">import {Component} from 'angular2/core'; import {RouteConfig, Router, Location, Instruction, ROUTER_DIRECTIVES} from 'angular2/router'; import {MainComponent} from './components/sections/main.component'; import {NotFoundComponent} from './components/sections/not-found.component'; import {EventEmitterService} from './services/event-emitter.service'; import {NavigationService, Routes} from './services/navigation.service'; @Component({ selector: 'my-app', template: '&lt;router-outlet&gt;&lt;/router-outlet&gt;', directives: [ROUTER_DIRECTIVES], providers: [EventEmitterService, NavigationService] }) @RouteConfig([ {path:'/' , name: Routes.Main , component: MainComponent, useAsDefault: true}, {path:'/not-found' , name: Routes.NotFound , component: NotFoundComponent} ]) export class AppComponent { public constructor(private _router: Router, _location:Location) { _router.recognize(_location.path()).then((instruction: Instruction) =&gt; { if (!instruction) _router.recognize('/not-found').then((instruction: Instruction) =&gt; _router.navigateByInstruction(instruction, true)); }); } } </code></pre></div> <p dir="auto">Using beta6 everything works well.</p>
<p dir="auto">RouterLink seems to be broken with on beta.1 (after template_compiler patches) and beta.2. To reproduce minify (with mangle) an app that uses RouterLink then click the link. You will see <code class="notranslate">TypeError: this.directive_2_0.onClick is not a function</code></p> <p dir="auto">or download <a href="https://github.com/angularclass/angular2-webpack-starter">angular2-webpack-starter</a> and run<br> <code class="notranslate">npm install &amp;&amp; npm run build:prod &amp;&amp; npm run server:prod</code></p> <p dir="auto">for template</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;header&gt; &lt;nav&gt; &lt;h1&gt;Hello {{ name }}&lt;/h1&gt; &lt;ul&gt; &lt;li router-active&gt; &lt;a [routerLink]=&quot; ['Index'] &quot;&gt;Index&lt;/a&gt; &lt;/li&gt; &lt;li router-active&gt; &lt;a [routerLink]=&quot; ['Home'] &quot;&gt;Home&lt;/a&gt; &lt;/li&gt; &lt;li router-active&gt; &lt;a [routerLink]=&quot; ['About'] &quot;&gt;About&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;/header&gt; &lt;main&gt; &lt;router-outlet&gt;&lt;/router-outlet&gt; &lt;/main&gt; &lt;footer&gt; WebPack Angular 2 Starter by &lt;a [href]=&quot;url&quot;&gt;@AngularClass&lt;/a&gt; &lt;div&gt; &lt;img [src]=&quot;angularclassLogo&quot; width=&quot;10%&quot;&gt; &lt;/div&gt; &lt;/footer&gt;"><pre class="notranslate"> <span class="pl-kos">&lt;</span><span class="pl-ent">header</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">nav</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>Hello {{ name }}<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">router-active</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">[routerLink]</span>="<span class="pl-s"> ['Index'] </span>"<span class="pl-kos">&gt;</span>Index<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">router-active</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">[routerLink]</span>="<span class="pl-s"> ['Home'] </span>"<span class="pl-kos">&gt;</span>Home<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">router-active</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">[routerLink]</span>="<span class="pl-s"> ['About'] </span>"<span class="pl-kos">&gt;</span>About<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">nav</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">header</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">router-outlet</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">router-outlet</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">footer</span><span class="pl-kos">&gt;</span> WebPack Angular 2 Starter by <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">[href]</span>="<span class="pl-s">url</span>"<span class="pl-kos">&gt;</span>@AngularClass<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">[src]</span>="<span class="pl-s">angularclassLogo</span>" <span class="pl-c1">width</span>="<span class="pl-s">10%</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">footer</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">the viewFactory is</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(function(exports, styles, resolvedMetadataCache, t, AbstractChangeDetector, ChangeDetectionUtil, ChangeDetectorState, AppProtoView, AppProtoElement, ViewType, AppView, AppElement, flattenNestedViewRenderNodes, checkSlotCount /**/ ) { var ChangeDetector_e_0 = function ChangeDetector_e_0() { AbstractChangeDetector.call( this, &quot;e_0&quot;, 16, ChangeDetector_e_0.gen_propertyBindingTargets, ChangeDetector_e_0.gen_directiveIndices, 5); this.dehydrateDirectives(false); } ChangeDetector_e_0.prototype = Object.create(AbstractChangeDetector.prototype); ChangeDetector_e_0.prototype.detectChangesInRecordsInternal = function(throwOnChange) { var l_context = this.context, l_name0, c_name0, l_interpolate1, l_literal2, c_literal2, l_arrayFn13, l_visibleHref4, l_isRouteActive5, l_literal6, c_literal6, l_arrayFn17, l_visibleHref8, l_isRouteActive9, l_literal10, c_literal10, l_arrayFn111, l_visibleHref12, l_isRouteActive13, l_url14, l_angularclassLogo15; c_name0 = c_literal2 = c_literal6 = c_literal10 = false; var isChanged = false; var changes = null; this.propertyBindingIndex = 0; l_name0 = l_context.name; if (ChangeDetectionUtil.looseNotIdentical(this.name0, l_name0)) { c_name0 = true this.name0 = l_name0; } if (c_name0) { l_interpolate1 = &quot;Hello &quot; + ChangeDetectionUtil.s(l_name0) + &quot;&quot;; if (ChangeDetectionUtil.looseNotIdentical(this.interpolate1, l_interpolate1)) { this.notifyDispatcher(l_interpolate1); this.interpolate1 = l_interpolate1; } } changes = null; isChanged = false; this.propertyBindingIndex = 1; l_literal2 = &quot;Index&quot;; if (ChangeDetectionUtil.looseNotIdentical(this.literal2, l_literal2)) { c_literal2 = true this.literal2 = l_literal2; } if (c_literal2) { l_arrayFn13 = ChangeDetectionUtil.arrayFn1(l_literal2); if (ChangeDetectionUtil.looseNotIdentical(this.arrayFn13, l_arrayFn13)) { this.directive_0_0.routeParams = l_arrayFn13; isChanged = true; this.arrayFn13 = l_arrayFn13; } } changes = null; isChanged = false; this.propertyBindingIndex = 2; l_visibleHref4 = this.directive_0_0.visibleHref; if (ChangeDetectionUtil.looseNotIdentical(this.visibleHref4, l_visibleHref4)) { this.notifyDispatcher(l_visibleHref4); this.visibleHref4 = l_visibleHref4; } this.propertyBindingIndex = 3; l_isRouteActive5 = this.directive_0_0.isRouteActive; if (ChangeDetectionUtil.looseNotIdentical(this.isRouteActive5, l_isRouteActive5)) { this.notifyDispatcher(l_isRouteActive5); this.isRouteActive5 = l_isRouteActive5; } changes = null; isChanged = false; this.propertyBindingIndex = 4; l_literal6 = &quot;Home&quot;; if (ChangeDetectionUtil.looseNotIdentical(this.literal6, l_literal6)) { c_literal6 = true this.literal6 = l_literal6; } if (c_literal6) { l_arrayFn17 = ChangeDetectionUtil.arrayFn1(l_literal6); if (ChangeDetectionUtil.looseNotIdentical(this.arrayFn17, l_arrayFn17)) { this.directive_1_0.routeParams = l_arrayFn17; isChanged = true; this.arrayFn17 = l_arrayFn17; } } changes = null; isChanged = false; this.propertyBindingIndex = 5; l_visibleHref8 = this.directive_1_0.visibleHref; if (ChangeDetectionUtil.looseNotIdentical(this.visibleHref8, l_visibleHref8)) { this.notifyDispatcher(l_visibleHref8); this.visibleHref8 = l_visibleHref8; } this.propertyBindingIndex = 6; l_isRouteActive9 = this.directive_1_0.isRouteActive; if (ChangeDetectionUtil.looseNotIdentical(this.isRouteActive9, l_isRouteActive9)) { this.notifyDispatcher(l_isRouteActive9); this.isRouteActive9 = l_isRouteActive9; } changes = null; isChanged = false; this.propertyBindingIndex = 7; l_literal10 = &quot;About&quot;; if (ChangeDetectionUtil.looseNotIdentical(this.literal10, l_literal10)) { c_literal10 = true this.literal10 = l_literal10; } if (c_literal10) { l_arrayFn111 = ChangeDetectionUtil.arrayFn1(l_literal10); if (ChangeDetectionUtil.looseNotIdentical(this.arrayFn111, l_arrayFn111)) { this.directive_2_0.routeParams = l_arrayFn111; isChanged = true; this.arrayFn111 = l_arrayFn111; } } changes = null; isChanged = false; this.propertyBindingIndex = 8; l_visibleHref12 = this.directive_2_0.visibleHref; if (ChangeDetectionUtil.looseNotIdentical(this.visibleHref12, l_visibleHref12)) { this.notifyDispatcher(l_visibleHref12); this.visibleHref12 = l_visibleHref12; } this.propertyBindingIndex = 9; l_isRouteActive13 = this.directive_2_0.isRouteActive; if (ChangeDetectionUtil.looseNotIdentical(this.isRouteActive13, l_isRouteActive13)) { this.notifyDispatcher(l_isRouteActive13); this.isRouteActive13 = l_isRouteActive13; } this.propertyBindingIndex = 10; l_url14 = l_context.url; if (ChangeDetectionUtil.looseNotIdentical(this.url14, l_url14)) { this.notifyDispatcher(l_url14); this.url14 = l_url14; } this.propertyBindingIndex = 11; l_angularclassLogo15 = l_context.angularclassLogo; if (ChangeDetectionUtil.looseNotIdentical(this.angularclassLogo15, l_angularclassLogo15)) { this.notifyDispatcher(l_angularclassLogo15); this.angularclassLogo15 = l_angularclassLogo15; } changes = null; isChanged = false; } ChangeDetector_e_0.prototype.handleEventInternal = function(eventName, elIndex, locals) { var preventDefault = false; var l_context = this.context, l_onClick0_0, l_onClick0_1, l_onClick0_2; if (eventName === &quot;click&quot; &amp;&amp; elIndex === 0) { l_onClick0_0 = this.directive_0_0.onClick(); if (l_onClick0_0 === false) { preventDefault = true }; } if (eventName === &quot;click&quot; &amp;&amp; elIndex === 1) { l_onClick0_1 = this.directive_1_0.onClick(); if (l_onClick0_1 === false) { preventDefault = true }; } if (eventName === &quot;click&quot; &amp;&amp; elIndex === 2) { l_onClick0_2 = this.directive_2_0.onClick(); if (l_onClick0_2 === false) { preventDefault = true }; } return preventDefault; } ChangeDetector_e_0.prototype.hydrateDirectives = function(directives) { this.directive_0_0 = this.getDirectiveFor(directives, 0); this.directive_1_0 = this.getDirectiveFor(directives, 1); this.directive_2_0 = this.getDirectiveFor(directives, 2); this.directive_3_0 = this.getDirectiveFor(directives, 3); } ChangeDetector_e_0.prototype.dehydrateDirectives = function(destroyPipes) { if (destroyPipes) { } this.name0 = this.interpolate1 = this.literal2 = this.arrayFn13 = this.visibleHref4 = this.isRouteActive5 = this.literal6 = this.arrayFn17 = this.visibleHref8 = this.isRouteActive9 = this.literal10 = this.arrayFn111 = this.visibleHref12 = this.isRouteActive13 = this.url14 = this.angularclassLogo15 = this.directive_0_0 = this.directive_1_0 = this.directive_2_0 = this.directive_3_0 = ChangeDetectionUtil.uninitialized; } ChangeDetector_e_0.gen_propertyBindingTargets = [ChangeDetectionUtil.bindingTarget(&quot;textNode&quot;, 6, null, null, null), ChangeDetectionUtil.bindingTarget(&quot;directive&quot;, 0, &quot;routeParams&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;elementAttribute&quot;, 0, &quot;href&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;elementClass&quot;, 0, &quot;router-link-active&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;directive&quot;, 1, &quot;routeParams&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;elementAttribute&quot;, 1, &quot;href&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;elementClass&quot;, 1, &quot;router-link-active&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;directive&quot;, 2, &quot;routeParams&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;elementAttribute&quot;, 2, &quot;href&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;elementClass&quot;, 2, &quot;router-link-active&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;elementProperty&quot;, 4, &quot;href&quot;, null, null), ChangeDetectionUtil.bindingTarget(&quot;elementProperty&quot;, 5, &quot;src&quot;, null, null)]; ChangeDetector_e_0.gen_directiveIndices = [ChangeDetectionUtil.directiveIndex(0, 0), ChangeDetectionUtil.directiveIndex(1, 0), ChangeDetectionUtil.directiveIndex(2, 0), ChangeDetectionUtil.directiveIndex(3, 0)]; var appProtoEl0_e = AppProtoElement.create( resolvedMetadataCache, 0, {}, [t], {} ); var appProtoEl1_e = AppProtoElement.create( resolvedMetadataCache, 1, {}, [t], {} ); var appProtoEl2_e = AppProtoElement.create( resolvedMetadataCache, 2, {}, [t], {} ); var appProtoEl3_e = AppProtoElement.create( resolvedMetadataCache, 3, {}, [t], {} ); var appProtoEl4_e = AppProtoElement.create( resolvedMetadataCache, 4, {}, [], {} ); var appProtoEl5_e = AppProtoElement.create( resolvedMetadataCache, 5, { 'width': '10%' }, [], {} ); var appProtoView6_e0 = AppProtoView.create(resolvedMetadataCache, 1, [], {}); var renderType53_e = null; var styles54_e = styles; function viewFactory_e0(parentRenderer, viewManager, containerEl, projectableNodes, rootSelector, dynamicallyCreatedProviders, rootInjector) { if (renderType53_e == null) { renderType53_e = viewManager.createRenderComponentType(0, styles54_e); } var renderer = parentRenderer.renderComponent(renderType53_e); var view = new AppView( appProtoView6_e0, renderer, viewManager, projectableNodes, containerEl, dynamicallyCreatedProviders, rootInjector, function() { return new ChangeDetector_e_0(); }() ); checkSlotCount('e', 0, projectableNodes); var parentRenderNode = renderer.createViewRoot(view.containerAppElement.nativeElement); var render0_e = renderer.createText(parentRenderNode, '\n '); var render1_e = renderer.createElement(parentRenderNode, 'header'); var render2_e = renderer.createText(render1_e, '\n '); var render3_e = renderer.createElement(render1_e, 'nav'); var render4_e = renderer.createText(render3_e, '\n '); var render5_e = renderer.createElement(render3_e, 'h1'); var render6_e = renderer.createText(render5_e, ''); var render7_e = renderer.createText(render3_e, '\n '); var render8_e = renderer.createElement(render3_e, 'ul'); var render9_e = renderer.createText(render8_e, '\n '); var render10_e = renderer.createElement(render8_e, 'li'); renderer.setElementAttribute(render10_e, 'router-active', ''); var render11_e = renderer.createText(render10_e, '\n '); var render12_e = renderer.createElement(render10_e, 'a'); renderer.listen(render12_e, 'click', function(event) { return view.triggerEventHandlers('click', event, 0); }); var render14_e = renderer.createText(render12_e, 'Index'); var render15_e = renderer.createText(render10_e, '\n '); var render16_e = renderer.createText(render8_e, '\n '); var render17_e = renderer.createElement(render8_e, 'li'); renderer.setElementAttribute(render17_e, 'router-active', ''); var render18_e = renderer.createText(render17_e, '\n '); var render19_e = renderer.createElement(render17_e, 'a'); renderer.listen(render19_e, 'click', function(event) { return view.triggerEventHandlers('click', event, 1); }); var render21_e = renderer.createText(render19_e, 'Home'); var render22_e = renderer.createText(render17_e, '\n '); var render23_e = renderer.createText(render8_e, '\n '); var render24_e = renderer.createElement(render8_e, 'li'); renderer.setElementAttribute(render24_e, 'router-active', ''); var render25_e = renderer.createText(render24_e, '\n '); var render26_e = renderer.createElement(render24_e, 'a'); renderer.listen(render26_e, 'click', function(event) { return view.triggerEventHandlers('click', event, 2); }); var render28_e = renderer.createText(render26_e, 'About'); var render29_e = renderer.createText(render24_e, '\n '); var render30_e = renderer.createText(render8_e, '\n '); var render31_e = renderer.createText(render3_e, '\n '); var render32_e = renderer.createText(render1_e, '\n '); var render33_e = renderer.createText(parentRenderNode, '\n\n '); var render34_e = renderer.createElement(parentRenderNode, 'main'); var render35_e = renderer.createText(render34_e, '\n '); var render36_e = renderer.createElement(render34_e, 'router-outlet'); var render38_e = renderer.createText(render34_e, '\n '); var render39_e = renderer.createText(parentRenderNode, '\n\n '); var render40_e = renderer.createElement(parentRenderNode, 'footer'); var render41_e = renderer.createText(render40_e, '\n WebPack Angular 2 Starter by '); var render42_e = renderer.createElement(render40_e, 'a'); var render44_e = renderer.createText(render42_e, '@AngularClass'); var render45_e = renderer.createText(render40_e, '\n '); var render46_e = renderer.createElement(render40_e, 'div'); var render47_e = renderer.createText(render46_e, '\n '); var render48_e = renderer.createElement(render46_e, 'img'); renderer.setElementAttribute(render48_e, 'width', '10%'); var render50_e = renderer.createText(render46_e, '\n '); var render51_e = renderer.createText(render40_e, '\n '); var render52_e = renderer.createText(parentRenderNode, '\n '); var app13_e = new AppElement(appProtoEl0_e, view, null, render12_e, null); var app20_e = new AppElement(appProtoEl1_e, view, null, render19_e, null); var app27_e = new AppElement(appProtoEl2_e, view, null, render26_e, null); var app37_e = new AppElement(appProtoEl3_e, view, null, render36_e, null); var app43_e = new AppElement(appProtoEl4_e, view, null, render42_e, null); var app49_e = new AppElement(appProtoEl5_e, view, null, render48_e, null); view.init(([]), [render0_e, render1_e, render2_e, render3_e, render4_e, render5_e, render6_e, render7_e, render8_e, render9_e, render10_e, render11_e, render12_e, render14_e, render15_e, render16_e, render17_e, render18_e, render19_e, render21_e, render22_e, render23_e, render24_e, render25_e, render26_e, render28_e, render29_e, render30_e, render31_e, render32_e, render33_e, render34_e, render35_e, render36_e, render38_e, render39_e, render40_e, render41_e, render42_e, render44_e, render45_e, render46_e, render47_e, render48_e, render50_e, render51_e, render52_e], [], [app13_e, app20_e, app27_e, app37_e, app43_e, app49_e]); return view; } return viewFactory_e0 })"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s1">styles</span><span class="pl-kos">,</span> <span class="pl-s1">resolvedMetadataCache</span><span class="pl-kos">,</span> <span class="pl-s1">t</span><span class="pl-kos">,</span> <span class="pl-v">AbstractChangeDetector</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectorState</span><span class="pl-kos">,</span> <span class="pl-v">AppProtoView</span><span class="pl-kos">,</span> <span class="pl-v">AppProtoElement</span><span class="pl-kos">,</span> <span class="pl-v">ViewType</span><span class="pl-kos">,</span> <span class="pl-v">AppView</span><span class="pl-kos">,</span> <span class="pl-v">AppElement</span><span class="pl-kos">,</span> <span class="pl-s1">flattenNestedViewRenderNodes</span><span class="pl-kos">,</span> <span class="pl-s1">checkSlotCount</span> <span class="pl-c">/**/</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-v">ChangeDetector_e_0</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-v">AbstractChangeDetector</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span> <span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s">"e_0"</span><span class="pl-kos">,</span> <span class="pl-c1">16</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">.</span><span class="pl-c1">gen_propertyBindingTargets</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">.</span><span class="pl-c1">gen_directiveIndices</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">dehydrateDirectives</span><span class="pl-kos">(</span><span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-v">AbstractChangeDetector</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">detectChangesInRecordsInternal</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">throwOnChange</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">l_context</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">context</span><span class="pl-kos">,</span> <span class="pl-s1">l_name0</span><span class="pl-kos">,</span> <span class="pl-s1">c_name0</span><span class="pl-kos">,</span> <span class="pl-s1">l_interpolate1</span><span class="pl-kos">,</span> <span class="pl-s1">l_literal2</span><span class="pl-kos">,</span> <span class="pl-s1">c_literal2</span><span class="pl-kos">,</span> <span class="pl-s1">l_arrayFn13</span><span class="pl-kos">,</span> <span class="pl-s1">l_visibleHref4</span><span class="pl-kos">,</span> <span class="pl-s1">l_isRouteActive5</span><span class="pl-kos">,</span> <span class="pl-s1">l_literal6</span><span class="pl-kos">,</span> <span class="pl-s1">c_literal6</span><span class="pl-kos">,</span> <span class="pl-s1">l_arrayFn17</span><span class="pl-kos">,</span> <span class="pl-s1">l_visibleHref8</span><span class="pl-kos">,</span> <span class="pl-s1">l_isRouteActive9</span><span class="pl-kos">,</span> <span class="pl-s1">l_literal10</span><span class="pl-kos">,</span> <span class="pl-s1">c_literal10</span><span class="pl-kos">,</span> <span class="pl-s1">l_arrayFn111</span><span class="pl-kos">,</span> <span class="pl-s1">l_visibleHref12</span><span class="pl-kos">,</span> <span class="pl-s1">l_isRouteActive13</span><span class="pl-kos">,</span> <span class="pl-s1">l_url14</span><span class="pl-kos">,</span> <span class="pl-s1">l_angularclassLogo15</span><span class="pl-kos">;</span> <span class="pl-s1">c_name0</span> <span class="pl-c1">=</span> <span class="pl-s1">c_literal2</span> <span class="pl-c1">=</span> <span class="pl-s1">c_literal6</span> <span class="pl-c1">=</span> <span class="pl-s1">c_literal10</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">changes</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">l_name0</span> <span class="pl-c1">=</span> <span class="pl-s1">l_context</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">name0</span><span class="pl-kos">,</span> <span class="pl-s1">l_name0</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">c_name0</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">name0</span> <span class="pl-c1">=</span> <span class="pl-s1">l_name0</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">c_name0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">l_interpolate1</span> <span class="pl-c1">=</span> <span class="pl-s">"Hello "</span> <span class="pl-c1">+</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">s</span><span class="pl-kos">(</span><span class="pl-s1">l_name0</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-s">""</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">interpolate1</span><span class="pl-kos">,</span> <span class="pl-s1">l_interpolate1</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">notifyDispatcher</span><span class="pl-kos">(</span><span class="pl-s1">l_interpolate1</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">interpolate1</span> <span class="pl-c1">=</span> <span class="pl-s1">l_interpolate1</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-s1">changes</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-s1">l_literal2</span> <span class="pl-c1">=</span> <span class="pl-s">"Index"</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">literal2</span><span class="pl-kos">,</span> <span class="pl-s1">l_literal2</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">c_literal2</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">literal2</span> <span class="pl-c1">=</span> <span class="pl-s1">l_literal2</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">c_literal2</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">l_arrayFn13</span> <span class="pl-c1">=</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">arrayFn1</span><span class="pl-kos">(</span><span class="pl-s1">l_literal2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arrayFn13</span><span class="pl-kos">,</span> <span class="pl-s1">l_arrayFn13</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_0_0</span><span class="pl-kos">.</span><span class="pl-c1">routeParams</span> <span class="pl-c1">=</span> <span class="pl-s1">l_arrayFn13</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arrayFn13</span> <span class="pl-c1">=</span> <span class="pl-s1">l_arrayFn13</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-s1">changes</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-s1">l_visibleHref4</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_0_0</span><span class="pl-kos">.</span><span class="pl-c1">visibleHref</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">visibleHref4</span><span class="pl-kos">,</span> <span class="pl-s1">l_visibleHref4</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">notifyDispatcher</span><span class="pl-kos">(</span><span class="pl-s1">l_visibleHref4</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">visibleHref4</span> <span class="pl-c1">=</span> <span class="pl-s1">l_visibleHref4</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">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">3</span><span class="pl-kos">;</span> <span class="pl-s1">l_isRouteActive5</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_0_0</span><span class="pl-kos">.</span><span class="pl-c1">isRouteActive</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">isRouteActive5</span><span class="pl-kos">,</span> <span class="pl-s1">l_isRouteActive5</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">notifyDispatcher</span><span class="pl-kos">(</span><span class="pl-s1">l_isRouteActive5</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">isRouteActive5</span> <span class="pl-c1">=</span> <span class="pl-s1">l_isRouteActive5</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">changes</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">4</span><span class="pl-kos">;</span> <span class="pl-s1">l_literal6</span> <span class="pl-c1">=</span> <span class="pl-s">"Home"</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">literal6</span><span class="pl-kos">,</span> <span class="pl-s1">l_literal6</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">c_literal6</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">literal6</span> <span class="pl-c1">=</span> <span class="pl-s1">l_literal6</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">c_literal6</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">l_arrayFn17</span> <span class="pl-c1">=</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">arrayFn1</span><span class="pl-kos">(</span><span class="pl-s1">l_literal6</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arrayFn17</span><span class="pl-kos">,</span> <span class="pl-s1">l_arrayFn17</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_1_0</span><span class="pl-kos">.</span><span class="pl-c1">routeParams</span> <span class="pl-c1">=</span> <span class="pl-s1">l_arrayFn17</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arrayFn17</span> <span class="pl-c1">=</span> <span class="pl-s1">l_arrayFn17</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-s1">changes</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span><span class="pl-kos">;</span> <span class="pl-s1">l_visibleHref8</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_1_0</span><span class="pl-kos">.</span><span class="pl-c1">visibleHref</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">visibleHref8</span><span class="pl-kos">,</span> <span class="pl-s1">l_visibleHref8</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">notifyDispatcher</span><span class="pl-kos">(</span><span class="pl-s1">l_visibleHref8</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">visibleHref8</span> <span class="pl-c1">=</span> <span class="pl-s1">l_visibleHref8</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">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">6</span><span class="pl-kos">;</span> <span class="pl-s1">l_isRouteActive9</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_1_0</span><span class="pl-kos">.</span><span class="pl-c1">isRouteActive</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">isRouteActive9</span><span class="pl-kos">,</span> <span class="pl-s1">l_isRouteActive9</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">notifyDispatcher</span><span class="pl-kos">(</span><span class="pl-s1">l_isRouteActive9</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">isRouteActive9</span> <span class="pl-c1">=</span> <span class="pl-s1">l_isRouteActive9</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">changes</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">7</span><span class="pl-kos">;</span> <span class="pl-s1">l_literal10</span> <span class="pl-c1">=</span> <span class="pl-s">"About"</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">literal10</span><span class="pl-kos">,</span> <span class="pl-s1">l_literal10</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">c_literal10</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">literal10</span> <span class="pl-c1">=</span> <span class="pl-s1">l_literal10</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">c_literal10</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">l_arrayFn111</span> <span class="pl-c1">=</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">arrayFn1</span><span class="pl-kos">(</span><span class="pl-s1">l_literal10</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arrayFn111</span><span class="pl-kos">,</span> <span class="pl-s1">l_arrayFn111</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_2_0</span><span class="pl-kos">.</span><span class="pl-c1">routeParams</span> <span class="pl-c1">=</span> <span class="pl-s1">l_arrayFn111</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arrayFn111</span> <span class="pl-c1">=</span> <span class="pl-s1">l_arrayFn111</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-s1">changes</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">8</span><span class="pl-kos">;</span> <span class="pl-s1">l_visibleHref12</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_2_0</span><span class="pl-kos">.</span><span class="pl-c1">visibleHref</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">visibleHref12</span><span class="pl-kos">,</span> <span class="pl-s1">l_visibleHref12</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">notifyDispatcher</span><span class="pl-kos">(</span><span class="pl-s1">l_visibleHref12</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">visibleHref12</span> <span class="pl-c1">=</span> <span class="pl-s1">l_visibleHref12</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">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">9</span><span class="pl-kos">;</span> <span class="pl-s1">l_isRouteActive13</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_2_0</span><span class="pl-kos">.</span><span class="pl-c1">isRouteActive</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">isRouteActive13</span><span class="pl-kos">,</span> <span class="pl-s1">l_isRouteActive13</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">notifyDispatcher</span><span class="pl-kos">(</span><span class="pl-s1">l_isRouteActive13</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">isRouteActive13</span> <span class="pl-c1">=</span> <span class="pl-s1">l_isRouteActive13</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">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-kos">;</span> <span class="pl-s1">l_url14</span> <span class="pl-c1">=</span> <span class="pl-s1">l_context</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">url14</span><span class="pl-kos">,</span> <span class="pl-s1">l_url14</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">notifyDispatcher</span><span class="pl-kos">(</span><span class="pl-s1">l_url14</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">url14</span> <span class="pl-c1">=</span> <span class="pl-s1">l_url14</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">propertyBindingIndex</span> <span class="pl-c1">=</span> <span class="pl-c1">11</span><span class="pl-kos">;</span> <span class="pl-s1">l_angularclassLogo15</span> <span class="pl-c1">=</span> <span class="pl-s1">l_context</span><span class="pl-kos">.</span><span class="pl-c1">angularclassLogo</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">looseNotIdentical</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">angularclassLogo15</span><span class="pl-kos">,</span> <span class="pl-s1">l_angularclassLogo15</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">notifyDispatcher</span><span class="pl-kos">(</span><span class="pl-s1">l_angularclassLogo15</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">angularclassLogo15</span> <span class="pl-c1">=</span> <span class="pl-s1">l_angularclassLogo15</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">changes</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-s1">isChanged</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">handleEventInternal</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">eventName</span><span class="pl-kos">,</span> <span class="pl-s1">elIndex</span><span class="pl-kos">,</span> <span class="pl-s1">locals</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">preventDefault</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">l_context</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">context</span><span class="pl-kos">,</span> <span class="pl-s1">l_onClick0_0</span><span class="pl-kos">,</span> <span class="pl-s1">l_onClick0_1</span><span class="pl-kos">,</span> <span class="pl-s1">l_onClick0_2</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">eventName</span> <span class="pl-c1">===</span> <span class="pl-s">"click"</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">elIndex</span> <span class="pl-c1">===</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">l_onClick0_0</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_0_0</span><span class="pl-kos">.</span><span class="pl-en">onClick</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">l_onClick0_0</span> <span class="pl-c1">===</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">preventDefault</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">eventName</span> <span class="pl-c1">===</span> <span class="pl-s">"click"</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">elIndex</span> <span class="pl-c1">===</span> <span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">l_onClick0_1</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_1_0</span><span class="pl-kos">.</span><span class="pl-en">onClick</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">l_onClick0_1</span> <span class="pl-c1">===</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">preventDefault</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">eventName</span> <span class="pl-c1">===</span> <span class="pl-s">"click"</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">elIndex</span> <span class="pl-c1">===</span> <span class="pl-c1">2</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">l_onClick0_2</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_2_0</span><span class="pl-kos">.</span><span class="pl-en">onClick</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">l_onClick0_2</span> <span class="pl-c1">===</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">preventDefault</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">preventDefault</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">hydrateDirectives</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">directives</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">directive_0_0</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">getDirectiveFor</span><span class="pl-kos">(</span><span class="pl-s1">directives</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_1_0</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">getDirectiveFor</span><span class="pl-kos">(</span><span class="pl-s1">directives</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_2_0</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">getDirectiveFor</span><span class="pl-kos">(</span><span class="pl-s1">directives</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_3_0</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">getDirectiveFor</span><span class="pl-kos">(</span><span class="pl-s1">directives</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">dehydrateDirectives</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">destroyPipes</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">destroyPipes</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">name0</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">interpolate1</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">literal2</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arrayFn13</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">visibleHref4</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">isRouteActive5</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">literal6</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arrayFn17</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">visibleHref8</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">isRouteActive9</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">literal10</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">arrayFn111</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">visibleHref12</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">isRouteActive13</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">url14</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">angularclassLogo15</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_0_0</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_1_0</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_2_0</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">directive_3_0</span> <span class="pl-c1">=</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-c1">uninitialized</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">.</span><span class="pl-c1">gen_propertyBindingTargets</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"textNode"</span><span class="pl-kos">,</span> <span class="pl-c1">6</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"directive"</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s">"routeParams"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"elementAttribute"</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s">"href"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"elementClass"</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s">"router-link-active"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"directive"</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">"routeParams"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"elementAttribute"</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">"href"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"elementClass"</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">"router-link-active"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"directive"</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s">"routeParams"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"elementAttribute"</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s">"href"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"elementClass"</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-s">"router-link-active"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"elementProperty"</span><span class="pl-kos">,</span> <span class="pl-c1">4</span><span class="pl-kos">,</span> <span class="pl-s">"href"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">bindingTarget</span><span class="pl-kos">(</span><span class="pl-s">"elementProperty"</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-s">"src"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">.</span><span class="pl-c1">gen_directiveIndices</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">directiveIndex</span><span class="pl-kos">(</span><span class="pl-c1">0</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-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">directiveIndex</span><span class="pl-kos">(</span><span class="pl-c1">1</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-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">directiveIndex</span><span class="pl-kos">(</span><span class="pl-c1">2</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-v">ChangeDetectionUtil</span><span class="pl-kos">.</span><span class="pl-en">directiveIndex</span><span class="pl-kos">(</span><span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">appProtoEl0_e</span> <span class="pl-c1">=</span> <span class="pl-v">AppProtoElement</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span> <span class="pl-s1">resolvedMetadataCache</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">t</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">appProtoEl1_e</span> <span class="pl-c1">=</span> <span class="pl-v">AppProtoElement</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span> <span class="pl-s1">resolvedMetadataCache</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">t</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">appProtoEl2_e</span> <span class="pl-c1">=</span> <span class="pl-v">AppProtoElement</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span> <span class="pl-s1">resolvedMetadataCache</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">t</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">appProtoEl3_e</span> <span class="pl-c1">=</span> <span class="pl-v">AppProtoElement</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span> <span class="pl-s1">resolvedMetadataCache</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">t</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">appProtoEl4_e</span> <span class="pl-c1">=</span> <span class="pl-v">AppProtoElement</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span> <span class="pl-s1">resolvedMetadataCache</span><span class="pl-kos">,</span> <span class="pl-c1">4</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">appProtoEl5_e</span> <span class="pl-c1">=</span> <span class="pl-v">AppProtoElement</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span> <span class="pl-s1">resolvedMetadataCache</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">'width'</span>: <span class="pl-s">'10%'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">appProtoView6_e0</span> <span class="pl-c1">=</span> <span class="pl-v">AppProtoView</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-s1">resolvedMetadataCache</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-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">renderType53_e</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">styles54_e</span> <span class="pl-c1">=</span> <span class="pl-s1">styles</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">viewFactory_e0</span><span class="pl-kos">(</span><span class="pl-s1">parentRenderer</span><span class="pl-kos">,</span> <span class="pl-s1">viewManager</span><span class="pl-kos">,</span> <span class="pl-s1">containerEl</span><span class="pl-kos">,</span> <span class="pl-s1">projectableNodes</span><span class="pl-kos">,</span> <span class="pl-s1">rootSelector</span><span class="pl-kos">,</span> <span class="pl-s1">dynamicallyCreatedProviders</span><span class="pl-kos">,</span> <span class="pl-s1">rootInjector</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">renderType53_e</span> <span class="pl-c1">==</span> <span class="pl-c1">null</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">renderType53_e</span> <span class="pl-c1">=</span> <span class="pl-s1">viewManager</span><span class="pl-kos">.</span><span class="pl-en">createRenderComponentType</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">styles54_e</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">renderer</span> <span class="pl-c1">=</span> <span class="pl-s1">parentRenderer</span><span class="pl-kos">.</span><span class="pl-en">renderComponent</span><span class="pl-kos">(</span><span class="pl-s1">renderType53_e</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">view</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AppView</span><span class="pl-kos">(</span> <span class="pl-s1">appProtoView6_e0</span><span class="pl-kos">,</span> <span class="pl-s1">renderer</span><span class="pl-kos">,</span> <span class="pl-s1">viewManager</span><span class="pl-kos">,</span> <span class="pl-s1">projectableNodes</span><span class="pl-kos">,</span> <span class="pl-s1">containerEl</span><span class="pl-kos">,</span> <span class="pl-s1">dynamicallyCreatedProviders</span><span class="pl-kos">,</span> <span class="pl-s1">rootInjector</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">return</span> <span class="pl-k">new</span> <span class="pl-v">ChangeDetector_e_0</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">checkSlotCount</span><span class="pl-kos">(</span><span class="pl-s">'e'</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">projectableNodes</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">parentRenderNode</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createViewRoot</span><span class="pl-kos">(</span><span class="pl-s1">view</span><span class="pl-kos">.</span><span class="pl-c1">containerAppElement</span><span class="pl-kos">.</span><span class="pl-c1">nativeElement</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render0_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">parentRenderNode</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render1_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">parentRenderNode</span><span class="pl-kos">,</span> <span class="pl-s">'header'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render2_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render1_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render3_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render1_e</span><span class="pl-kos">,</span> <span class="pl-s">'nav'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render4_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render3_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render5_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render3_e</span><span class="pl-kos">,</span> <span class="pl-s">'h1'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render6_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render5_e</span><span class="pl-kos">,</span> <span class="pl-s">''</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render7_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render3_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render8_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render3_e</span><span class="pl-kos">,</span> <span class="pl-s">'ul'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render9_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render8_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render10_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render8_e</span><span class="pl-kos">,</span> <span class="pl-s">'li'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">setElementAttribute</span><span class="pl-kos">(</span><span class="pl-s1">render10_e</span><span class="pl-kos">,</span> <span class="pl-s">'router-active'</span><span class="pl-kos">,</span> <span class="pl-s">''</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render11_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render10_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render12_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render10_e</span><span class="pl-kos">,</span> <span class="pl-s">'a'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-s1">render12_e</span><span class="pl-kos">,</span> <span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">view</span><span class="pl-kos">.</span><span class="pl-en">triggerEventHandlers</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render14_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render12_e</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-k">var</span> <span class="pl-s1">render15_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render10_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render16_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render8_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render17_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render8_e</span><span class="pl-kos">,</span> <span class="pl-s">'li'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">setElementAttribute</span><span class="pl-kos">(</span><span class="pl-s1">render17_e</span><span class="pl-kos">,</span> <span class="pl-s">'router-active'</span><span class="pl-kos">,</span> <span class="pl-s">''</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render18_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render17_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render19_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render17_e</span><span class="pl-kos">,</span> <span class="pl-s">'a'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-s1">render19_e</span><span class="pl-kos">,</span> <span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">view</span><span class="pl-kos">.</span><span class="pl-en">triggerEventHandlers</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render21_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render19_e</span><span class="pl-kos">,</span> <span class="pl-s">'Home'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render22_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render17_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render23_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render8_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render24_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render8_e</span><span class="pl-kos">,</span> <span class="pl-s">'li'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">setElementAttribute</span><span class="pl-kos">(</span><span class="pl-s1">render24_e</span><span class="pl-kos">,</span> <span class="pl-s">'router-active'</span><span class="pl-kos">,</span> <span class="pl-s">''</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render25_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render24_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render26_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render24_e</span><span class="pl-kos">,</span> <span class="pl-s">'a'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-s1">render26_e</span><span class="pl-kos">,</span> <span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">view</span><span class="pl-kos">.</span><span class="pl-en">triggerEventHandlers</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render28_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render26_e</span><span class="pl-kos">,</span> <span class="pl-s">'About'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render29_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render24_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render30_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render8_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render31_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render3_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render32_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render1_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render33_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">parentRenderNode</span><span class="pl-kos">,</span> <span class="pl-s">'\n\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render34_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">parentRenderNode</span><span class="pl-kos">,</span> <span class="pl-s">'main'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render35_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render34_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render36_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render34_e</span><span class="pl-kos">,</span> <span class="pl-s">'router-outlet'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render38_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render34_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render39_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">parentRenderNode</span><span class="pl-kos">,</span> <span class="pl-s">'\n\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render40_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">parentRenderNode</span><span class="pl-kos">,</span> <span class="pl-s">'footer'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render41_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render40_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n WebPack Angular 2 Starter by '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render42_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render40_e</span><span class="pl-kos">,</span> <span class="pl-s">'a'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render44_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render42_e</span><span class="pl-kos">,</span> <span class="pl-s">'@AngularClass'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render45_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render40_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render46_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render40_e</span><span class="pl-kos">,</span> <span class="pl-s">'div'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render47_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render46_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render48_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">render46_e</span><span class="pl-kos">,</span> <span class="pl-s">'img'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">setElementAttribute</span><span class="pl-kos">(</span><span class="pl-s1">render48_e</span><span class="pl-kos">,</span> <span class="pl-s">'width'</span><span class="pl-kos">,</span> <span class="pl-s">'10%'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render50_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render46_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render51_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">render40_e</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">render52_e</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">createText</span><span class="pl-kos">(</span><span class="pl-s1">parentRenderNode</span><span class="pl-kos">,</span> <span class="pl-s">'\n '</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">app13_e</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AppElement</span><span class="pl-kos">(</span><span class="pl-s1">appProtoEl0_e</span><span class="pl-kos">,</span> <span class="pl-s1">view</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">render12_e</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">app20_e</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AppElement</span><span class="pl-kos">(</span><span class="pl-s1">appProtoEl1_e</span><span class="pl-kos">,</span> <span class="pl-s1">view</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">render19_e</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">app27_e</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AppElement</span><span class="pl-kos">(</span><span class="pl-s1">appProtoEl2_e</span><span class="pl-kos">,</span> <span class="pl-s1">view</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">render26_e</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">app37_e</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AppElement</span><span class="pl-kos">(</span><span class="pl-s1">appProtoEl3_e</span><span class="pl-kos">,</span> <span class="pl-s1">view</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">render36_e</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">app43_e</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AppElement</span><span class="pl-kos">(</span><span class="pl-s1">appProtoEl4_e</span><span class="pl-kos">,</span> <span class="pl-s1">view</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">render42_e</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">app49_e</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">AppElement</span><span class="pl-kos">(</span><span class="pl-s1">appProtoEl5_e</span><span class="pl-kos">,</span> <span class="pl-s1">view</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s1">render48_e</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">view</span><span class="pl-kos">.</span><span class="pl-en">init</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-s1">render0_e</span><span class="pl-kos">,</span> <span class="pl-s1">render1_e</span><span class="pl-kos">,</span> <span class="pl-s1">render2_e</span><span class="pl-kos">,</span> <span class="pl-s1">render3_e</span><span class="pl-kos">,</span> <span class="pl-s1">render4_e</span><span class="pl-kos">,</span> <span class="pl-s1">render5_e</span><span class="pl-kos">,</span> <span class="pl-s1">render6_e</span><span class="pl-kos">,</span> <span class="pl-s1">render7_e</span><span class="pl-kos">,</span> <span class="pl-s1">render8_e</span><span class="pl-kos">,</span> <span class="pl-s1">render9_e</span><span class="pl-kos">,</span> <span class="pl-s1">render10_e</span><span class="pl-kos">,</span> <span class="pl-s1">render11_e</span><span class="pl-kos">,</span> <span class="pl-s1">render12_e</span><span class="pl-kos">,</span> <span class="pl-s1">render14_e</span><span class="pl-kos">,</span> <span class="pl-s1">render15_e</span><span class="pl-kos">,</span> <span class="pl-s1">render16_e</span><span class="pl-kos">,</span> <span class="pl-s1">render17_e</span><span class="pl-kos">,</span> <span class="pl-s1">render18_e</span><span class="pl-kos">,</span> <span class="pl-s1">render19_e</span><span class="pl-kos">,</span> <span class="pl-s1">render21_e</span><span class="pl-kos">,</span> <span class="pl-s1">render22_e</span><span class="pl-kos">,</span> <span class="pl-s1">render23_e</span><span class="pl-kos">,</span> <span class="pl-s1">render24_e</span><span class="pl-kos">,</span> <span class="pl-s1">render25_e</span><span class="pl-kos">,</span> <span class="pl-s1">render26_e</span><span class="pl-kos">,</span> <span class="pl-s1">render28_e</span><span class="pl-kos">,</span> <span class="pl-s1">render29_e</span><span class="pl-kos">,</span> <span class="pl-s1">render30_e</span><span class="pl-kos">,</span> <span class="pl-s1">render31_e</span><span class="pl-kos">,</span> <span class="pl-s1">render32_e</span><span class="pl-kos">,</span> <span class="pl-s1">render33_e</span><span class="pl-kos">,</span> <span class="pl-s1">render34_e</span><span class="pl-kos">,</span> <span class="pl-s1">render35_e</span><span class="pl-kos">,</span> <span class="pl-s1">render36_e</span><span class="pl-kos">,</span> <span class="pl-s1">render38_e</span><span class="pl-kos">,</span> <span class="pl-s1">render39_e</span><span class="pl-kos">,</span> <span class="pl-s1">render40_e</span><span class="pl-kos">,</span> <span class="pl-s1">render41_e</span><span class="pl-kos">,</span> <span class="pl-s1">render42_e</span><span class="pl-kos">,</span> <span class="pl-s1">render44_e</span><span class="pl-kos">,</span> <span class="pl-s1">render45_e</span><span class="pl-kos">,</span> <span class="pl-s1">render46_e</span><span class="pl-kos">,</span> <span class="pl-s1">render47_e</span><span class="pl-kos">,</span> <span class="pl-s1">render48_e</span><span class="pl-kos">,</span> <span class="pl-s1">render50_e</span><span class="pl-kos">,</span> <span class="pl-s1">render51_e</span><span class="pl-kos">,</span> <span class="pl-s1">render52_e</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s1">app13_e</span><span class="pl-kos">,</span> <span class="pl-s1">app20_e</span><span class="pl-kos">,</span> <span class="pl-s1">app27_e</span><span class="pl-kos">,</span> <span class="pl-s1">app37_e</span><span class="pl-kos">,</span> <span class="pl-s1">app43_e</span><span class="pl-kos">,</span> <span class="pl-s1">app49_e</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">view</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">viewFactory_e0</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=" 2016-01-24 23:42:12.787 browser_adapter.ts:73 TypeError: this.directive_2_0.onClick is not a function at t.ChangeDetector_e_0.handleEventInternal (viewFactory_e:358) at t.handleEvent (abstract_change_detector.ts:80) at t.triggerEventHandlers (view.ts:269) at eval (viewFactory_e:480) at dom_renderer.ts:286 at dom_events.ts:15 at n.t [as run] (polyfills.e18fe4046a301a646e5d.bundle.js:5857) at n.run (ng_zone.ts:370) at t.run (ng_zone.ts:317) at HTMLAnchorElement.i (dom_events.ts:15)"><pre class="notranslate"><code class="notranslate"> 2016-01-24 23:42:12.787 browser_adapter.ts:73 TypeError: this.directive_2_0.onClick is not a function at t.ChangeDetector_e_0.handleEventInternal (viewFactory_e:358) at t.handleEvent (abstract_change_detector.ts:80) at t.triggerEventHandlers (view.ts:269) at eval (viewFactory_e:480) at dom_renderer.ts:286 at dom_events.ts:15 at n.t [as run] (polyfills.e18fe4046a301a646e5d.bundle.js:5857) at n.run (ng_zone.ts:370) at t.run (ng_zone.ts:317) at HTMLAnchorElement.i (dom_events.ts:15) </code></pre></div> <p dir="auto"><a href="https://tipe.io?ref=github-comment" rel="nofollow"><img src="https://user-images.githubusercontent.com/1016365/34912701-7edec34c-f89c-11e7-8c89-bed6cef064b5.png" alt="github-tipe-logo" style="max-width: 100%;"></a></p>
1
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5013478/2020-08-02.txt">2020-08-02.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/02/2020 20:52:47<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">Atom automatically inserts a newline at the end of a file on save. In my opinion, this is bad behavior because it is confusing and potentially problematic to save something that differs from what has been edited.</p> <p dir="auto">As one example, if I am editing a file in an existing repo, I don't want to automatically insert a newline because the resulting diff will distract from what I'm trying to do.</p> <p dir="auto">In addition, it's not just that this happens silently, it's that I can't find any way to end a file without a newline. Let me edit my files! =)</p> <p dir="auto">I couldn't find a setting for this, although I may be missing something. In my opinion this should not be default behavior in any case.</p>
<p dir="auto">Dupes of label -&gt; command menu items should be gracefully handled.</p>
0
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.6.1</p> <h3 dir="auto">What happened</h3> <p dir="auto">The AwaitMessageTriggerFunctionSensor is showing some buggy behaviour.<br> When consuming from a topic, it is correctly applying the apply_function in order to yield a TriggerEvent.</p> <p dir="auto">However, it is consuming multiple messages at a time and not yielding a trigger for the correct amount of messages that would be eligble (return a value in the apply_function). The observed behaviour is as follows:</p> <ul dir="auto"> <li>Sensor is deferred and messages start getting consumed</li> <li>Multiple eligble messages trigger a single TriggerEvent instead of multiple TriggerEvents.</li> <li>The sensor returns to a deferred state , repeating the cycle.</li> </ul> <p dir="auto">The event_triggered_function is being called correctly. However, due to the issue in consuming and correctly generating the appropriate TriggerEvents some of them are missed.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">Each eligble message should create an individual TriggerEvent to be consumed by the event_triggered_function.</p> <h3 dir="auto">How to reproduce</h3> <ul dir="auto"> <li>Use a producer DAG to produce a set amount of messages on your kafka topic</li> <li>Use a listener DAG to consume this topic, screening for eligble messages (apply_function) and use the event_trigger_function to monitor the amount of events that are being consumed.</li> </ul> <h3 dir="auto">Operating System</h3> <p dir="auto">Kubernetes cluster - Linux</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-apache-kafka==1.1.0</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Official Apache Airflow Helm Chart</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">helm chart version 1.9.0</p> <h3 dir="auto">Anything else</h3> <p dir="auto">Every time (independent of topic, message content, apply_function and event_triggered_function)</p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.3.0 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">upgraded from 2.2.5</p> <p dir="auto">airflow db upgrade showed a list of messages inline with what is in the changelog:</p> <p dir="auto">Database configuration moved to new section (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1169624280" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/22284" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/22284/hovercard" href="https://github.com/apache/airflow/pull/22284">#22284</a>)</p> <p dir="auto">The following configurations have been moved from [core] to the new [database] section. However when reading the new option, the old option will be checked to see if it exists. If it does a DeprecationWarning will be issued and the old option will be used instead.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sql_alchemy_conn sql_engine_encoding sql_engine_collation_for_ids sql_alchemy_pool_enabled sql_alchemy_pool_size sql_alchemy_max_overflow sql_alchemy_pool_recycle sql_alchemy_pool_pre_ping sql_alchemy_schema sql_alchemy_connect_args load_default_connections max_db_retries"><pre class="notranslate"><code class="notranslate">sql_alchemy_conn sql_engine_encoding sql_engine_collation_for_ids sql_alchemy_pool_enabled sql_alchemy_pool_size sql_alchemy_max_overflow sql_alchemy_pool_recycle sql_alchemy_pool_pre_ping sql_alchemy_schema sql_alchemy_connect_args load_default_connections max_db_retries </code></pre></div> <p dir="auto">so nice as I am I moved those lines from [core] to a new [database] section and airflow db upgrade did not mention them again so all was well.</p> <p dir="auto">After that I started the services</p> <p dir="auto">sudo systemctl start airflow-webserver.service<br> sudo systemctl start airflow-scheduler.service</p> <p dir="auto">but the webservice failed with this error:</p> <p dir="auto">May 04 08:46:21 postest airflow[108983]: [2022-05-04 08:46:21 +0200] [108983] [ERROR] Exception in worker process<br> May 04 08:46:21 postest airflow[108983]: [2022-05-04 08:46:21,254] {configuration.py:494} WARNING - section/key [core/sql_alchemy_conn] not found in config<br> May 04 08:46:21 postest airflow[108982]: [2022-05-04 08:46:21 +0200] [108982] [INFO] Worker exiting (pid: 108982)<br> May 04 08:46:21 postest airflow[108982]: airflow.exceptions.AirflowConfigException: section/key [core/sql_alchemy_conn] not found in config</p> <p dir="auto">for now I duplicated the lines, so they are both in [core] and [database], so no big issue.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">service should start and find the settings in the [database] section</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">upgrade from 2.2.5, move the lines in question to a new [database] section and start the webservice.</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Ubuntu 20.04.4 LTS (Focal Fossa)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-ftp==2.1.2<br> apache-airflow-providers-http==2.1.2<br> apache-airflow-providers-imap==2.2.3<br> apache-airflow-providers-postgres==4.1.0<br> apache-airflow-providers-sqlite==2.1.3</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Haven't tested on iOS</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" return new Scaffold( appBar: new AppBar( title: new Text('Enter text to read'), ), body: new Center( child: new Column(children: [ new Expanded( child: new Container( margin: new EdgeInsets.all(4.0), padding: new EdgeInsets.all(4.0), decoration: const BoxDecoration( border: const Border( top: const BorderSide(width: 2.0, color: Colors.grey), left: const BorderSide(width: 2.0, color: Colors.grey), right: const BorderSide(width: 2.0, color: Colors.grey), bottom: const BorderSide(width: 2.0, color: Colors.grey), )), child: new TextField( maxLines: 10000, // null has a bug controller: _controller, decoration: new InputDecoration( hintText: 'Enter some text for paced reading', ), onChanged: _action, onSubmitted: (String str) { Navigator.of(context).push(new MaterialPageRoute&lt;Null&gt;( builder: (_) =&gt; new MyReadPage(text: str))); }), )) ]))); "><pre class="notranslate"> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Scaffold</span>( 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">'Enter text to read'</span>), ), body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Column</span>(children<span class="pl-k">:</span> [ <span class="pl-k">new</span> <span class="pl-c1">Expanded</span>( child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>( margin<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">all</span>(<span class="pl-c1">4.0</span>), padding<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">all</span>(<span class="pl-c1">4.0</span>), decoration<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">BoxDecoration</span>( border<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">Border</span>( top<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">BorderSide</span>(width<span class="pl-k">:</span> <span class="pl-c1">2.0</span>, color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.grey), left<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">BorderSide</span>(width<span class="pl-k">:</span> <span class="pl-c1">2.0</span>, color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.grey), right<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">BorderSide</span>(width<span class="pl-k">:</span> <span class="pl-c1">2.0</span>, color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.grey), bottom<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">BorderSide</span>(width<span class="pl-k">:</span> <span class="pl-c1">2.0</span>, color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.grey), )), child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextField</span>( maxLines<span class="pl-k">:</span> <span class="pl-c1">10000</span>, <span class="pl-c">// null has a bug </span> controller<span class="pl-k">:</span> _controller, decoration<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">InputDecoration</span>( hintText<span class="pl-k">:</span> <span class="pl-s">'Enter some text for paced reading'</span>, ), onChanged<span class="pl-k">:</span> _action, onSubmitted<span class="pl-k">:</span> (<span class="pl-c1">String</span> str) { <span class="pl-c1">Navigator</span>.<span class="pl-en">of</span>(context).<span class="pl-en">push</span>(<span class="pl-k">new</span> <span class="pl-c1">MaterialPageRoute</span>&lt;<span class="pl-c1">Null</span>&gt;( builder<span class="pl-k">:</span> (_) <span class="pl-k">=&gt;</span> <span class="pl-k">new</span> <span class="pl-c1">MyReadPage</span>(text<span class="pl-k">:</span> str))); }), )) ]))); </pre></div> <p dir="auto">If I copy some text (and verify I can paste it in other apps), and paste it, it does nothing</p> <h2 dir="auto">Logs</h2> <p dir="auto">Nothing in the logs/analyze</p> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha) • Flutter at /home/mfairhurst/dart/flutter • Framework revision e8aa40eddd (5 weeks ago), 2017-10-17 15:42:40 -0700 • Engine revision 7c4142808c • Tools Dart version 1.25.0-dev.11.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3) • Android SDK at /home/mfairhurst • Platform android-25, build-tools 25.0.3 • ANDROID_HOME = /home/mfairhurst • Java binary at: /usr/local/buildtools/java/jdk8-google-v7-64/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-google-v7-169763474-169682997) [✗] 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 Ultimate Edition (version 2016.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 162.2485 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [-] IntelliJ IDEA Ultimate Edition (version 2017.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 172.2791 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [-] IntelliJ IDEA Ultimate Edition (version 2016.3) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 163.8651 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [✓] Connected devices • ONEPLUS A5000 • d6843768 • android-arm • Android 7.1.1 (API 25)"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha) • Flutter at /home/mfairhurst/dart/flutter • Framework revision e8aa40eddd (5 weeks ago), 2017-10-17 15:42:40 -0700 • Engine revision 7c4142808c • Tools Dart version 1.25.0-dev.11.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3) • Android SDK at /home/mfairhurst • Platform android-25, build-tools 25.0.3 • ANDROID_HOME = /home/mfairhurst • Java binary at: /usr/local/buildtools/java/jdk8-google-v7-64/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-google-v7-169763474-169682997) [✗] 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 Ultimate Edition (version 2016.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 162.2485 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [-] IntelliJ IDEA Ultimate Edition (version 2017.2) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 172.2791 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [-] IntelliJ IDEA Ultimate Edition (version 2016.3) ✗ Flutter plugin not installed; this adds Flutter specific functionality. • Dart plugin version 163.8651 • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins ✗ This install is older than the minimum recommended version of 2017.1.0. [✓] Connected devices • ONEPLUS A5000 • d6843768 • android-arm • Android 7.1.1 (API 25) </code></pre></div>
<p dir="auto">So my apps is 3 tabs.<br> in the first one I have a summary with a list and number.<br> the list is correctly viewed no issue...<br> the number is initialized in the second tab, setstate changes the state of the value but is not reflect it in the first tab<br> if I change my implementation to use a list it works perfectly I'm using double to keep the value<br> below the logs with flutter run -v</p> <p dir="auto"><strong>Steps to reproduce</strong></p> <p dir="auto">2 different view shares a double or string, one the two change the value using setstate</p> <p dir="auto">expected</p> <p dir="auto">both view have value updated</p> <p dir="auto">flutter run -v<br> [ +107 ms] [/home/chrx/flutter/] git rev-parse --abbrev-ref --symbolic @{u}<br> [ +107 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}<br> [ ] origin/alpha<br> [ ] [/home/chrx/flutter/] git ls-remote --get-url origin<br> [ +18 ms] Exit code 0 from: git ls-remote --get-url origin<br> [ ] <a href="https://github.com/flutter/flutter.git">https://github.com/flutter/flutter.git</a><br> [ +1 ms] [/home/chrx/flutter/] git log -n 1 --pretty=format:%H<br> [ +42 ms] Exit code 0 from: git log -n 1 --pretty=format:%H<br> [ ] <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/e8aa40eddd3b91ba1a2d0c2c1e34db0f38e4290e/hovercard" href="https://github.com/flutter/flutter/commit/e8aa40eddd3b91ba1a2d0c2c1e34db0f38e4290e"><tt>e8aa40e</tt></a><br> [ ] [/home/chrx/flutter/] git log -n 1 --pretty=format:%ar<br> [ +15 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar<br> [ ] 6 weeks ago<br> [ +676 ms] Listing devices using /home/chrx/Android/Sdk/platform-tools/adb<br> [ +1 ms] /home/chrx/Android/Sdk/platform-tools/adb devices -l<br> [ +18 ms] Exit code 0 from: /home/chrx/Android/Sdk/platform-tools/adb devices -l<br> [ ] List of devices attached<br> LGH87021af387d device usb:1-2 product:lucye_global_com model:LG_H870 device:lucye<br> [ +141 ms] /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d shell getprop<br> [ +150 ms] ro.hardware = lucye<br> [ ] ro.build.characteristics = default<br> [+1985 ms] Launching lib/main.dart on LG H870 in debug mode...<br> [ +38 ms] Initializing gradle...<br> [ +24 ms] Using gradle from /home/chrx/projects/splitmoney/android/gradlew.<br> [ +224 ms] /home/chrx/projects/splitmoney/android/gradlew -v<br> [+2534 ms]<br> ------------------------------------------------------------<br> Gradle 4.1<br> ------------------------------------------------------------</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Build time: 2017-08-07 14:38:48 UTC Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b01) OS: Linux 4.9.4-galliumos-braswell amd64"><pre class="notranslate"><code class="notranslate"> Build time: 2017-08-07 14:38:48 UTC Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b01) OS: Linux 4.9.4-galliumos-braswell amd64 </code></pre></div> <p dir="auto">[ +8 ms] Resolving dependencies...<br> [ +2 ms] [android/] /home/chrx/projects/splitmoney/android/gradlew app:properties<br> [+3102 ms] Configuration 'debugCompile' in project ':app' is deprecated. Use 'debugImplementation' instead.<br> Configuration 'profileCompile' in project ':app' is deprecated. Use 'profileImplementation' instead.<br> Configuration 'releaseCompile' in project ':app' is deprecated. Use 'releaseImplementation' instead.<br> Configuration 'androidTestCompile' in project ':app' is deprecated. Use 'androidTestImplementation' instead.<br> WARNING: The specified Android SDK Build Tools version (25.0.3) is ignored, as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.0.<br> Android SDK Build Tools 26.0.2 will be used.<br> To suppress this warning, remove "buildToolsVersion '25.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.<br> :app:properties</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ------------------------------------------------------------ Project :app ------------------------------------------------------------ allprojects: [project ':app'] android: com.android.build.gradle.AppExtension_Decorated@3dd94a22 androidDependencies: task ':app:androidDependencies' ant: org.gradle.api.internal.project.DefaultAntBuilder@5ec142b7 antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@4596f85b archivesBaseName: app artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@f4b512e asDynamicObject: DynamicObject for project ':app' assemble: task ':app:assemble' assembleAndroidTest: task ':app:assembleAndroidTest' assembleDebug: task ':app:assembleDebug' assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest' assembleDebugUnitTest: task ':app:assembleDebugUnitTest' assembleProfile: task ':app:assembleProfile' assembleProfileUnitTest: task ':app:assembleProfileUnitTest' assembleRelease: task ':app:assembleRelease' assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest' baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@783482bf buildDependents: task ':app:buildDependents' buildDir: /home/chrx/projects/splitmoney/build/app buildFile: /home/chrx/projects/splitmoney/android/app/build.gradle buildNeeded: task ':app:buildNeeded' buildOutputs: BaseVariantOutput container buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@2cb4b3f4 buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@5e92d219 bundleAppClassesDebug: task ':app:bundleAppClassesDebug' bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest' bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest' bundleAppClassesProfile: task ':app:bundleAppClassesProfile' bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest' bundleAppClassesRelease: task ':app:bundleAppClassesRelease' bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest' check: task ':app:check' checkDebugManifest: task ':app:checkDebugManifest' checkProfileManifest: task ':app:checkProfileManifest' checkReleaseManifest: task ':app:checkReleaseManifest' childProjects: {} class: class org.gradle.api.internal.project.DefaultProject_Decorated classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@b052ac4 cleanBuildCache: task ':app:cleanBuildCache' compileDebugAidl: task ':app:compileDebugAidl' compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl' compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac' compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk' compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript' compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders' compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources' compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac' compileDebugNdk: task ':app:compileDebugNdk' compileDebugRenderscript: task ':app:compileDebugRenderscript' compileDebugShaders: task ':app:compileDebugShaders' compileDebugSources: task ':app:compileDebugSources' compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac' compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources' compileLint: task ':app:compileLint' compileProfileAidl: task ':app:compileProfileAidl' compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac' compileProfileNdk: task ':app:compileProfileNdk' compileProfileRenderscript: task ':app:compileProfileRenderscript' compileProfileShaders: task ':app:compileProfileShaders' compileProfileSources: task ':app:compileProfileSources' compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac' compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources' compileReleaseAidl: task ':app:compileReleaseAidl' compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac' compileReleaseNdk: task ':app:compileReleaseNdk' compileReleaseRenderscript: task ':app:compileReleaseRenderscript' compileReleaseShaders: task ':app:compileReleaseShaders' compileReleaseSources: task ':app:compileReleaseSources' compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac' compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources' components: SoftwareComponentInternal set configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@57786061 configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@5e5a4269 configurations: configuration container connectedAndroidTest: task ':app:connectedAndroidTest' connectedCheck: task ':app:connectedCheck' connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest' consumeConfigAttr: task ':app:consumeConfigAttr' convention: org.gradle.api.internal.plugins.DefaultConvention@161041a1 copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug' copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile' copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease' createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests' createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests' createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests' defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@34e10aad defaultTasks: [] deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@208e1f38 dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@2ccb584a depth: 1 description: null deviceAndroidTest: task ':app:deviceAndroidTest' deviceCheck: task ':app:deviceCheck' displayName: project ':app' distsDir: /home/chrx/projects/splitmoney/build/app/distributions distsDirName: distributions docsDir: /home/chrx/projects/splitmoney/build/app/docs docsDirName: docs ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@38c2093b extensions: org.gradle.api.internal.plugins.DefaultConvention@161041a1 extractProguardFiles: task ':app:extractProguardFiles' fileOperations: org.gradle.api.internal.file.DefaultFileOperations@44ad8ec fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@546d7082 flutter: FlutterExtension_Decorated@22127b4d flutterBuildDebug: task ':app:flutterBuildDebug' flutterBuildProfile: task ':app:flutterBuildProfile' flutterBuildRelease: task ':app:flutterBuildRelease' flutterBuildX86Jar: task ':app:flutterBuildX86Jar' flutterDependenciesDebug: task ':app:flutterDependenciesDebug' flutterDependenciesProfile: task ':app:flutterDependenciesProfile' flutterDependenciesRelease: task ':app:flutterDependenciesRelease' generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets' generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig' generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues' generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources' generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources' generateDebugAssets: task ':app:generateDebugAssets' generateDebugBuildConfig: task ':app:generateDebugBuildConfig' generateDebugResValues: task ':app:generateDebugResValues' generateDebugResources: task ':app:generateDebugResources' generateDebugSources: task ':app:generateDebugSources' generateProfileAssets: task ':app:generateProfileAssets' generateProfileBuildConfig: task ':app:generateProfileBuildConfig' generateProfileResValues: task ':app:generateProfileResValues' generateProfileResources: task ':app:generateProfileResources' generateProfileSources: task ':app:generateProfileSources' generateReleaseAssets: task ':app:generateReleaseAssets' generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig' generateReleaseResValues: task ':app:generateReleaseResValues' generateReleaseResources: task ':app:generateReleaseResources' generateReleaseSources: task ':app:generateReleaseSources' gradle: build 'android' group: android identityPath: :app inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@ab125e5 installDebug: task ':app:installDebug' installDebugAndroidTest: task ':app:installDebugAndroidTest' installProfile: task ':app:installProfile' installRelease: task ':app:installRelease' javaPreCompileDebug: task ':app:javaPreCompileDebug' javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest' javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest' javaPreCompileProfile: task ':app:javaPreCompileProfile' javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest' javaPreCompileRelease: task ':app:javaPreCompileRelease' javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest' layout: org.gradle.api.internal.file.DefaultProjectLayout@586e11e7 libsDir: /home/chrx/projects/splitmoney/build/app/libs libsDirName: libs lint: task ':app:lint' lintDebug: task ':app:lintDebug' lintProfile: task ':app:lintProfile' lintRelease: task ':app:lintRelease' lintVitalRelease: task ':app:lintVitalRelease' logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@20caf61f logging: org.gradle.internal.logging.services.DefaultLoggingManager@67b89308 mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets' mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders' mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources' mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders' mergeDebugAssets: task ':app:mergeDebugAssets' mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders' mergeDebugResources: task ':app:mergeDebugResources' mergeDebugShaders: task ':app:mergeDebugShaders' mergeProfileAssets: task ':app:mergeProfileAssets' mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders' mergeProfileResources: task ':app:mergeProfileResources' mergeProfileShaders: task ':app:mergeProfileShaders' mergeReleaseAssets: task ':app:mergeReleaseAssets' mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders' mergeReleaseResources: task ':app:mergeReleaseResources' mergeReleaseShaders: task ':app:mergeReleaseShaders' mockableAndroidJar: task ':app:mockableAndroidJar' modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@56c144a1 modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@44035cb module: org.gradle.api.internal.artifacts.ProjectBackedModule@3d162b9a name: app normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@55dccd91 objects: org.gradle.api.internal.model.DefaultObjectFactory@14196a30 org.gradle.jvmargs: -Xmx1536M packageDebug: task ':app:packageDebug' packageDebugAndroidTest: task ':app:packageDebugAndroidTest' packageProfile: task ':app:packageProfile' packageRelease: task ':app:packageRelease' parent: root project 'android' parentIdentifier: root project 'android' path: :app platformAttrExtractor: task ':app:platformAttrExtractor' pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@7d150fe4 plugins: [org.gradle.api.plugins.HelpTasksPlugin@518ab48a, com.android.build.gradle.api.AndroidBasePlugin@76f34ddd, org.gradle.language.base.plugins.LifecycleBasePlugin@fe5f1dc, org.gradle.api.plugins.BasePlugin@6a8bb369, org.gradle.api.plugins.ReportingBasePlugin@3984b410, org.gradle.platform.base.plugins.ComponentBasePlugin@366be5da, org.gradle.language.base.plugins.LanguageBasePlugin@2a53e333, org.gradle.platform.base.plugins.BinaryBasePlugin@7c3a9c5c, org.gradle.api.plugins.JavaBasePlugin@9c76d3e, com.android.build.gradle.internal.coverage.JacocoPlugin@7e10dddd, com.android.build.gradle.AppPlugin@4fdd8629, FlutterPlugin@7d3735e] preBuild: task ':app:preBuild' preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild' preDebugBuild: task ':app:preDebugBuild' preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild' preProfileBuild: task ':app:preProfileBuild' preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild' preReleaseBuild: task ':app:preReleaseBuild' preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild' prepareLintJar: task ':app:prepareLintJar' processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes' processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest' processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources' processDebugJavaRes: task ':app:processDebugJavaRes' processDebugManifest: task ':app:processDebugManifest' processDebugResources: task ':app:processDebugResources' processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes' processOperations: org.gradle.api.internal.file.DefaultFileOperations@44ad8ec processProfileJavaRes: task ':app:processProfileJavaRes' processProfileManifest: task ':app:processProfileManifest' processProfileResources: task ':app:processProfileResources' processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes' processReleaseJavaRes: task ':app:processReleaseJavaRes' processReleaseManifest: task ':app:processReleaseManifest' processReleaseResources: task ':app:processReleaseResources' processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes' project: project ':app' projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@5e96f39d projectDir: /home/chrx/projects/splitmoney/android/app projectEvaluationBroadcaster: ProjectEvaluationListener broadcast projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@2ae40a2 projectPath: :app projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@31adb523 properties: {...} providers: org.gradle.api.internal.provider.DefaultProviderFactory@29fb7ff8 reporting: org.gradle.api.reporting.ReportingExtension_Decorated@6412e6dd reportsDir: /home/chrx/projects/splitmoney/build/app/reports repositories: repository container resolveConfigAttr: task ':app:resolveConfigAttr' resources: org.gradle.api.internal.resources.DefaultResourceHandler@d71fbd9 rootDir: /home/chrx/projects/splitmoney/android rootProject: root project 'android' scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@7daa0185 scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@2172a7be serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@52a59943 services: ProjectScopeServices signingReport: task ':app:signingReport' sourceCompatibility: 1.8 sourceSets: SourceSet container splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug' splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest' splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile' splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease' standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@67b89308 state: project state 'EXECUTED' status: integration subprojects: [] targetCompatibility: 1.8 tasks: task set test: task ':app:test' testDebugUnitTest: task ':app:testDebugUnitTest' testProfileUnitTest: task ':app:testProfileUnitTest' testReleaseUnitTest: task ':app:testReleaseUnitTest' testReportDir: /home/chrx/projects/splitmoney/build/app/reports/tests testReportDirName: tests testResultsDir: /home/chrx/projects/splitmoney/build/app/test-results testResultsDirName: test-results transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug' transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest' transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile' transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease' transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug' transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest' transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile' transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest' transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile' transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease' transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug' transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest' transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile' transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease' transformNativeLibsWithStripDebugSymbolForDebug: task ':app:transformNativeLibsWithStripDebugSymbolForDebug' transformNativeLibsWithStripDebugSymbolForProfile: task ':app:transformNativeLibsWithStripDebugSymbolForProfile' transformNativeLibsWithStripDebugSymbolForRelease: task ':app:transformNativeLibsWithStripDebugSymbolForRelease' transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug' transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest' transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest' transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile' transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest' transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease' transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest' uninstallAll: task ':app:uninstallAll' uninstallDebug: task ':app:uninstallDebug' uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest' uninstallProfile: task ':app:uninstallProfile' uninstallRelease: task ':app:uninstallRelease' validateSigningDebug: task ':app:validateSigningDebug' validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest' validateSigningProfile: task ':app:validateSigningProfile' validateSigningRelease: task ':app:validateSigningRelease' version: unspecified writeDebugApplicationId: task ':app:writeDebugApplicationId' writeProfileApplicationId: task ':app:writeProfileApplicationId' writeReleaseApplicationId: task ':app:writeReleaseApplicationId' BUILD SUCCESSFUL in 2s 1 actionable task: 1 executed"><pre class="notranslate"><code class="notranslate"> ------------------------------------------------------------ Project :app ------------------------------------------------------------ allprojects: [project ':app'] android: com.android.build.gradle.AppExtension_Decorated@3dd94a22 androidDependencies: task ':app:androidDependencies' ant: org.gradle.api.internal.project.DefaultAntBuilder@5ec142b7 antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@4596f85b archivesBaseName: app artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@f4b512e asDynamicObject: DynamicObject for project ':app' assemble: task ':app:assemble' assembleAndroidTest: task ':app:assembleAndroidTest' assembleDebug: task ':app:assembleDebug' assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest' assembleDebugUnitTest: task ':app:assembleDebugUnitTest' assembleProfile: task ':app:assembleProfile' assembleProfileUnitTest: task ':app:assembleProfileUnitTest' assembleRelease: task ':app:assembleRelease' assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest' baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@783482bf buildDependents: task ':app:buildDependents' buildDir: /home/chrx/projects/splitmoney/build/app buildFile: /home/chrx/projects/splitmoney/android/app/build.gradle buildNeeded: task ':app:buildNeeded' buildOutputs: BaseVariantOutput container buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@2cb4b3f4 buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@5e92d219 bundleAppClassesDebug: task ':app:bundleAppClassesDebug' bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest' bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest' bundleAppClassesProfile: task ':app:bundleAppClassesProfile' bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest' bundleAppClassesRelease: task ':app:bundleAppClassesRelease' bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest' check: task ':app:check' checkDebugManifest: task ':app:checkDebugManifest' checkProfileManifest: task ':app:checkProfileManifest' checkReleaseManifest: task ':app:checkReleaseManifest' childProjects: {} class: class org.gradle.api.internal.project.DefaultProject_Decorated classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@b052ac4 cleanBuildCache: task ':app:cleanBuildCache' compileDebugAidl: task ':app:compileDebugAidl' compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl' compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac' compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk' compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript' compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders' compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources' compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac' compileDebugNdk: task ':app:compileDebugNdk' compileDebugRenderscript: task ':app:compileDebugRenderscript' compileDebugShaders: task ':app:compileDebugShaders' compileDebugSources: task ':app:compileDebugSources' compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac' compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources' compileLint: task ':app:compileLint' compileProfileAidl: task ':app:compileProfileAidl' compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac' compileProfileNdk: task ':app:compileProfileNdk' compileProfileRenderscript: task ':app:compileProfileRenderscript' compileProfileShaders: task ':app:compileProfileShaders' compileProfileSources: task ':app:compileProfileSources' compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac' compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources' compileReleaseAidl: task ':app:compileReleaseAidl' compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac' compileReleaseNdk: task ':app:compileReleaseNdk' compileReleaseRenderscript: task ':app:compileReleaseRenderscript' compileReleaseShaders: task ':app:compileReleaseShaders' compileReleaseSources: task ':app:compileReleaseSources' compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac' compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources' components: SoftwareComponentInternal set configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@57786061 configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@5e5a4269 configurations: configuration container connectedAndroidTest: task ':app:connectedAndroidTest' connectedCheck: task ':app:connectedCheck' connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest' consumeConfigAttr: task ':app:consumeConfigAttr' convention: org.gradle.api.internal.plugins.DefaultConvention@161041a1 copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug' copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile' copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease' createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests' createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests' createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests' defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@34e10aad defaultTasks: [] deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@208e1f38 dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@2ccb584a depth: 1 description: null deviceAndroidTest: task ':app:deviceAndroidTest' deviceCheck: task ':app:deviceCheck' displayName: project ':app' distsDir: /home/chrx/projects/splitmoney/build/app/distributions distsDirName: distributions docsDir: /home/chrx/projects/splitmoney/build/app/docs docsDirName: docs ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@38c2093b extensions: org.gradle.api.internal.plugins.DefaultConvention@161041a1 extractProguardFiles: task ':app:extractProguardFiles' fileOperations: org.gradle.api.internal.file.DefaultFileOperations@44ad8ec fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@546d7082 flutter: FlutterExtension_Decorated@22127b4d flutterBuildDebug: task ':app:flutterBuildDebug' flutterBuildProfile: task ':app:flutterBuildProfile' flutterBuildRelease: task ':app:flutterBuildRelease' flutterBuildX86Jar: task ':app:flutterBuildX86Jar' flutterDependenciesDebug: task ':app:flutterDependenciesDebug' flutterDependenciesProfile: task ':app:flutterDependenciesProfile' flutterDependenciesRelease: task ':app:flutterDependenciesRelease' generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets' generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig' generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues' generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources' generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources' generateDebugAssets: task ':app:generateDebugAssets' generateDebugBuildConfig: task ':app:generateDebugBuildConfig' generateDebugResValues: task ':app:generateDebugResValues' generateDebugResources: task ':app:generateDebugResources' generateDebugSources: task ':app:generateDebugSources' generateProfileAssets: task ':app:generateProfileAssets' generateProfileBuildConfig: task ':app:generateProfileBuildConfig' generateProfileResValues: task ':app:generateProfileResValues' generateProfileResources: task ':app:generateProfileResources' generateProfileSources: task ':app:generateProfileSources' generateReleaseAssets: task ':app:generateReleaseAssets' generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig' generateReleaseResValues: task ':app:generateReleaseResValues' generateReleaseResources: task ':app:generateReleaseResources' generateReleaseSources: task ':app:generateReleaseSources' gradle: build 'android' group: android identityPath: :app inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@ab125e5 installDebug: task ':app:installDebug' installDebugAndroidTest: task ':app:installDebugAndroidTest' installProfile: task ':app:installProfile' installRelease: task ':app:installRelease' javaPreCompileDebug: task ':app:javaPreCompileDebug' javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest' javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest' javaPreCompileProfile: task ':app:javaPreCompileProfile' javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest' javaPreCompileRelease: task ':app:javaPreCompileRelease' javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest' layout: org.gradle.api.internal.file.DefaultProjectLayout@586e11e7 libsDir: /home/chrx/projects/splitmoney/build/app/libs libsDirName: libs lint: task ':app:lint' lintDebug: task ':app:lintDebug' lintProfile: task ':app:lintProfile' lintRelease: task ':app:lintRelease' lintVitalRelease: task ':app:lintVitalRelease' logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@20caf61f logging: org.gradle.internal.logging.services.DefaultLoggingManager@67b89308 mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets' mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders' mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources' mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders' mergeDebugAssets: task ':app:mergeDebugAssets' mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders' mergeDebugResources: task ':app:mergeDebugResources' mergeDebugShaders: task ':app:mergeDebugShaders' mergeProfileAssets: task ':app:mergeProfileAssets' mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders' mergeProfileResources: task ':app:mergeProfileResources' mergeProfileShaders: task ':app:mergeProfileShaders' mergeReleaseAssets: task ':app:mergeReleaseAssets' mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders' mergeReleaseResources: task ':app:mergeReleaseResources' mergeReleaseShaders: task ':app:mergeReleaseShaders' mockableAndroidJar: task ':app:mockableAndroidJar' modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@56c144a1 modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@44035cb module: org.gradle.api.internal.artifacts.ProjectBackedModule@3d162b9a name: app normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@55dccd91 objects: org.gradle.api.internal.model.DefaultObjectFactory@14196a30 org.gradle.jvmargs: -Xmx1536M packageDebug: task ':app:packageDebug' packageDebugAndroidTest: task ':app:packageDebugAndroidTest' packageProfile: task ':app:packageProfile' packageRelease: task ':app:packageRelease' parent: root project 'android' parentIdentifier: root project 'android' path: :app platformAttrExtractor: task ':app:platformAttrExtractor' pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@7d150fe4 plugins: [org.gradle.api.plugins.HelpTasksPlugin@518ab48a, com.android.build.gradle.api.AndroidBasePlugin@76f34ddd, org.gradle.language.base.plugins.LifecycleBasePlugin@fe5f1dc, org.gradle.api.plugins.BasePlugin@6a8bb369, org.gradle.api.plugins.ReportingBasePlugin@3984b410, org.gradle.platform.base.plugins.ComponentBasePlugin@366be5da, org.gradle.language.base.plugins.LanguageBasePlugin@2a53e333, org.gradle.platform.base.plugins.BinaryBasePlugin@7c3a9c5c, org.gradle.api.plugins.JavaBasePlugin@9c76d3e, com.android.build.gradle.internal.coverage.JacocoPlugin@7e10dddd, com.android.build.gradle.AppPlugin@4fdd8629, FlutterPlugin@7d3735e] preBuild: task ':app:preBuild' preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild' preDebugBuild: task ':app:preDebugBuild' preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild' preProfileBuild: task ':app:preProfileBuild' preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild' preReleaseBuild: task ':app:preReleaseBuild' preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild' prepareLintJar: task ':app:prepareLintJar' processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes' processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest' processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources' processDebugJavaRes: task ':app:processDebugJavaRes' processDebugManifest: task ':app:processDebugManifest' processDebugResources: task ':app:processDebugResources' processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes' processOperations: org.gradle.api.internal.file.DefaultFileOperations@44ad8ec processProfileJavaRes: task ':app:processProfileJavaRes' processProfileManifest: task ':app:processProfileManifest' processProfileResources: task ':app:processProfileResources' processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes' processReleaseJavaRes: task ':app:processReleaseJavaRes' processReleaseManifest: task ':app:processReleaseManifest' processReleaseResources: task ':app:processReleaseResources' processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes' project: project ':app' projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@5e96f39d projectDir: /home/chrx/projects/splitmoney/android/app projectEvaluationBroadcaster: ProjectEvaluationListener broadcast projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@2ae40a2 projectPath: :app projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@31adb523 properties: {...} providers: org.gradle.api.internal.provider.DefaultProviderFactory@29fb7ff8 reporting: org.gradle.api.reporting.ReportingExtension_Decorated@6412e6dd reportsDir: /home/chrx/projects/splitmoney/build/app/reports repositories: repository container resolveConfigAttr: task ':app:resolveConfigAttr' resources: org.gradle.api.internal.resources.DefaultResourceHandler@d71fbd9 rootDir: /home/chrx/projects/splitmoney/android rootProject: root project 'android' scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@7daa0185 scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@2172a7be serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@52a59943 services: ProjectScopeServices signingReport: task ':app:signingReport' sourceCompatibility: 1.8 sourceSets: SourceSet container splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug' splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest' splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile' splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease' standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@67b89308 state: project state 'EXECUTED' status: integration subprojects: [] targetCompatibility: 1.8 tasks: task set test: task ':app:test' testDebugUnitTest: task ':app:testDebugUnitTest' testProfileUnitTest: task ':app:testProfileUnitTest' testReleaseUnitTest: task ':app:testReleaseUnitTest' testReportDir: /home/chrx/projects/splitmoney/build/app/reports/tests testReportDirName: tests testResultsDir: /home/chrx/projects/splitmoney/build/app/test-results testResultsDirName: test-results transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug' transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest' transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile' transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease' transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug' transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest' transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile' transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest' transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile' transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease' transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug' transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest' transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile' transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease' transformNativeLibsWithStripDebugSymbolForDebug: task ':app:transformNativeLibsWithStripDebugSymbolForDebug' transformNativeLibsWithStripDebugSymbolForProfile: task ':app:transformNativeLibsWithStripDebugSymbolForProfile' transformNativeLibsWithStripDebugSymbolForRelease: task ':app:transformNativeLibsWithStripDebugSymbolForRelease' transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug' transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest' transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest' transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile' transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest' transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease' transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest' uninstallAll: task ':app:uninstallAll' uninstallDebug: task ':app:uninstallDebug' uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest' uninstallProfile: task ':app:uninstallProfile' uninstallRelease: task ':app:uninstallRelease' validateSigningDebug: task ':app:validateSigningDebug' validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest' validateSigningProfile: task ':app:validateSigningProfile' validateSigningRelease: task ':app:validateSigningRelease' version: unspecified writeDebugApplicationId: task ':app:writeDebugApplicationId' writeProfileApplicationId: task ':app:writeProfileApplicationId' writeReleaseApplicationId: task ':app:writeReleaseApplicationId' BUILD SUCCESSFUL in 2s 1 actionable task: 1 executed </code></pre></div> <p dir="auto">[ +81 ms] /home/chrx/Android/Sdk/build-tools/27.0.1/aapt dump badging build/app/outputs/apk/app.apk<br> [ +61 ms] Exit code 0 from: /home/chrx/Android/Sdk/build-tools/27.0.1/aapt dump badging build/app/outputs/apk/app.apk<br> [ ] package: name='ab.splitmoney.splitmoney' versionCode='1' versionName='1.0' platformBuildVersionName='7.1.1'<br> sdkVersion:'16'<br> targetSdkVersion:'25'<br> uses-permission: name='android.permission.INTERNET'<br> application-label:'splitmoney'<br> application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'<br> application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'<br> application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'<br> application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'<br> application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'<br> application: label='splitmoney' icon='res/mipmap-mdpi-v4/ic_launcher.png'<br> application-debuggable<br> launchable-activity: name='ab.splitmoney.splitmoney.MainActivity' label='' icon=''<br> feature-group: label=''<br> uses-feature: name='android.hardware.faketouch'<br> uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'<br> uses-feature: name='android.hardware.screen.portrait'<br> uses-implied-feature: name='android.hardware.screen.portrait' reason='one or more activities have specified a portrait orientation'<br> main<br> supports-screens: 'small' 'normal' 'large' 'xlarge'<br> supports-any-density: 'true'<br> locales: '--<em>--'<br> densities: '160' '240' '320' '480' '640'<br> native-code: 'armeabi-v7a' 'x86' 'x86_64'<br> [ +17 ms] /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d logcat -v time -t 1<br> [ +168 ms] Exit code 0 from: /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d logcat -v time -t 1<br> [ +1 ms] --------- beginning of main<br> 11-26 02:25:11.443 I/TetherStatsReporting( 1709): peekTetherStats() done<br> [ +8 ms] /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d logcat -v time<br> [ +998 ms] DependencyChecker: /home/chrx/projects/splitmoney/lib/main.dart is newer than 2017-11-26 02:01:33.461<br> [ +12 ms] /home/chrx/Android/Sdk/platform-tools/adb version<br> [ +40 ms] Android Debug Bridge version 1.0.39<br> Revision 3db08f2c6889-android<br> Installed as /home/chrx/Android/Sdk/platform-tools/adb<br> [ +7 ms] /home/chrx/Android/Sdk/platform-tools/adb start-server<br> [ +21 ms] Building APK<br> [ +504 ms] Running 'gradlew assembleDebug'...<br> [ +6 ms] [android/] /home/chrx/projects/splitmoney/android/gradlew -Ptarget=/home/chrx/projects/splitmoney/lib/main.dart assembleDebug<br> [+2344 ms] Configuration 'debugCompile' in project ':app' is deprecated. Use 'debugImplementation' instead.<br> [ +12 ms] Configuration 'profileCompile' in project ':app' is deprecated. Use 'profileImplementation' instead.<br> [ +4 ms] Configuration 'releaseCompile' in project ':app' is deprecated. Use 'releaseImplementation' instead.<br> [ +3 ms] Configuration 'androidTestCompile' in project ':app' is deprecated. Use 'androidTestImplementation' instead.<br> [ +2 ms] WARNING: The specified Android SDK Build Tools version (25.0.3) is ignored, as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.0.<br> [ +1 ms] Android SDK Build Tools 26.0.2 will be used.<br> [ +1 ms] To suppress this warning, remove "buildToolsVersion '25.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.<br> [ +343 ms] :app:preBuild UP-TO-DATE<br> [ +12 ms] :app:preDebugBuild UP-TO-DATE<br> [ +31 ms] :app:compileDebugAidl UP-TO-DATE<br> [ +10 ms] :app:compileDebugRenderscript UP-TO-DATE<br> [ +131 ms] :app:flutterBuildX86Jar UP-TO-DATE<br> [ ] :app:checkDebugManifest UP-TO-DATE<br> [ +11 ms] :app:generateDebugBuildConfig UP-TO-DATE<br> [ ] :app:prepareLintJar UP-TO-DATE<br> [ ] :app:flutterDependenciesDebug UP-TO-DATE<br> [+22447 ms] :app:flutterBuildDebug<br> [ +10 ms] :app:mergeDebugShaders UP-TO-DATE<br> [ +10 ms] :app:compileDebugShaders UP-TO-DATE<br> [ +1 ms] :app:generateDebugAssets UP-TO-DATE<br> [ +4 ms] :app:mergeDebugAssets UP-TO-DATE<br> [ +48 ms] :app:copyFlutterAssetsDebug<br> [ ] :app:generateDebugResValues UP-TO-DATE<br> [ ] :app:generateDebugResources UP-TO-DATE<br> [ +18 ms] :app:mergeDebugResources UP-TO-DATE<br> [ +22 ms] :app:createDebugCompatibleScreenManifests UP-TO-DATE<br> [ ] :app:processDebugManifest UP-TO-DATE<br> [ +9 ms] :app:splitsDiscoveryTaskDebug UP-TO-DATE<br> [ +10 ms] :app:processDebugResources UP-TO-DATE<br> [ ] :app:generateDebugSources UP-TO-DATE<br> [ +10 ms] :app:javaPreCompileDebug UP-TO-DATE<br> [ +21 ms] :app:compileDebugJavaWithJavac UP-TO-DATE<br> [ ] :app:compileDebugNdk NO-SOURCE<br> [ ] :app:compileDebugSources UP-TO-DATE<br> [ +128 ms] :app:transformClassesWithDexBuilderForDebug UP-TO-DATE<br> [ ] :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE<br> [ +9 ms] :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE<br> [ +9 ms] :app:mergeDebugJniLibFolders UP-TO-DATE<br> [ +20 ms] :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE<br> [ +19 ms] :app:transformNativeLibsWithStripDebugSymbolForDebug UP-TO-DATE<br> [ +1 ms] :app:processDebugJavaRes NO-SOURCE<br> [ +19 ms] :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE<br> [ +10 ms] :app:validateSigningDebug<br> [+4283 ms] :app:packageDebug<br> [ ] :app:assembleDebug<br> [ ] BUILD SUCCESSFUL in 29s<br> [ ] 30 actionable tasks: 4 executed, 26 up-to-date<br> [+1069 ms] calculateSha: /home/chrx/projects/splitmoney/build/app/outputs/apk/app.apk<br> [ +987 ms] Built build/app/outputs/apk/app-debug.apk (21.6MB).<br> [ +1 ms] /home/chrx/Android/Sdk/build-tools/27.0.1/aapt dump badging build/app/outputs/apk/app.apk<br> [ +52 ms] Exit code 0 from: /home/chrx/Android/Sdk/build-tools/27.0.1/aapt dump badging build/app/outputs/apk/app.apk<br> [ ] package: name='ab.splitmoney.splitmoney' versionCode='1' versionName='1.0' platformBuildVersionName='7.1.1'<br> sdkVersion:'16'<br> targetSdkVersion:'25'<br> uses-permission: name='android.permission.INTERNET'<br> application-label:'splitmoney'<br> application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'<br> application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'<br> application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'<br> application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'<br> application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'<br> application: label='splitmoney' icon='res/mipmap-mdpi-v4/ic_launcher.png'<br> application-debuggable<br> launchable-activity: name='ab.splitmoney.splitmoney.MainActivity' label='' icon=''<br> feature-group: label=''<br> uses-feature: name='android.hardware.faketouch'<br> uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'<br> uses-feature: name='android.hardware.screen.portrait'<br> uses-implied-feature: name='android.hardware.screen.portrait' reason='one or more activities have specified a portrait orientation'<br> main<br> supports-screens: 'small' 'normal' 'large' 'xlarge'<br> supports-any-density: 'true'<br> locales: '--</em>--'<br> densities: '160' '240' '320' '480' '640'<br> native-code: 'armeabi-v7a' 'x86' 'x86_64'<br> [ +1 ms] Stopping app 'app.apk' on LG H870.<br> [ +1 ms] /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d shell am force-stop ab.splitmoney.splitmoney<br> [ +712 ms] /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d shell pm list packages ab.splitmoney.splitmoney<br> [ +512 ms] package:ab.splitmoney.splitmoney<br> [ +15 ms] /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d shell cat /data/local/tmp/sky.ab.splitmoney.splitmoney.sha1<br> [ +92 ms] 7032b77df41e5841e74f673462396db576001f0b<br> [ +3 ms] Latest build already installed.<br> [ +1 ms] LG H870 startApp<br> [ +13 ms] /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true ab.splitmoney.splitmoney/ab.splitmoney.splitmoney.MainActivity<br> [ +632 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=ab.splitmoney.splitmoney/.MainActivity (has extras) }<br> [ +1 ms] Waiting for observatory port to be available...<br> [ +343 ms] Diagnostic server URL on device: <a href="http://127.0.0.1:45637/" rel="nofollow">http://127.0.0.1:45637/</a><br> [ +39 ms] I/flutter (14009): 0.0<br> [ +1 ms] Observatory URL on device: <a href="http://127.0.0.1:60130/" rel="nofollow">http://127.0.0.1:60130/</a><br> [ +5 ms] /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d forward tcp:8117 tcp:45637<br> [ +1 ms] /home/chrx/Android/Sdk/platform-tools/adb -s LGH87021af387d forward tcp:8116 tcp:60130<br> [ +53 ms] Forwarded host port 8117 to device port 45637 for Diagnostic server<br> [ +3 ms] Forwarded host port 8116 to device port 60130 for Observatory<br> [ +91 ms] Connected to service protocol: <a href="http://127.0.0.1:8116/" rel="nofollow">http://127.0.0.1:8116/</a><br> [ +8 ms] getVM: {}<br> [ +409 ms] getIsolate: {isolateId: isolates/630103231}<br> [ +5 ms] _flutter.listViews: {}<br> [ +196 ms] DevFS: Creating new filesystem on the device (null)<br> [ +2 ms] _createDevFS: {fsName: splitmoney}<br> [ +107 ms] DevFS: Created new filesystem on the device (file:///data/user/0/ab.splitmoney.splitmoney/cache/splitmoneyUEUNCE/splitmoney/)<br> [ +7 ms] Updating assets<br> [+1043 ms] Syncing files to device LG H870...<br> [ +8 ms] DevFS: Starting sync from LocalDirectory: '/home/chrx/projects/splitmoney'<br> [ ] Scanning project files<br> [ +10 ms] Scanning package files<br> [ +239 ms] Scanning asset files<br> [ +2 ms] Scanning for deleted files<br> [ +14 ms] Updating files<br> [+6166 ms] DevFS: Sync finished<br> [ ] Synced 6.4MB.<br> [ +5 ms] _flutter.listViews: {}<br> [ +36 ms] Connected to _flutterView/0xe1dc4bf0.<br> [ +3 ms] <g-emoji class="g-emoji" alias="fire" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f525.png">🔥</g-emoji> To hot reload your app on the fly, press "r". To restart the app entirely, press "R".<br> [ +2 ms] An Observatory debugger and profiler on LG H870 is available at: <a href="http://127.0.0.1:8116/" rel="nofollow">http://127.0.0.1:8116/</a><br> [ ] For a more detailed help message, press "h". To quit, press "q".<br> [+6522 ms] Performing full restart...<br> [ +4 ms] Refreshing active FlutterViews before restarting.<br> [ ] _flutter.listViews: {}<br> [ +767 ms] Syncing files to device LG H870...<br> [ ] DevFS: Starting sync from LocalDirectory: '/home/chrx/projects/splitmoney'<br> [ ] Scanning project files<br> [ +1 ms] Scanning package files<br> [ +114 ms] Scanning asset files<br> [ ] Scanning for deleted files<br> [ +12 ms] DevFS: Sync finished<br> [ ] Synced 0.0MB.<br> [ ] getIsolate: {isolateId: isolates/630103231}<br> [ +137 ms] _flutter.runInView: {viewId: _flutterView/0xe1dc4bf0, mainScript: /data/user/0/ab.splitmoney.splitmoney/cache/splitmoneyUEUNCE/splitmoney/lib/main.dart, packagesFile: /data/user/0/ab.splitmoney.splitmoney/cache/splitmoneyUEUNCE/splitmoney/.packages, assetDirectory: /data/user/0/ab.splitmoney.splitmoney/cache/splitmoneyUEUNCE/splitmoney/build/flx}<br> [ +92 ms] {streamId: Isolate, event: {type: Event, kind: IsolateStart, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663163967}}<br> [ +1 ms] getIsolate: {isolateId: isolates/1029215931}<br> [ +3 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663163974, extensionRPC: ext.ui.window.scheduleFrame}}<br> [ +840 ms] {streamId: Isolate, event: {type: Event, kind: IsolateRunnable, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164731}}<br> [ ] Isolate is runnable.<br> [ ] getIsolate: {isolateId: isolates/1029215931}<br> [ +1 ms] _flutter.listViews: {}<br> [ +55 ms] Restart performed in 1,966ms.<br> [ +4 ms] Restarted app in 2,040ms.<br> [ +30 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164857, extensionRPC: ext.flutter.reassemble}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164858, extensionRPC: ext.flutter.exit}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164858, extensionRPC: ext.flutter.frameworkPresent}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164858, extensionRPC: ext.flutter.platformOverride}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164859, extensionRPC: ext.flutter.timeDilation}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164860, extensionRPC: ext.flutter.evict}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164862, extensionRPC: ext.flutter.debugPaint}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164862, extensionRPC: ext.flutter.debugPaintBaselinesEnabled}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164862, extensionRPC: ext.flutter.repaintRainbow}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164862, extensionRPC: ext.flutter.debugDumpRenderTree}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164862, extensionRPC: ext.flutter.debugDumpLayerTree}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164863, extensionRPC: ext.flutter.debugDumpSemanticsTreeInTraversalOrder}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164863, extensionRPC: ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164863, extensionRPC: ext.flutter.debugDumpApp}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164863, extensionRPC: ext.flutter.showPerformanceOverlay}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164863, extensionRPC: ext.flutter.debugAllowBanner}}<br> [ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/isolate/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/isolate">@isolate</a>, fixedId: true, id: isolates/1029215931, name: flx:main(), number: 1029215931}, timestamp: 1511663164863, extensionRPC: ext.flutter.debugWidgetInspector}}<br> [+5998 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_DOWN<br> [ +53 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_UP<br> [ +209 ms] I/AudioManagerEx(14009): AudioManagerEx created<br> [+41451 ms] I/Timeline(14009): Timeline: Activity_idle id: android.os.BinderProxy@c788325 time:90005026<br> [+1434 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_DOWN<br> [ +65 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_UP<br> [+1816 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_DOWN<br> [ +42 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_UP<br> [+1704 ms] I/flutter (14009): gas 6<br> [ +804 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_DOWN<br> [ +50 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_UP<br> [ +2 ms] I/flutter (14009): 6.0<br> [ +987 ms] I/ViewRootImpl(14009): ViewRoot's KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=90011941, downTime=90011941, deviceId=-1, source=0x101 } to DecorView@a097f95[MainActivity]<br> [ +53 ms] I/ViewRootImpl(14009): ViewRoot's KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=90012004, downTime=90011941, deviceId=-1, source=0x101 } to DecorView@a097f95[MainActivity]<br> [+1773 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_DOWN<br> [ +112 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_UP<br> [+6437 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_DOWN<br> [ +110 ms] I/ViewRootImpl(14009): ViewRoot's Touch Event : ACTION_UP</p>
1
<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>&gt;=3.2.2 &gt;=3.3.0-beta1</td> </tr> </tbody> </table> <p dir="auto">Validation caching merges constraints for class and all of its parents. It's wrong behaviour, because the class already contains constraints from parent classes. As a result we have duplicated constraint.</p> <h3 dir="auto">The way to reproduce</h3> <p dir="auto">Create two models, the second one extends the first one:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace AppBundle\Model; class Foo { public $foo; }"><pre class="notranslate"><span class="pl-k">namespace</span> <span class="pl-v">AppBundle</span>\<span class="pl-v">Model</span>; <span class="pl-k">class</span> <span class="pl-v">Foo</span> { <span class="pl-k">public</span> <span class="pl-c1"><span class="pl-c1">$</span>foo</span>; }</pre></div> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace AppBundle\Model; class Bar extends Foo { }"><pre class="notranslate"><span class="pl-k">namespace</span> <span class="pl-v">AppBundle</span>\<span class="pl-v">Model</span>; <span class="pl-k">class</span> <span class="pl-v">Bar</span> <span class="pl-k">extends</span> <span class="pl-v">Foo</span> { }</pre></div> <p dir="auto">Create validation config, add constraint to the first class, the second class should be defined (empty or with some constraints)</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="AppBundle\Model\Foo: constraints: - Expression: &quot;this.foo !== null&quot; AppBundle\Model\Bar:"><pre class="notranslate"><span class="pl-ent">AppBundle\Model\Foo</span>: <span class="pl-ent">constraints</span>: - <span class="pl-ent">Expression</span>: <span class="pl-s"><span class="pl-pds">"</span>this.foo !== null<span class="pl-pds">"</span></span> <span class="pl-ent">AppBundle\Model\Bar</span>:</pre></div> <p dir="auto">And validation of new <code class="notranslate">Bar</code> object will generates two duplicated violations:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$container-&gt;get('validator')-&gt;validate(new Bar()));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>container</span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'validator'</span>)-&gt;<span class="pl-en">validate</span>(<span class="pl-k">new</span> <span class="pl-v">Bar</span>()));</pre></div> <p dir="auto">Note: this code should be executed in prod environment, because test environment doesn't use validation cache by default.</p>
<p dir="auto">Drupal needs potentially to adapt the exception listener to add more information from the original request. (see <a href="http://drupal.org/node/2057607" rel="nofollow">http://drupal.org/node/2057607</a>) so what about extracing some of the logic into a new method.</p> <table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug fix?</td> <td>no</td> </tr> <tr> <td>New feature?</td> <td>yes</td> </tr> <tr> <td>BC breaks?</td> <td>no</td> </tr> <tr> <td>Deprecations?</td> <td>no</td> </tr> <tr> <td>Tests pass?</td> <td>yes</td> </tr> <tr> <td>Fixed tickets</td> <td></td> </tr> <tr> <td>License</td> <td>MIT</td> </tr> </tbody> </table>
0
<p dir="auto">The weekly build with nightly wheels from numpy and pandas<br> has failed. Check the logs for any updates that need to be<br> made in matplotlib.<br> <a href="https://github.com/matplotlib/matplotlib/actions/runs/2639783409">https://github.com/matplotlib/matplotlib/actions/runs/2639783409</a></p>
<p dir="auto">As far as I can see (and according to <a href="http://matplotlib.org/users/mathtext.html" rel="nofollow">the documentation</a>), the only way to set the font of mathtext snippets in plots is via the mathtext.fontset rcparam.</p> <p dir="auto">It would be nice if there were some way to control the fonts used for mathtext rendering without messing with the rcparams system. Maybe the font could be chosen based on the <code class="notranslate">FontProperties</code> instance associated with the Text object? To make a concrete example, it would be nice if the y label for this plot were rendered using a serif font, like the rest of the plot.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import numpy as np from matplotlib import pyplot as plt from matplotlib.font_manager import FontProperties fig, ax = plt.subplots() fp = FontProperties(**{'family': 'stixgeneral'}) im = ax.imshow(np.random.random((800, 800))) cb = fig.colorbar(im) cbax = cb.ax ax.set_xlabel('x label') ax.set_ylabel(r'$\rm{y\ label}$') cb.set_label('colorbar label') labels = ax.xaxis.get_ticklabels() + ax.yaxis.get_ticklabels() labels += cbax.yaxis.get_ticklabels() labels += [ax.xaxis.label, ax.yaxis.label, cbax.yaxis.label] for label in labels: label.set_fontproperties(fp) plt.savefig('test.png') "><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">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</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">font_manager</span> <span class="pl-k">import</span> <span class="pl-v">FontProperties</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">fp</span> <span class="pl-c1">=</span> <span class="pl-v">FontProperties</span>(<span class="pl-c1">**</span>{<span class="pl-s">'family'</span>: <span class="pl-s">'stixgeneral'</span>}) <span class="pl-s1">im</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">imshow</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-c1">800</span>, <span class="pl-c1">800</span>))) <span class="pl-s1">cb</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">im</span>) <span class="pl-s1">cbax</span> <span class="pl-c1">=</span> <span class="pl-s1">cb</span>.<span class="pl-s1">ax</span> <span class="pl-s1">ax</span>.<span class="pl-en">set_xlabel</span>(<span class="pl-s">'x label'</span>) <span class="pl-s1">ax</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">r'$\rm{y\ label}$'</span>) <span class="pl-s1">cb</span>.<span class="pl-en">set_label</span>(<span class="pl-s">'colorbar label'</span>) <span class="pl-s1">labels</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-s1">xaxis</span>.<span class="pl-en">get_ticklabels</span>() <span class="pl-c1">+</span> <span class="pl-s1">ax</span>.<span class="pl-s1">yaxis</span>.<span class="pl-en">get_ticklabels</span>() <span class="pl-s1">labels</span> <span class="pl-c1">+=</span> <span class="pl-s1">cbax</span>.<span class="pl-s1">yaxis</span>.<span class="pl-en">get_ticklabels</span>() <span class="pl-s1">labels</span> <span class="pl-c1">+=</span> [<span class="pl-s1">ax</span>.<span class="pl-s1">xaxis</span>.<span class="pl-s1">label</span>, <span class="pl-s1">ax</span>.<span class="pl-s1">yaxis</span>.<span class="pl-s1">label</span>, <span class="pl-s1">cbax</span>.<span class="pl-s1">yaxis</span>.<span class="pl-s1">label</span>] <span class="pl-k">for</span> <span class="pl-s1">label</span> <span class="pl-c1">in</span> <span class="pl-s1">labels</span>: <span class="pl-s1">label</span>.<span class="pl-en">set_fontproperties</span>(<span class="pl-s1">fp</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.png'</span>)</pre></div> <p dir="auto">For additional context, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157715875" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/6514" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/6514/hovercard" href="https://github.com/matplotlib/matplotlib/issues/6514">#6514</a> and my message to the matplotlib-devel mailing list: <a href="https://mail.python.org/pipermail/matplotlib-devel/2016-May/000454.html" rel="nofollow">https://mail.python.org/pipermail/matplotlib-devel/2016-May/000454.html</a></p>
0
<p dir="auto">This is a regression from v1.32.3 to v1.32.4, likely caused by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1653574308" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/18587" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/18587/hovercard" href="https://github.com/denoland/deno/pull/18587">#18587</a></p> <p dir="auto">Seems similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1527601143" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/17332" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/17332/hovercard" href="https://github.com/denoland/deno/issues/17332">#17332</a>, but given that this is a regression, I thought it warranted a separate issue.</p> <p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1653574308" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/18587" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/18587/hovercard?comment_id=1510189302&amp;comment_type=issue_comment" href="https://github.com/denoland/deno/pull/18587#issuecomment-1510189302">#18587 (comment)</a></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { delay } from &quot;https://deno.land/[email protected]/async/mod.ts&quot; import { serve } from &quot;https://deno.land/[email protected]/http/mod.ts&quot; console.log(Deno.version.deno) const controller = new AbortController() serve(async (request) =&gt; { const { response, socket } = Deno.upgradeWebSocket(request) socket.addEventListener(&quot;open&quot;, async () =&gt; { console.log(&quot;server close&quot;) }) socket.addEventListener(&quot;close&quot;, async () =&gt; { console.log(&quot;server close&quot;) }) socket.addEventListener(&quot;message&quot;, async (event) =&gt; { console.log(&quot;server message&quot;, event.data) await delay(1) // this seems to be important; if commented out, this works on 1.32.4 console.log(&quot;server send&quot;, event.data) socket.send(event.data) }) return response }, { port: 0, signal: controller.signal, onListen: ({ hostname, port }) =&gt; { const ws = new WebSocket(`ws://${hostname}:${port}/`) ws.addEventListener(&quot;open&quot;, () =&gt; { console.log(&quot;client open&quot;) const data = &quot;hello world&quot; ws.send(data) console.log(&quot;client send&quot;, data) }) ws.addEventListener(&quot;message&quot;, (ev) =&gt; { console.log(&quot;client recv&quot;, ev.data) controller.abort() ws.close() }) ws.addEventListener(&quot;close&quot;, () =&gt; { console.log(&quot;client close&quot;) }) }, })"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">delay</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/[email protected]/async/mod.ts"</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">serve</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/[email protected]/http/mod.ts"</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">Deno</span><span class="pl-kos">.</span><span class="pl-c1">version</span><span class="pl-kos">.</span><span class="pl-c1">deno</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">controller</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">AbortController</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-en">serve</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">request</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-kos">{</span> response<span class="pl-kos">,</span> socket <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">upgradeWebSocket</span><span class="pl-kos">(</span><span class="pl-s1">request</span><span class="pl-kos">)</span> <span class="pl-s1">socket</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"open"</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"server close"</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">socket</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"close"</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"server close"</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">socket</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"message"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"server message"</span><span class="pl-kos">,</span> <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-en">delay</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-c">// this seems to be important; if commented out, this works on 1.32.4</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"server send"</span><span class="pl-kos">,</span> <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">)</span> <span class="pl-s1">socket</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">response</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">port</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">signal</span>: <span class="pl-s1">controller</span><span class="pl-kos">.</span><span class="pl-c1">signal</span><span class="pl-kos">,</span> <span class="pl-en">onListen</span>: <span class="pl-kos">(</span><span class="pl-kos">{</span> hostname<span class="pl-kos">,</span> port <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">ws</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">WebSocket</span><span class="pl-kos">(</span><span class="pl-s">`ws://<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">hostname</span><span class="pl-kos">}</span></span>:<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">port</span><span class="pl-kos">}</span></span>/`</span><span class="pl-kos">)</span> <span class="pl-s1">ws</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"open"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"client open"</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s">"hello world"</span> <span class="pl-s1">ws</span><span class="pl-kos">.</span><span class="pl-en">send</span><span class="pl-kos">(</span><span class="pl-s1">data</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">"client send"</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">ws</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"message"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">ev</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"client recv"</span><span class="pl-kos">,</span> <span class="pl-s1">ev</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">)</span> <span class="pl-s1">controller</span><span class="pl-kos">.</span><span class="pl-en">abort</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">ws</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">ws</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">"close"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"client close"</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="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno run -A repro.ts 1.32.3 server close client open client send hello world server message hello world server send hello world client recv hello world server close client close # exits"><pre class="notranslate">$ deno run -A repro.ts 1.32.3 server close client open client send hello world server message hello world server send hello world client recv hello world server close client close <span class="pl-c"><span class="pl-c">#</span> exits</span></pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno run -A repro.ts 1.32.4 server close client open client send hello world server message hello world server send hello world # hangs"><pre class="notranslate">$ deno run -A repro.ts 1.32.4 server close client open client send hello world server message hello world server send hello world <span class="pl-c"><span class="pl-c">#</span> hangs</span></pre></div>
<p dir="auto">For some reason server now only pushes at the same time the browser client pulls something.<br> i use wss, establishing connection works fine, server onMessage works fine, but after using send on the server it just waits and does nothing until next incoming.</p> <p dir="auto">by downgrading to 1.32.3 everything works normal again.</p> <p dir="auto">Sidenote: with firefox websockets are waaaaay slower than with chrome.</p>
1
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>OS Platform and Distribution</strong>: Debian Buster</li> <li><strong>TensorFlow installed from</strong>: source</li> <li><strong>TensorFlow version</strong>: commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/12a628a623a5dae81b8fc699792eaf414e6ace41/hovercard" href="https://github.com/tensorflow/tensorflow/commit/12a628a623a5dae81b8fc699792eaf414e6ace41"><tt>12a628a</tt></a></li> <li><strong>Python version</strong>: 3.5.4</li> <li><strong>Bazel version</strong>: 0.5.4</li> <li><strong>CUDA/cuDNN version</strong>: CUDA 8/CuDNN 6</li> <li><strong>GPU model and memory</strong>: 2xTesla K80 with 12GB each</li> <li><strong>CPU model</strong>: Intel Xeon E5-2683 v4</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2 --copt=-msse4.1 --config=mkl --config=cuda --verbose_failures -k //tensorflow/tools/pip_package:build_pip_package"><pre class="notranslate"><code class="notranslate">bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2 --copt=-msse4.1 --config=mkl --config=cuda --verbose_failures -k //tensorflow/tools/pip_package:build_pip_package </code></pre></div> <p dir="auto">Or</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build -c opt --copt=-march=native --copt=-mfpmath=both --config=mkl --config=cuda --verbose_failures -k //tensorflow/tools/pip_package:build_pip_package"><pre class="notranslate"><code class="notranslate">bazel build -c opt --copt=-march=native --copt=-mfpmath=both --config=mkl --config=cuda --verbose_failures -k //tensorflow/tools/pip_package:build_pip_package </code></pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I'm trying to compile a Tensorflow package specifically optimized for my machine. When I run the compilation with one of the command lines described above, I get some compilation errors. Doesn't matter if I let GCC deciding which optimization to make or if I force them. The kind of errors are always the same:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9220): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9231): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9244): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9255): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9268): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9279): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9292): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9303): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9316): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9327): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9340): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9352): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9365): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9376): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9389): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9401): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9410): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9419): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9428): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9437): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9445): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9454): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9463): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9472): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9481): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9490): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9499): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9508): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9517): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9526): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9535): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9544): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(55): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(63): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(73): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(81): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(91): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(100): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(109): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(117): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(127): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(136): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(145): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(153): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10799): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10811): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10823): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10835): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10847): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10859): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10871): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10883): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10895): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10907): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10919): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10931): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10943): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10955): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10967): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10979): error: argument of type &quot;const void *&quot; is incompatible with parameter of type &quot;const long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10989): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11000): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11009): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11020): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11029): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11040): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11049): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11060): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11069): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11080): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11089): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11100): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;float *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11109): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11120): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11129): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11140): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;double *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11149): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11160): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11169): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11180): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11189): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11200): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11209): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11220): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11229): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11240): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11249): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11260): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;int *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11269): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11280): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11289): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11300): error: argument of type &quot;void *&quot; is incompatible with parameter of type &quot;long long *&quot; 92 errors detected in the compilation of &quot;/tmp/tmpxft_00007482_00000000-7_zero_initializer_op_gpu.cu.cpp1.ii&quot;. ERROR: /opt/tensorflow/tensorflow/contrib/framework/BUILD:88:1: output 'tensorflow/contrib/framework/_objs/python/ops/_variable_ops_gpu/tensorflow/contrib/framework/kernels/zero_initializer_op_gpu.cu.pic.o' was not created ERROR: /opt/tensorflow/tensorflow/contrib/framework/BUILD:88:1: not all outputs were created or valid Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 331.599s, Critical Path: 63.79s FAILED: Build did NOT complete successfully"><pre class="notranslate"><code class="notranslate">/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9220): error: argument of type "const void *" is incompatible with parameter of type "const float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9231): error: argument of type "const void *" is incompatible with parameter of type "const float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9244): error: argument of type "const void *" is incompatible with parameter of type "const double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9255): error: argument of type "const void *" is incompatible with parameter of type "const double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9268): error: argument of type "const void *" is incompatible with parameter of type "const float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9279): error: argument of type "const void *" is incompatible with parameter of type "const float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9292): error: argument of type "const void *" is incompatible with parameter of type "const double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9303): error: argument of type "const void *" is incompatible with parameter of type "const double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9316): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9327): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9340): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9352): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9365): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9376): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9389): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9401): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9410): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9419): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9428): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9437): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9445): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9454): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9463): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9472): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9481): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9490): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9499): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9508): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9517): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9526): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9535): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9544): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(55): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(63): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(73): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(81): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(91): error: argument of type "void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(100): error: argument of type "void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(109): error: argument of type "void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(117): error: argument of type "void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(127): error: argument of type "void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(136): error: argument of type "void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(145): error: argument of type "void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(153): error: argument of type "void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10799): error: argument of type "const void *" is incompatible with parameter of type "const float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10811): error: argument of type "const void *" is incompatible with parameter of type "const float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10823): error: argument of type "const void *" is incompatible with parameter of type "const double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10835): error: argument of type "const void *" is incompatible with parameter of type "const double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10847): error: argument of type "const void *" is incompatible with parameter of type "const float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10859): error: argument of type "const void *" is incompatible with parameter of type "const float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10871): error: argument of type "const void *" is incompatible with parameter of type "const double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10883): error: argument of type "const void *" is incompatible with parameter of type "const double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10895): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10907): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10919): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10931): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10943): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10955): error: argument of type "const void *" is incompatible with parameter of type "const int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10967): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10979): error: argument of type "const void *" is incompatible with parameter of type "const long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10989): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11000): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11009): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11020): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11029): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11040): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11049): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11060): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11069): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11080): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11089): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11100): error: argument of type "void *" is incompatible with parameter of type "float *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11109): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11120): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11129): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11140): error: argument of type "void *" is incompatible with parameter of type "double *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11149): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11160): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11169): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11180): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11189): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11200): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11209): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11220): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11229): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11240): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11249): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11260): error: argument of type "void *" is incompatible with parameter of type "int *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11269): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11280): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11289): error: argument of type "void *" is incompatible with parameter of type "long long *" /usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11300): error: argument of type "void *" is incompatible with parameter of type "long long *" 92 errors detected in the compilation of "/tmp/tmpxft_00007482_00000000-7_zero_initializer_op_gpu.cu.cpp1.ii". ERROR: /opt/tensorflow/tensorflow/contrib/framework/BUILD:88:1: output 'tensorflow/contrib/framework/_objs/python/ops/_variable_ops_gpu/tensorflow/contrib/framework/kernels/zero_initializer_op_gpu.cu.pic.o' was not created ERROR: /opt/tensorflow/tensorflow/contrib/framework/BUILD:88:1: not all outputs were created or valid Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 331.599s, Critical Path: 63.79s FAILED: Build did NOT complete successfully </code></pre></div> <p dir="auto">Am I using a wrong command line or is it a bug in the compilation process?</p> <p dir="auto">Thanks in advance for any help.</p>
<p dir="auto">Hello Tensorflow Community,</p> <p dir="auto">I just wanted to kick start a discussions on creating an official docker image for Tensorflow. So going in line with creating common framework for machine learning related researchers and developers to rally around, and given the onslaught on software containers, I think creating a common Tensorflow image would also help in the same regard.</p> <p dir="auto">I'd normally make a more detailed proposal as I did for a cuda docker image <a href="https://devtalk.nvidia.com/default/topic/858201/official-docker-image-for-cuda-/?" rel="nofollow">here</a>, but my goal right now is just to facilitate a discussion. I know there are many technical issues thanks in part to heavy use of GPUs and driver dependencies, but it looks like Nvidia is making some progress on that front: <a href="https://github.com/NVIDIA/nvidia-docker">NVIDIA/nvidia-docker</a>.</p> <p dir="auto">So if you like the idea or have some ideas/drafts, please chime in.</p>
0
<p dir="auto">GlideApp<br> .with(myFragment)<br> .load(url)<br> .centerCrop()<br> .placeholder(R.drawable.loading_spinner)<br> .into(myImageView);</p> <p dir="auto">implementation 'com.github.bumptech.glide:glide:4.4.0'<br> annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'</p> <p dir="auto">no find GlideApp</p>
<p dir="auto">Hi, I load a gif image from local<br> The gif:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/6c3b94c4cc9b0226ecd5a79e0b6a830396e5a33ba6fd9965f10c01044add6267/687474703a2f2f66696c652e62616978696e672e6e65742f3230313531312f34306466633136613739363566666638356263366636656132643835346631372e676966"><img src="https://camo.githubusercontent.com/6c3b94c4cc9b0226ecd5a79e0b6a830396e5a33ba6fd9965f10c01044add6267/687474703a2f2f66696c652e62616978696e672e6e65742f3230313531312f34306466633136613739363566666638356263366636656132643835346631372e676966" alt="Image" data-animated-image="" data-canonical-src="http://file.baixing.net/201511/40dfc16a7965fff85bc6f6ea2d854f17.gif" style="max-width: 100%;"></a><br> and other gifs:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/02ea05b1846f41841d372c0f2c1c847d7f3d477f661477434c389c7193b8308f/687474703a2f2f66696c652e62616978696e672e6e65742f3230313531312f35396161306361306331643063333330393833613131306436303566663934302e676966"><img src="https://camo.githubusercontent.com/02ea05b1846f41841d372c0f2c1c847d7f3d477f661477434c389c7193b8308f/687474703a2f2f66696c652e62616978696e672e6e65742f3230313531312f35396161306361306331643063333330393833613131306436303566663934302e676966" alt="Image" data-animated-image="" data-canonical-src="http://file.baixing.net/201511/59aa0ca0c1d0c330983a110d605ff940.gif" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/280c80d77b41f67895d581acad3a3cfe83b8ddcfd679ea4a15bb5b72de131004/687474703a2f2f66696c652e62616978696e672e6e65742f3230313531312f30383034303862616339353739613037353030633231326534306262393665652e676966"><img src="https://camo.githubusercontent.com/280c80d77b41f67895d581acad3a3cfe83b8ddcfd679ea4a15bb5b72de131004/687474703a2f2f66696c652e62616978696e672e6e65742f3230313531312f30383034303862616339353739613037353030633231326534306262393665652e676966" alt="Image" data-animated-image="" data-canonical-src="http://file.baixing.net/201511/080408bac9579a07500c212e40bb96ee.gif" style="max-width: 100%;"></a></p> <p dir="auto">I use<br> <code class="notranslate">int source = R.drawble.xxx;</code><br> <code class="notranslate">Glide.with(this).load(source).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(imageView);</code><br> to load those Gifs</p> <p dir="auto">But I find the gif1 and gif2 can't display very well, though the gif can display on the phone, but it flick(flash , twinkle, glint sorry I'm not a English speaker, I don't know how to express it well, all in all the Gif1 and Gif2 in glide are not playing well, It seems that the last frame doesn't disappear)</p> <p dir="auto">However the 3rd Gif is normal.</p> <p dir="auto">I'm confused about the question, I try many gifs and find it seems that when the gif's background is transparent it will appear(not for all, just some of them)</p> <p dir="auto">I use Glide 3.6.1<br> and also find this problem in 3.7.0</p> <p dir="auto">But when I choose another gif lib like:<br> <a href="https://github.com/koral--/android-gif-drawable">koral--/android-gif-drawable</a><br> it display all gifs very well.</p> <p dir="auto">So I help to solve this problem.<br> Thank you very much!</p>
0
<p dir="auto">Hi,</p> <p dir="auto">the albert tokenizer implements the <code class="notranslate">convert_tokens_to_string</code> function:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/huggingface/transformers/blob/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182/src/transformers/models/albert/tokenization_albert.py#L222-L223">transformers/src/transformers/models/albert/tokenization_albert.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 222 to 223 in <a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182">ba0d50f</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="L222" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="222"></td> <td id="LC222" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out_string</span> <span class="pl-c1">=</span> <span class="pl-s">""</span>.<span class="pl-en">join</span>(<span class="pl-s1">tokens</span>).<span class="pl-en">replace</span>(<span class="pl-v">SPIECE_UNDERLINE</span>, <span class="pl-s">" "</span>).<span class="pl-en">strip</span>() </td> </tr> <tr class="border-0"> <td id="L223" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="223"></td> <td id="LC223" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">out_string</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">While the deberta v2 and some other tokenizer just delegate this to the sentencepiece tokenizer:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/huggingface/transformers/blob/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182/src/transformers/models/deberta_v2/tokenization_deberta_v2.py#L146">transformers/src/transformers/models/deberta_v2/tokenization_deberta_v2.py</a> </p> <p class="mb-0 color-fg-muted"> Line 146 in <a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182">ba0d50f</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="L146" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="146"></td> <td id="LC146" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_tokenizer</span>.<span class="pl-en">decode</span>(<span class="pl-s1">tokens</span>) </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">IMO it would be better to always delegate to the sentencepiece tokenizer. What do you think?</p> <h2 dir="auto">PS:</h2> <p dir="auto">Some more examples here</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/huggingface/transformers/blob/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182/src/transformers/models/barthez/tokenization_barthez.py#L251-L252">transformers/src/transformers/models/barthez/tokenization_barthez.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 251 to 252 in <a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182">ba0d50f</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="L251" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="251"></td> <td id="LC251" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out_string</span> <span class="pl-c1">=</span> <span class="pl-s">""</span>.<span class="pl-en">join</span>(<span class="pl-s1">tokens</span>).<span class="pl-en">replace</span>(<span class="pl-v">SPIECE_UNDERLINE</span>, <span class="pl-s">" "</span>).<span class="pl-en">strip</span>() </td> </tr> <tr class="border-0"> <td id="L252" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="252"></td> <td id="LC252" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">out_string</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/huggingface/transformers/blob/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182/src/transformers/models/camembert/tokenization_camembert.py#L251-L252">transformers/src/transformers/models/camembert/tokenization_camembert.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 251 to 252 in <a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182">ba0d50f</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="L251" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="251"></td> <td id="LC251" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out_string</span> <span class="pl-c1">=</span> <span class="pl-s">""</span>.<span class="pl-en">join</span>(<span class="pl-s1">tokens</span>).<span class="pl-en">replace</span>(<span class="pl-v">SPIECE_UNDERLINE</span>, <span class="pl-s">" "</span>).<span class="pl-en">strip</span>() </td> </tr> <tr class="border-0"> <td id="L252" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="252"></td> <td id="LC252" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">out_string</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/huggingface/transformers/blob/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182/src/transformers/models/m2m_100/tokenization_m2m_100.py#L187-L188">transformers/src/transformers/models/m2m_100/tokenization_m2m_100.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 187 to 188 in <a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182">ba0d50f</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="L187" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="187"></td> <td id="LC187" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out_string</span> <span class="pl-c1">=</span> <span class="pl-s">""</span>.<span class="pl-en">join</span>(<span class="pl-s1">tokens</span>).<span class="pl-en">replace</span>(<span class="pl-v">SPIECE_UNDERLINE</span>, <span class="pl-s">" "</span>).<span class="pl-en">strip</span>() </td> </tr> <tr class="border-0"> <td id="L188" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="188"></td> <td id="LC188" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">out_string</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/huggingface/transformers/blob/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182/src/transformers/models/mbart/tokenization_mbart50.py#L208-L209">transformers/src/transformers/models/mbart/tokenization_mbart50.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 208 to 209 in <a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182">ba0d50f</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="L208" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="208"></td> <td id="LC208" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out_string</span> <span class="pl-c1">=</span> <span class="pl-s">""</span>.<span class="pl-en">join</span>(<span class="pl-s1">tokens</span>).<span class="pl-en">replace</span>(<span class="pl-v">SPIECE_UNDERLINE</span>, <span class="pl-s">" "</span>).<span class="pl-en">strip</span>() </td> </tr> <tr class="border-0"> <td id="L209" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="209"></td> <td id="LC209" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">out_string</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/huggingface/transformers/blob/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182/src/transformers/models/speech_to_text/tokenization_speech_to_text.py#L169-L173">transformers/src/transformers/models/speech_to_text/tokenization_speech_to_text.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 169 to 173 in <a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182">ba0d50f</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="L169" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="169"></td> <td id="LC169" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out_string</span> <span class="pl-c1">=</span> <span class="pl-s">""</span>.<span class="pl-en">join</span>(<span class="pl-s1">tokens</span>).<span class="pl-en">replace</span>(<span class="pl-v">SPIECE_UNDERLINE</span>, <span class="pl-s">" "</span>).<span class="pl-en">strip</span>() </td> </tr> <tr class="border-0"> <td id="L170" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="170"></td> <td id="LC170" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L171" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="171"></td> <td id="LC171" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">do_upper_case</span>: </td> </tr> <tr class="border-0"> <td id="L172" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="172"></td> <td id="LC172" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out_string</span> <span class="pl-c1">=</span> <span class="pl-s1">out_string</span>.<span class="pl-en">upper</span>() </td> </tr> <tr class="border-0"> <td id="L173" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="173"></td> <td id="LC173" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">out_string</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/huggingface/transformers/blob/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182/src/transformers/models/xlm_prophetnet/tokenization_xlm_prophetnet.py#L264-L265">transformers/src/transformers/models/xlm_prophetnet/tokenization_xlm_prophetnet.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 264 to 265 in <a data-pjax="true" class="commit-tease-sha" href="/huggingface/transformers/commit/ba0d50f2148f0db0e04a80cddb1f57ce0c91c182">ba0d50f</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="L264" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="264"></td> <td id="LC264" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">out_string</span> <span class="pl-c1">=</span> <span class="pl-s">""</span>.<span class="pl-en">join</span>(<span class="pl-s1">tokens</span>).<span class="pl-en">replace</span>(<span class="pl-v">SPIECE_UNDERLINE</span>, <span class="pl-s">" "</span>).<span class="pl-en">strip</span>() </td> </tr> <tr class="border-0"> <td id="L265" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="265"></td> <td id="LC265" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">out_string</span> </td> </tr> </tbody></table> </div> </div> <p></p>
<h3 dir="auto">System Info</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="When I finetuned the text classification model based on the glue no trainer script, I found a bug in our script. The URL is below: https://github.com/huggingface/transformers/blob/main/examples/pytorch/text-classification/run_glue_no_trainer.py#L525 When we use the accelerator for multi-GPU training, the code should transfer from if step == len(eval_dataloader) to if step == len(eval_dataloader) -1 Otherwise, it cannot work to filter the last step duplicated samples."><pre class="notranslate">When I finetuned the text classification model based on the glue no trainer script, I found a bug <span class="pl-k">in</span> our script. The URL is below: https://github.com/huggingface/transformers/blob/main/examples/pytorch/text-classification/run_glue_no_trainer.py#L525 When we use the accelerator <span class="pl-k">for</span> multi-GPU training, the code should transfer from <span class="pl-k">if</span> step == len(eval_dataloader) to <span class="pl-k">if</span> step == len(eval_dataloader) -1 Otherwise, it cannot work to filter the last step duplicated samples.</pre></div> <h3 dir="auto">Who can help?</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <p dir="auto">just run the script with a text classification using multi-GPU accelerator. The problem occurs in the last step for duplicated samples.</p> <h3 dir="auto">Expected behavior</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="I think it should be fixed soon."><pre class="notranslate">I think it should be fixed soon.</pre></div>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 18363.900 PowerToys version: 0.19.2 PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: 18363.900 PowerToys version: 0.19.2 PowerToy module for which you are reporting the bug (if applicable): FancyZones </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Use FancyZones' window arrangement utility by holding Shift while dragging a window. This might be specific to using a custom layout, I don't know yet.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">If you specify more or less than the default space around zones, that is how it should appear when you use FancyZones. It should retain the same behavior.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">After some time of using Windows, the space around zones gets reset to the default, 16. The layout options also shows that the space around zones has been reset.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/61938331/88460463-6126a800-ce6a-11ea-98d9-9bb42a1699db.png"><img src="https://user-images.githubusercontent.com/61938331/88460463-6126a800-ce6a-11ea-98d9-9bb42a1699db.png" alt="image" style="max-width: 100%;"></a><br> Just to highlight the option I am referencing, I will provide more clarification if there is any confusion.</p>
<h2 dir="auto">📝 A Window Tiling Extension.</h2> <p dir="auto">Some of us really like Tiling Window Managers, like i3, but it would be great if there was a powertoy to auto-tile windows when enabled, like the Pop!_OS 20.04 'Tile Windows' Feature. It would be great if this would be implemented in a later version, it would be great to see before 1.0. 👍</p> <hr> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
0
<p dir="auto">When you click on the triple horizontal lines to un-collapse the topbar then go back to a full size window and try to open a dropdown, the dropdown no longer opens.</p> <p dir="auto">To see the issue occur in jsfiddle, you will probably need two monitors, because it does not got from the mobile nav to the desktop nav.</p> <p dir="auto"><a href="http://jsfiddle.net/mzYsq/" rel="nofollow">http://jsfiddle.net/mzYsq/</a></p>
<p dir="auto">This is when enabling the responsive grid framework. I have this code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;navbar navbar-fixed-top&quot;&gt; &lt;div class=&quot;navbar-inner&quot;&gt; &lt;div class=&quot;container&quot;&gt; &lt;a class=&quot;btn btn-navbar&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.nav-collapse&quot;&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;/a&gt; &lt;a class=&quot;brand&quot; href=&quot;#&quot;&gt;acme&lt;/a&gt; &lt;!-- Everything here will be hidden below 940px --&gt; &lt;div class=&quot;nav-collapse&quot;&gt; &lt;ul class=&quot;nav&quot;&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Tools&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;ul class=&quot;nav pull-right&quot;&gt; &lt;li class=&quot;dropdown&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&gt;My Account &lt;b class=&quot;caret&quot;&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class=&quot;dropdown-menu&quot;&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;My Profile&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;My Galleries&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;My Images&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Logout&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="navbar navbar-fixed-top"&gt; &lt;div class="navbar-inner"&gt; &lt;div class="container"&gt; &lt;a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&gt; &lt;span class="icon-bar"&gt;&lt;/span&gt; &lt;span class="icon-bar"&gt;&lt;/span&gt; &lt;span class="icon-bar"&gt;&lt;/span&gt; &lt;/a&gt; &lt;a class="brand" href="#"&gt;acme&lt;/a&gt; &lt;!-- Everything here will be hidden below 940px --&gt; &lt;div class="nav-collapse"&gt; &lt;ul class="nav"&gt; &lt;li&gt;&lt;a href="#"&gt;Gallery&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Tools&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;ul class="nav pull-right"&gt; &lt;li class="dropdown"&gt; &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;My Account &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt;&lt;a href="#"&gt;My Profile&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;My Galleries&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;My Images&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Logout&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre></div>
1
<p dir="auto">I have a Symfony 2.6 project that uses the Symfony3 directory structure. When I clear/warmup for the first time the compiled DI container contains the wrong cache directory. E.g:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'kernel.cache_dir' =&gt; (dirname(dirname(dirname(__DIR__))).'/app/../var/cache/de_'),"><pre class="notranslate"><code class="notranslate">'kernel.cache_dir' =&gt; (dirname(dirname(dirname(__DIR__))).'/app/../var/cache/de_'), </code></pre></div> <p dir="auto">While I have set my environment as "dev", not as "de_". This causes all sorts of problems and causes the application to fail due to missing directories.</p>
<p dir="auto">I just upgraded project to 2.6.1 from 2.5.8.</p> <p dir="auto">Running <code class="notranslate">php bin/console cache:clear</code> for a second time fails. <strong>Its reproducible with vanilla installation.</strong> Here is the screenshot:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d0d7f3d0182d5426079d9c4441ee4ced94c4c5513f1756ce1d8717315ad71482/687474703a2f2f692e696d6775722e636f6d2f423165433469412e706e67"><img src="https://camo.githubusercontent.com/d0d7f3d0182d5426079d9c4441ee4ced94c4c5513f1756ce1d8717315ad71482/687474703a2f2f692e696d6775722e636f6d2f423165433469412e706e67" alt="26" data-canonical-src="http://i.imgur.com/B1eC4iA.png" style="max-width: 100%;"></a></p> <p dir="auto">I'm running these commands on Ubuntu 14.10, it also reproducible with (production servers) Debian Wheezy 7.6 with <code class="notranslate">SYMFONY_ENV=prod</code>.</p> <p dir="auto"><a href="https://twitter.com/oungur/status/541187828827578369" rel="nofollow">https://twitter.com/oungur/status/541187828827578369</a></p>
1
<h1 dir="auto">Weekly Report of Dubbo</h1> <p dir="auto">This is a weekly report of Dubbo. It summarizes what have changed in the project during the passed week, including pr merged, new contributors, and more things in the future.<br> It is all done by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dubbo-bot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dubbo-bot">@dubbo-bot</a> which is a collaborate robot.</p> <h2 dir="auto">Repo Overview</h2> <h3 dir="auto">Basic data</h3> <p dir="auto">Baisc data shows how the watch, star, fork and contributors count changed in the passed week.</p> <table role="table"> <thead> <tr> <th align="center">Watch</th> <th align="center">Star</th> <th align="center">Fork</th> <th align="center">Contributors</th> </tr> </thead> <tbody> <tr> <td align="center">3195</td> <td align="center">25700 (↑170)</td> <td align="center">14483 (↑86)</td> <td align="center">189 (↑1)</td> </tr> </tbody> </table> <h3 dir="auto">Issues &amp; PRs</h3> <p dir="auto">Issues &amp; PRs show the new/closed issues/pull requests count in the passed week.</p> <table role="table"> <thead> <tr> <th align="center">New Issues</th> <th align="center">Closed Issues</th> <th align="center">New PR</th> <th align="center">Merged PR</th> </tr> </thead> <tbody> <tr> <td align="center">25</td> <td align="center">14</td> <td align="center">24</td> <td align="center">13</td> </tr> </tbody> </table> <h2 dir="auto">PR Overview</h2> <p dir="auto">Thanks to contributions from community, Dubbo team merged <strong>13</strong> pull requests in the repository last week. They are:</p> <ul dir="auto"> <li>Complete xsd definition for ConfigCenterConfig. (<a href="https://github.com/apache/incubator-dubbo/pull/3854" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3854/hovercard">#3854</a>)</li> <li>Fix typo (<a href="https://github.com/apache/incubator-dubbo/pull/3839" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3839/hovercard">#3839</a>)</li> <li>Fix issue 3785 (<a href="https://github.com/apache/incubator-dubbo/pull/3824" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3824/hovercard">#3824</a>)</li> <li>polish code (<a href="https://github.com/apache/incubator-dubbo/pull/3823" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3823/hovercard">#3823</a>)</li> <li>polish code (<a href="https://github.com/apache/incubator-dubbo/pull/3820" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3820/hovercard">#3820</a>)</li> <li>polish code and fix some documentation errors (<a href="https://github.com/apache/incubator-dubbo/pull/3818" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3818/hovercard">#3818</a>)</li> <li>RpcContext新增remoteApplicationName字段 (<a href="https://github.com/apache/incubator-dubbo/pull/3816" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3816/hovercard">#3816</a>)</li> <li>[Dubbo-3812] fixed some small problems (<a href="https://github.com/apache/incubator-dubbo/pull/3811" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3811/hovercard">#3811</a>)</li> <li>[Dubbo-3804] Update nacos client to 1.0.0-RC3 (<a href="https://github.com/apache/incubator-dubbo/pull/3810" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3810/hovercard">#3810</a>)</li> <li>Update README.md (<a href="https://github.com/apache/incubator-dubbo/pull/3808" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3808/hovercard">#3808</a>)</li> <li>remove duplicate code (<a href="https://github.com/apache/incubator-dubbo/pull/3807" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3807/hovercard">#3807</a>)</li> <li>Add JSON-RPC protocol (<a href="https://github.com/apache/incubator-dubbo/pull/3786" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3786/hovercard">#3786</a>)</li> <li>Merge dubbo-serialization-avro into incubator-dubbo <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="423320843" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3708" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3708/hovercard" href="https://github.com/apache/dubbo/issues/3708">#3708</a> (<a href="https://github.com/apache/incubator-dubbo/pull/3717" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3717/hovercard">#3717</a>)</li> </ul> <h2 dir="auto">Code Review Statistics</h2> <p dir="auto">Dubbo encourages everyone to participant in code review, in order to improve software quality. Every week <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dubbo-bot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dubbo-bot">@dubbo-bot</a> would automatically help to count pull request reviews of single github user as the following. So, try to help review code in this project.</p> <table role="table"> <thead> <tr> <th align="center">Contributor ID</th> <th align="center">Pull Request Reviews</th> </tr> </thead> <tbody> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ralf0131/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ralf0131">@ralf0131</a></td> <td align="center">25</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chickenlj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chickenlj">@chickenlj</a></td> <td align="center">7</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chenlushun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chenlushun">@chenlushun</a></td> <td align="center">7</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/beiwei30/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/beiwei30">@beiwei30</a></td> <td align="center">4</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/htynkn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/htynkn">@htynkn</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CrazyHZM/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CrazyHZM">@CrazyHZM</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kexianjun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kexianjun">@kexianjun</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nzomkxia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nzomkxia">@nzomkxia</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lexburner/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lexburner">@lexburner</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Jeff-Lv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Jeff-Lv">@Jeff-Lv</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/moriadry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/moriadry">@moriadry</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kezhenxu94/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kezhenxu94">@kezhenxu94</a></td> <td align="center">1</td> </tr> </tbody> </table> <h2 dir="auto">Contributors Overview</h2> <p dir="auto">It is Dubbo team's great honor to have new contributors from community. We really appreciate your contributions. Feel free to tell us if you have any opinion and please share this open source project with more people if you could. If you hope to be a contributor as well, please start from <a href="https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md">https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md</a> .<br> Here is the list of new contributors:</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rupertw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rupertw">@rupertw</a></p> <p dir="auto">Thanks to you all.</p> <p dir="auto"><em>Note: This robot is supported by <a href="https://github.com/AlibabaDR/Collabobot">Collabobot</a>.</em></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/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.1</li> <li>Operating System version: xxx</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">Our project reference class 'com.alibaba.dubbo.rpc.RpcInvocation'. But this class is not included in module 'dubbo-compatible'.<br> It will help us a lot if class 'com.alibaba.dubbo.rpc.RpcInvocation' may be added to module 'dubbo-compatible'.</p>
0
<p dir="auto">It seems the <code class="notranslate">Button</code> is no longer lives in <code class="notranslate">material-ui/Button</code> for <code class="notranslate">v1.0.0-beta.9</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> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">In document <a href="https://material-ui-1dab0.firebaseapp.com/demos/buttons/" rel="nofollow">Buttons</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Button from 'material-ui/Buttons'"><pre class="notranslate"><code class="notranslate">import Button from 'material-ui/Buttons' </code></pre></div> <p dir="auto">now have changed into</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import FlatButton from 'material-ui/FlatButton' import RaisedButton from 'material-ui/RaisedButton'"><pre class="notranslate"><code class="notranslate">import FlatButton from 'material-ui/FlatButton' import RaisedButton from 'material-ui/RaisedButton' </code></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">when import from <code class="notranslate">material-ui/Button</code>, will report Module not found</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>import Button from 'material-ui/Button';</li> <li>Webpack will complain cannot find module.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">n/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>^0.19.1</td> </tr> <tr> <td>React</td> <td>^15.6.1</td> </tr> <tr> <td>browser</td> <td>n/a</td> </tr> <tr> <td>etc</td> <td>n/a</td> </tr> </tbody> </table>
<p dir="auto">Typescript throws error when trying to add the theme attribute / prop to the MuiThemeProvider component.</p> <ul dir="auto"> <li>[x ] 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> <h2 dir="auto">Expected Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const theme = getMuiTheme(#themefile); &lt;MuiThemeProvider theme={theme}&gt; ........"><pre class="notranslate"><code class="notranslate">const theme = getMuiTheme(#themefile); &lt;MuiThemeProvider theme={theme}&gt; ........ </code></pre></div> <p dir="auto">Should wrap the child components with the specified theme</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Typescript error:</p> <p dir="auto"><code class="notranslate">[ts] Property 'theme' does not exist on type 'IntrinsicAttributes &amp; IntrinsicClassAttributes&lt;MuiThemeProvider&gt;</code></p> <h2 dir="auto">Context</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>0.19.4</td> </tr> <tr> <td>React</td> <td>16.1.1</td> </tr> <tr> <td>browser</td> <td>All</td> </tr> <tr> <td>Typescript</td> <td>2.6.1</td> </tr> <tr> <td><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/types/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/types">@types</a></td> <td>0.18.4</td> </tr> </tbody> </table>
0
<p dir="auto">From time to time I see release notes for wrong version. Not sure is chocolatey bug of atom itself.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/475312/4859002/844b1260-60e5-11e4-85c2-63952a06702b.png"><img src="https://cloud.githubusercontent.com/assets/475312/4859002/844b1260-60e5-11e4-85c2-63952a06702b.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I use Atom on two different machines and I'm seeing anomalies when looking at the release notes. On one of my machines the release notes are always blank with only a button showing to view previous release notes. On the other machine the release notes are old. Here is a current screenshot but keep in mind this isn't the only time the release notes have been outdated compared to the release I was using.</p> <p dir="auto">Currently using Atom 0.136 on Windows 8.1 (on two different systems).</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/190154/4561202/e6b3c3f4-4efa-11e4-917c-87407b1d7419.png"><img src="https://cloud.githubusercontent.com/assets/190154/4561202/e6b3c3f4-4efa-11e4-917c-87407b1d7419.png" alt="atom-release-notes-problem" style="max-width: 100%;"></a></p>
1
<p dir="auto">On Ubuntu 16.04, Python 3.6.2 and PyTorch 0.2.0, it's possible to force a <code class="notranslate">free() on invalid pointer</code> segfault by first doing <code class="notranslate">import zmq</code> then <code class="notranslate">import torch</code>.<br> <em>(Originally, I had this problem when trying to import pytorch into a Jupyter notebook, then proceeded to narrow the problem down to just importing zmq in a plain python3 interpreter).</em></p> <p dir="auto">For reproducability, I've created a gist containing a Dockerfile and script:<br> <a href="https://gist.github.com/rh314/bef5152b655286a8138edd7666789807">https://gist.github.com/rh314/bef5152b655286a8138edd7666789807</a><br> (I managed to reproduce the crash with the above scripts)</p> <p dir="auto">The crash typically looks as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="*** Error in `python3': free(): invalid pointer: 0x00007f98524c1b80 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f986429c7e5] /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f98642a537a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f98642a953c] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6locale5_Impl16_M_install_facetEPKNS_2idEPKNS_5facetE+0x142)[0x7f985225b802] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6locale5_ImplC2Em+0x1e3)[0x7f985225d953] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6locale18_S_initialize_onceEv+0x15)[0x7f985225e8c5] /lib/x86_64-linux-gnu/libpthread.so.0(+0xea99)[0x7f98645fda99] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6locale13_S_initializeEv+0x21)[0x7f985225e911] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6localeC1Ev+0x13)[0x7f985225e953] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt8ios_base4InitC1Ev+0xb4)[0x7f98522301b4] /usr/local/lib/python3.6/site-packages/torch/lib/libcusparse-652fe42d.so.7.5.18(+0x2a5a14)[0x7f982ee0ba14] /usr/local/lib/python3.6/site-packages/torch/lib/libcusparse-652fe42d.so.7.5.18(+0x2a6aa3)[0x7f982ee0caa3] /usr/local/lib/python3.6/site-packages/torch/lib/libcusparse-652fe42d.so.7.5.18(+0x335026)[0x7f982ee9b026]"><pre class="notranslate"><code class="notranslate">*** Error in `python3': free(): invalid pointer: 0x00007f98524c1b80 *** ======= Backtrace: ========= /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f986429c7e5] /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f98642a537a] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f98642a953c] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6locale5_Impl16_M_install_facetEPKNS_2idEPKNS_5facetE+0x142)[0x7f985225b802] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6locale5_ImplC2Em+0x1e3)[0x7f985225d953] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6locale18_S_initialize_onceEv+0x15)[0x7f985225e8c5] /lib/x86_64-linux-gnu/libpthread.so.0(+0xea99)[0x7f98645fda99] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6locale13_S_initializeEv+0x21)[0x7f985225e911] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt6localeC1Ev+0x13)[0x7f985225e953] /usr/local/lib/python3.6/site-packages/torch/lib/libshm.so(_ZNSt8ios_base4InitC1Ev+0xb4)[0x7f98522301b4] /usr/local/lib/python3.6/site-packages/torch/lib/libcusparse-652fe42d.so.7.5.18(+0x2a5a14)[0x7f982ee0ba14] /usr/local/lib/python3.6/site-packages/torch/lib/libcusparse-652fe42d.so.7.5.18(+0x2a6aa3)[0x7f982ee0caa3] /usr/local/lib/python3.6/site-packages/torch/lib/libcusparse-652fe42d.so.7.5.18(+0x335026)[0x7f982ee9b026] </code></pre></div>
<p dir="auto">The following code snippet crashes python3:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Error torch is not defined etc. Can insert any code snippet that tries to reference torch. torch.zeros(5) # Python3 crashes import torch "><pre class="notranslate"><code class="notranslate"># Error torch is not defined etc. Can insert any code snippet that tries to reference torch. torch.zeros(5) # Python3 crashes import torch </code></pre></div> <p dir="auto">The error I get is the following:</p> <blockquote> <p dir="auto">*** Error in `python3': free(): invalid pointer: 0x00007faba101fb80 ***</p> </blockquote> <p dir="auto">I've tested it on multiple computer and get the same result. This is not the case for any other packages I've tried.</p> <p dir="auto">Edit: This is the full error message:</p> <blockquote> <p dir="auto">*** Error in `python3': free(): invalid pointer: 0x00007fc39a4cfb80 ***<br> ======= Backtrace: =========<br> /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fc3b518a7e5]<br> /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7fc3b519337a]<br> /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fc3b519753c]<br> /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so(_ZNSt6locale5_Impl16_M_install_facetEPKNS_2idEPKNS_5facetE+0x142)[0x7fc39a269802]<br> /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so(_ZNSt6locale5_ImplC2Em+0x1e3)[0x7fc39a26b953]<br> /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so(_ZNSt6locale18_S_initialize_onceEv+0x15)[0x7fc39a26c8c5]<br> /lib/x86_64-linux-gnu/libpthread.so.0(+0xea99)[0x7fc3b54eba99]<br> /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so(_ZNSt6locale13_S_initializeEv+0x21)[0x7fc39a26c911]<br> /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so(_ZNSt6localeC1Ev+0x13)[0x7fc39a26c953]<br> /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so(_ZNSt8ios_base4InitC1Ev+0xb4)[0x7fc39a23e1b4]<br> /usr/local/lib/python3.5/dist-packages/torch/lib/libcusparse-94011b8d.so.8.0.61(+0x2f85b4)[0x7fc36a7265b4]<br> /usr/local/lib/python3.5/dist-packages/torch/lib/libcusparse-94011b8d.so.8.0.61(+0x2f8703)[0x7fc36a726703]<br> /usr/local/lib/python3.5/dist-packages/torch/lib/libcusparse-94011b8d.so.8.0.61(+0x393cc6)[0x7fc36a7c1cc6]<br> ======= Memory map: ========<br> 00400000-007a8000 r-xp 00000000 fd:00 55837916 /usr/bin/python3.5<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/009a80004d710332c61144f81c916da0e2b672c6/hovercard" href="https://github.com/pytorch/pytorch/commit/009a80004d710332c61144f81c916da0e2b672c6"><tt>009a800</tt></a>-009aa000 r--p 003a8000 fd:00 55837916 /usr/bin/python3.5<br> 009aa000-00a41000 rw-p 003aa000 fd:00 55837916 /usr/bin/python3.5<br> 00a41000-00a72000 rw-p 00000000 00:00 0<br> 023d3000-02aba000 rw-p 00000000 00:00 0 [heap]<br> 7fc364000000-7fc364021000 rw-p 00000000 00:00 0<br> 7fc364021000-7fc368000000 ---p 00000000 00:00 0<br> 7fc36a42e000-7fc36cd1f000 r-xp 00000000 fd:00 59902941 /usr/local/lib/python3.5/dist-packages/torch/lib/libcusparse-94011b8d.so.8.0.61<br> 7fc36cd1f000-7fc36cf1f000 ---p 028f1000 fd:00 59902941 /usr/local/lib/python3.5/dist-packages/torch/lib/libcusparse-94011b8d.so.8.0.61<br> 7fc36cf1f000-7fc36cf38000 rw-p 028f1000 fd:00 59902941 /usr/local/lib/python3.5/dist-packages/torch/lib/libcusparse-94011b8d.so.8.0.61<br> 7fc36cf38000-7fc36cf49000 rw-p 00000000 00:00 0<br> 7fc36cf49000-7fc36cf4e000 rw-p 0290b000 fd:00 59902941 /usr/local/lib/python3.5/dist-packages/torch/lib/libcusparse-94011b8d.so.8.0.61<br> 7fc36cf4e000-7fc36f3e9000 r-xp 00000000 fd:00 59902956 /usr/local/lib/python3.5/dist-packages/torch/lib/libcurand-3d68c345.so.8.0.61<br> 7fc36f3e9000-7fc36f5e9000 ---p 0249b000 fd:00 59902956 /usr/local/lib/python3.5/dist-packages/torch/lib/libcurand-3d68c345.so.8.0.61<br> 7fc36f5e9000-7fc3709ba000 rw-p 0249b000 fd:00 59902956 /usr/local/lib/python3.5/dist-packages/torch/lib/libcurand-3d68c345.so.8.0.61<br> 7fc3709ba000-7fc370ec4000 rw-p 00000000 00:00 0<br> 7fc370ec4000-7fc370ec5000 rw-p <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/0386d000947b048d7fc52dc893f5cd89990c73a6/hovercard" href="https://github.com/pytorch/pytorch/commit/0386d000947b048d7fc52dc893f5cd89990c73a6"><tt>0386d00</tt></a> fd:00 59902956 /usr/local/lib/python3.5/dist-packages/torch/lib/libcurand-3d68c345.so.8.0.61<br> 7fc370ec5000-7fc373cdd000 r-xp 00000000 fd:00 59902953 /usr/local/lib/python3.5/dist-packages/torch/lib/libcublas-e78c880d.so.8.0.88<br> 7fc373cdd000-7fc373edd000 ---p 02e18000 fd:00 59902953 /usr/local/lib/python3.5/dist-packages/torch/lib/libcublas-e78c880d.so.8.0.88<br> 7fc373edd000-7fc373efb000 rw-p 02e18000 fd:00 59902953 /usr/local/lib/python3.5/dist-packages/torch/lib/libcublas-e78c880d.so.8.0.88<br> 7fc373efb000-7fc373f0a000 rw-p 00000000 00:00 0<br> 7fc373f0a000-7fc373f0d000 rw-p 02e36000 fd:00 59902953 /usr/local/lib/python3.5/dist-packages/torch/lib/libcublas-e78c880d.so.8.0.88<br> 7fc373f0d000-7fc373f22000 r-xp 00000000 fd:00 59902949 /usr/local/lib/python3.5/dist-packages/torch/lib/libgomp-ae56ecdc.so.1.0.0<br> 7fc373f22000-7fc374121000 ---p 00015000 fd:00 59902949 /usr/local/lib/python3.5/dist-packages/torch/lib/libgomp-ae56ecdc.so.1.0.0<br> 7fc374121000-7fc374124000 rw-p 00014000 fd:00 59902949 /usr/local/lib/python3.5/dist-packages/torch/lib/libgomp-ae56ecdc.so.1.0.0<br> 7fc374124000-7fc37412b000 r-xp 00000000 fd:00 21239290 /lib/x86_64-linux-gnu/librt-2.23.so<br> 7fc37412b000-7fc37432a000 ---p 00007000 fd:00 21239290 /lib/x86_64-linux-gnu/librt-2.23.so<br> 7fc37432a000-7fc37432b000 r--p 00006000 fd:00 21239290 /lib/x86_64-linux-gnu/librt-2.23.so<br> 7fc37432b000-7fc37432c000 rw-p 00007000 fd:00 21239290 /lib/x86_64-linux-gnu/librt-2.23.so<br> 7fc37432c000-7fc376e04000 r-xp 00000000 fd:00 59902939 /usr/local/lib/python3.5/dist-packages/torch/lib/libnccl.so.1<br> 7fc376e04000-7fc377004000 ---p 02ad8000 fd:00 59902939 /usr/local/lib/python3.5/dist-packages/torch/lib/libnccl.so.1<br> 7fc377004000-7fc377005000 rw-p 02ad8000 fd:00 59902939 /usr/local/lib/python3.5/dist-packages/torch/lib/libnccl.so.1<br> 7fc377005000-7fc377007000 rw-p 02ae4000 fd:00 59902939 /usr/local/lib/python3.5/dist-packages/torch/lib/libnccl.so.1<br> 7fc377007000-7fc37ae70000 r-xp 00000000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902947c80f55b07b84e98cd8939efadfc24141/hovercard" href="https://github.com/pytorch/pytorch/commit/59902947c80f55b07b84e98cd8939efadfc24141"><tt>5990294</tt></a> /usr/local/lib/python3.5/dist-packages/torch/lib/libTHCUNN.so.1<br> 7fc37ae70000-7fc37b070000 ---p 03e69000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902947c80f55b07b84e98cd8939efadfc24141/hovercard" href="https://github.com/pytorch/pytorch/commit/59902947c80f55b07b84e98cd8939efadfc24141"><tt>5990294</tt></a> /usr/local/lib/python3.5/dist-packages/torch/lib/libTHCUNN.so.1<br> 7fc37b070000-7fc37b07f000 rw-p 03e69000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902947c80f55b07b84e98cd8939efadfc24141/hovercard" href="https://github.com/pytorch/pytorch/commit/59902947c80f55b07b84e98cd8939efadfc24141"><tt>5990294</tt></a> /usr/local/lib/python3.5/dist-packages/torch/lib/libTHCUNN.so.1<br> 7fc37b07f000-7fc37b09f000 rw-p 00000000 00:00 0<br> 7fc37b09f000-7fc37b367000 rw-p 04124000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902947c80f55b07b84e98cd8939efadfc24141/hovercard" href="https://github.com/pytorch/pytorch/commit/59902947c80f55b07b84e98cd8939efadfc24141"><tt>5990294</tt></a> /usr/local/lib/python3.5/dist-packages/torch/lib/libTHCUNN.so.1<br> 7fc37b367000-7fc37b4bf000 r-xp 00000000 fd:00 59902951 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHCS.so.1<br> 7fc37b4bf000-7fc37b6bf000 ---p 00158000 fd:00 59902951 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHCS.so.1<br> 7fc37b6bf000-7fc37b6c1000 rw-p 00158000 fd:00 59902951 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHCS.so.1<br> 7fc37b6c1000-7fc37b6c2000 rw-p 00000000 00:00 0<br> 7fc37b6c2000-7fc37b70a000 rw-p 00182000 fd:00 59902951 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHCS.so.1<br> 7fc37b70a000-7fc38ad78000 r-xp 00000000 fd:00 59902936 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHC.so.1<br> 7fc38ad78000-7fc38af78000 ---p 0f66e000 fd:00 59902936 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHC.so.1<br> 7fc38af78000-7fc38afd2000 rw-p 0f66e000 fd:00 59902936 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHC.so.1<br> 7fc38afd2000-7fc38b03b000 rw-p 00000000 00:00 0<br> 7fc38b03b000-7fc38c9a3000 rw-p 102ce000 fd:00 59902936 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHC.so.1<br> 7fc38c9a3000-7fc38cc04000 r-xp 00000000 fd:00 59902938 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHD.so.1<br> 7fc38cc04000-7fc38ce04000 ---p 00261000 fd:00 59902938 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHD.so.1<br> 7fc38ce04000-7fc38ce0e000 rw-p 00261000 fd:00 59902938 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHD.so.1<br> 7fc38ce0e000-7fc38ce4f000 rw-p 002d4000 fd:00 59902938 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHD.so.1<br> 7fc38ce4f000-7fc38d39c000 r-xp 00000000 fd:00 59902955 /usr/local/lib/python3.5/dist-packages/torch/lib/libATen.so.1<br> 7fc38d39c000-7fc38d59c000 ---p 0054d000 fd:00 59902955 /usr/local/lib/python3.5/dist-packages/torch/lib/libATen.so.1<br> 7fc38d59c000-7fc38d5da000 rw-p 0054d000 fd:00 59902955 /usr/local/lib/python3.5/dist-packages/torch/lib/libATen.so.1<br> 7fc38d5da000-7fc38d703000 rw-p 00681000 fd:00 59902955 /usr/local/lib/python3.5/dist-packages/torch/lib/libATen.so.1<br> 7fc38d703000-7fc38d81a000 r-xp 00000000 fd:00 59902948 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHNN.so.1<br> 7fc38d81a000-7fc38da1a000 ---p 00117000 fd:00 59902948 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHNN.so.1<br> 7fc38da1a000-7fc38da1b000 rw-p 00117000 fd:00 59902948 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHNN.so.1<br> 7fc38da1b000-7fc38da27000 rw-p 00127000 fd:00 59902948 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHNN.so.1<br> 7fc38da27000-7fc38dc89000 r-xp 00000000 fd:00 59902945 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHPP.so.1<br> 7fc38dc89000-7fc38de89000 ---p 00262000 fd:00 59902945 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHPP.so.1<br> 7fc38de89000-7fc38de9d000 rw-p 00262000 fd:00 59902945 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHPP.so.1<br> 7fc38de9d000-7fc38df4d000 rw-p 00306000 fd:00 59902945 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHPP.so.1<br> 7fc38df4d000-7fc38df7b000 r-xp 00000000 fd:00 59902952 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHS.so.1<br> 7fc38df7b000-7fc38e17b000 ---p 0002e000 fd:00 59902952 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHS.so.1<br> 7fc38e17b000-7fc38e17c000 rw-p 0002e000 fd:00 59902952 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHS.so.1<br> 7fc38e17c000-7fc38e180000 rw-p 00037000 fd:00 59902952 /usr/local/lib/python3.5/dist-packages/torch/lib/libTHS.so.1<br> 7fc38e180000-7fc39057e000 r-xp 00000000 fd:00 59902950 /usr/local/lib/python3.5/dist-packages/torch/lib/libTH.so.1<br> 7fc39057e000-7fc39077e000 ---p 023fe000 fd:00 59902950 /usr/local/lib/python3.5/dist-packages/torch/lib/libTH.so.1<br> 7fc39077e000-7fc3907a5000 rw-p 023fe000 fd:00 59902950 /usr/local/lib/python3.5/dist-packages/torch/lib/libTH.so.1<br> 7fc3907a5000-7fc3907ed000 rw-p 00000000 00:00 0<br> 7fc3907ed000-7fc39081c000 rw-p 02504000 fd:00 59902950 /usr/local/lib/python3.5/dist-packages/torch/lib/libTH.so.1<br> 7fc39081c000-7fc399b1b000 r-xp 00000000 fd:00 59902954 /usr/local/lib/python3.5/dist-packages/torch/lib/libcudnn-3f9a723f.so.6.0.21<br> 7fc399b1b000-7fc399d1a000 ---p 092ff000 fd:00 59902954 /usr/local/lib/python3.5/dist-packages/torch/lib/libcudnn-3f9a723f.so.6.0.21<br> 7fc399d1a000-7fc399d49000 rw-p 092fe000 fd:00 59902954 /usr/local/lib/python3.5/dist-packages/torch/lib/libcudnn-3f9a723f.so.6.0.21<br> 7fc399d49000-7fc399d7e000 rw-p 00000000 00:00 0<br> 7fc399d7e000-7fc399d80000 rw-p 0932d000 fd:00 59902954 /usr/local/lib/python3.5/dist-packages/torch/lib/libcudnn-3f9a723f.so.6.0.21<br> 7fc399d80000-7fc399d88000 r-xp 00000000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902944433098670643bd9cf2ce92181549babc/hovercard" href="https://github.com/pytorch/pytorch/commit/59902944433098670643bd9cf2ce92181549babc"><tt>5990294</tt></a> /usr/local/lib/python3.5/dist-packages/torch/lib/libnvToolsExt-422e3301.so.1.0.0<br> 7fc399d88000-7fc399f88000 ---p 00008000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902944433098670643bd9cf2ce92181549babc/hovercard" href="https://github.com/pytorch/pytorch/commit/59902944433098670643bd9cf2ce92181549babc"><tt>5990294</tt></a> /usr/local/lib/python3.5/dist-packages/torch/lib/libnvToolsExt-422e3301.so.1.0.0<br> 7fc399f88000-7fc399f89000 rw-p 00008000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902944433098670643bd9cf2ce92181549babc/hovercard" href="https://github.com/pytorch/pytorch/commit/59902944433098670643bd9cf2ce92181549babc"><tt>5990294</tt></a> /usr/local/lib/python3.5/dist-packages/torch/lib/libnvToolsExt-422e3301.so.1.0.0<br> 7fc399f89000-7fc399f8a000 rw-p 0000a000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902944433098670643bd9cf2ce92181549babc/hovercard" href="https://github.com/pytorch/pytorch/commit/59902944433098670643bd9cf2ce92181549babc"><tt>5990294</tt></a> /usr/local/lib/python3.5/dist-packages/torch/lib/libnvToolsExt-422e3301.so.1.0.0<br> 7fc399f8a000-7fc399fec000 r-xp 00000000 fd:00 59902942 /usr/local/lib/python3.5/dist-packages/torch/lib/libcudart-5d6d23a3.so.8.0.61<br> 7fc399fec000-7fc39a1ec000 ---p 00062000 fd:00 59902942 /usr/local/lib/python3.5/dist-packages/torch/lib/libcudart-5d6d23a3.so.8.0.61<br> 7fc39a1ec000-7fc39a1ef000 rw-p 00062000 fd:00 59902942 /usr/local/lib/python3.5/dist-packages/torch/lib/libcudart-5d6d23a3.so.8.0.61<br> 7fc39a1ef000-7fc39a1f0000 rw-p 00000000 00:00 0<br> 7fc39a1f0000-7fc39a1f2000 rw-p 00066000 fd:00 59902942 /usr/local/lib/python3.5/dist-packages/torch/lib/libcudart-5d6d23a3.so.8.0.61<br> 7fc39a1f2000-7fc39a2b4000 r-xp 00000000 fd:00 59902940 /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so<br> 7fc39a2b4000-7fc39a4b4000 ---p 000c2000 fd:00 59902940 /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so<br> 7fc39a4b4000-7fc39a4bc000 rw-p 000c2000 fd:00 59902940 /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so<br> 7fc39a4bc000-7fc39a4d0000 rw-p 00000000 00:00 0<br> 7fc39a4d0000-7fc39a4f0000 rw-p 000fe000 fd:00 59902940 /usr/local/lib/python3.5/dist-packages/torch/lib/libshm.so<br> 7fc39a4f0000-7fc39b57b000 r-xp 00000000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902299be15b342cfb3650286553e4da9daf4c8/hovercard" href="https://github.com/pytorch/pytorch/commit/59902299be15b342cfb3650286553e4da9daf4c8"><tt>5990229</tt></a> /usr/local/lib/python3.5/dist-packages/torch/_C.cpython-35m-x86_64-linux-gnu.so<br> 7fc39b57b000-7fc39b77b000 ---p 0108b000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902299be15b342cfb3650286553e4da9daf4c8/hovercard" href="https://github.com/pytorch/pytorch/commit/59902299be15b342cfb3650286553e4da9daf4c8"><tt>5990229</tt></a> /usr/local/lib/python3.5/dist-packages/torch/_C.cpython-35m-x86_64-linux-gnu.so<br> 7fc39b77b000-7fc39b7c5000 rw-p 0108b000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902299be15b342cfb3650286553e4da9daf4c8/hovercard" href="https://github.com/pytorch/pytorch/commit/59902299be15b342cfb3650286553e4da9daf4c8"><tt>5990229</tt></a> /usr/local/lib/python3.5/dist-packages/torch/_C.cpython-35m-x86_64-linux-gnu.so<br> 7fc39b7c5000-7fc39b7c8000 rw-p 00000000 00:00 0<br> 7fc39b7c8000-7fc39bab3000 rw-p 067ac000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/59902299be15b342cfb3650286553e4da9daf4c8/hovercard" href="https://github.com/pytorch/pytorch/commit/59902299be15b342cfb3650286553e4da9daf4c8"><tt>5990229</tt></a> /usr/local/lib/python3.5/dist-packages/torch/_C.cpython-35m-x86_64-linux-gnu.so<br> 7fc39bab3000-7fc39baf3000 rw-p 00000000 00:00 0<br> 7fc39baf3000-7fc39bbac000 r-xp 00000000 fd:00 59903123 /usr/local/lib/python3.5/dist-packages/numpy/random/mtrand.cpython-35m-x86_64-linux-gnu.so<br> 7fc39bbac000-7fc39bdac000 ---p 000b9000 fd:00 59903123 /usr/local/lib/python3.5/dist-packages/numpy/random/mtrand.cpython-35m-x86_64-linux-gnu.so<br> 7fc39bdac000-7fc39bdd1000 rw-p 000b9000 fd:00 59903123 /usr/local/lib/python3.5/dist-packages/numpy/random/mtrand.cpython-35m-x86_64-linux-gnu.so<br> 7fc39bdd1000-7fc39bdd3000 rw-p 00000000 00:00 0<br> 7fc39bdd3000-7fc39bddc000 r-xp 00000000 fd:00 59903141 /usr/local/lib/python3.5/dist-packages/numpy/fft/fftpack_lite.cpython-35m-x86_64-linux-gnu.so<br> 7fc39bddc000-7fc39bfdb000 ---p 00009000 fd:00 59903141 /usr/local/lib/python3.5/dist-packages/numpy/fft/fftpack_lite.cpython-35m-x86_64-linux-gnu.so<br> 7fc39bfdb000-7fc39bfdc000 rw-p 00008000 fd:00 59903141 /usr/local/lib/python3.5/dist-packages/numpy/fft/fftpack_lite.cpython-35m-x86_64-linux-gnu.so<br> 7fc39bfdc000-7fc39c005000 r-xp 00000000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/599036255cdf8a22a31f72f30f2bbb398d5df229/hovercard" href="https://github.com/pytorch/pytorch/commit/599036255cdf8a22a31f72f30f2bbb398d5df229"><tt>5990362</tt></a> /usr/local/lib/python3.5/dist-packages/numpy/linalg/_umath_linalg.cpython-35m-x86_64-linux-gnu.so<br> 7fc39c005000-7fc39c204000 ---p 00029000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/599036255cdf8a22a31f72f30f2bbb398d5df229/hovercard" href="https://github.com/pytorch/pytorch/commit/599036255cdf8a22a31f72f30f2bbb398d5df229"><tt>5990362</tt></a> /usr/local/lib/python3.5/dist-packages/numpy/linalg/_umath_linalg.cpython-35m-x86_64-linux-gnu.so<br> 7fc39c204000-7fc39c206000 rw-p 00028000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/599036255cdf8a22a31f72f30f2bbb398d5df229/hovercard" href="https://github.com/pytorch/pytorch/commit/599036255cdf8a22a31f72f30f2bbb398d5df229"><tt>5990362</tt></a> /usr/local/lib/python3.5/dist-packages/numpy/linalg/_umath_linalg.cpython-35m-x86_64-linux-gnu.so<br> 7fc39c206000-7fc39c209000 rw-p 000c6000 fd:00 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/599036255cdf8a22a31f72f30f2bbb398d5df229/hovercard" href="https://github.com/pytorch/pytorch/commit/599036255cdf8a22a31f72f30f2bbb398d5df229"><tt>5990362</tt></a> /usr/local/lib/python3.5/dist-packages/numpy/linalg/_umath_linalg.cpython-35m-x86_64-linux-gnu.so<br> 7fc39c209000-7fc39c20d000 r-xp 00000000 fd:00 59903626 /usr/local/lib/python3.5/dist-packages/numpy/linalg/lapack_lite.cpython-35m-x86_64-linux-gnu.so<br> 7fc39c20d000-7fc39c40d000 ---p 00004000 fd:00 59903626 /usr/local/lib/python3.5/dist-packages/numpy/linalg/lapack_lite.cpython-35m-x86_64-linux-gnu.so<br> 7fc39c40d000-7fc39c40e000 rw-p 00004000 fd:00 59903626 /usr/local/lib/python3.5/dist-packages/numpy/linalg/lapack_lite.cpython-35m-x86_64-linux-gnu.so<br> 7fc39c40e000-7fc39c410000 rw-p 00019000 fd:00 59903626 /usr/local/lib/python3.5/dist-packages/numpy/linalg/lapack_lite.cpython-35m-x86_64-linux-gnu.so<br> 7fc39c410000-7fc39c510000 rw-p 00000000 00:00 0<br> 7fc39c510000-7fc39e510000 rw-p 00000000 00:00 0<br> 7fc39e510000-7fc39e532000 r-xp 00000000 fd:00 56100141 /usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so<br> 7fc39e532000-7fc39e731000 ---p 00022000 fd:00 56100141 /usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so<br> 7fc39e731000-7fc39e732000 r--p 00021000 fd:00 56100141 /usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so<br> 7fc39e732000-7fc39e736000 rw-p 00022000 fd:00 56100141 /usr/lib/python3.5/lib-dynload/_ctypes.cpython-35m-x86_64-linux-gnu.so<br> 7fc39e736000-7fc39e877000 rw-p 00000000 00:00 0<br> 7fc39e877000-7fc39e937000 rw-p 00000000 00:00 0<br> 7fc39e937000-7fc39eac9000 r-xp 00000000 fd:00 59903813 /usr/local/lib/python3.5/dist-packages/numpy/core/umath.cpython-35m-x86_64-linux-gnu.so<br> 7fc39eac9000-7fc39ecc8000 ---p 00192000 fd:00 59903813 /usr/local/lib/python3.5/dist-packages/numpy/core/umath.cpython-35m-x86_64-linux-gnu.so<br> 7fc39ecc8000-7fc39ecce000 rw-p 00191000 fd:00 59903813 /usr/local/lib/python3.5/dist-packages/numpy/core/umath.cpython-35m-x86_64-linux-gnu.so<br> 7fc39ecce000-7fc39ecd0000 rw-p 00000000 00:00 0<br> 7fc39ecd0000-7fc3a0cd0000 rw-p 00000000 00:00 0<br> 7fc3a0cd0000-7fc3a0d10000 rw-p 00000000 00:00 0<br> 7fc3a0d10000-7fc3a0d11000 ---p 00000000 00:00 0<br> 7fc3a0d11000-7fc3a1511000 rw-p 00000000 00:00 0<br> 7fc3a1511000-7fc3a3511000 rw-p 00000000 00:00 0<br> 7fc3a3511000-7fc3a5511000 rw-p 00000000 00:00 0<br> 7fc3a5511000-7fc3a5512000 ---p 00000000 00:00 0<br> 7fc3a5512000-7fc3a5d12000 rw-p 00000000 00:00 0<br> 7fc3a5d12000-7fc3a5d13000 ---p 00000000 00:00 0<br> 7fc3a5d13000-7fc3a6513000 rw-p 00000000 00:00 0<br> 7fc3a6513000-7fc3a6514000 ---p 00000000 00:00 0<br> 7fc3a6514000-7fc3a6d14000 rw-p 00000000 00:00 0<br> 7fc3a6d14000-7fc3a8d14000 rw-p 00000000 00:00 0<br> 7fc3a8d14000-7fc3aad14000 rw-p 00000000 00:00 0<br> 7fc3aad14000-7fc3acd14000 rw-p 00000000 00:00 0<br> 7fc3acd14000-7fc3acd15000 ---p 00000000 00:00 0<br> 7fc3acd15000-7fc3ad515000 rw-p 00000000 00:00 0<br> 7fc3ad515000-7fc3ad516000 ---p 00000000 00:00 0<br> 7fc3ad516000-7fc3add16000 rw-p 00000000 00:00 0<br> 7fc3add16000-7fc3add17000 ---p 00000000 00:00 0<br> 7fc3add17000-7fc3ae517000 rw-p 00000000 00:00 0<br> 7fc3ae517000-7fc3ae607000 r-xp 00000000 fd:00 59903582 /usr/local/lib/python3.5/dist-packages/numpy/.libs/libgfortran-ed201abd.so.3.0.0<br> 7fc3ae607000-7fc3ae806000 ---p 000f0000 fd:00 59903582 /usr/local/lib/python3.5/dist-packages/numpy/.libs/libgfortran-ed201abd.so.3.0.0<br> 7fc3ae806000-7fc3ae808000 rw-p 000ef000 fd:00 59903582 /usr/local/lib/python3.5/dist-packages/numpy/.libs/libgfortran-ed201abd.so.3.0.0Aborted (core dumped)</p> </blockquote>
1
<p dir="auto">While processing a large set of requests, <code class="notranslate">apparent_encoding()</code> works well for quite a while but eventually hangs. All I have at this point is a traceback:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File &quot;/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/models.py&quot;, line 637, in apparent_encoding return chardet.detect(self.content)['encoding'] File &quot;/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/packages/chardet/__init__.py&quot;, line 30, in detect u.feed(aBuf) File &quot;/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/packages/chardet/universaldetector.py&quot;, line 128, in feed if prober.feed(aBuf) == constants.eFoundIt: File &quot;/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/packages/chardet/charsetgroupprober.py&quot;, line 64, in feed st = prober.feed(aBuf) File &quot;/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/packages/chardet/sjisprober.py&quot;, line 74, in feed self._mContextAnalyzer.feed(aBuf[i + 1 - charLen:i + 3"><pre class="notranslate"><code class="notranslate">File "/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/models.py", line 637, in apparent_encoding return chardet.detect(self.content)['encoding'] File "/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/packages/chardet/__init__.py", line 30, in detect u.feed(aBuf) File "/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/packages/chardet/universaldetector.py", line 128, in feed if prober.feed(aBuf) == constants.eFoundIt: File "/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/packages/chardet/charsetgroupprober.py", line 64, in feed st = prober.feed(aBuf) File "/opt/wsgi/.../ENV/lib/python2.7/site-packages/requests/packages/chardet/sjisprober.py", line 74, in feed self._mContextAnalyzer.feed(aBuf[i + 1 - charLen:i + 3 </code></pre></div> <p dir="auto">I appreciate anything you can do to help.</p>
<p dir="auto">I am using chardet as part of a web crawler written in python3. I noticed that over time (many hours), the program consumes all memory. I narrowed down the problem to a single call of chardet.detect() method for certain web pages.</p> <p dir="auto">After some testing, it seems that chardet has problem with some special input and I managed to get a sample of such an input. It consumes on my machine about 220 MB of memory (however, the input is 2.5 MB) and takes about 1:22 minutes to process (in contrast to 43 ms when the file is truncated to about 2 MB). It seems not to be limited to python3, in python2 the memory consumption is even worse (312 MB).</p> <h5 dir="auto">Versions:</h5> <p dir="auto">Fedora release 20 (Heisenbug) x86_64<br> chardet-2.2.1 (via pip)<br> python3-3.3.2-11.fc20.x86_64<br> python-2.7.5-11.fc20.x86_64</p> <h5 dir="auto">How to reproduce:</h5> <p dir="auto">I cannot attach any files to this issue so I uploaded them to my dropbox account: <a href="https://www.dropbox.com/sh/26dry8zj18cv0m1/sKgP_E44qx/chardet_test.zip" rel="nofollow">https://www.dropbox.com/sh/26dry8zj18cv0m1/sKgP_E44qx/chardet_test.zip</a> Please let me know of a better place where to put it if necessary. Here is an overview of the content and the results:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="setup='import chardet; html = open(&quot;mem_leak_html.txt&quot;, &quot;rb&quot;).read()' python3 -m timeit -s &quot;$setup&quot; 'chardet.detect(html[:2543482])' # produces: 10 loops, best of 3: 43 ms per loop python3 -m timeit -s &quot;$setup&quot; 'chardet.detect(html[:2543483])' # produces: 1 loops, best of 3: 1min 22s per loop python3 mem_leak_test.py # produces: # Good input left 2.65 MB of unfreed memory. # Bad input left 220.16 MB of unfreed memory. python -m timeit -s &quot;$setup&quot; 'chardet.detect(html[:2543482])' # produces: 10 loops, best of 3: 41.7 ms per loop python -m timeit -s &quot;$setup&quot; 'chardet.detect(html[:2543483])' # produces: 10 loops, best of 3: 111 sec per loop python mem_leak_test.py # produces: # Good input left 3.00 MB of unfreed memory. # Bad input left 312.00 MB of unfreed memory."><pre class="notranslate">setup=<span class="pl-s"><span class="pl-pds">'</span>import chardet; html = open("mem_leak_html.txt", "rb").read()<span class="pl-pds">'</span></span> python3 -m timeit -s <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$setup</span><span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">'</span>chardet.detect(html[:2543482])<span class="pl-pds">'</span></span> <span class="pl-c"><span class="pl-c">#</span> produces: 10 loops, best of 3: 43 ms per loop</span> python3 -m timeit -s <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$setup</span><span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">'</span>chardet.detect(html[:2543483])<span class="pl-pds">'</span></span> <span class="pl-c"><span class="pl-c">#</span> produces: 1 loops, best of 3: 1min 22s per loop</span> python3 mem_leak_test.py <span class="pl-c"><span class="pl-c">#</span> produces:</span> <span class="pl-c"><span class="pl-c">#</span> Good input left 2.65 MB of unfreed memory.</span> <span class="pl-c"><span class="pl-c">#</span> Bad input left 220.16 MB of unfreed memory.</span> python -m timeit -s <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$setup</span><span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">'</span>chardet.detect(html[:2543482])<span class="pl-pds">'</span></span> <span class="pl-c"><span class="pl-c">#</span> produces: 10 loops, best of 3: 41.7 ms per loop</span> python -m timeit -s <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$setup</span><span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">'</span>chardet.detect(html[:2543483])<span class="pl-pds">'</span></span> <span class="pl-c"><span class="pl-c">#</span> produces: 10 loops, best of 3: 111 sec per loop</span> python mem_leak_test.py <span class="pl-c"><span class="pl-c">#</span> produces:</span> <span class="pl-c"><span class="pl-c">#</span> Good input left 3.00 MB of unfreed memory.</span> <span class="pl-c"><span class="pl-c">#</span> Bad input left 312.00 MB of unfreed memory.</span></pre></div> <h6 dir="auto">mem_leak_test.py:</h6> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import resource import chardet import gc mem_use = lambda: resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1024 html = open(&quot;mem_leak_html.txt&quot;, &quot;rb&quot;).read() def test(desc, instr): gc.collect() mem_start = mem_use() chardet.detect(instr) gc.collect() mem_used = mem_use() - mem_start print('%s left %.2f MB of unfreed memory.' % (desc, mem_used)) test('Good input', html[:2543482]) test('Bad input', html[:2543483])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">resource</span> <span class="pl-k">import</span> <span class="pl-s1">chardet</span> <span class="pl-k">import</span> <span class="pl-s1">gc</span> <span class="pl-s1">mem_use</span> <span class="pl-c1">=</span> <span class="pl-k">lambda</span>: <span class="pl-s1">resource</span>.<span class="pl-en">getrusage</span>(<span class="pl-s1">resource</span>.<span class="pl-v">RUSAGE_SELF</span>).<span class="pl-s1">ru_maxrss</span> <span class="pl-c1">/</span> <span class="pl-c1">1024</span> <span class="pl-s1">html</span> <span class="pl-c1">=</span> <span class="pl-en">open</span>(<span class="pl-s">"mem_leak_html.txt"</span>, <span class="pl-s">"rb"</span>).<span class="pl-en">read</span>() <span class="pl-k">def</span> <span class="pl-en">test</span>(<span class="pl-s1">desc</span>, <span class="pl-s1">instr</span>): <span class="pl-s1">gc</span>.<span class="pl-en">collect</span>() <span class="pl-s1">mem_start</span> <span class="pl-c1">=</span> <span class="pl-en">mem_use</span>() <span class="pl-s1">chardet</span>.<span class="pl-en">detect</span>(<span class="pl-s1">instr</span>) <span class="pl-s1">gc</span>.<span class="pl-en">collect</span>() <span class="pl-s1">mem_used</span> <span class="pl-c1">=</span> <span class="pl-en">mem_use</span>() <span class="pl-c1">-</span> <span class="pl-s1">mem_start</span> <span class="pl-en">print</span>(<span class="pl-s">'%s left %.2f MB of unfreed memory.'</span> <span class="pl-c1">%</span> (<span class="pl-s1">desc</span>, <span class="pl-s1">mem_used</span>)) <span class="pl-en">test</span>(<span class="pl-s">'Good input'</span>, <span class="pl-s1">html</span>[:<span class="pl-c1">2543482</span>]) <span class="pl-en">test</span>(<span class="pl-s">'Bad input'</span>, <span class="pl-s1">html</span>[:<span class="pl-c1">2543483</span>])</pre></div>
1
<p dir="auto">Hello,</p> <p dir="auto">This is more of a question than a bug report.</p> <p dir="auto">Is there documentation on how to use iCloud to sync data in Electron? (Preferably in a way that can be implemented using auto-save without user input)</p> <p dir="auto">I’ve searched the issues for any mention of iCloud and have also done a Google search. This seems like something that should have documentation since a desktop app may need to share data with a mobile app over iCloud.</p>
<p dir="auto">It'd be nice if we had a simple flag (--help and -h) that showed all supported flags and a short description. The only flag I know of right now is --wait, but it's still helpful for people who would like to use atom as their git commit editor but don't know how.</p>
0
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183075941" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/4969" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/4969/hovercard" href="https://github.com/tensorflow/tensorflow/issues/4969">#4969</a> isn't fixed at branch r0.11.<br> <a href="https://www.tensorflow.org/versions/r0.11/api_docs/python/state_ops.html#constant_initializer" rel="nofollow">https://www.tensorflow.org/versions/r0.11/api_docs/python/state_ops.html#constant_initializer</a></p>
<p dir="auto"><a href="https://www.tensorflow.org/versions/r0.11/api_docs/python/state_ops.html#constant_initializer" rel="nofollow">https://www.tensorflow.org/versions/r0.11/api_docs/python/state_ops.html#constant_initializer</a></p> <p dir="auto">On Constant Initializer -&gt; Examples:</p> <p dir="auto">The very large gray box contains the html of other initializer docs. Hope it can be fixed.</p>
1
<p dir="auto">I've initially spotted this in gperftools as this affects all users of SIGPROF. The problem is that SIGPROF is delivered to process, which translates to "any thread that isn't blocking SIGROF". Luckily for us, in practice it becomes "thread that is running now". But if there are several running threads something within kernel is making it choose one thread more often than another.</p> <p dir="auto">The test program at <a href="https://gist.github.com/alk/568c0465f4f208196d8b">https://gist.github.com/alk/568c0465f4f208196d8b</a> makes it very easy to reproduce. This program spawns two goroutines that do nothing but burn CPU.</p> <p dir="auto">When profiled with perf:</p> <p dir="auto">$ perf record ./goprof-test; perf report</p> <p dir="auto">I see correct 50/50 division of profiling ticks between two goroutines, since on multicore machine go runtime runs two goroutines on two OS threads which kernel run in parallel on two different cores.</p> <p dir="auto">When profiling with runtime/pprof:</p> <p dir="auto">$ CPUPROFILE=goprof-test-prof ./goprof-test ; pprof --web ./goprof-test ./goprof-test-prof</p> <p dir="auto">I see as much skew as 80/20.</p> <p dir="auto">This is exactly same behavior that I've seen with gperftools (and google3's profiler).</p> <p dir="auto">For most programs it apparently doesn't matter. But for programs that have distinct pools of threads doing very different work, this may cause real problems. Particularly, I've seen this (with gperftools) to cause very skewed profiles for Couchbase's memcached binary where they have small pool of network worker threads and another pool of IO worker threads.</p> <p dir="auto">In gperftools I've implemented workaround which creates per-thread timers that "tick" on corresponding thread's cpu time. But I don't think it's scalable enough to be made default (and another problem but arguably specific for gperftools is that all threads have to call ProfilerRegisterThread again). You can see my implementation at: <a href="https://github.com/gperftools/gperftools/blob/master/src/profile-handler.cc">https://github.com/gperftools/gperftools/blob/master/src/profile-handler.cc</a> (parts that are under HAVE_LINUX_SIGEV_THREAD_ID defined)</p> <p dir="auto">I've seen this behavior on FreeBSD VMs too, but don't know about other OSes.</p> <p dir="auto">Maybe there is better way to avoid this skew or maybe we should just ask kernel folks to change SIGPROF signal delivery to avoid this skew. In any case this is bug worth tracking.</p> <p dir="auto">This is somewhat related, but distinct issue from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125202044" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/13841" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/13841/hovercard" href="https://github.com/golang/go/issues/13841">#13841</a></p>
<h3 dir="auto">What version of Go are you using (<code class="notranslate">go version</code>)?</h3> <pre class="notranslate">$ go1.13 version go version go1.13.3 darwin/amd64 </pre> <h3 dir="auto">Does this issue reproduce with the latest release?</h3> <p dir="auto">Yes, this is present in Go 1.13 and in current tip with Linux 4.14. It seems to exist even back in Go 1.4, and with Linux 3.2 and 2.6.32.</p> <p dir="auto">Am I holding it wrong?</p> <p dir="auto">Around Go 1.6, a lot of the tests in runtime/pprof were called out as being flaky. It looks like around that same time, the builders got an overhaul. Maybe they moved to machines with more CPU cores than before, and the increase in flakiness was due to some SIGPROF deliveries being skipped?</p> <p dir="auto">The tests in runtime/pprof both now and around Go 1.6 seem to compare parts of the profile to itself, but not to the CPU usage reported by the operating system. If this is a real bug, those tests would not have discovered it.</p> <h3 dir="auto">What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</h3> <p dir="auto">I'm compiling on darwin/amd64 and running on linux/amd64.</p> <details><summary><code class="notranslate">go env</code> Output</summary><br><pre class="notranslate">$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/rhys/Library/Caches/go-build" GOENV="/Users/rhys/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GONOPROXY="*" GONOSUMDB="*" GOOS="darwin" GOPATH="/Users/rhys/go" GOPRIVATE="*" GOPROXY="direct" GOROOT="/usr/local/go" GOSUMDB="off" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/49/zmds5zsn75z1283vtzxyfr5hj7yjq4/T/go-build343144681=/tmp/go-build -gno-record-gcc-switches -fno-common" </pre></details> <h3 dir="auto">What did you do?</h3> <p dir="auto">I looked at a CPU profile for a Go program running on a Linux machine where <code class="notranslate">top</code> reported 20 cores of CPU usage (2000%), but the profile showed about 240% / 2.4 cores of usage.</p> <p dir="auto">I ran a test with the <code class="notranslate">-test.cpuprofile</code> flag on a Linux machine and compared the results of the <code class="notranslate">time</code> shell built-in with <code class="notranslate">go tool pprof</code>'s view of the usage. I varied the rate that the program asked the kernel to deliver SIGPROF and found that the two measurements agreed on the number of CPU cycles spent as long as there were fewer than 250 SIGPROF deliveries per second.</p> <p dir="auto">I ran the test under <code class="notranslate">perf stat -e 'signal:*'</code> and found that its count of <code class="notranslate">signal:signal_generate</code> events lined up with the number of SIGPROF deliveries I'd expect, that its count of <code class="notranslate">signal:signal_deliver</code> events lined up with the number of samples in the CPU profile, and that the two matched well only when the "generate" rate was less than 250 samples per second.</p> <hr> <p dir="auto">Here, the test uses 96 vCPUs of a machine with 96 hyperthreads for 10 seconds, using the Go runtime's default profile rate of 100 Hz. The Linux kernel generates slightly less than 96,000 signals (which are probably all SIGPROF). The <code class="notranslate">time</code> built-in reports slightly less than 16 minutes (960 seconds) of "user" CPU. That's good.</p> <p dir="auto">The resulting profile shows 10.20 seconds of wall-clock time and 1.61 minutes (about 96.6 seconds) of CPU time, or about 9660 samples at 100 Hz. That's close to the number of signals that the kernel reports it delivered to the program, but that doesn't match the number generated by the kernel or the actual CPU time spent.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ time sudo perf stat -e 'signal:*' ./test-n -test.cpuprofile=./prof-n -test.cpu=96 PASS Performance counter stats for './test-n -test.cpuprofile=./prof-n -test.cpu=96': 95,690 signal:signal_generate 9,688 signal:signal_deliver 10.211210687 seconds time elapsed real 0m10.316s user 15m57.840s sys 0m0.045s $ go tool pprof -text /tmp/test-n /tmp/prof-n File: test-n Type: cpu Time: Oct 21, 2019 at 2:16pm (PDT) Duration: 10.20s, Total samples = 1.61mins (949.83%) Showing nodes accounting for 1.61mins, 100% of 1.61mins total Dropped 13 nodes (cum &lt;= 0.01mins) flat flat% sum% cum cum% 1.61mins 100% 100% 1.61mins 100% command-line-arguments.cpuHog1 0 0% 100% 1.61mins 100% command-line-arguments.TestCPUProfile.func1 0 0% 100% 1.61mins 100% command-line-arguments.cpuHogger"><pre class="notranslate"><code class="notranslate">$ time sudo perf stat -e 'signal:*' ./test-n -test.cpuprofile=./prof-n -test.cpu=96 PASS Performance counter stats for './test-n -test.cpuprofile=./prof-n -test.cpu=96': 95,690 signal:signal_generate 9,688 signal:signal_deliver 10.211210687 seconds time elapsed real 0m10.316s user 15m57.840s sys 0m0.045s $ go tool pprof -text /tmp/test-n /tmp/prof-n File: test-n Type: cpu Time: Oct 21, 2019 at 2:16pm (PDT) Duration: 10.20s, Total samples = 1.61mins (949.83%) Showing nodes accounting for 1.61mins, 100% of 1.61mins total Dropped 13 nodes (cum &lt;= 0.01mins) flat flat% sum% cum cum% 1.61mins 100% 100% 1.61mins 100% command-line-arguments.cpuHog1 0 0% 100% 1.61mins 100% command-line-arguments.TestCPUProfile.func1 0 0% 100% 1.61mins 100% command-line-arguments.cpuHogger </code></pre></div> <p dir="auto">Calling <code class="notranslate">runtime.SetCPUProfileRate</code> with "2 Hz" right before the testing package's CPU profile starts lets me dial the profile rate down to less than 250 Hz process-wide. (The warning message seems harmless in this case.) This leads to the kernel's measurements of "signal:signal_generate" and "signal:signal_deliver" matching each other, and for <code class="notranslate">go tool pprof</code>'s measurement of "15.94mins" to come very close to what the <code class="notranslate">time</code> built-in sees at "user 15m57.048s".</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ time sudo env PROFILE_HZ=2 perf stat -e 'signal:*' ./test-n -test.cpuprofile=./prof-n -test.cpu=96 runtime: cannot set cpu profile rate until previous profile has finished. PASS Performance counter stats for './test-n -test.cpuprofile=./prof-n -test.cpu=96': 1,913 signal:signal_generate 1,913 signal:signal_deliver 10.120272912 seconds time elapsed real 0m10.221s user 15m57.048s sys 0m0.378s $ go tool pprof -text /tmp/test-n /tmp/prof-n File: test-n Type: cpu Time: Oct 21, 2019 at 2:17pm (PDT) Duration: 10.11s, Total samples = 15.94mins (9464.52%) Showing nodes accounting for 15.93mins, 99.90% of 15.94mins total Dropped 1 node (cum &lt;= 0.08mins) flat flat% sum% cum cum% 15.93mins 99.90% 99.90% 15.93mins 99.90% command-line-arguments.cpuHog1 0 0% 99.90% 15.93mins 99.90% command-line-arguments.TestCPUProfile.func1 0 0% 99.90% 15.93mins 99.90% command-line-arguments.cpuHogger"><pre class="notranslate"><code class="notranslate">$ time sudo env PROFILE_HZ=2 perf stat -e 'signal:*' ./test-n -test.cpuprofile=./prof-n -test.cpu=96 runtime: cannot set cpu profile rate until previous profile has finished. PASS Performance counter stats for './test-n -test.cpuprofile=./prof-n -test.cpu=96': 1,913 signal:signal_generate 1,913 signal:signal_deliver 10.120272912 seconds time elapsed real 0m10.221s user 15m57.048s sys 0m0.378s $ go tool pprof -text /tmp/test-n /tmp/prof-n File: test-n Type: cpu Time: Oct 21, 2019 at 2:17pm (PDT) Duration: 10.11s, Total samples = 15.94mins (9464.52%) Showing nodes accounting for 15.93mins, 99.90% of 15.94mins total Dropped 1 node (cum &lt;= 0.08mins) flat flat% sum% cum cum% 15.93mins 99.90% 99.90% 15.93mins 99.90% command-line-arguments.cpuHog1 0 0% 99.90% 15.93mins 99.90% command-line-arguments.TestCPUProfile.func1 0 0% 99.90% 15.93mins 99.90% command-line-arguments.cpuHogger </code></pre></div> <p dir="auto">I confirmed that the kernel was configured with high-resolution timers as recommended in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125202044" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/13841" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/13841/hovercard" href="https://github.com/golang/go/issues/13841">#13841</a>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ uname -a Linux ip-172-31-18-196.us-west-2.compute.internal 4.14.123-111.109.amzn2.x86_64 #1 SMP Mon Jun 10 19:37:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ cat /boot/config-$(uname -r) | grep CONFIG_HIGH_RES_TIMERS CONFIG_HIGH_RES_TIMERS=y $ cat /boot/config-$(uname -r) | grep ^CONFIG_HZ CONFIG_HZ_250=y CONFIG_HZ=250"><pre class="notranslate"><code class="notranslate">$ uname -a Linux ip-172-31-18-196.us-west-2.compute.internal 4.14.123-111.109.amzn2.x86_64 #1 SMP Mon Jun 10 19:37:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ cat /boot/config-$(uname -r) | grep CONFIG_HIGH_RES_TIMERS CONFIG_HIGH_RES_TIMERS=y $ cat /boot/config-$(uname -r) | grep ^CONFIG_HZ CONFIG_HZ_250=y CONFIG_HZ=250 </code></pre></div> <p dir="auto">I've seen this effect both on virtual machines and on physical hardware. (Most of my follow-up testing has taken place on virtual machines.)</p> <h3 dir="auto">What did you expect to see?</h3> <p dir="auto">I expected the number of seconds of CPU time reported by <code class="notranslate">go tool pprof</code> to align with the number of seconds of CPU time observed by the kernel.</p> <p dir="auto">When I run <code class="notranslate">go tool pprof</code>, I expect the time reported in the "Duration" line (like "Duration: 5.11s, Total samples = 8.50s (166.40%)") to match what I'd see from looking at a tool like <code class="notranslate">top</code> at the same time.</p> <h3 dir="auto">What did you see instead?</h3> <p dir="auto">The Linux kernel seems to drop SIGPROF events when they come more than 250 times per second. I don't know if it drops them fairly—the profiles might be skewed.</p> <hr> <h3 dir="auto">Open questions</h3> <p dir="auto">Is there a simple setting that my coworkers and I are missing? I've reproduced this with vanilla machine images for Ubuntu and Amazon Linux 2.</p> <p dir="auto">Is the right move for <code class="notranslate">runtime.SetCPUProfileRate</code> to limit its input to <code class="notranslate">250 / GOMAXPROCS</code>?</p> <p dir="auto">Does the number "250" come from Linux's <code class="notranslate">CONFIG_HZ_250=y</code> / <code class="notranslate">CONFIG_HZ=250</code>, and is it right for that configuration to end up compiled in to Go?</p> <p dir="auto">Thanks!</p> <hr> <p dir="auto">Here's the test program:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package repro import ( &quot;os&quot; &quot;runtime&quot; &quot;strconv&quot; &quot;sync&quot; &quot;sync/atomic&quot; &quot;testing&quot; &quot;time&quot; ) var sink int64 func init() { hz, _ := strconv.Atoi(os.Getenv(&quot;PROFILE_HZ&quot;)) if hz &gt; 0 { runtime.SetCPUProfileRate(hz) } } func TestCPUProfile(t *testing.T) { workers := runtime.GOMAXPROCS(0) var wg sync.WaitGroup for i := 0; i &lt; workers; i++ { wg.Add(1) go func() { defer wg.Done() var v int cpuHogger(cpuHog1, &amp;v, 10*time.Second) atomic.StoreInt64(&amp;sink, int64(v)) }() } wg.Wait() } // cpuHogger and cpuHog1 from src/runtime/pprof/pprof_test.go func cpuHogger(f func(x int) int, y *int, dur time.Duration) { // We only need to get one 100 Hz clock tick, so we've got // a large safety buffer. // But do at least 500 iterations (which should take about 100ms), // otherwise TestCPUProfileMultithreaded can fail if only one // thread is scheduled during the testing period. t0 := time.Now() accum := *y for i := 0; i &lt; 500 || time.Since(t0) &lt; dur; i++ { accum = f(accum) } *y = accum } // The actual CPU hogging function. // Must not call other functions nor access heap/globals in the loop, // otherwise under race detector the samples will be in the race runtime. func cpuHog1(x int) int { foo := x for i := 0; i &lt; 1e5; i++ { if foo &gt; 0 { foo *= foo } else { foo *= foo + 1 } } return foo }"><pre class="notranslate"><code class="notranslate">package repro import ( "os" "runtime" "strconv" "sync" "sync/atomic" "testing" "time" ) var sink int64 func init() { hz, _ := strconv.Atoi(os.Getenv("PROFILE_HZ")) if hz &gt; 0 { runtime.SetCPUProfileRate(hz) } } func TestCPUProfile(t *testing.T) { workers := runtime.GOMAXPROCS(0) var wg sync.WaitGroup for i := 0; i &lt; workers; i++ { wg.Add(1) go func() { defer wg.Done() var v int cpuHogger(cpuHog1, &amp;v, 10*time.Second) atomic.StoreInt64(&amp;sink, int64(v)) }() } wg.Wait() } // cpuHogger and cpuHog1 from src/runtime/pprof/pprof_test.go func cpuHogger(f func(x int) int, y *int, dur time.Duration) { // We only need to get one 100 Hz clock tick, so we've got // a large safety buffer. // But do at least 500 iterations (which should take about 100ms), // otherwise TestCPUProfileMultithreaded can fail if only one // thread is scheduled during the testing period. t0 := time.Now() accum := *y for i := 0; i &lt; 500 || time.Since(t0) &lt; dur; i++ { accum = f(accum) } *y = accum } // The actual CPU hogging function. // Must not call other functions nor access heap/globals in the loop, // otherwise under race detector the samples will be in the race runtime. func cpuHog1(x int) int { foo := x for i := 0; i &lt; 1e5; i++ { if foo &gt; 0 { foo *= foo } else { foo *= foo + 1 } } return foo } </code></pre></div>
1
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): no.</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): <code class="notranslate">ingress</code> <code class="notranslate">tls</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>): 1.4</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: GKE</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>: Currently Ingress resources can only have one TLS certificate configured:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apiVersion: extensions/v1beta1 kind: Ingress metadata: name: test spec: tls: - secretName: testsecret rules: - host: foo.bar.com http: paths: - backend: serviceName: s1 servicePort: 80 - host: bar.foo.com http: paths: - backend: serviceName: s2 servicePort: 80"><pre class="notranslate"><span class="pl-ent">apiVersion</span>: <span class="pl-s">extensions/v1beta1</span> <span class="pl-ent">kind</span>: <span class="pl-s">Ingress</span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">test</span> <span class="pl-ent">spec</span>: <span class="pl-ent">tls</span>: - <span class="pl-ent">secretName</span>: <span class="pl-s">testsecret</span> <span class="pl-ent">rules</span>: - <span class="pl-ent">host</span>: <span class="pl-s">foo.bar.com</span> <span class="pl-ent">http</span>: <span class="pl-ent">paths</span>: - <span class="pl-ent">backend</span>: <span class="pl-ent">serviceName</span>: <span class="pl-c1">s1</span> <span class="pl-ent">servicePort</span>: <span class="pl-c1">80</span> - <span class="pl-ent">host</span>: <span class="pl-s">bar.foo.com</span> <span class="pl-ent">http</span>: <span class="pl-ent">paths</span>: - <span class="pl-ent">backend</span>: <span class="pl-ent">serviceName</span>: <span class="pl-c1">s2</span> <span class="pl-ent">servicePort</span>: <span class="pl-c1">80</span></pre></div> <p dir="auto"><strong>What you expected to happen</strong>: Would it make sense to have a TLS certificate per route rule. Something like this:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apiVersion: extensions/v1beta1 kind: Ingress metadata: name: test spec: rules: - host: foo.bar.com tls: - secretName: testsecret http: paths: - backend: serviceName: s1 servicePort: 80 - host: bar.foo.com tls: - secretName: testsecret http: paths: - backend: serviceName: s2 servicePort: 80"><pre class="notranslate"><span class="pl-ent">apiVersion</span>: <span class="pl-s">extensions/v1beta1</span> <span class="pl-ent">kind</span>: <span class="pl-s">Ingress</span> <span class="pl-ent">metadata</span>: <span class="pl-ent">name</span>: <span class="pl-s">test</span> <span class="pl-ent">spec</span>: <span class="pl-ent">rules</span>: - <span class="pl-ent">host</span>: <span class="pl-s">foo.bar.com</span> <span class="pl-ent">tls</span>: - <span class="pl-ent">secretName</span>: <span class="pl-s">testsecret</span> <span class="pl-ent">http</span>: <span class="pl-ent">paths</span>: - <span class="pl-ent">backend</span>: <span class="pl-ent">serviceName</span>: <span class="pl-c1">s1</span> <span class="pl-ent">servicePort</span>: <span class="pl-c1">80</span> - <span class="pl-ent">host</span>: <span class="pl-s">bar.foo.com</span> <span class="pl-ent">tls</span>: - <span class="pl-ent">secretName</span>: <span class="pl-s">testsecret</span> <span class="pl-ent">http</span>: <span class="pl-ent">paths</span>: - <span class="pl-ent">backend</span>: <span class="pl-ent">serviceName</span>: <span class="pl-c1">s2</span> <span class="pl-ent">servicePort</span>: <span class="pl-c1">80</span></pre></div> <p dir="auto">I am not aware of the design decisions behind the current implementation so this might not make sense at all.<br> The reason I propose this is because I see Ingress'es as public IP addresses. You might want to have several public IPs pointing to your cluster but also only one IP and then have several hosts point to that IP.</p> <p dir="auto">Initially submitted at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190274412" data-permission-text="Title is private" data-url="https://github.com/kubernetes-retired/contrib/issues/2058" data-hovercard-type="issue" data-hovercard-url="/kubernetes-retired/contrib/issues/2058/hovercard" href="https://github.com/kubernetes-retired/contrib/issues/2058">kubernetes-retired/contrib#2058</a>, but per request of <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aledbf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aledbf">@aledbf</a>, submitting here.</p>
0
<h4 dir="auto">Issue Type:</h4> <p dir="auto">Bug Report</p> <h4 dir="auto">Ansible Version:</h4> <p dir="auto">1.7.2</p> <h4 dir="auto">Environment:</h4> <p dir="auto">N/A</p> <h4 dir="auto">Summary:</h4> <p dir="auto">when using copy module with inline content="{{myvar}}" where myvar is multiline variable, newlines in the destination files got duplicated.</p> <h4 dir="auto">Steps to reproduce</h4> <p dir="auto">Example playbook:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: all vars: multiline: | line1 line2 line3 tasks: - local_action: copy dest=/tmp/output content=&quot;{{multiline}}&quot;"><pre class="notranslate"><code class="notranslate"> --- - hosts: all vars: multiline: | line1 line2 line3 tasks: - local_action: copy dest=/tmp/output content="{{multiline}}" </code></pre></div> <p dir="auto">Run as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -c local -i &quot;127.0.0.1,&quot; content_newlines.yml"><pre class="notranslate"><code class="notranslate">ansible-playbook -c local -i "127.0.0.1," content_newlines.yml </code></pre></div> <h4 dir="auto">Expected result</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat /tmp/output line1 line2 line3"><pre class="notranslate"><code class="notranslate">$ cat /tmp/output line1 line2 line3 </code></pre></div> <h4 dir="auto">Actual results</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat /tmp/output line1 line2 line3 "><pre class="notranslate"><code class="notranslate">$ cat /tmp/output line1 line2 line3 </code></pre></div>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.5.3 (release1.5.3 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/157b783521b52d9c3f357e811f6be0ec7600a89e/hovercard" href="https://github.com/ansible/ansible/commit/157b783521b52d9c3f357e811f6be0ec7600a89e"><tt>157b783</tt></a>) last updated 2014/03/27 15:54:18 (GMT +200)</p> <h5 dir="auto">Environment:</h5> <p dir="auto">CentOS 6</p> <h5 dir="auto">Summary:</h5> <p dir="auto">When I initialize a variable of type list "tmcAdmin_Update_Notify" ansible the action that triggers the notification causes an error:</p> <p dir="auto">ERROR: change handler (['handler_1', 'handler_2']) is not defined</p> <p dir="auto">What is the syntax to set a variable as the one below in the notify:<br> my_var:<br>    - handler_1<br>    - handler_2</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">ansible-playbook -i hosts --limit=bt1sssbg site.yml -t tmcAdmin --verbose</p> <h2 dir="auto">site.yml file :</h2> <ul dir="auto"> <li> <p dir="auto">hosts: testbedUH</p> <p dir="auto">vars:<br> tmcAdmin_Update_Notify:</p> <ul dir="auto"> <li>handler_1</li> <li>handler_2</li> </ul> <p dir="auto">tasks:</p> <ul dir="auto"> <li>include: tmcAdmin.yml<br> tags: tmcAdmin</li> </ul> <p dir="auto">handlers:</p> <ul dir="auto"> <li>name: handler_1<br> action: shell echo "handler_1"<br> tags: tmcAdmin</li> <li>name: handler_2<br> action: shell echo "handler_2"<br> tags: tmcAdmin</li> </ul> </li> </ul> <h2 dir="auto">tmcAdmin.yml</h2> <h1 dir="auto">Actions :</h1> <ul dir="auto"> <li>name: Besoin mettre a jour composant TMC_ADMIN<br> action: bytel-installer name=TMC_ADMIN version={{ TMC_ADMIN_version }} state=updated path={{ ansibleTemp_path }} args="-t {{ tomcatVersion }}"<br> notify: $tmcAdmin_Update_Notify</li> </ul> <h5 dir="auto">Expected Results:</h5> <p dir="auto">No error :)</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">ERROR: change handler (['handler_1', 'handler_2']) is not defined</p>
0
<p dir="auto">The .svg profile as generated by pprof's <code class="notranslate">web</code> command includes some Javascript from <a href="https://www.cyberz.org/projects/SVGPan/SVGPan.js" rel="nofollow">https://www.cyberz.org/projects/SVGPan/SVGPan.js</a></p> <p dir="auto">the file is linked here: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/golang/go/blob/5f8423844463b3b77588e46ea57f44d8b69a1564/src/cmd/pprof/internal/driver/driver.go#L628">go/src/cmd/pprof/internal/driver/driver.go</a> </p> <p class="mb-0 color-fg-muted"> Line 628 in <a data-pjax="true" class="commit-tease-sha" href="/golang/go/commit/5f8423844463b3b77588e46ea57f44d8b69a1564">5f84238</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="L628" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="628"></td> <td id="LC628" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">flagSVGPan</span>: <span class="pl-s1">flag</span>.<span class="pl-en">String</span>(<span class="pl-s">"svgpan"</span>, <span class="pl-s">"https://www.cyberz.org/projects/SVGPan/SVGPan.js"</span>, <span class="pl-s">"URL for SVGPan Library"</span>), </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">I found it surprising to find pprof's SVG has external dependencies. Not just because of tracking reasons (I don't think cyberz.org need to know about my pprof usage), but also because it doesn't always work (e.g. working on a train).</p> <p dir="auto">Would it be possible to just include the javascript code verbatim in the .SVG, or otherwise to not include the external link by default?</p>
<p dir="auto">by <strong>shiblon</strong>:</p> <pre class="notranslate">In the Effective Go document, the following example appears in the Goroutines section: func Serve(queue chan *Request) { for req := range queue { &lt;-sem go func() { process(req) sem &lt;- 1 }() } } This example is not going to work, however, because "req" gets reused at every iteration of the loop. In order for it to be correct, it would either need "req := req" at the beginning of the loop body, or the request should be passed in thus: func Serve(queue chan *Request) { for req := range queue { &lt;-sem go func(r *Request) { process(r) sem &lt;- 1 }(req) } } I am not sure which of the two approaches would be more idiomatic in Go (creating a new local variable at every iteration vs. passing in a parameter), but the one that is currently there appears incorrect.</pre>
0
<p dir="auto">If a parent object of the Bootstrap Carousel is hidden using the jQuery .hide() method while the Carousel is in the middle of animating to a new slide, the Carousel will no longer animate when the same parent is unhidden using the jQuery .show() method.</p> <p dir="auto">This can be duplicated on the Carousel demo page found here: <a href="http://twitter.github.com/bootstrap/javascript.html#carousel">http://twitter.github.com/bootstrap/javascript.html#carousel</a></p> <p dir="auto">In a debug console on that page, one can hide the Carousel's parent by using the following javascript:<br> $("section#carousel").hide()</p> <p dir="auto">and then show it's parent again using this line:<br> $("section#carousel").show()</p> <p dir="auto">If the parent is hidden when the demo images are moving between slides, and then shown again later, there is no way to trigger the animations again until the page is reloaded.</p> <p dir="auto">At a first pass, it looks like this.sliding is never reset back to false unless the animations are able to finish correctly. Hiding the parent seems to cancel the animations without their events triggering a reset of the this.sliding variable.</p> <p dir="auto">When I tried adding a "reset" that would put this.sliding back to false, it still didn't work. I'm not sure what I'm missing.</p> <p dir="auto">I have been unable to find a suitable workaround so far.</p>
<p dir="auto">This is only a bug tested in IE 9 and 10. The bug is not produced in Firefox or Chrome. Also note that this bug in ONLY reproduced in modals. This method works for selecting text when not in a modal window.</p> <p dir="auto">I am programmatically selecting text from a div in a modal. The focus event in Bootstrap <del>2.3.1 on line 907 (shown below)</del> conflicts with the selecting of text.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enforceFocus: function () { var that = this $(document).on('focusin.modal', function (e) { if (that.$element[0] !== e.target &amp;&amp; !that.$element.has(e.target).length) { that.$element.focus() } }) }"><pre class="notranslate"><code class="notranslate">enforceFocus: function () { var that = this $(document).on('focusin.modal', function (e) { if (that.$element[0] !== e.target &amp;&amp; !that.$element.has(e.target).length) { that.$element.focus() } }) } </code></pre></div> <p dir="auto">Below is code to duplicate the issue only in IE.</p> <p dir="auto">HTML</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;button href=&quot;#myModal&quot; role=&quot;button&quot; class=&quot;btn&quot; data-toggle=&quot;modal&quot;&gt;Show Modal&lt;/button&gt; &lt;div id=&quot;myModal&quot; class=&quot;modal hide fade&quot; data-backdrop=&quot;false&quot;&gt; &lt;div class=&quot;modal-header&quot;&gt; &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot; aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/button&gt; &lt;h3&gt;Modal header&lt;/h3&gt; &lt;/div&gt; &lt;div class=&quot;modal-body&quot;&gt; &lt;button class=&quot;btn textSelector&quot;&gt;Select All&lt;/button&gt; &lt;div&gt; &lt;table class=&quot;table table-bordered table-striped table-condensed&quot;&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Username&lt;/th&gt; &lt;th&gt;Password&lt;/th&gt; &lt;th&gt;Email&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Tuna Child&lt;/td&gt; &lt;td&gt;tchild&lt;/td&gt; &lt;td&gt;t&lt;/td&gt; &lt;td&gt;[email protected]&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Joshua Hazengoa&lt;/td&gt; &lt;td&gt;jhazengoa&lt;/td&gt; &lt;td&gt;jj32&lt;/td&gt; &lt;td&gt;[email protected]&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;modal-footer&quot;&gt; &lt;button class=&quot;btn btn-primary&quot; data-dismiss=&quot;modal&quot;&gt;Close&lt;/button&gt; &lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;button href="#myModal" role="button" class="btn" data-toggle="modal"&gt;Show Modal&lt;/button&gt; &lt;div id="myModal" class="modal hide fade" data-backdrop="false"&gt; &lt;div class="modal-header"&gt; &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt; &lt;h3&gt;Modal header&lt;/h3&gt; &lt;/div&gt; &lt;div class="modal-body"&gt; &lt;button class="btn textSelector"&gt;Select All&lt;/button&gt; &lt;div&gt; &lt;table class="table table-bordered table-striped table-condensed"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Username&lt;/th&gt; &lt;th&gt;Password&lt;/th&gt; &lt;th&gt;Email&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;Tuna Child&lt;/td&gt; &lt;td&gt;tchild&lt;/td&gt; &lt;td&gt;t&lt;/td&gt; &lt;td&gt;[email protected]&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Joshua Hazengoa&lt;/td&gt; &lt;td&gt;jhazengoa&lt;/td&gt; &lt;td&gt;jj32&lt;/td&gt; &lt;td&gt;[email protected]&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="modal-footer"&gt; &lt;button class="btn btn-primary" data-dismiss="modal"&gt;Close&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; </code></pre></div> <p dir="auto">The JavaScript to simulate selecting the text:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$('.textSelector').click(function(){ var text = $(this).siblings().find(&quot;table&quot;).parent()[0]; var range; if(document.body.createTextRange){ //ms range = document.body.createTextRange(); range.moveToElementText(text); range.select(); }else if(window.getSelection){ //all others var selection = window.getSelection(); range = document.createRange(); range.selectNodeContents(text); selection.removeAllRanges(); selection.addRange(range); } });"><pre class="notranslate"><code class="notranslate">$('.textSelector').click(function(){ var text = $(this).siblings().find("table").parent()[0]; var range; if(document.body.createTextRange){ //ms range = document.body.createTextRange(); range.moveToElementText(text); range.select(); }else if(window.getSelection){ //all others var selection = window.getSelection(); range = document.createRange(); range.selectNodeContents(text); selection.removeAllRanges(); selection.addRange(range); } }); </code></pre></div> <p dir="auto">I have isolated the issue in the bootstrap source on line 907 (as mentioned above) and have added a bandage fix to my code above, at the top of the click event:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$(document).off(&quot;focusin.modal&quot;);"><pre class="notranslate"><code class="notranslate">$(document).off("focusin.modal"); </code></pre></div>
0
<p dir="auto">problem:When sharding proxy and SQL hint are used for database splitting, does the read-write separation configuration not take effect?<br> environment:shardingproxy-5.1.2,mysql5.7<br> What should I do if I want to use hint and read / write split config at the same time?</p>
<h2 dir="auto">Bug Report</h2> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">master <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/shardingsphere/commit/6a70d74de389b16dd2b1a30c62c15f9f49954d52/hovercard" href="https://github.com/apache/shardingsphere/commit/6a70d74de389b16dd2b1a30c62c15f9f49954d52"><tt>6a70d74</tt></a></p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Pass PostgreSQL Proxy integration test</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Integration tests failed.</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">Proxy returned duplicated ReadyForQuery when error occurred, which messed up the frontend connection.</p> <p dir="auto">The 168 ReadyForQuery is duplicated, which messed up the frontend connection.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20503072/136653586-9a688938-c956-4f69-b487-a6a0f9372d83.png"><img src="https://user-images.githubusercontent.com/20503072/136653586-9a688938-c956-4f69-b487-a6a0f9372d83.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a href="https://github.com/apache/shardingsphere/files/7315345/pg_proxy_it_failed.pcapng.zip">pg_proxy_it_failed.pcapng.zip</a></p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./mvnw -B clean install -am -pl shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite -DskipTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Drat.skip=true -Djacoco.skip=true -T1C -Ddockerfile.useProxy=false -f pom.xml -Dit.env.docker ./mvnw -B install -Dit.adapters=proxy -Dit.databases=PostgreSQL -Dit.scenarios=db -Dit.env.type=DOCKER -f shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/pom.xml"><pre class="notranslate"><code class="notranslate">./mvnw -B clean install -am -pl shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite -DskipTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Drat.skip=true -Djacoco.skip=true -T1C -Ddockerfile.useProxy=false -f pom.xml -Dit.env.docker ./mvnw -B install -Dit.adapters=proxy -Dit.databases=PostgreSQL -Dit.scenarios=db -Dit.env.type=DOCKER -f shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-suite/pom.xml </code></pre></div>
0
<p dir="auto">in py3, the following should correctly raise an <code class="notranslate">IndexError</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: s = Series(range(5),index=list('aacde')) In [2]: s[5] IndexError"><pre class="notranslate"><code class="notranslate">In [1]: s = Series(range(5),index=list('aacde')) In [2]: s[5] IndexError </code></pre></div> <p dir="auto">however<br> a positional indexer that is in the range should work<br> <code class="notranslate">s[3]</code></p> <p dir="auto">Further more, this must be a monotonic increasing duplicated index to trigger</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [8]: Series(range(5),index=list('aabcd'))[3] IndexError: 3 In [9]: Series(range(5),index=list('aadcb'))[3] Out[9]: 3"><pre class="notranslate"><code class="notranslate">In [8]: Series(range(5),index=list('aabcd'))[3] IndexError: 3 In [9]: Series(range(5),index=list('aadcb'))[3] Out[9]: 3 </code></pre></div> <p dir="auto">simple change needed <a href="https://github.com/pydata/pandas/blob/master/pandas/core/index.py#L1849">here</a><br> in that if its an integer and in the range of the index it can return that value.</p> <p dir="auto">Though <em>maybe</em> we should just detect this in the cython code (<code class="notranslate">index.pyx/Index/_get_loc_duplicated</code>)</p> <p dir="auto">needless to say, no tests for this :&lt;</p>
<p dir="auto">While using a <code class="notranslate">groupby</code>, applying an <code class="notranslate">expanding</code> function duplicates the grouped dimensions. I would expect the result of this to work like <code class="notranslate">groupby.cumsum</code> where the <code class="notranslate">expanding</code> function is applied over the groups and then the result has the same index as the original data frame.</p> <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <p dir="auto">My Data Frame sample</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; dataframe one cont cat1 0 a 0 b 1 1 a 2 b 3 2 a 4 b 5 3 a 6 b 7 4 a 8 b 9 5 a 10 b 11 6 a 12 b 13 7 a 14 b 15"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; dataframe one cont cat1 0 a 0 b 1 1 a 2 b 3 2 a 4 b 5 3 a 6 b 7 4 a 8 b 9 5 a 10 b 11 6 a 12 b 13 7 a 14 b 15 </code></pre></div> <p dir="auto">Example of the function call and incorrect output.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; dataframe.groupby(level=1).expanding(min_periods=1).mean() one cat1 cont cat1 a 0 a 0.0 1 a 1.0 2 a 2.0 3 a 3.0 4 a 4.0 5 a 5.0 6 a 6.0 7 a 7.0 b 0 b 1.0 1 b 2.0 2 b 3.0 3 b 4.0 4 b 5.0 5 b 6.0 6 b 7.0 7 b 8.0"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; dataframe.groupby(level=1).expanding(min_periods=1).mean() one cat1 cont cat1 a 0 a 0.0 1 a 1.0 2 a 2.0 3 a 3.0 4 a 4.0 5 a 5.0 6 a 6.0 7 a 7.0 b 0 b 1.0 1 b 2.0 2 b 3.0 3 b 4.0 4 b 5.0 5 b 6.0 6 b 7.0 7 b 8.0 </code></pre></div> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; dataframe.groupby(level=1).cumsum() one cont cat1 0 a 0.0 b 1.0 1 a 1.0 b 2.0 2 a 2.0 b 3.0 3 a 3.0 b 4.0 4 a 4.0 b 5.0 5 a 5.0 b 6.0 6 a 6.0 b 7.0 7 a 7.0 b 8.0"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; dataframe.groupby(level=1).cumsum() one cont cat1 0 a 0.0 b 1.0 1 a 1.0 b 2.0 2 a 2.0 b 3.0 3 a 3.0 b 4.0 4 a 4.0 b 5.0 5 a 5.0 b 6.0 6 a 6.0 b 7.0 7 a 7.0 b 8.0 </code></pre></div> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.5.0.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 18.1 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None boto: None pandas_datareader: None"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.5.0.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 18.1 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None boto: None pandas_datareader: None </code></pre></div>
0
<p dir="auto">anyone can tell me the details about how to install c# plugin for vscode .</p> <p dir="auto">by the way, i have asked question "<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="126606955" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2003" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2003/hovercard" href="https://github.com/microsoft/vscode/issues/2003">#2003</a>",but i don't understand the following answer , anyone can help me ?</p> <p dir="auto">The source is currently in transit and will move to the OmniSharp org. What you need to do is this:</p> <p dir="auto">find the extension folder for ./script/code in your home dir, like ~/.code-oss-build-dev/extension<br> add a sym link that points to the omnisharp extension (for now from your installation, soon from the github project)</p>
<p dir="auto">When i build vscode source code and use ".\scripts\code.bat" to start the instance of vscode, i found i can not found c# type when i open language mode selector ,anyone can help me?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15098626/12319657/b49db662-bade-11e5-9029-14e0e30f4b8f.png"><img src="https://cloud.githubusercontent.com/assets/15098626/12319657/b49db662-bade-11e5-9029-14e0e30f4b8f.png" alt="unablefoundc" style="max-width: 100%;"></a></p>
1
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Windows</li> </ul> <p dir="auto">Can i use emmet zen coding html in laravel blade file and vuejs .vue file</p> <p dir="auto">i try to search how to resolve but not found any resolve way</p> <p dir="auto">Thanks.</p> <p dir="auto">ps. sorry for my bad english</p>
<ul dir="auto"> <li>VSCode Version: 1.3.1</li> <li>OS Version: Ubuntu 16.06</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Install <code class="notranslate">Nunjucks</code> plugin.</li> <li>Type <code class="notranslate">p</code> and press tab.</li> <li><code class="notranslate">\t</code> was inserted.</li> </ol> <p dir="auto">Expected Result:</p> <ol dir="auto"> <li><code class="notranslate">p</code> expanded to <code class="notranslate">&lt;p&gt;&lt;/p&gt;</code>.</li> </ol> <p dir="auto">I was looking for the setting to enable <code class="notranslate">emmet</code>, but it seems hard-coded in the source (<a href="https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/emmet/node/editorAccessor.ts#L20">src/vs/workbench/parts/emmet/node/editorAccessor.ts#L20</a>).</p> <p dir="auto">Can we modify this value through preference?</p> <p dir="auto">Thanks.</p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9888690/6890676/b74d6efc-d664-11e4-9e83-cdd673115e73.png"><img src="https://cloud.githubusercontent.com/assets/9888690/6890676/b74d6efc-d664-11e4-9e83-cdd673115e73.png" alt="bugatomnewfolder" style="max-width: 100%;"></a></p> <p dir="auto">When we try to create a New Folder, it results in a failure if there is already a file with same name in the corresponding folder.</p> <p dir="auto">The image attached should be self explanatory.</p>
<p dir="auto">I have a folder called <em>plugins</em>, and want to create a file called <em>plugins</em>. But I cannot.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/46f7426ece90f4ba1c7ce22ff9645bc28794e5dfbb7bc319d0882e3adbff8f80/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f36343035302f313832353538332f62316636623932382d373163342d313165332d393137362d6436653563666632346363312e706e67"><img src="https://camo.githubusercontent.com/46f7426ece90f4ba1c7ce22ff9645bc28794e5dfbb7bc319d0882e3adbff8f80/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f36343035302f313832353538332f62316636623932382d373163342d313165332d393137362d6436653563666632346363312e706e67" alt="screen shot 2013-12-30 at 6 37 48 pm" data-canonical-src="https://f.cloud.github.com/assets/64050/1825583/b1f6b928-71c4-11e3-9176-d6e5cff24cc1.png" style="max-width: 100%;"></a></p>
1
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <p dir="auto">`<br> import pandas as pd</p> <p dir="auto">df = pd.DataFrame([[0,0],[1,1],[np.NaN,0],[np.NaN,1],[np.NaN,np.NaN]], columns = ['a','b'])</p> <p dir="auto">df<br> Out[3]:<br> a b<br> 0 0.0 0.0<br> 1 1.0 1.0<br> 2 NaN 0.0<br> 3 NaN 1.0<br> 4 NaN NaN</p> <p dir="auto">df.sum(axis=1, skipna=True)<br> Out[4]:<br> 0 0.0<br> 1 2.0<br> 2 0.0<br> 3 1.0<br> 4 0.0<br> dtype: float64<br> `</p> <h4 dir="auto">Problem description</h4> <p dir="auto">The <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.sum.html" rel="nofollow">documentation</a> for pandas.DataFrame.sum indicates that:</p> <blockquote> <p dir="auto">skipna : boolean, default True<br> Exclude NA/null values. <strong><em>If an entire row/column is NA, the result will be NA</em></strong></p> </blockquote> <p dir="auto">However, it appears that the actual behavior under the skipna option within this particular environment is for the summation routine to evaluate full rows of na values to 0 rather than the documented value of NA.</p> <p dir="auto">Currently this behavior only occurs on within my local windows environment, and NOT within the linux environment my organization's grid runs on. I have provided output for pd.versions for both environments below to help localize this issue.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">df.sum(axis=1, skipna=True)<br> Out[6]:<br> 0 0.0<br> 1 2.0<br> 2 0.0<br> 3 1.0<br> 4 NaN<br> dtype: float64</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <p dir="auto"><em><strong>Windows version in which issue is present</strong></em></p> <p dir="auto">pd.show_versions()</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.11.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 7<br> machine: AMD64<br> processor: Intel64 Family 6 Model 45 Stepping 7, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.19.2<br> nose: 1.3.7<br> pip: 8.1.1<br> setuptools: 20.3<br> Cython: 0.23.4<br> numpy: 1.11.0<br> scipy: 0.17.0<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 4.1.2<br> sphinx: 1.3.5<br> patsy: 0.4.0<br> dateutil: 2.5.1<br> pytz: 2016.2<br> blosc: None<br> bottleneck: 1.0.0<br> tables: 3.2.2<br> numexpr: 2.5.2<br> matplotlib: 1.5.1<br> openpyxl: 2.3.2<br> xlrd: 0.9.4<br> xlwt: 1.0.0<br> xlsxwriter: 0.8.4<br> lxml: 3.6.0<br> bs4: 4.4.1<br> html5lib: 0.999<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.12<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.39.0<br> pandas_datareader: None</p> <p dir="auto"><em><strong>Linux version in which issue is NOT present</strong></em></p> <p dir="auto">pd.show_versions()</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.12.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 2.6.32-642.15.1.el6.x86_64<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.19.2<br> nose: 1.3.7<br> pip: 8.1.2<br> setuptools: 27.2.0<br> Cython: None<br> numpy: 1.11.2<br> scipy: 0.18.1<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 5.1.0<br> sphinx: 1.4.8<br> patsy: 0.4.1<br> dateutil: 2.4.1<br> pytz: 2016.7<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.5.1<br> openpyxl: 2.4.0<br> xlrd: 1.0.0<br> xlwt: 1.1.2<br> xlsxwriter: 0.9.3<br> lxml: None<br> bs4: None<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.1.2<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: None<br> pandas_datareader: 0.2.1</p> </details>
<h3 dir="auto">Summary</h3> <p dir="auto">The question is what the sum of a Series of all NaNs should return (which is equivalent to an empty Series after skipping the NaNs): NaN or 0?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: s = Series([np.nan]) In [2]: s.sum(skipna=True) # skipping NaNs is the default Out[2]: nan or 0 &lt;---- DISCUSSION POINT In [3]: s.sum(skipna=False) Out[3]: nan"><pre class="notranslate"><code class="notranslate">In [1]: s = Series([np.nan]) In [2]: s.sum(skipna=True) # skipping NaNs is the default Out[2]: nan or 0 &lt;---- DISCUSSION POINT In [3]: s.sum(skipna=False) Out[3]: nan </code></pre></div> <p dir="auto">The reason this is a discussion point has the following cause: the internal nansum implementation of pandas returns NaN. But, when bottleneck is installed, pandas will use bottlenecks implementation of nansum, which returns 0 (for the versions &gt;= 1.0).<br> Bottleneck changed the behaviour from returning NaN to returning 0 to model it after numpy's nansum function.</p> <p dir="auto">This has the very annoying consequence that depending on whether bottleneck is installed or not (which is only an optional dependency), you get a different behaviour.</p> <p dir="auto">So the decision we need to make, is to either:</p> <ul dir="auto"> <li>adapt pandas internal implementation to return 0, so in all cases 0 is returned for all NaN/empty series.</li> <li>workaround bottlenecks behaviour or not use it for nansum, in order to consistently return NaN instead of 0</li> <li>choose one of both above as the default, but have an option to switch behaviour</li> </ul> <hr> <p dir="auto">Original title: <strong>nansum in bottleneck 1.0 will return 0 for all NaN arrays instead of NaN</strong></p> <p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56408343" data-permission-text="Title is private" data-url="https://github.com/pydata/bottleneck/issues/96" data-hovercard-type="issue" data-hovercard-url="/pydata/bottleneck/issues/96/hovercard" href="https://github.com/pydata/bottleneck/issues/96">pydata/bottleneck#96</a><br> xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56703567" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/9421" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/9421/hovercard" href="https://github.com/pandas-dev/pandas/issues/9421">#9421</a></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Tests are turned off for bottleneck &gt;1.0 (xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="104823637" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/10986" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/10986/hovercard" href="https://github.com/pandas-dev/pandas/pull/10986">#10986</a>)</li> </ul> <p dir="auto">This matches a change from numpy 1.8 -&gt; 1.9.</p> <p dir="auto">We should address this for pandas 0.16.</p> <p dir="auto">Should we work around the new behavior (probably the simplest choice) or change nansum in pandas?</p>
1
<pre class="notranslate">Consider this playground program: <a href="http://play.golang.org/p/0uxQi6r0y7" rel="nofollow">http://play.golang.org/p/0uxQi6r0y7</a> It does not, of course, produce 2 billion lines of output. At some point the output is truncated and the program terminated for producing too much output. In my test, the response JSON object had 43887 elements in the "Events" array. The javascript running on the page, though, crashes after printing only part of the response. In my test, it printed 7948 "asdf"s before crashing with "Uncaught RangeError: Maximum call stack size exceeded". The JS stack trace indicates a recursive function 'next' at playground.js:59. Additionally, my browser pegs one core for about 20 seconds while producing even this much output. I suggest that the limit on output size be truncated more aggressively or the javascript be made more efficient.</pre>
<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. Run the following program on a Raspberry PI: <a href="http://play.golang.org/p/oaT1Gm_4sZ" rel="nofollow">http://play.golang.org/p/oaT1Gm_4sZ</a> What is the expected output? I expect the application doesn't crash. What do you see instead? The application crashes with a SIGILL: illegal instruction. Stacktrace follows: go run main.go SIGILL: illegal instruction PC=0x10c90 main.HomogRotate3D(0x3d4ccccd, 0x0, 0x3f800000, 0x0, 0x0, ...) /home/pi/src/raspberry_issue/main.go:12 +0x90 fp=0xb6e3cf2c main.main() /home/pi/src/raspberry_issue/main.go:19 +0x70 fp=0xb6e3cf8c runtime.main() /home/pi/src/go/src/pkg/runtime/proc.c:220 +0x100 fp=0xb6e3cfc0 runtime.goexit() /home/pi/src/go/src/pkg/runtime/proc.c:1394 fp=0xb6e3cfc0 goroutine 2 [runnable]: runtime.MHeap_Scavenger() /home/pi/src/go/src/pkg/runtime/mheap.c:439 runtime.goexit() /home/pi/src/go/src/pkg/runtime/proc.c:1394 trap 0x6 error 0x0 oldmask 0x0 r0 0x0 r1 0x2 r2 0x0 r3 0x0 r4 0x0 r5 0x0 r6 0x0 r7 0x104c26 r8 0xc24e107e r9 0x64170 r10 0x10301140 fp 0x407b8 ip 0xb6e3ceb0 sp 0xb6e3cec4 lr 0x29298 pc 0x10c90 cpsr 0x60000010 fault 0x0 exit status 2 Which compiler are you using (5g, 6g, 8g, gccgo)? 5g Which operating system are you using? $ cat /etc/debian_version 7.0 $ uname -r 3.6.11-rpi-aufs Which version are you using? (run 'go version') $ go version go version go1.2 linux/arm $ cat /proc/cpuinfo Processor : ARMv6-compatible processor rev 7 (v6l) BogoMIPS : 697.95 Features : swp half thumb fastmult vfp edsp java tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xb76 CPU revision : 7 Hardware : BCM2708 Revision : 000e Serial : 00000000b7d2dc6f</pre>
0
<p dir="auto">the fact that <code class="notranslate">Exceptions</code> occurring in <code class="notranslate">Tasks</code> are not propagated back to the main thread makes debugging difficult.</p> <p dir="auto">at the REPL:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; throw(Exception) ERROR: Exception # printed in red julia&gt; @async throw(Exception) Task (failed) @0x00007f6654996680 # in black"><pre class="notranslate"><code class="notranslate">julia&gt; throw(Exception) ERROR: Exception # printed in red julia&gt; @async throw(Exception) Task (failed) @0x00007f6654996680 # in black </code></pre></div> <p dir="auto">on the unix command line:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ julia -e 'throw(Exception)' ERROR: Exception in process_options at ./client.jl:295 in _start at ./client.jl:413 $ echo $? 1 $ julia -e '@async throw(Exception)' $ echo $? 0"><pre class="notranslate"><code class="notranslate">$ julia -e 'throw(Exception)' ERROR: Exception in process_options at ./client.jl:295 in _start at ./client.jl:413 $ echo $? 1 $ julia -e '@async throw(Exception)' $ echo $? 0 </code></pre></div>
<p dir="auto">If an <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/async/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/async">@async</a> block encounters an error it silently stops running. Any way to at least print out some errors?</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Make it easier to create a terminal similar to Windows Terminal that capable of running on Windows 7.</p> <h1 dir="auto">A clear and concise description of what the problem is that the new feature would solve.</h1> <p dir="auto">Provide a better terminal experience for organizations that still utilize Windows 7.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Missing features:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> You'll need conpty to be able to serve as the console API server on windows 7. You'd have to take the conhost.exe and bring it with you to be able to run on Windows 7. Dependent on the next item:</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Conhost.exe was changed for Windows 8 to use condrv to handle console API calls, instead of <em>whatever it was using before</em>. So if you want to run conhost on Windows 7, you'll need to update it to be able to handle the windows 7 style connection. - Help wanted</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> You'll need XAML Islands ported to windows 7 to be able to host our UI - XAML Islands can be used in WPF. See this <a href="https://blogs.windows.com/windowsdeveloper/2018/11/02/xaml-islands-a-deep-dive-part-1/" rel="nofollow">blog post</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Need appx infrastructure to be able to install the .msix on Windows 7. Msix packaging supports Win7.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Need SxS WinRT activation downlevel to be able to support running<br> the terminal as administrator. WPF can be used for this instead.</li> </ul> <p dir="auto">Probably more. Add to the list as needed.</p>
<h1 dir="auto">BackgroundImage &amp; Drag to under the taskbar</h1> <p dir="auto">I tried to customize my terminal with a GIF at the rightRight. It looks so normal before I drag him to under the taskbar. When I did it, actually it is the GIF under the bar, its window got dark and I couldn't do anything with it except close it.</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> </ul> <p dir="auto">Currently, using the <code class="notranslate">"peerDependencies"</code> field in package.json is forbidden:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; dtslint types &quot;my-plugin&quot; Error: .../my-plugin/package.json should not include field peerDependencies"><pre class="notranslate"><code class="notranslate">&gt; dtslint types "my-plugin" Error: .../my-plugin/package.json should not include field peerDependencies </code></pre></div> <p dir="auto">Some library definitions may depend on a host package version which should not be imported twice, e.g. due to the host packages exporting duplicate definitions in this case. This can happen when the application requires a different version of the host package than the definitions of the library.</p> <p dir="auto">Using <code class="notranslate">"peerDependencies"</code> solves this problem by only allowing a single specific version of the host package to be installed.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/d3-hexbin</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have <a href="https://stackoverflow.com/questions/45805742/d3-and-d3-hexbin-in-typescript-as-global-libraries" rel="nofollow">a question</a> that is ignored in StackOverflow (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/uncovertruth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/uncovertruth">@uncovertruth</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tomwanzek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tomwanzek">@tomwanzek</a></li> </ul> </li> </ul> <hr> <p dir="auto">So, I'm using <code class="notranslate">d3</code> and <code class="notranslate">d3-hexbin</code> as global libraries:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script src=&quot;https://d3js.org/d3.v4.min.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;https://d3js.org/d3-hexbin.v0.2.min.js&quot;&gt;&lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;script src="https://d3js.org/d3.v4.min.js"&gt;&lt;/script&gt; &lt;script src="https://d3js.org/d3-hexbin.v0.2.min.js"&gt;&lt;/script&gt; </code></pre></div> <p dir="auto">... and referencing them in <code class="notranslate">.ts</code> as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/// &lt;reference types=&quot;d3&quot; /&gt; /// &lt;reference types=&quot;d3-hexbin&quot; /&gt;"><pre class="notranslate"><code class="notranslate">/// &lt;reference types="d3" /&gt; /// &lt;reference types="d3-hexbin" /&gt; </code></pre></div> <p dir="auto">However, although this works:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const svg = d3.select('#hitmap')"><pre class="notranslate"><code class="notranslate">const svg = d3.select('#hitmap') </code></pre></div> <p dir="auto">... this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const hexbin = d3.hexbin()"><pre class="notranslate"><code class="notranslate">const hexbin = d3.hexbin() </code></pre></div> <p dir="auto">... fails with a :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Property 'hexbin' does not exist on type 'typeof &quot;/Users/bytter/node_modules/@types/d3/index&quot;'"><pre class="notranslate"><code class="notranslate">Property 'hexbin' does not exist on type 'typeof "/Users/bytter/node_modules/@types/d3/index"' </code></pre></div> <p dir="auto">By looking at the <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/d3-hexbin/d3-hexbin-tests.ts">tests</a>, I can see that:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import * as d3Hexbin from 'd3-hexbin';"><pre class="notranslate"><code class="notranslate">import * as d3Hexbin from 'd3-hexbin'; </code></pre></div> <p dir="auto">Would export the <code class="notranslate">hexbin()</code> function directly into the <code class="notranslate">d3Hexbin</code> namespace, but I'm unable to figure out how to conciliate this with <code class="notranslate">d3-hexbin</code> as a global library.</p>
0
<p dir="auto">问题描述:<br> 某个容器中嵌套一个1像素的Stack,这个Stack中有个漂浮的按钮的点击不好用,请问如何解决?<br> 代码如下:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new SizedBox(width: 1.0, height: 1.0, child: new Stack(overflow: Overflow.visible, children: &lt;Widget&gt;[ new Positioned(child: new InkWell(onTap: () { print('点击了');//此处不执行 }, child: new Text('按钮')), right: 0.0, top: 16.0,) ])), ``’"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-c1">SizedBox</span>(width<span class="pl-k">:</span> <span class="pl-c1">1.0</span>, height<span class="pl-k">:</span> <span class="pl-c1">1.0</span>, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Stack</span>(overflow<span class="pl-k">:</span> <span class="pl-c1">Overflow</span>.visible, 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">Positioned</span>(child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">InkWell</span>(onTap<span class="pl-k">:</span> () { <span class="pl-en">print</span>(<span class="pl-s">'点击了'</span>);<span class="pl-c">//此处不执行</span> }, child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'按钮'</span>)), right<span class="pl-k">:</span> <span class="pl-c1">0.0</span>, top<span class="pl-k">:</span> <span class="pl-c1">16.0</span>,) ])), ``’</pre></div>
<p dir="auto">Internal: b/143100923</p> <p dir="auto">When a <code class="notranslate">Stack</code> contains <code class="notranslate">MyWidget</code> inside of a <code class="notranslate">Positioned</code>.</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" Stack( overflow: Overflow.visible, children: [ Positioned( top: -50.0, child: MyWidget(), )], );"><pre class="notranslate"> <span class="pl-c1">Stack</span>( overflow<span class="pl-k">:</span> <span class="pl-c1">Overflow</span>.visible, children<span class="pl-k">:</span> [ <span class="pl-c1">Positioned</span>( top<span class="pl-k">:</span> <span class="pl-k">-</span><span class="pl-c1">50.0</span>, child<span class="pl-k">:</span> <span class="pl-c1">MyWidget</span>(), )], );</pre></div> <p dir="auto">Since overflow is <code class="notranslate">Overflow.visible</code>, <code class="notranslate">MyWidget</code> displays outside of the <code class="notranslate">Stack</code>. However, it doesn't accept gestures in the overflowed area. I have no idea if it's easy, difficult or downright impossible to make this change, but I can think of a gazillion use cases for that, which at the moment must be satisfied by using the much more complex Overlay, or some Stack tricks.</p> <p dir="auto">And in case it's impossible to make this change, then at least the documentation should clearly state that overflowed content can't receive gestures.</p> <p dir="auto">Also, see: <a href="https://stackoverflow.com/questions/51366761/in-flutter-how-can-a-positioned-widget-feel-taps-outside-of-its-parent-stack-ar" rel="nofollow">https://stackoverflow.com/questions/51366761/in-flutter-how-can-a-positioned-widget-feel-taps-outside-of-its-parent-stack-ar</a></p>
1
<p dir="auto"><del>It seems the only documentation of model persistence is in the Quick Start tutorial. I think it needs to be covered in the User Guide, mentioning security and forward-compatibility caveats pertaining to pickle. It might note the benefits of joblib (for large models at least) over Pickle. Most other ML toolkits (particularly command-line tools) treat persistence as a very basic operation of the package.</del> (This was fixed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="36540531" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/3317" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/3317/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/3317">#3317</a>)</p> <p dir="auto">Similarly, there should be some comment on saving and loading custom data (input and output). Indeed, I can't find a direct description of the supported data-types; users are unlikely to have played with <code class="notranslate">scipy.sparse</code> before (although the <code class="notranslate">feature_extraction</code> module means they may not need to). Noting the benefits of joblib (without which the user may dump a sparse matrix's <code class="notranslate">data</code>, <code class="notranslate">indices</code>, <code class="notranslate">indptr</code> using <code class="notranslate">.tofile</code>) and memmapping is worthwhile. So may be reference to Pandas which could help manipulate datasets before/after entering Scikit-learn, and provides import/export to a variety of formats (<a href="http://pandas.pydata.org/pandas-docs/dev/io.html" rel="nofollow">http://pandas.pydata.org/pandas-docs/dev/io.html</a>).</p> <p dir="auto">I have recently discovered new users who think the way to import/export large sparse arrays is <code class="notranslate">load_svmlight_format</code>, but then note that the loading/saving takes much more time than the processing they're trying to do... Let's give them a hand.</p>
<p dir="auto">How to save a model (i.e., model persistence) used to be a sub-section of the tutorial and visible directly from the homepage. But since now it's become a sub-sub-section, it's not visible anymore.</p> <p dir="auto">Since it's a very common need it would be nice to make it more prominent. Maybe a section of its own?</p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/322175/22208681/545e3c26-e149-11e6-83cf-f7fc45988503.png"><img src="https://cloud.githubusercontent.com/assets/322175/22208681/545e3c26-e149-11e6-83cf-f7fc45988503.png" alt="basic html and html5 introduction to html5 elements freecodecamp" style="max-width: 100%;"></a></p> <p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/basic-html-and-html5/introduction-to-html5-elements" rel="nofollow">introduction-to-html5-elements</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;h2&gt;CatPhotoApp&lt;/h2&gt; &lt;main&gt; &lt;p&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; &lt;/main&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">This has been reported before but the issue was closed with a link to a completely unrelated issue days ago, there are no currently open bug reports specifically addressing this issue.</p>
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="http://beta.freecodecamp.com/en/challenges/basic-html-and-html5/introduction-to-html5-elements" rel="nofollow">Basic Html and Html5: Introduction to HTML5 Elements</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">The challenge page is stuck in loading since the challenge framework code throws the following error:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6125097/22155822/24cbce34-df31-11e6-8456-5c656eb47075.png"><img src="https://cloud.githubusercontent.com/assets/6125097/22155822/24cbce34-df31-11e6-8456-5c656eb47075.png" alt="react-error-basic-html" style="max-width: 100%;"></a><br> The console shows the same error 44 times.</p> <p dir="auto">Neither reloading, emptying of cache or disabling browser extensions helps.<br> This affects Chrome as well as Firefox.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Firefox 50.1.0 and Chrome 55.0.2883.87 (64-bit)</li> <li>Operating System: Ubuntu 16.04</li> <li>Mobile, Desktop, or Tablet: Desktop</li> </ul>
1
<p dir="auto">Describe what you were doing when the bug occurred:<br> 1.<br> 2.<br> 3.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.7.0-23309eb38</p> <p dir="auto">Call stack: at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163895)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)</p> <p dir="auto">Component stack: at Gl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:345333)<br> at div<br> at div<br> at div<br> at Co (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:263571)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:366677<br> at n (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:276314)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:278724<br> at div<br> at div<br> at Xi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:325177)<br> at Ge (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:207026)<br> at sn (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:216342)<br> at Va (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:293773)<br> at us (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:371869)</p>
<h2 dir="auto">Note: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/anushreesubramani/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/anushreesubramani">@anushreesubramani</a> is working on this, please don’t send PRs if you aren’t her :-)</h2> <hr> <p dir="auto">Similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="262744674" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/11081" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/11081/hovercard" href="https://github.com/facebook/react/issues/11081">#11081</a>.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/anushreesubramani/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/anushreesubramani">@anushreesubramani</a> Wanna take this one as well? It would need to deduplicate based on owner/stack info, similar to how <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="263211360" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/11120" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/11120/hovercard" href="https://github.com/facebook/react/pull/11120">#11120</a> works.</p>
0
<p dir="auto">Can it be possible for the User Access Control permission prompt to be bypassed if PowerToys is configured to auto-start start-up user login as administrator? (I would do it myself, but my coding skills are a bit rusty. :-( )</p>
<p dir="auto">WIndows 10 Pro N / 1909</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 18363.836 PowerToys version: v0.18.0 PowerToy module for which you are reporting the bug (if applicable): N/A"><pre class="notranslate"><code class="notranslate">Windows build number: 18363.836 PowerToys version: v0.18.0 PowerToy module for which you are reporting the bug (if applicable): N/A </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Have v0.17.0 installed, configured to "Always run as administrator" and "Run at startup", and running. -&gt; Download and run "PowerToysSetup-0.18.0-x64.msi". -&gt; Click next until it's done updating. -&gt;right-click/settings on corner icon -&gt; turn off the new stuff that's not FancyZones and wasn't previously existing for the update process to carry over -&gt; restart the computer -&gt; log-in -&gt; right away, UAC prompt for starting PowerToys</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Previously, PowerToys was starting itself as admin without triggering UAC</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">My hypothesis: the PowerToys folder in Task Scheduler being empty after the update suggests that the update process Uninstalled the previous version, and took the scheduled task with it that circumvents the UAC prompt for running as admin, and the new installer never puts it back, despite my settings warranting it being there (to avoid the annoyance of a UAC prompt every boot).</p> <p dir="auto">What I did to fix it was: go to settings, turn off "Always run as admin" -&gt; turn off "Run at startup" -&gt; exit settings -&gt; exit program thru corner icon right-click -&gt; start program thru start menu -&gt; back to settings -&gt; restart as admin -&gt; enable "Always run as admin" -&gt; enable "run at startup" -&gt; refresh Task Scheduler and wha-la, PowerToys has now replaced the Task that circumvents a UAC prompt, that it removed while updating, but failed to regenerate it upon install of both v0.18.0 and v0.18.1, despite it succeeding in bringing over my settings that schedule the task in the first place.</p> <p dir="auto">Seems like you just need to either A) add a step to the end of the installer that checks for "always run as admin" &amp;&amp; "run at startup" being enabled in my settings it saves/copies from my previous install, and then regenerate the task. B) check for the task before running the uninstall and, if it was there, regenerate it anytime after the Uninstaller removes it.</p> <p dir="auto">I assume the installer for the new version is just running the Uninstaller for the old one, so depending on your level of concern for "maximum lean-ness", you could also go deep for option C) that would build a flag into the Uninstall that would skip removing the existing task, if the Updater/Installer tells it to do so, after checking whether the task already exists (because, you know, maybe someone loves UAC prompts and removed it themselves and they'd be annoyed if you put it back after I removed it on purpose). I assume you know why just having the Uninstaller check would be no good (because it wouldn't know on it's own whether it's being run to forever-uninstall, or just as a means to clean reinstall).</p> <p dir="auto">I haven't looked at your code to know anything about what you have going on, so this is all just conjecture and my relishing in the opportunity to talk programming logistics. Certainly, I'm not trying to insult your intelligence, if any of the suggestions where immediately obvious. Or, if a all-around better option is, I'd be interested to know what you end up doing (if this is even something you'll remember to fix by the time it gets priority).</p> <p dir="auto">Alright, <g-emoji class="g-emoji" alias="v" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/270c.png">✌</g-emoji>.</p> <p dir="auto">P.S. Thanks for making the program I've wanted for as far back as I can remember (FancyZones)!</p> <p dir="auto">P.P.S. I'm not going to make a seperate thread for this but, you should know, if you don't already: before v0.18.0, dragging a window and then right-clicking to bring up the zone pop-up used to be smooooth as butter and happen instantly. After v0.18.0 though, the moment I press right-click while dragging, my entire beefy machine absolutely sh*ts the bed for like 2 whole seconds while PowerToys summons the zone overlays. That'd be cool if you ever fixed that.</p> <p dir="auto">Also, please let me assign a key/combo while dragging/dropping on the zone overlays that will "cycle thru the layers" of zones I have set up that are overlapping each other where my mouse pointer is, so i can drop my window on the zone that is underneath the zone that's on top, which is the only one FancyZones will highlight as a drop target.</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report =&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> Currently if you return a new Date() from a getter into an ngModel it freezes up the browser.</p> <p dir="auto"><strong>Expected behavior</strong><br> That it would not cause an infinite loop</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> have a getter method that returns a new Date() and put into an ngModel;<br> <a href="http://plnkr.co/edit/I0i4h6pu9ZqGfJk3XTNy?p=info" rel="nofollow">http://plnkr.co/edit/I0i4h6pu9ZqGfJk3XTNy?p=info</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> to be able to use a generated Date in ngModel.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Ubuntu / Apache</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.1.0<br> Also was doing this in 2.0.0</li> <li><strong>Browser:</strong> [Chrome 53.0.2785.143]</li> <li><strong>Language:</strong> [all | TypeScript 2.0.3]</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 =&gt; search github for a similar issue or PR before submitting"><pre class="notranslate"><code class="notranslate">[x ] bug report =&gt; search github for a similar issue or PR before submitting </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">While implementing a custom <code class="notranslate">ControlValueAccessor</code> which should accept non-primitive model we can easily go into infinitive loop + browser crash. The work-around exists but is non-intuitive and requires boilerplate.</p> <p dir="auto">This happens for the following condition: <code class="notranslate">&lt;custom-control [ngModel]="foo()"&gt;</code> where <code class="notranslate">foo()</code> returns returns objects (non-primitive value) and can return <em>different</em> objects for subsequent calls (equal in terms of content but not equal in terms of references).</p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">People should be able to use functions when binding to <code class="notranslate">[ngModel]</code> as it was the case till recently (I believe that it used to work till RC4 or RC5 where async component was introduced into ngModel impl).</p> <p dir="auto"><strong>Reproduction of the problem</strong></p> <p dir="auto">Here is a minimal plunker based on the real life scenario: <a href="https://plnkr.co/edit/HlIgVEuZ3wfS5hFMjPFm?p=preview" rel="nofollow">https://plnkr.co/edit/HlIgVEuZ3wfS5hFMjPFm?p=preview</a></p> <p dir="auto">In the above plunker there is a simple time-picker implementation that requires the following data structure as its input: <code class="notranslate">{hour: number, minute: number};</code>. It works fine when used as <code class="notranslate">&lt;time-picker [ngModel]="{hour: 13, minute: 30}"&gt;&lt;/time-picker&gt;</code>. But if a user wants to create <code class="notranslate">{hour: 13, minute: 30}</code> in a function call (ex. to convert internal string structure to a structure required by a date-picker) we go into infinitive loop.</p> <p dir="auto">To see infinitive loop + browser crash uncomment the following line <code class="notranslate">&lt;time-picker [ngModel]="strToTime(timeAsStr)"&gt;&lt;/time-picker&gt;</code>.</p> <p dir="auto"><strong>!!!WARNING!!!</strong> IT WILL CRASH YOUR BROWSER.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">People can use functions to convert model values from internal data structures in a component (ex. string in my plunker) to data structures required by a control. Conceptually we need a mechanism similar to parsers / formatters pipeline from Angular 1.x.</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> all</li> </ul> <p dir="auto"><strong>Additional info:</strong></p> <p dir="auto">Discuses this use case with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhevery/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhevery">@mhevery</a> and was advised to ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kara/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kara">@kara</a><br> The issue was originally raised in the <a href="https://ng-bootstrap.github.io/" rel="nofollow">https://ng-bootstrap.github.io/</a> project under <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169410078" data-permission-text="Title is private" data-url="https://github.com/ng-bootstrap/ng-bootstrap/issues/545" data-hovercard-type="issue" data-hovercard-url="/ng-bootstrap/ng-bootstrap/issues/545/hovercard" href="https://github.com/ng-bootstrap/ng-bootstrap/issues/545">ng-bootstrap/ng-bootstrap#545</a></p>
1
<p dir="auto">Problem with installing Scipy 0.18.1 using PyPi on Windows (Python 2.7.13)</p> <p dir="auto">Here is log:<br> ``Collecting scipy<br> Using cached scipy-0.18.1.tar.gz<br> Installing collected packages: scipy<br> Running setup.py install for scipy: started<br> Running setup.py install for scipy: finished with status 'error'<br> Complete output from command D:\Web\Python27\python.exe -u -c "import setuptools, tokenize;<strong>file</strong>='c:\users\mklem\appdata\local\temp\pip-build-hocqsj\scipy\setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record c:\users\mklem\appdata\local\temp\pip-ceoa2h-record\install-record.txt --single-version-externally-managed --compile:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Note: if you need reliable uninstall behavior, then install with pip instead of using `setup.py install`: - `pip install .` (from a git repo or downloaded source release) - `pip install scipy` (last SciPy release on PyPI) lapack_opt_info: lapack_mkl_info: libraries mkl_rt not found in ['D:\\Web\\Python27\\lib', 'C:\\', 'D:\\Web\\Python27\\libs'] NOT AVAILABLE openblas_lapack_info: libraries openblas not found in ['D:\\Web\\Python27\\lib', 'C:\\', 'D:\\Web\\Python27\\libs'] NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS D:\Web\Python27\lib\site-packages\numpy\distutils\system_info.py:1051: UserWarning: Specified path C:\projects\numpy-wheels\windows-wheel-builder\atlas-builds\atlas-3.10.1-sse2-32\lib is invalid. pre_dirs = system_info.get_paths(self, section, key) &lt;class 'numpy.distutils.system_info.atlas_3_10_threads_info'&gt; NOT AVAILABLE atlas_3_10_info: &lt;class 'numpy.distutils.system_info.atlas_3_10_info'&gt; NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS &lt;class 'numpy.distutils.system_info.atlas_threads_info'&gt; NOT AVAILABLE atlas_info: &lt;class 'numpy.distutils.system_info.atlas_info'&gt; NOT AVAILABLE D:\Web\Python27\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. self.calc_info() lapack_info: libraries lapack not found in ['D:\\Web\\Python27\\lib', 'C:\\', 'D:\\Web\\Python27\\libs'] NOT AVAILABLE D:\Web\Python27\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. self.calc_info() lapack_src_info: NOT AVAILABLE D:\Web\Python27\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. self.calc_info() NOT AVAILABLE Running from scipy source directory. Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; File &quot;c:\users\mklem\appdata\local\temp\pip-build-hocqsj\scipy\setup.py&quot;, line 415, in &lt;module&gt; setup_package() File &quot;c:\users\mklem\appdata\local\temp\pip-build-hocqsj\scipy\setup.py&quot;, line 411, in setup_package setup(**metadata) File &quot;D:\Web\Python27\lib\site-packages\numpy\distutils\core.py&quot;, line 135, in setup config = configuration() File &quot;c:\users\mklem\appdata\local\temp\pip-build-hocqsj\scipy\setup.py&quot;, line 335, in configuration config.add_subpackage('scipy') File &quot;D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py&quot;, line 1001, in add_subpackage caller_level = 2) File &quot;D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py&quot;, line 970, in get_subpackage caller_level = caller_level + 1) File &quot;D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py&quot;, line 907, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File &quot;scipy\setup.py&quot;, line 15, in configuration config.add_subpackage('linalg') File &quot;D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py&quot;, line 1001, in add_subpackage caller_level = 2) File &quot;D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py&quot;, line 970, in get_subpackage caller_level = caller_level + 1) File &quot;D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py&quot;, line 907, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File &quot;scipy\linalg\setup.py&quot;, line 20, in configuration raise NotFoundError('no lapack/blas resources found') numpy.distutils.system_info.NotFoundError: no lapack/blas resources found ----------------------------------------"><pre class="notranslate"><code class="notranslate">Note: if you need reliable uninstall behavior, then install with pip instead of using `setup.py install`: - `pip install .` (from a git repo or downloaded source release) - `pip install scipy` (last SciPy release on PyPI) lapack_opt_info: lapack_mkl_info: libraries mkl_rt not found in ['D:\\Web\\Python27\\lib', 'C:\\', 'D:\\Web\\Python27\\libs'] NOT AVAILABLE openblas_lapack_info: libraries openblas not found in ['D:\\Web\\Python27\\lib', 'C:\\', 'D:\\Web\\Python27\\libs'] NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS D:\Web\Python27\lib\site-packages\numpy\distutils\system_info.py:1051: UserWarning: Specified path C:\projects\numpy-wheels\windows-wheel-builder\atlas-builds\atlas-3.10.1-sse2-32\lib is invalid. pre_dirs = system_info.get_paths(self, section, key) &lt;class 'numpy.distutils.system_info.atlas_3_10_threads_info'&gt; NOT AVAILABLE atlas_3_10_info: &lt;class 'numpy.distutils.system_info.atlas_3_10_info'&gt; NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS &lt;class 'numpy.distutils.system_info.atlas_threads_info'&gt; NOT AVAILABLE atlas_info: &lt;class 'numpy.distutils.system_info.atlas_info'&gt; NOT AVAILABLE D:\Web\Python27\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. self.calc_info() lapack_info: libraries lapack not found in ['D:\\Web\\Python27\\lib', 'C:\\', 'D:\\Web\\Python27\\libs'] NOT AVAILABLE D:\Web\Python27\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning: Lapack (http://www.netlib.org/lapack/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [lapack]) or by setting the LAPACK environment variable. self.calc_info() lapack_src_info: NOT AVAILABLE D:\Web\Python27\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning: Lapack (http://www.netlib.org/lapack/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [lapack_src]) or by setting the LAPACK_SRC environment variable. self.calc_info() NOT AVAILABLE Running from scipy source directory. Traceback (most recent call last): File "&lt;string&gt;", line 1, in &lt;module&gt; File "c:\users\mklem\appdata\local\temp\pip-build-hocqsj\scipy\setup.py", line 415, in &lt;module&gt; setup_package() File "c:\users\mklem\appdata\local\temp\pip-build-hocqsj\scipy\setup.py", line 411, in setup_package setup(**metadata) File "D:\Web\Python27\lib\site-packages\numpy\distutils\core.py", line 135, in setup config = configuration() File "c:\users\mklem\appdata\local\temp\pip-build-hocqsj\scipy\setup.py", line 335, in configuration config.add_subpackage('scipy') File "D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage caller_level = 2) File "D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage caller_level = caller_level + 1) File "D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "scipy\setup.py", line 15, in configuration config.add_subpackage('linalg') File "D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage caller_level = 2) File "D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage caller_level = caller_level + 1) File "D:\Web\Python27\lib\site-packages\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "scipy\linalg\setup.py", line 20, in configuration raise NotFoundError('no lapack/blas resources found') numpy.distutils.system_info.NotFoundError: no lapack/blas resources found ---------------------------------------- </code></pre></div> <p dir="auto">Command "D:\Web\Python27\python.exe -u -c "import setuptools, tokenize;<strong>file</strong>='c:\users\mklem\appdata\local\temp\pip-build-hocqsj\scipy\setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record c:\users\mklem\appdata\local\temp\pip-ceoa2h-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\mklem\appdata\local\temp\pip-build-hocqsj\scipy<br> ``</p>
<p dir="auto">It would be very helpful to have binary wheel packages for Windows platform.</p> <p dir="auto">I think it might work to build those wheels using Appveyor service: <a href="http://www.appveyor.com/" rel="nofollow">http://www.appveyor.com/</a></p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">no error</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">"'common' of undefined" error</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>yarn</li> <li>yarn run dev</li> <li>hit it on browser localhost:3000</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>v3</td> </tr> <tr> <td>node</td> <td>8.1.2</td> </tr> <tr> <td>OS</td> <td>sierra</td> </tr> <tr> <td>browser</td> <td>chrome latest</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<ul dir="auto"> <li>[X ] 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> <ol dir="auto"> <li>Create new next app with <code class="notranslate">create-next-app --example with-apollo with-apollo-app</code></li> <li>Run the app with <code class="notranslate">npm run dev</code>.</li> <li>In the app click on the <code class="notranslate">About</code> link and then click on the <code class="notranslate">Home</code> Link.</li> <li>Home page should be displayed.</li> </ol> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Instead of displaying the <code class="notranslate">Home</code> page after clicking on the <code class="notranslate">Home</code> link from the <code class="notranslate">About</code> page I get to following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'data' of undefined at new WithData (http://localhost:3000/_next/1512311880114/page/:18990:79) at http://localhost:3000/_next/1512311880114/main.js:13520:24 at instantiate (http://localhost:3000/_next/1512311880114/main.js:13528:9) at new WithData(Unknown) (http://localhost:3000/_next/1512311880114/main.js:13541:14) at constructClassInstance (http://localhost:3000/_next/1512311880114/commons.js:6361:20) at updateClassComponent (http://localhost:3000/_next/1512311880114/commons.js:7845:9) at beginWork (http://localhost:3000/_next/1512311880114/commons.js:8231:16) at performUnitOfWork (http://localhost:3000/_next/1512311880114/commons.js:10230:16) at workLoop (http://localhost:3000/_next/1512311880114/commons.js:10294:26) at HTMLUnknownElement.callCallback (http://localhost:3000/_next/1512311880114/commons.js:548:14)```"><pre lang="Cannot" class="notranslate"><code class="notranslate">TypeError: Cannot read property 'data' of undefined at new WithData (http://localhost:3000/_next/1512311880114/page/:18990:79) at http://localhost:3000/_next/1512311880114/main.js:13520:24 at instantiate (http://localhost:3000/_next/1512311880114/main.js:13528:9) at new WithData(Unknown) (http://localhost:3000/_next/1512311880114/main.js:13541:14) at constructClassInstance (http://localhost:3000/_next/1512311880114/commons.js:6361:20) at updateClassComponent (http://localhost:3000/_next/1512311880114/commons.js:7845:9) at beginWork (http://localhost:3000/_next/1512311880114/commons.js:8231:16) at performUnitOfWork (http://localhost:3000/_next/1512311880114/commons.js:10230:16) at workLoop (http://localhost:3000/_next/1512311880114/commons.js:10294:26) at HTMLUnknownElement.callCallback (http://localhost:3000/_next/1512311880114/commons.js:548:14)``` </code></pre></div>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/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> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li></li> <li></li> <li></li> <li></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></td> </tr> <tr> <td>node</td> <td></td> </tr> <tr> <td>OS</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">Hot module reloading does not work for <code class="notranslate">.tsx</code> pages in Next5.</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">Editing, for example, <code class="notranslate">pages/index.tsx</code>, should cause HMR to reload part of index.tsx.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">A browser warning is issued and the full page is reloaded:</p> <p dir="auto"><code class="notranslate">Ignored an update to unaccepted module ./pages/index.tsx -&gt; 2</code></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/425787/36079000-fedcaa9e-0f32-11e8-9b67-28915764ac2f.png"><img width="1322" alt="screenshot 2018-02-11 13 53 34" src="https://user-images.githubusercontent.com/425787/36079000-fedcaa9e-0f32-11e8-9b67-28915764ac2f.png" style="max-width: 100%;"></a></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Copy the with-typescript example into a clean directory</li> <li>Edit package.json to [email protected]</li> <li>yarn install &amp;&amp; yarn dev</li> <li>Visit localhost:3000, open console.</li> <li>Edit pages/index.tsx and save</li> <li>Observe warning in the console and full reload.</li> </ol> <p dir="auto">I've observed this in next 5.0.0, 5.0.1-canary.2, and 5.0.1-canary.4 (canary3 not tested)<br> Chrome Version 64.0.3282.140<br> OSX High Sierra 10.13.3</p>
0
<p dir="auto">I'm running my ResNet-32 benchmark model. My code looks quite similar with the code in TensorFlow GitHub:</p> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/models/image/cifar10">https://github.com/tensorflow/tensorflow/tree/master/tensorflow/models/image/cifar10</a></p> <p dir="auto">but the model is changed into my own ResNet-32 implementation.</p> <p dir="auto">I'm measuring how long it takes to train a minibatch with size 128, and here are brief results. I used one GPU, 64bit Ubuntu 14.04 and Python 2.7 for all experiments.</p> <table role="table"> <thead> <tr> <th align="center">TensorFlow Version</th> <th align="center">CUDA/cuDNN Version</th> <th align="center">GPU</th> <th align="center">Elapsed Time (ms)</th> </tr> </thead> <tbody> <tr> <td align="center">0.9.0 (pip installed)</td> <td align="center">7.5 / 4.0.7</td> <td align="center">GTX Titan X</td> <td align="center">75</td> </tr> <tr> <td align="center">0.9.0 (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/745f16f790d2f9abf2c6a70d6b383b152cca3cff/hovercard" href="https://github.com/tensorflow/tensorflow/commit/745f16f790d2f9abf2c6a70d6b383b152cca3cff"><tt>745f16f</tt></a>)</td> <td align="center">8.0 RC / 5.0.5</td> <td align="center">GTX 1080</td> <td align="center">330</td> </tr> <tr> <td align="center">0.8.0 (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/ea9e00a630f91a459dd5858cb22e8cd1a666ba4e/hovercard" href="https://github.com/tensorflow/tensorflow/commit/ea9e00a630f91a459dd5858cb22e8cd1a666ba4e"><tt>ea9e00a</tt></a>)</td> <td align="center">8.0 RC / 5.0.5</td> <td align="center">GTX 1080</td> <td align="center">60</td> </tr> </tbody> </table> <p dir="auto">The 0.8.0 version commit contains the first support for CUDA 8.0 RC as far as I know and I found this to use my GTX 1080 without performance drop. Now I can use it with reasonable performance, but I want to figure out why the 0.9.0 compiled version is 4 times slower than before.</p>
<p dir="auto">Nightly built, python2 gpu, cuda 7.5, cudnn 4.0.7, archlinux. TitanX.<br> I run <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/batch_norm_benchmark.py">batch_norm_benchmark.py</a> and got the following output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Forward convolution (lower layers). cpu shape:4/3 #layers:10 mode:op scale:True train:False - 0.043865 secs cpu shape:4/3 #layers:10 mode:py scale:True train:False - 0.053864 secs cpu shape:4/3 #layers:10 mode:slow scale:True train:False - 0.088060 secs === op vs py: 22.8% === === py vs slow: 63.5% === gpu shape:4/3 #layers:10 mode:op scale:True train:False - 0.287913 secs gpu shape:4/3 #layers:10 mode:py scale:True train:False - 0.284179 secs gpu shape:4/3 #layers:10 mode:slow scale:True train:False - 0.287409 secs === op vs py: -1.3% === === py vs slow: 1.1% === Forward/backward convolution (lower layers). cpu shape:4/3 #layers:10 mode:op scale:True train:True - 0.220112 secs cpu shape:4/3 #layers:10 mode:py scale:True train:True - 0.201284 secs cpu shape:4/3 #layers:10 mode:slow scale:True train:True - 0.295103 secs === op vs py: -8.6% === === py vs slow: 46.6% === gpu shape:4/3 #layers:10 mode:op scale:True train:True - 2.108785 secs gpu shape:4/3 #layers:10 mode:py scale:True train:True - 0.578407 secs gpu shape:4/3 #layers:10 mode:slow scale:True train:True - 0.863753 secs === op vs py: -59.0% === === py vs slow: -96.6% === Forward convolution (higher layers). cpu shape:4/3 #layers:10 mode:op scale:True train:False - 0.025443 secs cpu shape:4/3 #layers:10 mode:py scale:True train:False - 0.033344 secs cpu shape:4/3 #layers:10 mode:slow scale:True train:False - 0.048162 secs === op vs py: 31.1% === === py vs slow: 44.4% === gpu shape:4/3 #layers:10 mode:op scale:True train:False - 0.164241 secs gpu shape:4/3 #layers:10 mode:py scale:True train:False - 0.161473 secs gpu shape:4/3 #layers:10 mode:slow scale:True train:False - 0.163212 secs === op vs py: -1.7% === === py vs slow: 1.1% === Forward/backward convolution (higher layers). cpu shape:4/3 #layers:10 mode:op scale:True train:True - 0.111931 secs cpu shape:4/3 #layers:10 mode:py scale:True train:True - 0.118556 secs cpu shape:4/3 #layers:10 mode:slow scale:True train:True - 0.163289 secs === op vs py: 5.9% === === py vs slow: 37.7% === gpu shape:4/3 #layers:10 mode:op scale:True train:True - 1.194288 secs gpu shape:4/3 #layers:10 mode:py scale:True train:True - 0.329403 secs gpu shape:4/3 #layers:10 mode:slow scale:True train:True - 0.491005 secs === op vs py: -72.4% === === py vs slow: 49.1% === Forward fully-connected. cpu shape:2/1 #layers:10 mode:py scale:True train:False - 0.001866 secs cpu shape:2/1 #layers:10 mode:slow scale:True train:False - 0.002859 secs === py vs slow: 53.2% === gpu shape:2/1 #layers:10 mode:py scale:True train:False - 0.002420 secs gpu shape:2/1 #layers:10 mode:slow scale:True train:False - 0.002523 secs === py vs slow: 4.3% === Forward/backward fully-connected. cpu shape:2/1 #layers:10 mode:py scale:True train:True - 0.004973 secs cpu shape:2/1 #layers:10 mode:slow scale:True train:True - 0.006781 secs === py vs slow: 36.4% === gpu shape:2/1 #layers:10 mode:py scale:True train:True - 0.006370 secs gpu shape:2/1 #layers:10 mode:slow scale:True train:True - 0.008182 secs === py vs slow: 28.4% ==="><pre class="notranslate"><code class="notranslate">Forward convolution (lower layers). cpu shape:4/3 #layers:10 mode:op scale:True train:False - 0.043865 secs cpu shape:4/3 #layers:10 mode:py scale:True train:False - 0.053864 secs cpu shape:4/3 #layers:10 mode:slow scale:True train:False - 0.088060 secs === op vs py: 22.8% === === py vs slow: 63.5% === gpu shape:4/3 #layers:10 mode:op scale:True train:False - 0.287913 secs gpu shape:4/3 #layers:10 mode:py scale:True train:False - 0.284179 secs gpu shape:4/3 #layers:10 mode:slow scale:True train:False - 0.287409 secs === op vs py: -1.3% === === py vs slow: 1.1% === Forward/backward convolution (lower layers). cpu shape:4/3 #layers:10 mode:op scale:True train:True - 0.220112 secs cpu shape:4/3 #layers:10 mode:py scale:True train:True - 0.201284 secs cpu shape:4/3 #layers:10 mode:slow scale:True train:True - 0.295103 secs === op vs py: -8.6% === === py vs slow: 46.6% === gpu shape:4/3 #layers:10 mode:op scale:True train:True - 2.108785 secs gpu shape:4/3 #layers:10 mode:py scale:True train:True - 0.578407 secs gpu shape:4/3 #layers:10 mode:slow scale:True train:True - 0.863753 secs === op vs py: -59.0% === === py vs slow: -96.6% === Forward convolution (higher layers). cpu shape:4/3 #layers:10 mode:op scale:True train:False - 0.025443 secs cpu shape:4/3 #layers:10 mode:py scale:True train:False - 0.033344 secs cpu shape:4/3 #layers:10 mode:slow scale:True train:False - 0.048162 secs === op vs py: 31.1% === === py vs slow: 44.4% === gpu shape:4/3 #layers:10 mode:op scale:True train:False - 0.164241 secs gpu shape:4/3 #layers:10 mode:py scale:True train:False - 0.161473 secs gpu shape:4/3 #layers:10 mode:slow scale:True train:False - 0.163212 secs === op vs py: -1.7% === === py vs slow: 1.1% === Forward/backward convolution (higher layers). cpu shape:4/3 #layers:10 mode:op scale:True train:True - 0.111931 secs cpu shape:4/3 #layers:10 mode:py scale:True train:True - 0.118556 secs cpu shape:4/3 #layers:10 mode:slow scale:True train:True - 0.163289 secs === op vs py: 5.9% === === py vs slow: 37.7% === gpu shape:4/3 #layers:10 mode:op scale:True train:True - 1.194288 secs gpu shape:4/3 #layers:10 mode:py scale:True train:True - 0.329403 secs gpu shape:4/3 #layers:10 mode:slow scale:True train:True - 0.491005 secs === op vs py: -72.4% === === py vs slow: 49.1% === Forward fully-connected. cpu shape:2/1 #layers:10 mode:py scale:True train:False - 0.001866 secs cpu shape:2/1 #layers:10 mode:slow scale:True train:False - 0.002859 secs === py vs slow: 53.2% === gpu shape:2/1 #layers:10 mode:py scale:True train:False - 0.002420 secs gpu shape:2/1 #layers:10 mode:slow scale:True train:False - 0.002523 secs === py vs slow: 4.3% === Forward/backward fully-connected. cpu shape:2/1 #layers:10 mode:py scale:True train:True - 0.004973 secs cpu shape:2/1 #layers:10 mode:slow scale:True train:True - 0.006781 secs === py vs slow: 36.4% === gpu shape:2/1 #layers:10 mode:py scale:True train:True - 0.006370 secs gpu shape:2/1 #layers:10 mode:slow scale:True train:True - 0.008182 secs === py vs slow: 28.4% === </code></pre></div> <p dir="auto">Although <code class="notranslate">sess.run</code> in a loop might not be an accurate way to benchmark, I think the performance regression exists because running the same script with an earlier binary built (not sure which commit it is) is 10x-20x faster.</p>
1
<p dir="auto">Its possible that tabs (or multiple spaces) are being miscounted somehow. It usually occurs after pasting something into the document. Here is what it looks like, after I attempt to Shift Tab, Undo then Redo. I am using a MAC.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="describe('DELETED', function () { it('get /deleted/tasks?since=&lt;yesterday&gt; returns list of tasks deleted', function (done) { var yesterday = Date.now() - (24 * 3600 * 1000); request.get({ uri: apiUrl + '/deleted/tasks?since=' + yesterday, auth: { user: 'regular', pass: users.regular }, json: true }, function (err, response, body) { response.statusCode.should.equal(200, JSON.stringify(body)); body.data.length.should.be.greaterThan(0); done(); }); // CHARACTERS HAVE GONE MISSING HERE EARCHES', function() { it('verify template_python returns from a search', function(done) { this.timeout(10000); request({ method: 'GET', uri: apiUrl + '/search/template_python', auth: { user: 'regular', pass: users.regular },"><pre class="notranslate"><code class="notranslate">describe('DELETED', function () { it('get /deleted/tasks?since=&lt;yesterday&gt; returns list of tasks deleted', function (done) { var yesterday = Date.now() - (24 * 3600 * 1000); request.get({ uri: apiUrl + '/deleted/tasks?since=' + yesterday, auth: { user: 'regular', pass: users.regular }, json: true }, function (err, response, body) { response.statusCode.should.equal(200, JSON.stringify(body)); body.data.length.should.be.greaterThan(0); done(); }); // CHARACTERS HAVE GONE MISSING HERE EARCHES', function() { it('verify template_python returns from a search', function(done) { this.timeout(10000); request({ method: 'GET', uri: apiUrl + '/search/template_python', auth: { user: 'regular', pass: users.regular }, </code></pre></div>
<p dir="auto">I wanted to indent multiple lines at once but it failed. This is how it looks like when I select some lines and press <kbd>Tab</kbd>. Sometimes it works though, like when creating an untitled file in split screen.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1913805/12911690/8a6cd162-cf14-11e5-8bba-8ff1210c10f5.gif"><img src="https://cloud.githubusercontent.com/assets/1913805/12911690/8a6cd162-cf14-11e5-8bba-8ff1210c10f5.gif" alt="indent" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">Quite important bug <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/egamma/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/egamma">@egamma</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jrieken/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jrieken">@jrieken</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bpasero/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bpasero">@bpasero</a></p>
1
<h3 dir="auto">Problem description</h3> <p dir="auto">Make Horizontal Stepper Responsive</p> <h3 dir="auto">Link to minimally-working code that reproduces the issue</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6420838/22243752/ad75bc4c-e263-11e6-9d38-7dede24eb2db.png"><img width="1440" alt="screen shot 2017-01-24 at 6 31 21 pm" src="https://cloud.githubusercontent.com/assets/6420838/22243752/ad75bc4c-e263-11e6-9d38-7dede24eb2db.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: latest</li> <li>React: latest</li> <li>Browser: Chrome</li> </ul>
<p dir="auto">In order to use the stepper in a responsive way, it's necessary to seamlessly switch between vertical and horizontal stepper (e.g. someone switches from landscape to portrait-mode), without having to rebuild the component (and losing the step's states therefor).</p> <p dir="auto">So what I have is a vertical stepper:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1215407/21184668/c7d16c4c-c20d-11e6-9f1a-07edbda5081b.png"><img src="https://cloud.githubusercontent.com/assets/1215407/21184668/c7d16c4c-c20d-11e6-9f1a-07edbda5081b.png" alt="grafik" style="max-width: 100%;"></a></p> <p dir="auto">If I switch the orientation from 'vertical' to 'horizontal' it looks like this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1215407/21184581/5e304998-c20d-11e6-9036-5e6a4254359c.png"><img src="https://cloud.githubusercontent.com/assets/1215407/21184581/5e304998-c20d-11e6-9036-5e6a4254359c.png" alt="grafik" style="max-width: 100%;"></a></p> <p dir="auto">What I would expect is something like this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1215407/21184636/9da81254-c20d-11e6-8055-be5638933c67.png"><img src="https://cloud.githubusercontent.com/assets/1215407/21184636/9da81254-c20d-11e6-8055-be5638933c67.png" alt="grafik" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>Material-UI: 0.16.5</li> <li>React: 15.3.2</li> <li>Browser: Any</li> </ul>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <ul dir="auto"> <li>Bug</li> </ul> <p dir="auto"><strong>What is the current behavior?</strong></p> <ul dir="auto"> <li>On trying to analyse a component State using React Developer Tools, the analyse pane stays in the <code class="notranslate">Loading ...</code> state and throws this error</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'name' of undefined at O (backend.js:1) at s (backend.js:1) at s (backend.js:1) at s (backend.js:1) at l (backend.js:1) at Object.inspectElement (backend.js:6) at t.&lt;anonymous&gt; (backend.js:6) at t.r.emit (backend.js:6) at backend.js:32 at t (backend.js:8)"><pre class="notranslate"><span class="pl-v">Uncaught</span> TypeError: <span class="pl-v">Cannot</span> <span class="pl-s1">read</span> <span class="pl-s1">property</span> <span class="pl-s">'name'</span> <span class="pl-s1">of</span> <span class="pl-c1">undefined</span> <span class="pl-en">at</span> <span class="pl-v">O</span> <span class="pl-kos">(</span><span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-s1">s</span> <span class="pl-kos">(</span><span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-s1">s</span> <span class="pl-kos">(</span><span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-s1">s</span> <span class="pl-kos">(</span><span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-s1">l</span> <span class="pl-kos">(</span><span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-s1">at</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">inspectElement</span> <span class="pl-kos">(</span><span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">6</span><span class="pl-kos">)</span> <span class="pl-s1">at</span> <span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">&lt;</span><span class="pl-s1">anonymous</span><span class="pl-c1">&gt;</span> <span class="pl-kos">(</span><span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">6</span><span class="pl-kos">)</span> <span class="pl-s1">at</span> <span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">r</span><span class="pl-kos">.</span><span class="pl-en">emit</span> <span class="pl-kos">(</span><span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">6</span><span class="pl-kos">)</span> <span class="pl-s1">at</span> <span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">32</span> <span class="pl-en">at</span> <span class="pl-s1">t</span> <span class="pl-kos">(</span><span class="pl-s1">backend</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">8</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong></p> <ul dir="auto"> <li>Able to analyse component State as in the previous React Dev Tools versions.</li> </ul> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <ul dir="auto"> <li>React Developer Tools version: 4.3.0 (12/20/2019)</li> <li>React Version: ^16.4.0</li> <li>Browsers: <ul dir="auto"> <li>Chrome: Version 79.0.3945.88 (Official Build) (64-bit)</li> <li>Brave: Version 1.1.23 Chromium: 79.0.3945.88 (Official Build) (64-bit)</li> </ul> </li> </ul>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">Bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <ol dir="auto"> <li>Select a component</li> <li>The right panel (property panel?) always shows <code class="notranslate">Loading...</code></li> <li>The following error is printed to the console.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="backend.js:1 Uncaught TypeError: Cannot read property 'name' of undefined at O (backend.js:1) at s (backend.js:1) at s (backend.js:1) at l (backend.js:1) at Object.inspectElement (backend.js:6) at t.&lt;anonymous&gt; (backend.js:6) at t.r.emit (backend.js:6) at backend.js:32 at t (backend.js:8)"><pre class="notranslate"><code class="notranslate">backend.js:1 Uncaught TypeError: Cannot read property 'name' of undefined at O (backend.js:1) at s (backend.js:1) at s (backend.js:1) at l (backend.js:1) at Object.inspectElement (backend.js:6) at t.&lt;anonymous&gt; (backend.js:6) at t.r.emit (backend.js:6) at backend.js:32 at t (backend.js:8) </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1330321/71661150-497dba00-2d88-11ea-8df1-235f24ba793f.png"><img src="https://user-images.githubusercontent.com/1330321/71661150-497dba00-2d88-11ea-8df1-235f24ba793f.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I don't know why you minify the output, but the call stack points to here:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/facebook/react/blob/f887d1aa27336baa0bc292158793a5a244c712b6/packages/react-devtools-shared/src/utils.js#L391">react/packages/react-devtools-shared/src/utils.js</a> </p> <p class="mb-0 color-fg-muted"> Line 391 in <a data-pjax="true" class="commit-tease-sha" href="/facebook/react/commit/f887d1aa27336baa0bc292158793a5a244c712b6">f887d1a</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="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-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">constructor</span><span class="pl-kos">.</span><span class="pl-c1">name</span> <span class="pl-c1">===</span> <span class="pl-s">'ArrayBuffer'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (<a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>) or CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example below:</strong></p> <p dir="auto"><a href="https://codesandbox.io/s/falling-wave-1j0qe" rel="nofollow">https://codesandbox.io/s/falling-wave-1j0qe</a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">React DevTools displays the props of the selected component.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">React 16.12.0<br> Chrome 79.0.3945.88<br> IDK</p>
1
<p dir="auto">I am reporting as a bug, although it might be my bad code, but could not figure it out... Might be useful for future searches.</p> <p dir="auto">I am trying to split my fixtures into multiple files.<br> I get an error pointing to the base.extend<br> Error: test.extend() accepts fixtures object, not a test object.<br> Did you mean to call test._extendTest()?</p> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.33]</li> <li>Operating System: [ macOS 13.3]</li> <li>Browser: [ Chromium]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//fake-time.fixtures.ts import { test as base } from '@playwright/test'; export type FakeTimeFixtures = { useFakeTime: (dateTime: string) =&gt; Promise&lt;void&gt; }; export const fakeTimeFixtures = base.extend&lt;FakeTimeFixtures&gt;({ useFakeTime: async ({ page }, use) =&gt; { const addFakeTimeScript = async (dateTime: string): Promise&lt;void&gt; =&gt; { const fakeNow = new Date(dateTime).valueOf(); //implementation code }`); }; await use(addFakeTimeScript); } }); //fixtures.ts import { test as base } from '@playwright/test'; import { fakeTimeFixtures, FakeTimeFixtures } from './fake-time.fixtures.ts'; type MyFixtures = { someFixture: (component: Locator) =&gt; Promise&lt;string&gt;; }; export const test = base.extend&lt;FakeTimeFixtures &amp; MyFixtures&gt; ({ ...fakeTimeFixtures someFixture: // implementation of the fixture }); export { expect } from '@playwright/test';"><pre class="notranslate"><code class="notranslate">//fake-time.fixtures.ts import { test as base } from '@playwright/test'; export type FakeTimeFixtures = { useFakeTime: (dateTime: string) =&gt; Promise&lt;void&gt; }; export const fakeTimeFixtures = base.extend&lt;FakeTimeFixtures&gt;({ useFakeTime: async ({ page }, use) =&gt; { const addFakeTimeScript = async (dateTime: string): Promise&lt;void&gt; =&gt; { const fakeNow = new Date(dateTime).valueOf(); //implementation code }`); }; await use(addFakeTimeScript); } }); //fixtures.ts import { test as base } from '@playwright/test'; import { fakeTimeFixtures, FakeTimeFixtures } from './fake-time.fixtures.ts'; type MyFixtures = { someFixture: (component: Locator) =&gt; Promise&lt;string&gt;; }; export const test = base.extend&lt;FakeTimeFixtures &amp; MyFixtures&gt; ({ ...fakeTimeFixtures someFixture: // implementation of the fixture }); export { expect } from '@playwright/test'; </code></pre></div> <p dir="auto">I am not even sure if it is a TS or a PW error. Any idea?</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/Tallyb/pw-fixtures-error ]</p> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>npx playwright test</li> </ul> <p dir="auto"><strong>Expected</strong><br> Tests should run</p> <p dir="auto"><strong>Actual</strong><br> error message as above</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.33.0]</li> <li>Operating System: [MACOS 13.1]</li> <li>Browser: [Firefox]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <p dir="auto">I'm unable to provide source code or a cloned repo publicly so I'd like to explain an issue that is only happening in Firefox and see if I can get any guidance/answers. I have a test that goes to a page and ends up checking 2 checkboxes:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" await verifyDevicePage.marketingCheckbox.check(); await verifyDevicePage.transactionalCheckbox.check();"><pre class="notranslate"> <span class="pl-k">await</span> <span class="pl-s1">verifyDevicePage</span><span class="pl-kos">.</span><span class="pl-c1">marketingCheckbox</span><span class="pl-kos">.</span><span class="pl-en">check</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">verifyDevicePage</span><span class="pl-kos">.</span><span class="pl-c1">transactionalCheckbox</span><span class="pl-kos">.</span><span class="pl-en">check</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">In Chrome and Safari, the whole test passes. In Firefox, it fails at these checkboxes and it's always the same error. I have tried changing the .check() over to .click(). I've tried chaining locators. I've tried refreshing the page. I've tried waiting for element to be visible. I've tried using the force option. I've tried using a timeout. I've tried using double clicks. I've tried scrolling element into view before check or click. I've tried changing the locators to locators that Playwright suggests when using --ui. Nothing is seeming to work.</p> <p dir="auto">We use POM and custom automation locators in question and they currently look like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="this.marketingCheckbox = page.locator('[data-automation=&quot;transactional&quot;]'); this.transactionalCheckbox = page.locator('[data-automation=&quot;marketing&quot;]')"><pre class="notranslate"><code class="notranslate">this.marketingCheckbox = page.locator('[data-automation="transactional"]'); this.transactionalCheckbox = page.locator('[data-automation="marketing"]') </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: locator.check: Target closed =========================== logs =========================== waiting for locator('[data-automation=&quot;marketing&quot;]') locator resolved to &lt;input name=&quot;&quot; id=&quot;marketing&quot; type=&quot;checkbox&quot; _ngconten…/&gt; attempting click action waiting for element to be visible, enabled and stable element is not visible - waiting..."><pre class="notranslate"><code class="notranslate">Error: locator.check: Target closed =========================== logs =========================== waiting for locator('[data-automation="marketing"]') locator resolved to &lt;input name="" id="marketing" type="checkbox" _ngconten…/&gt; attempting click action waiting for element to be visible, enabled and stable element is not visible - waiting... </code></pre></div>
0
<p dir="auto">I have a strong habit of opening files from Windows Explorer. My prefered method is to double-click the file. Herein lies the issue: Atom is not only hidden in %appdata% where it can be difficult to find, but there is no static file to associate to since atom.exe is in a versioned directory.</p> <p dir="auto">My suggestion is to create a very basic launcher that opens the latest version of Atom installed so that users can associate files to Atom without needing to update associations every update.</p>
<p dir="auto">Currently it is not so easy to assign atom as default editor on windows eg for all .css files</p> <p dir="auto">the path to atom.exe is changed with every update.</p> <p dir="auto">no exe in C:\Users\hebbet\AppData\Local\atom<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1423115/5648585/df87f05a-968f-11e4-87bc-ae2b5b6f9280.png"><img src="https://cloud.githubusercontent.com/assets/1423115/5648585/df87f05a-968f-11e4-87bc-ae2b5b6f9280.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Chrome has eg an chrome.exe in:<br> C:\Users\username\AppData\Local\Google\Chrome SxS\Application which starts chrome with the currect folder.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1423115/5648575/c9bdcde4-968f-11e4-9f63-42fc08e3f0b5.png"><img src="https://cloud.githubusercontent.com/assets/1423115/5648575/c9bdcde4-968f-11e4-9f63-42fc08e3f0b5.png" alt="image" style="max-width: 100%;"></a></p>
1