text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7068058/4915460/5d6eb802-64cf-11e4-8dce-9fd9ad347be3.png"><img src="https://cloud.githubusercontent.com/assets/7068058/4915460/5d6eb802-64cf-11e4-8dce-9fd9ad347be3.png" alt="aa" style="max-width: 100%;"></a><br> this most appears with a lot chars in a line</p>
<p dir="auto">Reported in Halp:</p> <ul dir="auto"> <li>support/b47caffcaba511e3903bfcd96bef4da2</li> </ul> <blockquote> <p dir="auto">If I have a paragraph in CJK characters and toggle soft wrap, the wrapping point (should be the right edge of current window) is far away than the current edge and some characters are displayed out of window which is not visible.<br> I think this may because of the wrong processing of character wide. A latin letter has a width "one character width", but usually a CJK character has a width twice as a latin letter, it's "two character width". Hope this information may help you.<br> The debug info auto attached should include the test text I open now. It's include (from up to down): Chinese, Japanese, Korean, English. Actully they tell the same thing:)</p> </blockquote> <p dir="auto">I can reproduce this in Atom 0.75.0. (notice how CJK characters are not wrapped correctly at the right edge of the app)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ed2f8e79cd39dbfa796ed46485a3444e2f4101865a8834908cdbc864de6e4f2f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f323439313439332f34303461643764612d623165662d313165332d393134332d3237326235353533306336632e706e67"><img src="https://camo.githubusercontent.com/ed2f8e79cd39dbfa796ed46485a3444e2f4101865a8834908cdbc864de6e4f2f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f323439313439332f34303461643764612d623165662d313165332d393134332d3237326235353533306336632e706e67" alt="screen shot 2014-03-22 at 7 24 05 pm" data-canonical-src="https://f.cloud.github.com/assets/38924/2491493/404ad7da-b1ef-11e3-9143-272b55530c6c.png" style="max-width: 100%;"></a></p>
1
<p dir="auto">In the image below i have a snippet. In the body of the loop the syntax colors seem messed up.<br> The way to fix it is adding a space before the &lt; and then the colors are normal.</p> <p dir="auto">I have this problem in version 0.10.10 and had it in the previous version.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2932769/13675051/24d87098-e6e0-11e5-9735-33b45a379967.png"><img src="https://cloud.githubusercontent.com/assets/2932769/13675051/24d87098-e6e0-11e5-9735-33b45a379967.png" alt="syntaxcolors" style="max-width: 100%;"></a></p> <p dir="auto">Snippet:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for(var i=0;i&lt;10;++i){ // Weird colors for(var i=0;i&lt;10;++i){ // Weird colors } } // Normal color for(var i=0;i &lt;10;++i){ for(var i=0;i &lt;10;++i){ } }"><pre class="notranslate"><code class="notranslate">for(var i=0;i&lt;10;++i){ // Weird colors for(var i=0;i&lt;10;++i){ // Weird colors } } // Normal color for(var i=0;i &lt;10;++i){ for(var i=0;i &lt;10;++i){ } } </code></pre></div>
<p dir="auto">Ported from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94376232" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/285/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285">microsoft/TypeScript-Sublime-Plugin#285</a></p> <p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91870539" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/265/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265">microsoft/TypeScript-Sublime-Plugin#265</a>.</p> <p dir="auto">Issue:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Correct:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">I'm getting a compiler error about a "path not fully resolved":</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefTy(DefId { krate: 0, node: 204 }, false), last_private: LastMod(AllPublic), depth: 1 }'"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefTy(DefId { krate: 0, node: 204 }, false), last_private: LastMod(AllPublic), depth: 1 }' </code></pre></div> <p dir="auto">I tried this code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn is_whitespace(c: char) -&gt; bool { c == ' ' || c == '\n' } fn consume_whitespace(&amp;mut self) -&gt; Parse&lt;()&gt; { //Ok(()) self.consume_while(&amp;(CNFParser::is_whitespace)) } fn consume_while(&amp;mut self, p: &amp;Fn(char) -&gt; bool) -&gt; Parse&lt;()&gt; { while p(self.token) { let take = self.take(); if take.is_err() { return take } } Ok(()) } "><pre class="notranslate"><code class="notranslate">fn is_whitespace(c: char) -&gt; bool { c == ' ' || c == '\n' } fn consume_whitespace(&amp;mut self) -&gt; Parse&lt;()&gt; { //Ok(()) self.consume_while(&amp;(CNFParser::is_whitespace)) } fn consume_while(&amp;mut self, p: &amp;Fn(char) -&gt; bool) -&gt; Parse&lt;()&gt; { while p(self.token) { let take = self.take(); if take.is_err() { return take } } Ok(()) } </code></pre></div> <p dir="auto">I expected to see this happen:<br> the code should compile, it did somewhere after 1.0 alpha and stopped in the last week (I think)</p> <p dir="auto">Instead, this happened:<br> I got this unexpected panic. It has something to do with passing the reference to <code class="notranslate">CNFParser::is_whitespace</code></p> <h2 dir="auto">Meta</h2> <p dir="auto"><code class="notranslate">rustc --version --verbose</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" rustc 1.0.0-nightly (890293655 2015-02-28) (built 2015-03-01) binary: rustc commit-hash: 890293655251c372ea99694c0c9f0795e2663286 commit-date: 2015-02-28 build-date: 2015-03-01 host: x86_64-unknown-linux-gnu release: 1.0.0-nightly"><pre class="notranslate"><code class="notranslate"> rustc 1.0.0-nightly (890293655 2015-02-28) (built 2015-03-01) binary: rustc commit-hash: 890293655251c372ea99694c0c9f0795e2663286 commit-date: 2015-02-28 build-date: 2015-03-01 host: x86_64-unknown-linux-gnu release: 1.0.0-nightly </code></pre></div> <p dir="auto">Backtrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefTy(DefId { krate: 0, node: 204 }, false), last_private: LastMod(AllPublic), depth: 1 }', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/def.rs:79 stack backtrace: 1: 0xde628c4f - sys::backtrace::write::hb08af03691eab78a5kA 2: 0xde651782 - panicking::on_panic::h37164609ca1c02afBnJ 3: 0xde59163a - rt::unwind::begin_unwind_inner::h24d5e7492198457b43I 4: 0xde591d24 - rt::unwind::begin_unwind_fmt::hee1a09c48e390d87H2I 5: 0xdc4856b1 - middle::ty::resolve_expr::h65338d27a12ebb460A6 6: 0xdc5eac40 - middle::ty::expr_kind::hcac269a238fc506fAC6 7: 0xdc5eaf7b - middle::ty::expr_kind::hcac269a238fc506fAC6 8: 0xdc5ea94a - middle::ty::expr_is_lval::h485f36669a19d1a13B6 9: 0xdd3bee84 - check::check_expr_with_unifier::h329803007416623423 10: 0xdd3983a8 - check::check_argument_types::h6d28a2012d7e49afNsp 11: 0xdd399d34 - check::check_method_argument_types::hf1decc93718710207pp 12: 0xdd3cc071 - check::check_expr_with_unifier::check_method_call::hb126ebcd08adeb94z4p 13: 0xdd3d6ae2 - check::check_expr_with_unifier::h8581770403589055324 14: 0xdd3ad396 - check::check_block_with_expected::haa14a0695c08d2a6V0r 15: 0xdd3908d5 - check::check_fn::ha741703a74959edd8kn 16: 0xdd3aa0d2 - check::check_bare_fn::hdc3a9af5b372582fOan 17: 0xdd3adbbb - check::check_method_body::h49a550c880bfd87dnIn 18: 0xdd3a3864 - check::check_item::h203d9fc30afbd381stn 19: 0xdd3a85c2 - visit::walk_item::h11360223606861997271 20: 0xdd46df2e - check_crate::closure.35032 21: 0xdd469207 - check_crate::h6ce4a57b1730f0fdDXB 22: 0xdeca908e - driver::phase_3_run_analysis_passes::h55e7e7af941f4089xFa 23: 0xdec8e411 - driver::compile_input::hee81c045ab46c74fIba 24: 0xded58e6e - run_compiler::h875c1e123fe4ae2cF5b 25: 0xded56a1c - thunk::F.Invoke&lt;A, R&gt;::invoke::h12424714292252424185 26: 0xded55770 - rt::unwind::try::try_fn::h4021821266450575721 27: 0xde6bcfe8 - rust_try_inner 28: 0xde6bcfd5 - rust_try 29: 0xded55e5c - thunk::F.Invoke&lt;A, R&gt;::invoke::h8199562432922027576 30: 0xde63d2d5 - sys::thread::thread_start::h1b1bb1e7ac08d3a6yRE 31: 0xd8378373 - start_thread 32: 0xde21927c - __clone 33: 0xffffffff - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefTy(DefId { krate: 0, node: 204 }, false), last_private: LastMod(AllPublic), depth: 1 }', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/def.rs:79 stack backtrace: 1: 0xde628c4f - sys::backtrace::write::hb08af03691eab78a5kA 2: 0xde651782 - panicking::on_panic::h37164609ca1c02afBnJ 3: 0xde59163a - rt::unwind::begin_unwind_inner::h24d5e7492198457b43I 4: 0xde591d24 - rt::unwind::begin_unwind_fmt::hee1a09c48e390d87H2I 5: 0xdc4856b1 - middle::ty::resolve_expr::h65338d27a12ebb460A6 6: 0xdc5eac40 - middle::ty::expr_kind::hcac269a238fc506fAC6 7: 0xdc5eaf7b - middle::ty::expr_kind::hcac269a238fc506fAC6 8: 0xdc5ea94a - middle::ty::expr_is_lval::h485f36669a19d1a13B6 9: 0xdd3bee84 - check::check_expr_with_unifier::h329803007416623423 10: 0xdd3983a8 - check::check_argument_types::h6d28a2012d7e49afNsp 11: 0xdd399d34 - check::check_method_argument_types::hf1decc93718710207pp 12: 0xdd3cc071 - check::check_expr_with_unifier::check_method_call::hb126ebcd08adeb94z4p 13: 0xdd3d6ae2 - check::check_expr_with_unifier::h8581770403589055324 14: 0xdd3ad396 - check::check_block_with_expected::haa14a0695c08d2a6V0r 15: 0xdd3908d5 - check::check_fn::ha741703a74959edd8kn 16: 0xdd3aa0d2 - check::check_bare_fn::hdc3a9af5b372582fOan 17: 0xdd3adbbb - check::check_method_body::h49a550c880bfd87dnIn 18: 0xdd3a3864 - check::check_item::h203d9fc30afbd381stn 19: 0xdd3a85c2 - visit::walk_item::h11360223606861997271 20: 0xdd46df2e - check_crate::closure.35032 21: 0xdd469207 - check_crate::h6ce4a57b1730f0fdDXB 22: 0xdeca908e - driver::phase_3_run_analysis_passes::h55e7e7af941f4089xFa 23: 0xdec8e411 - driver::compile_input::hee81c045ab46c74fIba 24: 0xded58e6e - run_compiler::h875c1e123fe4ae2cF5b 25: 0xded56a1c - thunk::F.Invoke&lt;A, R&gt;::invoke::h12424714292252424185 26: 0xded55770 - rt::unwind::try::try_fn::h4021821266450575721 27: 0xde6bcfe8 - rust_try_inner 28: 0xde6bcfd5 - rust_try 29: 0xded55e5c - thunk::F.Invoke&lt;A, R&gt;::invoke::h8199562432922027576 30: 0xde63d2d5 - sys::thread::thread_start::h1b1bb1e7ac08d3a6yRE 31: 0xd8378373 - start_thread 32: 0xde21927c - __clone 33: 0xffffffff - &lt;unknown&gt; </code></pre></div>
<p dir="auto">Appears like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="| CFG_LLVM_LINKAGE_FILE=/home/cody/obj/y/tmp/work/x86_64-poky-linux-gnueabi/rust-cross-arm/git+gitAUTOINC+c654a07d29-r0/build/x86_64-linux/rt/llvmdeps.rs LD_LIBRARY_PATH=/home/cody/obj/y/tmp/work/x86_64-poky-linux-gnueabi/rust-cross-arm/git+gitAUTOINC+c654a07d29-r0/build/x86_64-linux/stage2/lib/arm-poky-linux-gnueabi:$LD_LIBRARY_PATH x86_64-linux/stage2/bin/arm-poky-linux-gnueabi/rustc --cfg stage2 -O --cfg rtopt --cfg ndebug -C rpath --target=x86_64-linux -C prefer-dynamic -D warnings -L &quot;x86_64-linux/rt&quot; -L &quot;/home/cody/obj/y/tmp/work/x86_64-poky-linux-gnueabi/rust-cross-arm/git+gitAUTOINC+c654a07d29-r0/build/x86_64-linux/llvm/Release/lib&quot; --out-dir x86_64-linux/stage2/lib/arm-poky-linux-gnueabi/rustlib/x86_64-linux/lib -C extra-filename=-d8ace771 /home/cody/obj/y/tmp/work/x86_64-poky-linux-gnueabi/rust-cross-arm/git+gitAUTOINC+c654a07d29-r0/git/src/librustc_llvm/lib.rs | error: could not exec the linker `arm-poky-linux-gnueabi-`: No such file or directory (os error 2)"><pre class="notranslate"><code class="notranslate">| CFG_LLVM_LINKAGE_FILE=/home/cody/obj/y/tmp/work/x86_64-poky-linux-gnueabi/rust-cross-arm/git+gitAUTOINC+c654a07d29-r0/build/x86_64-linux/rt/llvmdeps.rs LD_LIBRARY_PATH=/home/cody/obj/y/tmp/work/x86_64-poky-linux-gnueabi/rust-cross-arm/git+gitAUTOINC+c654a07d29-r0/build/x86_64-linux/stage2/lib/arm-poky-linux-gnueabi:$LD_LIBRARY_PATH x86_64-linux/stage2/bin/arm-poky-linux-gnueabi/rustc --cfg stage2 -O --cfg rtopt --cfg ndebug -C rpath --target=x86_64-linux -C prefer-dynamic -D warnings -L "x86_64-linux/rt" -L "/home/cody/obj/y/tmp/work/x86_64-poky-linux-gnueabi/rust-cross-arm/git+gitAUTOINC+c654a07d29-r0/build/x86_64-linux/llvm/Release/lib" --out-dir x86_64-linux/stage2/lib/arm-poky-linux-gnueabi/rustlib/x86_64-linux/lib -C extra-filename=-d8ace771 /home/cody/obj/y/tmp/work/x86_64-poky-linux-gnueabi/rust-cross-arm/git+gitAUTOINC+c654a07d29-r0/git/src/librustc_llvm/lib.rs | error: could not exec the linker `arm-poky-linux-gnueabi-`: No such file or directory (os error 2) </code></pre></div> <p dir="auto">Essentially, 'LINK_foo' is empty.</p> <p dir="auto">Heres a list:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# grep -L '^LINK_.*' -r cfg/mk ./x86_64-unknown-bitrig.mk ./powerpc-unknown-linux-gnu.mk ./i386-apple-ios.mk ./arm-unknown-linux-gnueabi.mk ./x86_64-unknown-freebsd.mk ./i686-pc-windows-gnu.mk ./mips-unknown-linux-gnu.mk ./armv7s-apple-ios.mk ./x86_64-unknown-dragonfly.mk ./arm-unknown-linux-gnueabihf.mk ./x86_64-unknown-openbsd.mk ./mipsel-unknown-linux-gnu.mk ./x86_64-unknown-linux-musl.mk ./x86_64-apple-ios.mk ./armv7-apple-ios.mk"><pre class="notranslate"><code class="notranslate"># grep -L '^LINK_.*' -r cfg/mk ./x86_64-unknown-bitrig.mk ./powerpc-unknown-linux-gnu.mk ./i386-apple-ios.mk ./arm-unknown-linux-gnueabi.mk ./x86_64-unknown-freebsd.mk ./i686-pc-windows-gnu.mk ./mips-unknown-linux-gnu.mk ./armv7s-apple-ios.mk ./x86_64-unknown-dragonfly.mk ./arm-unknown-linux-gnueabihf.mk ./x86_64-unknown-openbsd.mk ./mipsel-unknown-linux-gnu.mk ./x86_64-unknown-linux-musl.mk ./x86_64-apple-ios.mk ./armv7-apple-ios.mk </code></pre></div>
0
<p dir="auto">Very minor issue but if Atom is already open and one uses the 'atom' command in the Terminal to open a new file the Dock temporarily experiences two Atom icons before returning to the proper one.</p> <p dir="auto">In an ideal world, we'd never see this second icon.</p>
<p dir="auto">Having <em>Atom</em> running, when you open additional files (or try to open a file that you have already open) from the <em>Terminal</em>, <em>OS X's Dock</em> will show a temporary second <em>Atom</em> icon (and then it goes away). This should not be the case.</p> <p dir="auto">See how <em>TextMate</em> 1.5.x doesn't do this when you use the <em>mate</em> shell command. Same for opening <em>Sublime Text</em> running <em>subl</em> from the terminal.</p>
1
<p dir="auto">Hi there,</p> <p dir="auto">Just noticed that when writing ruby code in atom there seems to be a bug regarding syntax highlighting after %{}</p> <p dir="auto">eg if you write the line<br> object.something(%{(default: $FIlE, or "/asd")})<br> every thing is highlighted green afterwards?</p> <p dir="auto">Atom Version 0.103.0 (0.103.0)<br> Mac OSX 10.9.3</p>
<p dir="auto">Consider the following code fragment, when inserted into the editor the syntax highlighitng shows all the code below the closed string as a string. This is not the case in sublime2 and other text-editors.</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="email.header = &quot;[[\&quot;Received\&quot;, \&quot;by luna.mailgun.net with SMTP mgrt 8788212249833; Fri, 26 Apr 2013 18:50:30 +0000\&quot;], [\&quot;Received\&quot;, \&quot;from [10.20.76.69] (Unknown [50.56.129.169]) by mxa.mailgun.org with ESMTP id 517acc75.4b341f0-worker2; Fri, 26 Apr 2013 18:50:29 -0000 (UTC)\&quot;], [\&quot;Message-Id\&quot;, \&quot;&lt;[email protected]&gt;\&quot;], [\&quot;Date\&quot;, \&quot;Fri, 26 Apr 2013 11:50:29 -0700\&quot;], [\&quot;From\&quot;, \&quot;Bob &lt;[email protected]&gt;\&quot;], [\&quot;User-Agent\&quot;, \&quot;Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4\&quot;], [\&quot;Mime-Version\&quot;, \&quot;1.0\&quot;], [\&quot;To\&quot;, \&quot;Alice &lt;[email protected]&gt;\&quot;], [\&quot;Subject\&quot;, \&quot;Re: Sample POST request\&quot;], [\&quot;References\&quot;, \&quot;&lt;[email protected]&gt;\&quot;], [\&quot;In-Reply-To\&quot;, \&quot;&lt;[email protected]&gt;\&quot;], [\&quot;X-Mailgun-Variables\&quot;, \&quot;{\\\&quot;my_var_1\\\&quot;: \\\&quot;Mailgun Variable #1\\\&quot;, \\\&quot;my-var-2\\\&quot;: \\\&quot;awesome\\\&quot;}\&quot;], [\&quot;Content-Type\&quot;, \&quot;multipart/mixed; boundary=\\\&quot;------------020601070403020003080006\\\&quot;\&quot;], [\&quot;Sender\&quot;, \&quot;[email protected]\&quot;]]&quot; email.content_type = params['Content-Type']"><pre class="notranslate"><span class="pl-en">email</span><span class="pl-kos">.</span><span class="pl-en">header</span> <span class="pl-c1">=</span> <span class="pl-s">"[[<span class="pl-cce">\"</span>Received<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>by luna.mailgun.net with SMTP mgrt 8788212249833; Fri, 26 Apr 2013 18:50:30 +0000<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Received<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>from [10.20.76.69] (Unknown [50.56.129.169]) by mxa.mailgun.org with ESMTP id 517acc75.4b341f0-worker2; Fri, 26 Apr 2013 18:50:29 -0000 (UTC)<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Message-Id<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>&lt;[email protected]&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Date<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Fri, 26 Apr 2013 11:50:29 -0700<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>From<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Bob &lt;[email protected]&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>User-Agent<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Mime-Version<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>1.0<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>To<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Alice &lt;[email protected]&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Subject<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>Re: Sample POST request<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>References<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>&lt;[email protected]&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>In-Reply-To<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>&lt;[email protected]&gt;<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>X-Mailgun-Variables<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>{<span class="pl-cce">\\</span><span class="pl-cce">\"</span>my_var_1<span class="pl-cce">\\</span><span class="pl-cce">\"</span>: <span class="pl-cce">\\</span><span class="pl-cce">\"</span>Mailgun Variable #1<span class="pl-cce">\\</span><span class="pl-cce">\"</span>, <span class="pl-cce">\\</span><span class="pl-cce">\"</span>my-var-2<span class="pl-cce">\\</span><span class="pl-cce">\"</span>: <span class="pl-cce">\\</span><span class="pl-cce">\"</span>awesome<span class="pl-cce">\\</span><span class="pl-cce">\"</span>}<span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Content-Type<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>multipart/mixed; boundary=<span class="pl-cce">\\</span><span class="pl-cce">\"</span>------------020601070403020003080006<span class="pl-cce">\\</span><span class="pl-cce">\"</span><span class="pl-cce">\"</span>], [<span class="pl-cce">\"</span>Sender<span class="pl-cce">\"</span>, <span class="pl-cce">\"</span>[email protected]<span class="pl-cce">\"</span>]]"</span> <span class="pl-en">email</span><span class="pl-kos">.</span><span class="pl-en">content_type</span> <span class="pl-c1">=</span> <span class="pl-en">params</span><span class="pl-kos">[</span><span class="pl-s">'Content-Type'</span><span class="pl-kos">]</span></pre></div>
1
<p dir="auto">julia repl v 1.5.2 crashes when you enter a char ('x')<br> <a href="https://github.com/JuliaLang/julia/files/5357941/crash.log">crash.log</a></p>
<p dir="auto">uname -a<br> Linux odie 4.15.0-88-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1118246" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/88" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/88/hovercard" href="https://github.com/JuliaLang/julia/issues/88">#88</a>-Ubuntu SMP Tue Feb 11 20:11:34 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</p> <p dir="auto"><a href="https://github.com/JuliaLang/julia/files/4364650/cpuinfo.txt">cpuinfo.txt</a><br> <a href="https://github.com/JuliaLang/julia/files/4364651/errjulia-1.4.txt">errjulia-1.4.txt</a></p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=aswan" rel="nofollow">Andrew Swan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8922?redirect=false" rel="nofollow">SPR-8922</a></strong> and commented</p> <p dir="auto">from the following URL, it seems as though the reference docs have not yet been updated to reflect the new schema locations of the Spring XML schemas:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/xsd-config.html"><pre class="notranslate"><code class="notranslate">http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/xsd-config.html </code></pre></div> <p dir="auto">They all seem to reference the 3.0 schemas...</p> <hr> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398154990" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14644" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14644/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14644">#14644</a> Remove xsd versions from reference samples (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=pwebb" rel="nofollow">Phil Webb</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-10010?redirect=false" rel="nofollow">SPR-10010</a></strong> and commented</p> <p dir="auto">The current reference docs include a lot of older xsd links. We should probably replace these with 3.2 versions.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.3</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="398116030" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13562" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13562/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13562">#13562</a> Update reference documentation regarding 3.1 schema versions (<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/d3f4528905b2c6277d1b169f8570591418c57350/hovercard" href="https://github.com/spring-projects/spring-framework/commit/d3f4528905b2c6277d1b169f8570591418c57350"><tt>d3f4528</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2b6d724faeb493da2d818c91edde66c141efd26c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2b6d724faeb493da2d818c91edde66c141efd26c"><tt>2b6d724</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/a52396b342f08144fae8be0d17129f99afe1a3c4/hovercard" href="https://github.com/spring-projects/spring-framework/commit/a52396b342f08144fae8be0d17129f99afe1a3c4"><tt>a52396b</tt></a></p>
1
<p dir="auto">When I try to create a pod which mounts secret volumes I get a <code class="notranslate">Unable to mount volumes for pod: exit status 1</code> error. For instance, when trying to create the example pod from <a href="https://github.com/kubernetes/kubernetes/tree/master/docs/user-guide/secrets">https://github.com/kubernetes/kubernetes/tree/master/docs/user-guide/secrets</a> :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret.yaml | kubectl create -f - secrets/test-secret $ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret-pod.yaml | kubectl create -f - pods/secret-test-pod $ kubectl describe pod secret-test-pod [...] Events: FirstSeen LastSeen Count From SubobjectPath Reason Message Fri, 30 Oct 2015 10:56:30 +0000 Fri, 30 Oct 2015 10:56:30 +0000 1 {scheduler } scheduled Successfully assigned secret-test-pod to 127.0.0.1 Fri, 30 Oct 2015 10:56:30 +0000 Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1} failedMount Unable to mount volumes for pod &quot;secret-test-pod_default&quot;: exit status 1 Fri, 30 Oct 2015 10:56:30 +0000 Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1} failedSync Error syncing pod, skipping: exit status 1"><pre class="notranslate"><code class="notranslate">$ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret.yaml | kubectl create -f - secrets/test-secret $ curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/master/docs/user-guide/secrets/secret-pod.yaml | kubectl create -f - pods/secret-test-pod $ kubectl describe pod secret-test-pod [...] Events: FirstSeen LastSeen Count From SubobjectPath Reason Message Fri, 30 Oct 2015 10:56:30 +0000 Fri, 30 Oct 2015 10:56:30 +0000 1 {scheduler } scheduled Successfully assigned secret-test-pod to 127.0.0.1 Fri, 30 Oct 2015 10:56:30 +0000 Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1} failedMount Unable to mount volumes for pod "secret-test-pod_default": exit status 1 Fri, 30 Oct 2015 10:56:30 +0000 Fri, 30 Oct 2015 11:31:37 +0000 211 {kubelet 127.0.0.1} failedSync Error syncing pod, skipping: exit status 1 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl get secrets NAME TYPE DATA default-token-vjaxy kubernetes.io/service-account-token 2 test-secret Opaque 2"><pre class="notranslate"><code class="notranslate">$ kubectl get secrets NAME TYPE DATA default-token-vjaxy kubernetes.io/service-account-token 2 test-secret Opaque 2 </code></pre></div> <p dir="auto">This is a single node containerized k8s cluster for local development (based on <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md">https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md</a> ).</p> <p dir="auto">Here is how I specifically create the cluster and the definition of the master pod: <a href="https://gist.github.com/2opremio/12eafc0c2485d8d13f2a">https://gist.github.com/2opremio/12eafc0c2485d8d13f2a</a></p> <p dir="auto">I am running Docker <code class="notranslate">version 1.8.2, build 0a8c2e3</code></p> <p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="112676337" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/16055" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/16055/hovercard" href="https://github.com/kubernetes/kubernetes/issues/16055">#16055</a> (I get a different error, though) and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="79865554" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/8734" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/8734/hovercard" href="https://github.com/kubernetes/kubernetes/issues/8734">#8734</a> (but I do provide the --contenerized flag see <a href="https://gist.github.com/2opremio/12eafc0c2485d8d13f2a#file-create_cluster-sh-L27">https://gist.github.com/2opremio/12eafc0c2485d8d13f2a#file-create_cluster-sh-L27</a> ) and and somehow similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="87107241" data-permission-text="Title is private" data-url="https://github.com/openshift/origin/issues/3072" data-hovercard-type="issue" data-hovercard-url="/openshift/origin/issues/3072/hovercard" href="https://github.com/openshift/origin/issues/3072">openshift/origin#3072</a></p>
<p dir="auto">Resurrected from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35537132" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/66" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/66/hovercard" href="https://github.com/kubernetes/kubernetes/issues/66">#66</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="39410196" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/761" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/761/hovercard" href="https://github.com/kubernetes/kubernetes/issues/761">#761</a>.</p> <p dir="auto">Probe currently supports the following control parameters:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" // Length of time before health checking is activated. In seconds. InitialDelaySeconds int64 `json:&quot;initialDelaySeconds,omitempty&quot; description:&quot;number of seconds after the container has started before liveness probes are initiated; see http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes&quot;` // Length of time before health checking times out. In seconds. TimeoutSeconds int64 `json:&quot;timeoutSeconds,omitempty&quot; description:&quot;number of seconds after which liveness probes timeout; defaults to 1 second; see http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes&quot;`"><pre class="notranslate"><code class="notranslate"> // Length of time before health checking is activated. In seconds. InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty" description:"number of seconds after the container has started before liveness probes are initiated; see http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes"` // Length of time before health checking times out. In seconds. TimeoutSeconds int64 `json:"timeoutSeconds,omitempty" description:"number of seconds after which liveness probes timeout; defaults to 1 second; see http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes"` </code></pre></div> <p dir="auto">We should add the following common control parameters (matching, for instance, <a href="https://cloud.google.com/appengine/docs/managed-vms/config#health_checking" rel="nofollow">AppEngine's parameters</a> and <a href="https://cloud.google.com/compute/docs/reference/latest/httpHealthChecks" rel="nofollow">GCE's parameters</a>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// How often to probe PeriodSeconds *int64 // Minimum consecutive successes for the probe to be considered successful after having reached the FailureThreshold; defaults to 1; must be 1 for liveness SuccessThreshold *int // Minimum consecutive failures for the probe to be considered failed; defaults to 1 FailureThreshold *int"><pre class="notranslate"><code class="notranslate">// How often to probe PeriodSeconds *int64 // Minimum consecutive successes for the probe to be considered successful after having reached the FailureThreshold; defaults to 1; must be 1 for liveness SuccessThreshold *int // Minimum consecutive failures for the probe to be considered failed; defaults to 1 FailureThreshold *int </code></pre></div> <p dir="auto">At some point we'll probably want to add an enable/disable boolean, since it's convenient to be able to disable liveness probes without losing the parameter settings, but that's less critical than the above.</p>
0
<p dir="auto">Why does catch return an object and not an error object?</p>
<p dir="auto">It is good practice to reject promises with an error object because they have stack traces.</p> <p dir="auto"><a href="https://github.com/mzabriskie/axios/blob/d93df704a269d3cbf8f00bcd4b2b2489d5b74f49/lib/adapters/http.js#L73">When rejecting because of a bad status code</a>, I suggest rejecting with an error object, e.g. <code class="notranslate">BadStatusCodeError</code>. You could then attach the response object to the error object so it can be accessed in a rejection handler.</p>
1
<p dir="auto">I can't type vietnamese with Unikey software, also with Visual Studio everthing worked perfectly</p>
<p dir="auto">this not for vietnamese programer ? i can not write vietnamese language: "Tôi yêu Việt Nam" on editor, please fix !</p>
1
<p dir="auto">During writing container attach node e2e test, I found this.</p> <p dir="auto">Docker attach has an option called <code class="notranslate">Logs</code> (see <a href="https://docs.docker.com/engine/reference/api/docker_remote_api_v1.22/#attach-to-a-container" rel="nofollow">Docker Remote API</a>).<br> With this on, before each container attach docker will print the container log first (see <a href="https://github.com/docker/docker/blob/5709f8e4227e0e1da333739c44003a3f47279bd5/daemon/attach.go#L77-L106">code</a>)</p> <p dir="auto">The <code class="notranslate">Logs</code> option is supported in go-dockerclient (see <a href="https://github.com/fsouza/go-dockerclient/blob/master/container.go#L1127">code</a>), while it is not supported in engine-api yet (see <a href="https://github.com/docker/engine-api/blob/8924d6900370b4c7e7984be5adc61f50a80d7537/types/client.go#L14-L21">code</a>).</p> <p dir="auto">Before <a href="#23506">switching to engine-api</a>, the <code class="notranslate">Logs</code> option is <strong>true</strong> (see <a href="https://github.com/kubernetes/kubernetes/blob/release-1.2/pkg/kubelet/dockertools/manager.go#L1115">old code</a>). While because engine-api doesn't support it, we don't set it now (see <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockertools/kube_docker_client.go#L324-L331">code</a>)</p> <p dir="auto">What is the expected behavior here? If needed, we could send a PR to engine-api to support it.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ncdc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ncdc">@ncdc</a></p> <p dir="auto">/cc @kubernetes/sig-node @kubernetes/rh-ux</p> <p dir="auto">Ref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="144114383" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23563" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/23563/hovercard" href="https://github.com/kubernetes/kubernetes/issues/23563">#23563</a></p>
<p dir="auto">When running a command via <code class="notranslate">kubectl run -it</code> that immediately prints something, we might lose some lines of the log due to a race of the execution of the container and the <code class="notranslate">kubectl attach</code> used by <code class="notranslate">kubectl run</code> to attach to the terminal (compare comment <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="114629913" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/16670" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/16670/hovercard?comment_id=199017681&amp;comment_type=issue_comment" href="https://github.com/kubernetes/kubernetes/issues/16670#issuecomment-199017681">#16670 (comment)</a>).</p> <p dir="auto">As a workaround for running an interactive shell we have this ugly <code class="notranslate">Hit enter for command prompt</code> now. The actual root problem though is that <code class="notranslate">docker attach</code> does not replay the logs. It looks like <code class="notranslate">docker run</code> is the only way to actually synchronously run a command, get all the output and attach to the process.</p>
1
<p dir="auto">I discovered that the following does not work:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; muladd!(_, ::Nothing, _; kwargs...) = nothing ERROR: syntax: all-underscore identifier used as rvalue around REPL[2]:1 Stacktrace: [1] top-level scope at REPL[2]:1"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">muladd!</span>(_, <span class="pl-k">::</span><span class="pl-c1">Nothing</span>, _; kwargs<span class="pl-k">...</span>) <span class="pl-k">=</span> <span class="pl-c1">nothing</span> ERROR<span class="pl-k">:</span> syntax<span class="pl-k">:</span> all<span class="pl-k">-</span>underscore identifier used <span class="pl-k">as</span> rvalue around REPL[<span class="pl-c1">2</span>]<span class="pl-k">:</span><span class="pl-c1">1</span> Stacktrace<span class="pl-k">:</span> [<span class="pl-c1">1</span>] top<span class="pl-k">-</span>level scope at REPL[<span class="pl-c1">2</span>]<span class="pl-k">:</span><span class="pl-c1">1</span></pre></div> <p dir="auto">whereas without kwargs, it's fine:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; muladd!(_, ::Nothing, _) = nothing muladd! (generic function with 1 method)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">muladd!</span>(_, <span class="pl-k">::</span><span class="pl-c1">Nothing</span>, _) <span class="pl-k">=</span> <span class="pl-c1">nothing</span> muladd! (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method)</pre></div>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; f(_, a) = 10 f (generic function with 1 method) julia&gt; f(_, a=1) = 10 ERROR: syntax: all-underscore identifier used as rvalue around REPL[0]:1"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">f</span>(_, a) <span class="pl-k">=</span> <span class="pl-c1">10</span> f (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method) julia<span class="pl-k">&gt;</span> <span class="pl-en">f</span>(_, a<span class="pl-k">=</span><span class="pl-c1">1</span>) <span class="pl-k">=</span> <span class="pl-c1">10</span> ERROR<span class="pl-k">:</span> syntax<span class="pl-k">:</span> all<span class="pl-k">-</span>underscore identifier used <span class="pl-k">as</span> rvalue around REPL[<span class="pl-c1">0</span>]<span class="pl-k">:</span><span class="pl-c1">1</span></pre></div> <p dir="auto">The second form seems legitimate, no? The same issue arises with keyword arguments (<code class="notranslate">f(_; x=1) = ...</code>)</p>
1
<p dir="auto">Hi,<br> I am using Superset 0.19.0 to connect Spark Sql. I need to query my temp tables in spark. The database is created and connection is OK. I also was able to create a table by selecting my database connection and giving the table name and empty schema name ( Spark temp tables don't have a database/schema ). I am able to load data from my table and visualize it.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8961517/29110753-087f6564-7cfd-11e7-9923-a75c5b7ae381.png"><img src="https://user-images.githubusercontent.com/8961517/29110753-087f6564-7cfd-11e7-9923-a75c5b7ae381.png" alt="tables1" style="max-width: 100%;"></a></p> <p dir="auto">Now I want to query my tables from SQL Lab, but I can't access the tables. The reason is that If I don't select any schema, I can't see or search my table names.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8961517/29111287-e4d5933e-7cfe-11e7-95ac-fd228b08c129.png"><img src="https://user-images.githubusercontent.com/8961517/29111287-e4d5933e-7cfe-11e7-95ac-fd228b08c129.png" alt="sqllab" style="max-width: 100%;"></a></p> <p dir="auto">Is it possible to make SQL Lab view and query tables which are NOT in any database/schema?</p>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if any</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li> </ul> <h3 dir="auto">Superset version</h3> <p dir="auto">0.19.0</p> <h3 dir="auto">Expected results</h3> <p dir="auto">To be able to see the tables in SQL LAB and if I select one of them see a short summary of the selected table and its columns. Another expectation would be to autosuggest the table names and columns in the SQL LAB editor.</p> <h3 dir="auto">Actual results</h3> <p dir="auto">I can't see any Temporary Table names in the dropdown menu plus there is no suggestion about the created Temporary Tables or their columns in the query editor. However I'm able to query the tables and getting the appropriate results in the results tab.<br> Additional information that connecting to Spark SQL via beeline command line tool shows that all the Temporary Tables were created and registered (show tables command) and their columns can be seen as well (show columns from sometable command).<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18054466/29020072-161ad26e-7b61-11e7-95b3-113edd4acb9f.png"><img width="959" alt="spark_issue" src="https://user-images.githubusercontent.com/18054466/29020072-161ad26e-7b61-11e7-95b3-113edd4acb9f.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>Start a Spark Context and set spark.sql.hive.thriftServer.singleSession to true.</li> <li>Start a Spark Thrift Server in the already created and started Spark context.</li> <li>Create some Temporary Tables in the Spark context.</li> <li>Connect to Spark SQL with Pyhive SQLAlchemy URI.</li> </ol>
1
<p dir="auto">Seems fixing the bug from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="196589497" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/4521" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/4521/hovercard" href="https://github.com/vuejs/vue/issues/4521">#4521</a> created a new bug for :checked="" binding when using in combination with vuex states for maintaining checkbox states.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;template&gt; &lt;ul&gt; &lt;li v-for=&quot;option in visibleOptions&quot; :key=&quot;option.value&quot;&gt; &lt;input type=&quot;checkbox&quot; :name=&quot;filter.key&quot; :value=&quot;option.value&quot; :checked=&quot;inArray(option.value, filter.active)&quot; @change=&quot;updateFilter&quot;&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/template&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">template</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">ul</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">v-for</span><span class="pl-c1">=</span><span class="pl-s">"option in visibleOptions"</span> :<span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-s">"option.value"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"checkbox"</span> :<span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"filter.key"</span> :<span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-s">"option.value"</span> :<span class="pl-c1">checked</span><span class="pl-c1">=</span><span class="pl-s">"inArray(option.value, filter.active)"</span> @<span class="pl-c1">change</span><span class="pl-c1">=</span><span class="pl-s">"updateFilter"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">ul</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">template</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">In this code example is :checked set to true or false whenever it's in the active filter array.<br> It seems when this component is updated (via vuex) the :checked stated doesn't get's updated like in 2.1.6. In my application is the state managed <em>almost</em> totally by Vuex.</p> <h3 dir="auto">Vue.js version</h3> <p dir="auto">2.1.7+</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="http://vroom.automotivated.nl/" rel="nofollow">http://vroom.automotivated.nl/</a></p> <h3 dir="auto">Howto reproduce</h3> <p dir="auto">When selecting several checkboxes (like brands) and use your <strong>browser back button</strong> to fallback to previous states. (it's managed by the popstate event and uses vuex actions to update actively the new state)</p> <h3 dir="auto">What is expected</h3> <p dir="auto">The checkbox should go on or off depending on the previous action or new current state.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Everything get's correctly updated (value wise), except the checkbox isn't honored to update (checked true/false). It keeps in a previous state. When selecting multiple after eachother and navigating back and forward is looks like is off a beat and missing the last changed checkbox.</p> <p dir="auto">Code that goes with it:<br> <a href="https://github.com/Automotivated/vroom/blob/master/src/views/elements/filters/Multiple.vue">https://github.com/Automotivated/vroom/blob/master/src/views/elements/filters/Multiple.vue</a><br> Full github repo:<br> <a href="https://github.com/Automotivated/vroom/">https://github.com/Automotivated/vroom/</a></p> <p dir="auto">While reading the <a href="https://vuex.vuejs.org/en/forms.html" rel="nofollow">docs</a> in Vuex, it seems to be best practise to do it like I did.</p> <h3 dir="auto">When did it work</h3> <p dir="auto">It worked like a charm in 2.1.6. Seems really that fixing this bug triggered this bug to be created.</p>
<p dir="auto">Example: <a href="https://jsfiddle.net/vfmxxzeb/3/" rel="nofollow">https://jsfiddle.net/vfmxxzeb/3/</a></p> <p dir="auto">What the example does:</p> <ol dir="auto"> <li>Resets <code class="notranslate">values</code> to an array of values every one second</li> <li>Each line has two checkboxes, both of which are bound to the same value</li> </ol> <p dir="auto">Steps to reproduce:</p> <ol dir="auto"> <li><em>Click</em> on the enabled checkbox on any line</li> </ol> <p dir="auto">Expected behaviour:</p> <ol dir="auto"> <li>After one second, the value should be reset. Both checkboxes should reflect the same value</li> </ol> <p dir="auto">Actual behaviour (tested on Chrome):</p> <ol dir="auto"> <li>The disabled checkbox correctly reflects the value, but the enabled checkbox does not reflect the value. The enabled checkbox will reflect the correct value only after blurring from the checkbox</li> </ol>
1
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.7.1</li> <li>Operating System: MacOS 10.15 Catalina</li> <li>Node.js version: 12.18.4</li> <li>Browser: Chromium</li> <li>Extra: None</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="const { chromium } = require('playwright'); (async () =&gt; { const browser = await chromium.launch() const page = await browser.newPage() const URL = 'https://the-internet.herokuapp.com/key_presses' await page.goto(URL) const handles = await page.evaluateHandle(() =&gt; document.querySelectorAll('input')) if (handles) { const properties = await handles.getProperties() for (const property of properties.values()) { const elementHandle = property.asElement() if (elementHandle) { await elementHandle.focus() } } handles.dispose() } await browser.close() })();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'playwright'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-c1">URL</span> <span class="pl-c1">=</span> <span class="pl-s">'https://the-internet.herokuapp.com/key_presses'</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-c1">URL</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">handles</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">evaluateHandle</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">document</span><span class="pl-kos">.</span><span class="pl-en">querySelectorAll</span><span class="pl-kos">(</span><span class="pl-s">'input'</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">handles</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">properties</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">handles</span><span class="pl-kos">.</span><span class="pl-en">getProperties</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">property</span> <span class="pl-k">of</span> <span class="pl-s1">properties</span><span class="pl-kos">.</span><span class="pl-en">values</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">elementHandle</span> <span class="pl-c1">=</span> <span class="pl-s1">property</span><span class="pl-kos">.</span><span class="pl-en">asElement</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">elementHandle</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">elementHandle</span><span class="pl-kos">.</span><span class="pl-en">focus</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">handles</span><span class="pl-kos">.</span><span class="pl-en">dispose</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-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> When I get the array of ElementHandle by <code class="notranslate">page.evaluateHandle()</code> and call any API of each ElementHandle (focus() for an example), an error <code class="notranslate">elementHandle.focus(): dispatcher[method] is not a function</code> is thrown. Reproducible example here: <a href="https://try.playwright.tech/?s=i1th62g" rel="nofollow">https://try.playwright.tech/?s=i1th62g</a></p>
<p dir="auto">playwright version 1.7.1</p> <p dir="auto">Failed to run the example<br> REF: <a href="https://playwright.dev/docs/api/class-page#pageexposebindingname-playwrightbinding-options" rel="nofollow">https://playwright.dev/docs/api/class-page#pageexposebindingname-playwrightbinding-options</a></p> <blockquote> <p dir="auto">await page.exposeBinding('clicked', async (source, element) =&gt; {<br> console.log(await element.textContent());<br> }, { handle: true });<br> await page.setContent(`</p> &lt;script&gt; document.addEventListener('click', event =&gt; window.clicked(event.target)); &lt;/script&gt; <div dir="auto">Click me</div> <div dir="auto">Or click me</div> `); </blockquote> <p dir="auto">Google Chrome console reports error :<br> <code class="notranslate">Uncaught (in promise) elementHandle.textContent: dispatcher[method] is not a function</code></p>
1
<p dir="auto">On testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133425257" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2994" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2994/hovercard" href="https://github.com/microsoft/vscode/issues/2994">#2994</a></p> <p dir="auto">In this snippet range select both 'foo' and 'bar' methods and then perform 'Fold' operation.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class xyz { foo() { hello } bar() { world } }"><pre class="notranslate"><code class="notranslate">class xyz { foo() { hello } bar() { world } } </code></pre></div> <p dir="auto">Observe: only 'foo' is collapsed.<br> I would expect that all regions overlapping with the text selection are collapsed.</p>
<p dir="auto">Testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133425257" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2994" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2994/hovercard" href="https://github.com/microsoft/vscode/issues/2994">#2994</a></p> <p dir="auto">It seems to only work on the main cursor currently.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/[email protected]" rel="nofollow">David Thexton</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9405?redirect=false" rel="nofollow">SPR-9405</a></strong> and commented</p> <p dir="auto">I noted when trying to diagnose <a href="https://jira.spring.io/browse/BATCH-1852" rel="nofollow">BATCH-1852</a> (which was making use of JdbcTemplate) that there were no options to enable logging JDBC query parameters or query results. I recalled this was possible for Hibernate (see <a href="http://www.seamframework.org/Documentation/EnablingJDBCBindParameterLoggingWithHibernateAndLog4j" rel="nofollow">http://www.seamframework.org/Documentation/EnablingJDBCBindParameterLoggingWithHibernateAndLog4j</a>) and wanted the same feature for Spring JdbcTemplate. I could have used P6Spy (see <a href="http://sourceforge.net/projects/p6spy/" rel="nofollow">http://sourceforge.net/projects/p6spy/</a>), although that approach seemed inconvenient.</p> <p dir="auto">As this logging can be very verbose I used separate classes (and thus loggers). Continue to set logger "org.springframework.jdbc.core.JdbcTemplate" to debug to see the queries being executed and simple results. Additionally set logger "org.springframework.jdbc.core.PreparedStatementValueLogger" to debug for query parameter logging and logger "org.springframework.jdbc.core.PreparedStatementResultLogger" to debug for further query result logging.</p> <p dir="auto">I've implemented the change in a style that will hopefully be seen to fit and I'll issue a pull request as soon as I've completed testing and committed to my spring-framework fork. I'm happy to make further changes for this issue if necessary. Please let me know.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.2 M1</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="398108982" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12438" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12438/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12438">#12438</a> Logging of SQL Params and Query when using JdbcTemplate (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gupabhi" rel="nofollow">Abhishek Gupta</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7782?redirect=false" rel="nofollow">SPR-7782</a></strong> and commented</p> <p dir="auto">In production applications it is imperative that SQL statements and bind parameters be logged at a configurable level for support purposes.</p> <p dir="auto">When using the JdbcTemplate spring does currently log both, but sql statements are logged at debug level and parameters are logged in the 'o.s.j.c.StatementCreatorUtils' class at trace level. It is impractical to keep trace level on in a critical (or any) production system - even for a single class. There are other non-important (or non-functional) debug/trace logs that might be in the class that are not required to be logged. Or new ones might be introduced in future versions.</p> <p dir="auto">We would want the query/params to be logged at info level but again that might not be suitable for others, so ideally it should be something that is configurable.</p> <p dir="auto">The work-around today is ugly, in that we wrap the JdbcTemplate just to be able to log the parameters. Ideally, if there could be a property in the JdbcTemplate that accepts the log level for functional logs (query, params in this case) it would be most helpful. Given that JdbcTemplate is now a total replacement for using any low level jdbc api, and is so popular, it makes sense to have this feature that will give users more control and contribute to the completeness of such a widely used Spring offering.</p> <p dir="auto">I am happy to use any other solution you might have that addresses this use-case.</p> <p dir="auto">Thanks,<br> Abhi</p> <p dir="auto">P.S. This really applies to other classes too like in the jdbc.object package</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398150504" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14041" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14041/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14041">#14041</a> JdbcTemplate parameter and result logging (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111146" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12774" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12774/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12774">#12774</a> Revisit subsystem-oriented logging</li> </ul> <p dir="auto">6 votes, 14 watchers</p>
1
<h3 dir="auto">System Info</h3> <p dir="auto">I'm using LayoutLMv3Processor to encoding.<br> when I input (1, 82, 4) as boxes, the processor will extends the boxes to (1, 512, 4), but some boxes of input is dropped by processor as I can't find them in the encoding;<br> seems the last n boxes is dropped.</p> <p dir="auto"><strong><em>tokenizer = LayoutLMv3TokenizerFast.from_pretrained('microsoft/layoutlmv3-base')<br> processor = LayoutLMv3Processor(LayoutLMv3FeatureExtractor(apply_ocr=False), tokenizer)</em></strong></p> <p dir="auto"><strong>boxes of before encoding (512, 4)<br> boxes of after encoding (82, 4)<br> boxes of before encoding without duplicated (58, 4)<br> boxes of after encoding without duplicated (82, 4)</strong></p> <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">import numpy as np<br> from PIL import Image<br> from transformers import LayoutLMv3Processor, LayoutLMv3TokenizerFast, LayoutLMv3FeatureExtractor, <br> LayoutLMv3ForTokenClassification, AutoModelForTokenClassification, AutoConfig<br> from inference_util import prepare_annotation,load_original_dataset</p> <p dir="auto">image_paths,bboxes,ner_tags=load_original_dataset("cro_vl_fr/","test")</p> <p dir="auto">tokenizer = LayoutLMv3TokenizerFast.from_pretrained('microsoft/layoutlmv3-base')<br> processor = LayoutLMv3Processor(LayoutLMv3FeatureExtractor(apply_ocr=False), tokenizer)</p> <p dir="auto">item = image_paths[0]<br> image = Image.open( item).convert("RGB")</p> <h1 dir="auto">get word-level annotations</h1> <p dir="auto">image,words,boxes=prepare_annotation(image,bboxes[0])<br> boxes_2_points= np.hstack((np.array(boxes)[:,0:2],np.array(boxes)[:,4:6])).astype(int)</p> <p dir="auto">encoding = processor(image, words, boxes=boxes_2_points,<br> padding="max_length", truncation=True,<br> return_tensors="pt")</p> <p dir="auto">for k,v in encoding.items():<br> encoding[k] = v.squeeze()</p> <p dir="auto">token_boxes = encoding['bbox'].numpy()</p> <p dir="auto">print("boxes of before encoding",np.shape(token_boxes))<br> print("boxes of after encoding",np.shape(boxes_2_points))<br> token_boxes=[tuple(a) for a in token_boxes]<br> token_boxes=np.array(list(set(token_boxes)))<br> boxes_2_points=[tuple(a) for a in boxes_2_points]<br> boxes_2_points=np.array(list(set(boxes_2_points)))</p> <p dir="auto">print("boxes of before encoding without duplicated ",np.shape(token_boxes))<br> print("boxes of after encoding without duplicated",np.shape(boxes_2_points))</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">original boxes should not be drop.</p>
<p dir="auto">The link to the example/summarization folder in <a href="https://huggingface.co/transformers/examples.html#the-big-table-of-tasks" rel="nofollow">the-big-table-of-tasks</a> is broken because the folder's name has been changed to seq2seq</p>
0
<p dir="auto">The rules for struct identity require that two identical structs have identical tags.</p> <p dir="auto">This plays into the rules for assignments and conversions of structs in unfortunate ways:</p> <p dir="auto">There appears to be no way to assign or even convert a struct with tags to another struct with different or no tags, wether that other struct is named or unnamed:</p> <p dir="auto"><a href="http://play.golang.org/p/6FZcWSIc9w" rel="nofollow">http://play.golang.org/p/6FZcWSIc9w</a></p> <p dir="auto">I think we're overly restrictive here. For instance, if I wanted to convert a struct with json tags to a struct with tags for some other encoding (to convert from one encoding to another), I actually have to copy all the fields by hand.</p> <p dir="auto">This seems counter-intuitive. I would have expected that I could go via an unnamed struct, or at the very least use an explicit conversion.</p> <p dir="auto">I'm thinking that perhaps we should relax the rules here. One might be to remove again the requirement of identical tags for struct identity (simplest); or perhaps to relax the rules for assignments and conversions of structs.</p>
<pre class="notranslate">Run this: package main type Message struct { Id int `db:"id"` Text string `db:"text"` } type Message2 struct { Id int `json:"id" xml:"id,attr"` Text string `json:"text"` } func main() { msg := Message{1, "Hello"} msg2 := Message2(msg) _ = msg2 } What is the expected output? [no output] What do you see instead? cannot convert msg (type Message) to type Message2 Which compiler are you using (5g, 6g, 8g, gccgo)? Which version are you using? (run 'go version') go version devel +d744da8c8cbf Wed Sep 25 16:18:33 2013 -0400 darwin/amd64 Please provide any additional information below. I'm trying to decouple my database layer from my service layer into separate packages. Tags in one package are only relevant to that package. What I'd like to do is re-define the struct in my service layer and cast it from the database layer. The fields inside the struct are otherwise exactly the same, besides the tags. Unfortunately it won't cast unless the tags are also exactly the same. The only solution I have at this point is put the structs in a "common" package that both the database and service layers share. But then I'm mixing tags...</pre>
1
<p dir="auto">Mousewheel click for opening a new tab in background doesnt't work for me in Firefox (19.0.2, Win7 64Bit). In Chrome it works fine for me. Seems that is something wrong with bootstrap.js.</p> <p dir="auto">Example: <a href="http://twitter.github.com/bootstrap/">http://twitter.github.com/bootstrap/</a><br> Steps to reproduce: Try to click with the mousewheel on a link.</p>
<p dir="auto">Issue: middle mouse click on a link in Firefox, nothing happens.<br> Expected behavior: middle mouse click on a link, open in new browser tab.<br> Live example: <a href="http://twitter.github.com/bootstrap/">http://twitter.github.com/bootstrap/</a></p> <p dir="auto">Tested on Win7/Firefox19 Safemode/Non-Safemode failed. IE9/Chrome25 ok.<br> Notice it when I upgrade to bootstrap v2.3.1.<br> Switch back to v2.3 and the middle button works again.</p>
1
<p dir="auto">I want to import matplotlib to django project. I add "import matplotlib.pyplot as plt" in the front of the code and I get this error:<br> Traceback:<br> File "/Users/yobichi/wi/lib/python3.5/site-packages/django/core/handlers/base.py" in get_response</p> <ol dir="auto"> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" resolver_match = resolver.resolve(request.path_info)"><pre class="notranslate"><code class="notranslate"> resolver_match = resolver.resolve(request.path_info) </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/site-packages/django/core/urlresolvers.py" in resolve</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" for pattern in self.url_patterns:"><pre class="notranslate"><code class="notranslate"> for pattern in self.url_patterns: </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/site-packages/django/core/urlresolvers.py" in url_patterns</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" patterns = getattr(self.urlconf_module, &quot;urlpatterns&quot;, self.urlconf_module)"><pre class="notranslate"><code class="notranslate"> patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/site-packages/django/core/urlresolvers.py" in urlconf_module</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" self._urlconf_module = import_module(self.urlconf_name)"><pre class="notranslate"><code class="notranslate"> self._urlconf_module = import_module(self.urlconf_name) </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/importlib/<strong>init</strong>.py" in import_module</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return _bootstrap._gcd_import(name[level:], package, level)"><pre class="notranslate"><code class="notranslate">return _bootstrap._gcd_import(name[level:], package, level) </code></pre></div> File "/Users/yobichi/wi/raptle/raptle/urls.py" in </li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="url(r'^rap_song/', include('rap_song.urls', namespace = &quot;rap_song&quot;)),"><pre class="notranslate"><code class="notranslate">url(r'^rap_song/', include('rap_song.urls', namespace = "rap_song")), </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/site-packages/django/conf/urls/<strong>init</strong>.py" in include</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" urlconf_module = import_module(urlconf_module)"><pre class="notranslate"><code class="notranslate"> urlconf_module = import_module(urlconf_module) </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/importlib/<strong>init</strong>.py" in import_module</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return _bootstrap._gcd_import(name[level:], package, level)"><pre class="notranslate"><code class="notranslate">return _bootstrap._gcd_import(name[level:], package, level) </code></pre></div> File "/Users/yobichi/wi/raptle/rap_song/urls.py" in </li> <li>from . import views<br> File "/Users/yobichi/wi/raptle/rap_song/views.py" in </li> <li>from .topicWords import update_topic<br> File "/Users/yobichi/wi/raptle/rap_song/topicWords.py" in </li> <li>import matplotlib.pyplot as plt<br> File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/<strong>init</strong>.py" in </li> <li>rcParams = rc_params()<br> File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/<strong>init</strong>.py" in rc_params</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return rc_params_from_file(fname, fail_on_error)"><pre class="notranslate"><code class="notranslate">return rc_params_from_file(fname, fail_on_error) </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/<strong>init</strong>.py" in rc_params_from_file</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="config_from_file = _rc_params_in_file(fname, fail_on_error)"><pre class="notranslate"><code class="notranslate">config_from_file = _rc_params_in_file(fname, fail_on_error) </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/<strong>init</strong>.py" in _rc_params_in_file</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with _open_file_or_url(fname) as fd:"><pre class="notranslate"><code class="notranslate">with _open_file_or_url(fname) as fd: </code></pre></div> File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/contextlib.py" in <strong>enter</strong></li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" return next(self.gen)"><pre class="notranslate"><code class="notranslate"> return next(self.gen) </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/site-packages/matplotlib/<strong>init</strong>.py" in _open_file_or_url</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" encoding = locale.getdefaultlocale()[1]"><pre class="notranslate"><code class="notranslate"> encoding = locale.getdefaultlocale()[1] </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/locale.py" in getdefaultlocale</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return _parse_localename(localename)"><pre class="notranslate"><code class="notranslate">return _parse_localename(localename) </code></pre></div> File "/Users/yobichi/wi/lib/python3.5/locale.py" in _parse_localename</li> <li> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="raise ValueError('unknown locale: %s' % localename)"><pre class="notranslate"><code class="notranslate">raise ValueError('unknown locale: %s' % localename) </code></pre></div> </li> </ol> <p dir="auto">Exception Type: ValueError at /rap_song/lyric/user/fama/<br> Exception Value: unknown locale: UTF-8</p> <p dir="auto">I have changed the setting of terminal preferences but when I do this:<br> import locale<br> locale.getdefaultlocale()</p> <p dir="auto">I get : (None, None).<br> Could you please help me for this issue? Thanks in advance!</p>
<p dir="auto">Hi guys!<br> I am new to python and matplotlib.<br> I installed everything with macports and when I run the matplotlib test</p> <p dir="auto">python2.7 -c 'import matplotlib; print matplotlib.<strong>version</strong>, matplotlib.<strong>file</strong>'</p> <p dir="auto">I get the following</p> <p dir="auto">Traceback (most recent call last):<br> File "", line 1, in <br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/<strong>init</strong>.py", line 1131, in <br> rcParams = rc_params()<br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/<strong>init</strong>.py", line 975, in rc_params<br> return rc_params_from_file(fname, fail_on_error)<br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/<strong>init</strong>.py", line 1100, in rc_params_from_file<br> config_from_file = _rc_params_in_file(fname, fail_on_error)<br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/<strong>init</strong>.py", line 1018, in _rc_params_in_file<br> with _open_file_or_url(fname) as fd:<br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in <strong>enter</strong><br> return self.gen.next()<br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/<strong>init</strong>.py", line 1000, in _open_file_or_url<br> encoding = locale.getdefaultlocale()[1]<br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 543, in getdefaultlocale<br> return _parse_localename(localename)<br> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename<br> raise ValueError, 'unknown locale: %s' % localename<br> ValueError: unknown locale: UTF-8</p> <p dir="auto">Do you guys have any idea what is happening....I have not done enything weards just follow simple steps to install it.</p> <p dir="auto">I want to use QUTIP and the matplotlib is essential for it...please if someone know it would be really nice</p> <p dir="auto">thanks!<br> regards,</p>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1688" rel="nofollow">http://projects.scipy.org/numpy/ticket/1688</a> on 2010-11-29 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gerritholl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gerritholl">@gerritholl</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pierregm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pierregm">@pierregm</a>.</em></p> <p dir="auto">When a MaskedArray's data are a record array,, string representation fails with a ValueError as the mask does not contain the mapping of field names that the data does.</p> <p dir="auto">It appears the records are not carried on to the mask.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5] on linux2 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; Z = np.empty((5,), dtype=[('A', np.float32), ('B', np.uint32)]) &gt;&gt;&gt; M = np.ma.masked_where(np.array([True, False, True, False, True]), Z) &gt;&gt;&gt; print M Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/storage4/home/gerrit/.local/lib/python2.6/site-packages/numpy/ma/core.py&quot;, line 3558, in __str__ _recursive_printoption(res, m, f) File &quot;/storage4/home/gerrit/.local/lib/python2.6/site-packages/numpy/ma/core.py&quot;, line 2292, in _recursive_printoption (curdata, curmask) = (result[name], mask[name]) ValueError: field named A not found. &gt;&gt;&gt; print np.version.version 2.0.0.dev-12d0200"><pre class="notranslate"><code class="notranslate">$ python Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; Z = np.empty((5,), dtype=[('A', np.float32), ('B', np.uint32)]) &gt;&gt;&gt; M = np.ma.masked_where(np.array([True, False, True, False, True]), Z) &gt;&gt;&gt; print M Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/storage4/home/gerrit/.local/lib/python2.6/site-packages/numpy/ma/core.py", line 3558, in __str__ _recursive_printoption(res, m, f) File "/storage4/home/gerrit/.local/lib/python2.6/site-packages/numpy/ma/core.py", line 2292, in _recursive_printoption (curdata, curmask) = (result[name], mask[name]) ValueError: field named A not found. &gt;&gt;&gt; print np.version.version 2.0.0.dev-12d0200 </code></pre></div>
<p dir="auto">I'm trying to create a mask for a structured array. When I try to access a field from the array or simply represent it, numpy throws a <code class="notranslate">ValueError: field names A not found</code>, as illustrated below.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; R = numpy.empty(10, dtype=[(&quot;A&quot;, &quot;&lt;f2&quot;), (&quot;B&quot;, &quot;&lt;f4&quot;)]) &gt;&gt;&gt; Rm = numpy.ma.masked_where(R[&quot;A&quot;]&lt;0.1, R) &gt;&gt;&gt; Rm[&quot;A&quot;] Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py&quot;, line 3014, in __getitem__ dout._mask = _mask[indx] ValueError: field named A not found. &gt;&gt;&gt; print(Rm) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py&quot;, line 3583, in __str__ _recursive_printoption(res, m, f) File &quot;/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py&quot;, line 2294, in _recursive_printoption (curdata, curmask) = (result[name], mask[name]) ValueError: field named A not found. &gt;&gt;&gt; print(numpy.version.version) 1.8.0.dev-b8bfcd0 &gt;&gt;&gt; print(numpy.version.git_revision) b8bfcd02a2f246a9c23675e1650c3d316d733306"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; R = numpy.empty(10, dtype=[("A", "&lt;f2"), ("B", "&lt;f4")]) &gt;&gt;&gt; Rm = numpy.ma.masked_where(R["A"]&lt;0.1, R) &gt;&gt;&gt; Rm["A"] Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 3014, in __getitem__ dout._mask = _mask[indx] ValueError: field named A not found. &gt;&gt;&gt; print(Rm) Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 3583, in __str__ _recursive_printoption(res, m, f) File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 2294, in _recursive_printoption (curdata, curmask) = (result[name], mask[name]) ValueError: field named A not found. &gt;&gt;&gt; print(numpy.version.version) 1.8.0.dev-b8bfcd0 &gt;&gt;&gt; print(numpy.version.git_revision) b8bfcd02a2f246a9c23675e1650c3d316d733306 </code></pre></div> <p dir="auto">I tested it with the stable version <code class="notranslate">1.6.2</code> and the bleeding-edge version obtained directly from <code class="notranslate">git</code>.<br> It also fails in earlier stable versions (tested with 1.6.2).</p> <p dir="auto">Note: if I instead create directly a masked array with <code class="notranslate">numpy.ma.empty</code>, I get a <em>different</em> error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; R2 = numpy.ma.empty(10, dtype=[(&quot;A&quot;, &quot;&lt;f2&quot;), (&quot;B&quot;, &quot;&lt;f4&quot;)]) &gt;&gt;&gt; Rm2 = numpy.ma.masked_where(R2[&quot;A&quot;]&lt;0.1, R2) Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py&quot;, line 1810, in masked_where cond = mask_or(cond, a._mask) File &quot;/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py&quot;, line 1627, in mask_or raise ValueError(&quot;Incompatible dtypes '%s'&lt;&gt;'%s'&quot; % (dtype1, dtype2)) ValueError: Incompatible dtypes 'bool'&lt;&gt;'[('A', '?'), ('B', '?')]"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; R2 = numpy.ma.empty(10, dtype=[("A", "&lt;f2"), ("B", "&lt;f4")]) &gt;&gt;&gt; Rm2 = numpy.ma.masked_where(R2["A"]&lt;0.1, R2) Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 1810, in masked_where cond = mask_or(cond, a._mask) File "/local/gerrit/python3.2-bleed/lib/python3.2/site-packages/numpy/ma/core.py", line 1627, in mask_or raise ValueError("Incompatible dtypes '%s'&lt;&gt;'%s'" % (dtype1, dtype2)) ValueError: Incompatible dtypes 'bool'&lt;&gt;'[('A', '?'), ('B', '?')] </code></pre></div>
1
<p dir="auto">My issue is about ...</p> <h4 dir="auto">Reproducing code example:</h4> <p dir="auto">Building scipy 1.4.1 with PyPy3.6 7.3.0 on linux-x86_64 with gcc 7.3.0, numpy 1.18.1 pybind11 2.4.3 and cython 0.29.15 fails.</p> <h4 dir="auto">Error message:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" creating build/temp.linux-x86_64-3.6/scipy/_lib/_uarray compile options: '-I/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/site-packages/numpy/core/include -I/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include -c' extra options: '-std=c++14 -fvisibility=hidden' x86_64-conda_cos6-linux-gnu-c++: scipy/_lib/_uarray/_uarray_dispatch.cxx In file included from /home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include/Python.h:79:0, from scipy/_lib/_uarray/_uarray_dispatch.cxx:2: scipy/_lib/_uarray/_uarray_dispatch.cxx: In member function '{anonymous}::py_func_args {anonymous}::Function::replace_dispatchables(PyObject*, PyObject*, PyObject*, PyObject*)': scipy/_lib/_uarray/_uarray_dispatch.cxx:722:8: error: base operand of '-&gt;' has non-pointer type '{anonymous}::py_ref' if (!PyTuple_Check(res) || PyTuple_Size(res) != 2) ^ scipy/_lib/_uarray/_uarray_dispatch.cxx:734:8: error: base operand of '-&gt;' has non-pointer type '{anonymous}::py_ref' if (!PyTuple_Check(new_args) || !PyDict_Check(new_kwargs)) ^ scipy/_lib/_uarray/_uarray_dispatch.cxx:734:36: error: base operand of '-&gt;' has non-pointer type '{anonymous}::py_ref' if (!PyTuple_Check(new_args) || !PyDict_Check(new_kwargs)) ^ error: Command &quot;/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_build_env/bin/x86_64-conda_cos6-linux-gnu-c++ -DNDEBUG -O2 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/work=/usr/local/src/conda/scipy-1.4.1 -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place=/usr/local/src/conda-prefix -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include -fPIC -I/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/site-packages/numpy/core/include -I/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include -c scipy/_lib/_uarray/_uarray_dispatch.cxx -o build/temp.linux-x86_64-3.6/scipy/_lib/_uarray/_uarray_dispatch.o -MMD -MF build/temp.linux-x86_64-3.6/scipy/_lib/_uarray/_uarray_dispatch.o.d -std=c++14 -fvisibility=hidden&quot; failed with exit status 1"><pre class="notranslate"><code class="notranslate"> creating build/temp.linux-x86_64-3.6/scipy/_lib/_uarray compile options: '-I/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/site-packages/numpy/core/include -I/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include -c' extra options: '-std=c++14 -fvisibility=hidden' x86_64-conda_cos6-linux-gnu-c++: scipy/_lib/_uarray/_uarray_dispatch.cxx In file included from /home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include/Python.h:79:0, from scipy/_lib/_uarray/_uarray_dispatch.cxx:2: scipy/_lib/_uarray/_uarray_dispatch.cxx: In member function '{anonymous}::py_func_args {anonymous}::Function::replace_dispatchables(PyObject*, PyObject*, PyObject*, PyObject*)': scipy/_lib/_uarray/_uarray_dispatch.cxx:722:8: error: base operand of '-&gt;' has non-pointer type '{anonymous}::py_ref' if (!PyTuple_Check(res) || PyTuple_Size(res) != 2) ^ scipy/_lib/_uarray/_uarray_dispatch.cxx:734:8: error: base operand of '-&gt;' has non-pointer type '{anonymous}::py_ref' if (!PyTuple_Check(new_args) || !PyDict_Check(new_kwargs)) ^ scipy/_lib/_uarray/_uarray_dispatch.cxx:734:36: error: base operand of '-&gt;' has non-pointer type '{anonymous}::py_ref' if (!PyTuple_Check(new_args) || !PyDict_Check(new_kwargs)) ^ error: Command "/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_build_env/bin/x86_64-conda_cos6-linux-gnu-c++ -DNDEBUG -O2 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/work=/usr/local/src/conda/scipy-1.4.1 -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place=/usr/local/src/conda-prefix -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include -fPIC -I/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/site-packages/numpy/core/include -I/home/conda/feedstock_root/build_artifacts/scipy_1584945645441/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/include -c scipy/_lib/_uarray/_uarray_dispatch.cxx -o build/temp.linux-x86_64-3.6/scipy/_lib/_uarray/_uarray_dispatch.o -MMD -MF build/temp.linux-x86_64-3.6/scipy/_lib/_uarray/_uarray_dispatch.o.d -std=c++14 -fvisibility=hidden" failed with exit status 1 </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <p dir="auto">Building scipy 1.4.1 with PyPy3.6 7.3.0 on linux-x86_64 with gcc 7.3.0, numpy 1.18.1 pybind11 2.4.3 and cython 0.29.15 fails.</p>
<h3 dir="auto">Issue with current documentation:</h3> <p dir="auto">Broken formula: <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.sqeuclidean.html#scipy.spatial.distance.sqeuclidean" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.sqeuclidean.html#scipy.spatial.distance.sqeuclidean</a><br> Missing firmula: <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.seuclidean.html#scipy.spatial.distance.seuclidean" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.seuclidean.html#scipy.spatial.distance.seuclidean</a></p> <h3 dir="auto">Idea or request for content:</h3> <p dir="auto">The next page "pdist" offers these same formulas: <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.pdist.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.pdist.html</a></p> <h3 dir="auto">Additional context (e.g. screenshots, GIFs)</h3> <p dir="auto"><em>No response</em></p>
0
<p dir="auto">A simple example involving a type alias, a nested type, and <code class="notranslate">Fn</code> causes an ICE.</p> <p dir="auto">I tried this code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct C&lt;A&gt; { a: A } type T&lt;A, B&gt; = C&lt;Fn(A) -&gt; B&gt;; fn id&lt;A, B&gt;(t: T&lt;&amp;A, B&gt;) -&gt; T&lt;&amp;A, B&gt; { t }"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">C</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span><span class="pl-kos">:</span> <span class="pl-smi">A</span> <span class="pl-kos">}</span> <span class="pl-k">type</span> <span class="pl-smi">T</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span><span class="pl-kos">&gt;</span> = <span class="pl-smi">C</span><span class="pl-kos">&lt;</span><span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-smi">A</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">B</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">id</span><span class="pl-kos">&lt;</span><span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">&lt;</span><span class="pl-c1">&amp;</span><span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">T</span><span class="pl-kos">&lt;</span><span class="pl-c1">&amp;</span><span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> t <span class="pl-kos">}</span></pre></div> <p dir="auto">I expected to see either no error, or at most an error about lifetime elision.</p> <p dir="auto">Instead, when compiled with <code class="notranslate">rustc --crate-type=lib</code> I get an ICE. The effect persists when <code class="notranslate">C</code> is replaced by <code class="notranslate">Box</code>, but disappears if <code class="notranslate">Fn</code> is replaced by another two-parameter type.</p> <p dir="auto">The ICE:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic thread 'rustc' panicked at 'assertion failed: !predicates.has_escaping_regions()', /build/rust/src/rustc-1.0.0/src/librustc_typeck/check/mod.rs:1698"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic thread 'rustc' panicked at 'assertion failed: !predicates.has_escaping_regions()', /build/rust/src/rustc-1.0.0/src/librustc_typeck/check/mod.rs:1698 </code></pre></div> <p dir="auto">The backtrace output is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack backtrace: 1: 0x7f892d092189 - sys::backtrace::write::h85e36588f6ec519ed4r 2: 0x7f892d099e96 - &lt;unknown&gt; 3: 0x7f892d05d1a2 - rt::unwind::begin_unwind_inner::h58d8677c31c147e6t6v 4: 0x7f892be6090e - &lt;unknown&gt; 5: 0x7f892bead693 - &lt;unknown&gt; 6: 0x7f892bee43d1 - check::wf::BoundsChecker&lt;'cx, 'tcx&gt;.TypeFolder&lt;'tcx&gt;::fold_ty::hf49f58e50ffe027105k 7: 0x7f892bee619b - &lt;unknown&gt; 8: 0x7f892bee46c8 - check::wf::BoundsChecker&lt;'cx, 'tcx&gt;.TypeFolder&lt;'tcx&gt;::fold_ty::hf49f58e50ffe027105k 9: 0x7f892bedb8d7 - &lt;unknown&gt; 10: 0x7f892bfc628d - &lt;unknown&gt; 11: 0x7f892bfc16e0 - check_crate::h5570390160d0735dXcC 12: 0x7f892d5cca18 - driver::phase_3_run_analysis_passes::h8472d32b1f7cb2d6nGa 13: 0x7f892d5adb15 - driver::compile_input::hee759950e4b56686Qba 14: 0x7f892d66efe1 - run_compiler::h57ce534eedce4c58z4b 15: 0x7f892d66cc32 - &lt;unknown&gt; 16: 0x7f892d66c169 - &lt;unknown&gt; 17: 0x7f892d103b28 - &lt;unknown&gt; 18: 0x7f892d103b15 - rust_try 19: 0x7f892d66c418 - &lt;unknown&gt; 20: 0x7f892d098d81 - &lt;unknown&gt; 21: 0x7f8927b22373 - start_thread 22: 0x7f892ccf227c - clone 23: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">stack backtrace: 1: 0x7f892d092189 - sys::backtrace::write::h85e36588f6ec519ed4r 2: 0x7f892d099e96 - &lt;unknown&gt; 3: 0x7f892d05d1a2 - rt::unwind::begin_unwind_inner::h58d8677c31c147e6t6v 4: 0x7f892be6090e - &lt;unknown&gt; 5: 0x7f892bead693 - &lt;unknown&gt; 6: 0x7f892bee43d1 - check::wf::BoundsChecker&lt;'cx, 'tcx&gt;.TypeFolder&lt;'tcx&gt;::fold_ty::hf49f58e50ffe027105k 7: 0x7f892bee619b - &lt;unknown&gt; 8: 0x7f892bee46c8 - check::wf::BoundsChecker&lt;'cx, 'tcx&gt;.TypeFolder&lt;'tcx&gt;::fold_ty::hf49f58e50ffe027105k 9: 0x7f892bedb8d7 - &lt;unknown&gt; 10: 0x7f892bfc628d - &lt;unknown&gt; 11: 0x7f892bfc16e0 - check_crate::h5570390160d0735dXcC 12: 0x7f892d5cca18 - driver::phase_3_run_analysis_passes::h8472d32b1f7cb2d6nGa 13: 0x7f892d5adb15 - driver::compile_input::hee759950e4b56686Qba 14: 0x7f892d66efe1 - run_compiler::h57ce534eedce4c58z4b 15: 0x7f892d66cc32 - &lt;unknown&gt; 16: 0x7f892d66c169 - &lt;unknown&gt; 17: 0x7f892d103b28 - &lt;unknown&gt; 18: 0x7f892d103b15 - rust_try 19: 0x7f892d66c418 - &lt;unknown&gt; 20: 0x7f892d098d81 - &lt;unknown&gt; 21: 0x7f8927b22373 - start_thread 22: 0x7f892ccf227c - clone 23: 0x0 - &lt;unknown&gt; </code></pre></div> <p dir="auto">The output of <code class="notranslate">rustc --version --verbose</code> is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.0.0-beta.5 (built 2015-05-16) binary: rustc commit-hash: unknown commit-date: unknown build-date: 2015-05-16 host: x86_64-unknown-linux-gnu release: 1.0.0-beta.5"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-beta.5 (built 2015-05-16) binary: rustc commit-hash: unknown commit-date: unknown build-date: 2015-05-16 host: x86_64-unknown-linux-gnu release: 1.0.0-beta.5 </code></pre></div>
<p dir="auto">Compiler panic. Found an ealier issue in the same file that had been closed because the problem had gone away in later compiles. This is the stable 1.1 though.</p> <p dir="auto"><b>Version info</b><br> rustc 1.1.0 (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/35ceea3997c79a3b7562e89b462ab76af5b86b22/hovercard" href="https://github.com/rust-lang/rust/commit/35ceea3997c79a3b7562e89b462ab76af5b86b22"><tt>35ceea3</tt></a> 2015-06-19)<br> binary: rustc<br> commit-hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/35ceea3997c79a3b7562e89b462ab76af5b86b22/hovercard" href="https://github.com/rust-lang/rust/commit/35ceea3997c79a3b7562e89b462ab76af5b86b22"><tt>35ceea3</tt></a><br> commit-date: 2015-06-19<br> host: x86_64-pc-windows-gnu<br> release: 1.1.0</p> <p dir="auto"><b>RUST_BACKTRACE=1 rustc --verbose src/main.rs</b><br> error: internal compiler error: unexpected panic<br> note: the compiler unexpectedly panicked. this is a bug.<br> note: we would appreciate a bug report: <a href="https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports">https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports</a><br> note: run with <code class="notranslate">RUST_BACKTRACE=1</code> for a backtrace<br> thread 'rustc' panicked at 'assertion failed: !self.has_escaping_regions()', C:/bot/slave/stable-dist-rustc-win-gnu-64/build/src/librustc\middle\ty.rs:2123</p> <p dir="auto">stack backtrace:<br> 1: 0x6f138a02 - sys::backtrace::write::hb142593d131303b10fs<br> 2: 0x6f141e76 - rt::unwind::register::h2f2891f465b0e536sNv<br> 3: 0x6f1053c0 - rt::unwind::begin_unwind_inner::he5d025d7f655ecaaCKv<br> 4: 0x6d08989e - middle::astencode::rbml..Doc&lt;'a&gt;.doc_decoder_helpers::opt_child::hd6aba4d7b00f0fc9UKb<br> 5: 0x6d1c0773 - middle::traits::fulfill::FulfillmentContext&lt;'tcx&gt;::register_builtin_bound::h1fba927ecfad50a9DEO<br> 6: 0x6a93c978 - check::FnCtxt&lt;'a, 'tcx&gt;.mc..Typer&lt;'tcx&gt;::is_method_call::hb206e83d494db5a0Akn<br> 7: 0x6a948ac8 - check::FnCtxt&lt;'a, 'tcx&gt;.AstConv&lt;'tcx&gt;::projected_ty::he778b71de0699925wAo<br> 8: 0x6a95effc - check::CheckItemBodiesVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'tcx&gt;::visit_item::h49b5aaa3aec9c80dWrn<br> 9: 0x6a95d1df - check::CheckItemBodiesVisitor&lt;'a, 'tcx&gt;.Visitor&lt;'tcx&gt;::visit_item::h49b5aaa3aec9c80dWrn<br> 10: 0x6aa187ab - check_crate::hf98f1f239eb0b1afsJC<br> 11: 0x6aa11f75 - check_crate::hf98f1f239eb0b1afsJC<br> 12: 0x6701f3dd - driver::phase_3_run_analysis_passes::h5d9dbc988e0fcdbatGa<br> 13: 0x67002b40 - driver::compile_input::h66ba80b489f2ef28Qba<br> 14: 0x670b5913 - run_compiler::hf1308c7d75cfa1a775b<br> 15: 0x670b349f - run::h99d8d2bce2d42189N5b<br> 16: 0x670b2a59 - run::h99d8d2bce2d42189N5b<br> 17: 0x6f17b5bc - rust_try<br> 18: 0x6f17b599 - rust_try<br> 19: 0x670b2cd5 - run::h99d8d2bce2d42189N5b<br> 20: 0x6f140134 - sys::process::Command::cwd::hecbd2393e1ca7c52luu<br> 21: 0x776659cd - BaseThreadInitThunk</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/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">Mini variant version of the drawer should not be horizontally scrolled when collapsed</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It is scrollable</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Go to the component demo and try scrolling it (I tried with an android phone phone)</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>latest beta I assume</td> </tr> <tr> <td>React</td> <td>n/a</td> </tr> <tr> <td>browser</td> <td>chrome 61 for Android</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">I'm trying to re-style the <code class="notranslate">Switch</code> component, but having trouble finding a way to style the bar in the background the button.</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">N/A</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">N/A</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">N/A</p> <h2 dir="auto">Context</h2> <p dir="auto">When the <code class="notranslate">Switch</code> component is checked the following styling is applied:</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".MuiSwitch.checked-1 + .MuiSwitch.bar-1 { opacity: 0.5; backgroud-color: #3f51b5; }"><pre class="notranslate">.<span class="pl-c1">MuiSwitch</span>.<span class="pl-c1">checked-1</span> <span class="pl-c1">+</span> .<span class="pl-c1">MuiSwitch</span>.<span class="pl-c1">bar-1</span> { <span class="pl-c1">opacity</span><span class="pl-kos">:</span> <span class="pl-c1">0.5</span>; <span class="pl-c1">backgroud-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>3f51b5</span>; }</pre></div> <p dir="auto">When creating an theme, how does one override the background color in the style above?</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const theme = createMuiTheme({ overrides: { checked: { color: lightBlue['A700'] // changes switch handle }, bar: { // changing the backgroundColor here changes it for disabled &amp; checked } } });"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">theme</span> <span class="pl-c1">=</span> <span class="pl-en">createMuiTheme</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">overrides</span>: <span class="pl-kos">{</span> <span class="pl-c1">checked</span>: <span class="pl-kos">{</span> <span class="pl-c1">color</span>: <span class="pl-s1">lightBlue</span><span class="pl-kos">[</span><span class="pl-s">'A700'</span><span class="pl-kos">]</span> <span class="pl-c">// changes switch handle </span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-kos">{</span> <span class="pl-c">// changing the backgroundColor here changes it for disabled &amp; checked</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I can change it by overriding <code class="notranslate">palette.primary.500</code>. I'm wondering if it's possible in the <code class="notranslate">override</code> section?</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.11</td> </tr> <tr> <td>React</td> <td>15.6.1</td> </tr> <tr> <td>browser</td> <td>chrome</td> </tr> </tbody> </table>
0
<h2 dir="auto">Question</h2> <p dir="auto">I try to use ShardingProxy to my program ,and i found a problem that is :<br> Insert speed of ShardingProxy is very slow.</p> <p dir="auto">I write a program to transfer my old data via Jdbc( batch).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" insert data for a whole day only one million data was inserted"><pre class="notranslate"><code class="notranslate"> insert data for a whole day only one million data was inserted </code></pre></div> <p dir="auto">Sharding-Proxy 4.0.0 (2020 Jan 13)</p> <ol dir="auto"> <li>Is there any config problem ? (I use snow flake to generate id )<br> 12 subtable(one table per month) just insert .</li> <li>I have read the old related issue , If this is the parse problem , what is your plan to fix this?</li> </ol>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">5.2.0</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-Proxy</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">insert short and byte data less than 0 successfully <strong>with useServerPrepStmts=true and cachePrepStmts=true</strong></p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Data truncation: Out of range value for column</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">class <code class="notranslate">MySQLInt2BinaryProtocolValue</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @Override public Object read(final MySQLPacketPayload payload) { return payload.readInt2(); }"><pre class="notranslate"><code class="notranslate"> @Override public Object read(final MySQLPacketPayload payload) { return payload.readInt2(); } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public int readInt2() { return byteBuf.readUnsignedShortLE(); }"><pre class="notranslate"><code class="notranslate"> public int readInt2() { return byteBuf.readUnsignedShortLE(); } </code></pre></div> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <p dir="auto">it is same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1165944755" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/15984" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/15984/hovercard" href="https://github.com/apache/shardingsphere/issues/15984">#15984</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="889740187" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/10314" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/10314/hovercard" href="https://github.com/apache/shardingsphere/issues/10314">#10314</a> , has been fixed,but when i add useServerPrepStmts=true and cachePrepStmts=true to jdbc url,it reappeared.<br> i have to set the useServerPrepStmts=true , otherwise it will cause another problem <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1405498520" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/21518" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/21518/hovercard" href="https://github.com/apache/shardingsphere/issues/21518">#21518</a> , blob data cannot be saved correctly</p> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> <p dir="auto"><a href="https://github.com/jitawangzi/ShardingSphereProxyBlobTest.git">https://github.com/jitawangzi/ShardingSphereProxyBlobTest.git</a><br> all the code and configuration 、sql 、 etc are in the project.</p> <p dir="auto">run class <code class="notranslate">Main</code> directly</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DataRecord record = new DataRecord(); byte[] oriArray = new byte[] { 1, 0, 99, 111, 109, 46, 108, 115, 46, 114, 112, 99, 46, 115, 101, 114, 118, 101, 114, 46, 82, 112, 99, 82, 101, 113, 117, 101, 115, -12, 49, 48, 46, 48, 46, 52, 46, 49, -75, 75, 74, 65, 104, 115, 100, 97, 107, 100, 104, 97, 115, 107, -28, 115, 101, 116, 68, 97, 116, -31, 1, 1, 91, 76, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 79, 98, 106, 101, 99, 116, -69, 6, 9, -64, -39, -86, 20, 3, 115, 100, 104, 98, 115, 97, 104, 100, 98, 115, -31, 1, 2, 99, 111, 109, 46, 108, 115, 46, 114, 112, 99, 46, 115, 101, 114, 118, 101, 114, 46, 82, 112, 99, 82, 101, 115, 112, 111, 110, 115, -27, 0, 0, 0, 3, 115, 107, 104, 100, 98, 115, 107, 100, 117, 104, 97, 108, 100, 115, 106, 102, 100, 107, 106, 97, 102, 110, 97, 100, 102, -22, 10, 66, 61, -8, -5, 108, 25, 0, 0, 3, 2, 0, 3, 0, 0 }; record.setBlobData(oriArray); record.setIntData(1); // If set this, will cause an exception : Data truncation: Out of range value record.setShortData((short) -3); record.setUuid(UUID.randomUUID().toString()); mapper.insert(record); DataRecord recordSelect = mapper.selectByPrimaryKey(record.getUuid()); System.out.println(); System.out.println(&quot;binary data equals result : &quot; + Arrays.equals(record.getBlobData(), recordSelect.getBlobData())); System.out.println(); System.out.println(&quot;int data equals result : &quot; + record.getIntData().equals(recordSelect.getIntData()));"><pre class="notranslate"><code class="notranslate">DataRecord record = new DataRecord(); byte[] oriArray = new byte[] { 1, 0, 99, 111, 109, 46, 108, 115, 46, 114, 112, 99, 46, 115, 101, 114, 118, 101, 114, 46, 82, 112, 99, 82, 101, 113, 117, 101, 115, -12, 49, 48, 46, 48, 46, 52, 46, 49, -75, 75, 74, 65, 104, 115, 100, 97, 107, 100, 104, 97, 115, 107, -28, 115, 101, 116, 68, 97, 116, -31, 1, 1, 91, 76, 106, 97, 118, 97, 46, 108, 97, 110, 103, 46, 79, 98, 106, 101, 99, 116, -69, 6, 9, -64, -39, -86, 20, 3, 115, 100, 104, 98, 115, 97, 104, 100, 98, 115, -31, 1, 2, 99, 111, 109, 46, 108, 115, 46, 114, 112, 99, 46, 115, 101, 114, 118, 101, 114, 46, 82, 112, 99, 82, 101, 115, 112, 111, 110, 115, -27, 0, 0, 0, 3, 115, 107, 104, 100, 98, 115, 107, 100, 117, 104, 97, 108, 100, 115, 106, 102, 100, 107, 106, 97, 102, 110, 97, 100, 102, -22, 10, 66, 61, -8, -5, 108, 25, 0, 0, 3, 2, 0, 3, 0, 0 }; record.setBlobData(oriArray); record.setIntData(1); // If set this, will cause an exception : Data truncation: Out of range value record.setShortData((short) -3); record.setUuid(UUID.randomUUID().toString()); mapper.insert(record); DataRecord recordSelect = mapper.selectByPrimaryKey(record.getUuid()); System.out.println(); System.out.println("binary data equals result : " + Arrays.equals(record.getBlobData(), recordSelect.getBlobData())); System.out.println(); System.out.println("int data equals result : " + record.getIntData().equals(recordSelect.getIntData())); </code></pre></div> <p dir="auto"><strong>record.setShortData((short) -3);</strong> ,<br> the db url in jdbc.properties<br> <code class="notranslate">dburl=jdbc:mysql://39.106.203.93:3307/test_sharding?autoReconnect=true&amp;zeroDateTimeBehavior=convertToNull&amp;characterEncoding=UTF-8&amp;serverTimezone=UTC&amp;useServerPrepStmts=true&amp;cachePrepStmts=true</code></p> <p dir="auto">after remove useServerPrepStmts=true&amp;cachePrepStmts=true , the short data insert correctly,but cause another problem:<br> <strong>binary data equals result : false</strong></p> <p dir="auto">"config-sharding.yaml"</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="schemaName: test_sharding dataSources: ds_0: url: jdbc:mysql://127.0.0.1:51234/test?serverTimezone=UTC&amp;useSSL=false username: sharding password: sharding connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1"><pre class="notranslate"><code class="notranslate">schemaName: test_sharding dataSources: ds_0: url: jdbc:mysql://127.0.0.1:51234/test?serverTimezone=UTC&amp;useSSL=false username: sharding password: sharding connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 </code></pre></div> <p dir="auto">"server.yaml"</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" rules: - !AUTHORITY users: - sharding@:sharding provider: type: ALL_PRIVILEGES_PERMITTED - !TRANSACTION defaultType: LOCAL - !SQL_PARSER sqlCommentParseEnabled: true sqlStatementCache: initialCapacity: 2000 maximumSize: 65535 parseTreeCache: initialCapacity: 128 maximumSize: 1024 props: max-connections-size-per-query: 3 kernel-executor-size: 16 proxy-frontend-flush-threshold: 128 proxy-opentracing-enabled: false proxy-hint-enabled: false sql-show: true check-table-metadata-enabled: false show-process-list-enabled: false proxy-backend-query-fetch-size: -1 check-duplicate-table-enabled: false proxy-frontend-executor-size: 0 proxy-backend-executor-suitable: OLAP proxy-frontend-max-connections: 0 proxy-mysql-default-version: 8.0.26 "><pre class="notranslate"><code class="notranslate"> rules: - !AUTHORITY users: - sharding@:sharding provider: type: ALL_PRIVILEGES_PERMITTED - !TRANSACTION defaultType: LOCAL - !SQL_PARSER sqlCommentParseEnabled: true sqlStatementCache: initialCapacity: 2000 maximumSize: 65535 parseTreeCache: initialCapacity: 128 maximumSize: 1024 props: max-connections-size-per-query: 3 kernel-executor-size: 16 proxy-frontend-flush-threshold: 128 proxy-opentracing-enabled: false proxy-hint-enabled: false sql-show: true check-table-metadata-enabled: false show-process-list-enabled: false proxy-backend-query-fetch-size: -1 check-duplicate-table-enabled: false proxy-frontend-executor-size: 0 proxy-backend-executor-suitable: OLAP proxy-frontend-max-connections: 0 proxy-mysql-default-version: 8.0.26 </code></pre></div> <p dir="auto">table sql :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE TABLE `data_record` ( `uuid` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `blob_data` blob, `int_data` int DEFAULT NULL, `short_data` smallint DEFAULT NULL, `byte_data` tinyint DEFAULT NULL, `boolean_data` tinyint(1) DEFAULT NULL, `string_data` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci;"><pre class="notranslate"><code class="notranslate">CREATE TABLE `data_record` ( `uuid` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `blob_data` blob, `int_data` int DEFAULT NULL, `short_data` smallint DEFAULT NULL, `byte_data` tinyint DEFAULT NULL, `boolean_data` tinyint(1) DEFAULT NULL, `string_data` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; </code></pre></div>
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">After register a backward hook <code class="notranslate">myhook(module, grad_input, grad_output)</code> of <code class="notranslate">torch.nn.Linear</code>, and call <code class="notranslate">myhook</code>, it seems that the <code class="notranslate">grad_input</code> has an unexpected order/existence of gradient tensors of <code class="notranslate">(grad_of_linear_output, grad_of_linear_input, grad_of_linear_weight)</code>, which are respectively gradient tensors wrt outputs of <code class="notranslate">Linear</code>, inputs of <code class="notranslate">Linear</code>, and weights of <code class="notranslate">Linear</code>. This is unexpected and biases' gradient is missing. It is also inconsistent with <code class="notranslate">Conv2d</code>, <code class="notranslate">BatchNorm2d</code> and <code class="notranslate">ReLU</code>, whose <code class="notranslate">grad_input</code> return something like <code class="notranslate">(grad_of_input, grad_of_parameter1, grad_of_parameter2)</code>.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:<br> Code fragments</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# define a hook def myhook(m, grad_input, grad_output, name=None): print(name, '======================') print('--') for grad in grad_input: if grad is not None: print(grad.size()) else: print('None') print('--') for grad in grad_output: if grad is not None: print(grad.size()) else: print('None')"><pre class="notranslate"><code class="notranslate"># define a hook def myhook(m, grad_input, grad_output, name=None): print(name, '======================') print('--') for grad in grad_input: if grad is not None: print(grad.size()) else: print('None') print('--') for grad in grad_output: if grad is not None: print(grad.size()) else: print('None') </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# hook up for idx, m in enumerate(model.named_modules()): if isinstance(m[1], torch.nn.Linear): logger.info('\t{} registering backward hook...'.format(m[0])) h = m[1].register_backward_hook(hook=partial(myhook, name=m[0]))"><pre class="notranslate"><code class="notranslate"># hook up for idx, m in enumerate(model.named_modules()): if isinstance(m[1], torch.nn.Linear): logger.info('\t{} registering backward hook...'.format(m[0])) h = m[1].register_backward_hook(hook=partial(myhook, name=m[0])) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# build a model with linear = nn.Linear(64, 10)"><pre class="notranslate"><code class="notranslate"># build a model with linear = nn.Linear(64, 10) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# run with batch size 128 and get linear ====================== -- (128, 10) (128, 64) (64, 10) -- (128, 10)"><pre class="notranslate"><code class="notranslate"># run with batch size 128 and get linear ====================== -- (128, 10) (128, 64) (64, 10) -- (128, 10) </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Based on the <a href="https://pytorch.org/docs/stable/nn.html#torch.nn.Module.register_backward_hook" rel="nofollow">doc</a> and consistency with <code class="notranslate">Conv2d</code>, the shapes should be</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="linear ====================== -- (128, 64) (64, 10) (10,) -- (128, 10)"><pre class="notranslate"><code class="notranslate">linear ====================== -- (128, 64) (64, 10) (10,) -- (128, 10) </code></pre></div> <p dir="auto">The shapes are normal for <code class="notranslate">Conv2d</code>, <code class="notranslate">BatchNorm2d</code> and <code class="notranslate">ReLU</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="layer1.0.relu ====================== -- (128, 16, 32, 32) -- (128, 16, 32, 32) layer1.0.bn1 ====================== -- (128, 16, 32, 32) (16,) (16,) -- (128, 16, 32, 32) layer2.0.conv1 ====================== -- (128, 16, 32, 32) (32, 16, 3, 3) None # no biases in the tested conv -- (128, 32, 16, 16) # stride is 2"><pre class="notranslate"><code class="notranslate">layer1.0.relu ====================== -- (128, 16, 32, 32) -- (128, 16, 32, 32) layer1.0.bn1 ====================== -- (128, 16, 32, 32) (16,) (16,) -- (128, 16, 32, 32) layer2.0.conv1 ====================== -- (128, 16, 32, 32) (32, 16, 3, 3) None # no biases in the tested conv -- (128, 32, 16, 16) # stride is 2 </code></pre></div> <p dir="auto">For consistency, we should correct this or highlight it in the doc if compatibility is a concern.</p> <h2 dir="auto">Environment</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information... PyTorch version: 0.4.1.post2 Is debug build: No CUDA used to build PyTorch: 9.0.176 OS: Ubuntu 16.04.5 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: Could not collect Python version: 2.7 Is CUDA available: Yes CUDA runtime version: 9.0.176 GPU models and configuration: GPU 0: GeForce GTX 1080 GPU 1: GeForce GTX 1080 GPU 2: GeForce GTX 1080 GPU 3: GeForce GTX 1080 Nvidia driver version: 396.37 cuDNN version: Probably one of the following: /usr/local/cuda-9.2/lib64/libcudnn.so /usr/local/cuda-9.2/lib64/libcudnn.so.7 /usr/local/cuda-9.2/lib64/libcudnn.so.7.1.1 /usr/local/cuda-9.2/lib64/libcudnn.so.7.2.1 /usr/local/cuda-9.2/lib64/libcudnn_static.a Versions of relevant libraries: [pip] Could not collect [conda] blas 1.0 mkl [conda] mkl 2018.0.2 1 [conda] mkl-service 1.1.2 py27hb2d42c5_4 [conda] mkl_fft 1.0.1 py27h3010b51_0 [conda] mkl_random 1.0.1 py27h629b387_0 [conda] pytorch 0.4.1 py27__9.0.176_7.1.2_2 pytorch [conda] torchvision 0.2.1 py27_1 pytorch"><pre class="notranslate"><code class="notranslate">Collecting environment information... PyTorch version: 0.4.1.post2 Is debug build: No CUDA used to build PyTorch: 9.0.176 OS: Ubuntu 16.04.5 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 CMake version: Could not collect Python version: 2.7 Is CUDA available: Yes CUDA runtime version: 9.0.176 GPU models and configuration: GPU 0: GeForce GTX 1080 GPU 1: GeForce GTX 1080 GPU 2: GeForce GTX 1080 GPU 3: GeForce GTX 1080 Nvidia driver version: 396.37 cuDNN version: Probably one of the following: /usr/local/cuda-9.2/lib64/libcudnn.so /usr/local/cuda-9.2/lib64/libcudnn.so.7 /usr/local/cuda-9.2/lib64/libcudnn.so.7.1.1 /usr/local/cuda-9.2/lib64/libcudnn.so.7.2.1 /usr/local/cuda-9.2/lib64/libcudnn_static.a Versions of relevant libraries: [pip] Could not collect [conda] blas 1.0 mkl [conda] mkl 2018.0.2 1 [conda] mkl-service 1.1.2 py27hb2d42c5_4 [conda] mkl_fft 1.0.1 py27h3010b51_0 [conda] mkl_random 1.0.1 py27h629b387_0 [conda] pytorch 0.4.1 py27__9.0.176_7.1.2_2 pytorch [conda] torchvision 0.2.1 py27_1 pytorch </code></pre></div>
<p dir="auto">Maxim Naumov <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mnaumovfb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mnaumovfb">@mnaumovfb</a> sends in the following feedback:</p> <hr> <p dir="auto">I thought I would share some feedback from my recent work with register_backward_hook function. I will describe some some inconsistencies in it that may be worth addressing in the future.</p> <h2 dir="auto">Background</h2> <p dir="auto">PyTorch supports different hook functions, including register_hook, register_forward_hook and register_backward_hook. The former is applied to a tensor variable, while the latter two are applied to a layer module. I will discuss the latest form here. It has the following signature <a href="https://pytorch.org/docs/stable/nn.html" rel="nofollow">https://pytorch.org/docs/stable/nn.html</a> <code class="notranslate">func(layer, grad_input, grad_output)</code></p> <h2 dir="auto">Details</h2> <p dir="auto">It is extremely important to understand the meaning of gradients to register_backwards_hook. Let a layer be defined as</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" output z (grad_output) ____|____ |__layer__| | input x (grad_input)"><pre class="notranslate"><code class="notranslate"> output z (grad_output) ____|____ |__layer__| | input x (grad_input) </code></pre></div> <p dir="auto">with overall loss E, error gradient dE/dz^(k) and weight gradient dE/dw^(k).<br> First, let us assume the simplest case: a layer with no bias. Then,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="grad_output= [dE/dz^(k)] grad_input = [dE/dz^(k-1), dE/dw^(k)]"><pre class="notranslate"><code class="notranslate">grad_output= [dE/dz^(k)] grad_input = [dE/dz^(k-1), dE/dw^(k)] </code></pre></div> <h2 dir="auto">Inconsistencies</h2> <p dir="auto">It seems that there are some inconsistencies in how gradients for different layers are handled by this function.</p> <ol dir="auto"> <li>Shape <ul dir="auto"> <li>in convolution layers the weight gradient has the same shape as the weights</li> <li>in fully connected layers the weight gradient is transpose of the weights</li> </ul> </li> <li>Bias <ul dir="auto"> <li>in convolution layers bias gradient are appended: grad_input = [dE/dz^(k-1), dE/dw^(k), dE/db^(k)]</li> <li>in fully connected layers bias gradient are prepended: grad_input = [dE/db^(k), dE/dz^(k-1), dE/dw^(k)]</li> </ul> </li> <li>Batch size &gt; 1 <ul dir="auto"> <li>in convolution layers bias gradient corresponds to the gradient over the entire batch: grad_input = [dE/dz^(k-1), dE/dw^(k), dE/db^(k)]</li> <li>in fully connected layers bias gradient corresponds to the gradient per data point j=1,...,r in the batch (therefore it needs to be added to get the gradient over the entire batch): grad_input = [[dE/db^(k,1),...,dE/db^(k,r)], dE/dz^(k-1), dE/dw^(k)]</li> </ul> </li> </ol> <p dir="auto">These discrepancies can make handling of different layers, bias and batch sizes quite cumbersome in the code. It would help if they were done more consistently in the future.</p>
1
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ikourfaln/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ikourfaln">@ikourfaln</a> on May 18, 2016 11:4</em></p> <ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <p dir="auto">if we have two or more functions with the same name, there is no syntax highlighting error !!</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9744226/15356433/8dca48ce-1cf0-11e6-83d7-a099d7e9839f.png"><img src="https://cloud.githubusercontent.com/assets/9744226/15356433/8dca48ce-1cf0-11e6-83d7-a099d7e9839f.png" alt="sans titre" style="max-width: 100%;"></a></p> <p dir="auto">is this feature not yet available in the language services or I miss samething here ?</p> <p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="155474000" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/6479" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/6479/hovercard" href="https://github.com/microsoft/vscode/issues/6479">microsoft/vscode#6479</a></em></p>
<p dir="auto">Hi,<br> The following valid js code compile with TS2362 error</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let start = new Date(); let elapsed = new Date() - start;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Date</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">elapsed</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Date</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">-</span> <span class="pl-s1">start</span><span class="pl-kos">;</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="index.ts(9,22): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. index.ts(9,37): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."><pre class="notranslate"><code class="notranslate">index.ts(9,22): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. index.ts(9,37): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type. </code></pre></div> <p dir="auto">To avoid the error i need to explicitely cast opreands wit <code class="notranslate">&lt;any&gt;</code>.</p>
0
<p dir="auto">Take the following examples:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="async function doRequest() { const res = await fetch(&quot;http://localhost:4545/cli/tests/fixture.json&quot;); const someCondition = true; if (someCondition) throw new Error(); const body = await res.json(); return body; } doRequest().catch(console.error); setInterval(() =&gt; { console.log(Deno.resources()); }, 2000);"><pre class="notranslate"><code class="notranslate">async function doRequest() { const res = await fetch("http://localhost:4545/cli/tests/fixture.json"); const someCondition = true; if (someCondition) throw new Error(); const body = await res.json(); return body; } doRequest().catch(console.error); setInterval(() =&gt; { console.log(Deno.resources()); }, 2000); </code></pre></div> <hr> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" await fetch(&quot;http://localhost:4545/cli/tests/fixture.json&quot;); // I don't care about the body"><pre class="notranslate"><code class="notranslate"> await fetch("http://localhost:4545/cli/tests/fixture.json"); // I don't care about the body </code></pre></div> <p dir="auto">Since fetch response resource id is only closed after the body is consumed, in the examples above the resource handle for both requests are never closed. Easily reproducible in a test.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Deno.test('leak', async() =&gt; { await fetch(&quot;http://localhost:4545/cli/tests/fixture.json&quot;); // I don't care about the body });"><pre class="notranslate"><code class="notranslate">Deno.test('leak', async() =&gt; { await fetch("http://localhost:4545/cli/tests/fixture.json"); // I don't care about the body }); </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AssertionError: Test case is leaking resources. Before: { &quot;0&quot;: &quot;stdin&quot;, &quot;1&quot;: &quot;stdout&quot;, &quot;2&quot;: &quot;stderr&quot; } After: { &quot;0&quot;: &quot;stdin&quot;, &quot;1&quot;: &quot;stdout&quot;, &quot;2&quot;: &quot;stderr&quot;, &quot;3&quot;: &quot;httpBody&quot; }"><pre class="notranslate"><code class="notranslate">AssertionError: Test case is leaking resources. Before: { "0": "stdin", "1": "stdout", "2": "stderr" } After: { "0": "stdin", "1": "stdout", "2": "stderr", "3": "httpBody" } </code></pre></div> <p dir="auto">Currently, there's no way in Deno to close the resource handle without consuming the body.<br> Fetch specification does not mention anything about a default read timeout, where we could close the handle after the timeout is reached.</p> <p dir="auto">Fortunately, it provides a way to abort the request &amp; consumption of the body using <code class="notranslate">AbortController</code>, and <code class="notranslate">signal</code> option (not supported in Deno).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" const abort = new AbortController(); const res = await fetch(&quot;http://localhost:4545/cli/tests/fixture.json&quot;, { signal: abort.signal, }); assert(res.ok); // Discard body abort.abort();"><pre class="notranslate"><code class="notranslate"> const abort = new AbortController(); const res = await fetch("http://localhost:4545/cli/tests/fixture.json", { signal: abort.signal, }); assert(res.ok); // Discard body abort.abort(); </code></pre></div> <p dir="auto">Until the above is supported fetch response body must always be consumed.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const res = await fetch(&quot;http://localhost:4545/cli/tests/fixture.json&quot;); await res.text(); // consume body"><pre class="notranslate"><code class="notranslate">const res = await fetch("http://localhost:4545/cli/tests/fixture.json"); await res.text(); // consume body </code></pre></div>
<p dir="auto">Hi <g-emoji class="g-emoji" alias="wave" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44b.png">👋</g-emoji><br> I believe I have found an issue where the <code class="notranslate">fetch</code>-api leaks resources if the<br> body is not resolved, e.g. with <code class="notranslate">.text()</code>/<code class="notranslate">.json()</code>.</p> <p dir="auto">Given the following test:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { assertEquals } from &quot;https://deno.land/std/testing/asserts.ts&quot;; Deno.test(&quot;fetching TODOs&quot;, async () =&gt; { const response = await fetch(&quot;https://jsonplaceholder.typicode.com/todos/&quot;); //await response.json(); //NOTE: adding this line removes the issue (or .text()/similar) assertEquals(200, response.status); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">assertEquals</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/std/testing/asserts.ts"</span><span class="pl-kos">;</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"fetching TODOs"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s">"https://jsonplaceholder.typicode.com/todos/"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//await response.json(); //NOTE: adding this line removes the issue (or .text()/similar)</span> <span class="pl-en">assertEquals</span><span class="pl-kos">(</span><span class="pl-c1">200</span><span class="pl-kos">,</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">status</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">Produces the following output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="running 1 tests test fetching TODOs ... FAILED (94ms) failures: fetching TODOs Error: Test case is leaking resources. Before: { &quot;0&quot;: &quot;stdin&quot;, &quot;1&quot;: &quot;stdout&quot;, &quot;2&quot;: &quot;stderr&quot; } After: { &quot;0&quot;: &quot;stdin&quot;, &quot;1&quot;: &quot;stdout&quot;, &quot;2&quot;: &quot;stderr&quot;, &quot;3&quot;: &quot;httpBody&quot; } at Object.assert ($deno$/util.ts:25:11) at Object.resourceSanitizer [as fn] ($deno$/testing.ts:75:5) at async TestApi.[Symbol.asyncIterator] ($deno$/testing.ts:259:11) at async Object.runTests ($deno$/testing.ts:341:20) failures: fetching TODOs test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out (95ms)"><pre class="notranslate"><code class="notranslate">running 1 tests test fetching TODOs ... FAILED (94ms) failures: fetching TODOs Error: Test case is leaking resources. Before: { "0": "stdin", "1": "stdout", "2": "stderr" } After: { "0": "stdin", "1": "stdout", "2": "stderr", "3": "httpBody" } at Object.assert ($deno$/util.ts:25:11) at Object.resourceSanitizer [as fn] ($deno$/testing.ts:75:5) at async TestApi.[Symbol.asyncIterator] ($deno$/testing.ts:259:11) at async Object.runTests ($deno$/testing.ts:341:20) failures: fetching TODOs test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out (95ms) </code></pre></div> <p dir="auto">The issue is only present from <code class="notranslate">v0.37.0</code>.</p>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/escape-sequences-in-strings#?solution=%0Avar%20myStr%3B%20%2F%2F%20Change%20this%20line%0A%0AmyStr%20%3D%20%22FirstLine%5Cn%5C%5CSecondLine%5C%5C%5CrThirdLine%22%3B%0A" rel="nofollow">Escape Sequences in Strings</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 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 myStr; // Change this line myStr = &quot;FirstLine\n\\SecondLine\\\rThirdLine&quot;; "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myStr</span><span class="pl-kos">;</span> <span class="pl-c">// Change this line</span> <span class="pl-s1">myStr</span> <span class="pl-c1">=</span> <span class="pl-s">"FirstLine\n\\SecondLine\\\rThirdLine"</span><span class="pl-kos">;</span></pre></div> <blockquote> <p dir="auto">FirstLinenewlinebackslashSecondLinebackslashcarriage-returnThirdLine</p> </blockquote> <p dir="auto">It made me very confused!<br> I just can't understand this, and why not directly show off the result effect of pic?<br> just like this!<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18028768/18844224/099fdd68-844f-11e6-8d85-3843e2e55fd4.PNG"><img src="https://cloud.githubusercontent.com/assets/18028768/18844224/099fdd68-844f-11e6-8d85-3843e2e55fd4.PNG" alt="xxx" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/escape-sequences-in-strings#?solution=%0Avar%20myStr%3D%22FirstLine%5Cn%5C%5CSecondLine%5C%5C%5CrThirdLine%22%3B%20%2F%2F%20Change%20this%20line%0A%0A%0A" rel="nofollow">Escape Sequences in Strings</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/52.0.2743.116 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 myStr=&quot;FirstLine\n\\SecondLine\\\rThirdLine&quot;; // Change this line "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myStr</span><span class="pl-c1">=</span><span class="pl-s">"FirstLine\n\\SecondLine\\\rThirdLine"</span><span class="pl-kos">;</span> <span class="pl-c">// Change this line</span> </pre></div>
1
<p dir="auto">The <a href="https://gist.github.com/Dapid/b33919674f6a3cd9839473bfd2821e28">following example</a> explodes in memory usage when calling the jitted functions. The culprit seems to be the dynamic_slice. It happens calling with or without the GPU.</p> <p dir="auto">Incidentally, it is also rather slow (twice slower than the plain Python version), so I welcome comments if there is a jax-friendlier way to rewrite it, but perhaps that is what jit should do?</p> <p dir="auto">My system:</p> <p dir="auto">Fedora 29, 31 GB RAM<br> jax 0.1.36<br> jaxlib 0.1.16, installed from the googleapis wheel.<br> CUDA 10.0<br> Nvidia driver 430.14.</p>
<p dir="auto">Please:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from jax import tree_util leaves, td = tree_util.tree_flatten( (1, (2, 3), [4], {'a': 42}, 99) ) td.num_leaves, td.num_nodes # (6, 10) td2 = tree_util.treedef_tuple(td.children()) td2.num_leaves, td2.num_nodes # (0, 10)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">jax</span> <span class="pl-k">import</span> <span class="pl-s1">tree_util</span> <span class="pl-s1">leaves</span>, <span class="pl-s1">td</span> <span class="pl-c1">=</span> <span class="pl-s1">tree_util</span>.<span class="pl-en">tree_flatten</span>( (<span class="pl-c1">1</span>, (<span class="pl-c1">2</span>, <span class="pl-c1">3</span>), [<span class="pl-c1">4</span>], {<span class="pl-s">'a'</span>: <span class="pl-c1">42</span>}, <span class="pl-c1">99</span>) ) <span class="pl-s1">td</span>.<span class="pl-s1">num_leaves</span>, <span class="pl-s1">td</span>.<span class="pl-s1">num_nodes</span> <span class="pl-c"># (6, 10)</span> <span class="pl-s1">td2</span> <span class="pl-c1">=</span> <span class="pl-s1">tree_util</span>.<span class="pl-en">treedef_tuple</span>(<span class="pl-s1">td</span>.<span class="pl-en">children</span>()) <span class="pl-s1">td2</span>.<span class="pl-s1">num_leaves</span>, <span class="pl-s1">td2</span>.<span class="pl-s1">num_nodes</span> <span class="pl-c"># (0, 10)</span></pre></div> <p dir="auto">Notice <code class="notranslate">td.num_leaves</code> is <code class="notranslate">6</code>, but <code class="notranslate">td2.num_leaves</code> is <code class="notranslate">0</code>.</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-truncate-a-string#?solution=function%20truncate%28str%2C%20num%29%20%7B%0A%20%20if%20%28str.length%20%3C%3D%203%29%20%7B%0A%20%20%20%20str%20%3D%20str.slice%280%2Cnum%29.concat%28%22..%22%29%3B%0A%20%20%7D%0A%20%20if%20%28str.length%20%3E%20num%29%20%7B%0A%20%20%20%20str%20%3D%20str.slice%280%2Cnum-3%29.concat%28%22...%22%29%3B%0A%20%20%7D%0A%20%20%2F%2F%20Clear%20out%20that%20junk%20in%20your%20trunk%0A%20%20return%20str%3B%0A%7D%0A%0Atruncate%28%22A-1%22%2C%202%29%3B%0A" rel="nofollow">Bonfire: Truncate a string</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/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="function truncate(str, num) { if (str.length &lt;= 3) { str = str.slice(0,num).concat(&quot;..&quot;); } if (str.length &gt; num) { str = str.slice(0,num-3).concat(&quot;...&quot;); } // Clear out that junk in your trunk return str; } truncate(&quot;A-1&quot;, 2); "><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">truncate</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">,</span> <span class="pl-s1">num</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">str</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">&lt;=</span> <span class="pl-c1">3</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-s1">num</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s">".."</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">&gt;</span> <span class="pl-s1">num</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">str</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-s1">num</span><span class="pl-c1">-</span><span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s">"..."</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// Clear out that junk in your trunk</span> <span class="pl-k">return</span> <span class="pl-s1">str</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">truncate</span><span class="pl-kos">(</span><span class="pl-s">"A-1"</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Hi! This code passes when it shouldn't. The challenge asks for users to truncate if str.length is longer than num.length, but this configuration truncates str as long as it is shorter than 3 characters, regardless of the length of num. This could be resolved by making another test parameter truncate("A-", 2) which does not truncate.</p>
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/basic-css/change-the-color-of-text" rel="nofollow">change-the-color-of-text</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.3; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;h2 style=&quot;color: red&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.&lt;/p&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">style</span>="<span class="pl-s">color: red</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span></pre></div>
0
<p dir="auto">Please go to Stack Overflow for help and support:</p> <p dir="auto"><a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">https://stackoverflow.com/questions/tagged/tensorflow</a></p> <p dir="auto">If you open a GitHub issue, here is our policy:</p> <ol dir="auto"> <li>It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).</li> <li>The form below must be filled out.</li> <li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li> </ol> <p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p> <hr> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Ubuntu 16.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>: pip install tensorflow-nightly-gpu</li> <li><strong>TensorFlow version (use command below)</strong>: 1.10</li> <li><strong>Python version</strong>: 2.7</li> <li><strong>Bazel version (if compiling from source)</strong>:</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:</li> <li><strong>CUDA/cuDNN version</strong>:</li> <li><strong>GPU model and memory</strong>:</li> <li><strong>Exact command to reproduce</strong>:<br> import tensorflow as tf<br> You can collect some of this information using our environment capture script:</li> </ul> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p> <p dir="auto">You can obtain the TensorFlow version with</p> <p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.</p> <p dir="auto">ttTraceback (most recent call last):<br> File "", line 1, in <br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/<strong>init</strong>.py", line 22, in <br> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 81, in <br> from tensorflow.python import keras<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/<strong>init</strong>.py", line 24, in <br> from tensorflow.python.keras import activations<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/activations/<strong>init</strong>.py", line 22, in <br> from tensorflow.python.keras._impl.keras.activations import elu<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/_impl/keras/<strong>init</strong>.py", line 21, in <br> from tensorflow.python.keras._impl.keras import activations<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/_impl/keras/activations.py", line 23, in <br> from tensorflow.python.keras._impl.keras import backend as K<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/_impl/keras/backend.py", line 38, in <br> from tensorflow.python.layers import base as tf_base_layers<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 25, in <br> from tensorflow.python.keras.engine import base_layer<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/engine/<strong>init</strong>.py", line 21, in <br> from tensorflow.python.keras.engine.base_layer import InputSpec<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 33, in <br> from tensorflow.python.keras import backend<br> File "/home/dhingratul/.virtualenvs/tf/local/lib/python2.7/site-packages/tensorflow/python/keras/backend/<strong>init</strong>.py", line 22, in <br> from tensorflow.python.keras._impl.keras.backend import abs<br> ImportError: cannot import name abs</p>
<p dir="auto">As of today (2018-06-09), the reproduction steps are:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip install -U tf-nightly"><pre class="notranslate">pip install -U tf-nightly</pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span></pre></div> <p dir="auto">The error stack looks like:</p> <blockquote> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/<strong>init</strong>.py in ()<br> 20<br> 21 # pylint: disable=g-bad-import-order<br> ---&gt; 22 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import<br> 23 from . import app<br> 24 from . import bitwise</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/<strong>init</strong>.py in ()<br> 79 # Bring in subpackages.<br> 80 from tensorflow.python import data<br> ---&gt; 81 from tensorflow.python import keras<br> 82 from tensorflow.python.estimator import estimator_lib as estimator<br> 83 from tensorflow.python.feature_column import feature_column_lib as feature_column</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/<strong>init</strong>.py in ()<br> 22 from <strong>future</strong> import print_function<br> 23<br> ---&gt; 24 from tensorflow.python.keras import activations<br> 25 from tensorflow.python.keras import applications<br> 26 from tensorflow.python.keras import backend</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/activations/<strong>init</strong>.py in ()<br> 20<br> 21 # Activation functions.<br> ---&gt; 22 from tensorflow.python.keras._impl.keras.activations import elu<br> 23 from tensorflow.python.keras._impl.keras.activations import hard_sigmoid<br> 24 from tensorflow.python.keras._impl.keras.activations import linear</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/<strong>init</strong>.py in ()<br> 19 from <strong>future</strong> import print_function<br> 20<br> ---&gt; 21 from tensorflow.python.keras._impl.keras import activations<br> 22 from tensorflow.python.keras._impl.keras import applications<br> 23 from tensorflow.python.keras._impl.keras import backend</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/activations.py in ()<br> 21 import six<br> 22<br> ---&gt; 23 from tensorflow.python.keras._impl.keras import backend as K<br> 24 from tensorflow.python.keras._impl.keras.utils.generic_utils import deserialize_keras_object<br> 25 from tensorflow.python.layers.base import Layer</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/backend.py in ()<br> 35 from tensorflow.python.framework import ops<br> 36 from tensorflow.python.framework import sparse_tensor<br> ---&gt; 37 from tensorflow.python.layers import base as tf_base_layers<br> 38 from tensorflow.python.ops import array_ops<br> 39 from tensorflow.python.ops import clip_ops</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/layers/base.py in ()<br> 23 from tensorflow.python.framework import dtypes<br> 24 from tensorflow.python.framework import ops<br> ---&gt; 25 from tensorflow.python.keras.engine import base_layer<br> 26 from tensorflow.python.ops import variable_scope as vs<br> 27 from tensorflow.python.ops import variables as tf_variables</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/engine/<strong>init</strong>.py in ()<br> 19 from <strong>future</strong> import print_function<br> 20<br> ---&gt; 21 from tensorflow.python.keras.engine.base_layer import InputSpec<br> 22 from tensorflow.python.keras.engine.base_layer import Layer<br> 23 from tensorflow.python.keras.engine.input_layer import Input</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/engine/base_layer.py in ()<br> 31 from tensorflow.python.framework import tensor_shape<br> 32 from tensorflow.python.framework import tensor_util<br> ---&gt; 33 from tensorflow.python.keras import backend<br> 34 from tensorflow.python.keras import constraints<br> 35 from tensorflow.python.keras import initializers</p> <p dir="auto">~/venv_cpu_py3/lib/python3.5/site-packages/tensorflow/python/keras/backend/<strong>init</strong>.py in ()<br> 20<br> 21 # pylint: disable=redefined-builtin<br> ---&gt; 22 from tensorflow.python.keras._impl.keras.backend import abs<br> 23 from tensorflow.python.keras._impl.keras.backend import all<br> 24 from tensorflow.python.keras._impl.keras.backend import any</p> <p dir="auto">ImportError: cannot import name 'abs'</p> </blockquote> <p dir="auto">Note that the same error does <em>not</em> happen in tensorflow 1.8.0 or 1.9.0rc0.</p>
1
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/applied-visual-design/use-a-google-font" rel="nofollow">use-a-google-font</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 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;style&gt; body { font-family: &quot;Open Sans&quot;; } h4 { text-align: center; background-color: rgba(45, 45, 45, 0.1); padding: 10px; font-size: 27px; text-transform: uppercase; } p { text-align: justify; } .links { text-align: left; color: black; opacity: 0.7; } #thumbnail:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); } .fullCard { width: 245px; border: 1px solid #ccc; border-radius: 5px; margin: 10px 5px; padding: 4px; } .cardContent { padding: 10px; } .cardText { margin-bottom: 30px; } &lt;/style&gt; &lt;div class=&quot;fullCard&quot; id=&quot;thumbnail&quot;&gt; &lt;div class=&quot;cardContent&quot;&gt; &lt;div class=&quot;cardText&quot;&gt; &lt;strong&gt;&lt;h4&gt;Alphabet&lt;/h4&gt;&lt;/strong&gt; &lt;hr&gt; &lt;em&gt;&lt;p&gt;Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.&lt;/p&gt;&lt;/em&gt; &lt;/div&gt; &lt;div class=&quot;cardLinks&quot;&gt; &lt;u&gt; &lt;a href=&quot;https://en.wikipedia.org/wiki/Larry_Page&quot; class=&quot;links&quot;&gt;Larry Page&lt;/a&gt;&lt;br&gt;&lt;br&gt; &lt;a href=&quot;https://en.wikipedia.org/wiki/Sergey_Brin&quot; class=&quot;links&quot;&gt;Sergey Brin&lt;/a&gt; &lt;/u&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; ``` "><pre class="notranslate"> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">body</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> <span class="pl-s">"Open Sans"</span>; } <span class="pl-ent">h4</span> { <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-en">rgba</span>(<span class="pl-c1">45</span><span class="pl-kos">,</span> <span class="pl-c1">45</span><span class="pl-kos">,</span> <span class="pl-c1">45</span><span class="pl-kos">,</span> <span class="pl-c1">0.1</span>); <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">27<span class="pl-smi">px</span></span>; <span class="pl-c1">text-transform</span><span class="pl-kos">:</span> uppercase; } <span class="pl-ent">p</span> { <span class="pl-c1">text-align</span><span class="pl-kos">:</span> justify; } .<span class="pl-c1">links</span> { <span class="pl-c1">text-align</span><span class="pl-kos">:</span> left; <span class="pl-c1">color</span><span class="pl-kos">:</span> black; <span class="pl-c1">opacity</span><span class="pl-kos">:</span> <span class="pl-c1">0.7</span>; } <span class="pl-kos">#</span><span class="pl-c1">thumbnail</span><span class="pl-kos">:</span><span class="pl-c1">hover</span> { <span class="pl-c1">box-shadow</span><span class="pl-kos">:</span> <span class="pl-c1">0</span> <span class="pl-c1">10<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-en">rgba</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-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.19</span>)<span class="pl-kos">,</span> <span class="pl-c1">0</span> <span class="pl-c1">6<span class="pl-smi">px</span></span> <span class="pl-c1">6<span class="pl-smi">px</span></span> <span class="pl-en">rgba</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-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.23</span>); } .<span class="pl-c1">fullCard</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">245<span class="pl-smi">px</span></span>; <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">1<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>ccc</span>; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">4<span class="pl-smi">px</span></span>; } .<span class="pl-c1">cardContent</span> { <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; } .<span class="pl-c1">cardText</span> { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">30<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">fullCard</span>" <span class="pl-c1">id</span>="<span class="pl-s">thumbnail</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">cardContent</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">cardText</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">strong</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>Alphabet<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">strong</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">hr</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">em</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>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.<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">em</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">cardLinks</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">u</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">https://en.wikipedia.org/wiki/Larry_Page</span>" <span class="pl-c1">class</span>="<span class="pl-s">links</span>"<span class="pl-kos">&gt;</span>Larry Page<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">br</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">br</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">https://en.wikipedia.org/wiki/Sergey_Brin</span>" <span class="pl-c1">class</span>="<span class="pl-s">links</span>"<span class="pl-kos">&gt;</span>Sergey Brin<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">u</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> ``` </pre></div>
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/challenges/waypoint-label-bootstrap-wells" rel="nofollow">http://beta.freecodecamp.com/challenges/waypoint-label-bootstrap-wells</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">I have the following code, but the the first challenge "Add an h4 element to each of your </p><div dir="auto"> elements." is not correctly validated (see screenshot below).<p dir="auto"></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class='container-fluid'&gt; &lt;h3 class='text-primary text-center'&gt;jQuery Playground&lt;/h3&gt; &lt;div class='row'&gt; &lt;div class='col-xs-6'&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class='well' id='left-well'&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class='col-xs-6'&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class='well' id='right-well'&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class='container-fluid'&gt; &lt;h3 class='text-primary text-center'&gt;jQuery Playground&lt;/h3&gt; &lt;div class='row'&gt; &lt;div class='col-xs-6'&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class='well' id='left-well'&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class='col-xs-6'&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class='well' id='right-well'&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;button class='btn btn-default target'&gt;&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre></div> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13466453/9083671/71ed22c2-3b6c-11e5-8670-dda7ec9f89d4.PNG"><img width="1280" alt="screen shot 2015-08-05 at 12 16 17" src="https://cloud.githubusercontent.com/assets/13466453/9083671/71ed22c2-3b6c-11e5-8670-dda7ec9f89d4.PNG" style="max-width: 100%;"></a></div>
0
<p dir="auto"><strong>System information</strong></p> <p dir="auto">Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Slightly.</p> <p dir="auto">OS Platform and Distribution : centos6.3</p> <p dir="auto">TensorFlow installed from: conda</p> <p dir="auto">TensorFlow version (use command below): v1.8.0(it already has the code TF_CALL_half(REGISTER_BATCH_MATMUL_GPU);)</p> <p dir="auto">Python version: 3.6</p> <p dir="auto">CUDA/cuDNN version: 9.2</p> <p dir="auto">GPU model and memory: V100</p> <p dir="auto">Exact command to reproduce:</p> <p dir="auto">with tf.device("/gpu:0"):<br> a = tf.random_normal(dtype=tf.float16, shape=[5, 2, 3], name='a')<br> b = tf.random_normal(dtype=tf.float16, shape=[5, 3, 2], name='b')<br> c = tf.matmul(a, b)<br> sess = tf.Session(config=tf.ConfigProto(log_device_placement=True, allow_soft_placement=False))<br> print(sess.run(c).shape)</p> <p dir="auto">the problem:</p> <p dir="auto">Source code / logs</p> <p dir="auto">InvalidArgumentError (see above for traceback): Cannot assign a device for operation 'MatMul_1': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available.<br> Registered kernels:<br> device='GPU'; T in [DT_DOUBLE]<br> device='GPU'; T in [DT_FLOAT]<br> device='GPU'; T in [DT_COMPLEX128]<br> device='GPU'; T in [DT_COMPLEX64]<br> device='CPU'; T in [DT_INT32]<br> device='CPU'; T in [DT_HALF]<br> device='CPU'; T in [DT_DOUBLE]<br> device='CPU'; T in [DT_FLOAT]<br> device='CPU'; T in [DT_COMPLEX128]<br> device='CPU'; T in [DT_COMPLEX64]</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [[Node: MatMul_1 = BatchMatMul[T=DT_HALF, adj_x=false, adj_y=false, _device=&quot;/devic"><pre class="notranslate"><code class="notranslate"> [[Node: MatMul_1 = BatchMatMul[T=DT_HALF, adj_x=false, adj_y=false, _device="/devic </code></pre></div>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br> MacOS Sierra 12.12.4</li> <li><strong>TensorFlow installed from (source or binary)</strong>:<br> pip</li> <li><strong>TensorFlow version (use command below)</strong>:<br> 1.1.0 (CPU)</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I am trying to implement E2C (available from <a href="https://arxiv.org/pdf/1506.07365.pdf" rel="nofollow">https://arxiv.org/pdf/1506.07365.pdf</a>). Basically it is a neural network that is used for learning a transition model using neural networks. In the training set I have data of the form (X_t, X_t+1) where both X_t and X_t+1 needs to be transformed by an encoding network (e.g. a variational autoencoder). I use the following snippet for creating the encoding network (adapted from <a href="https://github.com/ericjang/e2c">https://github.com/ericjang/e2c</a>):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" def encode(self, x, share=None): fc = tf.contrib.layers.fully_connected with tf.variable_scope('Encoder', reuse=share): l1 = fc(x, 400, weights_initializer=tf.orthogonal_initializer(), activation_fn=tf.nn.relu) l2 = fc(l1, 100, weights_initializer=tf.orthogonal_initializer(), activation_fn=tf.nn.relu) return l2 def decode(self, z, share=None): fc = tf.contrib.layers.fully_connected with tf.variable_scope(&quot;Decoder&quot;, reuse=share): l1 = fc(z, 100, weights_initializer=tf.orthogonal_initializer(1.1), activation_fn=tf.nn.relu) l2 = fc(l1, 400, weights_initializer=tf.orthogonal_initializer(1.1), activation_fn=tf.nn.relu) return fc(l2, self.x_dim, weights_initializer=tf.orthogonal_initializer(1.1), activation_fn=tf.nn.sigmoid)"><pre class="notranslate"> <span class="pl-k">def</span> <span class="pl-en">encode</span>(<span class="pl-s1">self</span>, <span class="pl-s1">x</span>, <span class="pl-s1">share</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-s1">fc</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">layers</span>.<span class="pl-s1">fully_connected</span> <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">variable_scope</span>(<span class="pl-s">'Encoder'</span>, <span class="pl-s1">reuse</span><span class="pl-c1">=</span><span class="pl-s1">share</span>): <span class="pl-s1">l1</span> <span class="pl-c1">=</span> <span class="pl-en">fc</span>(<span class="pl-s1">x</span>, <span class="pl-c1">400</span>, <span class="pl-s1">weights_initializer</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-en">orthogonal_initializer</span>(), <span class="pl-s1">activation_fn</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">relu</span>) <span class="pl-s1">l2</span> <span class="pl-c1">=</span> <span class="pl-en">fc</span>(<span class="pl-s1">l1</span>, <span class="pl-c1">100</span>, <span class="pl-s1">weights_initializer</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-en">orthogonal_initializer</span>(), <span class="pl-s1">activation_fn</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">relu</span>) <span class="pl-k">return</span> <span class="pl-s1">l2</span> <span class="pl-k">def</span> <span class="pl-en">decode</span>(<span class="pl-s1">self</span>, <span class="pl-s1">z</span>, <span class="pl-s1">share</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-s1">fc</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">layers</span>.<span class="pl-s1">fully_connected</span> <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">variable_scope</span>(<span class="pl-s">"Decoder"</span>, <span class="pl-s1">reuse</span><span class="pl-c1">=</span><span class="pl-s1">share</span>): <span class="pl-s1">l1</span> <span class="pl-c1">=</span> <span class="pl-en">fc</span>(<span class="pl-s1">z</span>, <span class="pl-c1">100</span>, <span class="pl-s1">weights_initializer</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-en">orthogonal_initializer</span>(<span class="pl-c1">1.1</span>), <span class="pl-s1">activation_fn</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">relu</span>) <span class="pl-s1">l2</span> <span class="pl-c1">=</span> <span class="pl-en">fc</span>(<span class="pl-s1">l1</span>, <span class="pl-c1">400</span>, <span class="pl-s1">weights_initializer</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-en">orthogonal_initializer</span>(<span class="pl-c1">1.1</span>), <span class="pl-s1">activation_fn</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">relu</span>) <span class="pl-k">return</span> <span class="pl-en">fc</span>(<span class="pl-s1">l2</span>, <span class="pl-s1">self</span>.<span class="pl-s1">x_dim</span>, <span class="pl-s1">weights_initializer</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-en">orthogonal_initializer</span>(<span class="pl-c1">1.1</span>), <span class="pl-s1">activation_fn</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">sigmoid</span>)</pre></div> <p dir="auto">Then I would use something like</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="h_enc_t = encoder(X_t) h_enc_t_next = encoder(X_{t+1}, share=True)"><pre class="notranslate"><span class="pl-s1">h_enc_t</span> <span class="pl-c1">=</span> <span class="pl-en">encoder</span>(<span class="pl-v">X_t</span>) <span class="pl-s1">h_enc_t_next</span> <span class="pl-c1">=</span> <span class="pl-en">encoder</span>(<span class="pl-v">X_</span>{<span class="pl-s1">t</span><span class="pl-c1">+</span><span class="pl-c1">1</span>}, <span class="pl-s1">share</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div> <p dir="auto">to create the encoded output for the model.</p> <p dir="auto">The problem is that when visualizing this on Tensorboard, while it is sharing the variables by setting <code class="notranslate">share=True</code> for the variable scope, on the graph visulisation you will have <code class="notranslate">Encoder</code> and <code class="notranslate">Encoder_1</code> instead of just a <code class="notranslate">Decoder</code> scope. Of course they took different input since we need to transform X_t and X_t+1, but shouldn't the network be wrapped in the same scope since underneath we are reusing the same weights? I wonder if it is a feature to have <code class="notranslate">Encoder_1</code> and <code class="notranslate">Encoder</code> separately or it is a limitation of the variable scoping. The problem is illustrated in the screenshot below, you will see duplicates for 'Encoder' 'SampleQPhi" etc:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6040760/25559064/98fecc5a-2d2b-11e7-8669-00b1227abf17.png"><img src="https://cloud.githubusercontent.com/assets/6040760/25559064/98fecc5a-2d2b-11e7-8669-00b1227abf17.png" alt="graph-run" style="max-width: 100%;"></a></p> <p dir="auto">However, I would expect something like this (as appeared in the paper) to be a more reasonable visualization (h_enc) with input x_t and x_t+1 are the same network:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6040760/25565322/fc04ab8a-2dbc-11e7-9876-5e823a3bf47b.png"><img width="546" alt="screenshot 2017-04-30 15 51 01" src="https://cloud.githubusercontent.com/assets/6040760/25565322/fc04ab8a-2dbc-11e7-9876-5e823a3bf47b.png" style="max-width: 100%;"></a></p> <p dir="auto">Many thanks in advance!</p>
0
<p dir="auto">I just initiating with sklearn it is a great library and the best, the documentation is awesome.</p> <p dir="auto">But, not for the first time, a cannot access any links in SourceForge:</p> <blockquote> <p dir="auto">The sourceforge.net website is temporarily in static offline mode.<br> Only a very limited set of project pages are available until the main website returns to service.</p> </blockquote> <p dir="auto">I urge you to move the documentation to elsewhere possibly to GitHub Wiki or GitHub pages.</p>
<p dir="auto">As you have observed, sourceforge.net is not a very reliable host. Furthermore it would be simpler to update the documentation if we used the github.io / github pages system.</p> <p dir="auto">There are some limitations though:</p> <ul dir="auto"> <li>it's apparently not possible to setup HTTP 301 / 302 redirects for instance from <code class="notranslate">/</code> to <code class="notranslate">/stable</code> for the home page.</li> <li>I am not sure github.io will allow us enough space to host all the old versions of the website (would need to check the size limits and measure the size of the total folder on sourceforge).</li> </ul> <p dir="auto">For the first issue, I have made some tests with HTML meta refresh to implement a redirection at the HTML level.</p> <p dir="auto">See:<br> <a href="https://github.com/ogrisel/test-gh-pages/blob/gh-pages/index.html">https://github.com/ogrisel/test-gh-pages/blob/gh-pages/index.html</a></p> <p dir="auto">and the result:</p> <p dir="auto"><a href="http://ogrisel.github.io/test-gh-pages/" rel="nofollow">http://ogrisel.github.io/test-gh-pages/</a></p> <p dir="auto">This causes some flickering but I think it's ok. What do other people think?</p>
1
<p dir="auto">The code passes all tests, but no message displays confirming that the bonfire is completed/the bonfire is not checked off on the map. Screenshots attached of both the Sum of All Odd Fibonacci Numbers and the Binary Agents bonfire with the same issue. Only present on some bonfires, others are working fine.</p> <p dir="auto">Happening on both OSX and Linux Mint operating systems using Firefox</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11321426/7893788/4d973cfe-062f-11e5-8e9d-ef2b9cbeecf3.png"><img src="https://cloud.githubusercontent.com/assets/11321426/7893788/4d973cfe-062f-11e5-8e9d-ef2b9cbeecf3.png" alt="screen shot 2015-05-29 at 5 52 35 pm" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11321426/7893786/4d96d926-062f-11e5-96cd-0cfcb310767d.png"><img src="https://cloud.githubusercontent.com/assets/11321426/7893786/4d96d926-062f-11e5-96cd-0cfcb310767d.png" alt="screen shot 2015-05-29 at 5 50 52 pm" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11321426/7893787/4d970d42-062f-11e5-87be-1376a7840578.png"><img src="https://cloud.githubusercontent.com/assets/11321426/7893787/4d970d42-062f-11e5-87be-1376a7840578.png" alt="screen shot 2015-05-29 at 5 50 43 pm" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11321426/7893789/4d9a5470-062f-11e5-8e8a-5be43850c9d9.png"><img src="https://cloud.githubusercontent.com/assets/11321426/7893789/4d9a5470-062f-11e5-8e8a-5be43850c9d9.png" alt="screen shot 2015-05-29 at 5 52 42 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Although I have done all Bonfires, my profile page only shows 34 of them (not counting duplicates).</p> <p dir="auto"><a href="http://www.freecodecamp.com/akiralaine" rel="nofollow">http://www.freecodecamp.com/akiralaine</a></p>
0
<p dir="auto">hi, when I run webpack, I get a warning message like:</p> <p dir="auto">WARNING in node_modules/express/lib/view.js<br> Critical dependencies:<br> 78:29-56 the request of a dependency is an expression<br> @ node_modules/express/lib/view.js 78:29-56</p> <p dir="auto">I'm not clear what I should do to resolve this. thanks.</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> Un-referenced code is included in bundle (no tree shaking).</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> Minimal example: <a href="https://github.com/GordonSmith/tmp">https://github.com/GordonSmith/tmp</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> unitTest function to be excluded from the bundle</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>
0
<p dir="auto">This doesn't work. It's not a huge deal, but a bit inconvenient.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="begin &quot;A test function&quot; test_function(a) = &quot;testing&quot; end @doc test_function"><pre lang="{julia}" class="notranslate"><code class="notranslate">begin "A test function" test_function(a) = "testing" end @doc test_function </code></pre></div>
<p dir="auto">e.g. the following does not currently attach a docstring</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="begin &quot;&quot;&quot; abc &quot;&quot;&quot; f(x) = 1 end"><pre class="notranslate"><code class="notranslate">begin """ abc """ f(x) = 1 end </code></pre></div> <p dir="auto">It's a one-line change in the parser, but I wanted to check whether there was any intention behind this first. cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JeffBezanson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JeffBezanson">@JeffBezanson</a></p>
1
<p dir="auto"><a href="https://github.com/JuliaLang/julia/tree/master/contrib/install.sh">https://github.com/JuliaLang/julia/tree/master/contrib/install.sh</a> has a line that depends on output coming from <code class="notranslate">cp</code>.<br> In Ubuntu, if the locale is set to <code class="notranslate">en_US.UTF-8</code> then <code class="notranslate">cp -va</code> outputs fancy Unicode quote symbols that are not accounted for by the rest of the script causing <code class="notranslate">make install</code> to fail:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cp -va file1 file2 ‘file1’ -&gt; ‘file2’"><pre class="notranslate"><code class="notranslate">$ cp -va file1 file2 ‘file1’ -&gt; ‘file2’ </code></pre></div>
<p dir="auto">It looks like it's the chmod command that's returning status 1. This is with commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/ac7ac0b5fd2cf916aa0d58d45db622fa314405aa/hovercard" href="https://github.com/JuliaLang/julia/commit/ac7ac0b5fd2cf916aa0d58d45db622fa314405aa"><tt>ac7ac0b</tt></a>.</p> <p dir="auto">I added an echo to see what command it's actually running at the end, and it looks like somehow there's some weird characters showing up at the beginning and end.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="chmod 755 ��/home/sfr/local/src/julia/julia-ac7ac0b5fd/bin/julia�� 2&gt;/dev/null chmod 755 ��/home/sfr/local/src/julia/julia-ac7ac0b5fd/bin/julia-debug�� 2&gt;/dev/null"><pre class="notranslate"><code class="notranslate">chmod 755 ��/home/sfr/local/src/julia/julia-ac7ac0b5fd/bin/julia�� 2&gt;/dev/null chmod 755 ��/home/sfr/local/src/julia/julia-ac7ac0b5fd/bin/julia-debug�� 2&gt;/dev/null </code></pre></div>
1
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">One guy <a href="https://forum.vuejs.org/t/computed-properties-now-work-with-arrow-functions/19605" rel="nofollow">finded</a>, that computed getter may use with arrow function and destructed variables/methods.</p> <p dir="auto">I went ahead, and appended this case to <code class="notranslate">set()</code>, but failed, because setter not called component.<br> Later, i tried use <code class="notranslate">arguments</code>: <code class="notranslate">(locale =&gt; arguments[1].a.methods.updateLocale(locale))</code>, but vuex can't use <code class="notranslate">dispatch</code> to this, because undefined.</p> <p dir="auto">I think this API looks nice and will reduce many new lines :D</p> <h3 dir="auto">What does the proposed API look like?</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default { computed: { ...mapGetters(['global']), locale: { get: ({ global }) =&gt; global.locale, set: (locale, { updateLocale }) =&gt; updateLocale(locale) } }, methods: { ...mapActions(['updateLocale']) } }"><pre class="notranslate"><code class="notranslate">export default { computed: { ...mapGetters(['global']), locale: { get: ({ global }) =&gt; global.locale, set: (locale, { updateLocale }) =&gt; updateLocale(locale) } }, methods: { ...mapActions(['updateLocale']) } } </code></pre></div>
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">Easy two-way binding between <code class="notranslate">v-model</code> and vuex state / mutations.</p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">For example I want to bind the state of the global menu to a vuex state.</p> <p dir="auto">Meanwhile I use this manual workaround in my component:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="computed: { nav: { get () { return this.$store.state.nav }, set (v) { this.$store.commit('SET_NAV', v) } } }"><pre class="notranslate"><code class="notranslate">computed: { nav: { get () { return this.$store.state.nav }, set (v) { this.$store.commit('SET_NAV', v) } } } </code></pre></div> <p dir="auto"><strong>It would be helpful to have an easy function like <code class="notranslate">mapGetters</code> to do this.</strong></p>
1
<p dir="auto">Python 3.3, Windows 7 x64:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;D:\Projects\Web\stuff\backend\Scripts\celery-script.py&quot;, line 9, in &lt;module&gt; load_entry_point('celery==3.1.5', 'console_scripts', 'celery')() File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\__main__.py&quot;, line 29, in main main() File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py&quot;, line 80, in main cmd.execute_from_commandline(argv) File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py&quot;, line 725, in execute_from_commandline super(CeleryCommand, self).execute_from_commandline(argv))) File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\base.py&quot;, line 300, in execute_from_commandline return self.handle_argv(self.prog_name, argv[1:]) File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py&quot;, line 717, in handle_argv return self.execute(command, argv) File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py&quot;, line 671, in execute ).run_from_argv(self.prog_name, argv[1:], command=argv[0]) File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\worker.py&quot;, line 174, in run_from_argv return self(*args, **options) File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\base.py&quot;, line 263, in __call__ ret = self.run(*args, **kwargs) File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\worker.py&quot;, line 185, in run maybe_drop_privileges(uid=uid, gid=gid) File &quot;D:\Projects\Web\stuff\backend\lib\site-packages\celery\platforms.py&quot;, line 496, in maybe_drop_privileges if os.geteuid(): AttributeError: 'module' object has no attribute 'geteuid'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "D:\Projects\Web\stuff\backend\Scripts\celery-script.py", line 9, in &lt;module&gt; load_entry_point('celery==3.1.5', 'console_scripts', 'celery')() File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\__main__.py", line 29, in main main() File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py", line 80, in main cmd.execute_from_commandline(argv) File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py", line 725, in execute_from_commandline super(CeleryCommand, self).execute_from_commandline(argv))) File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\base.py", line 300, in execute_from_commandline return self.handle_argv(self.prog_name, argv[1:]) File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py", line 717, in handle_argv return self.execute(command, argv) File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\celery.py", line 671, in execute ).run_from_argv(self.prog_name, argv[1:], command=argv[0]) File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\worker.py", line 174, in run_from_argv return self(*args, **options) File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\base.py", line 263, in __call__ ret = self.run(*args, **kwargs) File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\bin\worker.py", line 185, in run maybe_drop_privileges(uid=uid, gid=gid) File "D:\Projects\Web\stuff\backend\lib\site-packages\celery\platforms.py", line 496, in maybe_drop_privileges if os.geteuid(): AttributeError: 'module' object has no attribute 'geteuid' </code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;C:\Python27\Scripts\celery-script.py&quot;, line 9, in &lt;module&gt; load_entry_point('celery==3.1.5', 'console_scripts', 'celery')() File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\__main__.py&quot;, line 29, in main main() File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py&quot;, line 80, in main cmd.execute_from_commandline(argv) File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py&quot;, line 725, in execute_from_commandline super(CeleryCommand, self).execute_from_commandline(argv))) File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\base.py&quot;, line 300, in execute_from_commandline return self.handle_argv(self.prog_name, argv[1:]) File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py&quot;, line 717, in handle_argv return self.execute(command, argv) File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py&quot;, line 671, in execute ).run_from_argv(self.prog_name, argv[1:], command=argv[0]) File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\worker.py&quot;, line 174, in run_from_argv return self(*args, **options) File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\base.py&quot;, line 263, in __call__ ret = self.run(*args, **kwargs) File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\worker.py&quot;, line 185, in run maybe_drop_privileges(uid=uid, gid=gid) File &quot;C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\platforms.py&quot;, line 496, in maybe_drop_privileges if os.geteuid(): AttributeError: 'module' object has no attribute 'geteuid'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "C:\Python27\Scripts\celery-script.py", line 9, in &lt;module&gt; load_entry_point('celery==3.1.5', 'console_scripts', 'celery')() File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\__main__.py", line 29, in main main() File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py", line 80, in main cmd.execute_from_commandline(argv) File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py", line 725, in execute_from_commandline super(CeleryCommand, self).execute_from_commandline(argv))) File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\base.py", line 300, in execute_from_commandline return self.handle_argv(self.prog_name, argv[1:]) File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py", line 717, in handle_argv return self.execute(command, argv) File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py", line 671, in execute ).run_from_argv(self.prog_name, argv[1:], command=argv[0]) File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\worker.py", line 174, in run_from_argv return self(*args, **options) File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\base.py", line 263, in __call__ ret = self.run(*args, **kwargs) File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\worker.py", line 185, in run maybe_drop_privileges(uid=uid, gid=gid) File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\platforms.py", line 496, in maybe_drop_privileges if os.geteuid(): AttributeError: 'module' object has no attribute 'geteuid' </code></pre></div>
1
<p dir="auto">I think it would be great if this sort of thing worked:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="trait Shizzle { static fn shizzle(); } trait Shozzle : Shizzle { static fn shizzle() { io::println(~&quot;shizzle! &quot; + shozzle::&lt;self&gt;()); } static fn shozzle() -&gt; ~str; } impl int : Shozzle { static fn shozzle() -&gt; ~str { ~&quot;i'm an int!&quot; } } fn main() { shizzle::&lt;int&gt;(); }"><pre class="notranslate"><code class="notranslate">trait Shizzle { static fn shizzle(); } trait Shozzle : Shizzle { static fn shizzle() { io::println(~"shizzle! " + shozzle::&lt;self&gt;()); } static fn shozzle() -&gt; ~str; } impl int : Shozzle { static fn shozzle() -&gt; ~str { ~"i'm an int!" } } fn main() { shizzle::&lt;int&gt;(); } </code></pre></div> <p dir="auto">Currently it fails with this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test-trait-inheritance.rs:12:4: 12:23 error: duplicate definition of value shizzle test-trait-inheritance.rs:12 static fn shizzle() { ^~~~~~~~~~~~~~~~~~~ test-trait-inheritance.rs:5:4: 5:23 note: first definition of value shizzle here: test-trait-inheritance.rs:5 static fn shizzle(); ^~~~~~~~~~~~~~~~~~~ error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">test-trait-inheritance.rs:12:4: 12:23 error: duplicate definition of value shizzle test-trait-inheritance.rs:12 static fn shizzle() { ^~~~~~~~~~~~~~~~~~~ test-trait-inheritance.rs:5:4: 5:23 note: first definition of value shizzle here: test-trait-inheritance.rs:5 static fn shizzle(); ^~~~~~~~~~~~~~~~~~~ error: aborting due to previous error </code></pre></div>
<p dir="auto">When generating a public fn with <code class="notranslate">impl</code> code, the <code class="notranslate">pub</code> keyword is ignored, and the resulting function is private (and raises a <code class="notranslate">dead_code</code> warning).</p> <p dir="auto">It is also not possible to move the pub keyword into the macro, as it then causes an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" expected one of `extern`, `fn`, or `unsafe`, found `pub`"><pre class="notranslate"><code class="notranslate"> expected one of `extern`, `fn`, or `unsafe`, found `pub` </code></pre></div> <p dir="auto">Related issues: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10298360" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/4621" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/4621/hovercard" href="https://github.com/rust-lang/rust/issues/4621">#4621</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25236308" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11403" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11403/hovercard" href="https://github.com/rust-lang/rust/issues/11403">#11403</a></p> <p dir="auto">The workaround suggested in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10298360" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/4621" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/4621/hovercard" href="https://github.com/rust-lang/rust/issues/4621">#4621</a> (generating multiple <code class="notranslate">impl</code> blocks) is unsatisfactory for public impl functions, as it does not allow for documenting the function, and produces doc output with repeated <code class="notranslate">impl Type</code> headers for each function.</p> <p dir="auto">The use case for this is generating code for library bindings.</p> <p dir="auto">The following code reproduces the issue:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="macro_rules! defn { ($n:ident) =&gt; ( fn $n (&amp;self) -&gt; i32 { 1 } ) } #[derive(Copy)] pub struct S; impl S { pub defn!(f); } #[cfg(test)] mod tests { use super::S; #[test] fn test_f() { let s=S; assert_eq!(1, s.f()); } }"><pre class="notranslate"><code class="notranslate">macro_rules! defn { ($n:ident) =&gt; ( fn $n (&amp;self) -&gt; i32 { 1 } ) } #[derive(Copy)] pub struct S; impl S { pub defn!(f); } #[cfg(test)] mod tests { use super::S; #[test] fn test_f() { let s=S; assert_eq!(1, s.f()); } } </code></pre></div>
0
<p dir="auto">matplotlib's <code class="notranslate">pyplot.hist</code> and <code class="notranslate">pyplot.hist2d</code> functions fill the supplied data into histogram bins and plot them, but very often users will have already done the first step (sorting data into bins) in their own code and are merely interested in presenting their results in a "style" that is evocative of histograms (most commonly: bar chart with no separation for 1D data, colored grid for 2D data).</p> <p dir="auto">Right now they can do this by using the <code class="notranslate">pyplot.bar</code> and <code class="notranslate">pyplot.imshow</code> functions for 1D and 2D data, respectively, but they have to fill in a bunch of arguments to make it look like something produced by <code class="notranslate">pyplot.hist</code> or <code class="notranslate">pyplot.hist2d</code> and they have to find out that those two are the right functions for the job in the first place (not very intuitive).</p> <p dir="auto">Hence I think it would be good if there were separate functions or maybe just special arguments to <code class="notranslate">pyplot.hist/hist2d</code> that allow you to plot bin <em>values</em> (as opposed to data that is yet to be binned) as histograms that look exactly as if they had been produced by <code class="notranslate">pyplot.hist/hist2d</code>.</p>
<p dir="auto">The following script and the image it produces illustrates the issue:</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 mpl_toolkits.axes_grid1 import make_axes_locatable fig, ax = plt.subplots() imax = ax.imshow(np.random.random((200, 200)), extent=[0, 100, 0, 1], aspect=100) divider = make_axes_locatable(ax) cax = divider.append_axes(&quot;right&quot;, size=&quot;5%&quot;, pad=&quot;2%&quot;) cb = fig.colorbar(imax, cax=cax)"><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">mpl_toolkits</span>.<span class="pl-s1">axes_grid1</span> <span class="pl-k">import</span> <span class="pl-s1">make_axes_locatable</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">imax</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">200</span>, <span class="pl-c1">200</span>)), <span class="pl-s1">extent</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>, <span class="pl-c1">100</span>, <span class="pl-c1">0</span>, <span class="pl-c1">1</span>], <span class="pl-s1">aspect</span><span class="pl-c1">=</span><span class="pl-c1">100</span>) <span class="pl-s1">divider</span> <span class="pl-c1">=</span> <span class="pl-en">make_axes_locatable</span>(<span class="pl-s1">ax</span>) <span class="pl-s1">cax</span> <span class="pl-c1">=</span> <span class="pl-s1">divider</span>.<span class="pl-en">append_axes</span>(<span class="pl-s">"right"</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-s">"5%"</span>, <span class="pl-s1">pad</span><span class="pl-c1">=</span><span class="pl-s">"2%"</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">imax</span>, <span class="pl-s1">cax</span><span class="pl-c1">=</span><span class="pl-s1">cax</span>)</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3126246/6853080/fcb2b234-d3a5-11e4-8d3a-e346b43279c1.png"><img src="https://cloud.githubusercontent.com/assets/3126246/6853080/fcb2b234-d3a5-11e4-8d3a-e346b43279c1.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">As a workaround, I can produce the plot I'm looking for using ImageGrid:</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 mpl_toolkits.axes_grid1 import ImageGrid fig = plt.figure(1, (8, 4)) grid = ImageGrid(fig, 111, nrows_ncols = (1, 1), axes_pad=0.1, cbar_mode='single') imax = grid[0].imshow(np.random.random((200, 200)), extent=[0, 100, 0, 1], aspect=100) cax = grid.cbar_axes[0] cb = fig.colorbar(imax, cax=cax)"><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">mpl_toolkits</span>.<span class="pl-s1">axes_grid1</span> <span class="pl-k">import</span> <span class="pl-v">ImageGrid</span> <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-c1">1</span>, (<span class="pl-c1">8</span>, <span class="pl-c1">4</span>)) <span class="pl-s1">grid</span> <span class="pl-c1">=</span> <span class="pl-v">ImageGrid</span>(<span class="pl-s1">fig</span>, <span class="pl-c1">111</span>, <span class="pl-s1">nrows_ncols</span> <span class="pl-c1">=</span> (<span class="pl-c1">1</span>, <span class="pl-c1">1</span>), <span class="pl-s1">axes_pad</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>, <span class="pl-s1">cbar_mode</span><span class="pl-c1">=</span><span class="pl-s">'single'</span>) <span class="pl-s1">imax</span> <span class="pl-c1">=</span> <span class="pl-s1">grid</span>[<span class="pl-c1">0</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">200</span>, <span class="pl-c1">200</span>)), <span class="pl-s1">extent</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>, <span class="pl-c1">100</span>, <span class="pl-c1">0</span>, <span class="pl-c1">1</span>], <span class="pl-s1">aspect</span><span class="pl-c1">=</span><span class="pl-c1">100</span>) <span class="pl-s1">cax</span> <span class="pl-c1">=</span> <span class="pl-s1">grid</span>.<span class="pl-s1">cbar_axes</span>[<span class="pl-c1">0</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">imax</span>, <span class="pl-s1">cax</span><span class="pl-c1">=</span><span class="pl-s1">cax</span>)</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3126246/6853141/8ffc19f4-d3a6-11e4-8f08-1bc449717658.png"><img src="https://cloud.githubusercontent.com/assets/3126246/6853141/8ffc19f4-d3a6-11e4-8f08-1bc449717658.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I think this might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="38425734" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/3286" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/3286/hovercard" href="https://github.com/matplotlib/matplotlib/issues/3286">#3286</a>. Not sure if it's an out and out duplicate or just another symptom of the same basic issue with <code class="notranslate">make_axes_locatable</code>.</p> <p dir="auto">Some version info:</p> <p dir="auto">numpy 1.9.2<br> matplotlib 1.4.3<br> python 2.7.9</p>
0
<ul dir="auto"> <li>Electron version:<br> 1.2.1</li> <li>Operating system:<br> windows 10</li> </ul> <p dir="auto">I am developing an app with electron on win 10 and the frame header (where you find functions like close the window 'x' ) is white which is not the color I want.</p> <p dir="auto">Is there any way I can customize the color?</p> <p dir="auto">Thx!</p>
<p dir="auto">We're currently working on switching <a href="http://brackets.io" rel="nofollow">Brackets</a> over to Electron (<a href="https://github.com/zaggino/brackets-electron">fork</a>, <a href="https://groups.google.com/forum/#!topic/brackets-dev/sK_BfK59Wyw" rel="nofollow">Google Groups thread</a>).<br> It's making steady progress, Electron is great and fits our needs very well, but one issue we face is that, while our old shell featured a dark UI (see screenshots: <a href="https://cloud.githubusercontent.com/assets/2641501/7480028/e8f01cf2-f365-11e4-8635-5171e8a9816f.png" rel="nofollow">Mac</a>, <a href="https://cloud.githubusercontent.com/assets/2641501/7480052/045c8534-f366-11e4-91c0-26f10f848542.png" rel="nofollow">Win</a>), we cannot implement that in Electron without creating a fork.</p> <p dir="auto">Thus, I'd like to ask if it would be possible to make <a href="https://chrome.google.com/webstore/category/themes" rel="nofollow">Chrome Themes</a> work in Electron, which could be (we're not sure yet) an easy solution to our problem?</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zaggino/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zaggino">@zaggino</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ryanstewart/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ryanstewart">@ryanstewart</a></p>
1
<p dir="auto"><strong>I'm submitting a ...</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> The parent component generates a component based on the supplied component metadata. The lifecycle hooks of the generated component which in turn the generated child component also generates another component is not fired/called.</p> <p dir="auto"><strong>Expected behavior</strong><br> The lifecycle hooks defined in the nested generated components should be fired.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> Reproduction Link: <a href="http://plnkr.co/edit/wRfKN5wynVC3LZKDVw1s?p=preview" rel="nofollow">http://plnkr.co/edit/wRfKN5wynVC3LZKDVw1s?p=preview</a></p> <p dir="auto">The output should be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Hello Angular2 Parent Child Foo"><pre class="notranslate"><code class="notranslate">Hello Angular2 Parent Child Foo </code></pre></div> <p dir="auto">The current behavior is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Hello Angular2 Parent Child"><pre class="notranslate"><code class="notranslate">Hello Angular2 Parent Child </code></pre></div> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I have different kinds of modals (chart, alert, pdf viewer). One of them is a modal that displays any kind of chart like line chart, bar chart etc. So basically the parent acts as a modal component factory, the child is the chart modal which in turn dynamically creates charts based on the supplied component metadata.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Operating System: macOS 10.12.2<br> Package Manager: Yarn 0.18.1<br> Angular CLI: 1.0.0-beta.26</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.4.4</p> </li> <li> <p dir="auto"><strong>Browser:</strong> Chrome 55.0.2883.95, Firefox 50.1.0. Haven't tested on others</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.0.10</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.9.2</p> </li> </ul>
<p dir="auto">components loaded with the dynamic component loader are not having their lifecycle events called. this was a attempted workaround where these same events were not called using a route. both of these situations involve angular 2 running inside of an electron application. we need the lifecycle hooks, especially ngOnInit. here is a plunker which reproduces the dcl behaviour</p> <p dir="auto"><a href="http://plnkr.co/edit/XXLWqxwywGoFZaX1w99I?p=preview" rel="nofollow">http://plnkr.co/edit/XXLWqxwywGoFZaX1w99I?p=preview</a></p>
1
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">I am not sure about this bug is due to antd or nextjs.</p> <p dir="auto">it cannot use <code class="notranslate">Link</code> or <code class="notranslate">Router.push</code> to a page that contains antd component from a page not contains any antd component</p> <p dir="auto">if there are three pages:<br> page A: contain antd component<br> page B and C: not contain antd component</p> <p dir="auto">page B -&gt; page C : Success<br> page A -&gt; page B : Success<br> page A -&gt; page C : Success<br> page B -&gt; page A : Failure<br> page C -&gt; page A : Failure</p> <h2 dir="auto">To Reproduce</h2> <ul dir="auto"> <li>Clone the example project</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npx create-next-app --example with-ant-design-less with-ant-design-app"><pre class="notranslate"><code class="notranslate">npx create-next-app --example with-ant-design-less with-ant-design-app </code></pre></div> <ul dir="auto"> <li>Create a page without any antd component</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// pages/test.js import Link from 'next/link'; import { useRouter } from 'next/router'; const TestPage = props =&gt; { const Router = useRouter(); const goToIndexPage = e =&gt; { e.preventDefault(); Router.push('/'); }; return ( &lt;div&gt; &lt;a href=&quot;/&quot; onClick={goToIndexPage}&gt; Router push Test &lt;/a&gt; &lt;br /&gt; &lt;Link href=&quot;/&quot;&gt; &lt;a&gt;Link Test&lt;/a&gt; &lt;/Link&gt; &lt;/div&gt; ); }; export default TestPage;"><pre class="notranslate"><code class="notranslate">// pages/test.js import Link from 'next/link'; import { useRouter } from 'next/router'; const TestPage = props =&gt; { const Router = useRouter(); const goToIndexPage = e =&gt; { e.preventDefault(); Router.push('/'); }; return ( &lt;div&gt; &lt;a href="/" onClick={goToIndexPage}&gt; Router push Test &lt;/a&gt; &lt;br /&gt; &lt;Link href="/"&gt; &lt;a&gt;Link Test&lt;/a&gt; &lt;/Link&gt; &lt;/div&gt; ); }; export default TestPage; </code></pre></div> <ul dir="auto"> <li>Start project and enter to <code class="notranslate">localhost:3000/test</code> and try</li> </ul> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Link and Router.push should work</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: [e.g. macOS, Windows]</li> <li>Browser (if applies) [e.g. chrome, safari]</li> <li>Version of Next.js: 9 / 8</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">it can reproduce in <code class="notranslate">next@8</code> and <code class="notranslate">[email protected]</code> too<br> I built the project also, but it is the same behaviour</p>
<p dir="auto">This is bug report</p> <p dir="auto">Link does not work with css-module imported. That happens when page with Link has no css, and linked page has. No errors in console, so im not sure about reasons, but there is minimal repo to reproduce:<br> <a href="https://github.com/standy/next-css-error">https://github.com/standy/next-css-error</a></p> <p dir="auto">Bug appears in <code class="notranslate">[email protected]</code> + <code class="notranslate">[email protected]</code>,<br> Older <code class="notranslate">[email protected]</code> + <code class="notranslate">[email protected]</code> works fine</p>
1
<h4 dir="auto">Describe the bug</h4> <p dir="auto">When I try to copy the example from <a href="https://github.com/axios/axios#interceptors">README</a> with an options argument in my typescript project I get an error saying "Expected 0-2 arguments, but got 3".</p> <h4 dir="auto">To Reproduce</h4> <p dir="auto">Here's a reproduction of the issue on codesandbox: <a href="https://codesandbox.io/s/epic-kapitsa-cwxeo?file=/src/App.tsx" rel="nofollow">https://codesandbox.io/s/epic-kapitsa-cwxeo?file=/src/App.tsx</a></p> <p dir="auto">This part is directly copied from the README:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.interceptors.request.use(function (config) { config.headers.test = 'I am only a header!'; return config; }, null, { synchronous: true });"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">request</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">config</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">headers</span><span class="pl-kos">.</span><span class="pl-c1">test</span> <span class="pl-c1">=</span> <span class="pl-s">'I am only a header!'</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">config</span><span class="pl-kos">;</span> <span class="pl-kos">}</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-c1">synchronous</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h4 dir="auto">Expected behavior</h4> <p dir="auto">Expected types to expect an options argument</p> <h4 dir="auto">Environment</h4> <ul dir="auto"> <li>Axios Version - 0.21.1</li> <li>Adapter - irrelevant</li> <li>Browser - irrelevant</li> <li>Browser Version - irrelevant</li> <li>Node.js Version - irrelevant</li> <li>OS - irrelevant</li> <li>Typescript version - 4.1.3</li> </ul> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8076719/122560948-e6e6af80-d049-11eb-8a98-70cac9cd49f0.png"><img src="https://user-images.githubusercontent.com/8076719/122560948-e6e6af80-d049-11eb-8a98-70cac9cd49f0.png" alt="Screenshot of the error" style="max-width: 100%;"></a></p> <p dir="auto">Also I found the options param missing here: <a href="https://github.com/axios/axios/blob/master/lib/core/InterceptorManager.js#L12">https://github.com/axios/axios/blob/master/lib/core/InterceptorManager.js#L12</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8076719/122561166-3331ef80-d04a-11eb-977e-55a4e8fb8be9.png"><img src="https://user-images.githubusercontent.com/8076719/122561166-3331ef80-d04a-11eb-977e-55a4e8fb8be9.png" alt="Screenshot of that file" style="max-width: 100%;"></a><br> The function clearly takes three arguments, while only two are described. Is this what's causing the issue?</p>
<h4 dir="auto">Describe the bug</h4> <p dir="auto">The <a href="https://github.com/axios/axios/blob/master/index.d.ts#L126">type declared for InterceptorManager.use</a> does not include the third parameter (<code class="notranslate">options</code>), so typescript projects show an error when supplying it.</p> <h4 dir="auto">To Reproduce</h4> <p dir="auto">Code snippet to reproduce, ideally that will work by pasting into something like <a href="https://npm.runkit.com/axios" rel="nofollow">https://npm.runkit.com/axios</a>, a hosted solution, or a repository that illustrates the issue. <strong>If your problem is not reproducible, please file under Support or Usage Question</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.interceptors.request.use(config =&gt; config, null, { synchronous: true }); // ^ red squiggle here"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">request</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">config</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">config</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-c1">synchronous</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-c">// ^ red squiggle here</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/51333/113883766-74756b80-978c-11eb-8c7a-753132f2fb9e.png"><img src="https://user-images.githubusercontent.com/51333/113883766-74756b80-978c-11eb-8c7a-753132f2fb9e.png" alt="image" style="max-width: 100%;"></a></p> <h4 dir="auto">Expected behavior</h4> <p dir="auto">The type includes the optional third parameter, an object with a boolean <code class="notranslate">synchronous</code> property, and a <code class="notranslate">runWhen</code> property that takes an <code class="notranslate">AxiosRequestConfig</code> and returns a boolean;</p> <h4 dir="auto">Environment</h4> <ul dir="auto"> <li>Axios Version [e.g. 0.18.0]</li> <li>Adapter [e.g. XHR/HTTP]</li> <li>Browser [e.g. Chrome, Safari]</li> <li>Browser Version [e.g. 22]</li> <li>Node.js Version [e.g. 13.0.1]</li> <li>OS: [e.g. iOS 12.1.0, OSX 10.13.4]</li> <li>Additional Library Versions [e.g. React 16.7, React Native 0.58.0]</li> </ul> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto">Add any other context about the problem here. If applicable, add screenshots to help explain.</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Should display correct string.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Displays <code class="notranslate">[Object object]</code></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">I am using <a href="https://github.com/yahoo/react-intl">react-int</a> library for internalisation, it woks really well with material-ui and only fails at placeholders i.e</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;TextField label={&lt;FormattedMessage id=&quot;index.email&quot; /&gt;} placeholder={&lt;FormattedMessage id=&quot;index.emailExample&quot; /&gt;} fullWidth margin=&quot;dense&quot; value={email} onChange={({ target }) =&gt; this.setState({ email: target.value })} /&gt;"><pre class="notranslate"><code class="notranslate">&lt;TextField label={&lt;FormattedMessage id="index.email" /&gt;} placeholder={&lt;FormattedMessage id="index.emailExample" /&gt;} fullWidth margin="dense" value={email} onChange={({ target }) =&gt; this.setState({ email: target.value })} /&gt; </code></pre></div> <p dir="auto">placeholder is displayed as <code class="notranslate">[Object object]</code>, this works fine for <code class="notranslate">label</code> in same field and things like Tabs.</p> <h2 dir="auto">Context</h2> <p dir="auto">Unable to internationalise placeholders properly.</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>beta 33</td> </tr> <tr> <td>React</td> <td>16.2</td> </tr> <tr> <td>browser</td> <td>all</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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">Grid should be displayed as shown in image <a href="https://i.stack.imgur.com/jZBie.png" rel="nofollow">https://i.stack.imgur.com/jZBie.png</a><br> Here is the code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;Grid container direction=&quot;column&quot; spacing={0}&gt; &lt;Grid item xs={12}&gt; &lt;Grid container direction=&quot;row&quot; spacing={0}&gt; &lt;Grid item xs={6}&gt; Logo &lt;/Grid&gt; &lt;Grid item xs={6}&gt; FormControl &lt;/Grid&gt; &lt;/Grid&gt; &lt;/Grid&gt; &lt;Grid item xs={12}&gt; &lt;Grid container direction=&quot;column&quot; spacing={0}&gt; &lt;Grid item xs={12}&gt; &lt;Grid container direction=&quot;row&quot; spacing={0}&gt; &lt;Grid item xs={12}&gt; &lt;TextField /&gt; &lt;/Grid&gt; &lt;Grid item xs={12}&gt; &lt;TextField /&gt; &lt;/Grid&gt; &lt;/Grid&gt; &lt;/Grid&gt; &lt;Grid item xs={12}&gt; &lt;Grid container direction=&quot;row&quot; spacing={0}&gt; &lt;Grid item xs={6}&gt; &lt;TextField /&gt; &lt;/Grid&gt; &lt;Grid item xs={6}&gt; &lt;TextField /&gt; &lt;/Grid&gt; &lt;/Grid&gt; &lt;/Grid&gt; &lt;/Grid&gt; &lt;/Grid&gt; &lt;Grid item xs={12}&gt; &lt;Grid container direction=&quot;row&quot; spacing={0}&gt; &lt;Grid item xs={6}&gt; Label &lt;/Grid&gt; &lt;Grid item xs={6}&gt; Label &lt;/Grid&gt; &lt;/Grid&gt; &lt;/Grid&gt; &lt;/Grid&gt;"><pre class="notranslate"> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">container</span> <span class="pl-c1">direction</span><span class="pl-c1">=</span><span class="pl-s">"column"</span> <span class="pl-c1">spacing</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">12</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">container</span> <span class="pl-c1">direction</span><span class="pl-c1">=</span><span class="pl-s">"row"</span> <span class="pl-c1">spacing</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">6</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> Logo <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">6</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> FormControl <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">12</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">container</span> <span class="pl-c1">direction</span><span class="pl-c1">=</span><span class="pl-s">"column"</span> <span class="pl-c1">spacing</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">12</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">container</span> <span class="pl-c1">direction</span><span class="pl-c1">=</span><span class="pl-s">"row"</span> <span class="pl-c1">spacing</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">12</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">TextField</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">12</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">TextField</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">12</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">container</span> <span class="pl-c1">direction</span><span class="pl-c1">=</span><span class="pl-s">"row"</span> <span class="pl-c1">spacing</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">6</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">TextField</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">6</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">TextField</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">12</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">container</span> <span class="pl-c1">direction</span><span class="pl-c1">=</span><span class="pl-s">"row"</span> <span class="pl-c1">spacing</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">0</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">6</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> Label <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Grid</span> <span class="pl-c1">item</span> <span class="pl-c1">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">6</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> Label <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">&gt;</span></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It is working well in chrome and firefox but in IE 11, everything overlaps and messes up.</p> <h2 dir="auto">Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.18</td> </tr> <tr> <td>React</td> <td>15.6.2</td> </tr> <tr> <td>browser</td> <td>IE 11, Chrome, Firefox</td> </tr> </tbody> </table>
0
<p dir="auto">my goal is to create a browser window, have it load multiple pages (e.g. clicking links, loading new page etc in same window) but having the ipc available from the window on each page it loads so I can send data back to the server process</p> <p dir="auto">I have a <code class="notranslate">preload</code> script that does <code class="notranslate">global.ELECTRON_IPC = require('ipc')</code> and I have <code class="notranslate">node-integration: false</code> to not expose anything else</p> <p dir="auto">When I create a browser window and call <code class="notranslate">loadUrl</code>, then wait for <code class="notranslate">dom-ready</code>, the <code class="notranslate">ELECTRON_IPC</code> variable is there</p> <p dir="auto">However, when I click on a link (causing the window to navigate to a new url), and wait for <code class="notranslate">dom-ready</code> again, the <code class="notranslate">ELECTRON_IPC</code> variable is not there this time.</p> <p dir="auto">I'm guessing this behavior is because preload only gets called when the browser window is created. Would it make sense to call it before each load? e.g. after <code class="notranslate">will-navigate</code>?</p> <p dir="auto">Another way to ask the question would be: how else could I only expose IPC communications from the renderer to the server (but nothing else) in a way that is available across <code class="notranslate">loadUrl</code> calls?</p>
<p dir="auto">Browser-Window node-integration breaks after POST. require / global are undefined in browser-window after a POST request. I've seen this behavior since I first used Electron - 0.26.0. Still happens in 0.28.1. Here is simple way to reproduce:</p> <p dir="auto">package.json</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;PostExample&quot;, &quot;version&quot;: &quot;0.1.0&quot;, &quot;main&quot;: &quot;main.js&quot;, &quot;description&quot;: &quot;Post Loses Global&quot; } "><pre class="notranslate"><code class="notranslate">{ "name": "PostExample", "version": "0.1.0", "main": "main.js", "description": "Post Loses Global" } </code></pre></div> <p dir="auto">main.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var app = require('app') var BrowserWindow = require('browser-window') var mainWindow = null; app.on('window-all-closed', function() { app.quit() }); app.on('ready', function() { mainWindow = new BrowserWindow({ &quot;node-integration&quot;: true, }); mainWindow.loadUrl('file://' + __dirname + '/index.html') mainWindow.openDevTools() });"><pre class="notranslate"><code class="notranslate">var app = require('app') var BrowserWindow = require('browser-window') var mainWindow = null; app.on('window-all-closed', function() { app.quit() }); app.on('ready', function() { mainWindow = new BrowserWindow({ "node-integration": true, }); mainWindow.loadUrl('file://' + __dirname + '/index.html') mainWindow.openDevTools() }); </code></pre></div> <p dir="auto">index.html</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;html&gt; &lt;script type=&quot;text/javascript&quot;&gt; console.log(typeof global) try{ var fs = require(&quot;fs&quot;); } catch(e){ console.warn(&quot;ERROR&quot;, e) } &lt;/script&gt; &lt;body&gt; &lt;h1&gt;Posts to self&lt;/h1&gt; &lt;form action=&quot;&quot; method=&quot;post&quot;&gt; &lt;input type=&quot;text&quot; name=&quot;somevar&quot; value=&quot;val&quot; /&gt; &lt;button type=&quot;submit&quot;&gt;Submit to see Error&lt;/button&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><code class="notranslate">&lt;html&gt; &lt;script type="text/javascript"&gt; console.log(typeof global) try{ var fs = require("fs"); } catch(e){ console.warn("ERROR", e) } &lt;/script&gt; &lt;body&gt; &lt;h1&gt;Posts to self&lt;/h1&gt; &lt;form action="" method="post"&gt; &lt;input type="text" name="somevar" value="val" /&gt; &lt;button type="submit"&gt;Submit to see Error&lt;/button&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre></div>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.6</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a>(version = "xxx", group = "xxx") , group:xxx 有效</li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a>(version = "xxx", group = "xxx1") , group:xxx1 不生效</li> <li>异常信息:No provider available from registry</li> </ol>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public void addListener(String key, String group, ConfigurationListener listener) { String[] keyAndGroup = getKeyAndGroup(key); if (keyAndGroup[1] != null) { group = keyAndGroup[1]; } String finalGroup = group; NacosConfigListener nacosConfigListener = watchListenerMap.computeIfAbsent(generateKey(key, group), k -&gt; createTargetListener(key, finalGroup)); String keyInNacos = rootPath + PROPERTIES_CHAR_SEPERATOR + key; nacosConfigListener.addListener(listener); try { configService.addListener(keyInNacos, group, nacosConfigListener); System.out.println(&quot;1&quot;); } catch (NacosException e) { logger.error(e.getMessage()); } }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">addListener</span>(<span class="pl-smi">String</span> <span class="pl-s1">key</span>, <span class="pl-smi">String</span> <span class="pl-s1">group</span>, <span class="pl-smi">ConfigurationListener</span> <span class="pl-s1">listener</span>) { <span class="pl-smi">String</span>[] <span class="pl-s1">keyAndGroup</span> = <span class="pl-en">getKeyAndGroup</span>(<span class="pl-s1">key</span>); <span class="pl-k">if</span> (<span class="pl-s1">keyAndGroup</span>[<span class="pl-c1">1</span>] != <span class="pl-c1">null</span>) { <span class="pl-s1">group</span> = <span class="pl-s1">keyAndGroup</span>[<span class="pl-c1">1</span>]; } <span class="pl-smi">String</span> <span class="pl-s1">finalGroup</span> = <span class="pl-s1">group</span>; <span class="pl-smi">NacosConfigListener</span> <span class="pl-s1">nacosConfigListener</span> = <span class="pl-s1">watchListenerMap</span>.<span class="pl-en">computeIfAbsent</span>(<span class="pl-en">generateKey</span>(<span class="pl-s1">key</span>, <span class="pl-s1">group</span>), <span class="pl-s1">k</span> -&gt; <span class="pl-en">createTargetListener</span>(<span class="pl-s1">key</span>, <span class="pl-s1">finalGroup</span>)); <span class="pl-smi">String</span> <span class="pl-s1">keyInNacos</span> = <span class="pl-s1">rootPath</span> + <span class="pl-c1">PROPERTIES_CHAR_SEPERATOR</span> + <span class="pl-s1">key</span>; <span class="pl-s1">nacosConfigListener</span>.<span class="pl-en">addListener</span>(<span class="pl-s1">listener</span>); <span class="pl-k">try</span> { <span class="pl-s1">configService</span>.<span class="pl-en">addListener</span>(<span class="pl-s1">keyInNacos</span>, <span class="pl-s1">group</span>, <span class="pl-s1">nacosConfigListener</span>); <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"1"</span>); } <span class="pl-k">catch</span> (<span class="pl-smi">NacosException</span> <span class="pl-s1">e</span>) { <span class="pl-s1">logger</span>.<span class="pl-en">error</span>(<span class="pl-s1">e</span>.<span class="pl-en">getMessage</span>()); } }</pre></div> <p dir="auto">i think we should remove the code : group = keyAndGroup[1]</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">This code in the file module causes problems in the check mode:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if prev_state != 'absent' and state == 'absent': try: if prev_state == 'directory': if os.path.islink(path): if module.check_mode: module.exit_json(changed=True) os.unlink(path) else: try: if module.check_mode: module.exit_json(changed=True) shutil.rmtree(path, ignore_errors=False) except: module.exit_json(msg=&quot;rmtree failed&quot;) else: if module.check_mode: module.exit_json(changed=True) os.unlink(path) except Exception, e: module.fail_json(path=path, msg=str(e)) module.exit_json(path=path, changed=True)"><pre class="notranslate"><code class="notranslate"> if prev_state != 'absent' and state == 'absent': try: if prev_state == 'directory': if os.path.islink(path): if module.check_mode: module.exit_json(changed=True) os.unlink(path) else: try: if module.check_mode: module.exit_json(changed=True) shutil.rmtree(path, ignore_errors=False) except: module.exit_json(msg="rmtree failed") else: if module.check_mode: module.exit_json(changed=True) os.unlink(path) except Exception, e: module.fail_json(path=path, msg=str(e)) module.exit_json(path=path, changed=True) </code></pre></div> <p dir="auto">The line <code class="notranslate">module.exit_json(changed=True)</code> raises <code class="notranslate">SystemExit</code>, but there are two <code class="notranslate">except</code> lines that catch it and report it as error. However at that point, the first JSON was already printed, so there are two JSONs in the response.</p> <p dir="auto">I can send a patch to fix this if you want, but I think the best solution would be to remove the large and generic <code class="notranslate">try</code>/<code class="notranslate">except</code>.</p>
<p dir="auto"><strong>How to reproduce:</strong><br> First create a directory on some random host:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ ansible test-host -i ansible.hosts -m file -a 'path=/tmp/randompath state=directory' mymachine.domain.se | success &gt;&gt; { &quot;changed&quot;: true, &quot;gid&quot;: 1007, &quot;group&quot;: &quot;jens&quot;, &quot;mode&quot;: &quot;0755&quot;, &quot;owner&quot;: &quot;jens&quot;, &quot;path&quot;: &quot;/tmp/randompath&quot;, &quot;size&quot;: 4096, &quot;state&quot;: &quot;directory&quot;, &quot;uid&quot;: 1007 }"><pre class="notranslate">$ ansible test-host -i ansible.hosts -m file -a <span class="pl-s"><span class="pl-pds">'</span>path=/tmp/randompath state=directory<span class="pl-pds">'</span></span> mymachine.domain.se <span class="pl-k">|</span> success <span class="pl-k">&gt;&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>changed<span class="pl-pds">"</span></span>: true, <span class="pl-s"><span class="pl-pds">"</span>gid<span class="pl-pds">"</span></span>: 1007, <span class="pl-s"><span class="pl-pds">"</span>group<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>jens<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>mode<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>0755<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>owner<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>jens<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>path<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>/tmp/randompath<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>size<span class="pl-pds">"</span></span>: 4096, <span class="pl-s"><span class="pl-pds">"</span>state<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>directory<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>uid<span class="pl-pds">"</span></span>: 1007 }</pre></div> <p dir="auto">Then check if the directory would have been deleted (note <code class="notranslate">--check</code>):</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ ansible test-host -i ansible.hosts --check -m file -a 'path=/tmp/randompath state=absent' mymachine.domain.se | FAILED =&gt; failed to parse: {&quot;changed&quot;: true} {&quot;msg&quot;: &quot;rmtree failed&quot;, &quot;changed&quot;: false}"><pre class="notranslate">$ ansible test-host -i ansible.hosts --check -m file -a <span class="pl-s"><span class="pl-pds">'</span>path=/tmp/randompath state=absent<span class="pl-pds">'</span></span> mymachine.domain.se <span class="pl-k">|</span> FAILED =<span class="pl-k">&gt;</span> failed to parse: {<span class="pl-s"><span class="pl-pds">"</span>changed<span class="pl-pds">"</span></span>: true} {<span class="pl-s"><span class="pl-pds">"</span>msg<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>rmtree failed<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>changed<span class="pl-pds">"</span></span>: false}</pre></div> <p dir="auto"><strong>Expected output:</strong></p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ ansible test-host -i ansible.hosts --check -m file -a 'path=/tmp/randompath state=absent' mymachine.domain.se | success &gt;&gt; { &quot;changed&quot;: true }"><pre class="notranslate">$ ansible test-host -i ansible.hosts --check -m file -a <span class="pl-s"><span class="pl-pds">'</span>path=/tmp/randompath state=absent<span class="pl-pds">'</span></span> mymachine.domain.se <span class="pl-k">|</span> success <span class="pl-k">&gt;&gt;</span> { <span class="pl-s"><span class="pl-pds">"</span>changed<span class="pl-pds">"</span></span>: <span class="pl-c1">true</span> }</pre></div> <p dir="auto">I have pull request for this that I'll submit separately.</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; git version till [Wed Nov 21 15:54:42 2018] <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/b6a447798ac0d56aac11dfff2d61d420260e7f19/hovercard" href="https://github.com/opencv/opencv/commit/b6a447798ac0d56aac11dfff2d61d420260e7f19"><tt>b6a4477</tt></a></li> <li>Operating System / Platform =&gt; Ubuntu 18.04.1 LTS</li> <li>Compiler =&gt; g++ (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">compiled done, with "make install" command<br> the opencv.pc in ${prefix}/lib/pkgconfig/opencv.pc should update<br> for pkg-config --cflags output correctly</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">make install<br> pkg-config --cflags opencv</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre lang="should" class="notranslate"><code class="notranslate"></code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.0.0-rc</li> <li>Operating System / Platform =&gt; Ubuntu 18.10</li> <li>Compiler =&gt; gcc 8.2.0 / gcc 6</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I did cmake ...Then make and then make install<br> and it does not generate opencv.pc file.</p> <p dir="auto">If I use same commands for version 3.4.3 then the file is created.</p> <p dir="auto">Another thing<br> if I link with pkgconfig then it links to librarys with no version numbers.<br> so installing 4.0.0-rc after 3.4.3 makes pkgconfig unusable.<br> it would be nice if there were multiple opencv.pc files like opencv3.4.pc opencv4.pc</p>
1
<p dir="auto">It's related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="130901064" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/14919" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/14919/hovercard" href="https://github.com/JuliaLang/julia/issues/14919">#14919</a>. The code</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="abstract FitnessScheme{F} immutable MinimizingScalarScheme &lt;: FitnessScheme{Float64} end is_better(x, y, fs::MinimizingScalarScheme) = x &lt; y Base.call{F}(fs::FitnessScheme{F}, x::F, y::F) = is_better(x, y, fs)"><pre class="notranslate">abstract FitnessScheme{F} immutable MinimizingScalarScheme <span class="pl-k">&lt;:</span> <span class="pl-c1">FitnessScheme{Float64}</span> <span class="pl-k">end</span> <span class="pl-en">is_better</span>(x, y, fs<span class="pl-k">::</span><span class="pl-c1">MinimizingScalarScheme</span>) <span class="pl-k">=</span> x <span class="pl-k">&lt;</span> y Base<span class="pl-k">.</span><span class="pl-en">call</span><span class="pl-c1">{F}</span>(fs<span class="pl-k">::</span><span class="pl-c1">FitnessScheme{F}</span>, x<span class="pl-k">::</span><span class="pl-c1">F</span>, y<span class="pl-k">::</span><span class="pl-c1">F</span>) <span class="pl-k">=</span> <span class="pl-c1">is_better</span>(x, y, fs)</pre></div> <p dir="auto">works in v0.4, but in v0.5 I get</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: deprecated syntax &quot;call(fs::FitnessScheme{F}, ...)&quot;. Use &quot;(fs::FitnessScheme{F})(...)&quot; instead. ERROR: cannot add methods to an abstract type in eval(::Module, ::Any) at ./boot.jl:267"><pre class="notranslate"><code class="notranslate">WARNING: deprecated syntax "call(fs::FitnessScheme{F}, ...)". Use "(fs::FitnessScheme{F})(...)" instead. ERROR: cannot add methods to an abstract type in eval(::Module, ::Any) at ./boot.jl:267 </code></pre></div> <p dir="auto">The alternative approach (works in v0.4)</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Base.call{FS&lt;:FitnessScheme,F}(fs::FS, x::F, y::F) = is_better(x, y, fs)"><pre class="notranslate">Base<span class="pl-k">.</span><span class="pl-en">call</span><span class="pl-c1">{FS&lt;:FitnessScheme,F}</span>(fs<span class="pl-k">::</span><span class="pl-c1">FS</span>, x<span class="pl-k">::</span><span class="pl-c1">F</span>, y<span class="pl-k">::</span><span class="pl-c1">F</span>) <span class="pl-k">=</span> <span class="pl-c1">is_better</span>(x, y, fs)</pre></div> <p dir="auto">also fails with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: deprecated syntax &quot;call(fs::FS, ...)&quot;. Use &quot;(fs::FS)(...)&quot; instead. ERROR: function type in method definition is not a type in eval(::Module, ::Any) at ./boot.jl:267"><pre class="notranslate"><code class="notranslate">WARNING: deprecated syntax "call(fs::FS, ...)". Use "(fs::FS)(...)" instead. ERROR: function type in method definition is not a type in eval(::Module, ::Any) at ./boot.jl:267 </code></pre></div> <p dir="auto">The expected behaviour is that both definitions are valid.</p>
<p dir="auto">I'm updating ApproxFun and this caught me by surprise:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="abstract Foo julia&gt; (f::Foo)(x)=x ERROR: cannot add methods to an abstract type in eval(::Module, ::Any) at ./boot.jl:267"><pre class="notranslate">abstract Foo julia<span class="pl-k">&gt;</span> (f<span class="pl-k">::</span><span class="pl-c1">Foo</span>)(x)<span class="pl-k">=</span>x ERROR<span class="pl-k">:</span> cannot add methods to an <span class="pl-k">abstract type</span> <span class="pl-k">in</span> <span class="pl-c1">eval</span>(<span class="pl-k">::</span><span class="pl-c1">Module</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">./</span>boot<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">267</span></pre></div> <p dir="auto">Is this intentional? Is there a way to get around this other than define for each subtype:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; immutable CFoo &lt;: Foo end julia&gt; (f::CFoo)(x)=x"><pre class="notranslate">julia<span class="pl-k">&gt;</span> immutable CFoo <span class="pl-k">&lt;:</span> <span class="pl-c1">Foo</span> <span class="pl-k">end</span> julia<span class="pl-k">&gt;</span> (f<span class="pl-k">::</span><span class="pl-c1">CFoo</span>)(x)<span class="pl-k">=</span>x</pre></div>
1
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">The code and docs use "relation" and "relationship" interchangeably as though they were the same thing, but in relational databases, a relation has a specific meaning (and is more commonly referred to as a table). This makes learning SQLAlchemy confusing for people familiar with the relational model terminology.</p> <p dir="auto">This patch renames relation to relationship in the code and docs to avoid this confusion. Any chance something like this could be applied in a future major version?</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/1740/relationship.patch.gz">relationship.patch.gz</a></p>
<p dir="auto"><strong>Describe the use case</strong><br> Support for times when you want to insert into the database if records do not exist, or to overwrite them if they do.</p> <p dir="auto"><strong>Databases / Backends / Drivers targeted</strong><br> I am specifically targeting SqlServer for my production, and SQLite for my tests</p> <p dir="auto"><strong>Example Use</strong><br> <a href="https://docs.microsoft.com/en-us/sql/t-sql/statements/merge-transact-sql?view=sql-server-ver15" rel="nofollow">https://docs.microsoft.com/en-us/sql/t-sql/statements/merge-transact-sql?view=sql-server-ver15</a></p> <p dir="auto"><strong>Additional context</strong><br> Here is the code that I have been using that has gotten the job done.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def _insert_or_update(self, insert_obj: DeclarativeMeta, identity_insert=False) -&gt; None: &quot;&quot;&quot; A safe way for the sqlalchemy to insert if the record doesn't exist, or update if it does. Copied from trafficstat.crash_data_ingester :param insert_obj: :param identity_insert: :return: &quot;&quot;&quot; session = Session(bind=self.engine, future=True) if identity_insert: session.execute(text('SET IDENTITY_INSERT {} ON'.format(insert_obj.__tablename__))) session.add(insert_obj) try: session.commit() logger.debug('Successfully inserted object: {}', insert_obj) except IntegrityError as insert_err: session.rollback() if '(544)' in insert_err.args[0]: # This is a workaround for an issue with sqlalchemy not properly setting IDENTITY_INSERT on for SQL # Server before we insert values in the primary key. The error is: # (pyodbc.IntegrityError) ('23000', &quot;[23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server] # Cannot insert explicit value for identity column in table &lt;table name&gt; when IDENTITY_INSERT is set to # OFF. (544) (SQLExecDirectW)&quot;) self._insert_or_update(insert_obj, True) elif '(2627)' in insert_err.args[0] or 'UNIQUE constraint failed' in insert_err.args[0]: # Error 2627 is the Sql Server error for inserting when the primary key already exists. 'UNIQUE # constraint failed' is the same for Sqlite cls_type = type(insert_obj) qry = session.query(cls_type) primary_keys = [i.key for i in sqlalchemyinspect(cls_type).primary_key] for primary_key in primary_keys: qry = qry.filter(cls_type.__dict__[primary_key] == insert_obj.__dict__[primary_key]) update_vals = {k: v for k, v in insert_obj.__dict__.items() if not k.startswith('_') and k not in primary_keys} if update_vals: qry.update(update_vals) try: session.commit() logger.debug('Successfully inserted object: {}', insert_obj) except IntegrityError as update_err: logger.error('Unable to insert object: {}\nError: {}', insert_obj, update_err) else: raise AssertionError('Expected error 2627 or &quot;UNIQUE constraint failed&quot;. Got {}'.format(insert_err)) \ from insert_err finally: if identity_insert: session.execute(text('SET IDENTITY_INSERT {} OFF'.format(insert_obj.__tablename__))) session.close()"><pre class="notranslate"><code class="notranslate"> def _insert_or_update(self, insert_obj: DeclarativeMeta, identity_insert=False) -&gt; None: """ A safe way for the sqlalchemy to insert if the record doesn't exist, or update if it does. Copied from trafficstat.crash_data_ingester :param insert_obj: :param identity_insert: :return: """ session = Session(bind=self.engine, future=True) if identity_insert: session.execute(text('SET IDENTITY_INSERT {} ON'.format(insert_obj.__tablename__))) session.add(insert_obj) try: session.commit() logger.debug('Successfully inserted object: {}', insert_obj) except IntegrityError as insert_err: session.rollback() if '(544)' in insert_err.args[0]: # This is a workaround for an issue with sqlalchemy not properly setting IDENTITY_INSERT on for SQL # Server before we insert values in the primary key. The error is: # (pyodbc.IntegrityError) ('23000', "[23000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server] # Cannot insert explicit value for identity column in table &lt;table name&gt; when IDENTITY_INSERT is set to # OFF. (544) (SQLExecDirectW)") self._insert_or_update(insert_obj, True) elif '(2627)' in insert_err.args[0] or 'UNIQUE constraint failed' in insert_err.args[0]: # Error 2627 is the Sql Server error for inserting when the primary key already exists. 'UNIQUE # constraint failed' is the same for Sqlite cls_type = type(insert_obj) qry = session.query(cls_type) primary_keys = [i.key for i in sqlalchemyinspect(cls_type).primary_key] for primary_key in primary_keys: qry = qry.filter(cls_type.__dict__[primary_key] == insert_obj.__dict__[primary_key]) update_vals = {k: v for k, v in insert_obj.__dict__.items() if not k.startswith('_') and k not in primary_keys} if update_vals: qry.update(update_vals) try: session.commit() logger.debug('Successfully inserted object: {}', insert_obj) except IntegrityError as update_err: logger.error('Unable to insert object: {}\nError: {}', insert_obj, update_err) else: raise AssertionError('Expected error 2627 or "UNIQUE constraint failed". Got {}'.format(insert_err)) \ from insert_err finally: if identity_insert: session.execute(text('SET IDENTITY_INSERT {} OFF'.format(insert_obj.__tablename__))) session.close() </code></pre></div> <p dir="auto">I would open this as a PR, but I am not sure where this should go, and I am pretty sure its not up to the standards of this project.</p>
0
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/html5-and-css/give-a-background-color-to-a-div-element" rel="nofollow">give-a-background-color-to-a-div-element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;link href=&quot;https://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } .silver-background { background-color: silver; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; alt=&quot;A cute orange cat lying on its back. &quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;div class=&quot;silver-background&quot;&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot; checked&gt; Indoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Outdoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot; checked&gt; Loving&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Lazy&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Energetic&lt;/label&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot; required&gt; &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; ``` "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } .<span class="pl-c1">silver-background</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> silver; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back. </span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">silver-background</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>" <span class="pl-c1">checked</span><span class="pl-kos">&gt;</span> Indoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Outdoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>" <span class="pl-c1">checked</span><span class="pl-kos">&gt;</span> Loving<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Lazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Energetic<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">&gt;</span>Submit<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span> ```</pre></div>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/html5-and-css/give-a-background-color-to-a-div-element" rel="nofollow">give-a-background-color-to-a-div-element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;link href=&quot;https://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } .silver-background { background-color: silver; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; alt=&quot;A cute orange cat lying on its back. &quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;div class=&quot;silver-background&quot;&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot; checked&gt; Indoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Outdoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot; checked&gt; Loving&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Lazy&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Energetic&lt;/label&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot; required&gt; &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; ``` "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } .<span class="pl-c1">silver-background</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> silver; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back. </span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">silver-background</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>" <span class="pl-c1">checked</span><span class="pl-kos">&gt;</span> Indoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Outdoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>" <span class="pl-c1">checked</span><span class="pl-kos">&gt;</span> Loving<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Lazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Energetic<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">&gt;</span>Submit<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span> ```</pre></div>
1
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: yes (n/a)</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux Ubuntu 16.04 (All affected)</li> <li><strong>TensorFlow installed from (source or binary)</strong>: binary</li> <li><strong>TensorFlow version (use command below)</strong>: 1.4.0</li> <li><strong>Python version</strong>: 3.6</li> <li><strong>Bazel version (if compiling from source)</strong>: n/a</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li> <li><strong>CUDA/cuDNN version</strong>: n/a</li> <li><strong>GPU model and memory</strong>: CPU</li> <li><strong>Exact command to reproduce</strong>: n/a</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">tensorflow.layers.Conv3DTranspose doesn't work when the input dimensions are not specified and bias is added. This occurs because the layer output is reshaped from five dimensions to 4 by combining the depth and height dimensions: None * None throws an exception. The code for this is in tensorflow/python/layers/convolutional.py, line 1608.</p> <p dir="auto">It appears that this reshaping is done because nn.bias.add can't handle 5 dimensional inputs. This seems like it should be an easy fix since nn.bias.add just broadcasts across all but the channel dimension anyway. The *Transpose layers should really all use the same general _ConvTranspose style that the non-transposed convolution layers use, to avoid code duplication.</p> <p dir="auto">In the meantime, tensorflow.layers.Conv3D DOES work with unspecified input dimensions and channel-last ordering. It turns out that Conv3D and Conv3DTranspose use different code for adding the bias. In lieu of a nn.bias.add fix, this problem can be alleviated by using the Conv3D bias code for Conv3DTranspose.</p> <h3 dir="auto">Suggested fix (tested)</h3> <p dir="auto">In tensorflow/python/layers/convolutional.py, replace lines 1609-1625 with (modified from lines 169-189):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if self.data_format == 'channels_first': outputs_shape = outputs.shape.as_list() outputs_4d = array_ops.reshape(outputs, [outputs_shape[0], outputs_shape[1], outputs_shape[2] * outputs_shape[3], outputs_shape[4]]) outputs_4d = nn.bias_add(outputs_4d, self.bias, data_format='NCHW') outputs = array_ops.reshape(outputs_4d, outputs_shape) else: outputs = nn.bias_add(outputs, self.bias, data_format='NHWC')"><pre class="notranslate"><code class="notranslate"> if self.data_format == 'channels_first': outputs_shape = outputs.shape.as_list() outputs_4d = array_ops.reshape(outputs, [outputs_shape[0], outputs_shape[1], outputs_shape[2] * outputs_shape[3], outputs_shape[4]]) outputs_4d = nn.bias_add(outputs_4d, self.bias, data_format='NCHW') outputs = array_ops.reshape(outputs_4d, outputs_shape) else: outputs = nn.bias_add(outputs, self.bias, data_format='NHWC') </code></pre></div>
<p dir="auto">The issue have beed submitted in <a href="https://github.com/tensorflow/serving/issues/381" data-hovercard-type="issue" data-hovercard-url="/tensorflow/serving/issues/381/hovercard">#381</a>, thanks all kind of you</p>
0
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong><br> Installing webpack 4.8.1 in [dev] has an outdated dependency of deep-extend with this vulnerability <a href="https://snyk.io/vuln/npm:deep-extend:20180409" rel="nofollow">https://snyk.io/vuln/npm:deep-extend:20180409</a></p> <p dir="auto">with the path:</p> <p dir="auto">webpack &gt; watchpack &gt; chokidar &gt; fsevents &gt; node-pre-gyp &gt; rc &gt; deep-extend</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> Not to have security vulnerabilities in webpack</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 4.8.1<br> Node.js version: 9.7.1<br> Operating System: osx 10.13.3<br> Additional tools:</p>
<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">While using webpack for server side packing of node.js apps I am unable to have an accurate value for __dirname when __dirname is called within a required module, regardless of what <code class="notranslate">options.node.__dirname</code> might be set to.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">For example, assume the following:</p> <p dir="auto"><em>directory structure</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/my/app other file.js entry.js webpack.config.js"><pre class="notranslate"><code class="notranslate">/my/app other file.js entry.js webpack.config.js </code></pre></div> <p dir="auto"><em>/my/app/entry.js</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="require('./other/file.js'); console.log(__dirname);"><pre class="notranslate"><code class="notranslate">require('./other/file.js'); console.log(__dirname); </code></pre></div> <p dir="auto"><em>/my/app/other/file.js</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="console.log(__dirname);"><pre class="notranslate"><code class="notranslate">console.log(__dirname); </code></pre></div> <p dir="auto"><em>/my/app/webpack.config.js</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const path = require('path'); module.exports = { target: &quot;node&quot;, entry: { entry: './entry.js' }, output: { path: path.resolve(__dirname, 'dist'), filename: '[name].js' }, node: { __dirname: false }, };"><pre class="notranslate"><code class="notranslate">const path = require('path'); module.exports = { target: "node", entry: { entry: './entry.js' }, output: { path: path.resolve(__dirname, 'dist'), filename: '[name].js' }, node: { __dirname: false }, }; </code></pre></div> <p dir="auto"><em>Steps to reproduce (assuming above files are in provided locations:</em></p> <div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cd /my/app webpack cd dist node entry.js"><pre class="notranslate"><span class="pl-k">cd</span> /my/app webpack <span class="pl-k">cd</span> dist node entry.js</pre></div> <p dir="auto"><em>Expected Results:</em></p> <div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/my/app/dist/other /my/app/dist"><pre class="notranslate">/my/app/dist/other /my/app/dist</pre></div> <p dir="auto"><em>Actual Results:</em></p> <div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/my/app/dist /my/app/dist"><pre class="notranslate">/my/app/dist /my/app/dist</pre></div> <p dir="auto">Results using the above files but based on various <code class="notranslate">options.node.__dirname</code> values within webpack.config.js:</p> <table role="table"> <thead> <tr> <th>value of <code class="notranslate">options.node.__dirname</code></th> <th>result</th> </tr> </thead> <tbody> <tr> <td>false</td> <td>/my/app/dist<br>/my/app/dist</td> </tr> <tr> <td>true</td> <td>other<br><em>empty line</em></td> </tr> <tr> <td><em>unset</em></td> <td>/<br>/</td> </tr> </tbody> </table> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">I expect there to be an option to have <code class="notranslate">__dirname</code>'s location be in relation to the directory of the current module that it was called from (before webpack) and not the directory name of the output file.</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">N/A</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> <ul dir="auto"> <li>Node 6.9.5 LTS</li> <li>weback 2.2.1</li> <li>Windows 10</li> </ul>
0
<p dir="auto">If only the enumeration type itself is imported but not its variants, a match expression reports unreachable pattern instead of unrecognised type:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub mod inner { pub enum E { E1, E2 } } pub mod foo { use inner::E; // change this to use inner::{E, E1, E2} then all will be fine pub fn bar(e: E) -&gt; int { match e { E1 =&gt; 0, E2 =&gt; 1 // error: unreachable pattern } } } pub fn main() {}"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">mod</span> inner <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">enum</span> <span class="pl-smi">E</span> <span class="pl-kos">{</span> <span class="pl-v">E1</span><span class="pl-kos">,</span> <span class="pl-v">E2</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">mod</span> foo <span class="pl-kos">{</span> <span class="pl-k">use</span> inner<span class="pl-kos">::</span><span class="pl-v">E</span><span class="pl-kos">;</span> <span class="pl-c">// change this to use inner::{E, E1, E2} then all will be fine</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">:</span> <span class="pl-smi">E</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">int</span> <span class="pl-kos">{</span> <span class="pl-k">match</span> e <span class="pl-kos">{</span> <span class="pl-v">E1</span> =&gt; <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-v">E2</span> =&gt; <span class="pl-c1">1</span> <span class="pl-c">// error: unreachable pattern</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <p dir="auto">Is this something intentional? Or should we give it a more sensible error message?</p>
<p dir="auto">This code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mod foo { pub enum Bars { BarFoo, BarBar, BarBaz } } fn main() { decide(foo::BarBar); } fn decide(bar: foo::Bars) -&gt; int { match bar { BarFoo =&gt; 0, BarBar =&gt; 42, BarBaz =&gt; 128 } }"><pre class="notranslate"><code class="notranslate">mod foo { pub enum Bars { BarFoo, BarBar, BarBaz } } fn main() { decide(foo::BarBar); } fn decide(bar: foo::Bars) -&gt; int { match bar { BarFoo =&gt; 0, BarBar =&gt; 42, BarBaz =&gt; 128 } } </code></pre></div> <p dir="auto">should fail to compile because it can't resolve the enum variants in the match statement.<br> But currently it outputs this error message instead:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="match_namespace.rs:16:8: 16:17 error: unreachable pattern match_namespace.rs:16 BarBar =&gt; 42, ^~~~~~~~~ match_namespace.rs:17:8: 17:17 error: unreachable pattern match_namespace.rs:17 BarBaz =&gt; 128 ^~~~~~~~~"><pre class="notranslate"><code class="notranslate">match_namespace.rs:16:8: 16:17 error: unreachable pattern match_namespace.rs:16 BarBar =&gt; 42, ^~~~~~~~~ match_namespace.rs:17:8: 17:17 error: unreachable pattern match_namespace.rs:17 BarBaz =&gt; 128 ^~~~~~~~~ </code></pre></div> <p dir="auto">Which is curious because it doesn't complaint about the <strong>first</strong> item in the match statement, and because it somehow confuses 'Don't know what it is' with 'Can't reach it'.</p>
1
<h2 dir="auto">📝 Provide a description of the new feature</h2> <p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em></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>
<p dir="auto">Hello,</p> <p dir="auto">I'm having a counter-productivity problem with the Fancy Zones productivity tool.</p> <p dir="auto">I usually size my windows to their ideal dimensions, windows documents as well as folders. When I open these windows, they automatically find the last dimensions that I gave them.</p> <p dir="auto">However, Fancy Zones obviously resizes windows to be able to place them in the applied zones and ... when removed from these zones, they retain the dimensions given by Fancy Zones, rather than giving them the dimensions they had before to be placed in these zones.</p> <p dir="auto">I then find myself with windows having all the height of the screen, both the already opened windows that opened later, because Word, Excel, Windows Explorer, browser, etc. open new windows to the dimensions of other opened windows. So I have to manually resize them. It's tedious and frustrating. This produces the opposite effect of the one sought: productivity.</p> <p dir="auto">Is there a setting to fix this problem?<br> Otherwise, I think that would be a good idea.</p> <p dir="auto">Thank you for your attention.</p>
0
<p dir="auto">I created an e2e cluster with <code class="notranslate">REGISTER_MASTER_KUBELET=true</code>, and the master node is extremely unstable with docker/kubelet being restarted frequently.<br> I ended up <em>fixing</em> this by removing <code class="notranslate">/etc/supervisor/conf.d/docker.conf</code> to prevent docker from being restarted again. The cluster was stable and functioning after the fix.<br> Here are my questions:</p> <ul dir="auto"> <li>Is REGISTER_MASTER_KUBELET=true supposed to work in this case, or was there any other configurations that I needed to change?</li> <li>Do we run any e2e suite with master node registered?</li> </ul> <p dir="auto">The docker health check performed by supervisord seems defective on the master node in this case, but I am not sure why.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/roberthbailey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/roberthbailey">@roberthbailey</a></p>
<p dir="auto">Running kube-up on a clean build of <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kubernetes/kubernetes/commit/6afbaf6bf6ac8d1d71307819f21d56d7946c522c/hovercard" href="https://github.com/kubernetes/kubernetes/commit/6afbaf6bf6ac8d1d71307819f21d56d7946c522c"><tt>6afbaf6</tt></a>, I'm seeing the docker on the master crashing, and kube-apiserver crash with it.</p> <p dir="auto">This is the standard 4-node GCE cluster, I haven't touched any config.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubernetes·(6afbaf6...) $ make clean release-skip-tests &amp;&amp; kup &amp;&amp; kdown [...] Waiting for cluster initialization. This will continually check to see if the API for kubernetes is reachable. This might loop forever if there was some uncaught error during start up. ................................Kubernetes cluster created. Wrote config for devbox-964_kubernetes to $HOME/.kube/config Kubernetes cluster is running. The master is running at: https://IP The user name and password to use is located in $HOME/.kube/config. ... calling validate-cluster Waiting for 5 ready nodes. 1 ready nodes, 5 registered. Retrying. Waiting for 5 ready nodes. 1 ready nodes, 5 registered. Retrying. Waiting for 5 ready nodes. 1 ready nodes, 5 registered. Retrying. error: couldn't read version from server: Get https://IP/api: dial tcp IP:443: connection refused"><pre class="notranslate"><code class="notranslate">kubernetes·(6afbaf6...) $ make clean release-skip-tests &amp;&amp; kup &amp;&amp; kdown [...] Waiting for cluster initialization. This will continually check to see if the API for kubernetes is reachable. This might loop forever if there was some uncaught error during start up. ................................Kubernetes cluster created. Wrote config for devbox-964_kubernetes to $HOME/.kube/config Kubernetes cluster is running. The master is running at: https://IP The user name and password to use is located in $HOME/.kube/config. ... calling validate-cluster Waiting for 5 ready nodes. 1 ready nodes, 5 registered. Retrying. Waiting for 5 ready nodes. 1 ready nodes, 5 registered. Retrying. Waiting for 5 ready nodes. 1 ready nodes, 5 registered. Retrying. error: couldn't read version from server: Get https://IP/api: dial tcp IP:443: connection refused </code></pre></div> <p dir="auto">List of all pods:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubernetes·(6afbaf6...) $ k get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system etcd-server-kubernetes-master 1/1 Running 3 16m kube-system fluentd-cloud-logging-kubernetes-master 1/1 Running 3 16m kube-system fluentd-cloud-logging-kubernetes-minion-5h5s 1/1 Running 0 15m kube-system fluentd-cloud-logging-kubernetes-minion-e3p1 1/1 Running 0 15m kube-system fluentd-cloud-logging-kubernetes-minion-k0jp 1/1 Running 0 15m kube-system fluentd-cloud-logging-kubernetes-minion-ykur 1/1 Running 0 15m kube-system kube-apiserver-kubernetes-master 1/1 Running 3 16m kube-system kube-controller-manager-kubernetes-master 1/1 Running 3 16m kube-system kube-dns-v8-v7svt 4/4 Running 0 16m kube-system kube-scheduler-kubernetes-master 1/1 Running 3 16m kube-system kube-ui-v1-65m9j 0/1 Image: gcr.io/google_containers/kube-ui:v1.1 is not ready on the node 0 16m kube-system monitoring-heapster-v7-3xn8i 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-6h6d2 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-79ozz 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-8jffe 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-95i3o 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-aur4k 0/1 Running 9 15m kube-system monitoring-heapster-v7-e7wwf 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-g1px0 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-gbyfh 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-mppao 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-influx-grafana-v1-421pp 0/2 InsufficientFreeCPU 0 16m kube-system monitoring-influx-grafana-v1-qhvpi 2/2 Running 0 15m"><pre class="notranslate"><code class="notranslate">kubernetes·(6afbaf6...) $ k get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system etcd-server-kubernetes-master 1/1 Running 3 16m kube-system fluentd-cloud-logging-kubernetes-master 1/1 Running 3 16m kube-system fluentd-cloud-logging-kubernetes-minion-5h5s 1/1 Running 0 15m kube-system fluentd-cloud-logging-kubernetes-minion-e3p1 1/1 Running 0 15m kube-system fluentd-cloud-logging-kubernetes-minion-k0jp 1/1 Running 0 15m kube-system fluentd-cloud-logging-kubernetes-minion-ykur 1/1 Running 0 15m kube-system kube-apiserver-kubernetes-master 1/1 Running 3 16m kube-system kube-controller-manager-kubernetes-master 1/1 Running 3 16m kube-system kube-dns-v8-v7svt 4/4 Running 0 16m kube-system kube-scheduler-kubernetes-master 1/1 Running 3 16m kube-system kube-ui-v1-65m9j 0/1 Image: gcr.io/google_containers/kube-ui:v1.1 is not ready on the node 0 16m kube-system monitoring-heapster-v7-3xn8i 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-6h6d2 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-79ozz 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-8jffe 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-95i3o 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-aur4k 0/1 Running 9 15m kube-system monitoring-heapster-v7-e7wwf 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-g1px0 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-gbyfh 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-heapster-v7-mppao 0/1 InsufficientFreeCPU 0 16m kube-system monitoring-influx-grafana-v1-421pp 0/2 InsufficientFreeCPU 0 16m kube-system monitoring-influx-grafana-v1-qhvpi 2/2 Running 0 15m </code></pre></div> <p dir="auto">Not sure why so many heapster pods are scheduled.</p> <p dir="auto">Watching the status of the apiserver and docker on the master:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="uluyol@kubernetes-master:~$ while true; do pgrep kube-apiserver &amp;&gt;/dev/null; kube_up=$?; [[ $(pgrep docker | wc -l) == 2 ]]; docker_up=$?; if [[ $kube_up == 0 ]]; then echo -n apiserver up; else echo -n apiserver down; fi; if [[ $docker_up == 0 ]]; then echo ' docker up'; else echo ' docker down'; fi; sleep 1; done apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker up apiserver down docker down apiserver up docker up apiserver up docker up [ +35 more ] apiserver up docker up apiserver down docker down apiserver down docker down apiserver down docker down [...]"><pre class="notranslate"><code class="notranslate">uluyol@kubernetes-master:~$ while true; do pgrep kube-apiserver &amp;&gt;/dev/null; kube_up=$?; [[ $(pgrep docker | wc -l) == 2 ]]; docker_up=$?; if [[ $kube_up == 0 ]]; then echo -n apiserver up; else echo -n apiserver down; fi; if [[ $docker_up == 0 ]]; then echo ' docker up'; else echo ' docker down'; fi; sleep 1; done apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker down apiserver down docker up apiserver down docker down apiserver up docker up apiserver up docker up [ +35 more ] apiserver up docker up apiserver down docker down apiserver down docker down apiserver down docker down [...] </code></pre></div> <p dir="auto">After digging around with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikedanese/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikedanese">@mikedanese</a> on Friday, looks like removing the <code class="notranslate">kubelet_api_servers</code> definition in /etc/salt/minion.d/grains.conf fixes this (I followed this by calling <code class="notranslate">salt-call state.highstate</code>). I have 25 min of apiserver/docker uptime so far, and the scheduled pods looks more like what it's supposed to</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubernetes·(6afbaf6...) $ k get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system fluentd-cloud-logging-kubernetes-minion-5h5s 1/1 Running 0 51m kube-system fluentd-cloud-logging-kubernetes-minion-e3p1 1/1 Running 0 51m kube-system fluentd-cloud-logging-kubernetes-minion-k0jp 1/1 Running 0 51m kube-system fluentd-cloud-logging-kubernetes-minion-ykur 1/1 Running 0 51m kube-system kube-dns-v8-v7svt 4/4 Running 0 52m kube-system kube-ui-v1-kwrq6 1/1 Running 0 25m kube-system monitoring-heapster-v7-aur4k 0/1 Running 10 51m kube-system monitoring-influx-grafana-v1-qhvpi 2/2 Running 0 51m"><pre class="notranslate"><code class="notranslate">kubernetes·(6afbaf6...) $ k get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system fluentd-cloud-logging-kubernetes-minion-5h5s 1/1 Running 0 51m kube-system fluentd-cloud-logging-kubernetes-minion-e3p1 1/1 Running 0 51m kube-system fluentd-cloud-logging-kubernetes-minion-k0jp 1/1 Running 0 51m kube-system fluentd-cloud-logging-kubernetes-minion-ykur 1/1 Running 0 51m kube-system kube-dns-v8-v7svt 4/4 Running 0 52m kube-system kube-ui-v1-kwrq6 1/1 Running 0 25m kube-system monitoring-heapster-v7-aur4k 0/1 Running 10 51m kube-system monitoring-influx-grafana-v1-qhvpi 2/2 Running 0 51m </code></pre></div> <p dir="auto">It seems the <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kubernetes/kubernetes/commit/8df33bc1a75ca7e81a07b49c033ae94e04dd66f4/hovercard" href="https://github.com/kubernetes/kubernetes/commit/8df33bc1a75ca7e81a07b49c033ae94e04dd66f4"><tt>8df33bc</tt></a> was the commit that changed this. EDIT: For clarification, I mean that this commit is when we started setting kubelet_api_servers on the master.</p>
1
<p dir="auto">{"type":"Parse","message":"Syntax Error on line 1","index":0,"filename":"bootstrap.css","line":1,"column":0,"extract":[null,"",""]}</p>
<p dir="auto">A less error occured trying to build your bundle. Please paste the error below in an issue for us at <a href="https://github.com/twitter/bootstrap">http://github.com/twitter/bootstrap</a>! thanks!</p> <p dir="auto">{"type":"Parse","message":"Syntax Error on line 1","index":0,"filename":"bootstrap.css","line":1,"column":0,"extract":[null,"",""]}</p>
1
<p dir="auto">This is using Go 1.6, but I don't think the behavior has changed recently.</p> <p dir="auto"><code class="notranslate">go build</code> (and probably other go commands) normally take Go package names (that is, relative to some GOPATH component) but, as special cases, also take relative and absolute directories.</p> <p dir="auto"><code class="notranslate">go help packages</code> says this:</p> <blockquote> <p dir="auto">An import path that is a rooted path or that begins with<br> a . or .. element is interpreted as a file system path and<br> denotes the package in that directory.</p> </blockquote> <p dir="auto">However, this does not fully describe the go tool's behavior when given relative paths such as <code class="notranslate">.</code> or <code class="notranslate">./hello</code>. I haven't looked into the code, but it seems like the tool tries to resolve such paths relative to GOPATH and does different things depending on what it finds.</p> <p dir="auto">Here are two examples.</p> <p dir="auto">First, there is a very different error given depending on whether the given path is inside a GOPATH or not:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ pwd /tmp/build $ ls $ mkdir -p a/src b/src $ cd a/src/ $ GOPATH=/asdf go build ./hello can't load package: package ./hello: open /tmp/build/a/src/hello: no such file or directory $ GOPATH=/tmp/build/a go build ./hello can't load package: package hello: cannot find package &quot;hello&quot; in any of: /home/caleb/apps/go/src/hello (from $GOROOT) /tmp/build/a/src/hello (from $GOPATH) "><pre class="notranslate"><code class="notranslate">$ pwd /tmp/build $ ls $ mkdir -p a/src b/src $ cd a/src/ $ GOPATH=/asdf go build ./hello can't load package: package ./hello: open /tmp/build/a/src/hello: no such file or directory $ GOPATH=/tmp/build/a go build ./hello can't load package: package hello: cannot find package "hello" in any of: /home/caleb/apps/go/src/hello (from $GOROOT) /tmp/build/a/src/hello (from $GOPATH) </code></pre></div> <p dir="auto">There are actual behavior differences as well, though. For instance, you can build a package given a non-existent relative path if the resolved package name does exist in some other GOPATH component (or GOROOT, for that matter):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ # continuing from above... $ cd /tmp/build/b/src/ $ mkdir hello $ cat &gt; hello/hello.go package main func main() { println(&quot;hello&quot;) } $ cd /tmp/build/a/src/ $ ls $ GOPATH=/asdf go build ./hello can't load package: package ./hello: open /tmp/build/a/src/hello: no such file or directory $ GOPATH=/tmp/build/a:/tmp/build/b go build ./hello $ ./hello hello"><pre class="notranslate"><code class="notranslate">$ # continuing from above... $ cd /tmp/build/b/src/ $ mkdir hello $ cat &gt; hello/hello.go package main func main() { println("hello") } $ cd /tmp/build/a/src/ $ ls $ GOPATH=/asdf go build ./hello can't load package: package ./hello: open /tmp/build/a/src/hello: no such file or directory $ GOPATH=/tmp/build/a:/tmp/build/b go build ./hello $ ./hello hello </code></pre></div> <p dir="auto">That seems to directly contradict "interpreted as a file system path" in the <code class="notranslate">go help packages</code> output.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="f$ pwd /usr/local/google/home/rsc/src/code.google.com/p/rsc f$ go install ./jfmt can't load package: package code.google.com/p/rsc/jfmt: cannot find package &quot;code.google.com/p/rsc/jfmt&quot; in any of: /usr/local/google/home/rsc/go/src/code.google.com/p/rsc/jfmt (from $GOROOT) /usr/local/google/home/rsc/src/code.google.com/p/rsc/jfmt (from $GOPATH) f$ "><pre class="notranslate"><code class="notranslate">f$ pwd /usr/local/google/home/rsc/src/code.google.com/p/rsc f$ go install ./jfmt can't load package: package code.google.com/p/rsc/jfmt: cannot find package "code.google.com/p/rsc/jfmt" in any of: /usr/local/google/home/rsc/go/src/code.google.com/p/rsc/jfmt (from $GOROOT) /usr/local/google/home/rsc/src/code.google.com/p/rsc/jfmt (from $GOPATH) f$ </code></pre></div> <p dir="auto">There is no ./jfmt directory in this example. That should be the end. It should not figure out that I am in $GOPATH/src/code.google.com/p/rsc and go looking for code.google.com/p/rsc/jfmt in other work spaces.</p>
1
<p dir="auto">For example, when I was originally searching for serialize (in the wrong place, I suppose), I got a bunch of internal results. <a href="http://doc.rust-lang.org/std/index.html?search=serialize" rel="nofollow">Link to the search</a>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4/6860404/1c0dd730-d428-11e4-96c7-8236805dfd0e.png"><img src="https://cloud.githubusercontent.com/assets/4/6860404/1c0dd730-d428-11e4-96c7-8236805dfd0e.png" alt="std_-_rust" style="max-width: 100%;"></a></p>
<p dir="auto">For example: <code class="notranslate">error: type mismatch: the type `[closure /home/ncameron/rust3/src/librustc_driver/lib.rs:107:36: 107:44]` implements the trait `for&lt;'r&gt; core::ops::Fn&lt;(&amp;'r rustc::session::Session,)&gt;`, but the trait `for&lt;'r,'r&gt; core::ops::Fn&lt;(&amp;'r rustc::session::Session, &amp;'r getopts::Matches)&gt;` is required (expected a tuple with 2 elements, found one with 1 elements)</code></p> <p dir="auto">It should talk about arguments rather than tuples, it should also be multi-line. It probably doesn't need to talk about the <code class="notranslate">Fn</code> trait at all.</p>
0
<p dir="auto">Allow numeric pixel size control of zones.</p> <p dir="auto">currently, when setting a custom zone the only means is by a visual rectangle which I can resize and move around and the size of the border (16 pixels default).<br> I need to be able to set explicit size for a zone so I can fit fixed size windows either for streaming or for screen recording purposes.</p> <p dir="auto">Add 2 text boxes which will allow me to explicitly enter the zone's width and height in addition to mouse resize. The numeric text should also show the size of the current window when resizing with the mouse.</p> <p dir="auto">When I enter numeric height / width, the zone will resize accordingly.<br> When I resize the zone via mouse, the numeric indicators will show current size.</p>
<p dir="auto">Power Toys is very useful.<br> Thank you for making a good one!</p> <p dir="auto">I have a suggestion for Keyboard Manager.<br> I think it would be more useful if I can switch settings for each keyboard.<br> There are times when I use my laptop's keyboard and other times when I use an external keyboard, so it would be nice if switching was easy.</p> <p dir="auto">Please consider installing it in an update.</p>
0
<pre class="notranslate">What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. <a href="http://play.golang.org/p/o20RjaRdtQ" rel="nofollow">http://play.golang.org/p/o20RjaRdtQ</a> 2. 3. What is the expected output? It would be preferable to get &lt;RPCElementTarget&gt;&lt;running/&gt;&lt;/RPCElementTarget&gt; What do you see instead? There is no way to do self terminating elements. The best we can do is to do a start and end element with no chardata. This does not work for my application. The closest output is: &lt;RPCElementTarget&gt;&lt;running&gt;&lt;/running&gt;&lt;/RPCElementTarget&gt; Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? OS X 10.9 Which version are you using? (run 'go version') go version go1.2 darwin/amd64 Please provide any additional information below.</pre>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">What version of Go are you using (<code class="notranslate">go version</code>)?</h3> <p dir="auto">go version go1.8.3 darwin/amd64</p> <h3 dir="auto">What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</h3> <p dir="auto">GOARCH="amd64"<br> GOBIN=""<br> GOEXE=""<br> GOHOSTARCH="amd64"<br> GOHOSTOS="darwin"<br> GOOS="darwin"<br> GOPATH="/Users/xxx/.go:/Users/xxx/workspace/goproject"<br> GORACE=""<br> GOROOT="/usr/local/Cellar/go/1.8.3/libexec"<br> GOTOOLDIR="/usr/local/Cellar/go/1.8.3/libexec/pkg/tool/darwin_amd64"<br> GCCGO="gccgo"<br> CC="clang"<br> GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/53/r61bh2fj1hg9n0w03fs__7kc0000gn/T/go-build440341166=/tmp/go-build -gno-record-gcc-switches -fno-common"<br> CXX="clang++"<br> CGO_ENABLED="1"<br> PKG_CONFIG="pkg-config"<br> CGO_CFLAGS="-g -O2"<br> CGO_CPPFLAGS=""<br> CGO_CXXFLAGS="-g -O2"<br> CGO_FFLAGS="-g -O2"<br> CGO_LDFLAGS="-g -O2"</p> <h3 dir="auto">What did you do?</h3> <p dir="auto">I want to marshal a xml struct which has a self-closing tag field. After looking up in golang doc, there isn't an official support. In <a href="https://groups.google.com/forum/#!topic/golang-nuts/guG6iOCRu08" rel="nofollow">google group</a> they use string.Replace, it's ugly. It seems we could write marshal func for the custom struct, by i'm willing to see an official support like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" type Person struct { XMLName xml.Name `xml:&quot;person&quot;` Id int `xml:&quot;id,attr&quot;` FirstName string `xml:&quot;name&gt;first&quot;` LastName string `xml:&quot;name&gt;last&quot;` Age int `xml:&quot;age&quot;` Height float32 `xml:&quot;height,omitempty&quot;` Married bool Address Comment string `xml:&quot;,comment&quot;` Balabala string `xml:&quot;balabala,allowempty&quot;` // i want something like this }"><pre class="notranslate"><code class="notranslate"> type Person struct { XMLName xml.Name `xml:"person"` Id int `xml:"id,attr"` FirstName string `xml:"name&gt;first"` LastName string `xml:"name&gt;last"` Age int `xml:"age"` Height float32 `xml:"height,omitempty"` Married bool Address Comment string `xml:",comment"` Balabala string `xml:"balabala,allowempty"` // i want something like this } </code></pre></div> <p dir="auto">In xml standard, a self-closing tag is permitted.<br> <a href="https://www.w3.org/TR/REC-xml/#dt-empty" rel="nofollow">https://www.w3.org/TR/REC-xml/#dt-empty</a></p> <p dir="auto">And empty-element tag should be used, and should only be used, for elements which are declared EMPTY.<br> <a href="https://www.w3.org/TR/REC-xml/#d0e2480" rel="nofollow">https://www.w3.org/TR/REC-xml/#d0e2480</a></p>
1
<h4 dir="auto">Describe the issue linked to the documentation</h4> <p dir="auto"><a href="https://scikit-learn.org/stable/developers/contributing.html#guidelines-for-writing-documentation" rel="nofollow">https://scikit-learn.org/stable/developers/contributing.html#guidelines-for-writing-documentation</a> specifies how to write parameters with a <code class="notranslate">shape</code> attribute in a docstring, e.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array_parameter : {array-like, sparse matrix, dataframe} of shape (n_samples, n_features) or (n_samples,) This parameter accepts data in either of the mentioned forms, with one of the mentioned shapes. The default value is `np.ones(shape=(n_samples,))`. list_param : list of int typed_ndarray : ndarray of shape (n_samples,), dtype=np.int32 sample_weight : array-like of shape (n_samples,), default=None"><pre class="notranslate"><code class="notranslate">array_parameter : {array-like, sparse matrix, dataframe} of shape (n_samples, n_features) or (n_samples,) This parameter accepts data in either of the mentioned forms, with one of the mentioned shapes. The default value is `np.ones(shape=(n_samples,))`. list_param : list of int typed_ndarray : ndarray of shape (n_samples,), dtype=np.int32 sample_weight : array-like of shape (n_samples,), default=None </code></pre></div> <p dir="auto">There are a few instances in the developer's guide, examples and user guide that do still not follow that example:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> examples/model_selection/plot_learning_curve.py (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="684843926" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/18251" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/18251/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/18251">#18251</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> examples/miscellaneous/plot_johnson_lindenstrauss_bound.py (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="684843926" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/18251" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/18251/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/18251">#18251</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> doc/developers/develop.rst (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="681646013" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/18191" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/18191/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/18191">#18191</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> doc/modules/clustering.rst (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="683951314" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/18230" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/18230/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/18230">#18230</a>)</li> </ul>
<h4 dir="auto">Description</h4> <p dir="auto">When calling <code class="notranslate">sklearn.utils.estimator_checks.check_estimator</code> on a simple pipeline, an <code class="notranslate">AttributeError</code> exception is thrown.</p> <p dir="auto">Either the <code class="notranslate">check_estimator</code> should be altered to support <code class="notranslate">Pipeline</code> objects or a separate <code class="notranslate">check_pipeline</code> utility should be created.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.pipeline import make_pipeline from sklearn.preprocessing import StandardScaler from sklearn.linear_model import LinearRegression from sklearn.utils.estimator_checks import check_estimator pipe = make_pipeline( StandardScaler(), LinearRegression() ) # BOOM! check_estimator(pipe) AttributeError: 'LinearRegression' object has no attribute 'transform'"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">pipeline</span> <span class="pl-k">import</span> <span class="pl-s1">make_pipeline</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">preprocessing</span> <span class="pl-k">import</span> <span class="pl-v">StandardScaler</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">LinearRegression</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">estimator_checks</span> <span class="pl-k">import</span> <span class="pl-s1">check_estimator</span> <span class="pl-s1">pipe</span> <span class="pl-c1">=</span> <span class="pl-en">make_pipeline</span>( <span class="pl-v">StandardScaler</span>(), <span class="pl-v">LinearRegression</span>() ) <span class="pl-c"># BOOM!</span> <span class="pl-en">check_estimator</span>(<span class="pl-s1">pipe</span>) <span class="pl-v">AttributeError</span>: <span class="pl-s">'LinearRegression'</span> <span class="pl-s1">object</span> <span class="pl-s1">has</span> <span class="pl-s1">no</span> <span class="pl-s1">attribute</span> <span class="pl-s">'transform'</span></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">The expected result is to return <code class="notranslate">None</code>, following this example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="foo = check_estimator(LinearRegression()) foo is None True"><pre class="notranslate"><span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-en">check_estimator</span>(<span class="pl-v">LinearRegression</span>()) <span class="pl-s1">foo</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span> <span class="pl-c1">True</span></pre></div> <h4 dir="auto">Actual Results</h4> <p dir="auto">Traceback from Jupyter Notebook:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) &lt;ipython-input-52-d525f0d3391c&gt; in &lt;module&gt;() 4 ) 5 ----&gt; 6 check_estimator(pipe) /opt/conda/lib/python3.5/site-packages/sklearn/utils/estimator_checks.py in check_estimator(Estimator) 263 for check in _yield_all_checks(name, estimator): 264 try: --&gt; 265 check(name, estimator) 266 except SkipTest as message: 267 # the only SkipTest thrown currently results from not /opt/conda/lib/python3.5/site-packages/sklearn/utils/testing.py in wrapper(*args, **kwargs) 289 with warnings.catch_warnings(): 290 warnings.simplefilter(&quot;ignore&quot;, self.category) --&gt; 291 return fn(*args, **kwargs) 292 293 return wrapper /opt/conda/lib/python3.5/site-packages/sklearn/utils/estimator_checks.py in check_fit_score_takes_y(name, estimator_orig) 812 func = getattr(estimator, func_name, None) 813 if func is not None: --&gt; 814 func(X, y) 815 args = [p.name for p in signature(func).parameters.values()] 816 if args[0] == &quot;self&quot;: /opt/conda/lib/python3.5/site-packages/sklearn/pipeline.py in fit_transform(self, X, y, **fit_params) 294 return Xt 295 else: --&gt; 296 return last_step.fit(Xt, y, **fit_params).transform(Xt) 297 298 @if_delegate_has_method(delegate='_final_estimator') AttributeError: 'LinearRegression' object has no attribute 'transform'"><pre class="notranslate"><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">AttributeError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">52</span><span class="pl-c1">-</span><span class="pl-s1">d525f0d3391c</span><span class="pl-c1">&gt;</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-c1">4</span> ) <span class="pl-c1">5</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">6</span> <span class="pl-en">check_estimator</span>(<span class="pl-s1">pipe</span>) <span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">conda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</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">sklearn</span><span class="pl-c1">/</span><span class="pl-s1">utils</span><span class="pl-c1">/</span><span class="pl-s1">estimator_checks</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">check_estimator</span>(<span class="pl-v">Estimator</span>) <span class="pl-c1">263</span> <span class="pl-k">for</span> <span class="pl-s1">check</span> <span class="pl-c1">in</span> <span class="pl-en">_yield_all_checks</span>(<span class="pl-s1">name</span>, <span class="pl-s1">estimator</span>): <span class="pl-c1">264</span> <span class="pl-k">try</span>: <span class="pl-c1">-</span><span class="pl-c1">-&gt;</span> <span class="pl-c1">265</span> <span class="pl-en">check</span>(<span class="pl-s1">name</span>, <span class="pl-s1">estimator</span>) <span class="pl-c1">266</span> <span class="pl-k">except</span> <span class="pl-v">SkipTest</span> <span class="pl-k">as</span> <span class="pl-s1">message</span>: <span class="pl-c1">267</span> <span class="pl-c"># the only SkipTest thrown currently results from not</span> <span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">conda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</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">sklearn</span><span class="pl-c1">/</span><span class="pl-s1">utils</span><span class="pl-c1">/</span><span class="pl-s1">testing</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">wrapper</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">289</span> <span class="pl-k">with</span> <span class="pl-s1">warnings</span>.<span class="pl-en">catch_warnings</span>(): <span class="pl-c1">290</span> <span class="pl-s1">warnings</span>.<span class="pl-en">simplefilter</span>(<span class="pl-s">"ignore"</span>, <span class="pl-s1">self</span>.<span class="pl-s1">category</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">291</span> <span class="pl-s1">return</span> <span class="pl-en">fn</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-c1">292</span> <span class="pl-c1">293</span> <span class="pl-s1">return</span> <span class="pl-s1">wrapper</span> <span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">conda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</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">sklearn</span><span class="pl-c1">/</span><span class="pl-s1">utils</span><span class="pl-c1">/</span><span class="pl-s1">estimator_checks</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">check_fit_score_takes_y</span>(<span class="pl-s1">name</span>, <span class="pl-s1">estimator_orig</span>) <span class="pl-c1">812</span> <span class="pl-s1">func</span> <span class="pl-c1">=</span> <span class="pl-en">getattr</span>(<span class="pl-s1">estimator</span>, <span class="pl-s1">func_name</span>, <span class="pl-c1">None</span>) <span class="pl-c1">813</span> <span class="pl-k">if</span> <span class="pl-s1">func</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">814</span> <span class="pl-en">func</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>) <span class="pl-c1">815</span> <span class="pl-s1">args</span> <span class="pl-c1">=</span> [<span class="pl-s1">p</span>.<span class="pl-s1">name</span> <span class="pl-s1">for</span> <span class="pl-s1">p</span> <span class="pl-c1">in</span> <span class="pl-en">signature</span>(<span class="pl-s1">func</span>).<span class="pl-s1">parameters</span>.<span class="pl-en">values</span>()] <span class="pl-c1">816</span> <span class="pl-k">if</span> <span class="pl-s1">args</span>[<span class="pl-c1">0</span>] <span class="pl-c1">==</span> <span class="pl-s">"self"</span>: <span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">conda</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">5</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">sklearn</span><span class="pl-c1">/</span><span class="pl-s1">pipeline</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">fit_transform</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-c1">**</span><span class="pl-s1">fit_params</span>) <span class="pl-c1">294</span> <span class="pl-k">return</span> <span class="pl-v">Xt</span> <span class="pl-c1">295</span> <span class="pl-k">else</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">296</span> <span class="pl-s1">return</span> <span class="pl-s1">last_step</span>.<span class="pl-en">fit</span>(<span class="pl-v">Xt</span>, <span class="pl-s1">y</span>, <span class="pl-c1">**</span><span class="pl-s1">fit_params</span>).<span class="pl-en">transform</span>(<span class="pl-v">Xt</span>) <span class="pl-c1">297</span> <span class="pl-c1">298</span> @<span class="pl-en">if_delegate_has_method</span>(<span class="pl-s1">delegate</span><span class="pl-c1">=</span><span class="pl-s">'_final_estimator'</span>) <span class="pl-v">AttributeError</span>: <span class="pl-s">'LinearRegression'</span> <span class="pl-s1">object</span> <span class="pl-s1">has</span> <span class="pl-s1">no</span> <span class="pl-s1">attribute</span> <span class="pl-s">'transform'</span></pre></div> <h4 dir="auto">Versions</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux-4.11.6-coreos-r1-x86_64-with-debian-8.8 Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:53:06) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] NumPy 1.13.1 SciPy 0.19.1 Scikit-Learn 0.19.0"><pre class="notranslate"><code class="notranslate">Linux-4.11.6-coreos-r1-x86_64-with-debian-8.8 Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:53:06) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] NumPy 1.13.1 SciPy 0.19.1 Scikit-Learn 0.19.0 </code></pre></div>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version :Version 1.32.3</li> <li>Operating System: Windows 11</li> <li>Browser: Firefox only</li> <li>Other info:<br> Also seen in our CICD, which is an ubuntu system.</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { PlaywrightTestConfig, devices } from '@playwright/test'; const config: PlaywrightTestConfig = { // Look for test files in the &quot;e2e&quot; directory, relative to this configuration file testDir: 'E2E', // Report(s) and reporter options reporter: [['list'], ['json', { outputFile: 'results.json' }], ['./E2E/utils/logger.ts']], // , ['html', { open: 'never' }]], // reporter: './E2E/utils/logger.ts', // output directory for results outputDir: './../bastionfrontend/test-results', // Each test is given 4 minutes default timeout timeout: 240000, // Number of retries for a failed test retries: 0, // Concurrency workers: 1, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], viewport: { width: 1920, height: 920 } } }, { name: 'firefox', use: { ...devices['Desktop Firefox'], viewport: { width: 1920, height: 920 } } }, { name: 'webkit', use: { ...devices['Desktop Safari'], viewport: { width: 1920, height: 920 } } } ], // large number of max failures to signify a QA needs to look at the test book // maxFailures: 30, // Run whole test suite in parallel // fullyParallel: true, // Addition fixtures options use: { // Browser launch options launchOptions: { slowMo: 0 }, actionTimeout: 30000, navigationTimeout: 60000, headless: true, // Context options viewport: { width: 1920, height: 920 }, ignoreHTTPSErrors: true, // Artifact options for screenshot/video screenshot: 'on', // video: { // mode: 'on', // size: { width: 1280, height: 720 } // }, trace: 'off', baseURL: process.env.baseURL || process.env.TEST_URL } }; export default config; "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">PlaywrightTestConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">config</span>: <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c">// Look for test files in the "e2e" directory, relative to this configuration file</span> <span class="pl-c1">testDir</span>: <span class="pl-s">'E2E'</span><span class="pl-kos">,</span> <span class="pl-c">// Report(s) and reporter options</span> <span class="pl-c1">reporter</span>: <span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-s">'list'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">'json'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">outputFile</span>: <span class="pl-s">'results.json'</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">'./E2E/utils/logger.ts'</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c">// , ['html', { open: 'never' }]],</span> <span class="pl-c">// reporter: './E2E/utils/logger.ts',</span> <span class="pl-c">// output directory for results</span> <span class="pl-c1">outputDir</span>: <span class="pl-s">'./../bastionfrontend/test-results'</span><span class="pl-kos">,</span> <span class="pl-c">// Each test is given 4 minutes default timeout</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">240000</span><span class="pl-kos">,</span> <span class="pl-c">// Number of retries for a failed test</span> <span class="pl-c1">retries</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c">// Concurrency</span> <span class="pl-c1">workers</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1920</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">920</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'firefox'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Firefox'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1920</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">920</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'webkit'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Safari'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1920</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">920</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c">// large number of max failures to signify a QA needs to look at the test book</span> <span class="pl-c">// maxFailures: 30,</span> <span class="pl-c">// Run whole test suite in parallel</span> <span class="pl-c">// fullyParallel: true,</span> <span class="pl-c">// Addition fixtures options</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c">// Browser launch options</span> <span class="pl-c1">launchOptions</span>: <span class="pl-kos">{</span> <span class="pl-c1">slowMo</span>: <span class="pl-c1">0</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">actionTimeout</span>: <span class="pl-c1">30000</span><span class="pl-kos">,</span> <span class="pl-c1">navigationTimeout</span>: <span class="pl-c1">60000</span><span class="pl-kos">,</span> <span class="pl-c1">headless</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">// Context options</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1920</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">920</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">ignoreHTTPSErrors</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">// Artifact options for screenshot/video</span> <span class="pl-c1">screenshot</span>: <span class="pl-s">'on'</span><span class="pl-kos">,</span> <span class="pl-c">// video: {</span> <span class="pl-c">// mode: 'on',</span> <span class="pl-c">// size: { width: 1280, height: 720 }</span> <span class="pl-c">// },</span> <span class="pl-c1">trace</span>: <span class="pl-s">'off'</span><span class="pl-kos">,</span> <span class="pl-c1">baseURL</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">baseURL</span> <span class="pl-c1">||</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">TEST_URL</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-s1">config</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" async selectInputOption(inputLocator: Locator, selectValue: string | number, autoCloses: boolean = true, clearSelections: boolean = false, allowDNE?: boolean): Promise&lt;void&gt; { await inputLocator.waitFor(); await inputLocator.isEnabled(); await inputLocator.click(); const popupContent = this.page.locator('.dx-selectbox-popup-wrapper,.dx-header-filter-menu:visible .dx-popup-content'); await popupContent.waitFor(); await this.waitForAnimationEnd(popupContent); // await popupContent.waitFor(); let theOption: Locator; if (clearSelections) { theOption = popupContent.locator('.dx-list-select-all:visible .dx-checkbox'); await theOption.waitFor(); const theClasses = await theOption.getAttribute('class'); if (theClasses?.includes('dx-checkbox-checked')) { await theOption.click(); } else if (theClasses?.includes('dx-checkbox-indeterminate')) { await theOption.click(); // await this.page.waitForTimeout(250); await this.waitForAnimationEnd(popupContent); await theOption.click(); } await this.waitForAnimationEnd(popupContent); // await this.page.waitForTimeout(250); } if ([0, 'Select All'].includes(selectValue)) { theOption = popupContent.locator('.dx-list-select-all:visible'); } else { if (typeof selectValue === 'number') { theOption = popupContent.locator('.dx-list-item:visible').nth(selectValue - 1); } else { const searchbox = popupContent.locator('input[aria-label=&quot;Search&quot;]:visible'); if (await searchbox.count() === 1) { await searchbox.fill(selectValue); } theOption = popupContent.locator('.dx-list-item:visible').getByText(selectValue, { exact: true }); } } if (await theOption.count() &gt;= 1 || allowDNE !== true) { await theOption.waitFor(); await theOption.click(); } if (autoCloses === false) { const okayButton = this.page.locator('.dx-toolbar.dx-popup-bottom [aria-label=&quot;OK&quot;]'); if (await okayButton.count() === 1) { await okayButton.click(); } else { await inputLocator.press('Escape'); } } await popupContent.waitFor({ state: 'detached' }); }"><pre class="notranslate"> async <span class="pl-s1">selectInputOption</span><span class="pl-kos">(</span><span class="pl-s1">inputLocator</span>: <span class="pl-v">Locator</span><span class="pl-kos">,</span> <span class="pl-s1">selectValue</span>: <span class="pl-s1">string</span> <span class="pl-c1">|</span> <span class="pl-s1">number</span><span class="pl-kos">,</span> <span class="pl-s1">autoCloses</span>: <span class="pl-s1">boolean</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s1">clearSelections</span>: <span class="pl-s1">boolean</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-s1">allowDNE</span>?: <span class="pl-s1">boolean</span><span class="pl-kos">)</span>: <span class="pl-v">Promise</span><span class="pl-c1">&lt;</span><span class="pl-k">void</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">await</span> <span class="pl-s1">inputLocator</span><span class="pl-kos">.</span><span class="pl-c1">waitFor</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">inputLocator</span><span class="pl-kos">.</span><span class="pl-en">isEnabled</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">inputLocator</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">popupContent</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'.dx-selectbox-popup-wrapper,.dx-header-filter-menu:visible .dx-popup-content'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">popupContent</span><span class="pl-kos">.</span><span class="pl-en">waitFor</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">waitForAnimationEnd</span><span class="pl-kos">(</span><span class="pl-s1">popupContent</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// await popupContent.waitFor();</span> <span class="pl-k">let</span> <span class="pl-s1">theOption</span>: <span class="pl-v">Locator</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">clearSelections</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">theOption</span> <span class="pl-c1">=</span> <span class="pl-s1">popupContent</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'.dx-list-select-all:visible .dx-checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">theOption</span><span class="pl-kos">.</span><span class="pl-en">waitFor</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">theClasses</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">theOption</span><span class="pl-kos">.</span><span class="pl-en">getAttribute</span><span class="pl-kos">(</span><span class="pl-s">'class'</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">theClasses</span><span class="pl-kos">?.</span><span class="pl-en">includes</span><span class="pl-kos">(</span><span class="pl-s">'dx-checkbox-checked'</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">theOption</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">theClasses</span><span class="pl-kos">?.</span><span class="pl-en">includes</span><span class="pl-kos">(</span><span class="pl-s">'dx-checkbox-indeterminate'</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">theOption</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// await this.page.waitForTimeout(250);</span> <span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">waitForAnimationEnd</span><span class="pl-kos">(</span><span class="pl-s1">popupContent</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">theOption</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">waitForAnimationEnd</span><span class="pl-kos">(</span><span class="pl-s1">popupContent</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// await this.page.waitForTimeout(250);</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s">'Select All'</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">includes</span><span class="pl-kos">(</span><span class="pl-s1">selectValue</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">theOption</span> <span class="pl-c1">=</span> <span class="pl-s1">popupContent</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'.dx-list-select-all:visible'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">selectValue</span> <span class="pl-c1">===</span> <span class="pl-s">'number'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">theOption</span> <span class="pl-c1">=</span> <span class="pl-s1">popupContent</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'.dx-list-item:visible'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">nth</span><span class="pl-kos">(</span><span class="pl-s1">selectValue</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-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">searchbox</span> <span class="pl-c1">=</span> <span class="pl-s1">popupContent</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'input[aria-label="Search"]:visible'</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-k">await</span> <span class="pl-s1">searchbox</span><span class="pl-kos">.</span><span class="pl-en">count</span><span class="pl-kos">(</span><span class="pl-kos">)</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-k">await</span> <span class="pl-s1">searchbox</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s1">selectValue</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">theOption</span> <span class="pl-c1">=</span> <span class="pl-s1">popupContent</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'.dx-list-item:visible'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-s1">selectValue</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">exact</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-k">await</span> <span class="pl-s1">theOption</span><span class="pl-kos">.</span><span class="pl-en">count</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">&gt;=</span> <span class="pl-c1">1</span> <span class="pl-c1">||</span> <span class="pl-s1">allowDNE</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-k">await</span> <span class="pl-s1">theOption</span><span class="pl-kos">.</span><span class="pl-en">waitFor</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">theOption</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">autoCloses</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-k">const</span> <span class="pl-s1">okayButton</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'.dx-toolbar.dx-popup-bottom [aria-label="OK"]'</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-k">await</span> <span class="pl-s1">okayButton</span><span class="pl-kos">.</span><span class="pl-en">count</span><span class="pl-kos">(</span><span class="pl-kos">)</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-k">await</span> <span class="pl-s1">okayButton</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">inputLocator</span><span class="pl-kos">.</span><span class="pl-en">press</span><span class="pl-kos">(</span><span class="pl-s">'Escape'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">await</span> <span class="pl-s1">popupContent</span><span class="pl-kos">.</span><span class="pl-en">waitFor</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">state</span>: <span class="pl-s">'detached'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> <li>[...]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Clicking on an element off of a selector list should not cause the page to do a scroll and throw off the click. This runs fine in Chromium and Firefox.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">When trying to click on a selector element that is the 4th or further along, causes the main page to do a little scroll and loose the open selector. Here is the log output when it tries to click on the element.<br> <code class="notranslate">=========================== logs =========================== waiting for locator('.dx-selectbox-popup-wrapper,.dx-header-filter-menu:visible .dx-popup-content').locator('.dx-list-item:visible').getByText('High', { exact: true }) locator resolved to &lt;div class="dx-item-content dx-list-item-content"&gt;High&lt;/div&gt; attempting click action waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling performing click action &lt;td role="gridcell" aria-colindex="3" aria-selected=…&gt;417 Wolf Union&lt;/td&gt; from &lt;div data-bind="dxControlsDescendantBindings: true" c…&gt;…&lt;/div&gt; subtree intercepts pointer events retrying click action, attempt #1 waiting for element to be visible, enabled and stable element is visible, enabled and stable scrolling into view if needed done scrolling &lt;td role="gridcell" aria-colindex="3" aria-selected=…&gt;417 Wolf Union&lt;/td&gt; from &lt;div data-bind="dxControlsDescendantBindings: true" c…&gt;…&lt;/div&gt; subtree intercepts pointer events retrying click action, attempt #2 waiting 20ms waiting for element to be visible, enabled and stable element is not stable - waiting... element is visible, enabled and stable scrolling into view if needed done scrolling &lt;td role="gridcell" aria-colindex="3" aria-selected=…&gt;417 Wolf Union&lt;/td&gt; from &lt;div data-bind="dxControlsDescendantBindings: true" c…&gt;…&lt;/div&gt; subtree intercepts pointer events retrying click action, attempt #3 waiting 100ms waiting for element to be visible, enabled and stable element is not visible - waiting... ============================================================</code></p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.30.0]</li> <li>Operating System: [macOS 13.2, focal-1.31.0]</li> <li>Browser: [All, Chromium, Firefox, WebKit]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">or</p> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, });"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos"></span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="it('should check the box using setChecked', async ({ page }) =&gt; { await page.setContent(`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`); await page.getByRole('checkbox').check(); await expect(page.getByRole('checkbox')).toBeChecked(); });"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should check the box using setChecked'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</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-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeChecked</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> <li>[...]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">[Describe expected behavior]<br> Its happening quite recently, I am getting this very cryptic error<br> TypeError: Cannot read properties of undefined (reading 'fullName')</p> <p dir="auto">It works well on my machine but does not run when in the docker container as outlined by the documentation for visual regression</p> <p dir="auto">I have exhaustively searched my codebase and cant identify where <code class="notranslate">fullName</code> is being used</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">[Describe actual behavior]</p>
0
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.169.0<br> <strong>System</strong>: Mac OS X 10.9.5<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: connect ECONNREFUSED</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At stream.js:94 Error: connect ECONNREFUSED at exports._errnoException (util.js:746:11) at Object.afterConnect [as oncomplete] (net.js:990:19) "><pre class="notranslate"><code class="notranslate">At stream.js:94 Error: connect ECONNREFUSED at exports._errnoException (util.js:746:11) at Object.afterConnect [as oncomplete] (net.js:990:19) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 4x -0:06.9 window:decrease-font-size (atom-text-editor.editor) -0:00.0 settings-view:open (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> 4x -0:06.9 window:decrease-font-size (atom-text-editor.editor) -0:00.0 settings-view:open (atom-text-editor.editor) </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;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;atom-dark-syntax&quot; ] }, &quot;editor&quot;: { &quot;fontSize&quot;: 12, &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<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">"invisibles"</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 No installed packages # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> <span class="pl-en">No</span> <span class="pl-en">installed</span> packages <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.169.0<br> <strong>System</strong>: Mac OS X 10.9.5<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: connect ECONNREFUSED</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At stream.js:94 Error: connect ECONNREFUSED at exports._errnoException (util.js:746:11) at Object.afterConnect [as oncomplete] (net.js:990:19) "><pre class="notranslate"><code class="notranslate">At stream.js:94 Error: connect ECONNREFUSED at exports._errnoException (util.js:746:11) at Object.afterConnect [as oncomplete] (net.js:990:19) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 4x -0:06.9 window:decrease-font-size (atom-text-editor.editor) -0:00.0 settings-view:open (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> 4x -0:06.9 window:decrease-font-size (atom-text-editor.editor) -0:00.0 settings-view:open (atom-text-editor.editor) </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;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;atom-dark-syntax&quot; ] }, &quot;editor&quot;: { &quot;fontSize&quot;: 12, &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<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">"invisibles"</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 No installed packages # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> <span class="pl-en">No</span> <span class="pl-en">installed</span> packages <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">sql : SELECT id, uid, ticket_code, ticket_type, firstname, lastname, gov_id, govId_type, sku_id, origin_sku_id,<br> product_name, start_time, end_time, is_me,<br> status, order_no, auth_mode, cover, background, member_background, theme, gov_id_hash, phone_no, phone_code,<br> color,<br> create_time, update_time, auth_source, disable, order_source, ticket_category, upload, extra,<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rownum/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rownum">@rownum</a> := <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rownum/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rownum">@rownum</a>+1 as rownums<br> from(<br> SELECT mcr.* FROM t_member_cert_renewal mcr JOIN t_member_cert_renewal_sku mcrs<br> on mcr.sku_id = mcrs.sku_id</p> <p dir="auto">console log</p> <p dir="auto">line 12:16 mismatched input ':' expecting {'&amp;&amp;', '||', '|', '&amp;', '&lt;&lt;', '&gt;&gt;', '^', '%', '+', '-', '*', '/', '&lt;=&gt;', '=', NEQ_, '&gt;', '&gt;=', '&lt;', '&lt;=', ')', ',', TRUNCATE, POSITION, VIEW, INTO, UNION, FROM, WHERE, AS, FOR, AND, OR, IS, ANY, ORDER, GROUP, HAVING, LIMIT, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, WINDOW, MOD, DIV, XOR, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, SIGNED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COLLATE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, LOCK, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, SOURCE, CHANNEL, CLONE, AGGREGATE, INSTALL, COMPONENT, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, IO_THREAD, SQL_THREAD, SQL_BEFORE_GTIDS, SQL_AFTER_GTIDS, MASTER_LOG_FILE, MASTER_LOG_POS, RELAY_LOG_FILE, RELAY_LOG_POS, SQL_AFTER_MTS_GAPS, UNTIL, DEFAULT_AUTH, PLUGIN_DIR, STOP, IDENTIFIER_, STRING_}</p>
<h3 dir="auto">druid version</h3> <p dir="auto"><code class="notranslate">group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.2.4'</code></p> <h3 dir="auto">shardingsphere version</h3> <p dir="auto"><code class="notranslate">group: 'org.apache.shardingsphere', name: 'shardingsphere-jdbc-core-spring-boot-starter', version: '5.0.0-alpha'</code></p> <h3 dir="auto">application.yml</h3> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" shardingsphere: datasource: common: driver-class-name: com.mysql.cj.jdbc.Driver username: guest password: 123456 names: ds0,ds1 ds0: url: jdbc:mysql://localhost:3306/pension_pz?serverTimezone=UTC&amp;useSSL=false&amp;useUnicode=true&amp;characterEncoding=UTF-8 driver-class-name: com.mysql.cj.jdbc.Driver username: guest password: 123456 type: com.alibaba.druid.pool.DruidDataSource ds1: url: jdbc:mysql://localhost:3306/nacos?serverTimezone=UTC&amp;useSSL=false&amp;useUnicode=true&amp;characterEncoding=UTF-8 driver-class-name: com.mysql.cj.jdbc.Driver username: guest password: 123456 type: com.alibaba.druid.pool.DruidDataSource``` ### error log ``` bash 2021-02-04 10:45:57.784 ERROR 16176 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/C:/Users/njpkh/.gradle/caches/modules-2/files-2.1/io.springfox/springfox-spring-webmvc/3.0.0/7ed22363fdfd651cd811c0b2391f16bddb91db8b/springfox-spring-webmvc-3.0.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webEndpointServletHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/servlet/WebMvcEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping]: Factory method 'webEndpointServletHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:799) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1203) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE] at com.fedtech.elderly.provider.ServiceElderlyApplication.main(ServiceElderlyApplication.java:25) [classes/:na] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webEndpointServletHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/servlet/WebMvcEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping]: Factory method 'webEndpointServletHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:637) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1525) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1489) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1378) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1265) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:886) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:790) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 20 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping]: Factory method 'webEndpointServletHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:652) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 37 common frames omitted Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:799) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:540) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1109) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.lambda$createEndpointBean$1(EndpointDiscoverer.java:145) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer$EndpointBean.getBean(EndpointDiscoverer.java:469) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.getFilterEndpoint(EndpointDiscoverer.java:329) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.isFilterMatch(EndpointDiscoverer.java:307) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.isExtensionExposed(EndpointDiscoverer.java:239) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.addExtensionBean(EndpointDiscoverer.java:170) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.addExtensionBeans(EndpointDiscoverer.java:159) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.discoverEndpoints(EndpointDiscoverer.java:124) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.getEndpoints(EndpointDiscoverer.java:117) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE] at org.springframework.boot.actuate.autoconfigure.endpoint.web.servlet.WebMvcEndpointManagementContextConfiguration.webEndpointServletHandlerMapping(WebMvcEndpointManagementContextConfiguration.java:71) ~[spring-boot-actuator-autoconfigure-2.3.7.RELEASE.jar:2.3.7.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 38 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:637) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:886) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:790) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 63 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:652) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 77 common frames omitted Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:799) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1203) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:624) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:612) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1243) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.boot.actuate.autoconfigure.health.HealthEndpointConfiguration.healthContributorRegistry(HealthEndpointConfiguration.java:82) ~[spring-boot-actuator-autoconfigure-2.3.7.RELEASE.jar:2.3.7.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 78 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1525) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1489) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1408) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1265) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:886) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:790) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 105 common frames omitted Caused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:208) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:471) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:350) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:299) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:430) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1798) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 118 common frames omitted Caused by: java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource at org.springframework.cglib.proxy.Enhancer.generateClass(Enhancer.java:660) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.core.ClassLoaderAwareGeneratorStrategy.generate(ClassLoaderAwareGeneratorStrategy.java:57) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:358) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.proxy.Enhancer.generate(Enhancer.java:585) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:110) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:108) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_171] at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:134) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:319) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:572) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.cglib.proxy.Enhancer.createClass(Enhancer.java:419) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:57) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:205) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE] ... 125 common frames omitted"><pre class="notranslate"> <span class="pl-ent">shardingsphere</span>: <span class="pl-ent">datasource</span>: <span class="pl-ent">common</span>: <span class="pl-ent">driver-class-name</span>: <span class="pl-s">com.mysql.cj.jdbc.Driver</span> <span class="pl-ent">username</span>: <span class="pl-s">guest</span> <span class="pl-ent">password</span>: <span class="pl-c1">123456</span> <span class="pl-ent">names</span>: <span class="pl-s">ds0,ds1</span> <span class="pl-ent">ds0</span>: <span class="pl-ent">url</span>: <span class="pl-s">jdbc:mysql://localhost:3306/pension_pz?serverTimezone=UTC&amp;useSSL=false&amp;useUnicode=true&amp;characterEncoding=UTF-8</span> <span class="pl-ent">driver-class-name</span>: <span class="pl-s">com.mysql.cj.jdbc.Driver</span> <span class="pl-ent">username</span>: <span class="pl-s">guest</span> <span class="pl-ent">password</span>: <span class="pl-c1">123456</span> <span class="pl-ent">type</span>: <span class="pl-s">com.alibaba.druid.pool.DruidDataSource</span> <span class="pl-ent">ds1</span>: <span class="pl-ent">url</span>: <span class="pl-s">jdbc:mysql://localhost:3306/nacos?serverTimezone=UTC&amp;useSSL=false&amp;useUnicode=true&amp;characterEncoding=UTF-8</span> <span class="pl-ent">driver-class-name</span>: <span class="pl-s">com.mysql.cj.jdbc.Driver</span> <span class="pl-ent">username</span>: <span class="pl-s">guest</span> <span class="pl-ent">password</span>: <span class="pl-c1">123456</span> <span class="pl-ent">type</span>: <span class="pl-s">com.alibaba.druid.pool.DruidDataSource```</span> <span class="pl-c"><span class="pl-c">#</span>## error log</span> <span class="pl-s"><span class="pl-pds">`</span><span class="pl-pds">`</span><span class="pl-pds">`</span> bash</span> <span class="pl-s">2021-02-04 10:45:57.784 ERROR 16176 --- [ main] o.s.boot.SpringApplication : Application run failed</span> <span class="pl-s"></span> <span class="pl-s">org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/C:/Users/njpkh/.gradle/caches/modules-2/files-2.1/io.springfox/springfox-spring-webmvc/3.0.0/7ed22363fdfd651cd811c0b2391f16bddb91db8b/springfox-spring-webmvc-3.0.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webEndpointServletHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/servlet/WebMvcEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping]: Factory method 'webEndpointServletHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:799) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1203) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at com.fedtech.elderly.provider.ServiceElderlyApplication.main(ServiceElderlyApplication.java:25) [classes/:na]</span> <span class="pl-s">Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webEndpointServletHandlerMapping' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/servlet/WebMvcEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping]: Factory method 'webEndpointServletHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:637) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1525) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1489) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1378) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1265) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:886) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:790) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> ... 20 common frames omitted</span> <span class="pl-s">Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping]: Factory method 'webEndpointServletHandlerMapping' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:652) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> ... 37 common frames omitted</span> <span class="pl-s">Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:799) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:540) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1109) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.lambda$createEndpointBean$1(EndpointDiscoverer.java:145) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer$EndpointBean.getBean(EndpointDiscoverer.java:469) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.getFilterEndpoint(EndpointDiscoverer.java:329) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.isFilterMatch(EndpointDiscoverer.java:307) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.isExtensionExposed(EndpointDiscoverer.java:239) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.addExtensionBean(EndpointDiscoverer.java:170) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.addExtensionBeans(EndpointDiscoverer.java:159) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.discoverEndpoints(EndpointDiscoverer.java:124) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer.getEndpoints(EndpointDiscoverer.java:117) ~[spring-boot-actuator-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.autoconfigure.endpoint.web.servlet.WebMvcEndpointManagementContextConfiguration.webEndpointServletHandlerMapping(WebMvcEndpointManagementContextConfiguration.java:71) ~[spring-boot-actuator-autoconfigure-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171]</span> <span class="pl-s"> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171]</span> <span class="pl-s"> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171]</span> <span class="pl-s"> at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171]</span> <span class="pl-s"> at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> ... 38 common frames omitted</span> <span class="pl-s">Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:637) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:886) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:790) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> ... 63 common frames omitted</span> <span class="pl-s">Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:652) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> ... 77 common frames omitted</span> <span class="pl-s">Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:799) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1356) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1203) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:624) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:612) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1243) ~[spring-context-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.boot.actuate.autoconfigure.health.HealthEndpointConfiguration.healthContributorRegistry(HealthEndpointConfiguration.java:82) ~[spring-boot-actuator-autoconfigure-2.3.7.RELEASE.jar:2.3.7.RELEASE]</span> <span class="pl-s"> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171]</span> <span class="pl-s"> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171]</span> <span class="pl-s"> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171]</span> <span class="pl-s"> at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171]</span> <span class="pl-s"> at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> ... 78 common frames omitted</span> <span class="pl-s">Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingSphereDataSource' defined in class path resource [org/apache/shardingsphere/spring/boot/SpringBootConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1525) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1489) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1408) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1265) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:886) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:790) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> ... 105 common frames omitted</span> <span class="pl-s">Caused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:208) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.createProxy(AbstractAutoProxyCreator.java:471) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:350) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:299) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:430) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1798) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> ... 118 common frames omitted</span> <span class="pl-s">Caused by: java.lang.IllegalArgumentException: Cannot subclass final class org.apache.shardingsphere.driver.jdbc.core.datasource.ShardingSphereDataSource</span> <span class="pl-s"> at org.springframework.cglib.proxy.Enhancer.generateClass(Enhancer.java:660) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.core.ClassLoaderAwareGeneratorStrategy.generate(ClassLoaderAwareGeneratorStrategy.java:57) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:358) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.proxy.Enhancer.generate(Enhancer.java:585) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:110) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:108) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_171]</span> <span class="pl-s"> at org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:134) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:319) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:572) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.cglib.proxy.Enhancer.createClass(Enhancer.java:419) ~[spring-core-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.aop.framework.ObjenesisCglibAopProxy.createProxyClassAndInstance(ObjenesisCglibAopProxy.java:57) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> at org.springframework.aop.framework.CglibAopProxy.getProxy(CglibAopProxy.java:205) ~[spring-aop-5.2.12.RELEASE.jar:5.2.12.RELEASE]</span> <span class="pl-s"> ... 125 common frames omitted</span></pre></div>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# I create a test DataFrame d = pd.DataFrame({'data': range(6), 'key': list('ABCABC')}) # I groupby the column 'key' g = d.groupby('key') # I filter with always True (not that useful, just for the example) print(g.filter(lambda x: True)) g.sum() print(g.filter(lambda x: True)) "><pre class="notranslate"><span class="pl-c"># I create a test DataFrame</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'data'</span>: <span class="pl-en">range</span>(<span class="pl-c1">6</span>), <span class="pl-s">'key'</span>: <span class="pl-en">list</span>(<span class="pl-s">'ABCABC'</span>)}) <span class="pl-c"># I groupby the column 'key'</span> <span class="pl-s1">g</span> <span class="pl-c1">=</span> <span class="pl-s1">d</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'key'</span>) <span class="pl-c"># I filter with always True (not that useful, just for the example)</span> <span class="pl-en">print</span>(<span class="pl-s1">g</span>.<span class="pl-en">filter</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-c1">True</span>)) <span class="pl-s1">g</span>.<span class="pl-en">sum</span>() <span class="pl-en">print</span>(<span class="pl-s1">g</span>.<span class="pl-en">filter</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-c1">True</span>))</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Here is the output of the above code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" data key 0 0 A 1 1 B 2 2 C 3 3 A 4 4 B 5 5 C data 0 0 1 1 2 2 3 3 4 4 5 5"><pre class="notranslate"><code class="notranslate"> data key 0 0 A 1 1 B 2 2 C 3 3 A 4 4 B 5 5 C data 0 0 1 1 2 2 3 3 4 4 5 5 </code></pre></div> <p dir="auto">I don't understand why the column key is in the output in the first run of filter, whereas when running an aggregate function (here g.sum()) before the filter, the key column disappear. If I use the as_index=False for the groupby, then the column is correctly preserved (as expected).</p> <p dir="auto">It looks like the aggregate function somehow change the groupby object, whereas my understanding of the groupby object is that each function call return a new object (and do not modify the original groupby object).</p> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" data key 0 0 A 1 1 B 2 2 C 3 3 A 4 4 B 5 5 C data key 0 0 A 1 1 B 2 2 C 3 3 A 4 4 B 5 5 C "><pre class="notranslate"><code class="notranslate"> data key 0 0 A 1 1 B 2 2 C 3 3 A 4 4 B 5 5 C data key 0 0 A 1 1 B 2 2 C 3 3 A 4 4 B 5 5 C </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.1.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None <p dir="auto">pandas: 0.20.2<br> pytest: None<br> pip: 9.0.1<br> setuptools: 27.2.0<br> Cython: None<br> numpy: 1.13.1<br> scipy: 0.19.1<br> xarray: None<br> IPython: 6.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: 2.0.2<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 0.999<br> sqlalchemy: 1.1.11<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<ul class="contains-task-list"> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked that this issue has not already been reported.</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have confirmed this bug exists on the latest version of pandas.</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> (optional) I have confirmed this bug exists on the master branch of pandas.</p> </li> </ul> <hr> <p dir="auto"><strong>Note</strong>: Please read <a href="https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports" rel="nofollow">this guide</a> detailing how to provide the necessary information for us to reproduce your bug.</p> <h4 dir="auto">Code Sample, a copy-pastable example</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd df = pd.DataFrame( { &quot;col1&quot;: [0, 1, 2, 3], &quot;col4&quot;: [17, 13, 16, 15], &quot;col5&quot;: [-4, -5, -6, -7], } ) by=[&quot;col4&quot;, &quot;col5&quot;] apply_function = min gb = df.groupby(by, as_index=True) df1 = gb.apply(apply_function) print(df1) df2 = gb.min() print(df2) df3 = gb.apply(apply_function) print(df3)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>( { <span class="pl-s">"col1"</span>: [<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], <span class="pl-s">"col4"</span>: [<span class="pl-c1">17</span>, <span class="pl-c1">13</span>, <span class="pl-c1">16</span>, <span class="pl-c1">15</span>], <span class="pl-s">"col5"</span>: [<span class="pl-c1">-</span><span class="pl-c1">4</span>, <span class="pl-c1">-</span><span class="pl-c1">5</span>, <span class="pl-c1">-</span><span class="pl-c1">6</span>, <span class="pl-c1">-</span><span class="pl-c1">7</span>], } ) <span class="pl-s1">by</span><span class="pl-c1">=</span>[<span class="pl-s">"col4"</span>, <span class="pl-s">"col5"</span>] <span class="pl-s1">apply_function</span> <span class="pl-c1">=</span> <span class="pl-s1">min</span> <span class="pl-s1">gb</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s1">by</span>, <span class="pl-s1">as_index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">gb</span>.<span class="pl-en">apply</span>(<span class="pl-s1">apply_function</span>) <span class="pl-en">print</span>(<span class="pl-s1">df1</span>) <span class="pl-s1">df2</span> <span class="pl-c1">=</span> <span class="pl-s1">gb</span>.<span class="pl-en">min</span>() <span class="pl-en">print</span>(<span class="pl-s1">df2</span>) <span class="pl-s1">df3</span> <span class="pl-c1">=</span> <span class="pl-s1">gb</span>.<span class="pl-en">apply</span>(<span class="pl-s1">apply_function</span>) <span class="pl-en">print</span>(<span class="pl-s1">df3</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">[this should explain <strong>why</strong> the current behaviour is a problem and why the expected output is a better solution]</p> <p dir="auto">In the code above two calls to <code class="notranslate">gb.apply(apply_function)</code> produce different output. The reason for this is that <code class="notranslate">groupby.min</code> is called before 2nd <code class="notranslate">apply</code> and makes its output different and incorrect.</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">Expected that both calls to <code class="notranslate">gb.apply(apply_function)</code> produce the same output.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit : None python : 3.7.5.final.0 python-bits : 64 OS : Linux OS-release : 5.3.0-26-generic machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_US.UTF-8 LOCALE : en_US.UTF-8 <p dir="auto">pandas : 1.0.4<br> numpy : 1.18.4<br> pytz : 2019.2<br> dateutil : 2.7.3<br> pip : 20.1.1<br> setuptools : 47.1.0<br> Cython : 0.29.17<br> pytest : 5.4.2<br> hypothesis : None<br> sphinx : None<br> blosc : None<br> feather : 0.4.1<br> xlsxwriter : None<br> lxml.etree : 4.5.1<br> html5lib : None<br> pymysql : None<br> psycopg2 : None<br> jinja2 : 2.11.2<br> IPython : 7.12.0<br> pandas_datareader: None<br> bs4 : 4.8.2<br> bottleneck : None<br> fastparquet : None<br> gcsfs : None<br> lxml.etree : 4.5.1<br> matplotlib : 3.2.1<br> numexpr : 2.7.1<br> odfpy : None<br> openpyxl : 3.0.3<br> pandas_gbq : 0.13.2<br> pyarrow : 0.16.0<br> pytables : None<br> pytest : 5.4.2<br> pyxlsb : None<br> s3fs : 0.4.2<br> scipy : 1.4.1<br> sqlalchemy : 1.3.17<br> tables : 3.6.1<br> tabulate : None<br> xarray : 0.15.1<br> xlrd : 1.2.0<br> xlwt : None<br> xlsxwriter : None<br> numba : 0.46.0</p> </details>
1
<p dir="auto">In the example below, the FILTER operation applied to paths does not return a correct result. Or am I getting it wrong?</p> <p dir="auto"><strong>Neo4j Version:</strong> 3.0.4<br> <strong>Operating System:</strong> Windows 10<br> <strong>API:</strong> Browser (Google Chrome) / Cypher</p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li> <p dir="auto">Create the graph "SIL" with the Cypher script below. This represents a subset inclusion lattice with the basic sets a,b,c,d,e,f. The lattice has 63 nodes and 186 relationships (the empty set is omitted from the lattice)</p> </li> <li> <p dir="auto">Compute the complement of the :abcd sub-lattice with:</p> <p dir="auto">// All nodes and relationships in the lattice<br> MATCH n=(:abcdef)--&gt;(l01)--&gt;(l02)--&gt;(l03)--&gt;(l04)--&gt;(l05)<br> // All nodes in the downset of :abcd<br> MATCH p=(:abcd)--&gt;(l11)--&gt;(l12)--&gt;(l13)<br> // Get those nodes that are not in the downset of :abcd<br> RETURN FILTER (x IN nodes(n) WHERE NOT (x IN nodes(p)))</p> </li> </ol> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Return all nodes and relationships that do not belong to the :abcd sub-lattice</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">All nodes except the upper bound of the complete lattice (:abcdef) and their relationships are returned. The computation takes on the order of a minute on a Lenovo T400s.</p> <h3 dir="auto">Cypher statements to create "SIL"</h3> <p dir="auto">// All n = 6 elements in one set<br> Create (abcdef:abcdef {headline:'a,b,c,d,e,f'})</p> <p dir="auto">// n-1 = 5 elements per set<br> Create (bcdef:bcdef {headline:'b,c,d,e,f'})<br> Create (acdef:acdef {headline:'a,c,d,e,f'})<br> Create (abdef:abdef {headline:'a,b,d,e,f'})<br> Create (abcef:abcef {headline:'a,b,c,e,f'})<br> Create (abcdf:abcdf {headline:'a,b,c,d,f'})<br> Create (abcde:abcde {headline:'a,b,c,d,e'})<br> // superset relationships level 6 - level 5<br> CREATE (abcdef) - [:superset] -&gt;(bcdef)<br> CREATE (abcdef) - [:superset] -&gt;(acdef)<br> CREATE (abcdef) - [:superset] -&gt;(abdef)<br> CREATE (abcdef) - [:superset] -&gt;(abcef)<br> CREATE (abcdef) - [:superset] -&gt;(abcdf)<br> CREATE (abcdef) - [:superset] -&gt;(abcde)</p> <p dir="auto">// n-2 = 4 elements per set<br> Create (cdef:cdef {headline:'c,d,e,f'})<br> Create (bdef:bdef {headline:'b,d,e,f'})<br> Create (bcef:bcef {headline:'b,c,e,f'})<br> Create (bcdf:bcdf {headline:'b,c,d,f'})<br> Create (bcde:bcde {headline:'b,c,d,e'})<br> Create (adef:adef {headline:'a,d,e,f'})<br> Create (acef:acef {headline:'a,c,e,f'})<br> Create (acdf:acdf {headline:'a,c,d,f'})<br> Create (acde:acde {headline:'a,c,d,e'})<br> Create (abef:abef {headline:'a,b,e,f'})<br> Create (abdf:abdf {headline:'a,b,d,f'})<br> Create (abde:abde {headline:'a,b,d,e'})<br> Create (abcf:abcf {headline:'a,b,c,f'})<br> Create (abce:abce {headline:'a,b,c,e'})<br> Create (abcd:abcd {headline:'a,b,c,d'})<br> // superset relationships level 5 to level 4<br> CREATE (bcdef) - [:superset] -&gt;(cdef)<br> CREATE (bcdef) - [:superset] -&gt;(bdef)<br> CREATE (bcdef) - [:superset] -&gt;(bcef)<br> CREATE (bcdef) - [:superset] -&gt;(bcdf)<br> CREATE (bcdef) - [:superset] -&gt;(bcde)<br> CREATE (acdef) - [:superset] -&gt;(cdef)<br> CREATE (acdef) - [:superset] -&gt;(adef)<br> CREATE (acdef) - [:superset] -&gt;(acef)<br> CREATE (acdef) - [:superset] -&gt;(acdf)<br> CREATE (acdef) - [:superset] -&gt;(acde)<br> CREATE (abdef) - [:superset] -&gt;(bdef)<br> CREATE (abdef) - [:superset] -&gt;(adef)<br> CREATE (abdef) - [:superset] -&gt;(abef)<br> CREATE (abdef) - [:superset] -&gt;(abdf)<br> CREATE (abdef) - [:superset] -&gt;(abde)<br> CREATE (abcef) - [:superset] -&gt;(bcef)<br> CREATE (abcef) - [:superset] -&gt;(acef)<br> CREATE (abcef) - [:superset] -&gt;(abef)<br> CREATE (abcef) - [:superset] -&gt;(abcf)<br> CREATE (abcef) - [:superset] -&gt;(abce)<br> CREATE (abcdf) - [:superset] -&gt;(bcdf)<br> CREATE (abcdf) - [:superset] -&gt;(acdf)<br> CREATE (abcdf) - [:superset] -&gt;(abdf)<br> CREATE (abcdf) - [:superset] -&gt;(abcf)<br> CREATE (abcdf) - [:superset] -&gt;(abcd)<br> CREATE (abcde) - [:superset] -&gt;(bcde)<br> CREATE (abcde) - [:superset] -&gt;(acde)<br> CREATE (abcde) - [:superset] -&gt;(abde)<br> CREATE (abcde) - [:superset] -&gt;(abce)<br> CREATE (abcde) - [:superset] -&gt;(abcd)</p> <p dir="auto">// n-3 = 3 elements per set<br> Create (def:def {headline:'d,e,f'})<br> Create (cef:cef {headline:'c,e,f'})<br> Create (cdf:cdf {headline:'c,d,f'})<br> Create (cde:cde {headline:'c,d,e'})<br> Create (bef:bef {headline:'b,e,f'})<br> Create (bdf:bdf {headline:'b,d,f'})<br> Create (bde:bde {headline:'b,d,e'})<br> Create (bcf:bcf {headline:'b,c,f'})<br> Create (bce:bce {headline:'b,c,e'})<br> Create (bcd:bcd {headline:'b,c,d'})<br> Create (aef:aef {headline:'a,e,f'})<br> Create (adf:adf {headline:'a,d,f'})<br> Create (ade:ade {headline:'a,d,e'})<br> Create (acf:acf {headline:'a,c,f'})<br> Create (ace:ace {headline:'a,c,e'})<br> Create (acd:acd {headline:'a,c,d'})<br> Create (abf:abf {headline:'a,b,f'})<br> Create (abe:abe {headline:'a,b,e'})<br> Create (abd:abd {headline:'a,b,d'})<br> Create (abc:abc {headline:'a,b,c'})<br> // superset relationships level 4 to level 3<br> Create (cdef) - [:superset] -&gt;(def)<br> Create (cdef) - [:superset] -&gt;(cef)<br> Create (cdef) - [:superset] -&gt;(cdf)<br> Create (cdef) - [:superset] -&gt;(cde)<br> Create (bdef) - [:superset] -&gt;(def)<br> Create (bdef) - [:superset] -&gt;(bef)<br> Create (bdef) - [:superset] -&gt;(bdf)<br> Create (bdef) - [:superset] -&gt;(bde)<br> Create (bcef) - [:superset] -&gt;(cef)<br> Create (bcef) - [:superset] -&gt;(bef)<br> Create (bcef) - [:superset] -&gt;(bcf)<br> Create (bcef) - [:superset] -&gt;(bce)<br> Create (bcdf) - [:superset] -&gt;(cdf)<br> Create (bcdf) - [:superset] -&gt;(bdf)<br> Create (bcdf) - [:superset] -&gt;(bcf)<br> Create (bcdf) - [:superset] -&gt;(bcd)<br> Create (bcde) - [:superset] -&gt;(cde)<br> Create (bcde) - [:superset] -&gt;(bde)<br> Create (bcde) - [:superset] -&gt;(bce)<br> Create (bcde) - [:superset] -&gt;(bcd)<br> Create (adef) - [:superset] -&gt;(def)<br> Create (adef) - [:superset] -&gt;(aef)<br> Create (adef) - [:superset] -&gt;(adf)<br> Create (adef) - [:superset] -&gt;(ade)<br> Create (acef) - [:superset] -&gt;(cef)<br> Create (acef) - [:superset] -&gt;(aef)<br> Create (acef) - [:superset] -&gt;(acf)<br> Create (acef) - [:superset] -&gt;(ace)<br> Create (acdf) - [:superset] -&gt;(cdf)<br> Create (acdf) - [:superset] -&gt;(adf)<br> Create (acdf) - [:superset] -&gt;(acf)<br> Create (acdf) - [:superset] -&gt;(acd)<br> Create (acde) - [:superset] -&gt;(cde)<br> Create (acde) - [:superset] -&gt;(ade)<br> Create (acde) - [:superset] -&gt;(ace)<br> Create (acde) - [:superset] -&gt;(acd)<br> Create (abef) - [:superset] -&gt;(bef)<br> Create (abef) - [:superset] -&gt;(aef)<br> Create (abef) - [:superset] -&gt;(abf)<br> Create (abef) - [:superset] -&gt;(abe)<br> Create (abdf) - [:superset] -&gt;(bdf)<br> Create (abdf) - [:superset] -&gt;(adf)<br> Create (abdf) - [:superset] -&gt;(abf)<br> Create (abdf) - [:superset] -&gt;(abd)<br> Create (abde) - [:superset] -&gt;(bde)<br> Create (abde) - [:superset] -&gt;(ade)<br> Create (abde) - [:superset] -&gt;(abe)<br> Create (abde) - [:superset] -&gt;(abd)<br> Create (abcf) - [:superset] -&gt;(bcf)<br> Create (abcf) - [:superset] -&gt;(acf)<br> Create (abcf) - [:superset] -&gt;(abf)<br> Create (abcf) - [:superset] -&gt;(abc)<br> Create (abce) - [:superset] -&gt;(bce)<br> Create (abce) - [:superset] -&gt;(ace)<br> Create (abce) - [:superset] -&gt;(abe)<br> Create (abce) - [:superset] -&gt;(abc)<br> Create (abcd) - [:superset] -&gt;(bcd)<br> Create (abcd) - [:superset] -&gt;(acd)<br> Create (abcd) - [:superset] -&gt;(abd)<br> Create (abcd) - [:superset] -&gt;(abc)</p> <p dir="auto">// n-4 = 2 elements per set<br> Create (ef:ef {headline:'e,f'})<br> Create (df:df {headline:'d,f'})<br> Create (de:de {headline:'d,e'})<br> Create (cf:cf {headline:'c,f'})<br> Create (ce:ce {headline:'c,e'})<br> Create (cd:cd {headline:'c,d'})<br> Create (bf:bf {headline:'b,f'})<br> Create (be:be {headline:'b,e'})<br> Create (bd:bd {headline:'b,d'})<br> Create (bc:bc {headline:'b,c'})<br> Create (af:af {headline:'a,f'})<br> Create (ae:ae {headline:'a,e'})<br> Create (ad:ad {headline:'a,d'})<br> Create (ac:ac {headline:'a,c'})<br> Create (ab:ab {headline:'a,b'})<br> // Superset relationships level 3 to level 2<br> Create (def) - [:superset] -&gt; (ef)<br> Create (def) - [:superset] -&gt; (df)<br> Create (def) - [:superset] -&gt; (de)<br> Create (cef) - [:superset] -&gt; (ef)<br> Create (cef) - [:superset] -&gt; (cf)<br> Create (cef) - [:superset] -&gt; (ce)<br> Create (cdf) - [:superset] -&gt; (df)<br> Create (cdf) - [:superset] -&gt; (cf)<br> Create (cdf) - [:superset] -&gt; (cd)<br> Create (cde) - [:superset] -&gt; (de)<br> Create (cde) - [:superset] -&gt; (ce)<br> Create (cde) - [:superset] -&gt; (cd)<br> Create (bef) - [:superset] -&gt; (ef)<br> Create (bef) - [:superset] -&gt; (bf)<br> Create (bef) - [:superset] -&gt; (be)<br> Create (bdf) - [:superset] -&gt; (df)<br> Create (bdf) - [:superset] -&gt; (bf)<br> Create (bdf) - [:superset] -&gt; (bd)<br> Create (bde) - [:superset] -&gt; (de)<br> Create (bde) - [:superset] -&gt; (be)<br> Create (bde) - [:superset] -&gt; (bd)<br> Create (bcf) - [:superset] -&gt; (cf)<br> Create (bcf) - [:superset] -&gt; (bf)<br> Create (bcf) - [:superset] -&gt; (bc)<br> Create (bce) - [:superset] -&gt; (ce)<br> Create (bce) - [:superset] -&gt; (be)<br> Create (bce) - [:superset] -&gt; (bc)<br> Create (bcd) - [:superset] -&gt; (cd)<br> Create (bcd) - [:superset] -&gt; (bd)<br> Create (bcd) - [:superset] -&gt; (bc)<br> Create (aef) - [:superset] -&gt; (ef)<br> Create (aef) - [:superset] -&gt; (af)<br> Create (aef) - [:superset] -&gt; (ae)<br> Create (adf) - [:superset] -&gt; (df)<br> Create (adf) - [:superset] -&gt; (af)<br> Create (adf) - [:superset] -&gt; (ad)<br> Create (ade) - [:superset] -&gt; (de)<br> Create (ade) - [:superset] -&gt; (ae)<br> Create (ade) - [:superset] -&gt; (ad)<br> Create (acf) - [:superset] -&gt; (cf)<br> Create (acf) - [:superset] -&gt; (af)<br> Create (acf) - [:superset] -&gt; (ac)<br> Create (ace) - [:superset] -&gt; (ce)<br> Create (ace) - [:superset] -&gt; (ae)<br> Create (ace) - [:superset] -&gt; (ac)<br> Create (acd) - [:superset] -&gt; (cd)<br> Create (acd) - [:superset] -&gt; (ad)<br> Create (acd) - [:superset] -&gt; (ac)<br> Create (abf) - [:superset] -&gt; (bf)<br> Create (abf) - [:superset] -&gt; (af)<br> Create (abf) - [:superset] -&gt; (ab)<br> Create (abe) - [:superset] -&gt; (be)<br> Create (abe) - [:superset] -&gt; (ae)<br> Create (abe) - [:superset] -&gt; (ab)<br> Create (abd) - [:superset] -&gt; (bd)<br> Create (abd) - [:superset] -&gt; (ad)<br> Create (abd) - [:superset] -&gt; (ab)<br> Create (abc) - [:superset] -&gt; (bc)<br> Create (abc) - [:superset] -&gt; (ac)<br> Create (abc) - [:superset] -&gt; (ab)</p> <p dir="auto">// n-(n-1) = 1 element per set<br> Create (a:a {headline:'a'})<br> Create (b:b {headline:'b'})<br> Create (c:c {headline:'c'})<br> Create (d:d {headline:'d'})<br> Create (e:e {headline:'e'})<br> Create (f:f {headline:'f'})<br> // Superset relationships level 3 to level 2<br> Create (ef) - [:superset] -&gt; (f)<br> Create (ef) - [:superset] -&gt; (e)<br> Create (df) - [:superset] -&gt; (f)<br> Create (df) - [:superset] -&gt; (d)<br> Create (de) - [:superset] -&gt; (e)<br> Create (de) - [:superset] -&gt; (d)<br> Create (cf) - [:superset] -&gt; (f)<br> Create (cf) - [:superset] -&gt; (c)<br> Create (ce) - [:superset] -&gt; (e)<br> Create (ce) - [:superset] -&gt; (c)<br> Create (cd) - [:superset] -&gt; (d)<br> Create (cd) - [:superset] -&gt; (c)<br> Create (bf) - [:superset] -&gt; (f)<br> Create (bf) - [:superset] -&gt; (b)<br> Create (be) - [:superset] -&gt; (e)<br> Create (be) - [:superset] -&gt; (b)<br> Create (bd) - [:superset] -&gt; (d)<br> Create (bd) - [:superset] -&gt; (b)<br> Create (bc) - [:superset] -&gt; (c)<br> Create (bc) - [:superset] -&gt; (b)<br> Create (af) - [:superset] -&gt; (f)<br> Create (af) - [:superset] -&gt; (a)<br> Create (ae) - [:superset] -&gt; (e)<br> Create (ae) - [:superset] -&gt; (a)<br> Create (ad) - [:superset] -&gt; (d)<br> Create (ad) - [:superset] -&gt; (a)<br> Create (ac) - [:superset] -&gt; (c)<br> Create (ac) - [:superset] -&gt; (a)<br> Create (ab) - [:superset] -&gt; (b)<br> Create (ab) - [:superset] -&gt; (a)</p>
<ul dir="auto"> <li>Neo4j version: 3.5.4</li> <li>Operating system: debian-9-x86</li> <li>API/Driver: neo4j-admin</li> <li><strong>Steps to reproduce</strong><br> Try to import 30GB(after zipped) csv data to fresh installed neo4j,<br> command i ran:</li> </ul> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sudo -u neo4j /opt/bitnami/neo4j/bin/neo4j-admin import \ --nodes:Group=&quot;header_group.csv,groups.*.zip&quot; \ --nodes:Person=&quot;header_person.csv,people.*.zip&quot; \ --relationships:IN_GROUP=&quot;header_ingroup.csv,people.*.zip&quot; \ --input-encoding=&quot;UTF-16LE&quot; --ignore-duplicate-nodes --ignore-missing-nodes --delimiter=&quot;\t&quot;"><pre class="notranslate">sudo -u neo4j /opt/bitnami/neo4j/bin/neo4j-admin import \ --nodes:Group=<span class="pl-s"><span class="pl-pds">"</span>header_group.csv,groups.*.zip<span class="pl-pds">"</span></span> \ --nodes:Person=<span class="pl-s"><span class="pl-pds">"</span>header_person.csv,people.*.zip<span class="pl-pds">"</span></span> \ --relationships:IN_GROUP=<span class="pl-s"><span class="pl-pds">"</span>header_ingroup.csv,people.*.zip<span class="pl-pds">"</span></span> \ --input-encoding=<span class="pl-s"><span class="pl-pds">"</span>UTF-16LE<span class="pl-pds">"</span></span> --ignore-duplicate-nodes --ignore-missing-nodes --delimiter=<span class="pl-s"><span class="pl-pds">"</span>\t<span class="pl-pds">"</span></span></pre></div> <p dir="auto">nodes import done in 30 minutes, but then the command stuck on this 'Prepare node index'stage for 2 days already:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ******** DETAILS 2019-04-13 19:11:19.799+0000 ******** Nodes [*Nodes---------------------------------------------------------------------------------------]1.53B Memory usage: 12.45 GB I/O throughput: 72.87 MB/s Duration: 35m 41s 667ms Done batches: 153631 Prepare node index [*SORT----------------------------------------------------------------------------------------]7.33B Memory usage: 123.34 GB VM stop-the-world time: 2s 23ms Duration: 2d 5h 25m 29s 892ms Done batches: 733092 Environment information: Free physical memory: 219.49 MB Max VM memory: 17.78 GB Free VM memory: 73.79 MB VM stop-the-world time: 2s 23ms Duration: 2d 6h 1m 11s 559ms"><pre class="notranslate"><code class="notranslate"> ******** DETAILS 2019-04-13 19:11:19.799+0000 ******** Nodes [*Nodes---------------------------------------------------------------------------------------]1.53B Memory usage: 12.45 GB I/O throughput: 72.87 MB/s Duration: 35m 41s 667ms Done batches: 153631 Prepare node index [*SORT----------------------------------------------------------------------------------------]7.33B Memory usage: 123.34 GB VM stop-the-world time: 2s 23ms Duration: 2d 5h 25m 29s 892ms Done batches: 733092 Environment information: Free physical memory: 219.49 MB Max VM memory: 17.78 GB Free VM memory: 73.79 MB VM stop-the-world time: 2s 23ms Duration: 2d 6h 1m 11s 559ms </code></pre></div> <p dir="auto">some sample data:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// header_group.csv :IGNORE QunNum:ID(Group-ID) MastQQ:int CreateDate:date Title Class QunText groups node: 78 100263 19 2002-08-31 BTBBS 0 btbbs.3322.org 79 100264 1 2002-08-31 1 0 1 80 100265 1 2002-08-31 1 0 1 81 100269 11 2002-08-31 ★顺网论坛内务群★ 3126 // header_person.csv :IGNORE QQNum:ID(Person-ID) :IGNORE :IGNORE :IGNORE :IGNORE :IGNORE // header_ingroup.csv :IGNORE :START_ID(Person-ID) Nick Age:int Gender:int Auth:int :END_ID(Group-ID) person nodes: 2 32507773 黄璘 105 1 2 100100 3 389737625 niki 26 1 3 100100 4 10095 Paul 31 0 2 100100 5 795019031 一二三四五六 2 0 1 100100 6 251000782 赵耀 33 0 1 100100"><pre class="notranslate"><code class="notranslate">// header_group.csv :IGNORE QunNum:ID(Group-ID) MastQQ:int CreateDate:date Title Class QunText groups node: 78 100263 19 2002-08-31 BTBBS 0 btbbs.3322.org 79 100264 1 2002-08-31 1 0 1 80 100265 1 2002-08-31 1 0 1 81 100269 11 2002-08-31 ★顺网论坛内务群★ 3126 // header_person.csv :IGNORE QQNum:ID(Person-ID) :IGNORE :IGNORE :IGNORE :IGNORE :IGNORE // header_ingroup.csv :IGNORE :START_ID(Person-ID) Nick Age:int Gender:int Auth:int :END_ID(Group-ID) person nodes: 2 32507773 黄璘 105 1 2 100100 3 389737625 niki 26 1 3 100100 4 10095 Paul 31 0 2 100100 5 795019031 一二三四五六 2 0 1 100100 6 251000782 赵耀 33 0 1 100100 </code></pre></div> <p dir="auto">those csv files are generate from a SQL database, as you can see both Person nodes and the IN_GROUP using same set of csv data. There are some node id is duplicated, that's why i put <code class="notranslate">--ignore-duplicate-nodes --ignore-missing-nodes</code> options in there.</p> <p dir="auto">Please help!</p>
0
<p dir="auto">There are many instances where one concretely needs a statically linked executable (e.g. to avoid having to distribute a pile of Rust dynamic libraries, making deployment much simpler).</p> <p dir="auto">The compiler currently offers no way to request that a compiled artefact is always statically linked against Rust crates (the only option is <code class="notranslate">-C prefer-dynamic</code> which isn't really a guarantee either). Since there's no way to force these things, working out why the static linking defaulting failed is very hard, especially with a non-trivial number of dependencies (since the error is almost certainly one of those dependencies coming only in <code class="notranslate">.so</code> format).</p> <p dir="auto">If the compiler provided say, <code class="notranslate">-C statically-linked</code>, then a user can request that something is only statically linked and receive errors about exactly what is stopping this from happening, e.g. <code class="notranslate">crate syntax can only be found as a dynamic library</code>. Without this, the user has to search through all dependencies to find out what is breaking things.</p> <p dir="auto">(Case study: I was working through a problem like this with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/emk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/emk">@emk</a> on IRC. After much discussion and <code class="notranslate">ldd</code> wrangling, we eventually tracked it down to a library which defines a procedural macro internally along with the rest of the functionality, i.e. introducing a dependency on libsyntax. It would be much easier if we can get the compiler to tell us this straight away.)</p>
<p dir="auto">Now that <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20333474" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/9658" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/9658/hovercard" href="https://github.com/rust-lang/rust/pull/9658">#9658</a> has landed, libstd is buildable with both <code class="notranslate">-Z debug-info</code> and <code class="notranslate">-Z extra-debug-info</code>. It might be time to graduate these flags out of the experimental <code class="notranslate">-Z</code> zone.</p>
0
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="x = [ 1 2 3 4 5 6; 2 3 4 5 6 7; ] const y = x let local a = x @time for i in 1:10^4 reshape(a, 12) end end 0.002322 seconds (20.00 k allocations: 781.250 KB) let local a = y @time for i in 1:10^4 reshape(a, 12) end end 0.000344 seconds (10.00 k allocations: 625.000 KB)"><pre class="notranslate">x <span class="pl-k">=</span> [ <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span> <span class="pl-c1">5</span> <span class="pl-c1">6</span>; <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span> <span class="pl-c1">5</span> <span class="pl-c1">6</span> <span class="pl-c1">7</span>; ] <span class="pl-k">const</span> y <span class="pl-k">=</span> x <span class="pl-k">let</span> <span class="pl-k">local</span> a <span class="pl-k">=</span> x <span class="pl-c1">@time</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10</span><span class="pl-k">^</span><span class="pl-c1">4</span> <span class="pl-c1">reshape</span>(a, <span class="pl-c1">12</span>) <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-c1">0.002322</span> seconds (<span class="pl-c1">20.00</span> k allocations<span class="pl-k">:</span> <span class="pl-c1">781.250</span> KB) <span class="pl-k">let</span> <span class="pl-k">local</span> a <span class="pl-k">=</span> y <span class="pl-c1">@time</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10</span><span class="pl-k">^</span><span class="pl-c1">4</span> <span class="pl-c1">reshape</span>(a, <span class="pl-c1">12</span>) <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-c1">0.000344</span> seconds (<span class="pl-c1">10.00</span> k allocations<span class="pl-k">:</span> <span class="pl-c1">625.000</span> KB)</pre></div> <p dir="auto">It seems the type of <code class="notranslate">a</code> isn't inferred.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _ _ _(_)_ | (_) | (_) (_) | A fresh approach to technical computing _ _ _| |_ __ _ | | | | | | | |/ _` | | Version 0.0.0-prerelease | | |_| | | | (_| | | Commit 335d1ef401 (2012-03-04 23:47:29) _/ |\__'_|_|_|\__'_| | |__/ | julia&gt; x = 5 5 julia&gt; typeof(x) Int64 julia&gt; typeof([i | i = 1:5]) Array{Int64,1}"><pre class="notranslate"><code class="notranslate"> _ _ _(_)_ | (_) | (_) (_) | A fresh approach to technical computing _ _ _| |_ __ _ | | | | | | | |/ _` | | Version 0.0.0-prerelease | | |_| | | | (_| | | Commit 335d1ef401 (2012-03-04 23:47:29) _/ |\__'_|_|_|\__'_| | |__/ | julia&gt; x = 5 5 julia&gt; typeof(x) Int64 julia&gt; typeof([i | i = 1:5]) Array{Int64,1} </code></pre></div> <p dir="auto">So far, so good.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; typeof([i | i = 1:x]) Array{Any,1}"><pre class="notranslate"><code class="notranslate">julia&gt; typeof([i | i = 1:x]) Array{Any,1} </code></pre></div> <p dir="auto">Wat.<br> (with apologies to <a href="https://www.destroyallsoftware.com/talks/wat" rel="nofollow">https://www.destroyallsoftware.com/talks/wat</a>)</p>
1
<p dir="auto"><em>Let's say this is not a bug report.</em></p> <h3 dir="auto"><strong>Description</strong></h3> <p dir="auto">A common problem with the serializer and the use of the deserialization is that it will throw errors if a wrong value is inside the given data. This stops any possibility of validation because the deserialization will not end. For information, it is a known issue of ApiPlatform. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="233430475" data-permission-text="Title is private" data-url="https://github.com/api-platform/core/issues/1157" data-hovercard-type="issue" data-hovercard-url="/api-platform/core/issues/1157/hovercard" href="https://github.com/api-platform/core/issues/1157">api-platform/core#1157</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="300651287" data-permission-text="Title is private" data-url="https://github.com/api-platform/core/issues/1735" data-hovercard-type="issue" data-hovercard-url="/api-platform/core/issues/1735/hovercard" href="https://github.com/api-platform/core/issues/1735">api-platform/core#1735</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="255706282" data-permission-text="Title is private" data-url="https://github.com/api-platform/core/issues/1352" data-hovercard-type="issue" data-hovercard-url="/api-platform/core/issues/1352/hovercard" href="https://github.com/api-platform/core/issues/1352">api-platform/core#1352</a>.</p> <p dir="auto">I suggest adding a new context option that will contain an "error bag". Then we could return the object deserialized and ready for validation with the validation component, as well as a list of errors that occured in the deserialization process.</p> <p dir="auto">This way you can return all the validation error properly.</p> <h3 dir="auto"><strong>Example</strong></h3> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$errors = new ErrorBag(); $myObject = $serializer-&gt;deserialize($data, MyObject::class, 'json', ['error_bag' =&gt; $errors]); $contraints = $validator-&gt;validate($myObject); // And we're happy here // Then I can foreach on $errors and $contraints to generate a correct &amp; complete output."><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>errors</span> = <span class="pl-k">new</span> <span class="pl-v">ErrorBag</span>(); <span class="pl-s1"><span class="pl-c1">$</span>myObject</span> = <span class="pl-s1"><span class="pl-c1">$</span>serializer</span>-&gt;<span class="pl-en">deserialize</span>(<span class="pl-s1"><span class="pl-c1">$</span>data</span>, <span class="pl-v">MyObject</span>::class, <span class="pl-s">'json'</span>, [<span class="pl-s">'error_bag'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>errors</span>]); <span class="pl-s1"><span class="pl-c1">$</span>contraints</span> = <span class="pl-s1"><span class="pl-c1">$</span>validator</span>-&gt;<span class="pl-en">validate</span>(<span class="pl-s1"><span class="pl-c1">$</span>myObject</span>); <span class="pl-c">// And we're happy here</span> <span class="pl-c">// Then I can foreach on $errors and $contraints to generate a correct &amp; complete output.</span></pre></div> <h3 dir="auto"><strong>POC</strong></h3> <p dir="auto">I tried to make this feature (it's a far more simple version than what it should actually be). It's here: <a href="https://github.com/Nek-/poc-symfony-deserialization-errors">https://github.com/Nek-/poc-symfony-deserialization-errors</a></p> <p dir="auto">I can implement this feature if feedbacks are positive.</p>
<p dir="auto"><strong>Description</strong><br> Add a way to make the Serializer try its best to continue denormalization to the end and collect all failures instead of stopping and throwing an exception at first failure. If anything goes wrong, the thrown exception provides all collected failures, similarly to what the Validator does.</p> <p dir="auto"><strong>Example</strong><br> When working on an application that exposes an API (with e.g. API Platform) and uses Value Objects to represent data, a way to process a request payload can be as follows:</p> <ul dir="auto"> <li>Have a Data Transfer Object class that represents the payload with basic types (<code class="notranslate">int</code>, <code class="notranslate">string</code>, ...)</li> <li>Use the Serializer to convert the payload into an instance of that DTO class</li> <li>Use the Validator to assert that all values in the DTO are valid</li> <li>In case it's not valid, expose the violations to the client in a 400 response</li> <li>Otherwise, pass the DTO to other parts of the application, converting all basic values into Value Objects as needed.</li> </ul> <p dir="auto">I see several drawbacks though:</p> <ul dir="auto"> <li>most validation rules are written twice: in the Value Objects and in the Validator mapping</li> <li>it is not really type safe: a method that is passed the DTO has no guarantee that it is indeed valid (maybe it was not actually validated or it was mutated afterwards).</li> </ul> <p dir="auto">A possible solution I imagine is to have the Serializer denormalize the values using Value Objects directly instead of basic types. This should only require having a denormalizer for all involved objects to work. This would solve issues mentioned above but would bring another one: since current implementation of the denormalization process stops and throws an exception as soon as it fails denormalizing a single value, the API would not be able to report all violations in the payload anymore: instead it would only report the single value whose denormalization failed.</p> <p dir="auto">With the proposed feature, the new implementation to process a request payload would be:</p> <ul dir="auto"> <li>Have a Data Transfer Object that represents the payload with Value Objects and uses a constructor instead of public properties (leveraging <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="430118203" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/30956" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/30956/hovercard" href="https://github.com/symfony/symfony/pull/30956">#30956</a> maybe)</li> <li>Use the Serializer to convert the payload into an instance of that DTO class</li> <li>In case of denormalization failures, expose them to the client in a 400 response</li> <li>Otherwise, pass the DTO to other parts of the application without any further processing</li> </ul>
1
<p dir="auto">Here are the steps to reproduce the bug:</p> <ol dir="auto"> <li>Open terminal</li> <li>Put "="</li> </ol> <p dir="auto">Before<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19567657/57587074-e26f7480-751c-11e9-92db-bdd997e4174b.PNG"><img src="https://user-images.githubusercontent.com/19567657/57587074-e26f7480-751c-11e9-92db-bdd997e4174b.PNG" alt="1" style="max-width: 100%;"></a></p> <p dir="auto">After<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19567657/57587075-e602fb80-751c-11e9-85d4-6b4140163437.PNG"><img src="https://user-images.githubusercontent.com/19567657/57587075-e602fb80-751c-11e9-85d4-6b4140163437.PNG" alt="2" style="max-width: 100%;"></a></p> <p dir="auto">After putting an equal to sign, the "&gt;" changes to "&gt;=".</p>
<p dir="auto">When fonts with programming ligatures is used, a weird behavior is show if write some characters at first, for example with <a href="https://github.com/tonsky/FiraCode">FiraCode</a>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12452450/57310925-47a40f80-70b0-11e9-93a3-2cc251c618d6.png"><img src="https://user-images.githubusercontent.com/12452450/57310925-47a40f80-70b0-11e9-93a3-2cc251c618d6.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12452450/57310942-512d7780-70b0-11e9-94d3-5a57d5832d0e.png"><img src="https://user-images.githubusercontent.com/12452450/57310942-512d7780-70b0-11e9-94d3-5a57d5832d0e.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Hi everyone,</p> <p dir="auto">I need to have some help with an annoying thing.<br> I have an modal popup which has vertical scrollsbar inside. When scrolling inside the modal sometimes the background scrolls instead.<br> I have tried to add</p> <p dir="auto">body .modal-open {<br> position:relative;<br> overflow: hidden;<br> }</p> <p dir="auto">which works fine on most of the browsers, but Safari for my iPhone still scrolls!</p> <p dir="auto">Please help me find how to solve this!</p> <p dir="auto">Regards Kristian</p>
<p dir="auto">When viewing a modal on iPad, attempts to scroll within the content of the modal instead triggers scrolling of the entire page in the background.</p> <p dir="auto">Tested on iPad 2 iOS 5.1 Mobile Safari while viewing Bootstrap Documentation and Examples <a href="http://twitter.github.com/bootstrap/javascript.html#modals">http://twitter.github.com/bootstrap/javascript.html#modals</a></p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code</a> has an issue.</p> <p dir="auto">If I create a new line at the top of the code block and add my comment tag () at the end of the code block, thus commenting out the entire code block.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13574165/9362923/ff960722-4668-11e5-8b16-4fd85805774a.png"><img src="https://cloud.githubusercontent.com/assets/13574165/9362923/ff960722-4668-11e5-8b16-4fd85805774a.png" alt="comment" style="max-width: 100%;"></a></p> <p dir="auto">Typing in the requisite statement will then produce a success message, but when you go to the next lesson the comment is restricted to the single line (as I believe this lesson intends.)</p> <p dir="auto">Additionally, after typing the comment tag, the cursor moves to the first character at the top of the page, which is inconsistent with other tag character generation.</p> <p dir="auto">So, in my opinion, the done statement would include:</p> <ol dir="auto"> <li>Fix comment tags such that the end tag is automatically placed one space after the open tag (on the same line) (may be a problem with comment tags in general)</li> <li>Fix comment tags such that the cursor remains immediately following the open comment tag. (may be a problem with comment tags in general)</li> <li>(May not be necessary if 1 and 2 are fixed) Add another task such that all original code must remain uncommented.</li> </ol>
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/taste-the-bootstrap-button-color-rainbow#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch2%20class%3D%22red-text%20text-center%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%20%20%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%20%20%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%20%20%3Cimg%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-running-cats%22%20class%3D%22img-responsive%22%3E%0A%20%20%3Cbutton%20class%3D%22btn%20btn-block%22%3ELike%3C%2Fbutton%3E%0A%20%20%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%20%20%3Cul%3E%0A%20%20%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%20%20%3C%2Ful%3E%0A%20%20%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%20%20%3Col%3E%0A%20%20%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%20%20%3C%2Fol%3E%0A%20%20%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Loving%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Lazy%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Crazy%3C%2Flabel%3E%0A%20%20%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%20%20%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">https://www.freecodecamp.com/challenges/taste-the-bootstrap-button-color-rainbow#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch2%20class%3D%22red-text%20text-center%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%20%20%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%20%20%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%20%20%3Cimg%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-running-cats%22%20class%3D%22img-responsive%22%3E%0A%20%20%3Cbutton%20class%3D%22btn%20btn-block%22%3ELike%3C%2Fbutton%3E%0A%20%20%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%20%20%3Cul%3E%0A%20%20%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%20%20%3C%2Ful%3E%0A%20%20%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%20%20%3Col%3E%0A%20%20%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%20%20%3C%2Fol%3E%0A%20%20%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Loving%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Lazy%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Crazy%3C%2Flabel%3E%0A%20%20%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%20%20%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">Taste the Bootstrap Button Color Rainbow challenge ..... i have to insert btn-primary after the text btn-text ... line 37. unfortunately the cursor wont move past the l in btn-block it just wraps to the next line<br> i have looked at other lines in this code section and found the cursor also wraps before the end of the line in other sections too</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Chrome</li> <li>Operating System: windows 7</li> <li>Mobile, Desktop, or Tablet: Desktop</li> </ul> <h4 dir="auto">Your Code</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// If relevant, paste all of your challenge code in here "><pre class="notranslate"><span class="pl-c">// If relevant, paste all of your challenge code in here</span></pre></div> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11596539/16150292/3ea03fd2-348e-11e6-8568-79838600ae6b.jpg"><img src="https://cloud.githubusercontent.com/assets/11596539/16150292/3ea03fd2-348e-11e6-8568-79838600ae6b.jpg" alt="cursor problem" style="max-width: 100%;"></a></p>
0
<p dir="auto">PR #<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156330358" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26089" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/26089/hovercard" href="https://github.com/kubernetes/kubernetes/pull/26089">#26089</a> moved some PD tests to flaky to resolve issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156404687" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26127" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26127/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26127">#26127</a> (and duplicate <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156285862" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26076" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26076/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26076">#26076</a>). These tests started failing due to PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135552488" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/21709" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/21709/hovercard" href="https://github.com/kubernetes/kubernetes/pull/21709">#21709</a>.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rootfs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rootfs">@rootfs</a> is working on a patch to de-flake the tests.</p> <p dir="auto">This issue is to track the fix and should be closed when:</p> <ol dir="auto"> <li>The PD tests have been deflaked (verify by running the "pd.go" e2e tests back to back for a couple of hours to verify the issue is fixed).</li> <li>The flaky label has been removed from the "pd.go" tests that were marked flaky in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156330358" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26089" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/26089/hovercard" href="https://github.com/kubernetes/kubernetes/pull/26089">#26089</a></li> </ol> <p dir="auto">CC @kubernetes/sig-storage</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto">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.):</p> <p dir="auto">kubeadm, kube-dns</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto">BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# kubectl version Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.4&quot;, GitCommit:&quot;3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-10-21T02:48:38Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;} Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;4&quot;, GitVersion:&quot;v1.4.4&quot;, GitCommit:&quot;3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-10-21T02:42:39Z&quot;, GoVersion:&quot;go1.6.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}"><pre class="notranslate"><code class="notranslate"># kubectl version Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:48:38Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:42:39Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"} </code></pre></div> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: AWS</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# cat /etc/os-release NAME=&quot;Ubuntu&quot; VERSION=&quot;16.04.1 LTS (Xenial Xerus)&quot; ID=ubuntu ID_LIKE=debian PRETTY_NAME=&quot;Ubuntu 16.04.1 LTS&quot; VERSION_ID=&quot;16.04&quot; HOME_URL=&quot;http://www.ubuntu.com/&quot; SUPPORT_URL=&quot;http://help.ubuntu.com/&quot; BUG_REPORT_URL=&quot;http://bugs.launchpad.net/ubuntu/&quot; UBUNTU_CODENAME=xenial"><pre class="notranslate"><code class="notranslate"># cat /etc/os-release NAME="Ubuntu" VERSION="16.04.1 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.1 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" UBUNTU_CODENAME=xenial </code></pre></div> <ul dir="auto"> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# uname -a Linux ip-10-1-24-223 4.4.0-51-generic #72-Ubuntu SMP Thu Nov 24 18:29:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate"># uname -a Linux ip-10-1-24-223 4.4.0-51-generic #72-Ubuntu SMP Thu Nov 24 18:29:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux </code></pre></div> <ul dir="auto"> <li> <p dir="auto"><strong>Install tools</strong>: kubeadm</p> </li> <li> <p dir="auto"><strong>Others</strong>:</p> </li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">kubeadm failed to start kube-dns.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">kube-dns starts successfully.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">I followed the instructions. <a href="http://kubernetes.io/docs/getting-started-guides/kubeadm/" rel="nofollow">http://kubernetes.io/docs/getting-started-guides/kubeadm/</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - # sudo sh -c &quot;cat &lt;&lt;EOF &gt; /etc/apt/sources.list.d/kubernetes.list deb http://apt.kubernetes.io/ kubernetes-xenial main EOF&quot; # sudo apt-get update -y # sudo apt-get install -y docker.io kubelet kubeadm kubectl kubernetes-cni # sudo kubeadm init"><pre class="notranslate"><code class="notranslate"># curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - # sudo sh -c "cat &lt;&lt;EOF &gt; /etc/apt/sources.list.d/kubernetes.list deb http://apt.kubernetes.io/ kubernetes-xenial main EOF" # sudo apt-get update -y # sudo apt-get install -y docker.io kubelet kubeadm kubectl kubernetes-cni # sudo kubeadm init </code></pre></div> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# kubectl get pod --all-namespaces=true NAMESPACE NAME READY STATUS RESTARTS AGE kube-system dummy-2088944543-qjcd9 1/1 Running 0 32s kube-system kube-apiserver-ip-10-1-24-144 1/1 Running 0 37s kube-system kube-discovery-1150918428-d2nsx 1/1 Running 0 31s kube-system kube-dns-654381707-vf4te 0/3 ContainerCreating 0 19s kube-system kube-proxy-5vjdd 1/1 Running 0 19s"><pre class="notranslate"><code class="notranslate"># kubectl get pod --all-namespaces=true NAMESPACE NAME READY STATUS RESTARTS AGE kube-system dummy-2088944543-qjcd9 1/1 Running 0 32s kube-system kube-apiserver-ip-10-1-24-144 1/1 Running 0 37s kube-system kube-discovery-1150918428-d2nsx 1/1 Running 0 31s kube-system kube-dns-654381707-vf4te 0/3 ContainerCreating 0 19s kube-system kube-proxy-5vjdd 1/1 Running 0 19s </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# kubectl get events -n kube-system LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE 1m 1m 1 dummy-2088944543-qjcd9 Pod Normal Scheduled {default-scheduler } Successfully assigned dummy-2088944543-qjcd9 to ip-10-1-24-144 1m 1m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Pulled {kubelet ip-10-1-24-144} Container image &quot;gcr.io/google_containers/pause-amd64:3.0&quot; already present on machine 1m 1m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Created {kubelet ip-10-1-24-144} Created container with docker id bee2cc05825c; Security:[seccomp=unconfined] 1m 1m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Started {kubelet ip-10-1-24-144} Started container with docker id bee2cc05825c 1m 1m 1 dummy-2088944543 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: dummy-2088944543-qjcd9 1m 1m 1 dummy Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set dummy-2088944543 to 1 1m 1m 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/etcd-amd64:2.2.5&quot; 1m 1m 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/etcd-amd64:2.2.5&quot; 1m 1m 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 8f0fdf66dbb5; Security:[seccomp=unconfined] 1m 1m 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 8f0fdf66dbb5 1m 1m 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-apiserver-amd64:v1.4.4&quot; 1m 1m 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-apiserver-amd64:v1.4.4&quot; 1m 1m 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 0926c48e85b0; Security:[seccomp=unconfined] 1m 1m 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 0926c48e85b0 1m 1m 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-controller-manager-amd64:v1.4.4&quot; 1m 1m 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-controller-manager-amd64:v1.4.4&quot; 1m 1m 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 46485fd67302; Security:[seccomp=unconfined] 1m 1m 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 46485fd67302 1m 1m 1 kube-discovery-1150918428-d2nsx Pod Normal Scheduled {default-scheduler } Successfully assigned kube-discovery-1150918428-d2nsx to ip-10-1-24-144 1m 1m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-discovery-amd64:1.0&quot; 1m 1m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-discovery-amd64:1.0&quot; 1m 1m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Created {kubelet ip-10-1-24-144} Created container with docker id bc5677a97797; Security:[seccomp=unconfined] 1m 1m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Started {kubelet ip-10-1-24-144} Started container with docker id bc5677a97797 1m 1m 1 kube-discovery-1150918428 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: kube-discovery-1150918428-d2nsx 1m 1m 1 kube-discovery Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set kube-discovery-1150918428 to 1 1m 1m 1 kube-dns-654381707-vf4te Pod Normal Scheduled {default-scheduler } Successfully assigned kube-dns-654381707-vf4te to ip-10-1-24-144 1s 1m 68 kube-dns-654381707-vf4te Pod Warning FailedSync {kubelet ip-10-1-24-144} Error syncing pod, skipping: failed to &quot;SetupNetwork&quot; for &quot;kube-dns-654381707-vf4te_kube-system&quot; with SetupNetworkError: &quot;Failed to setup network for pod \&quot;kube-dns-654381707-vf4te_kube-system(c37672ee-bb00-11e6-9cb2-06d39f467f73)\&quot; using network plugins \&quot;cni\&quot;: cni config unintialized; Skipping pod&quot; 1m 1m 1 kube-dns-654381707 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: kube-dns-654381707-vf4te 1m 1m 1 kube-dns Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set kube-dns-654381707 to 1 1m 1m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-proxy-amd64:v1.4.4&quot; 1m 1m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-proxy-amd64:v1.4.4&quot; 1m 1m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Created {kubelet ip-10-1-24-144} Created container with docker id c24e0db7ab80; Security:[seccomp=unconfined] 59s 59s 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Started {kubelet ip-10-1-24-144} Started container with docker id c24e0db7ab80 1m 1m 1 kube-proxy DaemonSet Normal SuccessfulCreate {daemon-set } Created pod: kube-proxy-5vjdd 1m 1m 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-scheduler-amd64:v1.4.4&quot; 1m 1m 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-scheduler-amd64:v1.4.4&quot; 1m 1m 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 8f2d941c1e27; Security:[seccomp=unconfined] 1m 1m 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 8f2d941c1e27"><pre class="notranslate"><code class="notranslate"># kubectl get events -n kube-system LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE 1m 1m 1 dummy-2088944543-qjcd9 Pod Normal Scheduled {default-scheduler } Successfully assigned dummy-2088944543-qjcd9 to ip-10-1-24-144 1m 1m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Pulled {kubelet ip-10-1-24-144} Container image "gcr.io/google_containers/pause-amd64:3.0" already present on machine 1m 1m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Created {kubelet ip-10-1-24-144} Created container with docker id bee2cc05825c; Security:[seccomp=unconfined] 1m 1m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Started {kubelet ip-10-1-24-144} Started container with docker id bee2cc05825c 1m 1m 1 dummy-2088944543 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: dummy-2088944543-qjcd9 1m 1m 1 dummy Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set dummy-2088944543 to 1 1m 1m 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/etcd-amd64:2.2.5" 1m 1m 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/etcd-amd64:2.2.5" 1m 1m 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 8f0fdf66dbb5; Security:[seccomp=unconfined] 1m 1m 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 8f0fdf66dbb5 1m 1m 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-apiserver-amd64:v1.4.4" 1m 1m 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-apiserver-amd64:v1.4.4" 1m 1m 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 0926c48e85b0; Security:[seccomp=unconfined] 1m 1m 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 0926c48e85b0 1m 1m 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-controller-manager-amd64:v1.4.4" 1m 1m 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-controller-manager-amd64:v1.4.4" 1m 1m 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 46485fd67302; Security:[seccomp=unconfined] 1m 1m 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 46485fd67302 1m 1m 1 kube-discovery-1150918428-d2nsx Pod Normal Scheduled {default-scheduler } Successfully assigned kube-discovery-1150918428-d2nsx to ip-10-1-24-144 1m 1m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-discovery-amd64:1.0" 1m 1m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-discovery-amd64:1.0" 1m 1m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Created {kubelet ip-10-1-24-144} Created container with docker id bc5677a97797; Security:[seccomp=unconfined] 1m 1m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Started {kubelet ip-10-1-24-144} Started container with docker id bc5677a97797 1m 1m 1 kube-discovery-1150918428 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: kube-discovery-1150918428-d2nsx 1m 1m 1 kube-discovery Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set kube-discovery-1150918428 to 1 1m 1m 1 kube-dns-654381707-vf4te Pod Normal Scheduled {default-scheduler } Successfully assigned kube-dns-654381707-vf4te to ip-10-1-24-144 1s 1m 68 kube-dns-654381707-vf4te Pod Warning FailedSync {kubelet ip-10-1-24-144} Error syncing pod, skipping: failed to "SetupNetwork" for "kube-dns-654381707-vf4te_kube-system" with SetupNetworkError: "Failed to setup network for pod \"kube-dns-654381707-vf4te_kube-system(c37672ee-bb00-11e6-9cb2-06d39f467f73)\" using network plugins \"cni\": cni config unintialized; Skipping pod" 1m 1m 1 kube-dns-654381707 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: kube-dns-654381707-vf4te 1m 1m 1 kube-dns Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set kube-dns-654381707 to 1 1m 1m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-proxy-amd64:v1.4.4" 1m 1m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-proxy-amd64:v1.4.4" 1m 1m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Created {kubelet ip-10-1-24-144} Created container with docker id c24e0db7ab80; Security:[seccomp=unconfined] 59s 59s 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Started {kubelet ip-10-1-24-144} Started container with docker id c24e0db7ab80 1m 1m 1 kube-proxy DaemonSet Normal SuccessfulCreate {daemon-set } Created pod: kube-proxy-5vjdd 1m 1m 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-scheduler-amd64:v1.4.4" 1m 1m 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-scheduler-amd64:v1.4.4" 1m 1m 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 8f2d941c1e27; Security:[seccomp=unconfined] 1m 1m 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 8f2d941c1e27 </code></pre></div> <p dir="auto"><code class="notranslate">1s 1m 68 kube-dns-654381707-vf4te Pod Warning FailedSync {kubelet ip-10-1-24-144} Error syncing pod, skipping: failed to "SetupNetwork" for "kube-dns-654381707-vf4te_kube-system" with SetupNetworkError: "Failed to setup network for pod \"kube-dns-654381707-vf4te_kube-system(c37672ee-bb00-11e6-9cb2-06d39f467f73)\" using network plugins \"cni\": cni config unintialized; Skipping pod"</code> 🤔</p> <p dir="auto">I tried <code class="notranslate">kubectl create -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml</code>, but kube-dns didn't start.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# kubectl get pod --all-namespaces=true NAMESPACE NAME READY STATUS RESTARTS AGE kube-system dummy-2088944543-qjcd9 1/1 Running 0 1h kube-system etcd-ip-10-1-24-144 1/1 Running 0 1h kube-system kube-apiserver-ip-10-1-24-144 1/1 Running 0 1h kube-system kube-controller-manager-ip-10-1-24-144 1/1 Running 0 1h kube-system kube-discovery-1150918428-d2nsx 1/1 Running 0 1h kube-system kube-dns-654381707-vf4te 0/3 ContainerCreating 0 1h kube-system kube-flannel-ds-oxl8w 2/2 Running 0 4m kube-system kube-proxy-5vjdd 1/1 Running 0 1h kube-system kube-scheduler-ip-10-1-24-144 1/1 Running 0 1h"><pre class="notranslate"><code class="notranslate"># kubectl get pod --all-namespaces=true NAMESPACE NAME READY STATUS RESTARTS AGE kube-system dummy-2088944543-qjcd9 1/1 Running 0 1h kube-system etcd-ip-10-1-24-144 1/1 Running 0 1h kube-system kube-apiserver-ip-10-1-24-144 1/1 Running 0 1h kube-system kube-controller-manager-ip-10-1-24-144 1/1 Running 0 1h kube-system kube-discovery-1150918428-d2nsx 1/1 Running 0 1h kube-system kube-dns-654381707-vf4te 0/3 ContainerCreating 0 1h kube-system kube-flannel-ds-oxl8w 2/2 Running 0 4m kube-system kube-proxy-5vjdd 1/1 Running 0 1h kube-system kube-scheduler-ip-10-1-24-144 1/1 Running 0 1h </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# kubectl get events -n kube-system LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE 59m 59m 1 dummy-2088944543-qjcd9 Pod Normal Scheduled {default-scheduler } Successfully assigned dummy-2088944543-qjcd9 to ip-10-1-24-144 59m 59m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Pulled {kubelet ip-10-1-24-144} Container image &quot;gcr.io/google_containers/pause-amd64:3.0&quot; already present on machine 59m 59m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Created {kubelet ip-10-1-24-144} Created container with docker id bee2cc05825c; Security:[seccomp=unconfined] 59m 59m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Started {kubelet ip-10-1-24-144} Started container with docker id bee2cc05825c 59m 59m 1 dummy-2088944543 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: dummy-2088944543-qjcd9 59m 59m 1 dummy Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set dummy-2088944543 to 1 1h 1h 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/etcd-amd64:2.2.5&quot; 1h 1h 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/etcd-amd64:2.2.5&quot; 1h 1h 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 8f0fdf66dbb5; Security:[seccomp=unconfined] 1h 1h 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 8f0fdf66dbb5 1h 1h 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-apiserver-amd64:v1.4.4&quot; 1h 1h 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-apiserver-amd64:v1.4.4&quot; 1h 1h 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 0926c48e85b0; Security:[seccomp=unconfined] 1h 1h 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 0926c48e85b0 1h 1h 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-controller-manager-amd64:v1.4.4&quot; 1h 1h 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-controller-manager-amd64:v1.4.4&quot; 1h 1h 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 46485fd67302; Security:[seccomp=unconfined] 1h 1h 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 46485fd67302 59m 59m 1 kube-discovery-1150918428-d2nsx Pod Normal Scheduled {default-scheduler } Successfully assigned kube-discovery-1150918428-d2nsx to ip-10-1-24-144 59m 59m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-discovery-amd64:1.0&quot; 59m 59m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-discovery-amd64:1.0&quot; 59m 59m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Created {kubelet ip-10-1-24-144} Created container with docker id bc5677a97797; Security:[seccomp=unconfined] 59m 59m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Started {kubelet ip-10-1-24-144} Started container with docker id bc5677a97797 59m 59m 1 kube-discovery-1150918428 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: kube-discovery-1150918428-d2nsx 59m 59m 1 kube-discovery Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set kube-discovery-1150918428 to 1 59m 59m 1 kube-dns-654381707-vf4te Pod Normal Scheduled {default-scheduler } Successfully assigned kube-dns-654381707-vf4te to ip-10-1-24-144 1m 59m 3489 kube-dns-654381707-vf4te Pod Warning FailedSync {kubelet ip-10-1-24-144} Error syncing pod, skipping: failed to &quot;SetupNetwork&quot; for &quot;kube-dns-654381707-vf4te_kube-system&quot; with SetupNetworkError: &quot;Failed to setup network for pod \&quot;kube-dns-654381707-vf4te_kube-system(c37672ee-bb00-11e6-9cb2-06d39f467f73)\&quot; using network plugins \&quot;cni\&quot;: cni config unintialized; Skipping pod&quot; 1s 1m 70 kube-dns-654381707-vf4te Pod Warning FailedSync {kubelet ip-10-1-24-144} Error syncing pod, skipping: failed to &quot;SetupNetwork&quot; for &quot;kube-dns-654381707-vf4te_kube-system&quot; with SetupNetworkError: &quot;Failed to setup network for pod \&quot;kube-dns-654381707-vf4te_kube-system(c37672ee-bb00-11e6-9cb2-06d39f467f73)\&quot; using network plugins \&quot;cni\&quot;: open /run/flannel/subnet.env: no such file or directory; Skipping pod&quot; 59m 59m 1 kube-dns-654381707 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: kube-dns-654381707-vf4te 59m 59m 1 kube-dns Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set kube-dns-654381707 to 1 2m 2m 1 kube-flannel-ds-oxl8w Pod spec.containers{kube-flannel} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;quay.io/coreos/flannel-git:v0.6.1-28-g5dde68d-amd64&quot; 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{kube-flannel} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;quay.io/coreos/flannel-git:v0.6.1-28-g5dde68d-amd64&quot; 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{kube-flannel} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 3f87aa05dd39; Security:[seccomp=unconfined] 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{kube-flannel} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 3f87aa05dd39 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{install-cni} Normal Pulled {kubelet ip-10-1-24-144} Container image &quot;quay.io/coreos/flannel-git:v0.6.1-28-g5dde68d-amd64&quot; already present on machine 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{install-cni} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 95c33cbcc458; Security:[seccomp=unconfined] 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{install-cni} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 95c33cbcc458 2m 2m 1 kube-flannel-ds DaemonSet Normal SuccessfulCreate {daemon-set } Created pod: kube-flannel-ds-oxl8w 59m 59m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-proxy-amd64:v1.4.4&quot; 59m 59m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-proxy-amd64:v1.4.4&quot; 59m 59m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Created {kubelet ip-10-1-24-144} Created container with docker id c24e0db7ab80; Security:[seccomp=unconfined] 59m 59m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Started {kubelet ip-10-1-24-144} Started container with docker id c24e0db7ab80 59m 59m 1 kube-proxy DaemonSet Normal SuccessfulCreate {daemon-set } Created pod: kube-proxy-5vjdd 1h 1h 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Pulling {kubelet ip-10-1-24-144} pulling image &quot;gcr.io/google_containers/kube-scheduler-amd64:v1.4.4&quot; 1h 1h 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image &quot;gcr.io/google_containers/kube-scheduler-amd64:v1.4.4&quot; 1h 1h 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 8f2d941c1e27; Security:[seccomp=unconfined] 1h 1h 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 8f2d941c1e27"><pre class="notranslate"><code class="notranslate"># kubectl get events -n kube-system LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE 59m 59m 1 dummy-2088944543-qjcd9 Pod Normal Scheduled {default-scheduler } Successfully assigned dummy-2088944543-qjcd9 to ip-10-1-24-144 59m 59m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Pulled {kubelet ip-10-1-24-144} Container image "gcr.io/google_containers/pause-amd64:3.0" already present on machine 59m 59m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Created {kubelet ip-10-1-24-144} Created container with docker id bee2cc05825c; Security:[seccomp=unconfined] 59m 59m 1 dummy-2088944543-qjcd9 Pod spec.containers{dummy} Normal Started {kubelet ip-10-1-24-144} Started container with docker id bee2cc05825c 59m 59m 1 dummy-2088944543 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: dummy-2088944543-qjcd9 59m 59m 1 dummy Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set dummy-2088944543 to 1 1h 1h 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/etcd-amd64:2.2.5" 1h 1h 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/etcd-amd64:2.2.5" 1h 1h 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 8f0fdf66dbb5; Security:[seccomp=unconfined] 1h 1h 1 etcd-ip-10-1-24-144 Pod spec.containers{etcd} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 8f0fdf66dbb5 1h 1h 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-apiserver-amd64:v1.4.4" 1h 1h 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-apiserver-amd64:v1.4.4" 1h 1h 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 0926c48e85b0; Security:[seccomp=unconfined] 1h 1h 1 kube-apiserver-ip-10-1-24-144 Pod spec.containers{kube-apiserver} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 0926c48e85b0 1h 1h 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-controller-manager-amd64:v1.4.4" 1h 1h 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-controller-manager-amd64:v1.4.4" 1h 1h 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 46485fd67302; Security:[seccomp=unconfined] 1h 1h 1 kube-controller-manager-ip-10-1-24-144 Pod spec.containers{kube-controller-manager} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 46485fd67302 59m 59m 1 kube-discovery-1150918428-d2nsx Pod Normal Scheduled {default-scheduler } Successfully assigned kube-discovery-1150918428-d2nsx to ip-10-1-24-144 59m 59m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-discovery-amd64:1.0" 59m 59m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-discovery-amd64:1.0" 59m 59m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Created {kubelet ip-10-1-24-144} Created container with docker id bc5677a97797; Security:[seccomp=unconfined] 59m 59m 1 kube-discovery-1150918428-d2nsx Pod spec.containers{kube-discovery} Normal Started {kubelet ip-10-1-24-144} Started container with docker id bc5677a97797 59m 59m 1 kube-discovery-1150918428 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: kube-discovery-1150918428-d2nsx 59m 59m 1 kube-discovery Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set kube-discovery-1150918428 to 1 59m 59m 1 kube-dns-654381707-vf4te Pod Normal Scheduled {default-scheduler } Successfully assigned kube-dns-654381707-vf4te to ip-10-1-24-144 1m 59m 3489 kube-dns-654381707-vf4te Pod Warning FailedSync {kubelet ip-10-1-24-144} Error syncing pod, skipping: failed to "SetupNetwork" for "kube-dns-654381707-vf4te_kube-system" with SetupNetworkError: "Failed to setup network for pod \"kube-dns-654381707-vf4te_kube-system(c37672ee-bb00-11e6-9cb2-06d39f467f73)\" using network plugins \"cni\": cni config unintialized; Skipping pod" 1s 1m 70 kube-dns-654381707-vf4te Pod Warning FailedSync {kubelet ip-10-1-24-144} Error syncing pod, skipping: failed to "SetupNetwork" for "kube-dns-654381707-vf4te_kube-system" with SetupNetworkError: "Failed to setup network for pod \"kube-dns-654381707-vf4te_kube-system(c37672ee-bb00-11e6-9cb2-06d39f467f73)\" using network plugins \"cni\": open /run/flannel/subnet.env: no such file or directory; Skipping pod" 59m 59m 1 kube-dns-654381707 ReplicaSet Normal SuccessfulCreate {replicaset-controller } Created pod: kube-dns-654381707-vf4te 59m 59m 1 kube-dns Deployment Normal ScalingReplicaSet {deployment-controller } Scaled up replica set kube-dns-654381707 to 1 2m 2m 1 kube-flannel-ds-oxl8w Pod spec.containers{kube-flannel} Normal Pulling {kubelet ip-10-1-24-144} pulling image "quay.io/coreos/flannel-git:v0.6.1-28-g5dde68d-amd64" 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{kube-flannel} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "quay.io/coreos/flannel-git:v0.6.1-28-g5dde68d-amd64" 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{kube-flannel} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 3f87aa05dd39; Security:[seccomp=unconfined] 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{kube-flannel} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 3f87aa05dd39 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{install-cni} Normal Pulled {kubelet ip-10-1-24-144} Container image "quay.io/coreos/flannel-git:v0.6.1-28-g5dde68d-amd64" already present on machine 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{install-cni} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 95c33cbcc458; Security:[seccomp=unconfined] 1m 1m 1 kube-flannel-ds-oxl8w Pod spec.containers{install-cni} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 95c33cbcc458 2m 2m 1 kube-flannel-ds DaemonSet Normal SuccessfulCreate {daemon-set } Created pod: kube-flannel-ds-oxl8w 59m 59m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-proxy-amd64:v1.4.4" 59m 59m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-proxy-amd64:v1.4.4" 59m 59m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Created {kubelet ip-10-1-24-144} Created container with docker id c24e0db7ab80; Security:[seccomp=unconfined] 59m 59m 1 kube-proxy-5vjdd Pod spec.containers{kube-proxy} Normal Started {kubelet ip-10-1-24-144} Started container with docker id c24e0db7ab80 59m 59m 1 kube-proxy DaemonSet Normal SuccessfulCreate {daemon-set } Created pod: kube-proxy-5vjdd 1h 1h 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Pulling {kubelet ip-10-1-24-144} pulling image "gcr.io/google_containers/kube-scheduler-amd64:v1.4.4" 1h 1h 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Pulled {kubelet ip-10-1-24-144} Successfully pulled image "gcr.io/google_containers/kube-scheduler-amd64:v1.4.4" 1h 1h 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Created {kubelet ip-10-1-24-144} Created container with docker id 8f2d941c1e27; Security:[seccomp=unconfined] 1h 1h 1 kube-scheduler-ip-10-1-24-144 Pod spec.containers{kube-scheduler} Normal Started {kubelet ip-10-1-24-144} Started container with docker id 8f2d941c1e27 </code></pre></div>
0
<p dir="auto">I am using following code in my component, but handleChange event is not getting fired as i try to select one of the radio buttons.<br> I have tried to update my react and react-dom version from 16.0.0 to 16.0.2.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Radio, { RadioGroup } from 'material-ui/Radio'; import { FormLabel, FormControl, FormControlLabel, FormHelperText } from 'material-ui/Form'; const styles = theme =&gt; ({ root: { display: 'flex', }, formControl: { margin: theme.spacing.unit * 3, }, group: { margin: `${theme.spacing.unit}px 0`, }, }); class RadioButtonsGroup extends React.Component { state = { value: '', }; handleChange = (event, value) =&gt; { debugger; this.setState({ value }); }; render() { const { classes } = this.props; return ( &lt;div className={classes.root}&gt; &lt;FormControl component=&quot;fieldset&quot; required className={classes.formControl}&gt; &lt;FormLabel component=&quot;legend&quot;&gt;Gender&lt;/FormLabel&gt; &lt;RadioGroup aria-label=&quot;gender&quot; name=&quot;gender1&quot; className={classes.group} value={this.state.value} onChange={this.handleChange} &gt; &lt;FormControlLabel value=&quot;male&quot; control={&lt;Radio /&gt;} label=&quot;male&quot; /&gt; &lt;FormControlLabel value=&quot;female&quot; control={&lt;Radio /&gt;} label=&quot;female&quot; /&gt; &lt;FormControlLabel value=&quot;other&quot; control={&lt;Radio /&gt;} label=&quot;other&quot; /&gt; &lt;FormControlLabel value=&quot;disabled&quot; disabled control={&lt;Radio /&gt;} label=&quot;Disabled&quot; /&gt; &lt;/RadioGroup&gt; &lt;/FormControl&gt; &lt;/div&gt; ); } } RadioButtonsGroup.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(RadioButtonsGroup);"><pre class="notranslate"><code class="notranslate">/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Radio, { RadioGroup } from 'material-ui/Radio'; import { FormLabel, FormControl, FormControlLabel, FormHelperText } from 'material-ui/Form'; const styles = theme =&gt; ({ root: { display: 'flex', }, formControl: { margin: theme.spacing.unit * 3, }, group: { margin: `${theme.spacing.unit}px 0`, }, }); class RadioButtonsGroup extends React.Component { state = { value: '', }; handleChange = (event, value) =&gt; { debugger; this.setState({ value }); }; render() { const { classes } = this.props; return ( &lt;div className={classes.root}&gt; &lt;FormControl component="fieldset" required className={classes.formControl}&gt; &lt;FormLabel component="legend"&gt;Gender&lt;/FormLabel&gt; &lt;RadioGroup aria-label="gender" name="gender1" className={classes.group} value={this.state.value} onChange={this.handleChange} &gt; &lt;FormControlLabel value="male" control={&lt;Radio /&gt;} label="male" /&gt; &lt;FormControlLabel value="female" control={&lt;Radio /&gt;} label="female" /&gt; &lt;FormControlLabel value="other" control={&lt;Radio /&gt;} label="other" /&gt; &lt;FormControlLabel value="disabled" disabled control={&lt;Radio /&gt;} label="Disabled" /&gt; &lt;/RadioGroup&gt; &lt;/FormControl&gt; &lt;/div&gt; ); } } RadioButtonsGroup.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(RadioButtonsGroup); </code></pre></div> <ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">handleChange function should execute when a user tries to click on one of the radio buttons.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Nothing happens if a user tries to select a radio button and no input is shown to user</p> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.21</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Chrome-62.0.3202.94</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">Issue : in mobile where there is possible to scroll (in search result) the keyboard not disappear when the user scroll (there isn't blur on the input) and therefore it give bed user experience.</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">On mobile devices if it's possible to scroll on search result, when the user scroll the keyboard should disappear.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The keyboard not disappear</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>enter with mobile devices</li> <li>scroll on menu result</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">The bug cause bed experience when using autocomplete component on mobile devices</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>v1-beta (all)</td> </tr> <tr> <td>React</td> <td>15.5.4</td> </tr> <tr> <td>browser</td> <td>all</td> </tr> </tbody> </table>
0
<h3 dir="auto">Current Behavior:</h3> <p dir="auto">If the working directory's name differs from the name of the npm package it contains, then the generated package-lock.json has a ["packages"][""]["name"] property in violation of the npm v7 spec for the package-lock.json file per the docs at <a href="https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json" rel="nofollow">https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json</a><br> for example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;impact-api&quot;, &quot;version&quot;: &quot;2.27.0&quot;, &quot;lockfileVersion&quot;: 2, &quot;requires&quot;: true, &quot;packages&quot;: { &quot;&quot;: { &quot;name&quot;: &quot;impact-api&quot;, &quot;version&quot;: &quot;2.27.0&quot;, &quot;license&quot;: &quot;UNLICENSED&quot;, &quot;dependencies&quot;: { ..."><pre class="notranslate"><code class="notranslate">{ "name": "impact-api", "version": "2.27.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "impact-api", "version": "2.27.0", "license": "UNLICENSED", "dependencies": { ... </code></pre></div> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">The generated package-lock.json file should not have a "name" property under ["packages"][""]<br> for example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;impact-api&quot;, &quot;version&quot;: &quot;2.27.0&quot;, &quot;lockfileVersion&quot;: 2, &quot;requires&quot;: true, &quot;packages&quot;: { &quot;&quot;: { &quot;version&quot;: &quot;2.27.0&quot;, &quot;license&quot;: &quot;UNLICENSED&quot;, &quot;dependencies&quot;: { ..."><pre class="notranslate"><code class="notranslate">{ "name": "impact-api", "version": "2.27.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "version": "2.27.0", "license": "UNLICENSED", "dependencies": { ... </code></pre></div> <h3 dir="auto">Steps To Reproduce:</h3> <ol dir="auto"> <li>clone an npm project/package e.g. from GitHub into a filesystem directory whose <code class="notranslate">name</code> differs from the name of the npm package</li> <li>remove package-lock.json and the ./node_modules directory if they exist</li> <li>Run <code class="notranslate">npm i</code></li> <li>The generated package-lock.json contains an errant ["packages"][""]["name"] property in violation of the npm v7 spec for the package-lock.json file per the docs at <a href="https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json" rel="nofollow">https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json</a></li> </ol> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS: macOS Big Sur Version 11.1</li> <li>Node: 14.16.0</li> <li>npm: 7.6.0</li> </ul>
<h3 dir="auto">Current Behavior:</h3> <p dir="auto">package-lock.json changes depending on name of local copy of git repo, e.g. if i have two copies of the same repo locally one which matches the name in package.json and one which doesn't i get two different package-lock files, one specifies the name of the package in the inner packages list and one doesn't.</p> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">package-lock.json should be independent of top level directory name, when working in a team there shouldn't be unnecessary changes to package-lock file due to a team member having a different local name of their git repository.</p> <h3 dir="auto">Steps To Reproduce:</h3> <ol dir="auto"> <li>clone a repository twice one in the default named directory and one into a name that differs from the repo name.</li> <li>run <code class="notranslate">npm install</code></li> <li>two different package-lock files will be generated.</li> </ol> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS: Ubuntu 20.04</li> <li>Node: 15.3.0</li> <li>npm: 7.0.14</li> </ul>
1
<p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/shardingsphere/blob/1ea6d35c6a2deacb6e148158c6ac4adc6c60ef38/shardingsphere-infra/shardingsphere-infra-executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/context/ExecutionContextBuilder.java#L73-L78">shardingsphere/shardingsphere-infra/shardingsphere-infra-executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/context/ExecutionContextBuilder.java</a> </p> <p class="mb-0 color-fg-muted"> Lines 73 to 78 in <a data-pjax="true" class="commit-tease-sha" href="/apache/shardingsphere/commit/1ea6d35c6a2deacb6e148158c6ac4adc6c60ef38">1ea6d35</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="L73" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="73"></td> <td id="LC73" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-smi">List</span>&lt;<span class="pl-smi">RouteMapper</span>&gt; <span class="pl-en">getRouteTableRouteMappers</span>(<span class="pl-k">final</span> <span class="pl-smi">Collection</span>&lt;<span class="pl-smi">RouteMapper</span>&gt; <span class="pl-s1">tableMappers</span>) { </td> </tr> <tr class="border-0"> <td id="L74" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="74"></td> <td id="LC74" 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-c1">null</span> == <span class="pl-s1">tableMappers</span>) { </td> </tr> <tr class="border-0"> <td id="L75" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="75"></td> <td id="LC75" 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-smi">Collections</span>.<span class="pl-en">emptyList</span>(); </td> </tr> <tr class="border-0"> <td id="L76" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="76"></td> <td id="LC76" 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="L77" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="77"></td> <td id="LC77" 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">tableMappers</span>.<span class="pl-en">stream</span>().<span class="pl-en">map</span>(<span class="pl-s1">routeMapper</span> -&gt; <span class="pl-k">new</span> <span class="pl-smi">RouteMapper</span>(<span class="pl-s1">routeMapper</span>.<span class="pl-en">getLogicName</span>(), <span class="pl-s1">routeMapper</span>.<span class="pl-en">getActualName</span>())).<span class="pl-en">collect</span>(<span class="pl-smi">Collectors</span>.<span class="pl-en">toList</span>()); </td> </tr> <tr class="border-0"> <td id="L78" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="78"></td> <td id="LC78" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20503072/140038642-acffc9de-73b9-4733-b65b-a901c2734c05.png"><img src="https://user-images.githubusercontent.com/20503072/140038642-acffc9de-73b9-4733-b65b-a901c2734c05.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">They are equal but not the same instances. Could we reuse the instances?</p>
<h2 dir="auto">Bug Report</h2> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;sharding-jdbc-core&lt;/artifactId&gt; &lt;version&gt;4.0.1&lt;/version&gt; &lt;/dependency&gt;"><pre class="notranslate"><code class="notranslate"> &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;sharding-jdbc-core&lt;/artifactId&gt; &lt;version&gt;4.0.1&lt;/version&gt; &lt;/dependency&gt; </code></pre></div> <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">sql execute ok, and return the result</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto"><code class="notranslate"> SQL: SELECT * from test_user where id = ( select test_user_id from test_user_bind where uid =? and start_time &lt;= now() and end_time &gt; now() order by id desc limit 1 ) Cause: java.lang.IllegalStateException: Must have sharding column with subquery. at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76) at sun.reflect.GeneratedMethodAccessor910.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) ... 108 more Caused by: java.lang.IllegalStateException: Must have sharding column with subquery. at com.google.common.base.Preconditions.checkState(Preconditions.java:444) at org.apache.shardingsphere.core.route.router.sharding.ShardingRouter.checkSubqueryShardingValues(ShardingRouter.java:148) at org.apache.shardingsphere.core.route.router.sharding.ShardingRouter.route(ShardingRouter.java:109) at org.apache.shardingsphere.core.route.PreparedStatementRoutingEngine.route(PreparedStatementRoutingEngine.java:63) at org.apache.shardingsphere.core.PreparedQueryShardingEngine.route(PreparedQueryShardingEngine.java:59) at org.apache.shardingsphere.core.BaseShardingEngine.executeRoute(BaseShardingEngine.java:85) at org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:68) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.shard(ShardingPreparedStatement.java:249) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:190) at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:64) at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79) at sun.reflect.GeneratedMethodAccessor825.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:63) at com.sun.proxy.$Proxy202.query(Unknown Source) at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:67) at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324) at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:163) at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:90) at sun.reflect.GeneratedMethodAccessor823.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:63) at com.sun.proxy.$Proxy199.query(Unknown Source) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) ... 114 more</code></p> <h3 dir="auto">Reason analyze (If you can)</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <p dir="auto">The sharding yaml config:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ds_user: !!com.mchange.v2.c3p0.ComboPooledDataSource driverClass: @jdbc.driverClassName@ jdbcUrl: @jdbc.db_user.url@ user: @jdbc.db_user.user@ password: @jdbc.db_user.password@ ds0: !!com.mchange.v2.c3p0.ComboPooledDataSource driverClass: @jdbc.driverClassName@ jdbcUrl: @jdbc.db0.url@ user: @jdbc.db0.user@ password: @jdbc.db0.password@ ds1: !!com.mchange.v2.c3p0.ComboPooledDataSource driverClass: @jdbc.driverClassName@ jdbcUrl: @jdbc.db1.url@ user: @jdbc.db1.user@ password: @jdbc.db1.password@ shardingRule: tables: zoom_user_bind: actualDataNodes: ds_user.zoom_user_bind databaseStrategy: none: {} tableStrategy: none: {} zoom_user: actualDataNodes: ds_user.zoom_user databaseStrategy: none: {} tableStrategy: none: {} defaultDataSourceName: ds_user defaultDatabaseStrategy: none: {} defaultTableStrategy: none: {} props: sql.show: false``` ### Example codes for reproduce this issue (such as a github link)."><pre lang="dataSources:" class="notranslate"><code class="notranslate"> ds_user: !!com.mchange.v2.c3p0.ComboPooledDataSource driverClass: @jdbc.driverClassName@ jdbcUrl: @jdbc.db_user.url@ user: @jdbc.db_user.user@ password: @jdbc.db_user.password@ ds0: !!com.mchange.v2.c3p0.ComboPooledDataSource driverClass: @jdbc.driverClassName@ jdbcUrl: @jdbc.db0.url@ user: @jdbc.db0.user@ password: @jdbc.db0.password@ ds1: !!com.mchange.v2.c3p0.ComboPooledDataSource driverClass: @jdbc.driverClassName@ jdbcUrl: @jdbc.db1.url@ user: @jdbc.db1.user@ password: @jdbc.db1.password@ shardingRule: tables: zoom_user_bind: actualDataNodes: ds_user.zoom_user_bind databaseStrategy: none: {} tableStrategy: none: {} zoom_user: actualDataNodes: ds_user.zoom_user databaseStrategy: none: {} tableStrategy: none: {} defaultDataSourceName: ds_user defaultDatabaseStrategy: none: {} defaultTableStrategy: none: {} props: sql.show: false``` ### Example codes for reproduce this issue (such as a github link). </code></pre></div>
0
<p dir="auto">I notice that it exists a country form type that display a list of countries using the Intl bundle.</p> <p dir="auto">This form type is very usefull, but there is no easy way to restrict the countries available. For example if I want the user to select a country into a predefined list, it is currently not possible (except creating a custom choice form type).</p> <p dir="auto">What would be wonderfull is that we can configure a list of predefined countries by sending an array containing the countries ISO code (array('uk', 'fr', 'it', 'es') for example) And the component will generate the list translating those ISO code into user language country name.</p> <p dir="auto">NOTE: This could also be applied to language form type.</p>
<p dir="auto">It would be nice to have an option named for instance <code class="notranslate">allowed_locales</code>, that when set, would cause the widget to display only locales that appear in it, and would throw an exception if one of them can't be found in <code class="notranslate">Intl::getLocaleBundle()-&gt;getLocaleNames()</code> keys. If this is something that you think would be useful, I can write the code and make a PR.</p>
1
<h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Ubuntu 16.04</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> (please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):<br> -rw-r--r-- 1 root root 558720 Sep 15 07:02 /usr/local/cuda/lib64/libcudadevrt.a<br> lrwxrwxrwx 1 root root 16 Sep 15 07:05 /usr/local/cuda/lib64/libcudart.so -&gt; libcudart.so.8.0<br> lrwxrwxrwx 1 root root 19 Sep 15 07:05 /usr/local/cuda/lib64/libcudart.so.8.0 -&gt; libcudart.so.8.0.44<br> -rw-r--r-- 1 root root 415432 Sep 15 07:02 /usr/local/cuda/lib64/libcudart.so.8.0.44<br> -rw-r--r-- 1 root root 775162 Sep 15 07:02 /usr/local/cuda/lib64/libcudart_static.a<br> lrwxrwxrwx 1 xj users 13 Jul 27 13:55 /usr/local/cuda/lib64/libcudnn.so -&gt; libcudnn.so.5<br> lrwxrwxrwx 1 xj users 17 Jul 27 13:55 /usr/local/cuda/lib64/libcudnn.so.5 -&gt; libcudnn.so.5.1.5<br> -rwxr-xr-x 1 xj xj 78065952 Apr 23 03:17 /usr/local/cuda/lib64/libcudnn.so.5.0.5<br> -rwxrwxr-x 1 xj users 79337624 Jul 27 13:53 /usr/local/cuda/lib64/libcudnn.so.5.1.5<br> -rw-rw-r-- 1 xj users 69756172 Jul 27 13:53 /usr/local/cuda/lib64/libcudnn_static.a</p> <p dir="auto">If installed from source, provide</p> <ol dir="auto"> <li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/bad7c50b9dc9789ad7dd0a62daca40b7269841ed/hovercard" href="https://github.com/tensorflow/tensorflow/commit/bad7c50b9dc9789ad7dd0a62daca40b7269841ed"><tt>bad7c50</tt></a></li> <li>The output of <code class="notranslate">bazel version</code><br> .<br> Build label: 0.3.1<br> Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br> Build time: Fri Jul 29 09:09:52 2016 (1469783392)<br> Build timestamp: 1469783392<br> Build timestamp as int: 1469783392</li> </ol> <h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3> <p dir="auto">from <strong>future</strong> import absolute_import<br> from <strong>future</strong> import division<br> from <strong>future</strong> import print_function</p> <p dir="auto">import tensorflow as tf<br> import tensorflow.contrib as contrib<br> import numpy as np</p> <h1 dir="auto">Data sets</h1> <p dir="auto">IRIS_TRAINING = "iris_training.csv"<br> IRIS_TEST = "iris_test.csv"</p> <h1 dir="auto">Load datasets.</h1> <p dir="auto">training_set = contrib.learn.datasets.base.load_csv_with_header(filename=IRIS_TRAINING,<br> target_dtype=np.int,<br> features_dtype=np.float32)<br> test_set = contrib.learn.datasets.base.load_csv_with_header(filename=IRIS_TEST,<br> target_dtype=np.int,<br> features_dtype=np.float32)</p> <h1 dir="auto">Specify that all features have real-value data</h1> <p dir="auto">feature_columns = [contrib.layers.real_valued_column("", dimension=4)]</p> <h1 dir="auto">Build 3 layer DNN with 10, 20, 10 units respectively.</h1> <p dir="auto">classifier = contrib.learn.DNNClassifier(feature_columns=feature_columns,<br> hidden_units=[10, 20, 10],<br> n_classes=2,<br> model_dir="/tmp/iris_model")</p> <h1 dir="auto">Fit model.</h1> <p dir="auto">classifier.fit(x=training_set.data,<br> y=training_set.target.astype(np.int),<br> steps=200)</p>
<p dir="auto">After upgrade from 0.10.0 to 0.11.0rc0 my code no longer runs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(802, 277) (802, 1) WARNING:tensorflow:float64 is not supported by many models, consider casting to float32. WARNING:tensorflow:float64 is not supported by many models, consider casting to float32. Traceback (most recent call last): File &quot;brain.py&quot;, line 47, in &lt;module&gt; classifier.fit(x=trainX, y=trainY, steps=2000) File &quot;/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/dnn.py&quot;, line 435, in fit max_steps=max_steps) File &quot;/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py&quot;, line 333, in fit max_steps=max_steps) File &quot;/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py&quot;, line 662, in _train_model train_op, loss_op = self._get_train_ops(features, targets) File &quot;/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py&quot;, line 963, in _get_train_ops _, loss, train_op = self._call_model_fn(features, targets, ModeKeys.TRAIN) File &quot;/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py&quot;, line 944, in _call_model_fn return self._model_fn(features, targets, mode=mode, params=self.params) File &quot;/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/dnn.py&quot;, line 258, in _dnn_classifier_model_fn weight=_get_weight_tensor(features, weight_column_name)) File &quot;/usr/lib/python2.7/site-packages/tensorflow/contrib/losses/python/losses/loss_ops.py&quot;, line 329, in sigmoid_cross_entropy logits.get_shape().assert_is_compatible_with(multi_class_labels.get_shape()) File &quot;/usr/lib/python2.7/site-packages/tensorflow/python/framework/tensor_shape.py&quot;, line 750, in assert_is_compatible_with raise ValueError(&quot;Shapes %s and %s are incompatible&quot; % (self, other)) ValueError: Shapes (?, 1) and (?,) are incompatible"><pre class="notranslate"><code class="notranslate">(802, 277) (802, 1) WARNING:tensorflow:float64 is not supported by many models, consider casting to float32. WARNING:tensorflow:float64 is not supported by many models, consider casting to float32. Traceback (most recent call last): File "brain.py", line 47, in &lt;module&gt; classifier.fit(x=trainX, y=trainY, steps=2000) File "/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/dnn.py", line 435, in fit max_steps=max_steps) File "/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 333, in fit max_steps=max_steps) File "/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 662, in _train_model train_op, loss_op = self._get_train_ops(features, targets) File "/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 963, in _get_train_ops _, loss, train_op = self._call_model_fn(features, targets, ModeKeys.TRAIN) File "/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 944, in _call_model_fn return self._model_fn(features, targets, mode=mode, params=self.params) File "/usr/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/dnn.py", line 258, in _dnn_classifier_model_fn weight=_get_weight_tensor(features, weight_column_name)) File "/usr/lib/python2.7/site-packages/tensorflow/contrib/losses/python/losses/loss_ops.py", line 329, in sigmoid_cross_entropy logits.get_shape().assert_is_compatible_with(multi_class_labels.get_shape()) File "/usr/lib/python2.7/site-packages/tensorflow/python/framework/tensor_shape.py", line 750, in assert_is_compatible_with raise ValueError("Shapes %s and %s are incompatible" % (self, other)) ValueError: Shapes (?, 1) and (?,) are incompatible </code></pre></div> <p dir="auto">My code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... print shape(trainX) # (802, 277) print shape(trainY) # (802, 1) classifier.fit(x=trainX, y=trainY, steps=2000) ..."><pre class="notranslate"><code class="notranslate">... print shape(trainX) # (802, 277) print shape(trainY) # (802, 1) classifier.fit(x=trainX, y=trainY, steps=2000) ... </code></pre></div> <p dir="auto">This worked fine on 0.10.0. Notice the shapes in the beginning of output (looks like a valid combination to me).</p> <h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3> <p dir="auto">none</p> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Fedora 23, TF 0.11.0rc0</p>
1
<h3 dir="auto">Vue.js version</h3> <p dir="auto">1.0.26</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="https://jsfiddle.net/gregmi/yLqnv2ex/" rel="nofollow">https://jsfiddle.net/gregmi/yLqnv2ex/</a></p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>run and check the output, it says: "params.myAttr: undefined"</li> <li>comment out the line 13 (props)</li> <li>run again and check the output, it says: "params.myAttr: content"</li> </ol> <h3 dir="auto">What is Expected?</h3> <p dir="auto">It should say: "myAttr: content"</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">When there is a tag <strong>attribute</strong> that is also a vue <strong>property</strong> and vue <strong>directive</strong> parameter at the same time, it is not reachable from within a vue directive (<em>this.params.myAttr</em>), but one can get it from vm (<em>this.vm.myAttr</em>).</p> <p dir="auto">It seem like a race condition of sorts (in time when vm properties are created) between vue component and vue directive.</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.6</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/xayduwf0/" rel="nofollow">https://jsfiddle.net/xayduwf0/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">open the link and run</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">there should no html in the result window</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">the result shows all the rendered html</p> <hr> <p dir="auto">I'm not sure it is by design or a bug……<br> The scene I can think of the use of is, if someone use Vue.js in an progressive web page, they maybe need to control the app by themself, like call $destroy by them self, now if they want to clean the document, they need to execute</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="app.$destroy(); app.$el.parentNode.removeChild(app.$el);"><pre lang="javasscript" class="notranslate"><code class="notranslate">app.$destroy(); app.$el.parentNode.removeChild(app.$el); </code></pre></div>
0
<p dir="auto"><strong>Steps to reproduce</strong> - see Plnkr demo below (<strong><em>touchscreen required</em></strong>)</p> <p dir="auto">I have a Parent Component with an array (of Child Components) that is rendered using *<strong>ngFor</strong>.</p> <p dir="auto"><code class="notranslate">&lt;my-child-cmp *ngFor="#child of children" [info]="child" ... &gt;&lt;/my-child-cmp&gt;</code></p> <p dir="auto">Within MyChildCmp I have an event listener to detect which child is being dragged</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@HostListener('mousedown', ['$event']) @HostListener('touchstart', ['$event']) onDragStart(event) { this.selected.emit(this.info.id); }"><pre class="notranslate"><code class="notranslate">@HostListener('mousedown', ['$event']) @HostListener('touchstart', ['$event']) onDragStart(event) { this.selected.emit(this.info.id); } </code></pre></div> <p dir="auto">The Parent Component enables each Child Component to be '<em>Dragged</em>' about the screen by</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@HostListener('mousemove', ['$event']) @HostListener('touchmove', ['$event']) onDragMove(event) { ... } @HostListener('mouseup', ['$event']) @HostListener('touchend', ['$event']) @HostListener('touchcancel', ['$event']) onDragEnd(event) { ... }"><pre class="notranslate"><code class="notranslate">@HostListener('mousemove', ['$event']) @HostListener('touchmove', ['$event']) onDragMove(event) { ... } @HostListener('mouseup', ['$event']) @HostListener('touchend', ['$event']) @HostListener('touchcancel', ['$event']) onDragEnd(event) { ... } </code></pre></div> <p dir="auto"><strong>However</strong>, if an event causes the <em>children</em> array to be updated <strong>during a drag</strong>, it causes the TouchEvents (i.e. touchmove, touchend, touchcancel) to <strong>stop firing</strong> if the Child component was removed from the DOM. Using a mouse instead of touchscreen <strong>has no issues whatsoever!</strong></p> <p dir="auto"><strong>Use case</strong>: Appointment bookings system. Child Component is a booking, you drag the booking to the 'Next Day' button, which updates the children array to the next day's bookings. Angular 2 removes the previous days bookings from the DOM (even when touchstart is stiil bound to removed element)</p> <p dir="auto">See my Plnkr demo below, where I update the <em>children</em> array <strong><em>after 2 seconds of dragging</em></strong>.</p> <p dir="auto"><em>Plnkr Demo: <a href="https://plnkr.co/edit/1RzYpEgCI0y60pCauvGp?p=preview" rel="nofollow">https://plnkr.co/edit/1RzYpEgCI0y60pCauvGp?p=preview</a></em></p> <p dir="auto"><strong>Expected/desired behavior</strong>: If the mouse behaviour works, I'd expect the touch equivalent to work the same.</p> <p dir="auto">Angular2 should give the user programmatic ability to keep a single component from being removed from the DOM (i.e. the component being dragged) OR first check if there is an active <strong><em>touchstart</em></strong> event on a Component it is about to remove from the DOM. It'd be great if it wasn't removed until <em>touchend</em> or <em>touchcancel</em> was fired (maybe setting display: none?)</p> <p dir="auto"><strong>Other information</strong><br> Tested in: Chrome 49.0.2623.87 m (Win7 Touchscreen) and iOS Safari 9.2.1<br> Angular2 Beta14</p>
<p dir="auto"><strong>I'm submitting a ...</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report "><pre class="notranslate"><code class="notranslate">[x] bug report </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">If I drag a component, bound within an <code class="notranslate">*ngFor</code>, (using a <strong>touchscreen</strong>) and an external event causes the ngFor array to update, <code class="notranslate">touchmove</code> events stop firing. This is a terrible experience on mobile. Angular 2 is nearing official release and I'm concerned how to fix the <strong>mobile</strong> experience. <strong>Mouse</strong> dragging does not have this issue.</p> <p dir="auto"><strong>E.g.</strong> I have a data array, <code class="notranslate">currentBookings = [{..}, {..}]</code>, that is bound with an <code class="notranslate">*ngFor</code> such as</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;booking *ngFor=&quot;let booking of currentBookings&quot;&gt;&lt;/booking&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-smi">booking</span> <span class="pl-c1">*</span><span class="pl-s1">ngFor</span><span class="pl-c1">=</span><span class="pl-s">"let booking of currentBookings"</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-s1">booking</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">and I drag one of the generated <code class="notranslate">&lt;booking&gt;</code> components to the 'nextDay' button, which causes the <code class="notranslate">currentBookings</code> array to update. See <a href="http://plnkr.co/edit/QR6WDzv6NxOmn6LXTngG?p=preview" rel="nofollow">this Plunker</a></p> <ul dir="auto"> <li>I have dealt with this (Touch Spec / Browser Implementation) issue in the past (vanilla JS) by simply keeping the DOM element reference around until the <code class="notranslate">touchend</code> or <code class="notranslate">touchcancel</code> event fire.</li> <li>However, Angular controls the DOM now !</li> <li>Could this be solved by Angular implementing a <code class="notranslate">canDestroy()</code> Component guard (i.e not route guard) ???</li> </ul> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">A <code class="notranslate">canDestroy()</code> <strong>Component</strong> guard. Or any solution that avoids premature DOM removal of an element. Angular could keep the DOM element in memory and set a style of <code class="notranslate">{display: none;}</code>. Anything to improve the drag experience on <strong>mobile</strong>...which is pretty important in my opinion.</p> <p dir="auto"><strong>Reproduction of the problem</strong></p> <p dir="auto">See this <a href="http://plnkr.co/edit/QR6WDzv6NxOmn6LXTngG?p=preview" rel="nofollow">Plunker</a>. Note: Touchscreen required (or Chrome Dev Tools mobile emulation)</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">In my <a href="http://plnkr.co/edit/QR6WDzv6NxOmn6LXTngG?p=preview" rel="nofollow">Plunker</a>, I expect the <code class="notranslate">touchmove</code> events to keep firing after dragging the 'booking' to the next/prev day. It works as expected with <strong>mouse</strong> dragging.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">Improve the <strong>mobile</strong> experience of Angular 2.</p> <p dir="auto"><strong>Environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.4</li> <li><strong>Browser:</strong> [Chrome 51 (with touchscreen), iOS 9.3.2 Safari]</li> <li><strong>Language:</strong> [email protected] see plunker</li> </ul>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">core</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">ubuntu 16.04 package:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.0.2 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.0.0.2 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">nothing i know off</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">ubuntu 16.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">when executing a playbook with a tag (--tags), i would assume, that only tasks with this tag gets executed. in ansible 1.9 this was also true for handlers, but the behavior changed. in ansible 2.x handlers get called even though they don't have this tag assigned. the documentation is not telling, if this behavior is a new feature or bug.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <ol dir="auto"> <li>first call this playbook with "tag_a". everything is executed, which is expected:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook /etc/ansible/test.yml -vvvv -e target=test --tags tag_a"><pre class="notranslate"><code class="notranslate">ansible-playbook /etc/ansible/test.yml -vvvv -e target=test --tags tag_a </code></pre></div> <ol dir="auto"> <li>call this playbook with "tag_b". now the handler should not be executed, because it is missing tag_b:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook /etc/ansible/test.yml -vvvv -e target=test --tags tag_b"><pre class="notranslate"><code class="notranslate">ansible-playbook /etc/ansible/test.yml -vvvv -e target=test --tags tag_b </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: &quot;{{ target | default('test') }}&quot; strategy: free roles: - { role: test }"><pre class="notranslate"><code class="notranslate"> --- - hosts: "{{ target | default('test') }}" strategy: free roles: - { role: test } </code></pre></div> <p dir="auto">tasks/main.yml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - name: do something debug: msg=&quot;done&quot; notify: restart some service changed_when: True tags: - tag_a - tag_b"><pre class="notranslate"><code class="notranslate"> --- - name: do something debug: msg="done" notify: restart some service changed_when: True tags: - tag_a - tag_b </code></pre></div> <p dir="auto">handler/main.yml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - name: restart some service debug: msg=&quot;restarting...&quot; tags: - tag_a"><pre class="notranslate"><code class="notranslate"> --- - name: restart some service debug: msg="restarting..." tags: - tag_a </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">in ansible 1.9, only the "do something" task was executed, but not the handler, if playbook was called with "--tags tag_b".<br> i would expect that tags are working on handlers as well, because it might be necessary to exclude some of those.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">handler get executed even though tag_b is not assigned.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ansible-playbook /etc/ansible/test.yml -vvvv -e target=test --tags tag_b Using /etc/ansible/ansible.cfg as config file Loaded callback default of type stdout, v2.0 1 plays in /etc/ansible/test.yml PLAY *************************************************************************** TASK [setup] ******************************************************************* &lt;192.168.1.190&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;192.168.1.190&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o Port=1221 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.1.190 '( umask 22 &amp;&amp; mkdir -p &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320 )&quot; &amp;&amp; echo &quot;$( echo $HOME/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320 )&quot; )' &lt;192.168.1.190&gt; PUT /tmp/tmpdAUJCD TO /root/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320/setup &lt;192.168.1.190&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o Port=1221 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.1.190]' &lt;192.168.1.190&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;192.168.1.190&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o Port=1221 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.1.190 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320/setup; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320/&quot; &gt; /dev/null 2&gt;&amp;1' ok: [test] TASK [test : do something] ***************************************************** task path: /etc/ansible/roles/test/tasks/main.yml:3 NOTIFIED HANDLER restart some service ok: [test] =&gt; { &quot;msg&quot;: &quot;done&quot; } RUNNING HANDLER [test : restart some service] ********************************** ok: [test] =&gt; { &quot;msg&quot;: &quot;restarting...&quot; } PLAY RECAP ********************************************************************* test : ok=3 changed=1 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate"># ansible-playbook /etc/ansible/test.yml -vvvv -e target=test --tags tag_b Using /etc/ansible/ansible.cfg as config file Loaded callback default of type stdout, v2.0 1 plays in /etc/ansible/test.yml PLAY *************************************************************************** TASK [setup] ******************************************************************* &lt;192.168.1.190&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;192.168.1.190&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o Port=1221 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.1.190 '( umask 22 &amp;&amp; mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320 )" )' &lt;192.168.1.190&gt; PUT /tmp/tmpdAUJCD TO /root/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320/setup &lt;192.168.1.190&gt; SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o Port=1221 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r '[192.168.1.190]' &lt;192.168.1.190&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;192.168.1.190&gt; SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o Port=1221 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.1.190 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320/setup; rm -rf "/root/.ansible/tmp/ansible-tmp-1463148481.29-105122005378320/" &gt; /dev/null 2&gt;&amp;1' ok: [test] TASK [test : do something] ***************************************************** task path: /etc/ansible/roles/test/tasks/main.yml:3 NOTIFIED HANDLER restart some service ok: [test] =&gt; { "msg": "done" } RUNNING HANDLER [test : restart some service] ********************************** ok: [test] =&gt; { "msg": "restarting..." } PLAY RECAP ********************************************************************* test : ok=3 changed=1 unreachable=0 failed=0 </code></pre></div>
<h5 dir="auto">SUMMARY</h5> <p dir="auto">Handlers should respect skip-tags. Currently they do not.</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">lib/ansible/playbook/taggable.py</p> <h5 dir="auto">ADDITIONAL INFORMATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: localhost gather_facts: false handlers: - name: debug_handler debug: msg: handler tags: - handlers tasks: - command: &quot;true&quot; notify: - debug_handler"><pre class="notranslate"><code class="notranslate">- hosts: localhost gather_facts: false handlers: - name: debug_handler debug: msg: handler tags: - handlers tasks: - command: "true" notify: - debug_handler </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook --skip-tags handlers playbook.yml PLAY [localhost] ***************************************************************************************************************************************************************************************************************************** TASK [command] ******************************************************************************************************************************************************************************************************************************* changed: [localhost] RUNNING HANDLER [debug_handler] ************************************************************************************************************************************************************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;handler&quot; } PLAY RECAP *********************************************************************************************************************************************************************************************************************************** localhost : ok=2 changed=1 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">$ ansible-playbook --skip-tags handlers playbook.yml PLAY [localhost] ***************************************************************************************************************************************************************************************************************************** TASK [command] ******************************************************************************************************************************************************************************************************************************* changed: [localhost] RUNNING HANDLER [debug_handler] ************************************************************************************************************************************************************************************************************** ok: [localhost] =&gt; { "msg": "handler" } PLAY RECAP *********************************************************************************************************************************************************************************************************************************** localhost : ok=2 changed=1 unreachable=0 failed=0 </code></pre></div>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.9.0-dev.20160521-1.0</p> <p dir="auto"><strong>Code</strong></p> <p dir="auto">Install node d.ts file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install --save-dev @types/[email protected]"><pre class="notranslate"><code class="notranslate">npm install --save-dev @types/[email protected] </code></pre></div> <p dir="auto">index.ts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="console.log('hello');"><pre class="notranslate"><code class="notranslate">console.log('hello'); </code></pre></div> <p dir="auto">tsconfig.json:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;noImplicitAny&quot;: true, &quot;strictNullChecks&quot;: true, &quot;moduleResolution&quot;: &quot;node&quot;, &quot;pretty&quot;: true, &quot;allowSyntheticDefaultImports&quot;: true, &quot;skipDefaultLibCheck&quot;: true, // output options &quot;outDir&quot;: &quot;dist/&quot;, &quot;rootDir&quot;: &quot;./src&quot;, &quot;module&quot;: &quot;commonjs&quot;, &quot;target&quot;: &quot;es6&quot;, &quot;declaration&quot;: true, &quot;sourceMap&quot;: true, &quot;inlineSources&quot;: true }, &quot;files&quot;: [ &quot;src/index.ts&quot;, &quot;node_modules/@types/node/index.d.ts&quot; ] }"><pre class="notranslate"><code class="notranslate">{ "compilerOptions": { "noImplicitAny": true, "strictNullChecks": true, "moduleResolution": "node", "pretty": true, "allowSyntheticDefaultImports": true, "skipDefaultLibCheck": true, // output options "outDir": "dist/", "rootDir": "./src", "module": "commonjs", "target": "es6", "declaration": true, "sourceMap": true, "inlineSources": true }, "files": [ "src/index.ts", "node_modules/@types/node/index.d.ts" ] } </code></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">the build should work</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">tsc errors with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="11:24:25 PM - File change detected. Starting incremental compilation... 13 stack?: string; ~~~~~ node_modules/@types/node/index.d.ts(13,5): error TS2300: Duplicate identifier 'stack'. 883 stack?: string; ~~~~~ node_modules/typescript/lib/lib.es6.d.ts(883,5): error TS2300: Duplicate identifier 'stack'."><pre class="notranslate"><code class="notranslate">11:24:25 PM - File change detected. Starting incremental compilation... 13 stack?: string; ~~~~~ node_modules/@types/node/index.d.ts(13,5): error TS2300: Duplicate identifier 'stack'. 883 stack?: string; ~~~~~ node_modules/typescript/lib/lib.es6.d.ts(883,5): error TS2300: Duplicate identifier 'stack'. </code></pre></div> <p dir="auto">// <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RyanCavanaugh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RyanCavanaugh">@RyanCavanaugh</a></p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">nightly with "node.d.ts" from typings</p> <p dir="auto">We recently add <a href="https://github.com/Microsoft/TypeScript/blob/master/src/lib/es5.d.ts#L867">this</a>in to es5.d.ts<br> <strong>Expected behavior:</strong><br> No error<br> <strong>Actual behavior:</strong><br> Duplicate Identifier with the same property defined in "node.d.ts"</p>
1
<p dir="auto">Spotted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/teropa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/teropa">@teropa</a> and confirmed on my side in the ng2 directives for Bootstrap project (see: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118373937" data-permission-text="Title is private" data-url="https://github.com/ng-bootstrap/ng-bootstrap/issues/115" data-hovercard-type="pull_request" data-hovercard-url="/ng-bootstrap/ng-bootstrap/pull/115/hovercard" href="https://github.com/ng-bootstrap/ng-bootstrap/pull/115">ng-bootstrap/ng-bootstrap#115</a>):</p> <blockquote> <p dir="auto">I'm getting errors about platform directives like ng-for when using TestComponentBuilder. Seems like they're not "ambient" in the unit tests like they are during normal execution. I can fix it by including CORE_DIRECTIVES in the component, but that seems backward. Any ideas how to make them available?</p> </blockquote>
<p dir="auto">GET <a href="http://localhost:8080/undefined" rel="nofollow">http://localhost:8080/undefined</a> 404 (Not Found)</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;img [src]=&quot;data.avatar_url&quot; width=&quot;100&quot; height=&quot;100&quot;/&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">[src]</span>="<span class="pl-s">data.avatar_url</span>" <span class="pl-c1">width</span>="<span class="pl-s">100</span>" <span class="pl-c1">height</span>="<span class="pl-s">100</span>"/&gt;</pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this.data = {}; http.get('https://api.github.com/users/danicomas').toRx().map(res =&gt; res.json()).subscribe(response =&gt; this.data = response);"><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">data</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">http</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'https://api.github.com/users/danicomas'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toRx</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">res</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">json</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">subscribe</span><span class="pl-kos">(</span><span class="pl-s1">response</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
0
<p dir="auto">In some cases, you'd like to set up your testing module the same as a larger module you're exporting, but want to mock out some declarations. Currently there is no way to <em>remove</em> a declaration though, so you'd have to make a whole new module and duplicate your list.</p> <p dir="auto">e.g., now</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// in lib @NgModule({ declarations: [A, B, C, D, E] }) class MyLibModule {}; // in test for E, we want to mock out D TestBed.configureTestingModule({ declarations: [A, B, C, MockD, E] });"><pre class="notranslate"><span class="pl-c">// in lib</span> @<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">declarations</span>: <span class="pl-kos">[</span><span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span><span class="pl-kos">,</span> <span class="pl-smi">C</span><span class="pl-kos">,</span> <span class="pl-smi">D</span><span class="pl-kos">,</span> <span class="pl-smi">E</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">MyLibModule</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// in test for E, we want to mock out D</span> <span class="pl-smi">TestBed</span><span class="pl-kos">.</span><span class="pl-en">configureTestingModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">declarations</span>: <span class="pl-kos">[</span><span class="pl-smi">A</span><span class="pl-kos">,</span> <span class="pl-smi">B</span><span class="pl-kos">,</span> <span class="pl-smi">C</span><span class="pl-kos">,</span> <span class="pl-smi">MockD</span><span class="pl-kos">,</span> <span class="pl-smi">E</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">Instead it would be nice to be able to do something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// in test for E TestBed.configureTestingModule({ imports: [MyLibModule], remove: [D], declarations: [MockD] });"><pre class="notranslate"><code class="notranslate">// in test for E TestBed.configureTestingModule({ imports: [MyLibModule], remove: [D], declarations: [MockD] }); </code></pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="WARNING in ./~/@angular/core/src/linker/system_js_ng_module_factory_loader.js 87:15-102 Critical dependency: the request of a dependency is an expression at ImportContextDependency.getWarnings (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/webpack/lib/dependencies/ImportContextDependency.js:28:4) at Compilation.reportDependencyErrorsAndWarnings (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/webpack/lib/Compilation.js:663:24) at Compilation.finish (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/webpack/lib/Compilation.js:526:9) at /home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/webpack/lib/Compiler.js:472:16 at /home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/tapable/lib/Tapable.js:225:11 at /home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/html-webpack-plugin/index.js:60:9 at tryCatcher (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/promise.js:510:31) at Promise._settlePromise (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/promise.js:567:18) at Promise._settlePromise0 (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/promise.js:612:10) at Promise._settlePromises (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/promise.js:691:18) at Async._drainQueue (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:666:20) at tryOnImmediate (timers.js:639:5) at processImmediate [as _immediateCallback] (timers.js:611:5) "><pre class="notranslate">WARNING <span class="pl-k">in</span> ./~/@angular/core/src/linker/system_js_ng_module_factory_loader.js 87:15-102 Critical dependency: the request of a dependency is an expression at ImportContextDependency.getWarnings (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/webpack/lib/dependencies/ImportContextDependency.js:28:4) at Compilation.reportDependencyErrorsAndWarnings (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/webpack/lib/Compilation.js:663:24) at Compilation.finish (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/webpack/lib/Compilation.js:526:9) at /home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/webpack/lib/Compiler.js:472:16 at /home/patrikx3/Projects/patrikx3/corifeus/corifeus-web-api/node_modules/tapable/lib/Tapable.js:225:11 at /home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/html-webpack-plugin/index.js:60:9 at tryCatcher (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/promise.js:510:31) at Promise._settlePromise (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/promise.js:567:18) at Promise._settlePromise0 (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/promise.js:612:10) at Promise._settlePromises (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/promise.js:691:18) at Async._drainQueue (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/async.js:133:16) at Async._drainQueues (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/async.js:143:10) at Immediate.Async.drainQueues (/home/patrikx3/Projects/patrikx3/corifeus/corifeus-builder/node_modules/bluebird/js/release/async.js:17:14) at runCallback (timers.js:666:20) at tryOnImmediate (timers.js:639:5) at processImmediate [as _immediateCallback] (timers.js:611:5) </pre></div>
0
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Interactive code (Jupyter Notebook using <code class="notranslate">%matplotlib notebook</code>) worked up to v3.2.x, stops working for v3.3.x. Tested on Firefox and Chrome.</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 ipywidgets as widgets import matplotlib.pyplot as plt from IPython.display import display %matplotlib notebook class MWE: def __init__(self): self.fig, self.ax = plt.subplots(1, 1) self.ax.set_xlim([-5, 105]) self.ax.set_ylim([-500, 10500]) self.create_widget() self.draw() def create_widget(self): value = widgets.interactive( self.update_value, value=widgets.IntSlider(value=50, min=0, max=100)) display(value) def draw(self): self.ax.plot(self.value, self.value**2, 'o') def update_value(self, value): self.value = value self.draw() MWE()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">ipywidgets</span> <span class="pl-k">as</span> <span class="pl-s1">widgets</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">from</span> <span class="pl-v">IPython</span>.<span class="pl-s1">display</span> <span class="pl-k">import</span> <span class="pl-s1">display</span> <span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">notebook</span> <span class="pl-k">class</span> <span class="pl-v">MWE</span>: <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>): <span class="pl-s1">self</span>.<span class="pl-s1">fig</span>, <span class="pl-s1">self</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-c1">1</span>, <span class="pl-c1">1</span>) <span class="pl-s1">self</span>.<span class="pl-s1">ax</span>.<span class="pl-en">set_xlim</span>([<span class="pl-c1">-</span><span class="pl-c1">5</span>, <span class="pl-c1">105</span>]) <span class="pl-s1">self</span>.<span class="pl-s1">ax</span>.<span class="pl-en">set_ylim</span>([<span class="pl-c1">-</span><span class="pl-c1">500</span>, <span class="pl-c1">10500</span>]) <span class="pl-s1">self</span>.<span class="pl-en">create_widget</span>() <span class="pl-s1">self</span>.<span class="pl-en">draw</span>() <span class="pl-k">def</span> <span class="pl-en">create_widget</span>(<span class="pl-s1">self</span>): <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">widgets</span>.<span class="pl-en">interactive</span>( <span class="pl-s1">self</span>.<span class="pl-s1">update_value</span>, <span class="pl-s1">value</span><span class="pl-c1">=</span><span class="pl-s1">widgets</span>.<span class="pl-v">IntSlider</span>(<span class="pl-s1">value</span><span class="pl-c1">=</span><span class="pl-c1">50</span>, <span class="pl-s1">min</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">max</span><span class="pl-c1">=</span><span class="pl-c1">100</span>)) <span class="pl-en">display</span>(<span class="pl-s1">value</span>) <span class="pl-k">def</span> <span class="pl-en">draw</span>(<span class="pl-s1">self</span>): <span class="pl-s1">self</span>.<span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-s1">self</span>.<span class="pl-s1">value</span>, <span class="pl-s1">self</span>.<span class="pl-s1">value</span><span class="pl-c1">**</span><span class="pl-c1">2</span>, <span class="pl-s">'o'</span>) <span class="pl-k">def</span> <span class="pl-en">update_value</span>(<span class="pl-s1">self</span>, <span class="pl-s1">value</span>): <span class="pl-s1">self</span>.<span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span> <span class="pl-s1">self</span>.<span class="pl-en">draw</span>() <span class="pl-v">MWE</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong><br> Just an empty figure, moving the slider has no effect, no warning thrown either.</p> <p dir="auto"><strong>Expected outcome</strong><br> More and more dots should be printed when moving the slider.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Ubuntu 20.04</li> <li>Matplotlib version: &lt;3.2.x works, &gt;=3.3.2 does not.</li> <li>Matplotlib backend: nbAgg</li> <li>Python version: 3.8.6</li> <li>Jupyter version (if applicable): 1.0.0</li> <li>Other libraries: widgets v7.5.1</li> </ul> <p dir="auto">Installed with <code class="notranslate">mamba</code> from <code class="notranslate">conda-forge</code>.</p> <p dir="auto">It might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="701344817" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/18481" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/18481/hovercard" href="https://github.com/matplotlib/matplotlib/issues/18481">#18481</a>, but it happens for Firefox and Chrome on my machine. Also, the mentioned workaround (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="701344817" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/18481" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/18481/hovercard?comment_id=692337027&amp;comment_type=issue_comment" href="https://github.com/matplotlib/matplotlib/issues/18481#issuecomment-692337027">#18481 (comment)</a>) does not help.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Using <code class="notranslate">ipywidgets.interact</code> to update a figure works as expected in <code class="notranslate">matplotlib&lt;=3.3.1</code>, but fails in <code class="notranslate">matplotlib==3.3.2</code>.</p> <p dir="auto">I don't think this is an <code class="notranslate">ipywidgets</code> issue since downgrading <code class="notranslate">matplotlib</code> fixes this issue.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">In[1]:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="%matplotlib notebook import matplotlib as mpl import matplotlib.pyplot as plt import ipywidgets as ipyw &quot;works if %s &lt;= 3.3.1&quot; % mpl.__version__"><pre class="notranslate"><span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">notebook</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">ipywidgets</span> <span class="pl-k">as</span> <span class="pl-s1">ipyw</span> <span class="pl-s">"works if %s &lt;= 3.3.1"</span> <span class="pl-c1">%</span> <span class="pl-s1">mpl</span>.<span class="pl-s1">__version__</span></pre></div> <p dir="auto">In[2]:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fig = plt.figure() @ipyw.interact(m=ipyw.FloatSlider(value=1, min=-10, max=10, step=0.01)) def update(m): plt.figure(fig.number, clear=True) plt.plot([m * x for x in range(-9, 10)])"><pre class="notranslate"><span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-en">@<span class="pl-s1">ipyw</span>.<span class="pl-en">interact</span>(<span class="pl-s1">m</span><span class="pl-c1">=</span><span class="pl-s1">ipyw</span>.<span class="pl-v">FloatSlider</span>(<span class="pl-s1">value</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">min</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">10</span>, <span class="pl-s1">max</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">step</span><span class="pl-c1">=</span><span class="pl-c1">0.01</span>))</span> <span class="pl-k">def</span> <span class="pl-en">update</span>(<span class="pl-s1">m</span>): <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">fig</span>.<span class="pl-s1">number</span>, <span class="pl-s1">clear</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-s1">m</span> <span class="pl-c1">*</span> <span class="pl-s1">x</span> <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">-</span><span class="pl-c1">9</span>, <span class="pl-c1">10</span>)])</pre></div> <p dir="auto">Followed by moving the slider.</p> <p dir="auto"><strong>Actual outcome</strong></p> <ul dir="auto"> <li>when moving the slider, the figure does not update</li> <li>a second figure is sometimes created instead</li> <li>the second figure is usually blank, but sometimes updates instead</li> </ul> <p dir="auto"><strong>Expected outcome</strong></p> <ul dir="auto"> <li>the original figure updates as it does in <code class="notranslate">matplotlib==3.3.1</code></li> </ul> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Ubuntu</li> <li>Matplotlib version: 3.3.2 vs 3.3.1</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): nbAgg</li> <li>Python version: 3.7.8</li> <li>Jupyter version (if applicable): jupyter-core==4.6.3</li> <li>Other libraries: ipywidgets==7.5.1</li> <li>Installation source: <code class="notranslate">conda</code> channel <code class="notranslate">conda-forge</code></li> </ul>
1
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Terminal seems not to play well with Power Toys, that is, the Shift + Move Window doesn't activate <a href="https://github.com/microsoft/PowerToys/blob/master/src/modules/fancyzones/README.md">Power Toys Fancy Zones</a></p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Implement move Terminal Window to Fancy Zone [Shift + Left Cursor on Window Bar]</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Over time I written many Powershell scripts and modules to manage many stuff (either for personal and for work) I use some modules for manage my dev environment or my home router, or move, rename, delete personal fotos, ect.<br> So I'm used to have a Powershell session start when I log-in.<br> Now I want to move to Windows Terminal and so I would like to have it to start when I log-in</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">The UWP SDK expose a way to configure a packaged app to start when a user log-in by adding the <a href="https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/desktop-to-uwp-extensions#start-an-executable-file-when-users-log-into-windows" rel="nofollow"><code class="notranslate">windows.startupTask</code></a> extention to the manifest</p>
0
<p dir="auto">With 10,000 item nesting in <code class="notranslate">DeeplyNestedComponents</code> case:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/810438/55670638-f3bec480-587e-11e9-850d-8a247aa42f7c.png"><img width="432" alt="Screen Shot 2019-04-06 at 15 16 02" src="https://user-images.githubusercontent.com/810438/55670638-f3bec480-587e-11e9-850d-8a247aa42f7c.png" style="max-width: 100%;"></a></p> <p dir="auto">Not super realistic but we could fix this by avoiding recursion in the traversal.</p> <hr> <p dir="auto">Originally reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gaearon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaearon">@gaearon</a> via <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="430038062" data-permission-text="Title is private" data-url="https://github.com/bvaughn/react-devtools-experimental/issues/76" data-hovercard-type="issue" data-hovercard-url="/bvaughn/react-devtools-experimental/issues/76/hovercard" href="https://github.com/bvaughn/react-devtools-experimental/issues/76">bvaughn/react-devtools-experimental#76</a></p>
<h2 dir="auto">Details</h2> <p dir="auto">Using version 4.0.2 (8/15/2019) I am getting a maximum call stack size exceeded when my app starts up. While my app using this is a little different I have replicated the issue using a fresh create-react-app. I will include the App.js code below.</p> <h2 dir="auto">Steps to reproduce</h2> <ol dir="auto"> <li>Create a new app using version 3.0.1 of create-react-app</li> <li>Replace the code in App.js with the code listed below</li> <li>Inspect the console, there should be a stack trace from a maximum call stack exceeded error</li> </ol> <h2 dir="auto">App.js</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react'; import logo from './logo.svg'; import './App.css'; const createDivs = num =&gt; { const rtn = []; for(let i = 0; i &lt; num; i++) { const key = `div-${i}`; rtn.push(&lt;div className={key} key={key} /&gt;) } return rtn; } function App() { return ( &lt;div className=&quot;App&quot;&gt; &lt;header className=&quot;App-header&quot;&gt; &lt;img src={logo} className=&quot;App-logo&quot; alt=&quot;logo&quot; /&gt; &lt;p&gt; Edit &lt;code&gt;src/App.js&lt;/code&gt; and save to reload. &lt;/p&gt; &lt;a className=&quot;App-link&quot; href=&quot;https://reactjs.org&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; &gt; Learn React &lt;/a&gt; &lt;/header&gt; &lt;div&gt; {createDivs(15000)} &lt;/div&gt; &lt;/div&gt; ); } export default App;"><pre class="notranslate"><code class="notranslate">import React from 'react'; import logo from './logo.svg'; import './App.css'; const createDivs = num =&gt; { const rtn = []; for(let i = 0; i &lt; num; i++) { const key = `div-${i}`; rtn.push(&lt;div className={key} key={key} /&gt;) } return rtn; } function App() { return ( &lt;div className="App"&gt; &lt;header className="App-header"&gt; &lt;img src={logo} className="App-logo" alt="logo" /&gt; &lt;p&gt; Edit &lt;code&gt;src/App.js&lt;/code&gt; and save to reload. &lt;/p&gt; &lt;a className="App-link" href="https://reactjs.org" target="_blank" rel="noopener noreferrer" &gt; Learn React &lt;/a&gt; &lt;/header&gt; &lt;div&gt; {createDivs(15000)} &lt;/div&gt; &lt;/div&gt; ); } export default App; </code></pre></div> <h2 dir="auto">Call Stack</h2> <details> <summary>backend.js:formatted:2097 Uncaught RangeError: Maximum call stack size exceeded </summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" at ge (backend.js:formatted:2097) at Ge (backend.js:formatted:2435) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) ge @ backend.js:formatted:2097 Ge @ backend.js:formatted:2435 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 postMessage (async) r @ contentScript.js:1 88 @ contentScript.js:1 n @ contentScript.js:1 (anonymous) @ contentScript.js:1 (anonymous) @ contentScript.js:1 Show 170 more frames"><pre class="notranslate"><code class="notranslate"> at ge (backend.js:formatted:2097) at Ge (backend.js:formatted:2435) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) at Ge (backend.js:formatted:2478) ge @ backend.js:formatted:2097 Ge @ backend.js:formatted:2435 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 Ge @ backend.js:formatted:2478 postMessage (async) r @ contentScript.js:1 88 @ contentScript.js:1 n @ contentScript.js:1 (anonymous) @ contentScript.js:1 (anonymous) @ contentScript.js:1 Show 170 more frames </code></pre></div> </details> <p dir="auto">This was not an issue in the previous version of react-devtools.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.175] Windows Terminal version (if applicable): windows terminal (Preview) 0.2.1715.0 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.175] Windows Terminal version (if applicable): windows terminal (Preview) 0.2.1715.0 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Create a Ubuntu 18 tab<br> type $ or any sign that can be created with AltGr</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">we must see $ sign with AltGr+4</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">nothing happens</p>
<p dir="auto"><strong>Your Windows build number:</strong><br> 10.0.18362.86</p> <p dir="auto"><strong>What you're doing and what's happening:</strong><br> Trying to enter the <code class="notranslate">@</code> sign on a Swedish keyboard in a PowerShell console using <code class="notranslate">Alt Gr</code> + <code class="notranslate">2</code>.<br> See animated gif:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/357872/57315225-7099c400-70f3-11e9-803f-4d60d11feef5.gif"><img src="https://user-images.githubusercontent.com/357872/57315225-7099c400-70f3-11e9-803f-4d60d11feef5.gif" alt="terminal" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto"><strong>What's wrong / what should be happening instead:</strong><br> Windows terminal shows <code class="notranslate">digit-argument</code> instead of outputting the <code class="notranslate">@</code> sign as expected.</p> <p dir="auto">It's possible this is a PEBKAC error somehow but the problem doesn't show up in the normal PowerShell console... 😓</p>
1
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.3.2 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">I accidentally created two dags with the same name.<br> No errors were given.<br> Code-tab in web-ui showed one of the versions.<br> Running the task actually executed the second version.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">One, or both DAGs should be rejected and pop up a dag import error in the UI<br> Starting the dag should not be possible.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Create two dags with same name.<br> Start dag</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Debian GNU/Linux 11 (bullseye)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-celery==3.0.0<br> apache-airflow-providers-cncf-kubernetes==4.0.2<br> apache-airflow-providers-docker==3.0.0<br> 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==5.0.0<br> apache-airflow-providers-sqlite==2.1.3</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other Docker-based deployment</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>
<p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/airflow/blob/ffb1fcacff21c31d7cacfbd843a84208fca38d1e/airflow/plugins_manager.py#L291-L292">airflow/airflow/plugins_manager.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 291 to 292 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/ffb1fcacff21c31d7cacfbd843a84208fca38d1e">ffb1fca</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="L291" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="291"></td> <td id="LC291" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">load_plugins_from_plugin_directory</span>() </td> </tr> <tr class="border-0"> <td id="L292" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="292"></td> <td id="LC292" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">load_entrypoint_plugins</span>() </td> </tr> </tbody></table> </div> </div> <br> Currently, entrypoint plugins are loaded after plugins directory plugins. If there's not a specific reason for this ordering, I think these should be reversed.<p></p> <p dir="auto">For example, if I have a custom operator <code class="notranslate">MyOperator</code> that I want to derive from another developer's custom operator <code class="notranslate">TheirOperator</code>, and that operator is part of a package that uses the Airflow plugins entrypoint, I would probably have a <code class="notranslate">my_operator.py</code> file that looks like this:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from airflow.operators.their_plugin import TheirOperator class MyOperator(TheirOperator): ... ..."><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">operators</span>.<span class="pl-s1">their_plugin</span> <span class="pl-k">import</span> <span class="pl-v">TheirOperator</span> <span class="pl-k">class</span> <span class="pl-v">MyOperator</span>(<span class="pl-v">TheirOperator</span>): ... ...</pre></div> <p dir="auto">As it stands, since <code class="notranslate">MyOperator</code> is loaded first, this will fail with <code class="notranslate">ModuleNotFoundError</code> on <code class="notranslate">their_package.plugins</code>, making it difficult to derive operators from other packages.</p>
0
<p dir="auto">Hello,</p> <p dir="auto">I find <code class="notranslate">IS_AUTHENTICATED_REMEMBERED</code> / <code class="notranslate">IS_AUTHENTICATED_FULLY</code> attributes to poorly convey what they mean and what they do. This issue is here to discuss and propose a few ideas to make authentication checks more explicit and elegant.</p> <p dir="auto"><strong>Detailled reasoning</strong></p> <p dir="auto">At the moment, to check if a User is logged to the application by any mean, we should check <code class="notranslate">IS_AUTHENTICATED_REMEMBERED</code> attribute. In my opinion the name is not intuitive, I see no reason for the name to relate to a "remember me" feature we may not have on the application. Also I don't see any reason why "fully authenticated" users inherits <code class="notranslate">IS_AUTHENTICATED_REMEMBERED</code> attribute, it makes finding users who use remember_me less elegant (see example 3).</p> <p dir="auto">In real-world scenarios, developers starting to develop a Symfony application are likely to use <code class="notranslate">IS_AUTHENTICATED_FULLY</code>. But it is making adding the "remember me" feature later harder, since all checks will have to be modified back to <code class="notranslate">IS_AUTHENTICATED_REMEMBERED</code> or users enabling remember me won't be able to access part of the application.</p> <p dir="auto">The same reasoning can be applied to <code class="notranslate">IS_AUTHENTICATED_ANONYMOUSLY</code>, I don't see any reason why fully-fledged users get this attribute.</p> <p dir="auto"><strong>Propositions</strong></p> <p dir="auto">Here is a few ideas, some being independent from each other:</p> <ol dir="auto"> <li>add a <code class="notranslate">IS_AUTHENTICATED</code> attribute, which would be granted to any non-anonymously authenticated user, no matter how</li> <li>add <code class="notranslate">IS_AUTHENTICATED_REMEMBER_ME</code> attribute, which only authenticated through a remember me mechanism (cookie...) will get - and only them</li> <li>either keep <code class="notranslate">IS_AUTHENTICATED_FULLY</code> or rename it to <code class="notranslate">IS_AUTHENTICATED_FRESH</code> (to discuss, I find "fresh" to be more explicit)</li> <li>add <code class="notranslate">IS_ANONYMOUS</code> which will be given only to anonymous users</li> <li>deprecate <code class="notranslate">IS_AUTHENTICATED_REMEMBERED</code> and <code class="notranslate">IS_AUTHENTICATED_ANONYMOUSLY</code></li> </ol> <p dir="auto">Deprecated attributes could be dropped (or not) in Symfony 5, for backward-compatibility.<br> Regarding code, <code class="notranslate">AuthenticatedVoter</code> &amp; related tests should be modified, it looks to be relatively easy.</p> <p dir="auto"><strong>Code examples</strong></p> <p dir="auto">Checking an user is connected:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Before - not having &quot;remember_me&quot; enabled $this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED_FULLY`) // Also before - eventually having &quot;remember_me&quot; in the app $this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED_REMEMBERED`) // After $this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED`)"><pre class="notranslate"><span class="pl-c">// Before - not having "remember_me" enabled</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED_FULLY`) <span class="pl-c">// Also before - eventually having "remember_me" in the app</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED_REMEMBERED`) <span class="pl-c">// After</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED`)</pre></div> <p dir="auto">Checking an user connected during the same session:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Before $this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED_FULLY`) // After (tbd) $this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED_FULLY`)"><pre class="notranslate"><span class="pl-c">// Before</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED_FULLY`) <span class="pl-c">// After (tbd)</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED_FULLY`)</pre></div> <p dir="auto">Checking an user is connected thanks to "remember_me" feature (cookie...):</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Before $this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED_REMEMBERED`) &amp;&amp; !$this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED_FULLY`) // After (tbd) $this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED_REMEMBER_ME`)"><pre class="notranslate"><span class="pl-c">// Before</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED_REMEMBERED`) &amp;&amp; !<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED_FULLY`) <span class="pl-c">// After (tbd)</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED_REMEMBER_ME`)</pre></div> <p dir="auto">Checking for an anonymous user:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Before $this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED_ANONYMOUSLY`) &amp;&amp; !$this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_AUTHENTICATED_REMEMBERED`) // After $this-&gt;get('security.authorization_checker')-&gt;isGranted(`IS_ANONYMOUS`)"><pre class="notranslate"><span class="pl-c">// Before</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED_ANONYMOUSLY`) &amp;&amp; !<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_AUTHENTICATED_REMEMBERED`) <span class="pl-c">// After</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(`IS_ANONYMOUS`)</pre></div> <p dir="auto">Thanks for reading!</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>yes</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>2.8.20</td> </tr> </tbody> </table> <p dir="auto">Hello everbody,</p> <p dir="auto">I'm testing the LanguageBundle in Intl extension, and I found inconsistency in the language listing.</p> <p dir="auto"><strong>Examples:</strong><br> In the file <strong>Intl/Resources/data/language/pt.json</strong> don't have any key called "pt_BR", but in the file <strong>Intl/Resources/data/language/en.json</strong> the key exists.</p> <p dir="auto">In addition to the above problem, we have a lack of standard language keys, where in some cases they are defined in ISO 639-1 and other ISO 639-2.</p> <p dir="auto">I know Symfony uses data from the <a href="http://site.icu-project.org/" rel="nofollow">International Components for Unicode</a> library, but these inconsistencies are creating a uselessness in this feature. Would not it be better to create our own data source?</p> <p dir="auto">Thanks!</p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.util.NoSuchElementException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:350) at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:376) at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:374) at com.bumptech.glide.util.LruCache.trimToSize(LruCache.java:157) at com.bumptech.glide.util.LruCache.clearMemory(LruCache.java:146) at com.bumptech.glide.Glide.clearMemory(Glide.java:370) at com.bumptech.glide.RequestManager.onLowMemory(RequestManager.java:95) at com.bumptech.glide.manager.SupportRequestManagerFragment.onLowMemory(SupportRequestManagerFragment.java:156)"><pre class="notranslate"><code class="notranslate">java.util.NoSuchElementException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:350) at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:376) at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:374) at com.bumptech.glide.util.LruCache.trimToSize(LruCache.java:157) at com.bumptech.glide.util.LruCache.clearMemory(LruCache.java:146) at com.bumptech.glide.Glide.clearMemory(Glide.java:370) at com.bumptech.glide.RequestManager.onLowMemory(RequestManager.java:95) at com.bumptech.glide.manager.SupportRequestManagerFragment.onLowMemory(SupportRequestManagerFragment.java:156) </code></pre></div> <p dir="auto"><strong>Issue occurs in Glide version 3.6.1</strong></p>
<p dir="auto">Our crash monitoring facility had identified the above exception. It has been reported using Glide 3.5.2 and 3.5.0. It usually occurs in Android 4 devices, though we have reports up to 5.1. We're not able to reproduce it in our testing. While it's not a frequent report, we have seen 300+ reports in the last 30 days.</p> <p dir="auto">It looks like it may be the same or related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="48779317" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/266" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/266/hovercard" href="https://github.com/bumptech/glide/issues/266">#266</a>. Here's the stack trace in our case:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="java.util.LinkedHashMap$LinkedHashIterator.nextEntry (LinkedHashMap.java:350) java.util.LinkedHashMap$EntryIterator.next (LinkedHashMap.java:374) com.bumptech.glide.util.LruCache.trimToSize (LruCache.java:157) com.bumptech.glide.util.LruCache.clearMemory (LruCache.java:146) com.bumptech.glide.Glide.clearMemory (Glide.java:372) com.bumptech.glide.RequestManager.onLowMemory (RequestManager.java:92) com.bumptech.glide.manager.SupportRequestManagerFragment.onLowMemory (SupportRequestManagerFragment.java:75) android.support.v4.app.Fragment.performLowMemory (Fragment.java:1851) dalvik.system.NativeStart.main (NativeStart.java)"><pre class="notranslate"><span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">LinkedHashMap$LinkedHashIterator</span>.<span class="pl-en">nextEntry</span> (<span class="pl-smi">LinkedHashMap</span>.<span class="pl-smi">java</span>:<span class="pl-c1">350</span>) <span class="pl-s1">java</span>.<span class="pl-s1">util</span>.<span class="pl-s1">LinkedHashMap$EntryIterator</span>.<span class="pl-en">next</span> (<span class="pl-smi">LinkedHashMap</span>.<span class="pl-smi">java</span>:<span class="pl-c1">374</span>) <span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">util</span>.<span class="pl-s1">LruCache</span>.<span class="pl-en">trimToSize</span> (<span class="pl-smi">LruCache</span>.<span class="pl-smi">java</span>:<span class="pl-c1">157</span>) <span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">util</span>.<span class="pl-s1">LruCache</span>.<span class="pl-en">clearMemory</span> (<span class="pl-smi">LruCache</span>.<span class="pl-smi">java</span>:<span class="pl-c1">146</span>) <span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">Glide</span>.<span class="pl-en">clearMemory</span> (<span class="pl-smi">Glide</span>.<span class="pl-smi">java</span>:<span class="pl-c1">372</span>) <span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">RequestManager</span>.<span class="pl-en">onLowMemory</span> (<span class="pl-smi">RequestManager</span>.<span class="pl-smi">java</span>:<span class="pl-c1">92</span>) <span class="pl-s1">com</span>.<span class="pl-s1">bumptech</span>.<span class="pl-s1">glide</span>.<span class="pl-s1">manager</span>.<span class="pl-s1">SupportRequestManagerFragment</span>.<span class="pl-en">onLowMemory</span> (<span class="pl-smi">SupportRequestManagerFragment</span>.<span class="pl-smi">java</span>:<span class="pl-c1">75</span>) <span class="pl-s1">android</span>.<span class="pl-s1">support</span>.<span class="pl-s1">v4</span>.<span class="pl-s1">app</span>.<span class="pl-s1">Fragment</span>.<span class="pl-en">performLowMemory</span> (<span class="pl-smi">Fragment</span>.<span class="pl-smi">java</span>:<span class="pl-c1">1851</span>) <span class="pl-s1">dalvik</span>.<span class="pl-s1">system</span>.<span class="pl-s1">NativeStart</span>.<span class="pl-en">main</span> (<span class="pl-smi">NativeStart</span>.<span class="pl-s1">java</span>)</pre></div>
1
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let mut x = 1us; let y = &amp;x; &amp;mut x; }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> x = <span class="pl-c1">1</span>us<span class="pl-kos">;</span> <span class="pl-k">let</span> y = <span class="pl-c1">&amp;</span>x<span class="pl-kos">;</span> <span class="pl-c1">&amp;</span><span class="pl-k">mut</span> x<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="test2.rs:10:2: 10:2 note: previous borrow ends here test2.rs:1 fn main() { ... test2.rs:10 } ^"><pre class="notranslate"><code class="notranslate">test2.rs:10:2: 10:2 note: previous borrow ends here test2.rs:1 fn main() { ... test2.rs:10 } ^ </code></pre></div>
<p dir="auto">For example, in this case there should be two spaces between <code class="notranslate">8</code> and <code class="notranslate">fn</code> instead of one.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test2.rs:8:1: 12:2 warning: code is never used: `foo`, #[warn(dead_code)] on by default test2.rs:8 fn foo() { test2.rs:9 test2.rs:10 test2.rs:11 test2.rs:12 }"><pre class="notranslate">test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">8</span><span class="pl-kos">:</span><span class="pl-c1">1</span><span class="pl-kos">:</span> <span class="pl-c1">12</span><span class="pl-kos">:</span><span class="pl-c1">2</span> warning<span class="pl-kos">:</span> code is never used<span class="pl-kos">:</span> `foo`<span class="pl-kos">,</span> #<span class="pl-kos">[</span><span class="pl-en">warn</span><span class="pl-kos">(</span>dead_code<span class="pl-kos">)</span><span class="pl-kos">]</span> on by <span class="pl-k">default</span> test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">8</span> <span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">9</span> test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">10</span> test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">11</span> test2<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">12</span> <span class="pl-kos">}</span></pre></div>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">I need to bump up the default 100KB <a href="https://github.com/expressjs/body-parser/blob/master/lib/types/raw.js">bodyParser raw.js limit</a> but I can't seem to figure out the right way in Next.js 5.1.0<br> I tried adding it to index.js but with no effect:<br> <code class="notranslate">expressApp.use(bodyParser.raw({ limit: '5mb' }));</code></p> <p dir="auto">I also modified the <a href="https://github.com/expressjs/body-parser/blob/master/lib/types/raw.js">raw.js</a> vendor file to make sure it would work if the value was increased.</p> <p dir="auto">Long story short, how would I go about modifying the raw body-parser limit?<br> <code class="notranslate"> PayloadTooLargeError: request entity too large at readStream (/Users/xxx/node_modules/raw-body/index.js:155:17) at getRawBody (/Users/xxx/node_modules/raw-body/index.js:108:12) at read (/Users/xxx/node_modules/body-parser/lib/read.js:77:3) at jsonParser (/Users/xxx/node_modules/body-parser/lib/types/json.js:134:5) at Layer.handle [as handle_request] (/Users/xxx/node_modules/express/lib/router/layer.js:95:5)</code></p>
<p dir="auto">The build process does not recognise shared files when your pages export an imported or wrapped component.</p> <p dir="auto">A common way of batching multiple <code class="notranslate">getInitialProps</code> is to wrap your pages in multiple HOC's - however doing this causes these issues described here.</p> <p dir="auto">I'll try to explain using <code class="notranslate">moment</code> as an example dependency.</p> <p dir="auto">These three files are identical.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pages/one/index.js pages/two/index.js pages/three/index.js"><pre class="notranslate"><code class="notranslate">pages/one/index.js pages/two/index.js pages/three/index.js </code></pre></div> <h4 dir="auto">Broken Page Structure</h4> <p dir="auto">Doesn't bundle correctly, <code class="notranslate">one.js</code>, <code class="notranslate">two.js</code> and <code class="notranslate">three.js</code> include the <code class="notranslate">moment</code> code.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import View from './View'; import moment from 'moment'; export default View;"><pre class="notranslate"><code class="notranslate">import View from './View'; import moment from 'moment'; export default View; </code></pre></div> <h4 dir="auto">Working Page Structure</h4> <p dir="auto">Bundles correctly, <code class="notranslate">app.js</code> includes the <code class="notranslate">moment</code> code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import moment from 'moment'; export default () =&gt; &quot;page one&quot;"><pre class="notranslate"><code class="notranslate">import moment from 'moment'; export default () =&gt; "page one" </code></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">The app.js file to include all shared files between pages regardless of how the page is exported.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Each page is bundled with the same files causing duplicate code to be downloaded across pages.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Clone <a href="https://github.com/stevebluck/next-test">https://github.com/stevebluck/next-test</a></li> <li><code class="notranslate">yarn install</code></li> <li><code class="notranslate">yarn build</code></li> <li><code class="notranslate">yarn start-broken</code></li> <li>Open a new terminal tab and run <code class="notranslate">yarn start-working</code></li> <li>Open 2 browser tabs at <code class="notranslate">http://localhost:3000/one</code> and <code class="notranslate">http://localhost:4000/one</code></li> <li>Compare the bundles, port 4000 is the working version</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">Bundles are too large</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>canary</td> </tr> <tr> <td>node</td> <td>8.9.0</td> </tr> <tr> <td>OS</td> <td>MacOS high Sierra 10.13.3</td> </tr> <tr> <td>browser</td> <td>Chrome/any</td> </tr> </tbody> </table>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=nicholas.daley" rel="nofollow">Nicholas Daley (at Firecrest)</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6070?redirect=false" rel="nofollow">SPR-6070</a></strong> and commented</p> <p dir="auto">CookieGenerator.cookieMaxAge's setter uses the primitive type 'int', but the getter uses 'Integer'. This seems to stop this property from being configured through the spring configuration xml file.<br> If it's important, I'm actually using a subclass of CookieGenerator.</p> <p dir="auto">Somebody in the forums had a similar problem:<br> <a href="http://forum.springsource.org/showthread.php?p=254675" rel="nofollow">http://forum.springsource.org/showthread.php?p=254675</a></p> <p dir="auto">Partial stacktrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'cookieMaxAge' of bean class [org.jasig.cas.web.support.CookieRetrievingCookieGenerator]: Bean property 'cookieMaxAge' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:850) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:701) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:60) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1330) ... 55 more"><pre class="notranslate"><code class="notranslate">Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'cookieMaxAge' of bean class [org.jasig.cas.web.support.CookieRetrievingCookieGenerator]: Bean property 'cookieMaxAge' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:850) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:701) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:60) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1330) ... 55 more </code></pre></div> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 M4</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="398097318" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10750" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10750/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10750">#10750</a> cookieMaxAge field fails in org.springframework.web.servlet.i18n.CookieLocaleResolver (<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/d0c8545d9bf4b97c47d257b445cfe0a2ed09db88/hovercard" href="https://github.com/spring-projects/spring-framework/commit/d0c8545d9bf4b97c47d257b445cfe0a2ed09db88"><tt>d0c8545</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=imysak" rel="nofollow">Ihor Mysak</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9668?redirect=false" rel="nofollow">SPR-9668</a></strong> and commented</p> <p dir="auto">our old methods with signature like:<br> <code class="notranslate">@RequestMapping</code>(value = "/write-review", method = RequestMethod.POST)<br> public Object writeReview(.....<br> was successfully works with response:<br> return "redirect:/some-url";<br> on old DefaultAnnotationHandlerMapping/AnnotationMethodHandlerAdapter</p> <p dir="auto">but after migration on RequestMappingHandlerMapping/RequestMappingHandlerAdapter this method was broken.</p> <p dir="auto">We fix it just rename return-type from Object to String.<br> But we waste a lot of time to find the problem. Will be great to fix it, or at least to document this behavior.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151985" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14256" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14256/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14256">#14256</a> Backport "Value-oriented return method handling broken in 3.1" (<em><strong>"duplicates"</strong></em>)</li> </ul>
0