text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">Is it possible to scale fonts using rem instead of px or %?<br> Using font-size: 62.5% in html tag as default, make simple calculations for font sizes like 24px = 2.4rem, 12px = 1.2rem, etc.</p> <p dir="auto">Then, changing the html font-size via media queries, we can auto-scale all the text in page.</p> <p dir="auto">Is this possible in new versions to come?</p> <p dir="auto">Thanks</p>
<p dir="auto">The version of Bothstroop 3.0 , Why not use percentage and EM instead of PX</p>
1
<p dir="auto">The <code class="notranslate">apache-airflow-providers-google</code> package locks the <code class="notranslate">google-ads</code> package to an unsupported version.</p> <p dir="auto">The maximum supported Google Ads API with the Apache Airflow google provider package is now stuck at <code class="notranslate">v5</code>.<br> The current supported version (until Jun 2022) is <code class="notranslate">v8</code>.</p> <p dir="auto">Hence the Apache Airflow package breaks all Google Ads functionality (API calls with the package Google Ads client are all rejected).</p> <p dir="auto">As a user of Airflow, I would expect to be able to upgrade google-ads individually.</p>
<p dir="auto">Hey team, I was looking to use the google ads hook but it seems like the google ads package is a bit out of date with the hook only taking "v5", "v4", "v3", "v2" <a href="https://developers.google.com/google-ads/api/docs/release-notes" rel="nofollow">https://developers.google.com/google-ads/api/docs/release-notes</a> and all of those being deprecated. Is there any chance the provider can be upgraded to include this? here is the release note of <a href="https://github.com/googleads/google-ads-python/releases/tag/12.0.0">https://github.com/googleads/google-ads-python/releases/tag/12.0.0</a> google's 12.0.0 release which also deprecated v5</p> <p dir="auto"><strong>Apache Airflow version</strong>: 2.0.1</p> <p dir="auto"><strong>What happened</strong>:<br> deprecated API endpoint, need to update google ads to version 12.0.0</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> return query data, instead, I get an error returned from the google ads v5 API:</p> <p dir="auto"><strong>How to reproduce it</strong>:<br> attempt to hit the v5 API endpoint</p> <p dir="auto"><strong>Anything else we need to know</strong>:<br> error is below</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Response ------- Headers: { &quot;google.ads.googleads.v5.errors.googleadsfailure-bin&quot;: &quot;\nJ\n\u0002\b\u0001\u0012D Version v5 is deprecated. Requests to this version will be blocked.&quot;, &quot;grpc-status-details-bin&quot;: &quot;\b\u0003\u0012%Request contains an invalid argument.\u001a\u0001\nCtype.googleapis.com/google.ads.googleads.v5.errors.GoogleAdsFailure\u0012L\nJ\n\u0002\b\u0001\u0012D Version v5 is deprecated. Requests to this version will be blocked.&quot;, &quot;request-id&quot;: &quot;JyFZ9zysaqJbiCr_PX8SLA&quot; } Fault: errors { error_code { request_error: UNKNOWN } message: &quot; Version v5 is deprecated. Requests to this version will be blocked.&quot; }"><pre class="notranslate"><code class="notranslate">Response ------- Headers: { "google.ads.googleads.v5.errors.googleadsfailure-bin": "\nJ\n\u0002\b\u0001\u0012D Version v5 is deprecated. Requests to this version will be blocked.", "grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid argument.\u001a\u0001\nCtype.googleapis.com/google.ads.googleads.v5.errors.GoogleAdsFailure\u0012L\nJ\n\u0002\b\u0001\u0012D Version v5 is deprecated. Requests to this version will be blocked.", "request-id": "JyFZ9zysaqJbiCr_PX8SLA" } Fault: errors { error_code { request_error: UNKNOWN } message: " Version v5 is deprecated. Requests to this version will be blocked." } </code></pre></div>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/escape-sequences-in-strings#?solution=%0Avar%20myStr%3D'Here%20is%20a%20backslash%3A%20%5C%5C.%5Cn%20%5Ct%20%5Ct%20Here%20is%20a%20new%20line%20with%20two%20tabs.'%3B%20%2F%2F%20Change%20this%20line%0Aconsole.log%28myStr%29%3B%0A%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; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.<br> I get the required output, as can be seen in the screenshot ---&gt; <a href="https://snag.gy/FxkBG0.jpg" rel="nofollow">https://snag.gy/FxkBG0.jpg</a><br> But for some reason my code does not get accepted.<br> My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var myStr='Here is a backslash: \\.\n \t \t Here is a new line with two tabs.'; // Change this line console.log(myStr); "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myStr</span><span class="pl-c1">=</span><span class="pl-s">'Here is a backslash: \\.\n \t \t Here is a new line with two tabs.'</span><span class="pl-kos">;</span> <span class="pl-c">// Change this line</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">myStr</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </pre></div>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/escape-sequences-in-strings#?solution=var%20myStr%20%3D%20%22Here%20is%20a%20backslash%3A%5C%5C.%5Cn%20%5Ct%5Ct%20Here%20is%20a%20new%20line%20with%20two%20tabs.%22%3B%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 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2756.0 Safari/537.36 OPR/40.0.2267.0 (Edition developer)</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;Here is a backslash:\\.\n \t\t Here is a new line with two tabs.&quot;;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myStr</span> <span class="pl-c1">=</span> <span class="pl-s">"Here is a backslash:\\.\n \t\t Here is a new line with two tabs."</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Screenshot: <a href="https://i.sli.mg/hEmocD.png" rel="nofollow">https://i.sli.mg/hEmocD.png</a></p> <p dir="auto">I asked for help in the chatroom and my solution was the same as others who had successfully completed the challenge.</p>
1
<p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/06/2020 11:05:26<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5032792/2020-08-06.txt">2020-08-06.txt</a></p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">These settings parallel each other and are also confusing with <code class="notranslate">transport.type</code>. This causes problems in tests sometimes since we randomize the first two settings. So if a test wants to rely on, eg always using netty, it has to remember to set <em>two</em> settings, to make sure randomization doesn't mess this up. And if the test forgets one, it can have weird consequences, like the wrong transport address instance being created, causing class cast exceptions like in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="100193487" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/12788" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/12788/hovercard" href="https://github.com/elastic/elasticsearch/issues/12788">#12788</a>.</p> <p dir="auto">I think we should minimize these to as single setting (preferably <code class="notranslate">transport.type</code> since that is the pluggable setting).</p>
<p dir="auto">The notes in the code say that the script parsing will go in 2.0 but its still there. I mean <code class="notranslate">SCRIPT_LANG</code>, <code class="notranslate">SCRIPT_FILE</code>, <code class="notranslate">SCRIPT_ID</code>, and <code class="notranslate">SCRIPT_INLINE</code>.</p>
0
<p dir="auto">When an accordion container is closed, its contents are still visible in IE.</p> <p dir="auto">I checked IE9, IE8 and IE7. Fails in all of them. It was a real IE9 running on Windows 7, IE8 and IE7 were the IE9 running in the emulation modes.</p> <p dir="auto">The accordion example at <a href="http://twitter.github.com/bootstrap/javascript.html#collapse">http://twitter.github.com/bootstrap/javascript.html#collapse</a> works as test case.</p> <p dir="auto">Screenshot of the problem: <a href="http://imgur.com/dvdVU" rel="nofollow">http://imgur.com/dvdVU</a></p>
<p dir="auto">When using delegation i.e, passing a selector, the passed options is ignored, however any data attribute options are not.<br> v2.3.1.</p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ make check-notidy TESTNAME='sepcomp-lib-lto' cfg: version 1.1.0-dev (3906edf41 2015-05-09) (built 2015-05-10) cfg: build triple x86_64-pc-windows-gnu cfg: host triples x86_64-pc-windows-gnu cfg: target triples x86_64-pc-windows-gnu cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS) cfg: enabling debuginfo (CFG_ENABLE_DEBUGINFO) cfg: host for x86_64-pc-windows-gnu is x86_64 cfg: os for x86_64-pc-windows-gnu is pc-windows-gnu cfg: good valgrind for x86_64-pc-windows-gnu is cfg: using CC=gcc (CFG_CC) cfg: disabling valgrind run-pass tests cfg: no xelatex found, disabling LaTeX docs cfg: no pandoc found, omitting PDF and EPUB docs cfg: including test rules cfg: javac not available, skipping lexer test... run rpass [x86_64-pc-windows-gnu]: x86_64-pc-windows-gnu/stage2/bin/compiletest.exe running 1 test test [run-pass] run-pass/sepcomp-lib-lto.rs ... FAILED failures: ---- [run-pass] run-pass/sepcomp-lib-lto.rs stdout ---- error: compilation failed! status: exit code: 3 command: PATH=&quot;x86_64-pc-windows-gnu/stage2/bin;C:\msys64\home\rust\x86_64-pc-windows-gnu\stage2\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin&quot; x86_64-pc-windows-gnu/stage2/bin/rustc.exe C:/msys64/home/rust/src/test/run-pass/sepcomp-lib-lto.rs -L x86_64-pc-windows-gnu/test/run-pass/ --target=x86_64-pc-windows-gnu -L x86_64-pc-windows-gnu/test/run-pass\sepcomp-lib-lto.stage2-x86_64-pc-windows-gnu.run-pass.libaux -o x86_64-pc-windows-gnu/test/run-pass\sepcomp-lib-lto.stage2-x86_64-pc-windows-gnu.exe --cfg rtopt --cfg debug -O -L x86_64-pc-windows-gnu/rt -C lto stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Assertion failed! Program: C:\msys64\home\rust\x86_64-pc-windows-gnu\stage2\bin\rustc.exe File: C:/msys64/home/rust/src/llvm/lib/CodeGen/LexicalScopes.cpp, Line 179 Expression: DISubprogram(Scope).describes(MF-&gt;getFunction()) ------------------------------------------ thread '[run-pass] run-pass/sepcomp-lib-lto.rs' panicked at 'explicit panic', C:/msys64/home/rust/src/compiletest\runtest.rs:1525 failures: [run-pass] run-pass/sepcomp-lib-lto.rs test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured"><pre class="notranslate"><code class="notranslate">$ make check-notidy TESTNAME='sepcomp-lib-lto' cfg: version 1.1.0-dev (3906edf41 2015-05-09) (built 2015-05-10) cfg: build triple x86_64-pc-windows-gnu cfg: host triples x86_64-pc-windows-gnu cfg: target triples x86_64-pc-windows-gnu cfg: enabling debug assertions (CFG_ENABLE_DEBUG_ASSERTIONS) cfg: enabling debuginfo (CFG_ENABLE_DEBUGINFO) cfg: host for x86_64-pc-windows-gnu is x86_64 cfg: os for x86_64-pc-windows-gnu is pc-windows-gnu cfg: good valgrind for x86_64-pc-windows-gnu is cfg: using CC=gcc (CFG_CC) cfg: disabling valgrind run-pass tests cfg: no xelatex found, disabling LaTeX docs cfg: no pandoc found, omitting PDF and EPUB docs cfg: including test rules cfg: javac not available, skipping lexer test... run rpass [x86_64-pc-windows-gnu]: x86_64-pc-windows-gnu/stage2/bin/compiletest.exe running 1 test test [run-pass] run-pass/sepcomp-lib-lto.rs ... FAILED failures: ---- [run-pass] run-pass/sepcomp-lib-lto.rs stdout ---- error: compilation failed! status: exit code: 3 command: PATH="x86_64-pc-windows-gnu/stage2/bin;C:\msys64\home\rust\x86_64-pc-windows-gnu\stage2\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin" x86_64-pc-windows-gnu/stage2/bin/rustc.exe C:/msys64/home/rust/src/test/run-pass/sepcomp-lib-lto.rs -L x86_64-pc-windows-gnu/test/run-pass/ --target=x86_64-pc-windows-gnu -L x86_64-pc-windows-gnu/test/run-pass\sepcomp-lib-lto.stage2-x86_64-pc-windows-gnu.run-pass.libaux -o x86_64-pc-windows-gnu/test/run-pass\sepcomp-lib-lto.stage2-x86_64-pc-windows-gnu.exe --cfg rtopt --cfg debug -O -L x86_64-pc-windows-gnu/rt -C lto stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Assertion failed! Program: C:\msys64\home\rust\x86_64-pc-windows-gnu\stage2\bin\rustc.exe File: C:/msys64/home/rust/src/llvm/lib/CodeGen/LexicalScopes.cpp, Line 179 Expression: DISubprogram(Scope).describes(MF-&gt;getFunction()) ------------------------------------------ thread '[run-pass] run-pass/sepcomp-lib-lto.rs' panicked at 'explicit panic', C:/msys64/home/rust/src/compiletest\runtest.rs:1525 failures: [run-pass] run-pass/sepcomp-lib-lto.rs test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured </code></pre></div> <p dir="auto">I'm using msys2 x64 on Windows 7 and a fresh clone of Rust.</p> <p dir="auto">cc <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="63306455" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/23566" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/23566/hovercard" href="https://github.com/rust-lang/rust/issues/23566">#23566</a></p>
<p dir="auto">When compiling with --enable-debug, the <code class="notranslate">sepcomp-lib-lto</code> test fails. It passes if I build without --enable-debug. Relevant build output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git rev-parse HEAD a9515698fa456390386087ccb6123ce741f18527 $ uname -a Linux dev 3.19.0-18-generic #18-Ubuntu SMP Tue May 19 18:31:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux $ ./configure --enable-debug $ make -j12 check-stage1-rpass TESTNAME=sepcomp-lib-lto ... running 1 test test [run-pass] run-pass/sepcomp-lib-lto.rs ... FAILED failures: ---- [run-pass] run-pass/sepcomp-lib-lto.rs stdout ---- error: compilation failed! status: signal: 6 command: x86_64-unknown-linux-gnu/stage1/bin/rustc /home/ubuntu/rust/src/test/run-pass/sepcomp-lib-lto.rs -L x86_64-unknown-linux-gnu/test/run-pass/ --target=x86_64-unknown-linux-gnu -L x86_64-unknown-linux-gnu/test/run-pass/sepcomp-lib-lto.stage1-x86_64-unknown-linux-gnu.run-pass.libaux -o x86_64-unknown-linux-gnu/test/run-pass/sepcomp-lib-lto.stage1-x86_64-unknown-linux-gnu -O -L x86_64-unknown-linux-gnu/rt -C lto stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ rustc: /home/ubuntu/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:708: llvm::DIE* llvm::DwarfUnit::getOrCreateTypeDIE(const llvm::MDNode*): Assertion `Ty == resolve(Ty-&gt;getRef()) &amp;&amp; &quot;type was not uniqued, possible ODR violation.&quot;' failed. ------------------------------------------ thread '[run-pass] run-pass/sepcomp-lib-lto.rs' panicked at 'explicit panic', /home/ubuntu/rust/src/compiletest/runtest.rs:1497 failures: [run-pass] run-pass/sepcomp-lib-lto.rs test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured thread '&lt;main&gt;' panicked at 'Some tests failed', /home/ubuntu/rust/src/compiletest/compiletest.rs:252 /home/ubuntu/rust/mk/tests.mk:756: recipe for target 'tmp/check-stage1-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-rpass.ok' failed make: *** [tmp/check-stage1-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-rpass.ok] Error 101"><pre class="notranslate"><code class="notranslate">$ git rev-parse HEAD a9515698fa456390386087ccb6123ce741f18527 $ uname -a Linux dev 3.19.0-18-generic #18-Ubuntu SMP Tue May 19 18:31:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux $ ./configure --enable-debug $ make -j12 check-stage1-rpass TESTNAME=sepcomp-lib-lto ... running 1 test test [run-pass] run-pass/sepcomp-lib-lto.rs ... FAILED failures: ---- [run-pass] run-pass/sepcomp-lib-lto.rs stdout ---- error: compilation failed! status: signal: 6 command: x86_64-unknown-linux-gnu/stage1/bin/rustc /home/ubuntu/rust/src/test/run-pass/sepcomp-lib-lto.rs -L x86_64-unknown-linux-gnu/test/run-pass/ --target=x86_64-unknown-linux-gnu -L x86_64-unknown-linux-gnu/test/run-pass/sepcomp-lib-lto.stage1-x86_64-unknown-linux-gnu.run-pass.libaux -o x86_64-unknown-linux-gnu/test/run-pass/sepcomp-lib-lto.stage1-x86_64-unknown-linux-gnu -O -L x86_64-unknown-linux-gnu/rt -C lto stdout: ------------------------------------------ ------------------------------------------ stderr: ------------------------------------------ rustc: /home/ubuntu/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:708: llvm::DIE* llvm::DwarfUnit::getOrCreateTypeDIE(const llvm::MDNode*): Assertion `Ty == resolve(Ty-&gt;getRef()) &amp;&amp; "type was not uniqued, possible ODR violation."' failed. ------------------------------------------ thread '[run-pass] run-pass/sepcomp-lib-lto.rs' panicked at 'explicit panic', /home/ubuntu/rust/src/compiletest/runtest.rs:1497 failures: [run-pass] run-pass/sepcomp-lib-lto.rs test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured thread '&lt;main&gt;' panicked at 'Some tests failed', /home/ubuntu/rust/src/compiletest/compiletest.rs:252 /home/ubuntu/rust/mk/tests.mk:756: recipe for target 'tmp/check-stage1-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-rpass.ok' failed make: *** [tmp/check-stage1-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-rpass.ok] Error 101 </code></pre></div> <p dir="auto">Backtrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 0x00007ffff6cb0267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55 #1 0x00007ffff6cb1eca in __GI_abort () at abort.c:89 #2 0x00007ffff6ca903d in __assert_fail_base (fmt=0x7ffff6e0b028 &quot;%s%s%s:%u: %s%sAssertion `%s' failed.\n%n&quot;, assertion=assertion@entry=0x7ffff1e75ca8 &quot;Ty == resolve(Ty-&gt;getRef()) &amp;&amp; \&quot;type was not uniqued, possible ODR violation.\&quot;&quot;, file=file@entry=0x7ffff1e75878 &quot;/home/ubuntu/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp&quot;, line=line@entry=708, function=function@entry=0x7ffff1e78300 &lt;llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*)::__PRETTY_FUNCTION__&gt; &quot;llvm::DIE* llvm::DwarfUnit::getOrCreateTypeDIE(const llvm::MDNode*)&quot;) at assert.c:92 #3 0x00007ffff6ca90f2 in __GI___assert_fail ( assertion=0x7ffff1e75ca8 &quot;Ty == resolve(Ty-&gt;getRef()) &amp;&amp; \&quot;type was not uniqued, possible ODR violation.\&quot;&quot;, file=0x7ffff1e75878 &quot;/home/ubuntu/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp&quot;, line=708, function=0x7ffff1e78300 &lt;llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*)::__PRETTY_FUNCTION__&gt; &quot;llvm::DIE* llvm::DwarfUnit::getOrCreateTypeDIE(const llvm::MDNode*)&quot;) at assert.c:101 #4 0x00007ffff0dcdd6e in llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #5 0x00007ffff0dcddb9 in llvm::DwarfUnit::addType(llvm::DIE&amp;, llvm::DIType const*, llvm::dwarf::Attribute) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #6 0x00007ffff0dce59a in llvm::DwarfUnit::constructTypeDIE(llvm::DIE&amp;, llvm::DISubroutineType const*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #7 0x00007ffff0dcdc7a in llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #8 0x00007ffff0dcddb9 in llvm::DwarfUnit::addType(llvm::DIE&amp;, llvm::DIType const*, llvm::dwarf::Attribute) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #9 0x00007ffff0dcd3af in llvm::DwarfUnit::applySubprogramAttributes(llvm::DISubprogram const*, llvm::DIE&amp;, bool) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #10 0x00007ffff0da7962 in llvm::DwarfCompileUnit::applySubprogramAttributesToDefinition(llvm::DISubprogram const*, llvm::DIE&amp;) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #11 0x00007ffff0daebd2 in llvm::DwarfCompileUnit::constructAbstractSubprogramScopeDIE(llvm::LexicalScope*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #12 0x00007ffff0dbc4f5 in llvm::DwarfDebug::constructAbstractSubprogramScopeDIE(llvm::LexicalScope*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #13 0x00007ffff0dc210b in llvm::DwarfDebug::endFunction(llvm::MachineFunction const*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #14 0x00007ffff0d8dbe5 in llvm::AsmPrinter::EmitFunctionBody() () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #15 0x00007ffff0a925c6 in llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&amp;) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #16 0x00007ffff16b71a8 in llvm::FPPassManager::runOnFunction(llvm::Function&amp;) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #17 0x00007ffff16b7893 in llvm::legacy::PassManagerImpl::run(llvm::Module&amp;) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #18 0x00007ffff047d095 in LLVMRustWriteOutputFile (Target=0x7fffe8085580, PMR=0x7fffe80211f0, M=0x7fffe8006220, path=0x7fffed3f4b20 &quot;x\326\034\356\377\177&quot;, FileType=llvm::TargetMachine::CGFT_ObjectFile) at /home/ubuntu/rust/src/rustllvm/PassWrapper.cpp:249 #19 0x00007ffff55de42a in rustc_trans::back::write::write_output_file (handler=0x7fffed3f84c8, target=0x7fffe8085580, pm=0x7fffe80211f0, m=0x7fffe8006220, output=0x7fffec4e2d80, file_type=ObjectFileType) at src/librustc_trans/back/write.rs:72 #20 0x00007ffff55eb33f in fnfn (cpm=0x7fffe80211f0) at src/librustc_trans/back/write.rs:565 #21 0x00007ffff55eb26e in rustc_trans::back::write::optimize_and_codegen::with_codegen&lt;closure&gt; (tm=0x7fffe8085580, llmod=0x7fffe8006220, no_builtins=false, f={void (struct (*mut rustc_llvm::PassManager_opaque))} 0x7fffed3f4e68) at src/librustc_trans/back/write.rs:533 #22 0x00007ffff55ea9cb in fnfn () at src/librustc_trans/back/write.rs:564 #23 0x00007ffff55ea0ed in rustc_trans::util::common::time&lt;(),(),closure&gt; (do_it=false, what=..., u=0, f={void (struct (()))} 0x7fffed3f5460) at src/librustc/util/common.rs:39 #24 0x00007ffff55e80ea in rustc_trans::back::write::optimize_and_codegen (cgcx=0x7fffed3f63c0, mtrans=..., config=..., name_extra=..., output_names=...) at src/librustc_trans/back/write.rs:543 #25 0x00007ffff55f2864 in rustc_trans::back::write::execute_work_item (cgcx=0x7fffed3f63c0, work_item=...) at src/librustc_trans/back/write.rs:906 #26 0x00007ffff55ef155 in rustc_trans::back::write::run_work_singlethreaded (sess=0x7fffed3f7c88, reachable=..., work_items=...) at src/librustc_trans/back/write.rs:919 #27 0x00007ffff55ebe6f in rustc_trans::back::write::run_passes (sess=0x7fffed3f7c88, trans=0x7fffed3f7968, output_types=..., crate_output=0x7fffed3f7a10) at src/librustc_trans/back/write.rs:677 #28 0x00007ffff7a6c7fe in fnfn () at src/librustc_driver/driver.rs:767 #29 0x00007ffff7a6c432 in rustc_driver::util::common::time&lt;(),(),closure&gt; (do_it=false, what=..., u=0, f={void (struct (()))} 0x7fffed3f74e8) at src/librustc/util/common.rs:39 #30 0x00007ffff78ed1fd in rustc_driver::driver::phase_5_run_llvm_passes (sess=0x7fffed3f7c88, trans=0x7fffed3f7968, outputs=0x7fffed3f7a10) at src/librustc_driver/driver.rs:766 #31 0x00007ffff7844144 in rustc_driver::driver::compile_input (sess=..., cfg=..., input=0x7fffed3fdf98, outdir=0x7fffed3fe110, output=0x7fffed3fe0f0, addl_plugins=..., control=...) at src/librustc_driver/driver.rs:168 #32 0x00007ffff7b096df in rustc_driver::run_compiler (args=..., callbacks=...) at src/librustc_driver/lib.rs:156 #33 0x00007ffff7b060fc in fnfn () at src/librustc_driver/lib.rs:99 #34 0x00007ffff7b052c9 in fnfn () at src/librustc_driver/lib.rs:806 #35 0x00007ffff7b051a6 in rustc_driver::boxed::F.FnBox&lt;A&gt;::call_box (self=0x7fffed43a060, args=0) at src/liballoc/boxed.rs:398 #36 0x00007ffff7b04a6f in rustc_driver::boxed::Box&lt;FnBox&lt;A, Output = R&gt;+ Send + 'a&gt;.FnOnce&lt;A&gt;::call_once (self=..., args=0) at src/liballoc/boxed.rs:414 #37 0x00007ffff7b044cc in fnfn () at src/libstd/thread/mod.rs:349 #38 0x00007ffff7b0444f in rustc_driver::rt::unwind::try::try_fn&lt;closure&gt; (opt_closure=0x7fffed3fe8e8) at src/libstd/rt/unwind/mod.rs:158 #39 0x00007ffff7b043ea in rt::unwind::try::try_fn::h17428172142314623289 () from x86_64-unknown-linux-gnu/stage1/lib/librustc_driver-d8ace771.so #40 0x00007ffff7332de9 in rust_try_inner () from x86_64-unknown-linux-gnu/stage1/lib/libstd-d8ace771.so #41 0x00007ffff7332dd6 in rust_try () from x86_64-unknown-linux-gnu/stage1/lib/libstd-d8ace771.so #42 0x00007ffff718fa30 in std::rt::unwind::try::inner_try (f={void (enum class c_void *)} 0x7fffed3fe8a8, data=0x7fffed3fe8e8) at src/libstd/rt/unwind/mod.rs:147 #43 0x00007ffff7b04385 in rustc_driver::rt::unwind::try&lt;closure&gt; (f={void (())} 0x7fffed3fe900) at src/libstd/rt/unwind/mod.rs:130 #44 0x00007ffff7b0419d in fnfn () at src/libstd/thread/mod.rs:349 #45 0x00007ffff7b04ca1 in rustc_driver::boxed::F.FnBox&lt;A&gt;::call_box (self=0x7fffed424180, args=0) at src/liballoc/boxed.rs:398 #46 0x00007ffff71b0eaf in std::boxed::Box&lt;FnBox&lt;A, Output = R&gt;+ 'a&gt;.FnOnce&lt;A&gt;::call_once (self=..., args=0) at src/liballoc/boxed.rs:406 #47 0x00007ffff71b0de7 in std::sys_common::thread::start_thread (main=0x7fffed43b000) at src/libstd/sys/common/thread.rs:30 #48 0x00007ffff71e2d05 in std::sys::thread::Thread::new::thread_start (main=0x7fffed43b000) at src/libstd/sys/unix/thread.rs:77 #49 0x00007ffff71e2c85 in sys::thread::Thread::new::thread_start::hfcb7277d7665b775tKv () from x86_64-unknown-linux-gnu/stage1/lib/libstd-d8ace771.so #50 0x00007fffef6db6aa in start_thread (arg=0x7fffed3ff700) at pthread_create.c:333 #51 0x00007ffff6d81eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109"><pre class="notranslate"><code class="notranslate">#0 0x00007ffff6cb0267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55 #1 0x00007ffff6cb1eca in __GI_abort () at abort.c:89 #2 0x00007ffff6ca903d in __assert_fail_base (fmt=0x7ffff6e0b028 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7ffff1e75ca8 "Ty == resolve(Ty-&gt;getRef()) &amp;&amp; \"type was not uniqued, possible ODR violation.\"", file=file@entry=0x7ffff1e75878 "/home/ubuntu/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp", line=line@entry=708, function=function@entry=0x7ffff1e78300 &lt;llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*)::__PRETTY_FUNCTION__&gt; "llvm::DIE* llvm::DwarfUnit::getOrCreateTypeDIE(const llvm::MDNode*)") at assert.c:92 #3 0x00007ffff6ca90f2 in __GI___assert_fail ( assertion=0x7ffff1e75ca8 "Ty == resolve(Ty-&gt;getRef()) &amp;&amp; \"type was not uniqued, possible ODR violation.\"", file=0x7ffff1e75878 "/home/ubuntu/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp", line=708, function=0x7ffff1e78300 &lt;llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*)::__PRETTY_FUNCTION__&gt; "llvm::DIE* llvm::DwarfUnit::getOrCreateTypeDIE(const llvm::MDNode*)") at assert.c:101 #4 0x00007ffff0dcdd6e in llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #5 0x00007ffff0dcddb9 in llvm::DwarfUnit::addType(llvm::DIE&amp;, llvm::DIType const*, llvm::dwarf::Attribute) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #6 0x00007ffff0dce59a in llvm::DwarfUnit::constructTypeDIE(llvm::DIE&amp;, llvm::DISubroutineType const*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #7 0x00007ffff0dcdc7a in llvm::DwarfUnit::getOrCreateTypeDIE(llvm::MDNode const*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #8 0x00007ffff0dcddb9 in llvm::DwarfUnit::addType(llvm::DIE&amp;, llvm::DIType const*, llvm::dwarf::Attribute) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #9 0x00007ffff0dcd3af in llvm::DwarfUnit::applySubprogramAttributes(llvm::DISubprogram const*, llvm::DIE&amp;, bool) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #10 0x00007ffff0da7962 in llvm::DwarfCompileUnit::applySubprogramAttributesToDefinition(llvm::DISubprogram const*, llvm::DIE&amp;) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #11 0x00007ffff0daebd2 in llvm::DwarfCompileUnit::constructAbstractSubprogramScopeDIE(llvm::LexicalScope*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #12 0x00007ffff0dbc4f5 in llvm::DwarfDebug::constructAbstractSubprogramScopeDIE(llvm::LexicalScope*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #13 0x00007ffff0dc210b in llvm::DwarfDebug::endFunction(llvm::MachineFunction const*) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #14 0x00007ffff0d8dbe5 in llvm::AsmPrinter::EmitFunctionBody() () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #15 0x00007ffff0a925c6 in llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&amp;) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #16 0x00007ffff16b71a8 in llvm::FPPassManager::runOnFunction(llvm::Function&amp;) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #17 0x00007ffff16b7893 in llvm::legacy::PassManagerImpl::run(llvm::Module&amp;) () from x86_64-unknown-linux-gnu/stage1/lib/librustc_llvm-d8ace771.so #18 0x00007ffff047d095 in LLVMRustWriteOutputFile (Target=0x7fffe8085580, PMR=0x7fffe80211f0, M=0x7fffe8006220, path=0x7fffed3f4b20 "x\326\034\356\377\177", FileType=llvm::TargetMachine::CGFT_ObjectFile) at /home/ubuntu/rust/src/rustllvm/PassWrapper.cpp:249 #19 0x00007ffff55de42a in rustc_trans::back::write::write_output_file (handler=0x7fffed3f84c8, target=0x7fffe8085580, pm=0x7fffe80211f0, m=0x7fffe8006220, output=0x7fffec4e2d80, file_type=ObjectFileType) at src/librustc_trans/back/write.rs:72 #20 0x00007ffff55eb33f in fnfn (cpm=0x7fffe80211f0) at src/librustc_trans/back/write.rs:565 #21 0x00007ffff55eb26e in rustc_trans::back::write::optimize_and_codegen::with_codegen&lt;closure&gt; (tm=0x7fffe8085580, llmod=0x7fffe8006220, no_builtins=false, f={void (struct (*mut rustc_llvm::PassManager_opaque))} 0x7fffed3f4e68) at src/librustc_trans/back/write.rs:533 #22 0x00007ffff55ea9cb in fnfn () at src/librustc_trans/back/write.rs:564 #23 0x00007ffff55ea0ed in rustc_trans::util::common::time&lt;(),(),closure&gt; (do_it=false, what=..., u=0, f={void (struct (()))} 0x7fffed3f5460) at src/librustc/util/common.rs:39 #24 0x00007ffff55e80ea in rustc_trans::back::write::optimize_and_codegen (cgcx=0x7fffed3f63c0, mtrans=..., config=..., name_extra=..., output_names=...) at src/librustc_trans/back/write.rs:543 #25 0x00007ffff55f2864 in rustc_trans::back::write::execute_work_item (cgcx=0x7fffed3f63c0, work_item=...) at src/librustc_trans/back/write.rs:906 #26 0x00007ffff55ef155 in rustc_trans::back::write::run_work_singlethreaded (sess=0x7fffed3f7c88, reachable=..., work_items=...) at src/librustc_trans/back/write.rs:919 #27 0x00007ffff55ebe6f in rustc_trans::back::write::run_passes (sess=0x7fffed3f7c88, trans=0x7fffed3f7968, output_types=..., crate_output=0x7fffed3f7a10) at src/librustc_trans/back/write.rs:677 #28 0x00007ffff7a6c7fe in fnfn () at src/librustc_driver/driver.rs:767 #29 0x00007ffff7a6c432 in rustc_driver::util::common::time&lt;(),(),closure&gt; (do_it=false, what=..., u=0, f={void (struct (()))} 0x7fffed3f74e8) at src/librustc/util/common.rs:39 #30 0x00007ffff78ed1fd in rustc_driver::driver::phase_5_run_llvm_passes (sess=0x7fffed3f7c88, trans=0x7fffed3f7968, outputs=0x7fffed3f7a10) at src/librustc_driver/driver.rs:766 #31 0x00007ffff7844144 in rustc_driver::driver::compile_input (sess=..., cfg=..., input=0x7fffed3fdf98, outdir=0x7fffed3fe110, output=0x7fffed3fe0f0, addl_plugins=..., control=...) at src/librustc_driver/driver.rs:168 #32 0x00007ffff7b096df in rustc_driver::run_compiler (args=..., callbacks=...) at src/librustc_driver/lib.rs:156 #33 0x00007ffff7b060fc in fnfn () at src/librustc_driver/lib.rs:99 #34 0x00007ffff7b052c9 in fnfn () at src/librustc_driver/lib.rs:806 #35 0x00007ffff7b051a6 in rustc_driver::boxed::F.FnBox&lt;A&gt;::call_box (self=0x7fffed43a060, args=0) at src/liballoc/boxed.rs:398 #36 0x00007ffff7b04a6f in rustc_driver::boxed::Box&lt;FnBox&lt;A, Output = R&gt;+ Send + 'a&gt;.FnOnce&lt;A&gt;::call_once (self=..., args=0) at src/liballoc/boxed.rs:414 #37 0x00007ffff7b044cc in fnfn () at src/libstd/thread/mod.rs:349 #38 0x00007ffff7b0444f in rustc_driver::rt::unwind::try::try_fn&lt;closure&gt; (opt_closure=0x7fffed3fe8e8) at src/libstd/rt/unwind/mod.rs:158 #39 0x00007ffff7b043ea in rt::unwind::try::try_fn::h17428172142314623289 () from x86_64-unknown-linux-gnu/stage1/lib/librustc_driver-d8ace771.so #40 0x00007ffff7332de9 in rust_try_inner () from x86_64-unknown-linux-gnu/stage1/lib/libstd-d8ace771.so #41 0x00007ffff7332dd6 in rust_try () from x86_64-unknown-linux-gnu/stage1/lib/libstd-d8ace771.so #42 0x00007ffff718fa30 in std::rt::unwind::try::inner_try (f={void (enum class c_void *)} 0x7fffed3fe8a8, data=0x7fffed3fe8e8) at src/libstd/rt/unwind/mod.rs:147 #43 0x00007ffff7b04385 in rustc_driver::rt::unwind::try&lt;closure&gt; (f={void (())} 0x7fffed3fe900) at src/libstd/rt/unwind/mod.rs:130 #44 0x00007ffff7b0419d in fnfn () at src/libstd/thread/mod.rs:349 #45 0x00007ffff7b04ca1 in rustc_driver::boxed::F.FnBox&lt;A&gt;::call_box (self=0x7fffed424180, args=0) at src/liballoc/boxed.rs:398 #46 0x00007ffff71b0eaf in std::boxed::Box&lt;FnBox&lt;A, Output = R&gt;+ 'a&gt;.FnOnce&lt;A&gt;::call_once (self=..., args=0) at src/liballoc/boxed.rs:406 #47 0x00007ffff71b0de7 in std::sys_common::thread::start_thread (main=0x7fffed43b000) at src/libstd/sys/common/thread.rs:30 #48 0x00007ffff71e2d05 in std::sys::thread::Thread::new::thread_start (main=0x7fffed43b000) at src/libstd/sys/unix/thread.rs:77 #49 0x00007ffff71e2c85 in sys::thread::Thread::new::thread_start::hfcb7277d7665b775tKv () from x86_64-unknown-linux-gnu/stage1/lib/libstd-d8ace771.so #50 0x00007fffef6db6aa in start_thread (arg=0x7fffed3ff700) at pthread_create.c:333 #51 0x00007ffff6d81eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 </code></pre></div>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.0.1 building from source</li> <li>Operating System / Platform =&gt; macOS High Sierra, 10.13.3</li> <li>Compiler =&gt;</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Trying to see any speedup possible for my simple Tensorflow network. I have build OpenCV with OpenCL target, however when I set the preferable target to OpenCL using</p> <p dir="auto">net.setPreferableTarget(cv::dnn::DNN_TARGET_OPENCL);</p> <p dir="auto">I see the following message:</p> <p dir="auto">"OpenCV(ocl4dnn): consider to specify kernel configuration cache directory<br> via OPENCV_OCL4DNN_CONFIG_PATH parameter.<br> OpenCL program build log: dnn/dummy<br> Status -43: CL_INVALID_BUILD_OPTIONS<br> -cl-no-subgroup-ifp -D AMD_DEVICE"</p> <p dir="auto">Also, numerically the prediction is different than what I get from running directly on CPU. Running the following code snippet produces the positive output which verifies OpenCL being available.</p> <p dir="auto">############## Code Snippet #################<br> if (!cv::ocl::haveOpenCL())<br> cout &lt;&lt; "OpenCL is not available..." &lt;&lt; endl;<br> else<br> cout &lt;&lt; "OpenCL is AVAILABLE! :) " &lt;&lt; endl; //this is the output<br> cv::ocl::setUseOpenCL(true);<br> cv::ocl::Context ctx = cv::ocl::Context::getDefault();<br> cout &lt;&lt; ctx.ndevices() &lt;&lt; " GPU devices are detected." &lt;&lt; endl;<br> for (int i = 0; i &lt; ctx.ndevices(); i++)<br> {<br> cv::ocl::Device device = ctx.device(i);<br> cout &lt;&lt; "name: " &lt;&lt; device.name() &lt;&lt; endl;<br> cout &lt;&lt; "available: " &lt;&lt; device.available() &lt;&lt; endl;<br> cout &lt;&lt; "imageSupport: " &lt;&lt; device.imageSupport() &lt;&lt; endl;<br> cout &lt;&lt; "OpenCL_C_Version: " &lt;&lt; device.OpenCL_C_Version() &lt;&lt; endl;<br> cout &lt;&lt; endl;<br> } //this works &amp; i can see my video card name &amp; opencl version<br> cv::ocl::Device(ctx.device(0));</p> <p dir="auto">############### Output ######################</p> <p dir="auto">OpenCL is AVAILABLE! :)<br> 1 GPU devices are detected.<br> name: AMD Radeon R9 M395X Compute Engine<br> available: 1<br> imageSupport: 1<br> OpenCL_C_Version: OpenCL C 1.2</p> <p dir="auto">Is this a bug in OpenCV or am I overlooking a step in building OpenCv with OpenCL. Looking for help and feedback!</p> <h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Out of the box I'm having a link error.</p> <h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV: 4.0.0-dev</li> <li>Operating System / Platform: Windows 10 x64 enteprise</li> <li>Compiler: <ul dir="auto"> <li>Visual Studio 2017 15.9.1</li> <li>vcvars64.bat -vcvars_ver=14.16.27023</li> <li>cmake 3.13.0rc3</li> <li>cuda 10.0</li> </ul> </li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">opencv_cudev_main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool cv::__termination" (__imp<br> _?__termination@cv@@3_NA) referenced in function DllMain [I:\opencv-master\build\modules\cudev\opencv_cudev.vcxproj]<br> I:\opencv-master\build\bin\Release\opencv_cudev400.dll : fatal error LNK1120: 1 unresolved externals [I:\opencv-master<br> build\modules\cudev\opencv_cudev.vcxproj]</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto"><code class="notranslate">$target = "Visual Studio 15 2017 Win64"; cmake -G $target -T v141, host=x64 -j8 -DBUILD_JAVA=0 -DWITH_MATLAB=0 -DBUILD_DOC=0 -DBUILD_PERF_TESTS=0 -DBUILD_TESTS=0 -DBUILD_opencv_world=0 -DOPENCV_ENABLE_NONFREE=1 -DBUILD_opencv-apps=0 -DENABLE_PYLINT=0 -DENABLE_CXX11=0 -DWITH_VTK=1 -DCUDA_SDK_ROOT_DIR="$env:CUDA_PATH" -DCUDA_ARCH_BIN="5.2" -DCUDA_VERBOSE_BUILD=0 -DBUILD_CUDA_STUBS=0 -DWITH_OPENCL=1 -DWITH_CUDA=1 -DMKL_WITH_OPENMP=0 -DMKL_WITH_TBB=0 -DOPENCV_EXTRA_MODULES_PATH="../opencv_contrib/modules" -DINSTALL_CREATE_DISTRIB=1 -DCPACK_BINARY_ZIP=1 -DCPACK_SOURCE_ZIP=1 -DCMAKE_VERBOSE_MAKEFILE=0 ../opencv | Tee-Object -Variable RESULT</code></p>
0
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">Ansible 1.8 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/a1f09bd89f6daec9365f0654bda6e4e9654be45c/hovercard" href="https://github.com/ansible/ansible/commit/a1f09bd89f6daec9365f0654bda6e4e9654be45c"><tt>a1f09bd</tt></a>) last updated 2014/08/20 17:28:56 (GMT +400)</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Linux Ubuntu 12.04, Mac OS X</p> <h5 dir="auto">Summary:</h5> <p dir="auto">There is an <code class="notranslate">app_user</code> variable which is defined in <code class="notranslate">group_vars/all</code> as <code class="notranslate">all_user</code> and in external variables file <code class="notranslate">vars/staging.yml</code> as <code class="notranslate">staging_user</code>. I've got weird win order for the variable when the second external variables file is used and it is not empty.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">I made a public repository with files for convenience <a href="https://github.com/hostmaster/ansible-bugreport">https://github.com/hostmaster/ansible-bugreport</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# group_vars/all app_user: all_user"><pre class="notranslate"><code class="notranslate"># group_vars/all app_user: all_user </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# inventory/staging localhost ansible_connection=local [all:vars] deploy_env=staging"><pre class="notranslate"><code class="notranslate"># inventory/staging localhost ansible_connection=local [all:vars] deploy_env=staging </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# vars/secrets/staging.yml test_url: 'google.com'"><pre class="notranslate"><code class="notranslate"># vars/secrets/staging.yml test_url: 'google.com' </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# vars/staging.yml app_user: staging_user"><pre class="notranslate"><code class="notranslate"># vars/staging.yml app_user: staging_user </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- # test.yml - hosts: localhost gather_facts: no vars_files: - 'vars/{{ deploy_env }}.yml' - 'vars/secrets/{{ deploy_env }}.yml' tasks: - local_action: debug var=deploy_env - local_action: debug var=app_user"><pre class="notranslate"><code class="notranslate"> --- # test.yml - hosts: localhost gather_facts: no vars_files: - 'vars/{{ deploy_env }}.yml' - 'vars/secrets/{{ deploy_env }}.yml' tasks: - local_action: debug var=deploy_env - local_action: debug var=app_user </code></pre></div> <p dir="auto">I have expected to get <code class="notranslate">staging_user</code> here but I've got <code class="notranslate">all_user</code> instead.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook -i inventory/staging test.yml PLAY [localhost] ************************************************************** localhost: importing /Users/igor/Temp/ansible/test_run/vars/staging.yml localhost: importing /Users/igor/Temp/ansible/test_run/vars/secrets/staging.yml TASK: [debug var=deploy_env] ************************************************** ok: [localhost -&gt; 127.0.0.1] =&gt; { &quot;deploy_env&quot;: &quot;staging&quot; } TASK: [debug var=app_user] **************************************************** ok: [localhost -&gt; 127.0.0.1] =&gt; { &quot;app_user&quot;: &quot;all_user&quot; } PLAY RECAP ******************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">$ ansible-playbook -i inventory/staging test.yml PLAY [localhost] ************************************************************** localhost: importing /Users/igor/Temp/ansible/test_run/vars/staging.yml localhost: importing /Users/igor/Temp/ansible/test_run/vars/secrets/staging.yml TASK: [debug var=deploy_env] ************************************************** ok: [localhost -&gt; 127.0.0.1] =&gt; { "deploy_env": "staging" } TASK: [debug var=app_user] **************************************************** ok: [localhost -&gt; 127.0.0.1] =&gt; { "app_user": "all_user" } PLAY RECAP ******************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0 </code></pre></div> <p dir="auto">Now comment out the line in <code class="notranslate">vars/secrets/staging.yml</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# vars/secrets/staging.yml # test_url: 'google.com'"><pre class="notranslate"><code class="notranslate"># vars/secrets/staging.yml # test_url: 'google.com' </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook -i inventory/staging test.yml PLAY [localhost] ************************************************************** localhost: importing /Users/igor/Temp/ansible/test_run/vars/staging.yml TASK: [debug var=deploy_env] ************************************************** ok: [localhost -&gt; 127.0.0.1] =&gt; { &quot;deploy_env&quot;: &quot;staging&quot; } TASK: [debug var=app_user] **************************************************** ok: [localhost -&gt; 127.0.0.1] =&gt; { &quot;app_user&quot;: &quot;staging_user&quot; } PLAY RECAP ******************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">$ ansible-playbook -i inventory/staging test.yml PLAY [localhost] ************************************************************** localhost: importing /Users/igor/Temp/ansible/test_run/vars/staging.yml TASK: [debug var=deploy_env] ************************************************** ok: [localhost -&gt; 127.0.0.1] =&gt; { "deploy_env": "staging" } TASK: [debug var=app_user] **************************************************** ok: [localhost -&gt; 127.0.0.1] =&gt; { "app_user": "staging_user" } PLAY RECAP ******************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0 </code></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">ok: [localhost -&gt; 127.0.0.1] =&gt; {<br> "app_user": "staging_user"<br> }</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">ok: [localhost -&gt; 127.0.0.1] =&gt; {<br> "app_user": "all_user"<br> }</p>
<h5 dir="auto">Issue Type: Bug Report</h5> <h5 dir="auto">Ansible Version: 1.6.2 - 1.7.1</h5> <h5 dir="auto">Environment: any</h5> <h5 dir="auto">Summary:</h5> <p dir="auto">Playbook level variable are ignored when we use vars_files with filename defined with {{ansible_os_family}}</p> <p dir="auto">If we import variable file with static name (RedHat.yml for example) - no issue</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Test playbook</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- - name: 'Test Precedence' hosts: vagrantcentos user: vagrant sudo: yes vars: some_var: &quot;foo&quot; vars_files: - vars/{{ ansible_os_family }}.yml #- vars/RedHat.yml - vars/other_vars.yml tasks: - debug: msg={{some_var}} tags: - test"><pre class="notranslate">--- - <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">'</span>Test Precedence<span class="pl-pds">'</span></span> <span class="pl-ent">hosts</span>: <span class="pl-s">vagrantcentos</span> <span class="pl-ent">user</span>: <span class="pl-s">vagrant</span> <span class="pl-ent">sudo</span>: <span class="pl-s">yes</span> <span class="pl-ent">vars</span>: <span class="pl-ent">some_var</span>: <span class="pl-s"><span class="pl-pds">"</span>foo<span class="pl-pds">"</span></span> <span class="pl-ent">vars_files</span>: - <span class="pl-s">vars/{{ ansible_os_family }}.yml</span> <span class="pl-c"><span class="pl-c">#</span>- vars/RedHat.yml</span> - <span class="pl-s">vars/other_vars.yml</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">debug</span>: <span class="pl-s">msg={{some_var}}</span> <span class="pl-ent">tags</span>: - <span class="pl-s">test</span></pre></div> <p dir="auto">and additional files<br> group_vars/all</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="some_var: &quot;bar&quot;"><pre class="notranslate"><span class="pl-ent">some_var</span>: <span class="pl-s"><span class="pl-pds">"</span>bar<span class="pl-pds">"</span></span></pre></div> <p dir="auto">vars/RedHat.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="useless_var: &quot;oops&quot;"><pre class="notranslate"><span class="pl-ent">useless_var</span>: <span class="pl-s"><span class="pl-pds">"</span>oops<span class="pl-pds">"</span></span></pre></div> <p dir="auto">vars/other_vars.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="other_var: &quot;woot&quot;"><pre class="notranslate"><span class="pl-ent">other_var</span>: <span class="pl-s"><span class="pl-pds">"</span>woot<span class="pl-pds">"</span></span></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">debug message should be<br> <code class="notranslate">"msg": "foo"</code><br> this result returned when I comment<br> <code class="notranslate">- vars/{{ ansible_os_family }}.yml</code> line</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">Unexpectedly we got:<br> <code class="notranslate">"msg": "bar"</code></p>
1
<p dir="auto">Enhancing readbility as part of remaining stuff from PR <a href="https://github.com/apache/incubator-dubbo/pull/3013/files">https://github.com/apache/incubator-dubbo/pull/3013/files</a>.</p> <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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">Enhancing readability of code as part of PR <a href="https://github.com/apache/incubator-dubbo/pull/3013/files">https://github.com/apache/incubator-dubbo/pull/3013/files</a></p>
<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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> <li>Operating System version: xxx</li> <li>Java version:</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">I merged the code about <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="402576829" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3327" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3327/hovercard" href="https://github.com/apache/dubbo/pull/3327">#3327</a>, but still UT failed.</p> <p dir="auto">Travis CI failed with the following log<br> <a href="https://api.travis-ci.org/v3/job/484984836/log.txt" rel="nofollow">https://api.travis-ci.org/v3/job/484984836/log.txt</a></p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">CI pass</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">CI fail</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[�[1;34mINFO�[m] �[1;32mTests run: �[0;1;32m2�[m, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.105 s - in org.apache.dubbo.monitor.dubbo.�[1mStatisticsTest�[m [�[1;34mINFO�[m] Running org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorFactoryTest�[m [�[1;34mINFO�[m] �[1;32mTests run: �[0;1;32m1�[m, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.919 s - in org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorFactoryTest�[m [�[1;34mINFO�[m] Running org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorTest�[m [�[1;31mERROR�[m] �[1;31mTests �[0;1mrun: �[0;1m5�[m, �[1;31mFailures: �[0;1;31m1�[m, Errors: 0, Skipped: 0, Time elapsed: 1.028 s�[1;31m &lt;&lt;&lt; FAILURE!�[m - in org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorTest�[m [�[1;31mERROR�[m] testCount Time elapsed: 0.043 s &lt;&lt;&lt; FAILURE! org.opentest4j.AssertionFailedError: expected: &lt;1&gt; but was: &lt;0&gt; at org.apache.dubbo.monitor.dubbo.DubboMonitorTest.testCount(DubboMonitorTest.java:117)"><pre class="notranslate">[�[1<span class="pl-k">;</span>34mINFO�[m] �[1<span class="pl-k">;</span>32mTests run: �[0<span class="pl-k">;</span>1<span class="pl-k">;</span>32m2�[m, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.105 s - <span class="pl-k">in</span> org.apache.dubbo.monitor.dubbo.�[1mStatisticsTest�[m [�[1<span class="pl-k">;</span>34mINFO�[m] Running org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorFactoryTest�[m [�[1<span class="pl-k">;</span>34mINFO�[m] �[1<span class="pl-k">;</span>32mTests run: �[0<span class="pl-k">;</span>1<span class="pl-k">;</span>32m1�[m, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.919 s - <span class="pl-k">in</span> org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorFactoryTest�[m [�[1<span class="pl-k">;</span>34mINFO�[m] Running org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorTest�[m [�[1<span class="pl-k">;</span>31mERROR�[m] �[1<span class="pl-k">;</span>31mTests �[0<span class="pl-k">;</span>1mrun: �[0<span class="pl-k">;</span>1m5�[m, �[1<span class="pl-k">;</span>31mFailures: �[0<span class="pl-k">;</span>1<span class="pl-k">;</span>31m1�[m, Errors: 0, Skipped: 0, Time elapsed: 1.028 s�[1<span class="pl-k">;</span>31m <span class="pl-k">&lt;&lt;&lt;</span> FAILURE<span class="pl-k">!</span>�[m - <span class="pl-k">in</span> org.apache.dubbo.monitor.dubbo.�[1mDubboMonitorTest�[m [�[1<span class="pl-k">;</span>31mERROR�[m] testCount Time elapsed: 0.043 s <span class="pl-k">&lt;&lt;&lt;</span> FAILURE<span class="pl-k">!</span> org.opentest4j.AssertionFailedError: expected: <span class="pl-k">&lt;</span>1<span class="pl-k">&gt;</span> but was: <span class="pl-k">&lt;</span>0<span class="pl-k">&gt;</span> at org.apache.dubbo.monitor.dubbo.DubboMonitorTest.testCount(DubboMonitorTest.java:117)</pre></div> <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"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=ben_hutchison" rel="nofollow">Ben Hutchison</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-230?redirect=false" rel="nofollow">SPR-230</a></strong>* and commented</p> <p dir="auto">Objects that contain other objects (common examples include Swing Containers and the Collections classes) frequently cannot have their initial state specified through setting javabeans properties alone.</p> <p dir="auto">This is a request for the spring core to include extensions to the syntax of the applicationContext.xml to allow such objects to be setup completely from XML. Some reasonably conveinient syntax is needed that allows methods like "add()" to be invoked on the bean at construction time. Ideally, I think the syntax should allow any arbritrary methods to be called on a bean during preparation.</p> <p dir="auto">There is a clear precendent to be found in the design of the java.beans.XMLEncoder/Decoder classes, designed to support long term bean perisstence. Consider the extract below generated by XML-serializing a List:</p> <p dir="auto">&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<br> &lt;java version="1.4.2_03" class="java.beans.XMLDecoder"&gt;<br> &lt;object class="java.util.ArrayList"&gt;<br> &lt;void method="add"&gt;<br> &lt;string&gt;item&lt;/string&gt;<br> &lt;/void&gt;<br> &lt;/object&gt;<br> &lt;/java&gt;</p> <p dir="auto">Evidently, it was recognized as an important feature as its present from the first release of the peristence mechanism.</p> <p dir="auto">Consider what is <strong>not</strong> readily doable from XML without this feature:</p> <ul dir="auto"> <li>Cannot create any Swing component heirarchies.</li> <li>Cannot initialize custom collections (ie anything not a vanilla set/map/list impl), unless it provides a copy-constructor.</li> <li>Cannot init arbritrary state on objects which do not observe the get/setXXX convention (and legacy code is littered with them).</li> </ul> <hr> <p dir="auto"><strong>Affects:</strong> 1.0.2</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/15243/SPR-230.patch" rel="nofollow">SPR-230.patch</a> (<em>137.30 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398070077" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7195" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7195/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7195">#7195</a> Allow setting of properties without a javabean setter (<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="398070258" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7222" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7222/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7222">#7222</a> Support JavaBean Eventing methods in Spring (<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="398072522" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7488" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7488/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7488">#7488</a> "adder" injection in addition to "setter" (invoke addXX() instead of setXX()) (<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="398057408" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5727" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5727/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5727">#5727</a> support "add"-style List injection (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">32 votes, 28 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=moores" rel="nofollow">Michael Moores</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7818?redirect=false" rel="nofollow">SPR-7818</a></strong> and commented</p> <p dir="auto">We are trying to use semicolon as the delimiter in a list of values being passed into<br> a <code class="notranslate">@Controller</code>. It looks like the URI data is truncated after the semicolon.<br> Using a comma as the delimiter works fine, but semicolon is broke. I think semicolon is legal.</p> <p dir="auto">I have a controller that looks like this:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Controller(value=&quot;controller2&quot;) public class ProfileController2 { @RequestMapping(method = GET, value = &quot;/users/{guid}/{p1};{p2}/xyz&quot;) @ResponseBody public ResponseEntity&lt;String&gt; getProfile2( @PathVariable(&quot;guid&quot;) final String guid, @PathVariable(&quot;p1&quot;) final String p1, @PathVariable(&quot;p2&quot;) final String p2) { log.info(&quot;get:guid/p1/p2:&quot; + guid + &quot;/&quot; + p1 + &quot;/&quot; + p2) ; ResponseEntity&lt;String&gt; responseEntity = new ResponseEntity&lt;String&gt;(guid + &quot;/&quot; + p1 + &quot;/&quot; + p2, HttpStatus.OK); return responseEntity; } }"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Controller</span>(<span class="pl-s1">value</span>=<span class="pl-s">"controller2"</span>) <span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">ProfileController2</span> { <span class="pl-c1">@</span><span class="pl-c1">RequestMapping</span>(<span class="pl-s1">method</span> = <span class="pl-c1">GET</span>, <span class="pl-s1">value</span> = <span class="pl-s">"/users/{guid}/{p1};{p2}/xyz"</span>) <span class="pl-c1">@</span><span class="pl-c1">ResponseBody</span> <span class="pl-k">public</span> <span class="pl-smi">ResponseEntity</span>&lt;<span class="pl-smi">String</span>&gt; <span class="pl-en">getProfile2</span>( <span class="pl-c1">@</span><span class="pl-c1">PathVariable</span>(<span class="pl-s">"guid"</span>) <span class="pl-k">final</span> <span class="pl-smi">String</span> <span class="pl-s1">guid</span>, <span class="pl-c1">@</span><span class="pl-c1">PathVariable</span>(<span class="pl-s">"p1"</span>) <span class="pl-k">final</span> <span class="pl-smi">String</span> <span class="pl-s1">p1</span>, <span class="pl-c1">@</span><span class="pl-c1">PathVariable</span>(<span class="pl-s">"p2"</span>) <span class="pl-k">final</span> <span class="pl-smi">String</span> <span class="pl-s1">p2</span>) { <span class="pl-s1">log</span>.<span class="pl-en">info</span>(<span class="pl-s">"get:guid/p1/p2:"</span> + <span class="pl-s1">guid</span> + <span class="pl-s">"/"</span> + <span class="pl-s1">p1</span> + <span class="pl-s">"/"</span> + <span class="pl-s1">p2</span>) ; <span class="pl-smi">ResponseEntity</span>&lt;<span class="pl-smi">String</span>&gt; <span class="pl-s1">responseEntity</span> = <span class="pl-k">new</span> <span class="pl-smi">ResponseEntity</span>&lt;<span class="pl-smi">String</span>&gt;(<span class="pl-s1">guid</span> + <span class="pl-s">"/"</span> + <span class="pl-s1">p1</span> + <span class="pl-s">"/"</span> + <span class="pl-s1">p2</span>, <span class="pl-smi">HttpStatus</span>.<span class="pl-c1">OK</span>); <span class="pl-k">return</span> <span class="pl-s1">responseEntity</span>; } }</pre></div> <p dir="auto">Here is the debug log output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(initialization) 2010-12-13 13:06:20,033 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] (ContainerBackgroundProcessor[StandardEngine[Catalina]]:) - Returning cached instance of singleton bean 'controller2' 2010-12-13 13:06:20,033 INFO [org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping] (ContainerBackgroundProcessor[StandardEngine[Catalina]]:) - Mapped URL path [/users/{guid}/{p1};{p2}/xyz] onto handler 'controller2' (actual request processing) 2010-12-13 13:06:25,109 DEBUG [org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping] (http-8098-1-ReqId:PNNnECYWSw66Mwb4w9E17g:) - No handler mapping found for [/users/guid123/P1] 2010-12-13 13:06:25,121 WARN [org.springframework.web.servlet.PageNotFound] (http-8098-1-ReqId:PNNnECYWSw66Mwb4w9E17g:) - No mapping found for HTTP request with URI [/profile/users/guid123/P1] in DispatcherServlet with name 'profile' 2010-12-13 13:06:25,121 INFO [com.real.uds.common.framework.exception.StandardErrorResponderBean] (http-8098-1-ReqId:PNNnECYWSw66Mwb4w9E17g:) - Error response status code 404 and error code InvalidRequest; the error message is No mapping found for HTTP r equest with URI [/profile/users/guid123/P1] in DispatcherServlet with name 'profile' 2010-12-13 13:06:25,152 DEBUG [org.springframework.web.context.support.XmlWebApplicationContext] (http-8098-1-ReqId:PNNnECYWSw66Mwb4w9E17g:) - Publishing event in WebApplicationContext for namespace 'profile-servlet': ServletRequestHandledEvent: url=[/profile/users/guid123/P1;P2/xyz]; client=[127.0.0.1]; method=[GET]; servlet=[profile]; session=[null]; user=[null]; time=[69ms]; status=[OK]"><pre class="notranslate"><code class="notranslate">(initialization) 2010-12-13 13:06:20,033 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] (ContainerBackgroundProcessor[StandardEngine[Catalina]]:) - Returning cached instance of singleton bean 'controller2' 2010-12-13 13:06:20,033 INFO [org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping] (ContainerBackgroundProcessor[StandardEngine[Catalina]]:) - Mapped URL path [/users/{guid}/{p1};{p2}/xyz] onto handler 'controller2' (actual request processing) 2010-12-13 13:06:25,109 DEBUG [org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping] (http-8098-1-ReqId:PNNnECYWSw66Mwb4w9E17g:) - No handler mapping found for [/users/guid123/P1] 2010-12-13 13:06:25,121 WARN [org.springframework.web.servlet.PageNotFound] (http-8098-1-ReqId:PNNnECYWSw66Mwb4w9E17g:) - No mapping found for HTTP request with URI [/profile/users/guid123/P1] in DispatcherServlet with name 'profile' 2010-12-13 13:06:25,121 INFO [com.real.uds.common.framework.exception.StandardErrorResponderBean] (http-8098-1-ReqId:PNNnECYWSw66Mwb4w9E17g:) - Error response status code 404 and error code InvalidRequest; the error message is No mapping found for HTTP r equest with URI [/profile/users/guid123/P1] in DispatcherServlet with name 'profile' 2010-12-13 13:06:25,152 DEBUG [org.springframework.web.context.support.XmlWebApplicationContext] (http-8098-1-ReqId:PNNnECYWSw66Mwb4w9E17g:) - Publishing event in WebApplicationContext for namespace 'profile-servlet': ServletRequestHandledEvent: url=[/profile/users/guid123/P1;P2/xyz]; client=[127.0.0.1]; method=[GET]; servlet=[profile]; session=[null]; user=[null]; time=[69ms]; status=[OK] </code></pre></div> <p dir="auto">The same thing happens if i use a List as the <code class="notranslate">@PathVariable</code> type, passing in a string of semicolon delimited values as one input variable. The data after the semicolon is lost.</p> <p dir="auto">When I look at the RFC, it looks like the semicolon should be supported, right?</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=99477" rel="nofollow">http://forum.springsource.org/showthread.php?t=99477</a></p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398093307" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10171" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10171/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10171">#10171</a> Support for matrix parameters (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2201dd8c45051230ad1a5a0e895cb5951edbfb74/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2201dd8c45051230ad1a5a0e895cb5951edbfb74"><tt>2201dd8</tt></a></p>
0
<p dir="auto">When we include json content as part of template html, we are getting template parsing errors like below. we use json content heavily in our current Angular v1 application to inject locale content to be used in directive html text labels.</p> <p dir="auto"><em>Template parse errors:<br> Unexpected character "EOF" (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.) ("<br> }</em></p> <p dir="auto">Ex: page template html (use custom directive transcluded with json content)<br> `</p><div dir="auto"><br> { "lblFName": "xyz" }<p dir="auto"></p> </div>` <p dir="auto">custom directive template html (we internally get the transcluded json content to vm.content variable and use it in the directive template)<br> <code class="notranslate">&lt;span&gt;{{::vm.content.lblFName}}&lt;/span&gt;</code></p> <p dir="auto">we are trying to research on upgrading our application to Angular2 with RC5 version but getting template parsing errors when trying to include json content like above. Do we have any other options to support this feature in Angular2 or allow us to override or add support to Angular2 template parser to ignore json content like above ...</p> <p dir="auto">Error message specifies, that we need to escape { char with '{', having to escape complex json content structure would be time consuming and we are looking for any other options are available in Angular2 for this...</p>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> <code class="notranslate">&lt;div&gt;Test binding: {{2 + 2}}&lt;/div&gt;</code><br> =&gt; <code class="notranslate">Test binding: 4</code><br> <code class="notranslate">&lt;div ngNonBindable&gt;Test non binding: {{2 + 2}}&lt;/div&gt;</code><br> =&gt; <code class="notranslate">Test binding: {{2 + 2}}</code><br> <code class="notranslate">&lt;div&gt;Test non binding: {2 + 2}&lt;/div&gt;</code><br> =&gt; Template parse errors, the "(Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)" message.</p> <p dir="auto">This is a problem because precisely due to the fact that they are [ngNonBindable] marked elements, <code class="notranslate">"{{ '{' }}"</code> doesn't produce the expected result.</p> <p dir="auto"><strong>Expected behavior</strong><br> As the escaping of <code class="notranslate">{</code> characters isn't possible inside [ngNonBindable] elements so it's the compiler's job to ignore them altogether, I believe.</p> <p dir="auto"><code class="notranslate">&lt;div&gt;Test non binding: {2 + 2}&lt;/div&gt;</code><br> =&gt; <code class="notranslate">Test binding: {2 + 2}</code></p> <p dir="auto"><strong>Reproduction of the problem</strong><br> here =&gt; <a href="http://plnkr.co/edit/GSzwEUyXyY1qDabjpEL1?p=preview" rel="nofollow">http://plnkr.co/edit/GSzwEUyXyY1qDabjpEL1?p=preview</a></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0</li> </ul>
1
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>yes</td> </tr> <tr> <td>RFC?</td> <td>?</td> </tr> <tr> <td>Symfony version</td> <td>2.8.15</td> </tr> </tbody> </table> <p dir="auto">Hi,<br> I'm upgrading from Symfony 2.3 to 2.8 and ran into an issue.<br> I'm using an entity which get some properties let's see it as follow</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyEntity { private $myProperty; }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyEntity</span> { <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>myProperty</span>; }</pre></div> <p dir="auto">I'm missing annotations as this code it is only for demonstration purpose, but it is a symfony entity.<br> I got a controller action which list MyEntity's entites and I got a filter system to show all my entites or only those with <code class="notranslate">$myProperty</code> corresponding to what I want.<br> We can imagine the controller action as follow:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function listAction(Request $request) { $form = $this -&gt;createForm(MyEntityFormType::class, [], ['method' =&gt; $request-&gt;getMethod()]) -&gt;handleRequest($request) ; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">listAction</span>(<span class="pl-smi"><span class="pl-smi">Request</span></span> <span class="pl-s1"><span class="pl-c1">$</span>request</span>) { <span class="pl-s1"><span class="pl-c1">$</span>form</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span> -&gt;<span class="pl-en">createForm</span>(<span class="pl-v">MyEntityFormType</span>::class, [], [<span class="pl-s">'method'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>request</span>-&gt;<span class="pl-en">getMethod</span>()]) -&gt;<span class="pl-en">handleRequest</span>(<span class="pl-s1"><span class="pl-c1">$</span>request</span>) ; }</pre></div> <p dir="auto">In <code class="notranslate">symfony/symfony/src/Symfony/Component/Form/Extension/HttpFoundation/HttpFoundationRequestHandler::handleRequest()</code> function there is in line 109 this verification:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Don't auto-submit the form unless at least one field is present. if ('' === $name &amp;&amp; count(array_intersect_key($data, $form-&gt;all())) &lt;= 0) { return; }"><pre class="notranslate"><span class="pl-c">// Don't auto-submit the form unless at least one field is present.</span> <span class="pl-k">if</span> (<span class="pl-s">''</span> === <span class="pl-s1"><span class="pl-c1">$</span>name</span> &amp;&amp; count(array_intersect_key(<span class="pl-s1"><span class="pl-c1">$</span>data</span>, <span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">all</span>())) &lt;= <span class="pl-c1">0</span>) { <span class="pl-k">return</span>; }</pre></div> <p dir="auto">I never have form name in sent data on my whole project. When I try to call my controller action <code class="notranslate">listAction</code> without filtering on <code class="notranslate">MyEntity::myProperty</code> form is not submitted because no field are present in form while I could before as I was using <code class="notranslate">submit()</code> function.</p> <p dir="auto">I found a workaround checking if I'm in this particular case and then resubmitting manually the form but it's kind of ugly and definitly not a good practice.</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$form = $this -&gt;createForm(MyEntityFormType::class, [], ['method' =&gt; $request-&gt;getMethod()]) -&gt;handleRequest($request) ; // $form-&gt;handleRequest() doesn't submit request with no data // If the form doesn't get errors and the request doesn't get // data we manually call $form-&gt;submit() w/ computed data if (!$form-&gt;isSubmitted() &amp;&amp; (0 === count($form-&gt;getErrors(true))) &amp;&amp; $form-&gt;isEmpty()) { $requestData = $request-&gt;request-&gt;all(); $queryData = $request-&gt;query-&gt;all(); $form-&gt;submit(array_merge($defaultValue, $queryData, $requestData)); }"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>form</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span> -&gt;<span class="pl-en">createForm</span>(<span class="pl-v">MyEntityFormType</span>::class, [], [<span class="pl-s">'method'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>request</span>-&gt;<span class="pl-en">getMethod</span>()]) -&gt;<span class="pl-en">handleRequest</span>(<span class="pl-s1"><span class="pl-c1">$</span>request</span>) ; <span class="pl-c">// $form-&gt;handleRequest() doesn't submit request with no data</span> <span class="pl-c">// If the form doesn't get errors and the request doesn't get</span> <span class="pl-c">// data we manually call $form-&gt;submit() w/ computed data</span> <span class="pl-k">if</span> (!<span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">isSubmitted</span>() &amp;&amp; (<span class="pl-c1">0</span> === count(<span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">getErrors</span>(<span class="pl-c1">true</span>))) &amp;&amp; <span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">isEmpty</span>()) { <span class="pl-s1"><span class="pl-c1">$</span>requestData</span> = <span class="pl-s1"><span class="pl-c1">$</span>request</span>-&gt;<span class="pl-c1">request</span>-&gt;<span class="pl-en">all</span>(); <span class="pl-s1"><span class="pl-c1">$</span>queryData</span> = <span class="pl-s1"><span class="pl-c1">$</span>request</span>-&gt;<span class="pl-c1">query</span>-&gt;<span class="pl-en">all</span>(); <span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">submit</span>(array_merge(<span class="pl-s1"><span class="pl-c1">$</span>defaultValue</span>, <span class="pl-s1"><span class="pl-c1">$</span>queryData</span>, <span class="pl-s1"><span class="pl-c1">$</span>requestData</span>)); }</pre></div> <p dir="auto">Is there a best practice to handle this case ?<br> Is this a case which is not supposed to be ?</p>
<p dir="auto">Hello,</p> <p dir="auto">I was trying to set my dbal connection using doctrine with MySQL PDO. When setting the yaml config file to use password '@SomePassword01' the framework will expect an object reference rather than a string.<br> This causes an exception: InvalidTypeException: Invalid type for path "doctrine.dbal.connections.default.password". Expected scalar, but got object.</p> <p dir="auto">Can you please have a look?<br> If this won't be fixed can you please at least make sure than the password requirement are mentioned correctly.</p> <p dir="auto">Using standard installation 2.2.0<br> MySQL Server 5.6<br> PHP 5.4.12</p>
0
<p dir="auto">I have a webpack configs for two builds with <code class="notranslate">watch: true</code> options.<br> If I try <code class="notranslate">module.exports = {/*1st build*/}</code> or <code class="notranslate">module.exports = {/*2st build*/}</code> everything is fine.<br> But when I try to combine them into one like this:<br> <code class="notranslate">module.exports = [{/*1st build*/},{/*2d build*/}]</code><br> and run <code class="notranslate">webpack</code> command it doesn't watch for changes. It just stops working like there is no <code class="notranslate">watch: true</code> option there.<br> But if I run <code class="notranslate">webpack --watch</code> it works and watches for changes.</p> <p dir="auto">Shouldn't those <code class="notranslate">watch: true</code> options work from inside the config? Or is <code class="notranslate">webpack --watch</code> the only way to do it?</p>
<h1 dir="auto">I'm submitting a...</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> bug report</li> </ul> <p dir="auto"><strong>Webpack version:</strong><br> 1.13.1/2.x</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> OSX 10.11.5</p> <p dir="auto"><strong>Current behavior:</strong><br> If webpack.config exports an array watch param doesn't work</p> <p dir="auto"><strong>Expected/desired behavior:</strong><br> If webpack.config exports an array, watch param should work</p> <p dir="auto"><strong>Webpack configuration:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.exports = [ { entry: entries, output: { path: __dirname + '/www/f/min/', filename: '[name].build.js', publicPath: '/rev-18/f/min/', }, watch: true, watchOptions: { aggregateTimeout: 150 }, devtool: 'source-map', resolve: { modulesDirectories: ['node_modules'], extensions: ['', '.js'], alias }, resolveLoader: { modulesDirectories: ['node_modules'], moduleTemplates: ['*-loader', '*'], extensions: ['', '.js'] }, module: { loaders: [ { test: /\.js$/, exclude: /(node_modules|bower_components|nform)/, loader: 'babel', query: { plugins: ['transform-runtime'], presets: ['es2015', 'stage-0'] } }, { test: /\.modernizrrc$/, loader: 'modernizr' }, ], }, stats: { children: false }, plugins: [ new webpack.NoErrorsPlugin(), new webpack.optimize.CommonsChunkPlugin({ name: 'common', minChunks: 4 }), ] }, { entry: entriesLess, output: { path: __dirname + '/www/f/min/', filename: '[name].build.css' }, watch: true, watchOptions: { aggregateTimeout: 150 }, resolveLoader: { modulesDirectories: ['node_modules'], moduleTemplates: ['*-loader', '*'], extensions: ['', '.js'] }, module: { loaders: [ { test: /modules\/.*\.less$/, loader: ExtractTextPlugin.extract('style', 'css?-url!postcss!less') }, ] }, postcss: function () { return [cssnext] }, stats: { children: false }, plugins: [ new webpack.NoErrorsPlugin(), new ExtractTextPlugin('[name].build.css') ] } ];"><pre class="notranslate"><code class="notranslate">module.exports = [ { entry: entries, output: { path: __dirname + '/www/f/min/', filename: '[name].build.js', publicPath: '/rev-18/f/min/', }, watch: true, watchOptions: { aggregateTimeout: 150 }, devtool: 'source-map', resolve: { modulesDirectories: ['node_modules'], extensions: ['', '.js'], alias }, resolveLoader: { modulesDirectories: ['node_modules'], moduleTemplates: ['*-loader', '*'], extensions: ['', '.js'] }, module: { loaders: [ { test: /\.js$/, exclude: /(node_modules|bower_components|nform)/, loader: 'babel', query: { plugins: ['transform-runtime'], presets: ['es2015', 'stage-0'] } }, { test: /\.modernizrrc$/, loader: 'modernizr' }, ], }, stats: { children: false }, plugins: [ new webpack.NoErrorsPlugin(), new webpack.optimize.CommonsChunkPlugin({ name: 'common', minChunks: 4 }), ] }, { entry: entriesLess, output: { path: __dirname + '/www/f/min/', filename: '[name].build.css' }, watch: true, watchOptions: { aggregateTimeout: 150 }, resolveLoader: { modulesDirectories: ['node_modules'], moduleTemplates: ['*-loader', '*'], extensions: ['', '.js'] }, module: { loaders: [ { test: /modules\/.*\.less$/, loader: ExtractTextPlugin.extract('style', 'css?-url!postcss!less') }, ] }, postcss: function () { return [cssnext] }, stats: { children: false }, plugins: [ new webpack.NoErrorsPlugin(), new ExtractTextPlugin('[name].build.css') ] } ]; </code></pre></div> <p dir="auto">The problem in <a href="https://github.com/webpack/webpack/blob/master/bin/webpack.js#L269">this line</a>. In our case options is an array. So, the fastest way to fix this is to use firstOptions variable which defined above.</p> <p dir="auto">What do you think?</p>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1850" rel="nofollow">http://projects.scipy.org/numpy/ticket/1850</a> on 2011-05-29 by trac user elvisjohndowson, assigned to unknown.</em></p> <p dir="auto">Hi,<br> I installed python-2.7 installer from the following location</p> <p dir="auto"><a href="http://python.org/ftp/python/2.7.1/python-2.7.1-macosx10.6.dmg" rel="nofollow">http://python.org/ftp/python/2.7.1/python-2.7.1-macosx10.6.dmg</a></p> <p dir="auto">rebuilt numpy-1.6.0 and nose-1.0.0, and get the following errors:</p> <p dir="auto">creating /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmp6HplH7<br> compile options: '-I/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/src.macosx-10.6-intel-2.7 -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'<br> gfortran:f90: /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmp6HplH7/foo.f90<br> gfortran:f77: /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/src.macosx-10.6-intel-2.7/_test_ext_module_5403-f2pywrappers.f<br> /usr/bin/gfortran -Wall /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/src.macosx-10.6-intel-2.7/_test_ext_module_5403module.o /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/src.macosx-10.6-intel-2.7/fortranobject.o /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmp6HplH7/foo.o /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/src.macosx-10.6-intel-2.7/_test_ext_module_5403-f2pywrappers.o -lgfortran -o ./_test_ext_module_5403.so<br> Undefined symbols for architecture x86_64:<br> "_PyNumber_Int", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> "_PyComplex_Type", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> "_PyType_IsSubtype", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _array_from_pyobj in fortranobject.o<br> "_PyErr_Occurred", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> _F2PyDict_SetItemString in fortranobject.o<br> "_PyErr_SetString", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> _array_from_pyobj in fortranobject.o<br> _fortran_setattr in fortranobject.o<br> ...<br> "_PyObject_GetAttrString", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_repr in fortranobject.o<br> "_PyErr_Clear", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _fortran_repr in fortranobject.o<br> _F2PyDict_SetItemString in fortranobject.o<br> "_PySequence_Check", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> "_PySequence_GetItem", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> "_Py_InitModule4_64", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyType_Type", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyImport_ImportModule", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyCObject_Type", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _F2PyCapsule_Check in fortranobject.o<br> "_PyExc_RuntimeError", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_call in fortranobject.o<br> "_PyExc_ImportError", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyErr_Print", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _F2PyDict_SetItemString in fortranobject.o<br> "_PyCObject_AsVoidPtr", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _F2PyCapsule_AsVoidPtr in fortranobject.o<br> "_PyErr_Format", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_call in fortranobject.o<br> "_PyExc_AttributeError", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_setattr in fortranobject.o<br> "_PyModule_GetDict", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyString_FromString", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_repr in fortranobject.o<br> _fortran_getattr in fortranobject.o<br> "_PyDict_SetItemString", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _F2PyDict_SetItemString in fortranobject.o<br> _fortran_setattr in fortranobject.o<br> _fortran_getattr in fortranobject.o<br> _PyFortranObject_New in fortranobject.o<br> "_PyErr_NewException", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyDict_GetItemString", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_getattr in fortranobject.o<br> "_PyObject_SetAttrString", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "__Py_NoneStruct", referenced from:<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> _array_from_pyobj in fortranobject.o<br> _fortran_setattr in fortranobject.o<br> _fortran_getattr in fortranobject.o<br> "_PyArg_ParseTupleAndKeywords", referenced from:<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> "_Py_BuildValue", referenced from:<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> "_PyExc_TypeError", referenced from:<br> _fortran_call in fortranobject.o<br> _array_from_pyobj in fortranobject.o<br> "_PyString_AsString", referenced from:<br> _fortran_repr in fortranobject.o<br> _array_from_pyobj in fortranobject.o<br> "_PyString_FromFormat", referenced from:<br> _fortran_repr in fortranobject.o<br> "_PyMem_Free", referenced from:<br> _fortran_dealloc in fortranobject.o<br> "_PyCObject_FromVoidPtr", referenced from:<br> _F2PyCapsule_FromVoidPtr in fortranobject.o<br> _fortran_getattr in fortranobject.o<br> "_PyExc_ValueError", referenced from:<br> _array_from_pyobj in fortranobject.o<br> "_PyObject_Type", referenced from:<br> _array_from_pyobj in fortranobject.o<br> "_PyObject_Str", referenced from:<br> _array_from_pyobj in fortranobject.o<br> "__PyObject_New", referenced from:<br> _PyFortranObject_NewAsAttr in fortranobject.o<br> _PyFortranObject_New in fortranobject.o<br> "_PyDict_New", referenced from:<br> _PyFortranObject_NewAsAttr in fortranobject.o<br> _fortran_setattr in fortranobject.o<br> _PyFortranObject_New in fortranobject.o<br> "_PyDict_DelItemString", referenced from:<br> _fortran_setattr in fortranobject.o<br> "_Py_FindMethod", referenced from:<br> _fortran_getattr in fortranobject.o<br> "_PyString_ConcatAndDel", referenced from:<br> <em>fortran_getattr in fortranobject.o<br> "<em>MAIN</em></em>", referenced from:<br> _main in libgfortranbegin.a(fmain.o)<br> ld: symbol(s) not found for architecture x86_64<br> collect2: ld returned 1 exit status<br> Undefined symbols for architecture x86_64:<br> "_PyNumber_Int", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> "_PyComplex_Type", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> "_PyType_IsSubtype", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _array_from_pyobj in fortranobject.o<br> "_PyErr_Occurred", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> _F2PyDict_SetItemString in fortranobject.o<br> "_PyErr_SetString", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> _array_from_pyobj in fortranobject.o<br> _fortran_setattr in fortranobject.o<br> ...<br> "_PyObject_GetAttrString", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_repr in fortranobject.o<br> "_PyErr_Clear", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> _fortran_repr in fortranobject.o<br> _F2PyDict_SetItemString in fortranobject.o<br> "_PySequence_Check", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> "_PySequence_GetItem", referenced from:<br> _int_from_pyobj in _test_ext_module_5403module.o<br> "_Py_InitModule4_64", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyType_Type", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyImport_ImportModule", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyCObject_Type", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _F2PyCapsule_Check in fortranobject.o<br> "_PyExc_RuntimeError", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_call in fortranobject.o<br> "_PyExc_ImportError", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyErr_Print", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _F2PyDict_SetItemString in fortranobject.o<br> "_PyCObject_AsVoidPtr", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _F2PyCapsule_AsVoidPtr in fortranobject.o<br> "_PyErr_Format", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_call in fortranobject.o<br> "_PyExc_AttributeError", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_setattr in fortranobject.o<br> "_PyModule_GetDict", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyString_FromString", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_repr in fortranobject.o<br> _fortran_getattr in fortranobject.o<br> "_PyDict_SetItemString", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _F2PyDict_SetItemString in fortranobject.o<br> _fortran_setattr in fortranobject.o<br> _fortran_getattr in fortranobject.o<br> _PyFortranObject_New in fortranobject.o<br> "_PyErr_NewException", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "_PyDict_GetItemString", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> _fortran_getattr in fortranobject.o<br> "_PyObject_SetAttrString", referenced from:<br> _init_test_ext_module_5403 in _test_ext_module_5403module.o<br> "__Py_NoneStruct", referenced from:<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> _array_from_pyobj in fortranobject.o<br> _fortran_setattr in fortranobject.o<br> _fortran_getattr in fortranobject.o<br> "_PyArg_ParseTupleAndKeywords", referenced from:<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> "_Py_BuildValue", referenced from:<br> _f2py_rout__test_ext_module_5403_flatten in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_trans in _test_ext_module_5403module.o<br> _f2py_rout__test_ext_module_5403_foo in _test_ext_module_5403module.o<br> "_PyExc_TypeError", referenced from:<br> _fortran_call in fortranobject.o<br> _array_from_pyobj in fortranobject.o<br> "_PyString_AsString", referenced from:<br> _fortran_repr in fortranobject.o<br> _array_from_pyobj in fortranobject.o<br> "_PyString_FromFormat", referenced from:<br> _fortran_repr in fortranobject.o<br> "_PyMem_Free", referenced from:<br> _fortran_dealloc in fortranobject.o<br> "_PyCObject_FromVoidPtr", referenced from:<br> _F2PyCapsule_FromVoidPtr in fortranobject.o<br> _fortran_getattr in fortranobject.o<br> "_PyExc_ValueError", referenced from:<br> _array_from_pyobj in fortranobject.o<br> "_PyObject_Type", referenced from:<br> _array_from_pyobj in fortranobject.o<br> "_PyObject_Str", referenced from:<br> _array_from_pyobj in fortranobject.o<br> "__PyObject_New", referenced from:<br> _PyFortranObject_NewAsAttr in fortranobject.o<br> _PyFortranObject_New in fortranobject.o<br> "_PyDict_New", referenced from:<br> _PyFortranObject_NewAsAttr in fortranobject.o<br> _fortran_setattr in fortranobject.o<br> _PyFortranObject_New in fortranobject.o<br> "_PyDict_DelItemString", referenced from:<br> _fortran_setattr in fortranobject.o<br> "_Py_FindMethod", referenced from:<br> _fortran_getattr in fortranobject.o<br> "_PyString_ConcatAndDel", referenced from:<br> <em>fortran_getattr in fortranobject.o<br> "<em>MAIN</em></em>", referenced from:<br> _main in libgfortranbegin.a(fmain.o)<br> ld: symbol(s) not found for architecture x86_64<br> collect2: ld returned 1 exit status<br> error: Command "/usr/bin/gfortran -Wall /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/src.macosx-10.6-intel-2.7/_test_ext_module_5403module.o /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/src.macosx-10.6-intel-2.7/fortranobject.o /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmp6HplH7/foo.o /var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/var/folders/kE/kEV99wuDFGadcsS84CS4mE+++TI/-Tmp-/tmpaAXktG/src.macosx-10.6-intel-2.7/_test_ext_module_5403-f2pywrappers.o -lgfortran -o ./_test_ext_module_5403.so" failed with exit status 1</p> <hr> <p dir="auto">Ran 3548 tests in 42.107s</p> <p dir="auto">FAILED (KNOWNFAIL=3, SKIP=1, errors=17)<br> &lt;nose.result.TextTestResult run=3548 errors=17 failures=0&gt;</p> <p dir="auto">Elvis Dowson</p>
<p dir="auto">With the <code class="notranslate">intel</code> / fat <code class="notranslate">python</code> binaries provided by the python.org installers, trying to import in 32-bit mode fails with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ arch -32 /Library/Frameworks/Python.framework/Versions/3.6/bin/python -c &quot;import numpy as np; print(np)&quot; Traceback (most recent call last): File &quot;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/__init__.py&quot;, line 16, in &lt;module&gt; from . import multiarray ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so, 2): Library not loaded: /usr/local/gfortran/lib/i386/libgfortran.3.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/.dylibs/libopenblasp-r0.3.0.dev.dylib Reason: image not found During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; File &quot;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/__init__.py&quot;, line 142, in &lt;module&gt; from . import add_newdocs File &quot;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/add_newdocs.py&quot;, line 13, in &lt;module&gt; from numpy.lib import add_newdoc File &quot;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/lib/__init__.py&quot;, line 8, in &lt;module&gt; from .type_check import * File &quot;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/lib/type_check.py&quot;, line 11, in &lt;module&gt; import numpy.core.numeric as _nx File &quot;/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/__init__.py&quot;, line 26, in &lt;module&gt; raise ImportError(msg) ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try `git clean -xdf` (removes all files not under version control). Otherwise reinstall numpy. Original error was: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so, 2): Library not loaded: /usr/local/gfortran/lib/i386/libgfortran.3.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/.dylibs/libopenblasp-r0.3.0.dev.dylib Reason: image not found"><pre class="notranslate"><code class="notranslate">$ arch -32 /Library/Frameworks/Python.framework/Versions/3.6/bin/python -c "import numpy as np; print(np)" Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/__init__.py", line 16, in &lt;module&gt; from . import multiarray ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so, 2): Library not loaded: /usr/local/gfortran/lib/i386/libgfortran.3.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/.dylibs/libopenblasp-r0.3.0.dev.dylib Reason: image not found During handling of the above exception, another exception occurred: Traceback (most recent call last): File "&lt;string&gt;", line 1, in &lt;module&gt; File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/__init__.py", line 142, in &lt;module&gt; from . import add_newdocs File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/add_newdocs.py", line 13, in &lt;module&gt; from numpy.lib import add_newdoc File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/lib/__init__.py", line 8, in &lt;module&gt; from .type_check import * File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/lib/type_check.py", line 11, in &lt;module&gt; import numpy.core.numeric as _nx File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/__init__.py", line 26, in &lt;module&gt; raise ImportError(msg) ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try `git clean -xdf` (removes all files not under version control). Otherwise reinstall numpy. Original error was: dlopen(/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/multiarray.cpython-36m-darwin.so, 2): Library not loaded: /usr/local/gfortran/lib/i386/libgfortran.3.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/.dylibs/libopenblasp-r0.3.0.dev.dylib Reason: image not found </code></pre></div> <p dir="auto"><a href="https://gist.github.com/dhermes/bfc9c082797ea5d65d46d64aa742175d">Similar errors</a> occur in 2.7 and 3.5.</p>
1
<blockquote> <p dir="auto">(gdb) py-list<br> 544 # Guard against that specific failure case.<br> 545 if not isinstance(request, PreparedRequest):<br> 546 raise ValueError('You can only send PreparedRequests.')<br> 547<br> 548 while request.url in self.redirect_cache:<br> -549 request.url = self.redirect_cache.get(request.url)<br> 550<br> 551 # Set up variables needed for resolve_redirects and dispatching of hooks<br> 552 allow_redirects = kwargs.pop('allow_redirects', True)<br> 553 stream = kwargs.get('stream')<br> 554 timeout = kwargs.get('timeout')</p> </blockquote> <p dir="auto">redirect_cache dict could have complementary key/values that forces and enless loop.</p> <blockquote> <p dir="auto">(gdb) py-down</p> <h1 dir="auto">2 Frame 0x7f645c00acd0, for file /test/libs/requests/sessions.py, line 549, in send (self=&lt;Session(cookies=&lt;RequestsCookieJar(_now=1410944130, _policy=&lt;DefaultCookiePolicy(strict_rfc2965_unverifiable=True, strict_ns_domain=0, _allowed_domains=None, rfc2109_as_netscape=None, rfc2965=False, strict_domain=False, _now=1410944130, strict_ns_set_path=False, strict_ns_unverifiable=False, strict_ns_set_initial_dollar=False, hide_cookie2=False, _blocked_domains=(), netscape=True) at remote 0x7f651070c4d0&gt;, _cookies={}, _cookies_lock=&lt;_RLock(_Verbose__verbose=False, _RLock__owner=None, _RLock__block=&lt;thread.lock at remote 0x7f6530772dd0&gt;, _RLock__count=0) at remote 0x7f65105a5450&gt;) at remote 0x7f65105a5e10&gt;, stream=False, hooks={'response': []}, redirect_cache={'<a href="http://www.hent" rel="nofollow">http://www.hent</a> aiwe blog.com/': '<a href="http://hent" rel="nofollow">http://hent</a> aiwe blog.com/', '<a href="http://hent" rel="nofollow">http://hent</a> aiwe blog.com/': '<a href="http://www.hent" rel="nofollow">http://www.hent</a> aiwe blog.com/'}, auth=None, trust_env=True, headers=&lt;CaseInsensitiveDict(_store={'accept-encoding': ('Accept-Encoding', 'gzip, deflate'), 'accep...(truncated)</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="request.url = self.redirect_cache.get(request.url)"><pre class="notranslate"><code class="notranslate">request.url = self.redirect_cache.get(request.url) </code></pre></div> </blockquote> <p dir="auto">Current request chain with wget:</p> <blockquote> <p dir="auto">$ wget <a href="http://www.hent" rel="nofollow">www.hent</a> aiwe blog.com<br> --2014-09-18 11:52:20-- <a href="http://www.hent" rel="nofollow">http://www.hent</a> aiwe blog.com/<br> Resolving <a href="http://www.hent" rel="nofollow">www.hent</a> aiwe blog.com (<a href="http://www.hent" rel="nofollow">www.hent</a> aiwe blog.com)... 109.72.81.172<br> Connecting to <a href="http://www.hent" rel="nofollow">www.hent</a> aiwe blog.com (<a href="http://www.hent" rel="nofollow">www.hent</a> aiwe blog.com)|109.72.81.172|:80... connected.<br> HTTP request sent, awaiting response... 301 Moved Permanently<br> Location: <a href="http://hent" rel="nofollow">http://hent</a> aiwe blog.com/ [following]<br> --2014-09-18 11:52:20-- <a href="http://hent" rel="nofollow">http://hent</a> aiwe blog.com/<br> Resolving hent aiwe blog.com (hent aiwe blog.com)... 109.72.81.172<br> Reusing existing connection to <a href="http://www.hent" rel="nofollow">www.hent</a> aiwe blog.com:80.<br> HTTP request sent, awaiting response... 301 Moved Permanently<br> Location: <a href="http://www.hent" rel="nofollow">http://www.hent</a> aiwe blog.com/ [following]<br> --2014-09-18 11:52:20-- <a href="http://www.hent" rel="nofollow">http://www.hent</a> aiwe blog.com/<br> Reusing existing connection to <a href="http://www.hent" rel="nofollow">www.hent</a> aiwe blog.com:80.<br> HTTP request sent, awaiting response... 301 Moved Permanently<br> Location: <a href="http://hent" rel="nofollow">http://hent</a> aiwe blog.com/ [following]<br> ...</p> </blockquote> <p dir="auto">Suggested resolution:</p> <blockquote> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" redirect_count = 0 while request.url in self.redirect_cache: redirect_count += 1 if redirect_count &gt; self.max_redirects: raise TooManyRedirects request.url = self.redirect_cache.get(request.url)"><pre class="notranslate"><code class="notranslate"> redirect_count = 0 while request.url in self.redirect_cache: redirect_count += 1 if redirect_count &gt; self.max_redirects: raise TooManyRedirects request.url = self.redirect_cache.get(request.url) </code></pre></div> </blockquote>
<p dir="auto">When requesting a URL (get/post), Requests normalizes the URL.<br> For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="r = requests.get(&quot;http://123.123.123.123/../../../../../../test&quot;) print(str(r.status_code))"><pre class="notranslate"><code class="notranslate">r = requests.get("http://123.123.123.123/../../../../../../test") print(str(r.status_code)) </code></pre></div> <h2 dir="auto">Expected Result</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET /../../../../../../test HTTP/1.1 Host: 123.123.123.123 Connection: close Accept-Encoding: gzip, deflate Accept: */* User-Agent: python-requests/2.22.0"><pre class="notranslate"><code class="notranslate">GET /../../../../../../test HTTP/1.1 Host: 123.123.123.123 Connection: close Accept-Encoding: gzip, deflate Accept: */* User-Agent: python-requests/2.22.0 </code></pre></div> <h2 dir="auto">Actual Result</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET /test HTTP/1.1 Host: 123.123.123.123 Connection: close Accept-Encoding: gzip, deflate Accept: */* User-Agent: python-requests/2.22.0"><pre class="notranslate"><code class="notranslate">GET /test HTTP/1.1 Host: 123.123.123.123 Connection: close Accept-Encoding: gzip, deflate Accept: */* User-Agent: python-requests/2.22.0 </code></pre></div> <h2 dir="auto">Reproduction Steps</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests r = requests.get(&quot;http://123.123.123.123/../../../../../../test&quot;) print(str(r.status_code))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">"http://123.123.123.123/../../../../../../test"</span>) <span class="pl-en">print</span>(<span class="pl-en">str</span>(<span class="pl-s1">r</span>.<span class="pl-s1">status_code</span>))</pre></div> <h2 dir="auto">System Information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;chardet&quot;: { &quot;version&quot;: &quot;3.0.4&quot; }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;2.8&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;2.8&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;2.7.17&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;5.3.0-51-generic&quot;, &quot;system&quot;: &quot;Linux&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;1010104f&quot;, &quot;version&quot;: &quot;17.5.0&quot; }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.22.0&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;1010100f&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.25.6&quot; }, &quot;using_pyopenssl&quot;: true } "><pre class="notranslate"><code class="notranslate">{ "chardet": { "version": "3.0.4" }, "cryptography": { "version": "2.8" }, "idna": { "version": "2.8" }, "implementation": { "name": "CPython", "version": "2.7.17" }, "platform": { "release": "5.3.0-51-generic", "system": "Linux" }, "pyOpenSSL": { "openssl_version": "1010104f", "version": "17.5.0" }, "requests": { "version": "2.22.0" }, "system_ssl": { "version": "1010100f" }, "urllib3": { "version": "1.25.6" }, "using_pyopenssl": true } </code></pre></div>
0
<h3 dir="auto">First check</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> After submitting this, I commit to one of: <ul dir="auto"> <li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li> <li>I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.</li> <li>Implement a Pull Request for a confirmed bug.</li> </ul> </li> </ul> <h3 dir="auto">Example</h3> <p dir="auto">Here's a self-contained, <a href="https://stackoverflow.com/help/minimal-reproducible-example" rel="nofollow">minimal, reproducible, example</a> with my use case:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from pydantic import BaseModel from typing import Set from fastapi import FastAPI app = FastAPI() class Request(BaseModel): request_id: str def __hash__(self): return hash(self.request_id) class Requests(BaseModel): request_ids: Set[Request] @app.post(&quot;/test&quot;, response_model=Requests) def read_root(data: Requests): return data "><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">pydantic</span> <span class="pl-k">import</span> <span class="pl-v">BaseModel</span> <span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Set</span> <span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>() <span class="pl-k">class</span> <span class="pl-v">Request</span>(<span class="pl-v">BaseModel</span>): <span class="pl-s1">request_id</span>: <span class="pl-s1">str</span> <span class="pl-k">def</span> <span class="pl-en">__hash__</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-en">hash</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request_id</span>) <span class="pl-k">class</span> <span class="pl-v">Requests</span>(<span class="pl-v">BaseModel</span>): <span class="pl-s1">request_ids</span>: <span class="pl-v">Set</span>[<span class="pl-v">Request</span>] <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">"/test"</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">Requests</span>)</span> <span class="pl-k">def</span> <span class="pl-en">read_root</span>(<span class="pl-s1">data</span>: <span class="pl-v">Requests</span>): <span class="pl-k">return</span> <span class="pl-s1">data</span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">Thanks to the <a href="https://fastapi.tiangolo.com/tutorial/body-nested-models/?h=duplicate#set-types" rel="nofollow">Set feature</a>, the deduplication step works ok for data IN. however it fails for data OUT:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl -X 'POST' 'http://127.0.0.1:8000/test' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{ &quot;request_ids&quot;: [ { &quot;request_id&quot;: &quot;c04ca7ee-f62c-4372-b667-73ace53c69c2&quot; } ] }' File &quot;pydantic/main.py&quot;, line 504, in pydantic.main.BaseModel.dict File &quot;pydantic/main.py&quot;, line 869, in _iter File &quot;pydantic/main.py&quot;, line 810, in pydantic.main.BaseModel._get_value TypeError: unhashable type: 'dict'"><pre class="notranslate">curl -X <span class="pl-s"><span class="pl-pds">'</span>POST<span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>http://127.0.0.1:8000/test<span class="pl-pds">'</span></span> -H <span class="pl-s"><span class="pl-pds">'</span>accept: application/json<span class="pl-pds">'</span></span> -H <span class="pl-s"><span class="pl-pds">'</span>Content-Type: application/json<span class="pl-pds">'</span></span> -d <span class="pl-s"><span class="pl-pds">'</span>{</span> <span class="pl-s"></span> <span class="pl-s"> "request_ids": [</span> <span class="pl-s"> {</span> <span class="pl-s"> "request_id": "c04ca7ee-f62c-4372-b667-73ace53c69c2"</span> <span class="pl-s"> }</span> <span class="pl-s"> ]</span> <span class="pl-s">}<span class="pl-pds">'</span></span> File <span class="pl-s"><span class="pl-pds">"</span>pydantic/main.py<span class="pl-pds">"</span></span>, line 504, <span class="pl-k">in</span> pydantic.main.BaseModel.dict File <span class="pl-s"><span class="pl-pds">"</span>pydantic/main.py<span class="pl-pds">"</span></span>, line 869, <span class="pl-k">in</span> _iter File <span class="pl-s"><span class="pl-pds">"</span>pydantic/main.py<span class="pl-pds">"</span></span>, line 810, <span class="pl-k">in</span> pydantic.main.BaseModel._get_value TypeError: unhashable type: <span class="pl-s"><span class="pl-pds">'</span>dict<span class="pl-pds">'</span></span></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: Ubuntu 20.04.2 LTS</li> <li>FastAPI Version [e.g. 0.3.0]: 0.63.0</li> <li>Python Version: 3.8.5</li> </ul>
<p dir="auto">I'm developing a public api where we'll probably want to nest routes at least a couple of levels deep, using the initial route to determine the 'app' that the rest of the content belongs to.</p> <p dir="auto">our target url structure is along the lines of</p> <p dir="auto"><code class="notranslate">/api/v1/apps/{shortcode}</code><br> <code class="notranslate">/api/v1/apps/{shortcode}/people/</code><br> <code class="notranslate">/api/v1/apps/{shortcode}/people/{id}</code></p> <p dir="auto">etc. etc...</p> <p dir="auto">I'd really like to take advantage of the APIRouter classes to do this as we're likely to have a lot of endpoints and models but I can't find a way to ensure the 'shortcode' parameter here is passed to child routers, is there any way to do that?</p> <p dir="auto">currently I'm doing stuff like this:</p> <h1 dir="auto">app.py</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from app.people.routes import router as people_router from app.routes import router as main_router app = FastAPI() app.debug = settings.DEBUG main_router.include_router(people_router, prefix='/{shortcode}/people') app.include_router(main_router, prefix='/apps')"><pre class="notranslate"><code class="notranslate">from app.people.routes import router as people_router from app.routes import router as main_router app = FastAPI() app.debug = settings.DEBUG main_router.include_router(people_router, prefix='/{shortcode}/people') app.include_router(main_router, prefix='/apps') </code></pre></div> <p dir="auto">This works ok, but the <code class="notranslate">{shortcode}</code> parameter is not included in the auto-generated documentation ( though it is available in the view functions ). I'd rather not have to define every view function individually with prefixed like <code class="notranslate">@router.route('/{shortcode}/people/{id}) ...</code> if I can avoid it somehow?</p>
0
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on a mobile device: Samsung S5</li> <li>TensorFlow installed from (source or binary): Binary</li> <li>TensorFlow version: 1.12</li> <li>Python version: 3.5</li> <li>Installed using virtualenv? pip? conda?: conda</li> <li>Bazel version (if compiling from source): N/A</li> <li>GCC/Compiler version (if compiling from source):</li> <li>CUDA/cuDNN version:</li> <li>GPU model and memory:</li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> I have created my own architecture, on tensorflow and I have used Toco to convert to .tflite, However the android app still throws the following error: "java.lang.IllegalArgumentException: ByteBuffer is not a valid flatbuffer model."</p> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong><br> '''<br> AssetFileDescriptor fileDescriptor = activity.getAssets().openFd(MODEL_PATH);<br> FileInputStream inputStream = new FileInputStream(fileDescriptor.getFileDescriptor());<br> FileChannel fileChannel = inputStream.getChannel();<br> long startOffset = fileDescriptor.getStartOffset();<br> long declaredLength = fileDescriptor.getDeclaredLength();<br> return fileChannel.map(FileChannel.MapMode.READ_ONLY, startOffset, declaredLength);<br> '''</p> <p dir="auto"><strong>Any other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
<p dir="auto">There are right now several high level APIs in TensorFlow (<code class="notranslate">tf.keras</code>, <code class="notranslate">tf.estimators</code>, <code class="notranslate">tf.layers</code>, <code class="notranslate">tf.contrib.learn</code>) that seem to be sometimes complementary and sometimes redundant. It is somewhat hard for me (and other parts of the internet I have searched) to understand which API to use for which purpose and how they relate to each other.</p> <p dir="auto">For me it would greatly help if it could be specified:</p> <ul dir="auto"> <li>What is the intended high level API for the future? Even so if none of them will be discontinued, it would be nice one could just get pointed to one preferred. All I could find the documentation right now is:<br> "The higher level APIs are built on top of TensorFlow Core. These higher level APIs are typically easier to learn and use than TensorFlow Core. In addition, the higher level APIs make repetitive tasks easier and more consistent between different users. A high-level API like tf.estimator helps you manage data sets, estimators, training and inference."</li> <li>How different modules from <code class="notranslate">contrib</code> relate to those in core tensorflow. E. g. it seems that <code class="notranslate">tf.estimators</code> is a portion of <code class="notranslate">tf.contrib.learn</code> that made it into core.</li> <li>Why there are duplicate implementations like <code class="notranslate">tf.layers.contrib.conv2d</code> and <code class="notranslate">tf.layers.conv2d</code>?</li> <li>If modules have complementary or duplicate functionality. E.g. <code class="notranslate">tf.layers</code> can be used with <code class="notranslate">tf.estimators</code> to define the model, but probably one does not want to mix <code class="notranslate">tf.layers</code> and <code class="notranslate">tf.keras</code> .</li> </ul> <p dir="auto">It would be great if that could be specified in the Overview section of the respective documentations, instead of just saying it is a high level API</p>
0
<p dir="auto">Repro: <a href="https://codesandbox.io/s/elegant-villani-9d3hr?file=/src/index.js" rel="nofollow">https://codesandbox.io/s/elegant-villani-9d3hr?file=/src/index.js</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { TiltLoader } from &quot;three/examples/jsm/loaders/TiltLoader&quot; new TiltLoader().load(&quot;/model.tilt&quot;, (scene) =&gt; console.log(scene))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">TiltLoader</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"three/examples/jsm/loaders/TiltLoader"</span> <span class="pl-k">new</span> <span class="pl-v">TiltLoader</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span><span class="pl-s">"/model.tilt"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">scene</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">scene</span><span class="pl-kos">)</span><span class="pl-kos">)</span></pre></div> <p dir="auto">This is the error message in a local env (Parcel):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TiltLoader.js:42 TypeError: _jszipModuleMin.JSZip is not a constructor at TiltLoader.parse (TiltLoader.js:59) at Object.onLoad (TiltLoader.js:32) at XMLHttpRequest.&lt;anonymous&gt; (three.module.js:36749)"><pre lang="text" class="notranslate"><code class="notranslate">TiltLoader.js:42 TypeError: _jszipModuleMin.JSZip is not a constructor at TiltLoader.parse (TiltLoader.js:59) at Object.onLoad (TiltLoader.js:32) at XMLHttpRequest.&lt;anonymous&gt; (three.module.js:36749) </code></pre></div>
<p dir="auto">Looks like the morph weights are not calculated correctly in the software renderer. I have a simple grid-based weighting system which works correctly on WebGL but seems to have severe distortions on software renderer.</p> <p dir="auto">WebGL version: <a href="http://samiarola.com/buggyrenderer/morpher.html" rel="nofollow">http://samiarola.com/buggyrenderer/morpher.html</a><br> Software version: <a href="http://samiarola.com/buggyrenderer/morphersoft.html" rel="nofollow">http://samiarola.com/buggyrenderer/morphersoft.html</a></p> <p dir="auto">If you pull the weights one by one, you can notice distortions if the values are not 0 or 1, and if you stack the weights, the whole model distorts badly. E-mail me (sami (at) ookoohko.com), I can send the test over.</p>
0
<p dir="auto">I use Syimfony v2.5.7, and I set entry_point to id of my service that extends <strong>Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint</strong> class but symfony remains to call <strong>start</strong> method of <strong>Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint</strong> instead to call method from my implementation.</p> <p dir="auto">I must crate compiler pass that replace <strong>security.authentication.form_entry_point</strong> definition with definition that use my entry point implementation to achieve this.</p>
<p dir="auto">I am not good at english and I will do my best to articulate..</p> <p dir="auto">Yestoday, I have upgrade my Symfony framework from 2.3.18 to 2.3.22. Everything is good, except my AuthenticationEntryPoint class.</p> <p dir="auto">Code here:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class AuthenticationEntryPoint implements AuthenticationEntryPointInterface { private $router; public function __construct(Router $router) { $this-&gt;router = $router; } public function start(Request $request, AuthenticationException $exception) { if ($request-&gt;isXmlHttpRequest()) { return new JsonResponse(array('status' =&gt; 'login_required')); } return new RedirectResponse('/my/login'); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">AuthenticationEntryPoint</span> <span class="pl-k">implements</span> <span class="pl-v">AuthenticationEntryPointInterface</span> { <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>router</span>; <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">__construct</span>(<span class="pl-smi"><span class="pl-smi">Router</span></span> <span class="pl-s1"><span class="pl-c1">$</span>router</span>) { <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">router</span> = <span class="pl-s1"><span class="pl-c1">$</span>router</span>; } <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">start</span>(<span class="pl-smi"><span class="pl-smi">Request</span></span> <span class="pl-s1"><span class="pl-c1">$</span>request</span>, <span class="pl-smi"><span class="pl-smi">AuthenticationException</span></span> <span class="pl-s1"><span class="pl-c1">$</span>exception</span>) { <span class="pl-k">if</span> (<span class="pl-s1"><span class="pl-c1">$</span>request</span>-&gt;<span class="pl-en">isXmlHttpRequest</span>()) { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">JsonResponse</span>(<span class="pl-en">array</span>(<span class="pl-s">'status'</span> =&gt; <span class="pl-s">'login_required'</span>)); } <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">RedirectResponse</span>(<span class="pl-s">'/my/login'</span>); } }</pre></div> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="services: my_entry_point: class: My\Bundle\Security\AuthenticationEntryPoint arguments: [ &quot;@router&quot; ] security: firewalls: secured: pattern: .* entry_point: my_entry_point form_login: check_path: /my/login/check"><pre class="notranslate"><span class="pl-ent">services</span>: <span class="pl-ent">my_entry_point</span>: <span class="pl-ent">class</span>: <span class="pl-s">My\Bundle\Security\AuthenticationEntryPoint</span> <span class="pl-ent">arguments</span>: <span class="pl-s">[ "@router" ]</span> <span class="pl-ent">security</span>: <span class="pl-ent">firewalls</span>: <span class="pl-ent">secured</span>: <span class="pl-ent">pattern</span>: <span class="pl-s">.*</span> <span class="pl-ent">entry_point</span>: <span class="pl-s">my_entry_point</span> <span class="pl-ent">form_login</span>: <span class="pl-ent">check_path</span>: <span class="pl-s">/my/login/check</span></pre></div> <p dir="auto">The question is, if remove <code class="notranslate">form_login</code> from <code class="notranslate">security.yml</code>, <code class="notranslate">AuthenticationEntryPoint</code> running and got this exception:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unable to find the controller for path &quot;/my/login/check&quot;. Maybe you forgot to add the matching route in your routing configuration?"><pre class="notranslate"><code class="notranslate">Unable to find the controller for path "/my/login/check". Maybe you forgot to add the matching route in your routing configuration? </code></pre></div> <p dir="auto">if leave <code class="notranslate">form_login</code> in <code class="notranslate">security.yml</code>, <code class="notranslate">AuthenticationEntryPoint</code> does not work, and the default <code class="notranslate">login_path</code> will be used:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No route found for &quot;GET /login&quot; 404 Not Found - NotFoundHttpException"><pre class="notranslate"><code class="notranslate">No route found for "GET /login" 404 Not Found - NotFoundHttpException </code></pre></div> <p dir="auto">Thanks very much.</p>
1
<p dir="auto">Time for this release candidate's set of MKL failures. Do other people test using MKL, or should I try to make a habit of doing this check before each release?</p> <p dir="auto"><code class="notranslate">icc --version</code> is <code class="notranslate">icc (ICC) 16.0.1 20151021</code></p> <p dir="auto"><code class="notranslate">numpy</code> on <code class="notranslate">maintenance/1.10.x</code> branch, version <code class="notranslate">1.10.0.dev0+075cc98</code>, <code class="notranslate">numpy.test('full')</code> passing; <code class="notranslate">scipy.test('full')</code> gives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; scipy.test('full') Running unit tests for scipy NumPy version 1.10.0.dev0+075cc98 NumPy relaxed strides checking option: False NumPy is installed in /home/larsoner/.local/lib/python2.7/site-packages/numpy SciPy version 0.17.0rc1 SciPy is installed in /home/larsoner/.local/lib/python2.7/site-packages/scipy Python version 2.7.10 (default, Oct 14 2015, 16:09:02) [GCC 5.2.1 20151010] nose version 1.3.6 ... ====================================================================== FAIL: test_lorentz (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/larsoner/.local/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py&quot;, line 293, in test_lorentz 3.7798193600109009e+00]), File &quot;/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 892, in assert_array_almost_equal precision=decimal) File &quot;/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 713, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 1.000000e+03, 1.000000e-01, 3.800000e+00]) y: array([ 1.430678e+03, 1.339051e-01, 3.779819e+00]) ====================================================================== FAIL: test_multi (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/larsoner/.local/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py&quot;, line 190, in test_multi 0.5101147161764654, 0.5173902330489161]), File &quot;/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 892, in assert_array_almost_equal precision=decimal) File &quot;/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 713, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 4. , 2. , 7. , 0.4, 0.5]) y: array([ 4.379988, 2.433306, 8.002885, 0.510115, 0.51739 ]) ====================================================================== FAIL: test_pearson (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/larsoner/.local/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py&quot;, line 236, in test_pearson np.array([5.4767400299231674, -0.4796082367610305]), File &quot;/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 892, in assert_array_almost_equal precision=decimal) File &quot;/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 713, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 1., 1.]) y: array([ 5.47674 , -0.479608]) ---------------------------------------------------------------------- Ran 21565 tests in 1190.894s FAILED (KNOWNFAIL=130, SKIP=1811, failures=3) &lt;nose.result.TextTestResult run=21565 errors=0 failures=3&gt; &gt;&gt;&gt; "><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; scipy.test('full') Running unit tests for scipy NumPy version 1.10.0.dev0+075cc98 NumPy relaxed strides checking option: False NumPy is installed in /home/larsoner/.local/lib/python2.7/site-packages/numpy SciPy version 0.17.0rc1 SciPy is installed in /home/larsoner/.local/lib/python2.7/site-packages/scipy Python version 2.7.10 (default, Oct 14 2015, 16:09:02) [GCC 5.2.1 20151010] nose version 1.3.6 ... ====================================================================== FAIL: test_lorentz (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/larsoner/.local/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 293, in test_lorentz 3.7798193600109009e+00]), File "/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 892, in assert_array_almost_equal precision=decimal) File "/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 713, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 1.000000e+03, 1.000000e-01, 3.800000e+00]) y: array([ 1.430678e+03, 1.339051e-01, 3.779819e+00]) ====================================================================== FAIL: test_multi (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/larsoner/.local/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 190, in test_multi 0.5101147161764654, 0.5173902330489161]), File "/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 892, in assert_array_almost_equal precision=decimal) File "/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 713, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 4. , 2. , 7. , 0.4, 0.5]) y: array([ 4.379988, 2.433306, 8.002885, 0.510115, 0.51739 ]) ====================================================================== FAIL: test_pearson (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/larsoner/.local/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 236, in test_pearson np.array([5.4767400299231674, -0.4796082367610305]), File "/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 892, in assert_array_almost_equal precision=decimal) File "/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 713, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 1., 1.]) y: array([ 5.47674 , -0.479608]) ---------------------------------------------------------------------- Ran 21565 tests in 1190.894s FAILED (KNOWNFAIL=130, SKIP=1811, failures=3) &lt;nose.result.TextTestResult run=21565 errors=0 failures=3&gt; &gt;&gt;&gt; </code></pre></div> <p dir="auto">I can also try with latest <code class="notranslate">numpy</code> master, but I figured we should try to clear up the <code class="notranslate">1.10</code> failures to see if that gets everything working first.</p>
<p dir="auto">Hi,</p> <p dir="auto">I've been pulling my hair out for a few days trying to get a build of numpy/scipy against the MKL to pass all the scipy tests. I've ran out of ideas to try, so any ideas on what to try next would be greatly appreciated! My guess is that I'm missing an ifort flag, but I've tried a bunch of different combinations without improving the situation.</p> <p dir="auto">My system is running 64bit Ubuntu 13.04 with a Intel Core i7-4700MQ CPU with Python 2.7.6. I've been using icc and ifort versions 14.0.2, and MKL version 11.1.2. I've been building Numpy 1.8.0 and Scipy 0.13.3.</p> <p dir="auto">I've been pretty much following Intel's instructions on building numpy and scipy, <a href="http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl" rel="nofollow">http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl</a> .</p> <p dir="auto">My site.cfg looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[mkl] library_dirs = /opt/intel/mkl/lib/intel64 include_dirs = /opt/intel/mkl/include mkl_libs = mkl_rt lapack_libs ="><pre class="notranslate"><code class="notranslate">[mkl] library_dirs = /opt/intel/mkl/lib/intel64 include_dirs = /opt/intel/mkl/include mkl_libs = mkl_rt lapack_libs = </code></pre></div> <p dir="auto">I modified self.cc_exe in the following class in numpy/distutils/intelccompiler.py:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class IntelEM64TCCompiler(UnixCCompiler): &quot;&quot;&quot; A modified Intel x86_64 compiler compatible with a 64bit gcc built Python. &quot;&quot;&quot; compiler_type = 'intelem' cc_exe = 'icc -m64 -fPIC' cc_args = &quot;-fPIC&quot; def __init__ (self, verbose=0, dry_run=0, force=0): UnixCCompiler.__init__ (self, verbose, dry_run, force) self.cc_exe = 'icc -m64 -O3 -g -fPIC -fp-model strict -fomit-frame-pointer -openmp -xhost' compiler = self.cc_exe self.set_executables(compiler=compiler, compiler_so=compiler, compiler_cxx=compiler, linker_exe=compiler, linker_so=compiler + ' -shared')"><pre class="notranslate"><code class="notranslate">class IntelEM64TCCompiler(UnixCCompiler): """ A modified Intel x86_64 compiler compatible with a 64bit gcc built Python. """ compiler_type = 'intelem' cc_exe = 'icc -m64 -fPIC' cc_args = "-fPIC" def __init__ (self, verbose=0, dry_run=0, force=0): UnixCCompiler.__init__ (self, verbose, dry_run, force) self.cc_exe = 'icc -m64 -O3 -g -fPIC -fp-model strict -fomit-frame-pointer -openmp -xhost' compiler = self.cc_exe self.set_executables(compiler=compiler, compiler_so=compiler, compiler_cxx=compiler, linker_exe=compiler, linker_so=compiler + ' -shared') </code></pre></div> <p dir="auto">I left numpy/distutils/fcompiler/intel.py alone, the class for 64 bit compiler is here:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class IntelEM64TFCompiler(IntelFCompiler): compiler_type = 'intelem' compiler_aliases = () description = 'Intel Fortran Compiler for 64-bit apps' version_match = intel_version_match('EM64T-based|Intel\\(R\\) 64|64|IA-64|64-bit') possible_executables = ['ifort', 'efort', 'efc'] executables = { 'version_cmd' : None, 'compiler_f77' : [None, &quot;-FI&quot;], 'compiler_fix' : [None, &quot;-FI&quot;], 'compiler_f90' : [None], 'linker_so' : ['&lt;F90&gt;', &quot;-shared&quot;], 'archiver' : [&quot;ar&quot;, &quot;-cr&quot;], 'ranlib' : [&quot;ranlib&quot;] } def get_flags(self): return ['-fPIC'] def get_flags_opt(self): #return ['-i8 -xhost -openmp -fp-model strict'] return ['-xhost -openmp -fp-model strict'] def get_flags_arch(self): return []"><pre class="notranslate"><code class="notranslate">class IntelEM64TFCompiler(IntelFCompiler): compiler_type = 'intelem' compiler_aliases = () description = 'Intel Fortran Compiler for 64-bit apps' version_match = intel_version_match('EM64T-based|Intel\\(R\\) 64|64|IA-64|64-bit') possible_executables = ['ifort', 'efort', 'efc'] executables = { 'version_cmd' : None, 'compiler_f77' : [None, "-FI"], 'compiler_fix' : [None, "-FI"], 'compiler_f90' : [None], 'linker_so' : ['&lt;F90&gt;', "-shared"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"] } def get_flags(self): return ['-fPIC'] def get_flags_opt(self): #return ['-i8 -xhost -openmp -fp-model strict'] return ['-xhost -openmp -fp-model strict'] def get_flags_arch(self): return [] </code></pre></div> <p dir="auto">I compiled and installed numpy as follows,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python setup.py config --compiler=intelem build_clib --compiler=intelem build_ext --compiler=intelem install"><pre class="notranslate"><code class="notranslate">python setup.py config --compiler=intelem build_clib --compiler=intelem build_ext --compiler=intelem install </code></pre></div> <p dir="auto">It built just fine and passed all the tests,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Ran 4969 tests in 29.835s OK (KNOWNFAIL=5, SKIP=7)"><pre class="notranslate"><code class="notranslate">Ran 4969 tests in 29.835s OK (KNOWNFAIL=5, SKIP=7) </code></pre></div> <p dir="auto">I then built scipy as follows,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem install"><pre class="notranslate"><code class="notranslate">python setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext --compiler=intelem --fcompiler=intelem install </code></pre></div> <p dir="auto">Which also built and installed just fine. However, I fail the following four tests:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="====================================================================== FAIL: test_lorentz (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py&quot;, line 293, in test_lorentz 3.7798193600109009e+00]), File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 811, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 644, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 1.00000000e+03, 1.00000000e-01, 3.80000000e+00]) y: array([ 1.43067808e+03, 1.33905090e-01, 3.77981936e+00]) ====================================================================== FAIL: test_multi (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py&quot;, line 190, in test_multi 0.5101147161764654, 0.5173902330489161]), File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 811, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 644, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 4. , 2. , 7. , 0.4, 0.5]) y: array([ 4.37998803, 2.43330576, 8.00288459, 0.51011472, 0.51739023]) ====================================================================== FAIL: test_pearson (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py&quot;, line 236, in test_pearson np.array([5.4767400299231674, -0.4796082367610305]), File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 811, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 644, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 1., 1.]) y: array([ 5.47674003, -0.47960824]) ====================================================================== FAIL: test_iterative.test_convergence(&lt;function bicgstab at 0x3b58938&gt;, &lt;nonsymposdef&gt;) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py&quot;, line 194, in check_convergence assert_equal(info,0) File &quot;/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py&quot;, line 317, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: -10 DESIRED: 0 ---------------------------------------------------------------------- Ran 8934 tests in 59.121s FAILED (KNOWNFAIL=115, SKIP=220, failures=4)"><pre class="notranslate"><code class="notranslate">====================================================================== FAIL: test_lorentz (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 293, in test_lorentz 3.7798193600109009e+00]), File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py", line 811, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py", line 644, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 1.00000000e+03, 1.00000000e-01, 3.80000000e+00]) y: array([ 1.43067808e+03, 1.33905090e-01, 3.77981936e+00]) ====================================================================== FAIL: test_multi (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 190, in test_multi 0.5101147161764654, 0.5173902330489161]), File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py", line 811, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py", line 644, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 4. , 2. , 7. , 0.4, 0.5]) y: array([ 4.37998803, 2.43330576, 8.00288459, 0.51011472, 0.51739023]) ====================================================================== FAIL: test_pearson (test_odr.TestODR) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/scipy/odr/tests/test_odr.py", line 236, in test_pearson np.array([5.4767400299231674, -0.4796082367610305]), File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py", line 811, in assert_array_almost_equal header=('Arrays are not almost equal to %d decimals' % decimal)) File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py", line 644, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 6 decimals (mismatch 100.0%) x: array([ 1., 1.]) y: array([ 5.47674003, -0.47960824]) ====================================================================== FAIL: test_iterative.test_convergence(&lt;function bicgstab at 0x3b58938&gt;, &lt;nonsymposdef&gt;) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py", line 194, in check_convergence assert_equal(info,0) File "/home/youngpm/pythonenv/mkl/lib/python2.7/site-packages/numpy/testing/utils.py", line 317, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: -10 DESIRED: 0 ---------------------------------------------------------------------- Ran 8934 tests in 59.121s FAILED (KNOWNFAIL=115, SKIP=220, failures=4) </code></pre></div> <p dir="auto">I can recreate the failure with the following script:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np from numpy import pi from scipy.odr import Data, Model, ODR, RealData, odr_stop def multi_fcn(B, x): if (x &lt; 0.0).any(): raise odr_stop theta = pi*B[3]/2. ctheta = np.cos(theta) stheta = np.sin(theta) omega = np.power(2.*pi*x*np.exp(-B[2]), B[3]) phi = np.arctan2((omega*stheta), (1.0 + omega*ctheta)) r = (B[0] - B[1]) * np.power(np.sqrt(np.power(1.0 + omega*ctheta, 2) + np.power(omega*stheta, 2)), -B[4]) ret = np.vstack([B[1] + r*np.cos(B[4]*phi), r*np.sin(B[4]*phi)]) return ret if __name__ == &quot;__main__&quot;: multi_mod = Model(multi_fcn, meta=dict(name='Sample Multi-Response Model', ref='ODRPACK UG, pg. 56'),) multi_x = np.array([30.0, 50.0, 70.0, 100.0, 150.0, 200.0, 300.0, 500.0, 700.0, 1000.0, 1500.0, 2000.0, 3000.0, 5000.0, 7000.0, 10000.0, 15000.0, 20000.0, 30000.0, 50000.0, 70000.0, 100000.0, 150000.0]) multi_y = np.array([ [4.22, 4.167, 4.132, 4.038, 4.019, 3.956, 3.884, 3.784, 3.713, 3.633, 3.54, 3.433, 3.358, 3.258, 3.193, 3.128, 3.059, 2.984, 2.934, 2.876, 2.838, 2.798, 2.759], [0.136, 0.167, 0.188, 0.212, 0.236, 0.257, 0.276, 0.297, 0.309, 0.311, 0.314, 0.311, 0.305, 0.289, 0.277, 0.255, 0.24, 0.218, 0.202, 0.182, 0.168, 0.153, 0.139], ]) n = len(multi_x) multi_we = np.zeros((2, 2, n), dtype=float) multi_ifixx = np.ones(n, dtype=int) multi_delta = np.zeros(n, dtype=float) multi_we[0,0,:] = 559.6 multi_we[1,0,:] = multi_we[0,1,:] = -1634.0 multi_we[1,1,:] = 8397.0 for i in range(n): if multi_x[i] &lt; 100.0: multi_ifixx[i] = 0 elif multi_x[i] &lt;= 150.0: pass # defaults are fine elif multi_x[i] &lt;= 1000.0: multi_delta[i] = 25.0 elif multi_x[i] &lt;= 10000.0: multi_delta[i] = 560.0 elif multi_x[i] &lt;= 100000.0: multi_delta[i] = 9500.0 else: multi_delta[i] = 144000.0 if multi_x[i] == 100.0 or multi_x[i] == 150.0: multi_we[:,:,i] = 0.0 multi_dat = Data(multi_x, multi_y, wd=1e-4/np.power(multi_x, 2), we=multi_we) multi_odr = ODR(multi_dat, multi_mod, beta0=[4.,2.,7.,.4,.5], delta0=multi_delta, ifixx=multi_ifixx) multi_odr.set_job(deriv=1, del_init=1) out = multi_odr.run() print out.beta print out.stopreason"><pre class="notranslate"><code class="notranslate">import numpy as np from numpy import pi from scipy.odr import Data, Model, ODR, RealData, odr_stop def multi_fcn(B, x): if (x &lt; 0.0).any(): raise odr_stop theta = pi*B[3]/2. ctheta = np.cos(theta) stheta = np.sin(theta) omega = np.power(2.*pi*x*np.exp(-B[2]), B[3]) phi = np.arctan2((omega*stheta), (1.0 + omega*ctheta)) r = (B[0] - B[1]) * np.power(np.sqrt(np.power(1.0 + omega*ctheta, 2) + np.power(omega*stheta, 2)), -B[4]) ret = np.vstack([B[1] + r*np.cos(B[4]*phi), r*np.sin(B[4]*phi)]) return ret if __name__ == "__main__": multi_mod = Model(multi_fcn, meta=dict(name='Sample Multi-Response Model', ref='ODRPACK UG, pg. 56'),) multi_x = np.array([30.0, 50.0, 70.0, 100.0, 150.0, 200.0, 300.0, 500.0, 700.0, 1000.0, 1500.0, 2000.0, 3000.0, 5000.0, 7000.0, 10000.0, 15000.0, 20000.0, 30000.0, 50000.0, 70000.0, 100000.0, 150000.0]) multi_y = np.array([ [4.22, 4.167, 4.132, 4.038, 4.019, 3.956, 3.884, 3.784, 3.713, 3.633, 3.54, 3.433, 3.358, 3.258, 3.193, 3.128, 3.059, 2.984, 2.934, 2.876, 2.838, 2.798, 2.759], [0.136, 0.167, 0.188, 0.212, 0.236, 0.257, 0.276, 0.297, 0.309, 0.311, 0.314, 0.311, 0.305, 0.289, 0.277, 0.255, 0.24, 0.218, 0.202, 0.182, 0.168, 0.153, 0.139], ]) n = len(multi_x) multi_we = np.zeros((2, 2, n), dtype=float) multi_ifixx = np.ones(n, dtype=int) multi_delta = np.zeros(n, dtype=float) multi_we[0,0,:] = 559.6 multi_we[1,0,:] = multi_we[0,1,:] = -1634.0 multi_we[1,1,:] = 8397.0 for i in range(n): if multi_x[i] &lt; 100.0: multi_ifixx[i] = 0 elif multi_x[i] &lt;= 150.0: pass # defaults are fine elif multi_x[i] &lt;= 1000.0: multi_delta[i] = 25.0 elif multi_x[i] &lt;= 10000.0: multi_delta[i] = 560.0 elif multi_x[i] &lt;= 100000.0: multi_delta[i] = 9500.0 else: multi_delta[i] = 144000.0 if multi_x[i] == 100.0 or multi_x[i] == 150.0: multi_we[:,:,i] = 0.0 multi_dat = Data(multi_x, multi_y, wd=1e-4/np.power(multi_x, 2), we=multi_we) multi_odr = ODR(multi_dat, multi_mod, beta0=[4.,2.,7.,.4,.5], delta0=multi_delta, ifixx=multi_ifixx) multi_odr.set_job(deriv=1, del_init=1) out = multi_odr.run() print out.beta print out.stopreason </code></pre></div> <p dir="auto">My MKL build returns:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 4. 2. 7. 0.4 0.5] ['Problem is not full rank at solution', 'Parameter convergence']"><pre class="notranslate"><code class="notranslate">[ 4. 2. 7. 0.4 0.5] ['Problem is not full rank at solution', 'Parameter convergence'] </code></pre></div> <p dir="auto">However, my openblas version, which passes all the tests, returns:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 4.37998803 2.43330576 8.00288459 0.51011472 0.51739023] ['Sum of squares convergence']"><pre class="notranslate"><code class="notranslate">[ 4.37998803 2.43330576 8.00288459 0.51011472 0.51739023] ['Sum of squares convergence'] </code></pre></div> <p dir="auto">Which is what the assertions in the tests are looking for. I haven't looked at the biconjugate gradient failure yet, figured the ODR failures should be tackled first!</p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/466713/11517308/65011810-983d-11e5-9218-64ddc2d406a8.png"><img width="555" alt="screen shot 2015-12-01 at 3 08 08 pm" src="https://cloud.githubusercontent.com/assets/466713/11517308/65011810-983d-11e5-9218-64ddc2d406a8.png" style="max-width: 100%;"></a></p> <p dir="auto">The help text for the JSON property is truncated, so it ends with "Can be omitted if ......."</p> <p dir="auto">Cheers,<br> Trevor Sullivan<br> Microsoft MVP: PowerShell</p>
<ul dir="auto"> <li>VSCode Version: 1.0.0-alpha</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Right click on a file in the Git menu that is untracked or deleted</li> <li>Clicking on show changes does nothing.</li> </ol> <p dir="auto">It would be nice, if possible, to not show the option for open change if there is no change to show.</p>
0
<p dir="auto">It should use test_util::new_deno_dir() to construct an ephemeral one.</p> <p dir="auto">This also applies to test_bundle and maybe other tests in tsc.rs.</p>
<p dir="auto">Following tests are non-deterministic:</p> <ul dir="auto"> <li><code class="notranslate">test_compile</code></li> <li><code class="notranslate">test_bundle</code></li> </ul> <p dir="auto">They do not use custom <code class="notranslate">DENO_DIR</code> but rather rely on the default value - that means they modify files in default location of <code class="notranslate">DENO_DIR</code> on developers machine.</p>
1
<p dir="auto">Module parse failed: Unexpected character '@' (2:0)<br> You may need an appropriate loader to handle this file type.<br> | /* roboto-100normal - latin <em>/<br> | <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/font-face/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/font-face">@font-face</a> {<br> | font-family: 'Roboto';<br> | font-style: normal;<br> @ ./pages/index.tsx 3:0-25<br> @ multi ./pages/index.tsx<br> at /home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/next/dist/server/build/index.js:162:31<br> at runWithDependencies (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/webpack/lib/MultiCompiler.js:154:4)<br> at /home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/async/dist/async.js:1126:9<br> at /home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/async/dist/async.js:473:16<br> at iteratorCallback (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/async/dist/async.js:1050:13)<br> at /home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/async/dist/async.js:958:16<br> at /home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/async/dist/async.js:1123:13<br> at runCompilers (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/webpack/lib/MultiCompiler.js:96:47)<br> at fn (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/webpack/lib/MultiCompiler.js:101:6)<br> at compiler.run (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/webpack/lib/MultiCompiler.js:150:5)<br> at emitRecords.err (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/webpack/lib/Compiler.js:265:13)<br> at Compiler.emitRecords (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/webpack/lib/Compiler.js:371:38)<br> at emitAssets.err (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/webpack/lib/Compiler.js:258:10)<br> at applyPluginsAsyncSeries1.err (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/webpack/lib/Compiler.js:364:12)<br> at next (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/tapable/lib/Tapable.js:218:11)<br> at Compiler.compiler.plugin (/home/muhammad/be-projects/bluerain-app-dukaan-admin/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)<br> errors:<br> [ '(client) ./node_modules/typeface-roboto/index.css\nModule parse failed: Unexpected character '@' (2:0)\nYou may need an appropriate loader to handle this file type.\n| /</em> roboto-100normal - latin <em>/\n| <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/font-face/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/font-face">@font-face</a> {\n| font-family: 'Roboto';\n| font-style: normal;\n @ ./pages/index.tsx 3:0-25\n @ multi ./pages/index.tsx',<br> '(server) ./node_modules/typeface-roboto/index.css\nModule parse failed: Unexpected character '@' (2:0)\nYou may need an appropriate loader to handle this file type.\n| /</em> roboto-100normal - latin */\n| <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/font-face/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/font-face">@font-face</a> {\n| font-family: 'Roboto';\n| font-style: normal;\n @ ./pages/index.tsx 3:0-25\n @ multi ./pages/index.tsx' ],<br> warnings: [] }</p>
<h1 dir="auto">i am facing issue in importing the typeface-roboto font Types in the next.js file.<br> Error: Module parse failed: Unexpected character '@' (2:0)<br> You may need an appropriate loader to handle this file type.<br> | /* roboto-100normal - latin */<br> | <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/font-face/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/font-face">@font-face</a> {<br> | font-family: 'Roboto';<br> | font-style: normal;<br> at Object. (/home/muhammad/be-projects/bluerain-app-dukaan-admin/.next/dist/bundles/pages/index.js:6649:7)<br> at <strong>webpack_require</strong> (/home/muhammad/be-projects/bluerain-app-dukaan-admin/.next/dist/bundles/pages/index.js:23:31)<br> at Object. (/home/muhammad/be-projects/bluerain-app-dukaan-admin/.next/dist/bundles/pages/index.js:6552:23)<br> at <strong>webpack_require</strong> (/home/muhammad/be-projects/bluerain-app-dukaan-admin/.next/dist/bundles/pages/index.js:23:31)<br> at Object.module.exports.Object.defineProperty.value (/home/muhammad/be-projects/bluerain-app-dukaan-admin/.next/dist/bundles/pages/index.js:161:18)<br> at <strong>webpack_require</strong> (/home/muhammad/be-projects/bluerain-app-dukaan-admin/.next/dist/bundles/pages/index.js:23:31)<br> at /home/muhammad/be-projects/bluerain-app-dukaan-admin/.next/dist/bundles/pages/index.js:70:18<br> at Object. (/home/muhammad/be-projects/bluerain-app-dukaan-admin/.next/dist/bundles/pages/index.js:73:10)<br> at Module._compile (internal/modules/cjs/loader.js:654:30)<br> at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)</h1> <p dir="auto">This is my next.config.js</p> <p dir="auto">module.exports = {<br> webpack: (config, options) =&gt; {<br> config.module.rules.push({ test: /.scss$/, loader: ['style-loader', 'css-loader', 'sass-loader'] });<br> config.module.rules.push({<br> test: /.+(ts|tsx)$/,<br> use: [<br> // defaultLoaders.babel,<br> { loader: 'ts-loader', options: { transpileOnly: true } }<br> ],<br> exclude: /node_modules/,<br> }, );<br> return config;<br> }<br> }</p>
1
<h2 dir="auto">Issue description</h2> <p dir="auto">I just upgraded my Pytorch version from 0.3.0 to v0.4.0, and I'm running into the following issue.</p> <p dir="auto">I want to freeze the parameters of a layer (i.e. set <code class="notranslate">requires_grad to False</code> for that layer) and train. This worked fine of v0.3.0 but now, I get the following error at the line <code class="notranslate">loss.backward()</code>:<br> <code class="notranslate">RuntimeError: backward_input can only be called in training mode</code></p> <p dir="auto">Based on what I found online, I added <code class="notranslate">model.train()</code> to the code, but now I get the following error on <code class="notranslate">loss.backward()</code>:<br> <code class="notranslate">RuntimeError: inconsistent range for TensorList output</code></p> <p dir="auto">When I comment out the layer freezing, things work fine. It seems that model.train() assumes <code class="notranslate">requires.grad=True</code> for all the parameters. How can I make training work properly with freezing?</p> <p dir="auto">Giving the code example below.</p> <h2 dir="auto">Code example</h2> <p dir="auto">The following code ran fine on v0.3.0</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for name, param in model.named_parameters(): if name == 'encoder.embedding.weight': param.requires_grad = False loss = model.forward() loss.backward()"><pre class="notranslate"><code class="notranslate">for name, param in model.named_parameters(): if name == 'encoder.embedding.weight': param.requires_grad = False loss = model.forward() loss.backward() </code></pre></div> <p dir="auto">Running it on v0.4.0 yields to following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;/mnt/fs_default/Conversational-Agents/model.py&quot;, line 86, in train_batch loss.backward() File &quot;/usr/local/lib/python3.5/dist-packages/torch/tensor.py&quot;, line 93, in backward torch.autograd.backward(self, gradient, retain_graph, create_graph) File &quot;/usr/local/lib/python3.5/dist-packages/torch/autograd/__init__.py&quot;, line 89, in backward allow_unreachable=True) # allow_unreachable flag RuntimeError: backward_input can only be called in training mode"><pre class="notranslate"><code class="notranslate"> File "/mnt/fs_default/Conversational-Agents/model.py", line 86, in train_batch loss.backward() File "/usr/local/lib/python3.5/dist-packages/torch/tensor.py", line 93, in backward torch.autograd.backward(self, gradient, retain_graph, create_graph) File "/usr/local/lib/python3.5/dist-packages/torch/autograd/__init__.py", line 89, in backward allow_unreachable=True) # allow_unreachable flag RuntimeError: backward_input can only be called in training mode </code></pre></div> <p dir="auto">So then I added <code class="notranslate">model.train()</code> to my code as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for name, param in model.named_parameters(): if name == 'encoder.embedding.weight': param.requires_grad = False model.train() loss = model.forward() loss.backward()"><pre class="notranslate"><code class="notranslate">for name, param in model.named_parameters(): if name == 'encoder.embedding.weight': param.requires_grad = False model.train() loss = model.forward() loss.backward() </code></pre></div> <p dir="auto">but now I get the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;/mnt/fs_default/kaselby/Conversational-Agents/model.py&quot;, line 88, in train_batch loss.backward() File &quot;/usr/local/lib/python3.5/dist-packages/torch/tensor.py&quot;, line 93, in backward torch.autograd.backward(self, gradient, retain_graph, create_graph) File &quot;/usr/local/lib/python3.5/dist-packages/torch/autograd/__init__.py&quot;, line 89, in backward allow_unreachable=True) # allow_unreachable flag RuntimeError: inconsistent range for TensorList output"><pre class="notranslate"><code class="notranslate"> File "/mnt/fs_default/kaselby/Conversational-Agents/model.py", line 88, in train_batch loss.backward() File "/usr/local/lib/python3.5/dist-packages/torch/tensor.py", line 93, in backward torch.autograd.backward(self, gradient, retain_graph, create_graph) File "/usr/local/lib/python3.5/dist-packages/torch/autograd/__init__.py", line 89, in backward allow_unreachable=True) # allow_unreachable flag RuntimeError: inconsistent range for TensorList output </code></pre></div> <p dir="auto">Is this a bug? If not, can someone tell me how to make layer freezing work properly with model.train()?</p> <h2 dir="auto">System Info</h2> <p dir="auto">PyTorch version: 0.4.0<br> Is debug build: No<br> CUDA used to build PyTorch: 9.0.176</p> <p dir="auto">OS: Ubuntu 16.04.3 LTS<br> GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609<br> CMake version: version 3.5.1</p> <p dir="auto">Python version: 3.5<br> Is CUDA available: Yes<br> CUDA runtime version: 9.0.176<br> GPU models and configuration:<br> GPU 0: Tesla P100-PCIE-16GB<br> GPU 1: Tesla P100-PCIE-16GB<br> GPU 2: Tesla P100-PCIE-16GB<br> GPU 3: Tesla P100-PCIE-16GB</p> <p dir="auto">Nvidia driver version: 384.111<br> cuDNN version: Could not collect</p> <p dir="auto">Versions of relevant libraries:<br> [pip3] msgpack-numpy (0.4.1)<br> [pip3] numpy (1.13.3)<br> [pip3] torch (0.4.0)<br> [pip3] torchtext (0.2.3)<br> [pip3] torchvision (0.1.9)<br> [conda] Could not collect</p>
<h2 dir="auto">Issue description</h2> <p dir="auto">The general situation is that we have a pretrained Language Model, and during a first phase we only want to train the new embedding layer we added before fine-tuning the whole thing. This worked fine in 0.3 but now sends an error message during back propagation. Minimal reproduction is to just create a simple model with a linear layer and an LSTM, freeze this second layer (by applying require_grads=False to its parameters) and try to compute a back-propagation.</p> <h2 dir="auto">Code example</h2> <p dir="auto">See <a href="https://github.com/sgugger/Deep-Learning/blob/master/Bug%20with%20frozen%20LSTM%20layer.ipynb">here</a></p> <h2 dir="auto">System Info</h2> <p dir="auto">PyTorch version: 0.4.0<br> Is debug build: No<br> CUDA used to build PyTorch: 9.0 OS: Microsoft Windows 10 Home<br> GCC version: Could not collect<br> CMake version: Could not collect Python version: 3.6<br> Is CUDA available: Yes<br> CUDA runtime version: 9.1.85<br> GPU models and configuration: Could not collect<br> Nvidia driver version: Could not collect<br> cuDNN version: Could not collect Versions of relevant libraries:<br> [pip] Could not collect<br> [conda] Could not collect</p> <p dir="auto">Pytorch was installed with conda, the bug also appears on my linux instances.</p> <p dir="auto">Thanks for your help!</p>
1
<h4 dir="auto">Description</h4> <p dir="auto">Using <code class="notranslate">adjusted_rand_score</code> gives me a PendingDeprecationWarning as seen below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/lib/python3.6/site-packages/numpy/matrixlib/defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray."><pre class="notranslate"><code class="notranslate">/lib/python3.6/site-packages/numpy/matrixlib/defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray. </code></pre></div> <h4 dir="auto">Steps/Code to Reproduce</h4> <p dir="auto">Example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.metrics import adjusted_rand_score from sklearn.datasets import make_blobs X, y = make_blobs() kmeans = KMeans() pred = kmeans.fit_predict(X) adjusted_rand_score(y, pred)"><pre lang="from" class="notranslate"><code class="notranslate">from sklearn.metrics import adjusted_rand_score from sklearn.datasets import make_blobs X, y = make_blobs() kmeans = KMeans() pred = kmeans.fit_predict(X) adjusted_rand_score(y, pred) </code></pre></div> <h4 dir="auto">Versions</h4> <h2 dir="auto">System</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python: 3.6.5 (default, Jun 17 2018, 12:26:58) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]"><pre class="notranslate"><code class="notranslate">python: 3.6.5 (default, Jun 17 2018, 12:26:58) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] </code></pre></div> <p dir="auto">executable: /usr/local/Cellar/python/3.6.5_1/bin/python3.6<br> machine: Darwin-16.7.0-x86_64-i386-64bit</p> <h2 dir="auto">BLAS</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="macros: NO_ATLAS_INFO=3, HAVE_CBLAS=None"><pre class="notranslate"><code class="notranslate">macros: NO_ATLAS_INFO=3, HAVE_CBLAS=None </code></pre></div> <p dir="auto">lib_dirs:<br> cblas_libs: cblas</p> <h2 dir="auto">Python deps</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pip: 18.1"><pre class="notranslate"><code class="notranslate"> pip: 18.1 </code></pre></div> <p dir="auto">setuptools: 40.4.3<br> sklearn: 0.20.0<br> numpy: 1.15.3<br> scipy: 1.1.0<br> Cython: None<br> pandas: 0.23.4</p>
<p dir="auto">When running a the test suite we get a number <code class="notranslate">PendingDeprecationWarning</code>,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray. return matrix(data, dtype=dtype, copy=False)"><pre class="notranslate"><code class="notranslate">PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray. return matrix(data, dtype=dtype, copy=False) </code></pre></div> <p dir="auto">See for instance <a href="https://ci.appveyor.com/project/sklearn-ci/scikit-learn/builds/19341228/job/q6rysq7flma8hi6v" rel="nofollow">https://ci.appveyor.com/project/sklearn-ci/scikit-learn/builds/19341228/job/q6rysq7flma8hi6v</a> Warnings seems to be hidden on Travis so we don't see those there.</p> <p dir="auto">This typically happens when we have a sparse matrix, sum along one axis to get a dense one, than do some mathematical operation with this matrix. It should be explicitly converted to an array first.</p> <p dir="auto">This has also been reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drorata/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drorata">@drorata</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="331924701" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/11251" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/11251/hovercard?comment_id=427865173&amp;comment_type=issue_comment" href="https://github.com/scikit-learn/scikit-learn/pull/11251#issuecomment-427865173">#11251 (comment)</a>. There was previous discussion about this in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="331924701" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/11251" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/11251/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/11251">#11251</a> but it doesn't look like it's fixed. I also saw this recently when running PyPy CI.</p> <p dir="auto">To investigate where this happen it's sufficient to run pytest tests with <code class="notranslate">-Werror::PendingDeprecationWarning</code> to error on those warnings, as they don't seem to be raised with the right stacklevel (see also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="193111938" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/7963" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/7963/hovercard?comment_id=265420200&amp;comment_type=issue_comment" href="https://github.com/scikit-learn/scikit-learn/issues/7963#issuecomment-265420200">#7963 (comment)</a> for workarounds)</p>
1
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">The <code class="notranslate">npm audit --production</code> command includes vulnerabilities of transitive devDependencies in its report. Using @thiagoelg/node-printer as an example, a vulnerability is reported for <code class="notranslate">diff</code> if @thiagoelg/node-printer is declared as a dependency. But <code class="notranslate">diff</code> is not installed by <code class="notranslate">npm install --production</code>, because it is a transitive dependency of nodeunit, which is a devDependency of @thiagoelg/node-printer.</p> <h3 dir="auto">Expected Behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="found 0 vulnerabilities"><pre class="notranslate"><code class="notranslate">found 0 vulnerabilities </code></pre></div> <h3 dir="auto">Steps To Reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm init -y npm install --save @thiagoelg/node-printer@^0.5.5 npm audit --production"><pre class="notranslate"><code class="notranslate">npm init -y npm install --save @thiagoelg/node-printer@^0.5.5 npm audit --production </code></pre></div> <h3 dir="auto">Output</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# npm audit report diff &lt;3.5.0 Severity: high Regular Expression Denial of Service - https://npmjs.com/advisories/1631 fix available via `npm audit fix` node_modules/@thiagoelg/node-printer/node_modules/diff tap-mocha-reporter 0.0.4 - 5.0.0 Depends on vulnerable versions of diff node_modules/@thiagoelg/node-printer/node_modules/tap-mocha-reporter tap 7.0.0 - 14.6.7 || 14.10.2-totally-bundled - 14.10.2-unbundled Depends on vulnerable versions of tap-mocha-reporter node_modules/@thiagoelg/node-printer/node_modules/tap nodeunit &gt;=0.9.3 Depends on vulnerable versions of tap node_modules/@thiagoelg/node-printer/node_modules/nodeunit hosted-git-info &lt;2.8.9 || &gt;=3.0.0 &lt;3.0.8 Severity: moderate Regular Expression Denial of Service - https://npmjs.com/advisories/1677 fix available via `npm audit fix` node_modules/@thiagoelg/node-printer/node_modules/hosted-git-info lodash &lt;=4.17.20 Severity: high Prototype Pollution - https://npmjs.com/advisories/1523 Command Injection - https://npmjs.com/advisories/1673 fix available via `npm audit fix` node_modules/@thiagoelg/node-printer/node_modules/lodash y18n &lt;3.2.2||=4.0.0||&gt;=5.0.0 &lt;5.0.5 Severity: high Prototype Pollution - https://npmjs.com/advisories/1654 fix available via `npm audit fix` node_modules/@thiagoelg/node-printer/node_modules/y18n 7 vulnerabilities (1 moderate, 6 high) To address all issues, run: npm audit fix"><pre class="notranslate"><code class="notranslate"># npm audit report diff &lt;3.5.0 Severity: high Regular Expression Denial of Service - https://npmjs.com/advisories/1631 fix available via `npm audit fix` node_modules/@thiagoelg/node-printer/node_modules/diff tap-mocha-reporter 0.0.4 - 5.0.0 Depends on vulnerable versions of diff node_modules/@thiagoelg/node-printer/node_modules/tap-mocha-reporter tap 7.0.0 - 14.6.7 || 14.10.2-totally-bundled - 14.10.2-unbundled Depends on vulnerable versions of tap-mocha-reporter node_modules/@thiagoelg/node-printer/node_modules/tap nodeunit &gt;=0.9.3 Depends on vulnerable versions of tap node_modules/@thiagoelg/node-printer/node_modules/nodeunit hosted-git-info &lt;2.8.9 || &gt;=3.0.0 &lt;3.0.8 Severity: moderate Regular Expression Denial of Service - https://npmjs.com/advisories/1677 fix available via `npm audit fix` node_modules/@thiagoelg/node-printer/node_modules/hosted-git-info lodash &lt;=4.17.20 Severity: high Prototype Pollution - https://npmjs.com/advisories/1523 Command Injection - https://npmjs.com/advisories/1673 fix available via `npm audit fix` node_modules/@thiagoelg/node-printer/node_modules/lodash y18n &lt;3.2.2||=4.0.0||&gt;=5.0.0 &lt;5.0.5 Severity: high Prototype Pollution - https://npmjs.com/advisories/1654 fix available via `npm audit fix` node_modules/@thiagoelg/node-printer/node_modules/y18n 7 vulnerabilities (1 moderate, 6 high) To address all issues, run: npm audit fix </code></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: Ubuntu 18.04</li> <li>Node: 14.17.2</li> <li>npm: 7.19.1</li> </ul>
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">When installing a package (<code class="notranslate">npm install &lt;package name&gt;</code>) from the npm registry that contains an npm-shrinkwrap.json, dependencies listed with <code class="notranslate">"dev": true</code> are installed unexpectedly.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">devDependencies</code> of the published package should not be installed when consuming the package.</p> <h3 dir="auto">Steps To Reproduce</h3> <p dir="auto">Given: Node.js v16.13.2 and npm v8.3.2</p> <p dir="auto">I created an example project to showcase this issue: <a href="https://github.com/RandomByte/npm-shrinkwrap-test">https://github.com/RandomByte/npm-shrinkwrap-test</a></p> <ol dir="auto"> <li><code class="notranslate">git clone [email protected]:RandomByte/npm-shrinkwrap-test.git &amp;&amp; cd npm-shrinkwrap-test</code></li> <li><code class="notranslate">npm install</code></li> <li>Check for known devDependency "ava" and notice that it has been installed: <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ls -a | grep 'ava' &gt; ├─┬ [email protected] extraneous"><pre class="notranslate"><code class="notranslate">npm ls -a | grep 'ava' &gt; ├─┬ [email protected] extraneous </code></pre></div> </li> <li><code class="notranslate">npm prune --production</code> removes the <code class="notranslate">ava</code> package. But a following <code class="notranslate">npm install</code> will install it again</li> </ol> <p dir="auto">It seems that after installing <code class="notranslate">@ui5/cli@next</code> in the empty project, its devDependencies where installed as normal dependencies. This is unexpected since a consumer of the package does not need its devDependencies.</p> <p dir="auto">In the past (with npm v6) we worked around this issue by executing <code class="notranslate">npm prune --production</code> followed by <code class="notranslate">npm shrinkwrap</code> during publishing of the <code class="notranslate">@ui5/cli</code> package. This basically removed all devDependencies from the npm-shrinkwrap.json (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="746838250" data-permission-text="Title is private" data-url="https://github.com/SAP/ui5-tooling/issues/283" data-hovercard-type="issue" data-hovercard-url="/SAP/ui5-tooling/issues/283/hovercard?comment_id=599985109&amp;comment_type=issue_comment" href="https://github.com/SAP/ui5-tooling/issues/283#issuecomment-599985109">SAP/ui5-tooling#283 (comment)</a>). But this does not seem to work with npm v8 anymore, as the npm-shrinkwrap.json is not being updated after the prune took place.</p> <p dir="auto">I think the fundamental issue is present since at least npm v6. Relevant issues are:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="584792212" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/1036" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/1036/hovercard" href="https://github.com/npm/cli/issues/1036">#1036</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="711525813" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/1878" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/1878/hovercard" href="https://github.com/npm/cli/issues/1878">#1878</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="594968571" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/1113" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/1113/hovercard" href="https://github.com/npm/cli/issues/1113">#1113</a> <ul dir="auto"> <li>This issue has actually been fixed: In the project above <code class="notranslate">npm install --production</code> does not install the dependency's <code class="notranslate">devDependencies</code>. However, I would expect this exact behavior from <code class="notranslate">npm install</code> (without the <code class="notranslate">--production</code> flag) since I don't see a point in installing transitive <code class="notranslate">devDependencies</code></li> </ul> </li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: v8.3.2</li> <li>Node.js: v16.13.2</li> <li>OS Name: macOS 12.1 (Monterey)</li> <li>System Model Name: MacBook Pro</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="registry = &quot;https://registry.npmjs.com/&quot; "><pre class="notranslate"><span class="pl-k">registry</span> = <span class="pl-s"><span class="pl-pds">"</span>https://registry.npmjs.com/<span class="pl-pds">"</span></span> </pre></div>
1
<p dir="auto">Probably related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19344941" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/9127" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/9127/hovercard" href="https://github.com/rust-lang/rust/issues/9127">#9127</a> (or at least the stack traces look similar to me):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CFG_CONFIGURE_ARGS := --enable-debug --disable-optimize --enable-ccache --enable-clang --prefix=~/opt/rust-dbg-nopt"><pre class="notranslate"><code class="notranslate">CFG_CONFIGURE_ARGS := --enable-debug --disable-optimize --enable-ccache --enable-clang --prefix=~/opt/rust-dbg-nopt </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% x86_64-apple-darwin/stage2/bin/rustc --cfg stage2 --cfg debug -Z no-debug-borrows --target=x86_64-apple-darwin --lib -o x86_64-apple-darwin/stage2/lib/rustc/x86_64-apple-darwin/lib/librun_pass_stage2.dylib tmp/run_pass_stage2.rc Bus error: 10"><pre class="notranslate"><code class="notranslate">% x86_64-apple-darwin/stage2/bin/rustc --cfg stage2 --cfg debug -Z no-debug-borrows --target=x86_64-apple-darwin --lib -o x86_64-apple-darwin/stage2/lib/rustc/x86_64-apple-darwin/lib/librun_pass_stage2.dylib tmp/run_pass_stage2.rc Bus error: 10 </code></pre></div> <hr> <p dir="auto">Update: Here is a isolated test case (importantly, it does not depend on pulling in <code class="notranslate">libsyntax</code>):</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub trait bomb { fn boom(@self, Ident); } pub struct S; impl bomb for S { fn boom(@self, _: Ident) { } } pub struct Ident { name: uint } // macro_rules! int3( () =&gt; ( unsafe { asm!( &quot;int3&quot; ); } ) ) macro_rules! int3( () =&gt; ( { } ) ) fn Ident_new() -&gt; Ident { int3!(); Ident {name: 0x6789ABCD } } pub fn light_fuse(fld: @bomb) { int3!(); let f = || { int3!(); fld.boom(Ident_new()); // *** 1 }; f(); } fn main() { let b = @S as @bomb; light_fuse(b); }"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">trait</span> <span class="pl-smi">bomb</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">boom</span><span class="pl-kos">(</span>@<span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-smi">Ident</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">struct</span> <span class="pl-smi">S</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">bomb</span> <span class="pl-k">for</span> <span class="pl-smi">S</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">boom</span><span class="pl-kos">(</span>@<span class="pl-smi">self</span><span class="pl-kos">,</span> _<span class="pl-kos">:</span> <span class="pl-smi">Ident</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">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">Ident</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span><span class="pl-kos">:</span> <span class="pl-smi">uint</span> <span class="pl-kos">}</span> <span class="pl-c">// macro_rules! int3( () =&gt; ( unsafe { asm!( "int3" ); } ) )</span> <span class="pl-k">macro_rules!</span> int3<span class="pl-kos">(</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> =&gt; <span class="pl-kos">(</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-k">fn</span> <span class="pl-v">Ident_new</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Ident</span> <span class="pl-kos">{</span> <span class="pl-en">int3</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">Ident</span> <span class="pl-kos">{</span><span class="pl-c1">name</span><span class="pl-kos">:</span> <span class="pl-c1">0x6789ABCD</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">light_fuse</span><span class="pl-kos">(</span><span class="pl-s1">fld</span><span class="pl-kos">:</span> @<span class="pl-smi">bomb</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">int3</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> f = || <span class="pl-kos">{</span> <span class="pl-en">int3</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> fld<span class="pl-kos">.</span><span class="pl-en">boom</span><span class="pl-kos">(</span><span class="pl-v">Ident_new</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">// *** 1</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-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> b = @<span class="pl-v">S</span> <span class="pl-k">as</span> @<span class="pl-smi">bomb</span><span class="pl-kos">;</span> <span class="pl-en">light_fuse</span><span class="pl-kos">(</span>b<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">Compiling the following project leads to an ICE:<br> <a href="https://github.com/michaelwoerister/rs-persistent-datastructures/tree/vtable_ice">https://github.com/michaelwoerister/rs-persistent-datastructures/tree/vtable_ice</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mw@ubuntu:~/rs-persistent-datastructures$ rustc --test ./lib.rs error: internal compiler error: unexpected failure This message reflects a bug in the Rust compiler. We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html note: the compiler hit an unexpected failure path. this is a bug Ok(task 'rustc' failed at 'vtables missing where they are needed', /home/mw/rust/src/libstd/option.rs:130 )"><pre class="notranslate"><code class="notranslate">mw@ubuntu:~/rs-persistent-datastructures$ rustc --test ./lib.rs error: internal compiler error: unexpected failure This message reflects a bug in the Rust compiler. We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html note: the compiler hit an unexpected failure path. this is a bug Ok(task 'rustc' failed at 'vtables missing where they are needed', /home/mw/rust/src/libstd/option.rs:130 ) </code></pre></div> <p dir="auto">I don't think it does anything special but I have not done any investigation what the cause might be. Give me a shout if the repro-branch needs an update to compile (or <em>not compile</em> in just the right way :)</p>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li> <p dir="auto">Windows build number: [run "winver"]<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2003122/89536938-df833280-d7f8-11ea-8872-4df89723febe.png"><img src="https://user-images.githubusercontent.com/2003122/89536938-df833280-d7f8-11ea-8872-4df89723febe.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">PowerToys version:</p> </li> <li> <p dir="auto">PowerToy module:</p> </li> </ul> <h2 dir="auto">📝 Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>Tried starting it from the start menu</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto"><em>What is the expected result of the above steps?</em><br> It should start up automatically.</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <p dir="auto">I tried starting it, it showed threw the following:</p> <p dir="auto">The log file: <a href="https://github.com/microsoft/PowerToys/files/5035046/2020-08-06.txt">2020-08-06.txt</a></p> <p dir="auto">Please open new issue in: <a href="https://github.com/microsoft/PowerToys/issues">https://github.com/microsoft/PowerToys/issues</a></p> <ol dir="auto"> <li>upload log file: C:\Users\toatu\AppData\Local\Microsoft\PowerToys\PowerToys Run\Logs\1.0.0\2020-08-06.txt</li> <li>copy below exception message</li> </ol> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18363.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/06/2020 15:21:28<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> <p dir="auto"><em>What is the actual result of the above steps?</em></p> <h2 dir="auto">📷 Screenshots</h2> <p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2003122/89536763-a6e35900-d7f8-11ea-89b5-a36abb1b4a3d.png"><img src="https://user-images.githubusercontent.com/2003122/89536763-a6e35900-d7f8-11ea-89b5-a36abb1b4a3d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">Hello,</p> <h2 dir="auto">Expected behaviour</h2> <p dir="auto">The TextField's label clashes with the underlying tag's pre-populated content when using type=[datetime-local|time|date|etc]. I would expect the pre-populated content to be hidden when the TextField does not have focus and appear only when it does have focus and the label's position is changed.</p> <h2 dir="auto">Current behaviour</h2> <p dir="auto">Code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;TextField required margin=&quot;dense&quot; id=&quot;timestamp&quot; label=&quot;Timestamp&quot; type=&quot;datetime-local&quot; fullWidth /&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">TextField</span> <span class="pl-c1">required</span> <span class="pl-c1">margin</span><span class="pl-c1">=</span><span class="pl-s">"dense"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"timestamp"</span> <span class="pl-c1">label</span><span class="pl-c1">=</span><span class="pl-s">"Timestamp"</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"datetime-local"</span> <span class="pl-c1">fullWidth</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">Example:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1335525/33118334-cafdd970-cf6b-11e7-8c4e-5a7f5eb8e5b9.png"><img width="619" alt="screen shot 2017-11-22 at 09 58 45" src="https://user-images.githubusercontent.com/1335525/33118334-cafdd970-cf6b-11e7-8c4e-5a7f5eb8e5b9.png" style="max-width: 100%;"></a></p> <p dir="auto">The label stops classing when the field is completed.</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 beta21</td> </tr> <tr> <td>React</td> <td>16.1.1</td> </tr> <tr> <td>browser</td> <td>Version 62.0.3202.94 (Official Build) (64-bit)</td> </tr> <tr> <td>os</td> <td>MacOS 10.13</td> </tr> </tbody> </table> <p dir="auto">Thanks for the fantastic UI framework!</p>
<h3 dir="auto">Problem description</h3> <p dir="auto">As I said in some issue, the production generated classNames from Material is colliding with my global styles so I need to pass a custom createGenerateClassName like <a href="https://github.com/callemall/material-ui/blob/110f0a6e95e8e2b51b2bdd7e545a9b41d1a0009f/docs/src/components/App.js#L50">here</a></p> <p dir="auto">Now I need to pass the jss context with JSSProvider component <a href="https://github.com/callemall/material-ui/blob/1f3e67326d76f5d2053b128d5ca2cdefa0d6d90f/examples/nextjs/components/withRoot.js#L52">here</a></p> <p dir="auto">But then, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="247239194" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/7627" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/7627/hovercard" href="https://github.com/mui/material-ui/issues/7627">#7627</a> happens again. Material UI starts to generate duplicated classNames.</p> <p dir="auto">So my question is, is there anyway to pass JSS context safely on browser render code ? I want to stop forking Material UI for that 1 character change</p> <h3 dir="auto">Link to minimal working code that reproduces the issue</h3> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 1.0.0-beta-4</li> <li>React: ^15.0.0</li> <li>Browser: not relevant</li> </ul>
0
<p dir="auto">Recently, we keep receiving issues from the community reporting duplicate URL addresses in Registry, mostly zookeeper, after upgrading to 2.7.1. Those URLs are all pushed to the Consumer and because only one of the duplicated URLs is valid, it causes the consumer to fail when the consumer chooses the invalid one during load balance.</p> <p dir="auto">The following are some typical issues: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="427652986" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3785" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3785/hovercard" href="https://github.com/apache/dubbo/issues/3785">#3785</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="426764906" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3770" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3770/hovercard" href="https://github.com/apache/dubbo/issues/3770">#3770</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="436470099" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3920" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3920/hovercard" href="https://github.com/apache/dubbo/issues/3920">#3920</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="442501640" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4013" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4013/hovercard" href="https://github.com/apache/dubbo/issues/4013">#4013</a></p> <p dir="auto">After troubleshooting, we found the reason for the problem: in version 2.7.1, the URL addresses will be registered as a persistent node in zookeeper, which is different from the behavior in 2.7.0 or before, in which they are registered as ephemeral nodes. The meaning of the ephemeral node is that it will get removed from zookeeper when the server process went for a while. Now, after changed to persistent, the node cannot be removed in some exceptional scenarios, such as process crashed, process forced killed with kill -9, etc, eventually leading to the appearance of dirty data.</p> <p dir="auto">Advices to solve or avoid the problem:</p> <ol dir="auto"> <li>Never forcibly terminating the process to ensure that Dubbo enters it's elegant shutdown process.</li> <li>Wait for 2.7.2 to <a href="https://github.com/apache/dubbo/pull/3824" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3824/hovercard">fix this issue</a>, going to be released in early June.</li> <li>For dirty data that has already been generated, consider manual or ZK scripts to clean up, but be careful of the deletion criteria.</li> <li>Add the following configuration for 2.7.1: &lt;dubbo:provider dynamic="true"/&gt; or &lt;dubbo:service dynamic="true"/&gt;</li> </ol> <p dir="auto">近期,关于升级到2.7.1版本后注册中心(多数是zookeeper)出现重复URL地址数据无法删除的情况,我们持续收到来自社区的issue报告。以下issue是几个典型的异常现象:<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="427652986" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3785" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3785/hovercard" href="https://github.com/apache/dubbo/issues/3785">#3785</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="426764906" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3770" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3770/hovercard" href="https://github.com/apache/dubbo/issues/3770">#3770</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="436470099" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3920" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3920/hovercard" href="https://github.com/apache/dubbo/issues/3920">#3920</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="442501640" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4013" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/4013/hovercard" href="https://github.com/apache/dubbo/issues/4013">#4013</a></p> <p dir="auto">经过问题排查我们定位到了问题的原因:在2.7.1版本中URL地址在zookeeper中被注册为持久persistent节点(2.7.0及之前注册的是临时emperal节点),这样当server进程异常终止无法进入正常优雅下线流程时,如进程崩溃、强行kill -9等,导致zookeeper已失效持久节点无法清空,最终导致脏数据的出现。</p> <p dir="auto">解决及规避方法:</p> <ol dir="auto"> <li>上下线过程避免强行终止进程,保证让Dubbo进入优雅停机流程</li> <li>官方2.7.2版本将会<a href="https://github.com/apache/dubbo/pull/3824" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3824/hovercard">修复此问题</a>,预计在6月初发布</li> <li>对于已经产生的脏数据,考虑手动或ZK脚本予以清理,但此时要注意严格控制删选条件</li> <li>2.7.1版本增加配置:&lt;dubbo:provider dynamic="true"/&gt; 或&lt;dubbo:service dynamic="true"/&gt;</li> </ol>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.6 -&gt; 2.7.0</li> <li>Operating System version: mac</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>start provider and consumer with dubbo version 2.6.6, consumer can connect to provider</li> <li>just change the dubbo version in pom from 2.6.6 to 2.7.0, and then an exception occur</li> </ol> <p dir="auto">the provider code is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" @Override public String sayHello(String name) { System.out.println(&quot;[&quot; + new SimpleDateFormat(&quot;HH:mm:ss&quot;).format(new Date()) + &quot;] Hello &quot; + name + &quot;, request from consumer: &quot; + RpcContext.getContext().getRemoteAddress()); return &quot;Hello &quot; + name + &quot;, response from provider: &quot; + RpcContext.getContext().getLocalAddress(); }"><pre class="notranslate"><code class="notranslate"> @Override public String sayHello(String name) { System.out.println("[" + new SimpleDateFormat("HH:mm:ss").format(new Date()) + "] Hello " + name + ", request from consumer: " + RpcContext.getContext().getRemoteAddress()); return "Hello " + name + ", response from provider: " + RpcContext.getContext().getLocalAddress(); } </code></pre></div> <ol start="3" dir="auto"> <li></li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?<br> i can update the dubbo version without change any code.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">an exception occurs, and the exception is bellow:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="26/03/19 06:27:23:023 CST] DubboServerHandler-10.99.62.72:20880-thread-200 ERROR filter.ExceptionFilter: [DUBBO] Got unchecked and undeclared exception which called by 10.99.62.72. service: com.test.dubbo.DemoService, method: sayHello, exception: java.lang.NoSuchMethodError: com.alibaba.dubbo.rpc.RpcContext.getContext()Lcom/alibaba/dubbo/rpc/RpcContext;, dubbo version: 2.7.0, current host: 10.99.62.72 java.lang.NoSuchMethodError: com.alibaba.dubbo.rpc.RpcContext.getContext()Lcom/alibaba/dubbo/rpc/RpcContext; at com.test.dubbo.DemoServiceImpl.sayHello(DemoServiceImpl.java:31) at org.apache.dubbo.common.bytecode.Wrapper1.invokeMethod(Wrapper1.java) at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47) at org.apache.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:86) at org.apache.dubbo.config.invoker.DelegateProviderMetaDataInvoker.invoke(DelegateProviderMetaDataInvoker.java:56) at org.apache.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) at org.apache.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:63) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:88) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:79) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:78) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:138) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:39) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:108) at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:103) at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:200) at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51) at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)"><pre class="notranslate"><code class="notranslate">26/03/19 06:27:23:023 CST] DubboServerHandler-10.99.62.72:20880-thread-200 ERROR filter.ExceptionFilter: [DUBBO] Got unchecked and undeclared exception which called by 10.99.62.72. service: com.test.dubbo.DemoService, method: sayHello, exception: java.lang.NoSuchMethodError: com.alibaba.dubbo.rpc.RpcContext.getContext()Lcom/alibaba/dubbo/rpc/RpcContext;, dubbo version: 2.7.0, current host: 10.99.62.72 java.lang.NoSuchMethodError: com.alibaba.dubbo.rpc.RpcContext.getContext()Lcom/alibaba/dubbo/rpc/RpcContext; at com.test.dubbo.DemoServiceImpl.sayHello(DemoServiceImpl.java:31) at org.apache.dubbo.common.bytecode.Wrapper1.invokeMethod(Wrapper1.java) at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47) at org.apache.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:86) at org.apache.dubbo.config.invoker.DelegateProviderMetaDataInvoker.invoke(DelegateProviderMetaDataInvoker.java:56) at org.apache.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) at org.apache.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:63) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:88) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:79) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:78) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:138) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:39) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73) at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:108) at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:103) at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:200) at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51) at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) </code></pre></div>
0
<p dir="auto">gccgo crashes on the following program:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package a var _, _ = &lt;-chan int(n)"><pre class="notranslate"><span class="pl-k">package</span> a <span class="pl-k">var</span> <span class="pl-s1">_</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;-</span><span class="pl-k">chan</span> <span class="pl-smi">int</span>(<span class="pl-s1">n</span>)</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:3450 0x5e2224 Unsafe_type_conversion_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:3450 0x5fb6ca Call_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:9299 0x64de42 Temporary_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:487 0x61c5b7 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5862 0x64b65c Block_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:1836 0x61c5b7 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5862 0x61c763 Variable::get_init_block(Gogo*, Named_object*, Bvariable*) ../../gcc/go/gofrontend/gogo.cc:6426 0x624f57 Gogo::write_globals() ../../gcc/go/gofrontend/gogo.cc:1418"><pre class="notranslate"><code class="notranslate">go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:3450 0x5e2224 Unsafe_type_conversion_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:3450 0x5fb6ca Call_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:9299 0x64de42 Temporary_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:487 0x61c5b7 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5862 0x64b65c Block_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:1836 0x61c5b7 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5862 0x61c763 Variable::get_init_block(Gogo*, Named_object*, Bvariable*) ../../gcc/go/gofrontend/gogo.cc:6426 0x624f57 Gogo::write_globals() ../../gcc/go/gofrontend/gogo.cc:1418 </code></pre></div> <p dir="auto">gofrontend is on commit 81810917af7ba19e1f9f8efc8b1989f7d6419d30</p>
<p dir="auto">gccgo crashes on the following program:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package a func f() { _, _ = &lt;-chan int(n) }"><pre class="notranslate"><span class="pl-k">package</span> a <span class="pl-k">func</span> <span class="pl-en">f</span>() { <span class="pl-s1">_</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;-</span><span class="pl-k">chan</span> <span class="pl-smi">int</span>(<span class="pl-s1">n</span>) }</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:3450 0x5e2224 Unsafe_type_conversion_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:3450 0x5fb6ca Call_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:9299 0x64de42 Temporary_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:487 0x61c5b7 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5862 0x64b65c Block_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:1836 0x61c5b7 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5862 0x61ddac Function::build(Gogo*, Named_object*) ../../gcc/go/gofrontend/gogo.cc:5468 0x61f2c7 Named_object::get_backend(Gogo*, std::vector&lt;Bexpression*, std::allocator&lt;Bexpression*&gt; &gt;&amp;, std::vector&lt;Btype*, std::allocator&lt;Btype*&gt; &gt;&amp;, std::vector&lt;Bfunction*, std::allocator&lt;Bfunction*&gt; &gt;&amp;) ../../gcc/go/gofrontend/gogo.cc:7187 0x625532 Gogo::write_globals() ../../gcc/go/gofrontend/gogo.cc:1345"><pre class="notranslate"><code class="notranslate">go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:3450 0x5e2224 Unsafe_type_conversion_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:3450 0x5fb6ca Call_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:9299 0x64de42 Temporary_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:487 0x61c5b7 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5862 0x64b65c Block_statement::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/statements.cc:1836 0x61c5b7 Block::get_backend(Translate_context*) ../../gcc/go/gofrontend/gogo.cc:5862 0x61ddac Function::build(Gogo*, Named_object*) ../../gcc/go/gofrontend/gogo.cc:5468 0x61f2c7 Named_object::get_backend(Gogo*, std::vector&lt;Bexpression*, std::allocator&lt;Bexpression*&gt; &gt;&amp;, std::vector&lt;Btype*, std::allocator&lt;Btype*&gt; &gt;&amp;, std::vector&lt;Bfunction*, std::allocator&lt;Bfunction*&gt; &gt;&amp;) ../../gcc/go/gofrontend/gogo.cc:7187 0x625532 Gogo::write_globals() ../../gcc/go/gofrontend/gogo.cc:1345 </code></pre></div> <p dir="auto">gofrontend is on commit 81810917af7ba19e1f9f8efc8b1989f7d6419d30</p>
1
<h3 dir="auto">Describe the issue:</h3> <p dir="auto">input: np.arange(1.0125, 1.1, 0.0125)<br> output is: array([1.0125, 1.025 , 1.0375, 1.05 , 1.0625, 1.075 , 1.0875, 1.1 ])<br> output expected: array([1.0125, 1.025 , 1.0375, 1.05 , 1.0625, 1.075 , 1.0875 ])</p> <h3 dir="auto">Reproduce the code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#They do not have the same behavior np.arange(0.0125,0.1,0.0125) np.arange(1.0125,1.1,0.0125)"><pre class="notranslate"><span class="pl-c">#They do not have the same behavior</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0.0125</span>,<span class="pl-c1">0.1</span>,<span class="pl-c1">0.0125</span>) <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">1.0125</span>,<span class="pl-c1">1.1</span>,<span class="pl-c1">0.0125</span>)</pre></div> <h3 dir="auto">Error message:</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="No error occurs, but the output is not as expected since there is one array element to much."><pre class="notranslate">No error occurs, but the output is not as expected since there is one array element to much.</pre></div> <h3 dir="auto">NumPy/Python version information:</h3> <p dir="auto">numpy.<strong>version</strong><br> '1.21.5'<br> sys.version<br> '3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]'</p>
<p dir="auto">Let me show you the issue directly:</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto">np.arange(2114.8,2114.8+.05,.05) produces array([2114.8 , 2114.85])</p> <p dir="auto">np.arange(2114.8,2114.8+1.,1.) produces array([2114.8])</p> <p dir="auto">dont understand why they return arrays of different lengths.</p>
1
<p dir="auto">When compiling the latest version with CUDA, the linker gives the following error:</p> <p dir="auto"><code class="notranslate">/usr/bin/ld: cannot find -llib64</code></p> <p dir="auto">This library is nonexistent on Debian and OpenSC compiles fine when removing this.</p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.0.0 - pre(Latest - master) compiled with GSTREAMER support.</li> <li>Operating System / Platform =&gt; Ubuntu 18.04 64 Bit</li> <li>Gstreamer =&gt; GStreamer 1.14.1</li> <li>Libv4L/Libv4L2 =&gt; 1.14.2</li> <li>Compiler =&gt; gcc version 7.3.0 with python 2.7.15rc1</li> <li>Programming Language =&gt; Python</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto"><strong>My UVC camera displayed as <code class="notranslate">/dev/video1</code> below:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="v4l2-ctl --list-devices HP Truevision HD: HP Truevision (usb-0000:00:10.0-1): /dev/video0 USB2.0 PC CAMERA (usb-0000:00:10.0-3): /dev/video1"><pre class="notranslate"><code class="notranslate">v4l2-ctl --list-devices HP Truevision HD: HP Truevision (usb-0000:00:10.0-1): /dev/video0 USB2.0 PC CAMERA (usb-0000:00:10.0-3): /dev/video1 </code></pre></div> <p dir="auto"><strong>have only one valid format i.e. <em>MJPG</em> :</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="v4l2-ctl -d /dev/video1 --list-formats-ext ioctl: VIDIOC_ENUM_FMT Index : 0 Type : Video Capture Pixel Format: 'MJPG' (compressed) Name : Motion-JPEG Size: Discrete 640x480 Interval: Discrete 0.017s (60.000 fps) Interval: Discrete 0.033s (30.000 fps) Interval: Discrete 0.067s (15.000 fps) Interval: Discrete 0.200s (5.000 fps) Size: Discrete 352x288 Interval: Discrete 0.017s (60.000 fps) Interval: Discrete 0.033s (30.000 fps) Interval: Discrete 0.067s (15.000 fps) Interval: Discrete 0.200s (5.000 fps)"><pre class="notranslate"><code class="notranslate">v4l2-ctl -d /dev/video1 --list-formats-ext ioctl: VIDIOC_ENUM_FMT Index : 0 Type : Video Capture Pixel Format: 'MJPG' (compressed) Name : Motion-JPEG Size: Discrete 640x480 Interval: Discrete 0.017s (60.000 fps) Interval: Discrete 0.033s (30.000 fps) Interval: Discrete 0.067s (15.000 fps) Interval: Discrete 0.200s (5.000 fps) Size: Discrete 352x288 Interval: Discrete 0.017s (60.000 fps) Interval: Discrete 0.033s (30.000 fps) Interval: Discrete 0.067s (15.000 fps) Interval: Discrete 0.200s (5.000 fps) </code></pre></div> <p dir="auto"><strong>I'm trying to open its output in OpenCV through Gstreamer pipeline using python as:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2 print cv2.__version__ camera = cv2.VideoCapture('v4l2src device=/dev/video1 ! jpegdec ! videoconvert ! appsink', cv2.CAP_GSTREAMER ) while(1): retval, im = camera.read() cv2.imshow(&quot;image&quot;, im) k = cv2.waitKey(1) &amp; 0xff if k == 27: break camera.release() "><pre class="notranslate"><code class="notranslate">import cv2 print cv2.__version__ camera = cv2.VideoCapture('v4l2src device=/dev/video1 ! jpegdec ! videoconvert ! appsink', cv2.CAP_GSTREAMER ) while(1): retval, im = camera.read() cv2.imshow("image", im) k = cv2.waitKey(1) &amp; 0xff if k == 27: break camera.release() </code></pre></div> <p dir="auto"><strong>When executed, this results in :</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="4.0.0-pre Segmentation fault (core dumped) "><pre class="notranslate"><code class="notranslate">4.0.0-pre Segmentation fault (core dumped) </code></pre></div> <p dir="auto"><strong>But on the other hand when executed in terminal directly. This executed successfully (with proper display output):</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="gst-launch-1.0 v4l2src device=/dev/video1 ! jpegdec ! videoconvert ! autovideosink -v Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = image/jpeg, width=(int)640, height=(int)480, framerate=(fraction)60/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)NULL, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:sink: caps = image/jpeg, width=(int)640, height=(int)480, framerate=(fraction)60/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)NULL, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 ERROR: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: Output window was closed Additional debug info: xvimagesink.c(555): gst_xv_image_sink_handle_xevents (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage Execution ended after 0:00:07.060640506 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ..."><pre class="notranslate"><code class="notranslate">gst-launch-1.0 v4l2src device=/dev/video1 ! jpegdec ! videoconvert ! autovideosink -v Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = image/jpeg, width=(int)640, height=(int)480, framerate=(fraction)60/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)NULL, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:sink: caps = image/jpeg, width=(int)640, height=(int)480, framerate=(fraction)60/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)NULL, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)640, height=(int)480, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1 ERROR: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: Output window was closed Additional debug info: xvimagesink.c(555): gst_xv_image_sink_handle_xevents (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage Execution ended after 0:00:07.060640506 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ... </code></pre></div> <p dir="auto"><strong>Also Working smoothly on Guvcview :</strong><br> <em>Verbose Output</em> :<br> <a href="https://github.com/opencv/opencv/files/2509885/guvcview_verbose.txt">guvcview_verbose.txt</a></p> <h4 dir="auto">Error Debugged output:</h4> <p dir="auto">Strace output log:<br> <a href="https://github.com/opencv/opencv/files/2509752/strace.txt">strace.txt</a></p> <p dir="auto">GDB output log:<br> <a href="https://github.com/opencv/opencv/files/2509777/gdb_log.txt">gdb_log.txt</a></p> <p dir="auto">I need to run Computer Vision algorithm on this camera output on this machine, Any kind of help is appreciated. Thankyou .</p> <h3 dir="auto">Update:</h3> <p dir="auto">Working in windows 10 even without gstreamer support. But not in Ubuntu :(</p>
0
<p dir="auto">This does not happen every time it is idea but it mostly crashes at least once a day. It gets slow and then crashes. I've been using it exclusively to write elm code so I don't know if it has to do with the plugin.</p> <p dir="auto">How can I get detailed log next time it happens?</p>
<p dir="auto">Ubuntu 12.04, VSCode 0.10.1</p> <p dir="auto">Several times VS Code has become unresponsive overnight on the above configuration (locked). Here is the program output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ code . bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell &lt;--- Last few GCs ---&gt; 173527197 ms: Scavenge 1397.0 (1457.6) -&gt; 1397.0 (1457.6) MB, 1.8 / 0 ms [allocation failure] [incremental marking delaying mark-sweep]. 173527199 ms: Scavenge 1397.0 (1457.6) -&gt; 1397.0 (1457.6) MB, 1.9 / 0 ms [allocation failure] [incremental marking delaying mark-sweep]. 173529040 ms: Mark-sweep 1397.0 (1457.6) -&gt; 1396.9 (1457.6) MB, 1841.7 / 98 ms [last resort gc]. 173530775 ms: Mark-sweep 1396.9 (1457.6) -&gt; 1396.1 (1457.6) MB, 1735.0 / 5 ms [last resort gc]. &lt;--- JS stacktrace ---&gt; ==== JS stack trace ========================================= Security context: 0x8a48933a859 &lt;String[7]: file://&gt; 1: _completed [file:////home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.main.js:~1544] [pc=0x23ff9b465433] (this=0x1a37262790b1 &lt;JS Object&gt;,e=0x1cd36e9041b9 &lt;undefined&gt;) 2: arguments adaptor frame: 0-&gt;1 6: bound [native v8natives.js:1208] [pc=0x23ff99a26270] (this=0x8a489346089 &lt;JS Global Object&gt;) ==== Details =============================... Failed to get crash dump id. Report Id: events.js:141 throw er; // Unhandled 'error' event ^ Error: channel closed at process.target.send (internal/child_process.js:509:16) at Console.console.error (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/bootstrap.js:5:937) at process.&lt;anonymous&gt; (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/bootstrap.js:5:1340) at emitOne (events.js:77:13) at process.emit (events.js:169:7) at process._fatalException (node.js:223:26) [VS Code]: detected unresponsive"><pre class="notranslate"><code class="notranslate">$ code . bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell &lt;--- Last few GCs ---&gt; 173527197 ms: Scavenge 1397.0 (1457.6) -&gt; 1397.0 (1457.6) MB, 1.8 / 0 ms [allocation failure] [incremental marking delaying mark-sweep]. 173527199 ms: Scavenge 1397.0 (1457.6) -&gt; 1397.0 (1457.6) MB, 1.9 / 0 ms [allocation failure] [incremental marking delaying mark-sweep]. 173529040 ms: Mark-sweep 1397.0 (1457.6) -&gt; 1396.9 (1457.6) MB, 1841.7 / 98 ms [last resort gc]. 173530775 ms: Mark-sweep 1396.9 (1457.6) -&gt; 1396.1 (1457.6) MB, 1735.0 / 5 ms [last resort gc]. &lt;--- JS stacktrace ---&gt; ==== JS stack trace ========================================= Security context: 0x8a48933a859 &lt;String[7]: file://&gt; 1: _completed [file:////home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.main.js:~1544] [pc=0x23ff9b465433] (this=0x1a37262790b1 &lt;JS Object&gt;,e=0x1cd36e9041b9 &lt;undefined&gt;) 2: arguments adaptor frame: 0-&gt;1 6: bound [native v8natives.js:1208] [pc=0x23ff99a26270] (this=0x8a489346089 &lt;JS Global Object&gt;) ==== Details =============================... Failed to get crash dump id. Report Id: events.js:141 throw er; // Unhandled 'error' event ^ Error: channel closed at process.target.send (internal/child_process.js:509:16) at Console.console.error (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/bootstrap.js:5:937) at process.&lt;anonymous&gt; (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/bootstrap.js:5:1340) at emitOne (events.js:77:13) at process.emit (events.js:169:7) at process._fatalException (node.js:223:26) [VS Code]: detected unresponsive </code></pre></div> <p dir="auto">This has never occurred with Atom.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=fenrir" rel="nofollow">Donny A. Wijaya</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5892?redirect=false" rel="nofollow">SPR-5892</a></strong> and commented</p> <p dir="auto">Add ability to merge multiple lists/maps/sets that share the same id into a map/list (through the use of flag).</p> <p dir="auto">Some frameworks require developers to provide a list of mapping location (inside classpath). This would not be a problem if everything is bundled in a war. But in modular deployment, we usually have the mapping files to be packaged inside jars where they belong. This new improvement would remove the responsibility to add every mapping file located in every new jar we deploy, into the the a mapping list resides in the main context file of the application.</p> <p dir="auto">For example:</p> <p dir="auto">JAR_A has a collectionContext.xml with a map/list with id "myList"<br> JAR_B has a collectionContext.xml with a map/list with id "myList"<br> WAR has an applicationContext.xml that imports classpath*:**/collectionContext.xml</p> <p dir="auto">This feature would allow the two maps to be merged into a map with id "myList".</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="398100553" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11189" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11189/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11189">#11189</a> Introduce 'merge' attribute for util namespace collection elements (<em><strong>"Cloned to"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kamionowski" rel="nofollow">Marcin Kamionowski</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9197?redirect=false" rel="nofollow">SPR-9197</a></strong> and commented</p> <p dir="auto">RestTemplate cannot return HTTP response code 308 because it's not defined in the HttpStatus enumeration.<br> It's required for resumable POST/PUT HTTP requests in HTTP/1.0 (<a href="http://code.google.com/p/gears/wiki/ResumableHttpRequestsProposal" rel="nofollow">http://code.google.com/p/gears/wiki/ResumableHttpRequestsProposal</a>)</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="398116423" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13626" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13626/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13626">#13626</a> Add the ability to Scan Packages for JAXB Marshalling (java example provided) (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto">Reported also in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42008671" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/282" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/282/hovercard" href="https://github.com/mwaskom/seaborn/issues/282">mwaskom/seaborn#282</a></p> <p dir="auto">Environment: OS X Mavericks<br> Anaconda python distribution (python 2.7.8)<br> IPython 2.2.0<br> Seaborn 0.4</p> <p dir="auto">In an ipython terminal or qtconsole, it works with running</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="n [1]: %matplotlib Using matplotlib backend: MacOSX In [2]: from pylab import * In [3]: plot(range(5)) Out[3]: [&lt;matplotlib.lines.Line2D at 0x10d73dd50&gt;]"><pre class="notranslate">n [1]: %matplotlib Using matplotlib backend: MacOSX In [2]: from pylab import <span class="pl-k">*</span> In [3]: plot(range(5)) Out[3]: [<span class="pl-k">&lt;</span>matplotlib.lines.Line2D at 0x10d73dd<span class="pl-k">50&gt;</span>]</pre></div> <p dir="auto">However, after importing seaborn, the macosx backend breaks</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [4]: import seaborn as sns In [5]: plot(range(5)) Out[5]: [&lt;matplotlib.lines.Line2D at 0x10c10eb90&gt;] In [6]: Traceback (most recent call last): File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/artist.py&quot;, line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/figure.py&quot;, line 1079, in draw func(*args) File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/artist.py&quot;, line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/axes/_base.py&quot;, line 2092, in draw a.draw(renderer) File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/artist.py&quot;, line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/axis.py&quot;, line 1105, in draw renderer) File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/axis.py&quot;, line 1054, in _get_tick_bboxes extent = tick.label1.get_window_extent(renderer) File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/text.py&quot;, line 741, in get_window_extent bbox, info, descent = self._get_layout(self._renderer) File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/text.py&quot;, line 311, in _get_layout ismath=False) File &quot;/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py&quot;, line 166, in get_text_width_height_descent six.text_type(s), family, size, weight, style) TypeError: bad argument type for built-in operation"><pre class="notranslate">In [4]: import seaborn as sns In [5]: plot(range(5)) Out[5]: [<span class="pl-k">&lt;</span>matplotlib.lines.Line2D at 0x10c10eb<span class="pl-k">90&gt;</span>] In [6]: Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/artist.py<span class="pl-pds">"</span></span>, line 59, <span class="pl-k">in</span> draw_wrapper draw(artist, renderer, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/figure.py<span class="pl-pds">"</span></span>, line 1079, <span class="pl-k">in</span> draw func(<span class="pl-k">*</span>args) File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/artist.py<span class="pl-pds">"</span></span>, line 59, <span class="pl-k">in</span> draw_wrapper draw(artist, renderer, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/axes/_base.py<span class="pl-pds">"</span></span>, line 2092, <span class="pl-k">in</span> draw a.draw(renderer) File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/artist.py<span class="pl-pds">"</span></span>, line 59, <span class="pl-k">in</span> draw_wrapper draw(artist, renderer, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/axis.py<span class="pl-pds">"</span></span>, line 1105, <span class="pl-k">in</span> draw renderer) File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/axis.py<span class="pl-pds">"</span></span>, line 1054, <span class="pl-k">in</span> _get_tick_bboxes extent = tick.label1.get_window_extent(renderer) File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/text.py<span class="pl-pds">"</span></span>, line 741, <span class="pl-k">in</span> get_window_extent bbox, info, descent = self._get_layout(self._renderer) File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/text.py<span class="pl-pds">"</span></span>, line 311, <span class="pl-k">in</span> _get_layout ismath=False) File <span class="pl-s"><span class="pl-pds">"</span>/Users/zhangxiaowei/anaconda/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py<span class="pl-pds">"</span></span>, line 166, <span class="pl-k">in</span> get_text_width_height_descent six.text_type(s), family, size, weight, style) TypeError: bad argument <span class="pl-c1">type</span> <span class="pl-k">for</span> built-in operation</pre></div> <p dir="auto">Interestingly, using <code class="notranslate">%matplotlib inline</code> in an IPython notebook works fine. Also, using another backend such as "Qt4Agg" works fine in IPython terminal or qtconsole.</p> <p dir="auto">After downgrading matplotlib to 1.3.1, the issue goes away.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">axes3D.zaxis.set_major_formatter(mpl.dates.DateFormatter("%Y/%m")) couldn't show datetime axis correctly. It report ValueError: year is out of range.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib as mpl from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt import pandas as pd from datetime import datetime import time mpl.rcParams['legend.fontsize'] = 10 fig = plt.figure() ax = fig.gca(projection='3d') SJ = pd.to_datetime(['2017/1/1 0:03:36','2017/1/1 0:33:36','2017/1/1 1:03:36']) for i in np.arange(0, 3, 1): x=[ii for ii in np.arange(0,20,1)] y=[np.sin(ii) for ii in np.arange(0,20,1)] z= SJ[i].timestamp() print(str(z)+':'+str(datetime.fromtimestamp(z))) # print(datetime.fromordinal(int(z/60/24))) ax.plot(x, y, z) ax.zaxis.set_major_formatter(mpl.dates.DateFormatter(&quot;%Y/%m/%d/%H&quot;)) plt.show()"><pre class="notranslate"><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">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-v">Axes3D</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">from</span> <span class="pl-s1">datetime</span> <span class="pl-k">import</span> <span class="pl-s1">datetime</span> <span class="pl-k">import</span> <span class="pl-s1">time</span> <span class="pl-s1">mpl</span>.<span class="pl-s1">rcParams</span>[<span class="pl-s">'legend.fontsize'</span>] <span class="pl-c1">=</span> <span class="pl-c1">10</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-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">gca</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>) <span class="pl-v">SJ</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">to_datetime</span>([<span class="pl-s">'2017/1/1 0:03:36'</span>,<span class="pl-s">'2017/1/1 0:33:36'</span>,<span class="pl-s">'2017/1/1 1:03:36'</span>]) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>): <span class="pl-s1">x</span><span class="pl-c1">=</span>[<span class="pl-s1">ii</span> <span class="pl-k">for</span> <span class="pl-s1">ii</span> <span class="pl-c1">in</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">20</span>,<span class="pl-c1">1</span>)] <span class="pl-s1">y</span><span class="pl-c1">=</span>[<span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-s1">ii</span>) <span class="pl-k">for</span> <span class="pl-s1">ii</span> <span class="pl-c1">in</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">20</span>,<span class="pl-c1">1</span>)] <span class="pl-s1">z</span><span class="pl-c1">=</span> <span class="pl-v">SJ</span>[<span class="pl-s1">i</span>].<span class="pl-en">timestamp</span>() <span class="pl-en">print</span>(<span class="pl-en">str</span>(<span class="pl-s1">z</span>)<span class="pl-c1">+</span><span class="pl-s">':'</span><span class="pl-c1">+</span><span class="pl-en">str</span>(<span class="pl-s1">datetime</span>.<span class="pl-en">fromtimestamp</span>(<span class="pl-s1">z</span>))) <span class="pl-c"># print(datetime.fromordinal(int(z/60/24)))</span> <span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span>) <span class="pl-s1">ax</span>.<span class="pl-s1">zaxis</span>.<span class="pl-en">set_major_formatter</span>(<span class="pl-s1">mpl</span>.<span class="pl-s1">dates</span>.<span class="pl-v">DateFormatter</span>(<span class="pl-s">"%Y/%m/%d/%H"</span>)) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1483200216.0:2017-01-01 00:03:36 1483202016.0:2017-01-01 00:33:36 1483203816.0:2017-01-01 01:03:36 Exception in Tkinter callback Traceback (most recent call last): File &quot;C:\Program Files\Anaconda3\lib\tkinter\__init__.py&quot;, line 1550, in __call__ return self.func(*args) File &quot;C:\Program Files\Anaconda3\lib\site-packages\matplotlib\backends\backend_tkagg.py&quot;, line 280, in resize self.show() File &quot;C:\Program Files\Anaconda3\lib\site-packages\matplotlib\backends\backend_tkagg.py&quot;, line 351, in draw FigureCanvasAgg.draw(self) File &quot;C:\Program Files\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py&quot;, line 464, in draw self.figure.draw(self.renderer) File &quot;C:\Program Files\Anaconda3\lib\site-packages\matplotlib\artist.py&quot;, line 63, in draw_wrapper draw(artist, renderer, *args, **kwargs) File &quot;C:\Program Files\Anaconda3\lib\site-packages\matplotlib\figure.py&quot;, line 1144, in draw renderer, self, dsu, self.suppressComposite) File &quot;C:\Program Files\Anaconda3\lib\site-packages\matplotlib\image.py&quot;, line 139, in _draw_list_compositing_images a.draw(renderer) File &quot;C:\Program Files\Anaconda3\lib\site-packages\mpl_toolkits\mplot3d\axes3d.py&quot;, line 290, in draw ax.draw(renderer) File &quot;C:\Program Files\Anaconda3\lib\site-packages\mpl_toolkits\mplot3d\axis3d.py&quot;, line 258, in draw for i, val in enumerate(majorLocs)] File &quot;C:\Program Files\Anaconda3\lib\site-packages\mpl_toolkits\mplot3d\axis3d.py&quot;, line 258, in &lt;listcomp&gt; for i, val in enumerate(majorLocs)] File &quot;C:\Program Files\Anaconda3\lib\site-packages\matplotlib\dates.py&quot;, line 466, in __call__ dt = num2date(x, self.tz) File &quot;C:\Program Files\Anaconda3\lib\site-packages\matplotlib\dates.py&quot;, line 401, in num2date return _from_ordinalf(x, tz) File &quot;C:\Program Files\Anaconda3\lib\site-packages\matplotlib\dates.py&quot;, line 254, in _from_ordinalf dt = datetime.datetime.fromordinal(ix).replace(tzinfo=UTC) ValueError: year is out of range [Finished in 4.8s]"><pre class="notranslate"><code class="notranslate">1483200216.0:2017-01-01 00:03:36 1483202016.0:2017-01-01 00:33:36 1483203816.0:2017-01-01 01:03:36 Exception in Tkinter callback Traceback (most recent call last): File "C:\Program Files\Anaconda3\lib\tkinter\__init__.py", line 1550, in __call__ return self.func(*args) File "C:\Program Files\Anaconda3\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 280, in resize self.show() File "C:\Program Files\Anaconda3\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 351, in draw FigureCanvasAgg.draw(self) File "C:\Program Files\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py", line 464, in draw self.figure.draw(self.renderer) File "C:\Program Files\Anaconda3\lib\site-packages\matplotlib\artist.py", line 63, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "C:\Program Files\Anaconda3\lib\site-packages\matplotlib\figure.py", line 1144, in draw renderer, self, dsu, self.suppressComposite) File "C:\Program Files\Anaconda3\lib\site-packages\matplotlib\image.py", line 139, in _draw_list_compositing_images a.draw(renderer) File "C:\Program Files\Anaconda3\lib\site-packages\mpl_toolkits\mplot3d\axes3d.py", line 290, in draw ax.draw(renderer) File "C:\Program Files\Anaconda3\lib\site-packages\mpl_toolkits\mplot3d\axis3d.py", line 258, in draw for i, val in enumerate(majorLocs)] File "C:\Program Files\Anaconda3\lib\site-packages\mpl_toolkits\mplot3d\axis3d.py", line 258, in &lt;listcomp&gt; for i, val in enumerate(majorLocs)] File "C:\Program Files\Anaconda3\lib\site-packages\matplotlib\dates.py", line 466, in __call__ dt = num2date(x, self.tz) File "C:\Program Files\Anaconda3\lib\site-packages\matplotlib\dates.py", line 401, in num2date return _from_ordinalf(x, tz) File "C:\Program Files\Anaconda3\lib\site-packages\matplotlib\dates.py", line 254, in _from_ordinalf dt = datetime.datetime.fromordinal(ix).replace(tzinfo=UTC) ValueError: year is out of range [Finished in 4.8s] </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating System: windows 7 x64</li> <li>Matplotlib Version: 2.02</li> <li>Python Version:python 3.5.2 |Anaconda 4.2.0 (64bit)| [MCS v.1900 64 bit ] on win32</li> <li>Jupyter Version (if applicable):</li> <li>Other Libraries:</li> </ul>
0
<h2 dir="auto">Bug Report</h2> <p dir="auto">Postgresql database + ShardingSphere using the following SQL times wrong: nested exception is org.postgresql.util.PSQLException: 未设定参数值 5 的内容。</p> <p dir="auto">The sample:<br> INSERT INTO xxx(c1,c2,c3,c4,c5)VALUES (#{c1},#{c2},#{c3},#{c4},lower(#{c5}))<br> ON conflict(id) DO<br> UPDATE SET c1=#{c1},appdes=#{c2},c4=lower(#{c5})</p> <p dir="auto">Through the debug code, is a postgresql parse SQL syntax tree, unable to properly resolve the insert at the back of the parameters, lead to the JDBC insert data, tip missing parameters</p>
<p dir="auto">I'll refactor sharding-transaction-2pc-xa, here is the detail design, please feel free to give me some advices.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8317649/50502306-3b240080-0a99-11e9-9518-b98e4da3bd43.png"><img src="https://user-images.githubusercontent.com/8317649/50502306-3b240080-0a99-11e9-9518-b98e4da3bd43.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">changes</h3> <ul dir="auto"> <li>faced to XA DataSource to handle XA Connection instead of AtomikosDataSourceBean</li> <li>adapt Connection to XAConnection if needed</li> <li>Get XAResource, then inject it into XA transactionManager if needed</li> <li>Add ShardingTransactionAPI to handle all transaction operation, this can be used in other transaction type</li> </ul>
0
<p dir="auto">Hi all, At the moment I am trying to scan and scroll my ES index to export all the data, but I noticed that not always all the documents are returned. In other words ES says I have 1.115.857 documents in my index, but my export contains 1.049.191 documents. Testing with an index with up to 900.000 document is working fine. Somebody that can explain this behavior?</p> <p dir="auto">ES is running on a CentOS machine with 6GB of RAM with a ES_HEAP_SIZE of 3GB.</p>
<p dir="auto">It would be useful to be able to query nested objects with the query_string.</p> <p dir="auto">For example consider the following document structure:</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/graph/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/graph">@graph</a><br> ------------- <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Drug/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Drug">@Drug</a><br> ------------------- <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/value/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/value">@value</a></p> <p dir="auto">The query could look like this:<br> "query": {<br> "query_string" : {<br> "fields" : ["<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/graph/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/graph">@graph</a>*"]<br> "query" :"*<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/value/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/value">@value</a>:paracetamol"<br> }<br> }<br> It can be laborious to explicitly specify nested fields when the document is heavily nested.<br> What do you think?</p>
0
<h3 dir="auto">Expected Behaviour</h3> <p dir="auto">Body of a 412 response should be included on all Platforms.<br> (Works on OS X, but not on linux system)</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from flask import Flask app = Flask(__name__) @app.route('/') def r(): return 'This should be visible\n', 412 app.run('0.0.0.0', port=8080)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">'/'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">r</span>(): <span class="pl-k">return</span> <span class="pl-s">'This should be visible<span class="pl-cce">\n</span>'</span>, <span class="pl-c1">412</span> <span class="pl-s1">app</span>.<span class="pl-en">run</span>(<span class="pl-s">'0.0.0.0'</span>, <span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">8080</span>)</pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl localhost:8080 # Expected: # &gt; 127.0.0.1 - - [03/Jan/2018 17:00:15] &quot;GET / HTTP/1.1&quot; 412 - # &gt; This should be visible"><pre class="notranslate">curl localhost:8080 <span class="pl-c"><span class="pl-c">#</span> Expected:</span> <span class="pl-c"><span class="pl-c">#</span> &gt; 127.0.0.1 - - [03/Jan/2018 17:00:15] "GET / HTTP/1.1" 412 -</span> <span class="pl-c"><span class="pl-c">#</span> &gt; This should be visible</span></pre></div> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">The response does have an empty body if executed on a linux system. (docker-image python)</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="curl localhost:8080 # Actual: # &gt; 127.0.0.1 - - [03/Jan/2018 17:00:15] &quot;GET / HTTP/1.1&quot; 412 -"><pre class="notranslate">curl localhost:8080 <span class="pl-c"><span class="pl-c">#</span> Actual:</span> <span class="pl-c"><span class="pl-c">#</span> &gt; 127.0.0.1 - - [03/Jan/2018 17:00:15] "GET / HTTP/1.1" 412 -</span></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Python version: 3.6.4</li> <li>Flask version: 0.12.2</li> <li>Werkzeug version: 0.14.1</li> </ul>
<p dir="auto"><strong>Problem:</strong><br> Creating a custom command for the flask CLI with an import exception is silent, even when running the command, e.g. <code class="notranslate">start</code> with <code class="notranslate">flask start</code> directly.<br> This makes it difficult to debug import errors in changing environments, as you're left with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: No such command &quot;start&quot;."><pre class="notranslate"><code class="notranslate">Error: No such command "start". </code></pre></div> <p dir="auto">without further explanation.</p> <p dir="auto"><strong>Origin:</strong><br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/pallets/flask/blob/d694eb443a6243e248df974e9cd64defb591bf38/src/flask/cli.py#L541-L546">flask/src/flask/cli.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 541 to 546 in <a data-pjax="true" class="commit-tease-sha" href="/pallets/flask/commit/d694eb443a6243e248df974e9cd64defb591bf38">d694eb4</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="L541" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="541"></td> <td id="LC541" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">try</span>: </td> </tr> <tr class="border-0"> <td id="L542" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="542"></td> <td id="LC542" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">rv</span> <span class="pl-c1">=</span> <span class="pl-s1">info</span>.<span class="pl-en">load_app</span>().<span class="pl-s1">cli</span>.<span class="pl-en">get_command</span>(<span class="pl-s1">ctx</span>, <span class="pl-s1">name</span>) </td> </tr> <tr class="border-0"> <td id="L543" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="543"></td> <td id="LC543" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">rv</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: </td> </tr> <tr class="border-0"> <td id="L544" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="544"></td> <td id="LC544" 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">rv</span> </td> </tr> <tr class="border-0"> <td id="L545" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="545"></td> <td id="LC545" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">except</span> <span class="pl-v">NoAppException</span>: </td> </tr> <tr class="border-0"> <td id="L546" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="546"></td> <td id="LC546" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">pass</span> </td> </tr> </tbody></table> </div> </div> <br> <code class="notranslate">NoAppException</code> is caught silently with a <code class="notranslate">pass</code>, even though <code class="notranslate">get_command</code> seems to only be used to execute a single command rather than an entire command listing.<br> However, even the command listing of <code class="notranslate">list_commands</code> explicitly prints the traceback with <code class="notranslate">traceback.print_exc()</code>.<br> Why that is not done in <code class="notranslate">get_command</code> is not clear to me at this point.<p></p>
0
<p dir="auto">Per conversation in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20774554" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2507" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/2507/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/2507">#2507</a>, IsotonicRegression appears to have regressed due to commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scikit-learn/scikit-learn/commit/a9ea55fb404ba3a2411afa7a329f69eda67ca86c/hovercard" href="https://github.com/scikit-learn/scikit-learn/commit/a9ea55fb404ba3a2411afa7a329f69eda67ca86c"><tt>a9ea55f</tt></a>.</p> <p dir="auto"><a href="http://nbviewer.ipython.org/urls/gist.githubusercontent.com/mjbommar/74fcefdcd0f2b1a5f708/raw/4742691db799101091598922cd0808f1eb5f07f2/isotonic_test_case_20150129.json" rel="nofollow">This IPython notebook</a> demonstrates the failure on HEAD.</p> <p dir="auto">I tested the following two commits with the notebook:</p> <ul dir="auto"> <li> <p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scikit-learn/scikit-learn/commit/d255866c667b74801b68e828b6fb5a769c531662/hovercard" href="https://github.com/scikit-learn/scikit-learn/commit/d255866c667b74801b68e828b6fb5a769c531662"><tt>d255866</tt></a>: no difference, SUCCESS</p> </li> <li> <p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scikit-learn/scikit-learn/commit/a9ea55fb404ba3a2411afa7a329f69eda67ca86c/hovercard" href="https://github.com/scikit-learn/scikit-learn/commit/a9ea55fb404ba3a2411afa7a329f69eda67ca86c"><tt>a9ea55f</tt></a>: difference, FAILURE</p> <p dir="auto">In other words, I think we can blame the switch for <code class="notranslate">interp1d</code> from "linear" to "slinear"; first thought is that 1-d spline "slinear" matrix formulation is ill-posed for x-ties, whereas the piecewise "linear" implementation is unaffected?</p> </li> </ul> <p dir="auto">Small additional note: confirmed failure with test case where x-values are all non-zero, e.g., <code class="notranslate">[1, 1, 2, 3, 4]</code> instead of <code class="notranslate">[0, 0, 1, 2, 3]</code>, so <code class="notranslate">x=0</code> isn't part of the cause.</p>
<p dir="auto">Since we're now using upstream numpydoc, it should be fairly easy to fix the remaining errors in building the docs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/ubuntu/scikit-learn/doc/modules/cross_validation.rst:287: WARNING: undefined label: time_series_cv (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/cross_validation.rst:287: WARNING: undefined label: group_cv (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/covariance/outlier_detection.py:docstring of sklearn.covariance.EllipticEnvelope.correct_covariance:4: WARNING: citation not found: Rouseeuw1984 /home/ubuntu/scikit-learn/sklearn/covariance/outlier_detection.py:docstring of sklearn.covariance.EllipticEnvelope.reweight_covariance:4: WARNING: citation not found: Rouseeuw1984 /home/ubuntu/scikit-learn/sklearn/covariance/robust_covariance.py:docstring of sklearn.covariance.MinCovDet.correct_covariance:4: WARNING: citation not found: Rouseeuw1984 /home/ubuntu/scikit-learn/sklearn/covariance/robust_covariance.py:docstring of sklearn.covariance.MinCovDet.reweight_covariance:4: WARNING: citation not found: Rouseeuw1984 /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.linear_model.RandomizedLasso.rst:17: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/linear_model/randomized_l1.py:docstring of sklearn.linear_model.RandomizedLasso:25: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/linear_model/randomized_l1.py:docstring of sklearn.linear_model.RandomizedLasso:153: WARNING: undefined label: sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.linear_model.RandomizedLogisticRegression.rst:17: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/linear_model/randomized_l1.py:docstring of sklearn.linear_model.RandomizedLogisticRegression:27: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/linear_model/randomized_l1.py:docstring of sklearn.linear_model.RandomizedLogisticRegression:138: WARNING: undefined label: sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.linear_model.lasso_stability_path.rst:11: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/utils/deprecation.py:docstring of sklearn.linear_model.lasso_stability_path:67: WARNING: undefined label: sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.mixture.VBGMM.rst:22: WARNING: undefined label: vbgmm (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_search.py:docstring of sklearn.model_selection.GridSearchCV:46: WARNING: undefined label: multivalued_scorer_wrapping (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_search.py:docstring of sklearn.model_selection.RandomizedSearchCV:61: WARNING: undefined label: multivalued_scorer_wrapping (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_validation.py:docstring of sklearn.model_selection.cross_validate:42: WARNING: undefined label: multivalued_scorer_wrapping (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_validation.py:docstring of sklearn.model_selection.permutation_test_score:38: WARNING: undefined label: _scoring_parameter (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_validation.py:docstring of sklearn.model_selection.permutation_test_score:38: WARNING: undefined label: _scoring (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.neighbors.LSHForest.rst:21: WARNING: undefined label: approximate_nearest_neighbors (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/neighbors/lof.py:docstring of sklearn.neighbors.LocalOutlierFactor:78: WARNING: undefined label: sklearn.metrics.pairwise.pairwise_distances (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/grid_search.rst:87: WARNING: undefined label: sphx_glr_auto_examples_model_selection_plot_multi_metric_evaluation (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/grid_search.rst:186: WARNING: undefined label: sphx_glr_auto_examples_model_selection_plot_multi_metric_evaluation (if the link has no caption the label must precede a section header)"><pre class="notranslate"><code class="notranslate">/home/ubuntu/scikit-learn/doc/modules/cross_validation.rst:287: WARNING: undefined label: time_series_cv (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/cross_validation.rst:287: WARNING: undefined label: group_cv (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/covariance/outlier_detection.py:docstring of sklearn.covariance.EllipticEnvelope.correct_covariance:4: WARNING: citation not found: Rouseeuw1984 /home/ubuntu/scikit-learn/sklearn/covariance/outlier_detection.py:docstring of sklearn.covariance.EllipticEnvelope.reweight_covariance:4: WARNING: citation not found: Rouseeuw1984 /home/ubuntu/scikit-learn/sklearn/covariance/robust_covariance.py:docstring of sklearn.covariance.MinCovDet.correct_covariance:4: WARNING: citation not found: Rouseeuw1984 /home/ubuntu/scikit-learn/sklearn/covariance/robust_covariance.py:docstring of sklearn.covariance.MinCovDet.reweight_covariance:4: WARNING: citation not found: Rouseeuw1984 /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.linear_model.RandomizedLasso.rst:17: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/linear_model/randomized_l1.py:docstring of sklearn.linear_model.RandomizedLasso:25: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/linear_model/randomized_l1.py:docstring of sklearn.linear_model.RandomizedLasso:153: WARNING: undefined label: sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.linear_model.RandomizedLogisticRegression.rst:17: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/linear_model/randomized_l1.py:docstring of sklearn.linear_model.RandomizedLogisticRegression:27: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/linear_model/randomized_l1.py:docstring of sklearn.linear_model.RandomizedLogisticRegression:138: WARNING: undefined label: sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.linear_model.lasso_stability_path.rst:11: WARNING: undefined label: randomized_l1 (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/utils/deprecation.py:docstring of sklearn.linear_model.lasso_stability_path:67: WARNING: undefined label: sphx_glr_auto_examples_linear_model_plot_sparse_recovery.py (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.mixture.VBGMM.rst:22: WARNING: undefined label: vbgmm (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_search.py:docstring of sklearn.model_selection.GridSearchCV:46: WARNING: undefined label: multivalued_scorer_wrapping (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_search.py:docstring of sklearn.model_selection.RandomizedSearchCV:61: WARNING: undefined label: multivalued_scorer_wrapping (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_validation.py:docstring of sklearn.model_selection.cross_validate:42: WARNING: undefined label: multivalued_scorer_wrapping (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_validation.py:docstring of sklearn.model_selection.permutation_test_score:38: WARNING: undefined label: _scoring_parameter (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/model_selection/_validation.py:docstring of sklearn.model_selection.permutation_test_score:38: WARNING: undefined label: _scoring (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/generated/sklearn.neighbors.LSHForest.rst:21: WARNING: undefined label: approximate_nearest_neighbors (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/sklearn/neighbors/lof.py:docstring of sklearn.neighbors.LocalOutlierFactor:78: WARNING: undefined label: sklearn.metrics.pairwise.pairwise_distances (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/grid_search.rst:87: WARNING: undefined label: sphx_glr_auto_examples_model_selection_plot_multi_metric_evaluation (if the link has no caption the label must precede a section header) /home/ubuntu/scikit-learn/doc/modules/grid_search.rst:186: WARNING: undefined label: sphx_glr_auto_examples_model_selection_plot_multi_metric_evaluation (if the link has no caption the label must precede a section header) </code></pre></div>
0
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): CentOS 7.4</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: NA</li> <li>TensorFlow installed from (source or binary): source</li> <li>TensorFlow version: v1.13.1</li> <li>Python version: 3.6</li> <li>Installed using virtualenv? pip? conda?: NA</li> <li>Bazel version (if compiling from source): 0.25 NA</li> <li>GCC/Compiler version (if compiling from source): gcc/4.8.5</li> <li>CUDA/cuDNN version: 10.0.130, 7.4.2.24</li> <li>GPU model and memory: GTX 1060 6Gb</li> </ul> <p dir="auto"><strong>Describe the problem</strong></p> <p dir="auto">CMake build doesnt complete</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_scope.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_op.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_show_multi.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_show.cc.o [ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/blas.cc.o [ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/device_description.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_stats.cc.o [ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc.o [ 18%] Linking CXX executable proto_text In file included from /home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc:16:0: /home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.h:34:47: fatal error: tensorflow/stream_executor/dnn.pb.h: No such file or directory #include &quot;tensorflow/stream_executor/dnn.pb.h&quot; ^ compilation terminated. [ 18%] Built target proto_text [ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dso_loader.cc.o make[2]: *** [CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_tensor.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_timeline.cc.o make[1]: *** [CMakeFiles/tf_stream_executor.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_utils.cc.o [ 19%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/tfprof_options.cc.o [ 19%] Built target tf_core_profiler make: *** [all] Error 2"><pre class="notranslate"><code class="notranslate">[ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_scope.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_op.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_show_multi.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_show.cc.o [ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/blas.cc.o [ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/device_description.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_stats.cc.o [ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc.o [ 18%] Linking CXX executable proto_text In file included from /home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc:16:0: /home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.h:34:47: fatal error: tensorflow/stream_executor/dnn.pb.h: No such file or directory #include "tensorflow/stream_executor/dnn.pb.h" ^ compilation terminated. [ 18%] Built target proto_text [ 18%] Building CXX object CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dso_loader.cc.o make[2]: *** [CMakeFiles/tf_stream_executor.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/stream_executor/dnn.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_tensor.cc.o [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_timeline.cc.o make[1]: *** [CMakeFiles/tf_stream_executor.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 18%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/internal/tfprof_utils.cc.o [ 19%] Building CXX object CMakeFiles/tf_core_profiler.dir/home/kognat/dev/tensorflow-v1.13.1-static-gpu-centos6/tensorflow/tensorflow/core/profiler/tfprof_options.cc.o [ 19%] Built target tf_core_profiler make: *** [all] Error 2 </code></pre></div> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p> <p dir="auto">git checkout <a href="https://github.com/tensorflow/tensorflow.git">https://github.com/tensorflow/tensorflow.git</a><br> cd tensorflow/tensorflow/contrib/cmake<br> mkdir build &amp;&amp; cd build<br> CUDA_HOME=/usr/local/cuda-10.0 cmake3 .. -DCMAKE_PREFIX_PATH=/usr/local/cuda-10.0:/usr/local/cudnn-7.4.2.24/cuda -DCMAKE_INSTALL_PREFIX=/home/samh/opt/tensorflow-v1.13.1-static-gpu -Dtensorflow_BUILD_PYTHON_BINDING=off -Dtensorflow_ENABLE_GPU=on -Dtensorflow_ENABLE_GRPC_SUPPORT=on -Dtensorflow_ENABLE_POSITION_INDEPENDENT_CODE=on -Dtensorflow_ENABLE_SNAPPY_SUPPORT=on -Dtensorflow_OPTIMIZE_FOR_NATIVE_ARCH=on -Dtensorflow_PATH_CUDA_LIB=/usr/local/cuda-10.0/lib -Dtensorflow_PATH_CUDNN_LIB=/usr/local/cudnn-7.4.2.24/cuda/lib -Dtensorflow_CUDNN_INCLUDE=/usr/local/cudnn-7.4.2.24/cuda/include -Dtensorflow_BUILD_SHARED_LIB=on -Dtensorflow_NCCL_INCLUDE=/usr/local/nccl-2.4.7/include -Dtensorflow_PATH_NCCL_LIB=/usr/local/nccl-2.4.7/lib -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.0 -DCUDA_cupti_LIBRARY=/usr/local/cuda-10.0/extras/CUPTI/lib -DOPENSSL_NO_ASM=1<br> make -j12</p> <p dir="auto"><strong>Any other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> <p dir="auto">I need a static build with GPU support, any process to do this would be considered an alternative.</p> <p dir="auto">Sam</p>
<p dir="auto">See</p> <p dir="auto"><a href="https://stackoverflow.com/questions/52683649/libtensorflow-cc-so-initialised-a-second-time-causes-segfault" rel="nofollow">https://stackoverflow.com/questions/52683649/libtensorflow-cc-so-initialised-a-second-time-causes-segfault</a></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">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>:</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:</li> <li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>:</li> <li><strong>TensorFlow installed from (source or binary)</strong>:</li> <li><strong>TensorFlow version (use command below)</strong>:</li> <li><strong>Python version</strong>:</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>:</li> </ul> <p dir="auto">You can collect some of this information using our environment capture script:</p> <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>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=davsclaus" rel="nofollow">Claus Ibsen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-601?redirect=false" rel="nofollow">SPR-601</a></strong> and commented</p> <p dir="auto">I forked the org.springframework.aop.interceptors.TraceInterceptor as I needed several added functionality. I ended up adding a few more features and made it customizable so I could contribute it back to the Spring team.</p> <p dir="auto">I have attached a modified version of the TraceInterceptor.java with these enhancements:</p> <ul dir="auto"> <li>possible to customize output formating of ENTER and EXIT messages</li> <li>possible to output elapsed time</li> <li>possible to output method arguments</li> <li>possible to use dynamic logger name (using the classname of the method invocation = just as if you had written to log code in the class itself. See example)</li> </ul> <p dir="auto">Using the dynamic logname makes it possible to output logs as:</p> <p dir="auto">http8080-Processor4 07 jan 2005 11:22:58 DEBUG dk.netfragt.pbs.NetfragtPBSWebService - ENTER - accepterFaktura<br> dk.netfragt.pbs.NetfragtPBSWebService - EXIT - accepterFaktura. Time = 1656 msec.</p> <p dir="auto">Instead of the default:</p> <p dir="auto">http8080-Processor4 07 jan 2005 11:19:43 DEBUG org.springframework.aop.interceptor.TraceInterceptor - Entering method accepterFaktura in class [dk.netfragt.pbs.NetfragtPBSWebService]</p> <p dir="auto">And with the method arguments you can see what has been passed in as arguments (in this example 77777):</p> <p dir="auto">http8080-Processor4 07 jan 2005 11:19:43 DEBUG org.springframework.aop.interceptor.TraceInterceptor - Entering method accepterFaktura(77777) in class [dk.netfragt.pbs.NetfragtPBSWebService]</p> <p dir="auto">And you can change the formatting of the message using java.text.Format with {0} placeholders. The defaults are:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private String enterMessage = &quot;Entering method {1}{2} in class [{0}]&quot;; private String exitMessage = &quot;Exiting method {1}{2} in class [{0}]&quot;;"><pre class="notranslate"><code class="notranslate">private String enterMessage = "Entering method {1}{2} in class [{0}]"; private String exitMessage = "Exiting method {1}{2} in class [{0}]"; </code></pre></div> <p dir="auto">You can customize this in the spring .xml configuration:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;traceInterceptor&quot; class=&quot;org.springframework.aop.interceptor.TraceInterceptor&quot;&gt; &lt;property name=&quot;elapsedTime&quot;&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt; &lt;property name=&quot;arguments&quot;&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt; &lt;property name=&quot;dynamicLogName&quot;&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt; &lt;property name=&quot;enterMessage&quot;&gt;&lt;value&gt;ENTER - {1}{2}&lt;/value&gt;&lt;/property&gt; &lt;property name=&quot;exitMessage&quot;&gt;&lt;value&gt;EXIT - {1}{2}&lt;/value&gt;&lt;/property&gt; &lt;/bean&gt;"><pre class="notranslate"><code class="notranslate">&lt;bean id="traceInterceptor" class="org.springframework.aop.interceptor.TraceInterceptor"&gt; &lt;property name="elapsedTime"&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt; &lt;property name="arguments"&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt; &lt;property name="dynamicLogName"&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt; &lt;property name="enterMessage"&gt;&lt;value&gt;ENTER - {1}{2}&lt;/value&gt;&lt;/property&gt; &lt;property name="exitMessage"&gt;&lt;value&gt;EXIT - {1}{2}&lt;/value&gt;&lt;/property&gt; &lt;/bean&gt; </code></pre></div> <p dir="auto">Using the above will output:</p> <p dir="auto">http8080-Processor4 07 jan 2005 11:22:58 DEBUG dk.netfragt.pbs.NetfragtPBSWebService - ENTER - accepterFaktura(676767)<br> http8080-Processor4 07 jan 2005 11:23:00 DEBUG dk.netfragt.pbs.NetfragtPBSWebService - EXIT - accepterFaktura(676767). Time = 1656 msec.</p> <p dir="auto">As the example above illustrates that using dynamicLogName and customizing the log message it is possible to change it radically.</p> <p dir="auto">I hope the Spring team could accept these changes as the default version is the same as the existing one.</p> <hr> <p dir="auto"><strong>Affects:</strong> 1.1.3</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/10632/TraceInterceptor.java" rel="nofollow">TraceInterceptor.java</a> (<em>7.50 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/10421/TraceInterceptor.java" rel="nofollow">TraceInterceptor.java</a> (<em>5.55 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398056252" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5586" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5586/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5586">#5586</a> [PATCH] Enhancements to TraceInterceptor (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=costin" rel="nofollow">Costin Leau</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1625?redirect=false" rel="nofollow">SPR-1625</a></strong> and commented</p> <p dir="auto">A lot of users on the forum have problems setting up an application using the OpenSessionInView. Most of the times the solution is outside the spring samples at points at various blogs or demo applications. I think a simple OSIV (mainly with Hibernate) should be added inside the main distribution samples (even if as a comment).</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="398075724" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7879" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7879/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7879">#7879</a> OpenSessionInView Filter/Interceptor lacks documentation coverage (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">5 votes, 5 watchers</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/styled-components</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc: <code class="notranslate">3.6.4</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/4a4375a3acedf893aaed1ee39fcec7f48b2ec8be/types/styled-components/index.d.ts#L3-L10"><code class="notranslate">Definitions by:</code> in <code class="notranslate">types/styled-components/index.d.ts</code></a>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Igorbek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igorbek">@Igorbek</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Igmat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igmat">@Igmat</a>, @lavoaster, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Jessidhia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Jessidhia">@Jessidhia</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jkillian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jkillian">@jkillian</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eps1lon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eps1lon">@eps1lon</a>, @flavordaaave, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wagerfield/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wagerfield">@wagerfield</a></li> </ul> </li> </ul> <p dir="auto">From <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="510085223" data-permission-text="Title is private" data-url="https://github.com/styled-components/styled-components/issues/2823" data-hovercard-type="issue" data-hovercard-url="/styled-components/styled-components/issues/2823/hovercard" href="https://github.com/styled-components/styled-components/issues/2823">styled-components/styled-components#2823</a>:</p> <h2 dir="auto">Environment</h2> <h3 dir="auto">System:</h3> <ul dir="auto"> <li>OS: macOS 10.15</li> <li>CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz</li> <li>Memory: 8.08 GB / 32.00 GB</li> <li>Shell: 5.7.1 - /bin/zsh</li> </ul> <h3 dir="auto">Binaries:</h3> <ul dir="auto"> <li>Node: 12.12.0 - /usr/local/bin/node</li> <li>npm: 6.11.3 - /usr/local/bin/npm</li> </ul> <h3 dir="auto">npm Packages:</h3> <ul dir="auto"> <li>react: ^16.10.2 =&gt; 16.10.2</li> <li>styled-components: ^4.4.0 =&gt; 4.4.0</li> <li>@types/react: ^16.9.9 =&gt; 16.9.9</li> <li>@types/styled-components: ^4.1.19 =&gt; 4.1.19</li> <li>typescript: ^3.6.4 =&gt; 3.6.4</li> </ul> <h2 dir="auto">Reproduction</h2> <p dir="auto"><a href="https://www.typescriptlang.org/play/?jsx=2#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wChRJY4BnGATwBskATObXA2xlgWjV0gA7JIJjV8AblKkA9DLgAVOmCTVyopFEzokiFMEF0AIijoAFHGGpwA3qTgO49FQC44AIij7D7qY5oAFhAA7gCqIABGRAwMKACS-IJuERAQTCiCUgC+6jCa2mi6AMoAroKGJuaW1nb+zkhu7tRlPn6O1EHBpYLUaEQiCRBJcClpqJmkOfVwAOqoMAGaM8DMAOZIMBYQVnAAvHoGxqZbOwA+cN0Vx9VSsvIActAgKAxw-OBDImKkmGUYwENZvNFlBlmsNgAKMDVNxzFALJYrdabaoASjcACkigANAB0AFEmCAvrZ7I4mPBgkiNnsPFTwTBfNJ-MBMHAodVcdNdjyPF5Du5UaT-P56cjadDttRcR0QuEokgYvFEnAAPweQBAZIB4P-ccEaJUi0ViTP8WTgiuoulZ7MlVi5yl0PP2TRadEFwpFDjFNP2tulsq6ZV6-UEg0Eao8gD4NwAvu7rGs0en0kCITY4cmSHEQYCUoOGADzMYAANwAfMhiZFNHA6BAc7ZvTAsgBCPMyQul7KkJAAD0o8EStAOVzoAGEBJ9RLS83CEaDqfB6rtPN43YE5YbFbEw7sbDAoCUkGaZCWpD2+28hoPLkdR+PhJP9tPgYiGU4HUuEz414HEyHt7v90POBj1uOQLnoJhWHeIQvjUAd4CKCCWBnEEwXFfYuEgiEUJfZFUQAA3wrte2gftLwQpDmAQFdKjHD573gR9EO4ZgcLnV9F2XAVv3lI1lSGHc9wPI8T2I894PAljr1ou8SSYyi2LQmlOM-VcA26YNk1DRJBMAkSJCAA" rel="nofollow">TypeScript playground</a></p> <details> <summary><b>Source</b>, in case the TypeScript playground link above doesn’t work</summary> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react' import styled from 'styled-components'; // Types interface RainyDayProps { type: &quot;rainy&quot;; showUmbrellaIcon: boolean; } interface SunnyDayProps { type: &quot;sunny&quot;; showSunscreenIcon: boolean; } type WeatherWidgetProps = RainyDayProps | SunnyDayProps; // Normal components function WeatherWidget(props: WeatherWidgetProps): JSX.Element { let widget = &quot;widget&quot;; if (props.type === &quot;rainy&quot;) { widget = props.showUmbrellaIcon ? &quot;☂️&quot; : &quot;umbrella&quot;; } else if (props.type === &quot;sunny&quot;) { widget = props.showSunscreenIcon ? &quot;🧴&quot; : &quot;sunscreen&quot;; } return &lt;div&gt;Remember your {widget}!&lt;/div&gt;; } export const RainyDayComponent = &lt;WeatherWidget type=&quot;rainy&quot; showUmbrellaIcon={true} /&gt;; export const SunnyDayComponent = &lt;WeatherWidget type=&quot;sunny&quot; showSunscreenIcon={true} /&gt;; // Styled components const StyledWeatherWidget = styled(WeatherWidget)`` export const StyledRainyDayComponent = &lt;StyledWeatherWidget type=&quot;rainy&quot; showUmbrellaIcon={true} /&gt;; export const StyledSunnyDayComponent = &lt;StyledWeatherWidget type=&quot;sunny&quot; showSunscreenIcon={true} /&gt;;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-smi">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span> <span class="pl-k">import</span> <span class="pl-s1">styled</span> <span class="pl-k">from</span> <span class="pl-s">'styled-components'</span><span class="pl-kos">;</span> <span class="pl-c">// Types</span> <span class="pl-k">interface</span> <span class="pl-smi">RainyDayProps</span> <span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s">"rainy"</span><span class="pl-kos">;</span> <span class="pl-c1">showUmbrellaIcon</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">SunnyDayProps</span> <span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s">"sunny"</span><span class="pl-kos">;</span> <span class="pl-c1">showSunscreenIcon</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">type</span> <span class="pl-smi">WeatherWidgetProps</span> <span class="pl-c1">=</span> <span class="pl-smi">RainyDayProps</span> <span class="pl-c1">|</span> <span class="pl-smi">SunnyDayProps</span><span class="pl-kos">;</span> <span class="pl-c">// Normal components</span> <span class="pl-k">function</span> <span class="pl-smi">WeatherWidget</span><span class="pl-kos">(</span><span class="pl-s1">props</span>: <span class="pl-smi">WeatherWidgetProps</span><span class="pl-kos">)</span>: <span class="pl-smi">JSX</span><span class="pl-kos">.</span><span class="pl-smi">Element</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">widget</span> <span class="pl-c1">=</span> <span class="pl-s">"widget"</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">type</span> <span class="pl-c1">===</span> <span class="pl-s">"rainy"</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">widget</span> <span class="pl-c1">=</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">showUmbrellaIcon</span> ? <span class="pl-s">"☂️"</span> : <span class="pl-s">"umbrella"</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">props</span><span class="pl-kos">.</span><span class="pl-c1">type</span> <span class="pl-c1">===</span> <span class="pl-s">"sunny"</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">widget</span> <span class="pl-c1">=</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">showSunscreenIcon</span> ? <span class="pl-s">"🧴"</span> : <span class="pl-s">"sunscreen"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-kos">&lt;</span><span class="pl-smi">div</span><span class="pl-kos">&gt;</span><span class="pl-smi">Remember</span> <span class="pl-s1">your</span> <span class="pl-kos">{</span>widget<span class="pl-kos">}</span><span class="pl-c1">!</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span>div&gt;; <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-smi">RainyDayComponent</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-smi">WeatherWidget</span> <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s">"rainy"</span> <span class="pl-s1">showUmbrellaIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">true</span><span class="pl-kos">}</span> <span class="pl-c1">/</span>&gt;; <span class="pl-s1">export</span> <span class="pl-k">const</span> <span class="pl-smi">SunnyDayComponent</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-smi">WeatherWidget</span> <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s">"sunny"</span> <span class="pl-s1">showSunscreenIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">true</span><span class="pl-kos">}</span> <span class="pl-c1">/</span>&gt;; <span class="pl-c">// Styled components</span> <span class="pl-s1">const</span> <span class="pl-smi">StyledWeatherWidget</span> <span class="pl-c1">=</span> <span class="pl-en">styled</span><span class="pl-kos">(</span><span class="pl-smi">WeatherWidget</span><span class="pl-kos">)</span><span class="pl-s">``</span> <span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-smi">StyledRainyDayComponent</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-smi">StyledWeatherWidget</span> <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s">"rainy"</span> <span class="pl-s1">showUmbrellaIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">true</span><span class="pl-kos">}</span> <span class="pl-c1">/</span>&gt;; <span class="pl-s1">export</span> <span class="pl-k">const</span> <span class="pl-smi">StyledSunnyDayComponent</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-smi">StyledWeatherWidget</span> <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s">"sunny"</span> <span class="pl-s1">showSunscreenIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">true</span><span class="pl-kos">}</span> <span class="pl-c1">/</span>&gt;;</pre></div> </details> <h2 dir="auto">Steps to reproduce</h2> <p dir="auto">When a union type is passed as <code class="notranslate">styled-component</code>’s type argument, the TypeScript compiler errors. See the TypeScript playground link above—<code class="notranslate">StyledWeatherWidget</code> has red squiggles.</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Both interfaces in the union type are valid contracts for the type of the styled React component’s props. As shown in the playground, the unwrapped React component accepts either set of props. Wrapping the React component with <code class="notranslate">styled-components</code> should not cause a TypeScript compiler error.</p> <h2 dir="auto">Actual Behavior</h2> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="index.tsx:37:4 - error TS2322: Type '{ type: &quot;rainy&quot;; showUmbrellaIcon: boolean; }' is not assignable to type 'IntrinsicAttributes &amp; Pick&lt;Pick&lt;WeatherWidgetProps, &quot;type&quot;&gt; &amp; Partial&lt;Pick&lt;WeatherWidgetProps, never&gt;&gt;, &quot;type&quot;&gt; &amp; { theme?: any; } &amp; { as?: &quot;symbol&quot; | &quot;object&quot; | &quot;big&quot; | ... 173 more ... | undefined; }'. Property 'showUmbrellaIcon' does not exist on type 'IntrinsicAttributes &amp; Pick&lt;Pick&lt;WeatherWidgetProps, &quot;type&quot;&gt; &amp; Partial&lt;Pick&lt;WeatherWidgetProps, never&gt;&gt;, &quot;type&quot;&gt; &amp; { theme?: any; } &amp; { as?: &quot;symbol&quot; | &quot;object&quot; | &quot;big&quot; | ... 173 more ... | undefined; }'. 37 &lt;StyledWeatherWidget type=&quot;rainy&quot; showUmbrellaIcon={true} /&gt; ~~~~~~~~~~~~~~~~~~~ index.tsx:40:4 - error TS2322: Type '{ type: &quot;sunny&quot;; showSunscreenIcon: boolean; }' is not assignable to type 'IntrinsicAttributes &amp; Pick&lt;Pick&lt;WeatherWidgetProps, &quot;type&quot;&gt; &amp; Partial&lt;Pick&lt;WeatherWidgetProps, never&gt;&gt;, &quot;type&quot;&gt; &amp; { theme?: any; } &amp; { as?: &quot;symbol&quot; | &quot;object&quot; | &quot;big&quot; | ... 173 more ... | undefined; }'. Property 'showSunscreenIcon' does not exist on type 'IntrinsicAttributes &amp; Pick&lt;Pick&lt;WeatherWidgetProps, &quot;type&quot;&gt; &amp; Partial&lt;Pick&lt;WeatherWidgetProps, never&gt;&gt;, &quot;type&quot;&gt; &amp; { theme?: any; } &amp; { as?: &quot;symbol&quot; | &quot;object&quot; | &quot;big&quot; | ... 173 more ... | undefined; }'. 40 &lt;StyledWeatherWidget type=&quot;sunny&quot; showSunscreenIcon={true} /&gt; ~~~~~~~~~~~~~~~~~~~"><pre class="notranslate">index.tsx:37:4 - error TS2322: Type <span class="pl-s"><span class="pl-pds">'</span>{ type: "rainy"; showUmbrellaIcon: boolean; }<span class="pl-pds">'</span></span> is not assignable to <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>IntrinsicAttributes &amp; Pick&lt;Pick&lt;WeatherWidgetProps, "type"&gt; &amp; Partial&lt;Pick&lt;WeatherWidgetProps, never&gt;&gt;, "type"&gt; &amp; { theme?: any; } &amp; { as?: "symbol" | "object" | "big" | ... 173 more ... | undefined; }<span class="pl-pds">'</span></span>. Property <span class="pl-s"><span class="pl-pds">'</span>showUmbrellaIcon<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>IntrinsicAttributes &amp; Pick&lt;Pick&lt;WeatherWidgetProps, "type"&gt; &amp; Partial&lt;Pick&lt;WeatherWidgetProps, never&gt;&gt;, "type"&gt; &amp; { theme?: any; } &amp; { as?: "symbol" | "object" | "big" | ... 173 more ... | undefined; }<span class="pl-pds">'</span></span>. 37 <span class="pl-k">&lt;</span>StyledWeatherWidget type=<span class="pl-s"><span class="pl-pds">"</span>rainy<span class="pl-pds">"</span></span> showUmbrellaIcon={true} /<span class="pl-k">&gt;</span> <span class="pl-k">~</span>~~~~~~~~~~~~~~~~~~ index.tsx:40:4 - error TS2322: Type <span class="pl-s"><span class="pl-pds">'</span>{ type: "sunny"; showSunscreenIcon: boolean; }<span class="pl-pds">'</span></span> is not assignable to <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>IntrinsicAttributes &amp; Pick&lt;Pick&lt;WeatherWidgetProps, "type"&gt; &amp; Partial&lt;Pick&lt;WeatherWidgetProps, never&gt;&gt;, "type"&gt; &amp; { theme?: any; } &amp; { as?: "symbol" | "object" | "big" | ... 173 more ... | undefined; }<span class="pl-pds">'</span></span>. Property <span class="pl-s"><span class="pl-pds">'</span>showSunscreenIcon<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>IntrinsicAttributes &amp; Pick&lt;Pick&lt;WeatherWidgetProps, "type"&gt; &amp; Partial&lt;Pick&lt;WeatherWidgetProps, never&gt;&gt;, "type"&gt; &amp; { theme?: any; } &amp; { as?: "symbol" | "object" | "big" | ... 173 more ... | undefined; }<span class="pl-pds">'</span></span>. 40 <span class="pl-k">&lt;</span>StyledWeatherWidget type=<span class="pl-s"><span class="pl-pds">"</span>sunny<span class="pl-pds">"</span></span> showSunscreenIcon={true} /<span class="pl-k">&gt;</span> <span class="pl-k">~</span>~~~~~~~~~~~~~~~~~~</pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/styled-components</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Igorbek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igorbek">@Igorbek</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Igmat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igmat">@Igmat</a>, @lavoaster, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Jessidhia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Jessidhia">@Jessidhia</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jkillian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jkillian">@jkillian</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eps1lon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eps1lon">@eps1lon</a>, @flavordaaave</li> </ul> </li> </ul> <p dir="auto">Subject Says It All.</p> <p dir="auto">Code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import styled from 'styled-components' type Props = { foo: number, bar?: undefined } | { foo?: undefined, bar: string } const C1 = (porps: Props) =&gt; &lt;p /&gt; const C2 = styled.p&lt;Props&gt;`` const T1 = &lt;C1 foo={1} bar=&quot;str&quot; /&gt; // type error const T2 = &lt;C2 foo={1} bar=&quot;str&quot; /&gt; // no error"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">styled</span> <span class="pl-k">from</span> <span class="pl-s">'styled-components'</span> <span class="pl-k">type</span> <span class="pl-smi">Props</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>?: <span class="pl-c1">undefined</span> <span class="pl-kos">}</span> <span class="pl-c1">|</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span>?: <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-smi">C1</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">porps</span>: <span class="pl-smi">Props</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-smi">p</span> <span class="pl-c1">/</span><span class="pl-kos">&gt;</span> <span class="pl-s1">const</span> <span class="pl-smi">C2</span> <span class="pl-c1">=</span> <span class="pl-s1">styled</span><span class="pl-kos">.</span><span class="pl-en">p</span><span class="pl-kos">&lt;</span><span class="pl-smi">Props</span><span class="pl-kos">&gt;</span><span class="pl-s">``</span> <span class="pl-k">const</span> <span class="pl-smi">T1</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-smi">C1</span> <span class="pl-smi">foo</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">1</span><span class="pl-kos">}</span> <span class="pl-s1">bar</span><span class="pl-c1">=</span><span class="pl-s">"str"</span> <span class="pl-c1">/</span>&gt; <span class="pl-c">// type error</span> <span class="pl-s1">const</span> <span class="pl-smi">T2</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-smi">C2</span> <span class="pl-smi">foo</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">1</span><span class="pl-kos">}</span> <span class="pl-s1">bar</span><span class="pl-c1">=</span><span class="pl-s">"str"</span> <span class="pl-c1">/</span>&gt; <span class="pl-c">// no error</span></pre></div>
1
<p dir="auto">Should pandas have a <em>Symbol</em> datatype for strings which are frequently re-used?</p> <p dir="auto">For example, consider a table of stock trades with columns ['Timestamp','Price','Size','StockSymbol']. Suppose there are 10 million trades, but only 500 different stock symbols. Instead of storing 10 million strings, we could fill the 'StockSymbol' column with integers 0-499 where 0 represents AAPL, 1 represents AMZN, etc.</p> <p dir="auto">The <em>Symbol</em> type in Ruby, Scala, and Q does this compression/expansion automatically. It's a big memory saver in big tables, and <em>Symbol</em> comparison can be much faster than string comparison.</p> <p dir="auto">I often use <code class="notranslate">.astype('category')</code> for string compression in pandas. But at a talk I saw recently, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wesm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wesm">@wesm</a> suggested this might not be a great idea. I've definitely caused several confusing problems by abusing categoricals this way: comparing two columns with different levels, appending rows with new symbols, wrongly assuming <code class="notranslate">sort_values()</code> will sort symbols lexicographically, etc.</p> <p dir="auto">Related question: Without a <em>Symbol</em> datatype, is there a consensus on best practice for storing repetitive strings in a Series or DataFrame? Should we leave them as <code class="notranslate">Object</code> type? Compress them as un-ordered categoricals? Do something else I haven't thought of?</p>
<p dir="auto"><em>update for 2019-10-07: We have a StringDtype extension dtype. It's memory model is the same as the old implementation, an object-dtype ndarray of strings. The next step is to store &amp; process it natively</em>.</p> <hr> <p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46780098" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/8627" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/8627/hovercard" href="https://github.com/pandas-dev/pandas/issues/8627">#8627</a><br> xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46859261" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/8643" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/8643/hovercard" href="https://github.com/pandas-dev/pandas/issues/8643">#8643</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43427084" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/8350" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/8350/hovercard" href="https://github.com/pandas-dev/pandas/issues/8350">#8350</a></p> <p dir="auto">Since we introduced <code class="notranslate">Categorical</code> in 0.15.0, I think we have found 2 main uses.</p> <ol dir="auto"> <li>as a 'real' Categorical/Factor type to represent a limited of subset of values that the column can take on</li> <li>as a memory saving representation for object dtypes.</li> </ol> <p dir="auto">I could see introducting a <code class="notranslate">dtype='string'</code> where <code class="notranslate">String</code> is a slightly specialized sub-class of <code class="notranslate">Categroical</code>, with 2 differences compared to a 'regular' Categorical:</p> <ul dir="auto"> <li>it allows unions of arbitrary other string types, currently <code class="notranslate">Categorical</code> will complain if you do this:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: df = DataFrame({'A' : Series(list('abc'),dtype='category')}) In [2]: df2 = DataFrame({'A' : Series(list('abd'),dtype='category')}) In [3]: pd.concat([df,df2]) ValueError: incompatible levels in categorical block merge"><pre class="notranslate"><code class="notranslate">In [1]: df = DataFrame({'A' : Series(list('abc'),dtype='category')}) In [2]: df2 = DataFrame({'A' : Series(list('abd'),dtype='category')}) In [3]: pd.concat([df,df2]) ValueError: incompatible levels in categorical block merge </code></pre></div> <p dir="auto">Note that this works if they are <code class="notranslate">Series</code> (and prob should raise as well, side -issue)</p> <p dir="auto">But, if these were both 'string' dtypes, then its a simple matter to combine (efficiently).</p> <ul dir="auto"> <li>you can restrict the 'sub-dtype' (e.g. the dtype of the categories) to <code class="notranslate">string/unicode</code> (iow, don't allow numbers / arbitrary objects), makes the constructor a bit simpler, but more importantly, you now have a 'real' non-object string dtype.</li> </ul> <p dir="auto">I don't think this would be that complicated to do. The big change here would be to essentially convert any object dtypes that are strings to <code class="notranslate">dtype='string'</code> e.g. on reading/conversion/etc. might be a perf issue for some things, but I think the memory savings greatly outweigh.</p> <p dir="auto">We would then have a 'real' looking object dtype (and <code class="notranslate">object</code> would be relegated to actual python object types, so would be used much less).</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/shoyer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/shoyer">@shoyer</a><br> cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JanSchulz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JanSchulz">@JanSchulz</a><br> cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jorisvandenbossche/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jorisvandenbossche">@jorisvandenbossche</a><br> cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mwiebe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mwiebe">@mwiebe</a><br> thoughts?</p>
1
<p dir="auto"><strong>Describe the issue</strong><br> version 0.19.0 , because mergeConfig : is not support custom parameters realization RESETful</p> <p dir="auto"><strong>Example Code</strong><br> Code snippet to illustrate your question</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.delete(diagnosis, { params: { text: 'hello' }, pathParams: { userId: 1000, batchId: 'XD982393' } })"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s1">diagnosis</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">params</span>: <span class="pl-kos">{</span> <span class="pl-c1">text</span>: <span class="pl-s">'hello'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">pathParams</span>: <span class="pl-kos">{</span> <span class="pl-c1">userId</span>: <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c1">batchId</span>: <span class="pl-s">'XD982393'</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>Expected behavior, if applicable</strong><br> Workable</p> <p dir="auto"><strong>Environment:</strong></p> <ul dir="auto"> <li>All</li> </ul> <p dir="auto"><strong>Additional context/Screenshots</strong><br> none</p>
<p dir="auto"><strong>Describe the bug</strong><br> The <code class="notranslate">getUri</code> method only returns the supplied <code class="notranslate">url</code> parameter and not the full request URL. However, using this method in a response interceptor seems to work correctly</p> <p dir="auto">This might be a duplicate or related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="450563928" data-permission-text="Title is private" data-url="https://github.com/axios/axios/issues/2190" data-hovercard-type="issue" data-hovercard-url="/axios/axios/issues/2190/hovercard" href="https://github.com/axios/axios/issues/2190">#2190</a> but I'm not sure so just throwing this out there anyway.</p> <p dir="auto"><strong>To Reproduce</strong><br> Runkit <a href="https://runkit.com/adam-mccormick/5d1660c39720a3001aeace48" rel="nofollow">example</a></p> <p dir="auto">The example shows that the <code class="notranslate">getUri</code> method only returns the <code class="notranslate">url</code> parameter in the request interceptor but in the response interceptor the full URL is returned.</p> <p dir="auto"><strong>Expected behavior</strong><br> The <code class="notranslate">getUri</code> method always returns the full URL of the request config</p> <p dir="auto"><strong>Environment:</strong></p> <ul dir="auto"> <li>Axios Version [0.19.0]</li> <li>OS: [OSX 10.13.4]</li> <li>Environment [node &gt;= 10]</li> </ul>
0
<p dir="auto">The following code does not compile:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::rc::Rc; use std::cell::RefCell; pub struct Callbacks { callbacks: Vec&lt;Rc&lt;RefCell&lt;FnMut(i32)&gt;&gt;&gt;, } impl Callbacks { pub fn call(&amp;mut self, val: i32) { for callback in self.callbacks.iter() { let mut closure = callback.borrow_mut(); closure(val); } } }"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>rc<span class="pl-kos">::</span><span class="pl-v">Rc</span><span class="pl-kos">;</span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>cell<span class="pl-kos">::</span><span class="pl-v">RefCell</span><span class="pl-kos">;</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">Callbacks</span> <span class="pl-kos">{</span> <span class="pl-c1">callbacks</span><span class="pl-kos">:</span> <span class="pl-smi">Vec</span><span class="pl-kos">&lt;</span><span class="pl-smi">Rc</span><span class="pl-kos">&lt;</span><span class="pl-smi">RefCell</span><span class="pl-kos">&lt;</span><span class="pl-smi">FnMut</span><span class="pl-kos">(</span><span class="pl-smi">i32</span><span class="pl-kos">)</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span> <span class="pl-smi">Callbacks</span> <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">val</span><span class="pl-kos">:</span> <span class="pl-smi">i32</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">for</span> callback <span class="pl-k">in</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">callbacks</span><span class="pl-kos">.</span><span class="pl-en">iter</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> closure = callback<span class="pl-kos">.</span><span class="pl-en">borrow_mut</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">closure</span><span class="pl-kos">(</span>val<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">(<a href="http://is.gd/oQk3Fm" rel="nofollow">Playpen</a>)</p> <p dir="auto">It says: "cannot borrow immutable borrowed content as mutable".</p> <p dir="auto">Instead, I have to explicitly dereference and borrow the closure in the loop, with <code class="notranslate">(&amp;mut *closure)(val)</code>. Typically, Rust performs this automatically, so I expected that to also happen in this case. At the very least, the error message should be improved, as currently, it doesn't help with the actual issue at all.</p>
<p dir="auto">Testcase:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::ops::*; struct S&lt;'a, T:FnMut() + 'static + ?Sized&gt;(&amp;'a mut T); impl&lt;'a, T:?Sized + FnMut() + 'static&gt; DerefMut for S&lt;'a, T&gt; { fn deref_mut(&amp;mut self) -&gt; &amp;mut Self::Target { &amp;mut self.0 } } impl&lt;'a, T:?Sized + FnMut() + 'static&gt; Deref for S&lt;'a, T&gt; { type Target = FnMut() + 'a; fn deref(&amp;self) -&gt; &amp;Self::Target { &amp;self.0 } } fn main() { let mut f = ||{}; let mut s = S(&amp;mut f); s(); }"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>ops<span class="pl-kos">::</span><span class="pl-c1">*</span><span class="pl-kos">;</span> <span class="pl-k">struct</span> <span class="pl-smi">S</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">:</span><span class="pl-smi">FnMut</span><span class="pl-kos">(</span><span class="pl-kos">)</span> + <span class="pl-c1">'</span><span class="pl-ent">static</span> + ?<span class="pl-smi">Sized</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-k">mut</span> <span class="pl-smi">T</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">:</span>?<span class="pl-smi">Sized</span> + <span class="pl-smi">FnMut</span><span class="pl-kos">(</span><span class="pl-kos">)</span> + <span class="pl-c1">'</span><span class="pl-ent">static</span><span class="pl-kos">&gt;</span> <span class="pl-smi">DerefMut</span> <span class="pl-k">for</span> <span class="pl-smi">S</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">deref_mut</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">Self</span><span class="pl-kos">::</span><span class="pl-smi">Target</span> <span class="pl-kos">{</span> <span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">0</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">:</span>?<span class="pl-smi">Sized</span> + <span class="pl-smi">FnMut</span><span class="pl-kos">(</span><span class="pl-kos">)</span> + <span class="pl-c1">'</span><span class="pl-ent">static</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Deref</span> <span class="pl-k">for</span> <span class="pl-smi">S</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Target</span> = <span class="pl-smi">FnMut</span><span class="pl-kos">(</span><span class="pl-kos">)</span> + <span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">deref</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -&gt; <span class="pl-c1">&amp;</span><span class="pl-smi">Self</span><span class="pl-kos">::</span><span class="pl-smi">Target</span> <span class="pl-kos">{</span> <span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">0</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> f = ||<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> s = <span class="pl-v">S</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> f<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">s</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Yields:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;anon&gt;:13:5: 13:6 error: cannot borrow immutable borrowed content as mutable &lt;anon&gt;:13 s(); ^"><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:13:5: 13:6 error: cannot borrow immutable borrowed content as mutable &lt;anon&gt;:13 s(); ^ </code></pre></div> <p dir="auto">Auto-deref should be picking DerefMut here, not Deref.</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/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.2</li> <li>Operating System version: Mac Os</li> <li>Java version: JDK 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">Fix for PR: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="454652391" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/4276" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/4276/hovercard" href="https://github.com/apache/dubbo/pull/4276">#4276</a></p> <p dir="auto">Step 1: set executes to 1 in dubbo:service</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;demoService&quot; class=&quot;com.xxx.&quot;/&gt; &lt;dubbo:service interface=&quot;com.xxx&quot; ref=&quot;demoService&quot; executes=&quot;1&quot;&gt; &lt;/dubbo:service&gt;"><pre class="notranslate"><code class="notranslate">&lt;bean id="demoService" class="com.xxx."/&gt; &lt;dubbo:service interface="com.xxx" ref="demoService" executes="1"&gt; &lt;/dubbo:service&gt; </code></pre></div> <p dir="auto">Step 2:<br> Invoke service with two threads concurrent. The second one have been rate limited.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ExecutorService executorService = Executors.newFixedThreadPool(2); for (int i = 0; i &lt; 2; i++) { executorService.submit(new Runnable() { @Override public void run() { String result = service.sayHello(input); System.out.println(result); } }); }"><pre class="notranslate"><code class="notranslate">ExecutorService executorService = Executors.newFixedThreadPool(2); for (int i = 0; i &lt; 2; i++) { executorService.submit(new Runnable() { @Override public void run() { String result = service.sayHello(input); System.out.println(result); } }); } </code></pre></div> <p dir="auto">Step 3:<br> Repeat step 2, all two requests have been passed.</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">Step 3 should be rate limited.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Step 3 have not been rate limited.</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>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ReferenceConfig referenceConfig = new ReferenceConfig(); //application String appName = AppInfoUtils.getAppName(); ApplicationConfig applicationConfig = new ApplicationConfig(); applicationConfig.setName(appName); referenceConfig.setApplication(applicationConfig); //registry //zookeeper://127.0.0.1:2181 referenceConfig.setRegistry(&quot;zookeeper://127.0.0.1:2181&quot;); ......"><pre class="notranslate"><code class="notranslate"> ReferenceConfig referenceConfig = new ReferenceConfig(); //application String appName = AppInfoUtils.getAppName(); ApplicationConfig applicationConfig = new ApplicationConfig(); applicationConfig.setName(appName); referenceConfig.setApplication(applicationConfig); //registry //zookeeper://127.0.0.1:2181 referenceConfig.setRegistry("zookeeper://127.0.0.1:2181"); ...... </code></pre></div> <h3 dir="auto">Expected Result</h3> <p dir="auto">it can use zookeeper registry</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">it does't work</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: No registry config found or it's not a valid config! The registry config is: &lt;dubbo:registry zookeeperProtocol=&quot;false&quot; valid=&quot;false&quot; id=&quot;zookeeper://127.0.0.1:2181&quot; prefix=&quot;dubbo.registries.&quot; /&gt; at org.apache.dubbo.config.AbstractInterfaceConfig.checkRegistry(AbstractInterfaceConfig.java:129) at org.apache.dubbo.config.AbstractInterfaceConfig.loadRegistries(AbstractInterfaceConfig.java:198) at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:358) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:314) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:232)"><pre class="notranslate"><code class="notranslate">java.lang.IllegalStateException: No registry config found or it's not a valid config! The registry config is: &lt;dubbo:registry zookeeperProtocol="false" valid="false" id="zookeeper://127.0.0.1:2181" prefix="dubbo.registries." /&gt; at org.apache.dubbo.config.AbstractInterfaceConfig.checkRegistry(AbstractInterfaceConfig.java:129) at org.apache.dubbo.config.AbstractInterfaceConfig.loadRegistries(AbstractInterfaceConfig.java:198) at org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:358) at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:314) at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:232) </code></pre></div>
0
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto"><strong>Problem</strong><br> The following pattern is inefficient from the command-line and often requires an alternate GUI tool:</p> <ol dir="auto"> <li>Run a command that produces a list</li> <li>For each entry in the list, run another command</li> </ol> <p dir="auto">For example:</p> <ol dir="auto"> <li>git status (say we are interested in the conflict list)</li> <li>For each file in the list above, "vi filename" to resolve merge conflicts</li> <li>For each file in the list above, "git add"</li> </ol> <p dir="auto">In practice, this pattern has so much duplicate typing from the command-line, often people are required to use a GUI tool instead.</p> <p dir="auto"><strong>Proposal</strong><br> Add a multi-command feature so the list work flow becomes:</p> <ol dir="auto"> <li>Run a command that produces the list (eg. git status)</li> <li>Alt-select list of interesting files</li> <li>Type "git add {special key}" to enter multi-command mode which replicates the current typed line for each row in the selection.</li> <li>Either type more commands afterwards or hit {enter} after to run multiple commands one at a time in the order they appear in the row selection.</li> </ol>
<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.356] Windows Terminal version (if applicable): Version: 0.5.2762.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.356] Windows Terminal version (if applicable): Version: 0.5.2762.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Switch to a font that contains ligatures that effect the '&gt;' character. (In my case I used Fira Code)<br> Type a character such as '=' on a fresh line and it will combine in with the text that you are normally unable to edit<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30984107/66928192-dca71f00-efe5-11e9-8c00-00313dc70580.png"><img src="https://user-images.githubusercontent.com/30984107/66928192-dca71f00-efe5-11e9-8c00-00313dc70580.png" alt="image" style="max-width: 100%;"></a></p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Not sure how impactful this really is but my expectation would be that the user would be unable to effect the current location text since they are unable to edit it as normal text</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The user typed character is being combined into the location text modifying the normally un-editable text</p>
0
<p dir="auto"><strong>Migrated issue, originally created by Sebastian Rittau (<a href="https://github.com/srittau">@srittau</a>)</strong></p> <p dir="auto">Please consider the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import create_engine, Column from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy.types import Integer, JSON DeclarativeBase = declarative_base() class Foo(DeclarativeBase): __tablename__ = &quot;foo&quot; id = Column(Integer, primary_key=True) json = Column(JSON) engine = create_engine(&quot;sqlite:///&quot;) engine.execute(&quot;CREATE TABLE foo(id INTEGER PRIMARY KEY, json JSON)&quot;) engine.execute(&quot;INSERT INTO foo(id, json) VALUES(123, '\&quot;bar\&quot;')&quot;) session = sessionmaker(bind=engine)() session.query(Foo).first()"><pre class="notranslate"><code class="notranslate">from sqlalchemy import create_engine, Column from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy.types import Integer, JSON DeclarativeBase = declarative_base() class Foo(DeclarativeBase): __tablename__ = "foo" id = Column(Integer, primary_key=True) json = Column(JSON) engine = create_engine("sqlite:///") engine.execute("CREATE TABLE foo(id INTEGER PRIMARY KEY, json JSON)") engine.execute("INSERT INTO foo(id, json) VALUES(123, '\"bar\"')") session = sessionmaker(bind=engine)() session.query(Foo).first() </code></pre></div> <p dir="auto">Running this with SQLAlchemy 1.2.5 and Python 3.6.5rc1, I get the following traceback:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/sql/type_api.py&quot;, line 471, in _cached_result_processor return dialect._type_memos[self][coltype] File &quot;/usr/lib/python3.6/weakref.py&quot;, line 394, in __getitem__ return self.data[ref(key)] KeyError: &lt;weakref at 0x7f7466d6f688; to 'JSON' at 0x7f746a797588&gt; During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/home/srittau/.PyCharm2017.3/config/scratches/scratch_13.py&quot;, line 22, in &lt;module&gt; session.query(Foo).first() File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/orm/query.py&quot;, line 2789, in first ret = list(self[0:1]) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/orm/query.py&quot;, line 2581, in __getitem__ return list(res) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/orm/query.py&quot;, line 2889, in __iter__ return self._execute_and_instances(context) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/orm/query.py&quot;, line 2912, in _execute_and_instances result = conn.execute(querycontext.statement, self._params) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 948, in execute return meth(self, multiparams, params) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/sql/elements.py&quot;, line 269, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1060, in _execute_clauseelement compiled_sql, distilled_params File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1215, in _execute_context result = context.get_result_proxy() File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 1008, in get_result_proxy return result.ResultProxy(self) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py&quot;, line 649, in __init__ self._init_metadata() File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py&quot;, line 678, in _init_metadata self._metadata = ResultMetaData(self, cursor_description) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py&quot;, line 215, in __init__ num_ctx_cols, cols_are_ordered, textual_ordered) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py&quot;, line 379, in _merge_cursor_description in enumerate(result_columns) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py&quot;, line 378, in &lt;listcomp&gt; ) for idx, (key, name, obj, type_) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 971, in get_result_processor return type_._cached_result_processor(self.dialect, coltype) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/sql/type_api.py&quot;, line 477, in _cached_result_processor d[coltype] = rp = d['impl'].result_processor(dialect, coltype) File &quot;/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/sql/sqltypes.py&quot;, line 2148, in result_processor json_deserializer = dialect._json_deserializer or json.loads AttributeError: 'SQLiteDialect_pysqlite' object has no attribute '_json_deserializer'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/sql/type_api.py", line 471, in _cached_result_processor return dialect._type_memos[self][coltype] File "/usr/lib/python3.6/weakref.py", line 394, in __getitem__ return self.data[ref(key)] KeyError: &lt;weakref at 0x7f7466d6f688; to 'JSON' at 0x7f746a797588&gt; During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/srittau/.PyCharm2017.3/config/scratches/scratch_13.py", line 22, in &lt;module&gt; session.query(Foo).first() File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2789, in first ret = list(self[0:1]) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2581, in __getitem__ return list(res) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2889, in __iter__ return self._execute_and_instances(context) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 2912, in _execute_and_instances result = conn.execute(querycontext.statement, self._params) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 948, in execute return meth(self, multiparams, params) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 269, in _execute_on_connection return connection._execute_clauseelement(self, multiparams, params) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1060, in _execute_clauseelement compiled_sql, distilled_params File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1215, in _execute_context result = context.get_result_proxy() File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 1008, in get_result_proxy return result.ResultProxy(self) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 649, in __init__ self._init_metadata() File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 678, in _init_metadata self._metadata = ResultMetaData(self, cursor_description) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 215, in __init__ num_ctx_cols, cols_are_ordered, textual_ordered) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 379, in _merge_cursor_description in enumerate(result_columns) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/result.py", line 378, in &lt;listcomp&gt; ) for idx, (key, name, obj, type_) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 971, in get_result_processor return type_._cached_result_processor(self.dialect, coltype) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/sql/type_api.py", line 477, in _cached_result_processor d[coltype] = rp = d['impl'].result_processor(dialect, coltype) File "/home/srittau/.virtualenvs/zc-api-3.6/lib/python3.6/site-packages/sqlalchemy/sql/sqltypes.py", line 2148, in result_processor json_deserializer = dialect._json_deserializer or json.loads AttributeError: 'SQLiteDialect_pysqlite' object has no attribute '_json_deserializer' </code></pre></div> <p dir="auto">Line 2148 of <code class="notranslate">sqlalchemy/sql/sqltypes.py</code> reads:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" json_deserializer = dialect._json_deserializer or json.loads"><pre class="notranslate"><code class="notranslate"> json_deserializer = dialect._json_deserializer or json.loads </code></pre></div> <p dir="auto">I suspect this is supposed to read</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" json_deserializer = dialect._json_deserializer if hasattr(dialect, &quot;_json_deserializer&quot;) else json.loads"><pre class="notranslate"><code class="notranslate"> json_deserializer = dialect._json_deserializer if hasattr(dialect, "_json_deserializer") else json.loads </code></pre></div> <p dir="auto">to support dialects without native JSON support.</p>
<p dir="auto"><strong>Migrated issue, originally created by Shengjing Zhu (<a href="https://github.com/zhsj">@zhsj</a>)</strong></p> <p dir="auto">sqlalchemy.types.JSON only supports PostgreSQL and MySQL. But since SQLite 3.9, it has json support, <a href="https://sqlite.org/json1.html" rel="nofollow">https://sqlite.org/json1.html</a></p> <p dir="auto">I hope sqlalchemy can support json1 too.</p>
1
<p dir="auto">In a simple component with an Output as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Output() final trigger = new LazyEventEmitter&lt;String&gt;();"><pre class="notranslate"><code class="notranslate">@Output() final trigger = new LazyEventEmitter&lt;String&gt;(); </code></pre></div> <p dir="auto">This error is thrown:<br> "Bad state: Stream has already been listened to."</p> <p dir="auto">Under the hood, the component uses a LazyEventEmitter (which is just a wrapper of Stream/Stream Controller), but it is <strong>not broadcast</strong>. Changing the controller to instantiate a broadcast stream fixes this, but up until now, we have been able to expect only one subscription from Angular framework.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Output() final trigger = new LazyEventEmitter&lt;String&gt;.broadcast();"><pre class="notranslate"><code class="notranslate">@Output() final trigger = new LazyEventEmitter&lt;String&gt;.broadcast(); </code></pre></div>
<p dir="auto">Consider this component:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({ selector: 'hero-detail', inputs: ['hero'], outputs: ['deleted'], template: ` &lt;div&gt; &lt;b&gt;Hero Detail: {{hero?.fullName}}&lt;/b&gt; &lt;button (click)=&quot;onDelete()&quot;&gt;Delete&lt;/button&gt; &lt;/div&gt; ` }) class HeroDetailComponent { @Input() hero: Hero; @Output() deleted = new EventEmitter(); onDelete() { this.deleted.next(this.hero); } }"><pre class="notranslate"><code class="notranslate">@Component({ selector: 'hero-detail', inputs: ['hero'], outputs: ['deleted'], template: ` &lt;div&gt; &lt;b&gt;Hero Detail: {{hero?.fullName}}&lt;/b&gt; &lt;button (click)="onDelete()"&gt;Delete&lt;/button&gt; &lt;/div&gt; ` }) class HeroDetailComponent { @Input() hero: Hero; @Output() deleted = new EventEmitter(); onDelete() { this.deleted.next(this.hero); } } </code></pre></div> <p dir="auto">Now we bind to it:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;hero-detail [hero]=&quot;currentHero&quot; (deleted)=&quot;onDeleted($event)&quot;&gt;&lt;/hero-detail&gt;"><pre class="notranslate"><code class="notranslate">&lt;hero-detail [hero]="currentHero" (deleted)="onDeleted($event)"&gt;&lt;/hero-detail&gt; </code></pre></div> <p dir="auto">When the user clicks the Delete button inside <code class="notranslate">&lt;hero-detail&gt;</code>, the parent's <code class="notranslate">onDeleted</code> method is called twice.</p> <p dir="auto">Remove either the <code class="notranslate">[outputs]</code> array or the <code class="notranslate">@Output</code> decoration and the parent's method is called only once.</p> <p dir="auto">The number of parent method calls increase by one for each additional <code class="notranslate">@Output</code> decoration.</p> <p dir="auto">I maintain that any number of mentions as an output &gt; 1 should still mean a single call to the parent method.</p>
1
<div class="highlight highlight-text-md notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Some heading Collapsing `#` should collapse all lower level headings; `##`, `###`, etc. ## Another heading Collapsing `##` should collapse all lower level headings; `###`, `####`, etc. ### Another heading And so on..."><pre class="notranslate"><span class="pl-mh"># <span class="pl-en">Some heading</span></span> Collapsing <span class="pl-s">`</span><span class="pl-c1">#</span><span class="pl-s">`</span> should collapse all lower level headings; <span class="pl-s">`</span><span class="pl-c1">##</span><span class="pl-s">`</span>, <span class="pl-s">`</span><span class="pl-c1">###</span><span class="pl-s">`</span>, etc. <span class="pl-mh">## <span class="pl-en">Another heading</span></span> Collapsing <span class="pl-s">`</span><span class="pl-c1">##</span><span class="pl-s">`</span> should collapse all lower level headings; <span class="pl-s">`</span><span class="pl-c1">###</span><span class="pl-s">`</span>, <span class="pl-s">`</span><span class="pl-c1">####</span><span class="pl-s">`</span>, etc. <span class="pl-mh">### <span class="pl-en">Another heading</span></span> And so on...</pre></div>
<p dir="auto">The current implementation of folding uses an indentation based folding strategy that is unaware of the language it works on. Knowledge on the underlying language allows us to solve the following requests:</p> <ul dir="auto"> <li>[folding] Cannot code fold empty functions <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135791496" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3349" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3349/hovercard" href="https://github.com/microsoft/vscode/issues/3349">#3349</a></li> <li>[folding] Collapse ending brace to the same line <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135795757" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3352" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3352/hovercard" href="https://github.com/microsoft/vscode/issues/3352">#3352</a></li> <li>[folding] Folded block comments should show */ <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135792155" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3350" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3350/hovercard" href="https://github.com/microsoft/vscode/issues/3350">#3350</a></li> <li>[folding] should not fold whitespace after function <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135796670" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3353" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3353/hovercard" href="https://github.com/microsoft/vscode/issues/3353">#3353</a></li> <li>[folding] Add code folding for markdown based on heading level <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135790053" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3347" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3347/hovercard" href="https://github.com/microsoft/vscode/issues/3347">#3347</a></li> <li>[folding] [lua] Weird code folding with Lua <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="137648390" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3602" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3602/hovercard" href="https://github.com/microsoft/vscode/issues/3602">#3602</a></li> <li>[folding] Collapse code block ignore comments inside this block <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="139890518" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3957" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3957/hovercard" href="https://github.com/microsoft/vscode/issues/3957">#3957</a></li> <li>[folding] Code Folding: support golang multiline strings <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="151930846" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/5994" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/5994/hovercard" href="https://github.com/microsoft/vscode/issues/5994">#5994</a></li> <li>[folding] Optionally fold chained method calls <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157350400" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/6991" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/6991/hovercard" href="https://github.com/microsoft/vscode/issues/6991">#6991</a></li> </ul>
1
<p dir="auto">Since we are retiring Camper News, we need a new dataset or API to replace our Camper News dataset in <a href="https://www.freecodecamp.com/challenges/show-relationships-with-a-force-directed-graph" rel="nofollow">Show Relationships with a Force Directed Graph</a>.</p> <p dir="auto">We need to identify the dataset (preferably one that doesn't require an API key) and update the challenge.</p>
<p dir="auto">We are retiring Camper News, so we need a new dataset for our Force-Directed Graph challenge (<del><a href="http://www.freecodecamp.com/challenges/show-relationships-with-a-force-directed-graph" rel="nofollow">http://www.freecodecamp.com/challenges/show-relationships-with-a-force-directed-graph</a></del>).</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Identify an appropriate dataset (preferably a static one, which we can host on FCC)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> implement a working CodePen demo of it</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I will fork it and record an updated video for it</li> </ul> <p dir="auto">Update by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raisedadead/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raisedadead">@raisedadead</a><br> Challenge has been replaced with new data set and has been renamed, its available now at<br> <a href="https://www.freecodecamp.com/challenges/show-national-contiguity-with-a-force-directed-graph" rel="nofollow">https://www.freecodecamp.com/challenges/show-national-contiguity-with-a-force-directed-graph</a></p> <p dir="auto">We now need a updated video of it.<br> /cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Septimus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Septimus">@Septimus</a></p>
1
<p dir="auto">When a folder has a lot of files, more than fits on the screen vertically, I would like to 'focus' a specific file by typing the first letters of the file.<br> I notice 'A' and 'D' are already mapped by default to <em>add</em> and <em>duplicate</em>, so I propse to add 'F' (or 'S') for <em>find</em> (or <em>search</em>) to use following keyboard input for finding a matching file and focusing it, bringing it into view if it's off screen.<br> A comparative user experience is in Windows Explorer, also when done there on the folder tree-view, if I remember correctly, the search is done over all currently visible nodes of the tree.</p>
<p dir="auto">To quickly select an item in the tree-view one knows the name of, it would be nice to search by typing ahead. For example the "Project Explorer" in Eclipse and GNOME's file manager Nautilus do this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11575/3895317/d9580b0a-224c-11e4-8dfc-b6e669a17e9a.png"><img src="https://cloud.githubusercontent.com/assets/11575/3895317/d9580b0a-224c-11e4-8dfc-b6e669a17e9a.png" alt="bildschirmfoto vom 2014-08-12 02 45 48" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11575/3895311/cb4a694a-224c-11e4-925a-881c51bc1bc1.png"><img src="https://cloud.githubusercontent.com/assets/11575/3895311/cb4a694a-224c-11e4-925a-881c51bc1bc1.png" alt="nautilus-select-3" style="max-width: 100%;"></a></p> <p dir="auto">A problem I see with this is that currently there are some keybindings like <kbd>m</kbd> that make it impossible to enter text when the tree-view is focused. One option qould be to prefix them with a modifier like <kbd>Ctrl</kbd>+<kbd>m</kbd> or move them to non-letter keys like <kbd>F2</kbd>.</p>
1
<p dir="auto">Bug Report:<br> When extending a native type possibleConstructorReturn helper returns the root prototype, instead of the correctly extended prototype.</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class ObjX extends Object{ logKeys(){ console.log(Object.keys(this)); } } const exObject = new ObjX; exObject['key'] = 'val'; exObject.logKeys();"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">ObjX</span> <span class="pl-k">extends</span> <span class="pl-v">Object</span><span class="pl-kos">{</span> <span class="pl-en">logKeys</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-s1">exObject</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">ObjX</span><span class="pl-kos">;</span> <span class="pl-s1">exObject</span><span class="pl-kos">[</span><span class="pl-s">'key'</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s">'val'</span><span class="pl-kos">;</span> <span class="pl-s1">exObject</span><span class="pl-kos">.</span><span class="pl-en">logKeys</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;:[&quot;es2015&quot;,&quot;stage-1&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"presets"</span>:<span class="pl-kos">[</span><span class="pl-s">"es2015"</span><span class="pl-kos">,</span><span class="pl-s">"stage-1"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">If you drop the above code directly in your browser console, it will quite happily output an array of <code class="notranslate">['key']</code>.</p> <p dir="auto">Extending native types, while uncommon has been a standard capability in javascript for a really long time. This behavior should be preserved by babel.</p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Currently, Babel will just bind the native constructor to the extended class. So calling new ObjX results in just a native object (none of the methods or properties of the extended class are preserved).</p> <h3 dir="auto">Possible Solution</h3> <p dir="auto">I spent an hour or two digging through Babel core and the flaw in logic is pretty apparent. When you extend a native class, Babel does this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="return _possibleConstructorReturn(this, (ObjX.__proto__ || Object.getPrototypeOf(ObjX)).apply(this, arguments));"><pre class="notranslate"><span class="pl-k">return</span> <span class="pl-en">_possibleConstructorReturn</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-v">ObjX</span><span class="pl-kos">.</span><span class="pl-c1">__proto__</span> <span class="pl-c1">||</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">getPrototypeOf</span><span class="pl-kos">(</span><span class="pl-v">ObjX</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">With possibleConstructorReturn relying on the following:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="return call &amp;&amp; (typeof call === &quot;object&quot; || typeof call === &quot;function&quot;) ? call : self;"><pre class="notranslate"><span class="pl-k">return</span> <span class="pl-s1">call</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">call</span> <span class="pl-c1">===</span> <span class="pl-s">"object"</span> <span class="pl-c1">||</span> <span class="pl-k">typeof</span> <span class="pl-s1">call</span> <span class="pl-c1">===</span> <span class="pl-s">"function"</span><span class="pl-kos">)</span> ? <span class="pl-s1">call</span> : <span class="pl-s1">self</span><span class="pl-kos">;</span></pre></div> <p dir="auto">In the case of creating a new class in Babel, the origin class doesn't call possibleConstructorReturn, it just does the classCallCheck. When you extend that, possibleConstructorReturn is called on a class that extends a brand new prototype. In which case, it does its error check and returns nothing, you end up with the 2 arguments, one being the extended prototype, and one being undefined. All works as it should.</p> <p dir="auto">In the case of extending a native type, by calling apply on the prototype you end up with a newly assigned value, which leaves us with self and call defined in possibleConstructorReturn and the blank native gets returned instead of self, which gives you the native prototype instead of your extended class.</p> <p dir="auto">It's pretty easy to solve this in a small scope, because when extending a native type it should just return self (in which case everything works fine, in this limited scenario). I was able to play with the logic in possibleConstructorReturn to try to get it to both work, as well as pass all of the current test scenarios, but when I tried it out in practice it obviously impacted other things.</p> <p dir="auto">This tells me that the logic that currently exists is very purposeful, but is also tightly coupled to handle a lot of scenarios, and it felt like touching this code required somebody more familiar with how/why Babel does classes the way it does.</p> <p dir="auto">Perhaps a low impact solution would be when generating the code, check to see if the class is extending a native type, in which case skip the possibleConstructorReturn logic when compiling the class?</p>
<p dir="auto">Current Babel transform, when it comes to call the parent</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(&quot;this hasn't been initialised - super() hasn't been called&quot;); } return call &amp;&amp; (typeof call === &quot;object&quot; || typeof call === &quot;function&quot;) ? call : self; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">_possibleConstructorReturn</span><span class="pl-kos">(</span><span class="pl-s1">self</span><span class="pl-kos">,</span> <span class="pl-s1">call</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-c1">!</span><span class="pl-s1">self</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">ReferenceError</span><span class="pl-kos">(</span><span class="pl-s">"this hasn't been initialised - super() hasn't been called"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">call</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">call</span> <span class="pl-c1">===</span> <span class="pl-s">"object"</span> <span class="pl-c1">||</span> <span class="pl-k">typeof</span> <span class="pl-s1">call</span> <span class="pl-c1">===</span> <span class="pl-s">"function"</span><span class="pl-kos">)</span> ? <span class="pl-s1">call</span> : <span class="pl-s1">self</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">It's a way too poor implementation.</p> <p dir="auto">If we take the current basic ES6 compat syntax:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class List extends Array {}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">List</span> <span class="pl-k">extends</span> <span class="pl-v">Array</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <p dir="auto">We'll realize babel does a bad job.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var l = new List(); l instanceof List; // false"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">l</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">List</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">l</span> <span class="pl-k">instanceof</span> <span class="pl-v">List</span><span class="pl-kos">;</span> <span class="pl-c">// false</span></pre></div> <p dir="auto">The reason is simple: Babel replace the returns and exit, without caring about userland expectations.</p> <p dir="auto">This is how above basic extend should desugar:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function List() { return Object.setPrototypeOf( Array.apply(this, arguments), List.prototype ); }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">List</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span> <span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">It's a very ad-hoc case for the initial example that currently fails, but it's good enough to understand that inheriting the prototype is the least of the problem.</p> <p dir="auto">Indeed, we have 3 ways to do that within a transpiled code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// losing the initial prototype // for polyfilled ES5+ or lower List.prototype = Object.create( Array.prototype, {constructor: { configurable: true, writable: true, value: List.prototype }} ); // using a cleaner way // for ES5+ compliant targets Object.setPrototypeOf( List.prototype, Array.prototype ); // using a cleaner way // that works well with // partially polyfilled .setPrototypeOf List.prototype = Object.setPrototypeOf( List.prototype, Array.prototype );"><pre class="notranslate"><span class="pl-c">// losing the initial prototype</span> <span class="pl-c">// for polyfilled ES5+ or lower</span> <span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span> <span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">constructor</span>: <span class="pl-kos">{</span> <span class="pl-c1">configurable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">writable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">value</span>: <span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// using a cleaner way</span> <span class="pl-c">// for ES5+ compliant targets</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span> <span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span> <span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// using a cleaner way</span> <span class="pl-c">// that works well with</span> <span class="pl-c">// partially polyfilled .setPrototypeOf</span> <span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span> <span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span> <span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Solved the inheritance bit, considering Babel also set the prototype of each constructor,<br> we need to address cases where a <code class="notranslate">super</code> call might "<em>upgrade</em>" the current context, like it is for <code class="notranslate">HTMLELement</code> or exotic native objects.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// native ES6 static example class List extends Array { constructor(a, b, c) { super(a, b); this.push(c); } }"><pre class="notranslate"><span class="pl-c">// native ES6 static example</span> <span class="pl-k">class</span> <span class="pl-v">List</span> <span class="pl-k">extends</span> <span class="pl-v">Array</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">c</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">Above case should desugar to something like the follwoing:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function List(a, b, c) { // the super bit var self = Object.setPrototypeOf( Array.call(this, a, b), List.prototype ); // the rest with swapped context self.push(c); // at the end return self; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">List</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// the super bit</span> <span class="pl-k">var</span> <span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span> <span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">List</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// the rest with swapped context</span> <span class="pl-s1">self</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// at the end</span> <span class="pl-k">return</span> <span class="pl-s1">self</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">which is also ad-hoc example code for the previous example.</p> <p dir="auto">Considering a transpiler will get the arguments part easily right, this is how previous case could be generically transpiled for arguments used in both constructors:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// to make it as generic as possible function Child() { // the super call bit desugar to ... var instance = Object.getPrototypeOf(Child) .apply(this, arguments), type = instance ? typeof instance : '', // if Parent overwrote its default return self = (type === 'object' || type === 'function') ? // upgrade the instance to reflect Child constructor Object.setPrototypeOf(instance, Child.prototype) : // otherwise use the current context as is this ; // at this point, the rest of the constructor // should use `self` instead of `this` self.push(c); // and return `self` reference at the end return self; }"><pre class="notranslate"><span class="pl-c">// to make it as generic as possible</span> <span class="pl-k">function</span> <span class="pl-v">Child</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// the super call bit desugar to ...</span> <span class="pl-k">var</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">getPrototypeOf</span><span class="pl-kos">(</span><span class="pl-v">Child</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-s1">instance</span> ? <span class="pl-k">typeof</span> <span class="pl-s1">instance</span> : <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c">// if Parent overwrote its default return</span> <span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'object'</span> <span class="pl-c1">||</span> <span class="pl-s1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'function'</span><span class="pl-kos">)</span> ? <span class="pl-c">// upgrade the instance to reflect Child constructor</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">,</span> <span class="pl-v">Child</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">)</span> : <span class="pl-c">// otherwise use the current context as is</span> <span class="pl-smi">this</span> <span class="pl-kos">;</span> <span class="pl-c">// at this point, the rest of the constructor</span> <span class="pl-c">// should use `self` instead of `this`</span> <span class="pl-s1">self</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// and return `self` reference at the end</span> <span class="pl-k">return</span> <span class="pl-s1">self</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The last problem is that modern syntax would use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect" rel="nofollow">Reflect</a> to create any sort of object, instead of old, ES3 friendly, <code class="notranslate">.call</code> or <code class="notranslate">.apply</code> way.</p> <p dir="auto">Following a past, present, and even future proof approach:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var reConstruct = typeof Reflect === 'object' ? Reflect.construct : function (Parent, args, Child) { return Parent.apply(this, args); } ; function Child() { // the super call bit var instance = reConstruct.call( this, Object.getPrototypeOf(Child), arguments, Child ), type = instance ? typeof instance : '', self = (type === 'object' || type === 'function') ? Object.setPrototypeOf(instance, Child.prototype) : this ; // the rest of the constructor body self.push(c); // at the end or instead of empty returns return self; }"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">reConstruct</span> <span class="pl-c1">=</span> <span class="pl-k">typeof</span> <span class="pl-v">Reflect</span> <span class="pl-c1">===</span> <span class="pl-s">'object'</span> ? <span class="pl-v">Reflect</span><span class="pl-kos">.</span><span class="pl-c1">construct</span> : <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Parent</span><span class="pl-kos">,</span> <span class="pl-s1">args</span><span class="pl-kos">,</span> <span class="pl-v">Child</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-v">Parent</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-v">Child</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// the super call bit</span> <span class="pl-k">var</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-s1">reConstruct</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span> <span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">getPrototypeOf</span><span class="pl-kos">(</span><span class="pl-v">Child</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">,</span> <span class="pl-v">Child</span> <span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-s1">instance</span> ? <span class="pl-k">typeof</span> <span class="pl-s1">instance</span> : <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-s1">self</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'object'</span> <span class="pl-c1">||</span> <span class="pl-s1">type</span> <span class="pl-c1">===</span> <span class="pl-s">'function'</span><span class="pl-kos">)</span> ? <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">setPrototypeOf</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">,</span> <span class="pl-v">Child</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">)</span> : <span class="pl-smi">this</span> <span class="pl-kos">;</span> <span class="pl-c">// the rest of the constructor body</span> <span class="pl-s1">self</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// at the end or instead of empty returns</span> <span class="pl-k">return</span> <span class="pl-s1">self</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Above solution would work with userland, exotic, or DOM constructors, and in both native and transpiled engines.</p>
1
<p dir="auto">Where <code class="notranslate">target: "web"</code> is set inside Webpack, it defaults <code class="notranslate">resolve.mainFields</code> to be <code class="notranslate">["browser", "module", "main"]</code>.</p> <p dir="auto">I'm running into issues whereby certain libraries like <a href="https://github.com/krisk/fuse">https://github.com/krisk/fuse</a> (amongst others) are not transpiling the code they reference via <code class="notranslate">module</code>. This means that where <code class="notranslate">module</code> is prioritised over <code class="notranslate">main</code>, certain cutting-edge features are making it into the bundle file, hence resulting in poor browser compatibility.</p> <p dir="auto">The argument can be made that libraries should transpile their <code class="notranslate">module</code> output by default whilst keeping ES Module support; however, this doesn't seem to be standardised, and to me it seems like an uphill battle to enforce our interpretation of a non-standard feature (there is no mention in any <a href="https://github.com/dherman/defense-of-dot-js/blob/master/proposal.md">proposed spec</a> of whether <code class="notranslate">module</code> can or cannot contain cutting-edge JavaScript).</p> <ol dir="auto"> <li>Is this current method of prioritising the <code class="notranslate">module</code> field before <code class="notranslate">main</code> in all circumstances the most appropriate way to handle module resolution?</li> <li>What is the best approach to ensuring maximum browser compatibility whilst reducing the amount of code to be transpiled during build processes, and preserving features such as tree-shaking?</li> </ol> <p dir="auto">I am considering a strategy similar to the following:</p> <ol dir="auto"> <li>If <code class="notranslate">browser</code> exists on <code class="notranslate">package.json</code>, load this; if not,</li> <li>If <code class="notranslate">module</code> exists on <code class="notranslate">package.json</code> <strong>and</strong> <code class="notranslate">sideEffects</code> is set to <code class="notranslate">false</code>, load this; if not,</li> <li>If <code class="notranslate">main</code> exists on <code class="notranslate">package.json</code>, load this; if not,</li> <li>If <code class="notranslate">module</code> exists on <code class="notranslate">package.json</code>, load this.</li> </ol> <p dir="auto">Any suggestions or thoughts on this issue are welcome! Thanks <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
<p dir="auto"><strong>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"><code class="notranslate">module</code> entry in <code class="notranslate">package.json</code> gets prioritised over the <code class="notranslate">main</code> entry (even on Node.js).</p> <p dir="auto">Consider <code class="notranslate">deepmerge</code> package: <a href="https://unpkg.com/[email protected]/dist/es.js" rel="nofollow">https://unpkg.com/[email protected]/dist/es.js</a></p> <p dir="auto">This:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... export default deepmerge_1;"><pre class="notranslate">... <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">deepmerge_1</span><span class="pl-kos">;</span></pre></div> <p dir="auto">gets transpiled into:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /* 2043 */ /*!********************************************************************!*\ !*** /Users/donaldtrump/work/JITU/node_modules/deepmerge/dist/es.js ***! \********************************************************************/ /*! exports provided: default */ /*! all exports used */ /***/ (function(module, __webpack_exports__, __webpack_require__) { .... var deepmerge_1 = deepmerge; /* harmony default export */ __webpack_exports__[&quot;default&quot;] = (deepmerge_1); /***/ }),"><pre class="notranslate"><span class="pl-c">/* 2043 */</span> <span class="pl-c">/*!********************************************************************!*\</span> <span class="pl-c"> !*** /Users/donaldtrump/work/JITU/node_modules/deepmerge/dist/es.js ***!</span> <span class="pl-c"> \********************************************************************/</span> <span class="pl-c">/*! exports provided: default */</span> <span class="pl-c">/*! all exports used */</span> <span class="pl-c">/***/</span> <span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">module</span><span class="pl-kos">,</span> <span class="pl-s1">__webpack_exports__</span><span class="pl-kos">,</span> <span class="pl-s1">__webpack_require__</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> ...<span class="pl-kos">.</span> <span class="pl-k">var</span> <span class="pl-s1">deepmerge_1</span> <span class="pl-c1">=</span> <span class="pl-s1">deepmerge</span><span class="pl-kos">;</span> <span class="pl-c">/* harmony default export */</span> <span class="pl-s1">__webpack_exports__</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">deepmerge_1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">/***/</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span></pre></div> <p dir="auto">And therefore another module using it and not suspecting anything crashes:<br> <a href="https://unpkg.com/[email protected]/src/Client.js" rel="nofollow">https://unpkg.com/[email protected]/src/Client.js</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var deepmerge = require('deepmerge'); this.options = deepmerge(defaultOptions, options || {}, true);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">deepmerge</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'deepmerge'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">options</span> <span class="pl-c1">=</span> <span class="pl-s1">deepmerge</span><span class="pl-kos">(</span><span class="pl-s1">defaultOptions</span><span class="pl-kos">,</span> <span class="pl-s1">options</span> <span class="pl-c1">||</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Because it naturally expects the plain and simple CommonJS export which is supposed to be a function.</p> <p dir="auto">Webpack tries to be overly smart in this case resulting in an incompatibility.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">Create an application using <code class="notranslate">rest-facade</code> and it will throw "deepmerge is not a function" (because it's an object now for no reason).</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Not throwing the aforementioned error</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>
1
<p dir="auto"><a href="http://build-us-00.elastic.co/job/es_core_master_centos/8910/testReport/junit/org.elasticsearch.action.admin.indices.create/CreateIndexIT/testCreateAndDeleteIndexConcurrently/" rel="nofollow">http://build-us-00.elastic.co/job/es_core_master_centos/8910/testReport/junit/org.elasticsearch.action.admin.indices.create/CreateIndexIT/testCreateAndDeleteIndexConcurrently/</a></p> <p dir="auto">Stacktrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UnavailableShardsException[[test][1] Primary shard is not active or isn't assigned to a known node. Timeout: [1m], request: index {[test][test][AVGADS6IhWB4gLTwZw1z], source[{&quot;index_version&quot;:1}]}] at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.retryBecauseUnavailable(TransportReplicationAction.java:665) at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.doRun(TransportReplicationAction.java:381) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase$3.onTimeout(TransportReplicationAction.java:522) at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:236) at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:628) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)"><pre class="notranslate"><code class="notranslate">UnavailableShardsException[[test][1] Primary shard is not active or isn't assigned to a known node. Timeout: [1m], request: index {[test][test][AVGADS6IhWB4gLTwZw1z], source[{"index_version":1}]}] at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.retryBecauseUnavailable(TransportReplicationAction.java:665) at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.doRun(TransportReplicationAction.java:381) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase$3.onTimeout(TransportReplicationAction.java:522) at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:236) at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:628) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) </code></pre></div> <p dir="auto">Interesting log lines:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2015-12-08 05:25:16,274][WARN ][org.elasticsearch.indices.cluster] [node_t0] [[test][1]] marking and sending shard failed due to [failed to create shard] org.apache.lucene.store.LockObtainFailedException: Can't lock shard [test][1], timed out after 5000ms at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:556) at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:485) at org.elasticsearch.index.IndexService.createShard(IndexService.java:236) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:591) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:491) at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185) at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:526) at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:596) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ... [2015-12-08 05:25:26,295][DEBUG][org.elasticsearch.cluster.routing.allocation] [node_t0] [test][0] ignoring shard failure, unknown allocation id in [test][0], node[w7ZOpTaqRi6UI-q9EjfG2Q], [P], v[1], s[INITIALIZING], a[id=WmeldM5ORfuNr8rWhbHvYQ], unassigned_info[[reason=INDEX_CREATED], at[2015-12-08T05:25:11.268Z]] ([reason=ALLOCATION_FAILED], at[2015-12-08T05:25:26.295Z], details[master {node_t0}{w7ZOpTaqRi6UI-q9EjfG2Q}{local}{local[182]}[mode=&gt;local] marked shard as initializing, but shard is marked as failed, resend shard failure]) ... [2015-12-08 05:25:26,303][DEBUG][org.elasticsearch.gateway] [node_t0] [test][0] found 0 allocations of [test][0], node[null], [P], v[2], s[UNASSIGNED], unassigned_info[[reason=ALLOCATION_FAILED], at[2015-12-08T05:25:26.294Z], details[failed to create shard, failure LockObtainFailedException[Can't lock shard [test][0], timed out after 5000ms]]], highest version: [-1]"><pre class="notranslate"><code class="notranslate">[2015-12-08 05:25:16,274][WARN ][org.elasticsearch.indices.cluster] [node_t0] [[test][1]] marking and sending shard failed due to [failed to create shard] org.apache.lucene.store.LockObtainFailedException: Can't lock shard [test][1], timed out after 5000ms at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:556) at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:485) at org.elasticsearch.index.IndexService.createShard(IndexService.java:236) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:591) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:491) at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185) at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:526) at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:596) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ... [2015-12-08 05:25:26,295][DEBUG][org.elasticsearch.cluster.routing.allocation] [node_t0] [test][0] ignoring shard failure, unknown allocation id in [test][0], node[w7ZOpTaqRi6UI-q9EjfG2Q], [P], v[1], s[INITIALIZING], a[id=WmeldM5ORfuNr8rWhbHvYQ], unassigned_info[[reason=INDEX_CREATED], at[2015-12-08T05:25:11.268Z]] ([reason=ALLOCATION_FAILED], at[2015-12-08T05:25:26.295Z], details[master {node_t0}{w7ZOpTaqRi6UI-q9EjfG2Q}{local}{local[182]}[mode=&gt;local] marked shard as initializing, but shard is marked as failed, resend shard failure]) ... [2015-12-08 05:25:26,303][DEBUG][org.elasticsearch.gateway] [node_t0] [test][0] found 0 allocations of [test][0], node[null], [P], v[2], s[UNASSIGNED], unassigned_info[[reason=ALLOCATION_FAILED], at[2015-12-08T05:25:26.294Z], details[failed to create shard, failure LockObtainFailedException[Can't lock shard [test][0], timed out after 5000ms]]], highest version: [-1] </code></pre></div> <p dir="auto">Analysis:</p> <p dir="auto">What's happening is that index creation fails as locks cannot be obtained for allocating shards (I'm not sure why that is). Shards are marked as failed: This changes UnassignedInfo of the ShardRouting objects by setting reason from INDEX_CREATED to ALLOCATION_FAILED. What this entails is that the PrimaryShardAllocator does not treat these unassigned shards as "new index creation" anymore, but requires that shard data is available before assigning them. Relates to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120410083" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/15241" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/15241/hovercard" href="https://github.com/elastic/elasticsearch/issues/15241">#15241</a>.</p>
<p dir="auto">Test failure: <a href="http://build-us-00.elastic.co/job/es_core_master_window-2008/2553/testReport/junit/org.elasticsearch.indices.state/RareClusterStateIT/testDeleteCreateInOneBulk/" rel="nofollow">http://build-us-00.elastic.co/job/es_core_master_window-2008/2553/testReport/junit/org.elasticsearch.indices.state/RareClusterStateIT/testDeleteCreateInOneBulk/</a></p> <p dir="auto">The test fails due to a race in acquiring <code class="notranslate">ShardLock</code> locks.</p> <p dir="auto">When an index is deleted, an asynchronous process is started to process pending deletes on shards of that index. This process first acquires all <code class="notranslate">ShardLock</code> locks for the given index in numeric shard order. Meanwhile, the new index can already have been created, and some shard locks can already be held due to shard creation in <code class="notranslate">IndicesClusterStateService.applyInitializingShard</code>. For example, shard 0 is locked by <code class="notranslate">processPendingDeletes</code> but shard 1 is locked by <code class="notranslate">applyInitializingShard</code>. In that case, <code class="notranslate">processPendingDeletes</code> cannot lock shard 1 and blocks (and will hold lock on shard 0 for 30 minutes). This means that shard 0 cannot be initialised for 30 minutes.</p> <p dir="auto">Interesting bits of stack trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;elasticsearch[node_t1][generic][T#2]&quot; ID=602 TIMED_WAITING on java.util.concurrent.Semaphore$NonfairSync@2fc45c3b at sun.misc.Unsafe.park(Native Method) - timed waiting on java.util.concurrent.Semaphore$NonfairSync@2fc45c3b at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328) at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:409) at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:555) at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:485) at org.elasticsearch.env.NodeEnvironment.lockAllForIndex(NodeEnvironment.java:429) at org.elasticsearch.indices.IndicesService.processPendingDeletes(IndicesService.java:649) at org.elasticsearch.cluster.action.index.NodeIndexDeletedAction.lockIndexAndAck(NodeIndexDeletedAction.java:101) at org.elasticsearch.cluster.action.index.NodeIndexDeletedAction.access$300(NodeIndexDeletedAction.java:46) at org.elasticsearch.cluster.action.index.NodeIndexDeletedAction$1.doRun(NodeIndexDeletedAction.java:90) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Locked synchronizers: - java.util.concurrent.ThreadPoolExecutor$Worker@b17810e &quot;elasticsearch[node_t1][clusterService#updateTask][T#1]&quot; ID=591 TIMED_WAITING on java.util.concurrent.Semaphore$NonfairSync@7fdcd730 at sun.misc.Unsafe.park(Native Method) - timed waiting on java.util.concurrent.Semaphore$NonfairSync@7fdcd730 at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328) at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:409) at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:555) at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:485) at org.elasticsearch.index.IndexService.createShard(IndexService.java:234) - locked org.elasticsearch.index.IndexService@707e1798 at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:628) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:528) at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185) - locked java.lang.Object@773b911a at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:517) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Locked synchronizers: - java.util.concurrent.ThreadPoolExecutor$Worker@26f887da"><pre class="notranslate"><code class="notranslate">"elasticsearch[node_t1][generic][T#2]" ID=602 TIMED_WAITING on java.util.concurrent.Semaphore$NonfairSync@2fc45c3b at sun.misc.Unsafe.park(Native Method) - timed waiting on java.util.concurrent.Semaphore$NonfairSync@2fc45c3b at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328) at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:409) at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:555) at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:485) at org.elasticsearch.env.NodeEnvironment.lockAllForIndex(NodeEnvironment.java:429) at org.elasticsearch.indices.IndicesService.processPendingDeletes(IndicesService.java:649) at org.elasticsearch.cluster.action.index.NodeIndexDeletedAction.lockIndexAndAck(NodeIndexDeletedAction.java:101) at org.elasticsearch.cluster.action.index.NodeIndexDeletedAction.access$300(NodeIndexDeletedAction.java:46) at org.elasticsearch.cluster.action.index.NodeIndexDeletedAction$1.doRun(NodeIndexDeletedAction.java:90) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Locked synchronizers: - java.util.concurrent.ThreadPoolExecutor$Worker@b17810e "elasticsearch[node_t1][clusterService#updateTask][T#1]" ID=591 TIMED_WAITING on java.util.concurrent.Semaphore$NonfairSync@7fdcd730 at sun.misc.Unsafe.park(Native Method) - timed waiting on java.util.concurrent.Semaphore$NonfairSync@7fdcd730 at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328) at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:409) at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:555) at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:485) at org.elasticsearch.index.IndexService.createShard(IndexService.java:234) - locked org.elasticsearch.index.IndexService@707e1798 at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:628) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:528) at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185) - locked java.lang.Object@773b911a at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:517) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Locked synchronizers: - java.util.concurrent.ThreadPoolExecutor$Worker@26f887da </code></pre></div>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">nPOT textures can be swapped during the uploading process if the textures were already in Browser Cache.</p> <h5 dir="auto">Repeating of the problem</h5> <ul dir="auto"> <li>Open <a href="https://exponenta.github.io/ThreeJsBug/" rel="nofollow">this link</a> in Chrome on Android device.</li> <li>Toilets must be bottom of screen, baths must be on top of screen.</li> <li>Reload some page</li> <li>Now bath and toilets mixed on both sides (or may be only baths, or only toilets)</li> </ul> <h5 dir="auto">Simple fix</h5> <p dir="auto">Adding <code class="notranslate">var _canvas</code> in <a href="https://github.com/mrdoob/three.js/blob/dev/src/renderers/webgl/WebGLTextures.js#L59">this line</a> fixes it.</p> <p dir="auto">One more possible (unconfirmed) fix: use <code class="notranslate">createImageBitmap</code> on Image before doing the resize.</p> <p dir="auto">It seems that <code class="notranslate">texImage2d</code> somehow doesnt get update from that canvas in time.</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <p dir="auto">Device: Huawei Nova<br> Android 7.0<br> Chrome 65.0.3325.109</p> <p dir="auto">Second Device: Meizu M2 Note<br> Android 5.1.1<br> Chrome 65.0.3325.109</p> <h5 dir="auto">Proofs</h5> <p dir="auto">PC (as reference)<br> <a target="_blank" rel="noopener noreferrer" href="https://github.com/eXponenta/ThreeJsBug/raw/master/sreens/pc.jpg"><img src="https://github.com/eXponenta/ThreeJsBug/raw/master/sreens/pc.jpg" alt="PC" style="max-width: 100%;"></a></p> <p dir="auto">Mobile (Huawei Nova) (bug)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/eXponenta/ThreeJsBug/master/sreens/mobile1.png"><img src="https://raw.githubusercontent.com/eXponenta/ThreeJsBug/master/sreens/mobile1.png" alt="Mobile bug" style="max-width: 100%;"></a></p> <p dir="auto">Mobile (Huawei Nova) (bug)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/eXponenta/ThreeJsBug/master/sreens/mobile2.png"><img src="https://raw.githubusercontent.com/eXponenta/ThreeJsBug/master/sreens/mobile2.png" alt="Mobile bug" style="max-width: 100%;"></a></p>
<p dir="auto">As reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="277095939" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/12763" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/12763/hovercard?comment_id=364320372&amp;comment_type=issue_comment" href="https://github.com/mrdoob/three.js/pull/12763#issuecomment-364320372">#12763 (comment)</a>, we're currently updating the video texture at 60 (or 90 in VR) fps.</p> <p dir="auto">Ideally we'll only update the texture on the GPU in sync with the video framerate (usually 25-30). Unfortunately the web platform does not provide any API for figuring out the framerate of a video so something like <code class="notranslate">videoTexture.frameRate = 25</code> is needed.</p> <p dir="auto">It seemed easy enough so I tried to implement this (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="296523938" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/13304" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/13304/hovercard" href="https://github.com/mrdoob/three.js/pull/13304">#13304</a>) but I hit some browser bugs and I had to revert (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="296555028" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/13305" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/13305/hovercard" href="https://github.com/mrdoob/three.js/pull/13305">#13305</a>).</p> <p dir="auto">It'll be good to investigate this a bit more and report bugs to browsers if needed.</p>
1
<p dir="auto">Running ec2_elb_facts through a playbook generates the error below.</p> <p dir="auto">ansible 2.0.0.2<br> boto 2.38.0</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File &quot;/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts&quot;, line 2357, in &lt;module&gt; main() File &quot;/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts&quot;, line 193, in main list_elb(connection, module) File &quot;/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts&quot;, line 165, in list_elb elb_array.append(get_elb_info(elb)) File &quot;/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts&quot;, line 144, in get_elb_info 'health_check': get_health_check(elb.health_check), File &quot;/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts&quot;, line 124, in get_health_check 'ping_port': int(port), ValueError: invalid literal for int() with base 10: '443/healthtest/'"><pre class="notranslate"><code class="notranslate">An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 2357, in &lt;module&gt; main() File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 193, in main list_elb(connection, module) File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 165, in list_elb elb_array.append(get_elb_info(elb)) File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 144, in get_elb_info 'health_check': get_health_check(elb.health_check), File "/Users/robm/.ansible/tmp/ansible-tmp-1452917234.12-163996366850200/ec2_elb_facts", line 124, in get_health_check 'ping_port': int(port), ValueError: invalid literal for int() with base 10: '443/healthtest/' </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: localhost tasks: - action: module: ec2_elb_facts region: us-west-2 register: elb_facts"><pre class="notranslate"><code class="notranslate">- hosts: localhost tasks: - action: module: ec2_elb_facts region: us-west-2 register: elb_facts </code></pre></div>
<h5 dir="auto">Issue Type:</h5> <ul dir="auto"> <li>Bug Report</li> <li>Bugfix Pull Request: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="123711538" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-extras/issues/1420" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible-modules-extras/pull/1420/hovercard" href="https://github.com/ansible/ansible-modules-extras/pull/1420">#1420</a></li> </ul> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">Latest checkout from git (devel).</p> <h5 dir="auto">Ansible Configuration:</h5> <p dir="auto">No changes</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Running on Mac OSX against AWS EC2 Ubuntu instances.</p> <h5 dir="auto">Summary:</h5> <p dir="auto">In cloud/amazon/ec2_elb_facts.py:get_health_check,<br> Ping Target parsing is currently broken if the health-check path has more than one component e.g.:<br> HTTP:80/api/v1/health_check. Python str split will separate this into more than 2 components and throw a ValueError exception (since it is trying to assign to 2). The assigment in the exception handler than causes port = '80/api/v1/health_check' which causes a failure when creating the dict.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Create an ELB with a health-check that has more than one component in the path ie HTTP:80/api/vi/health_check/ instead of HTTP:80/health_check</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">module should not fail in this use case</p> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError: invalid literal for int() with base 10: '80/api/v1/health_check/'"><pre class="notranslate"><code class="notranslate">ValueError: invalid literal for int() with base 10: '80/api/v1/health_check/' </code></pre></div>
1
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Create a <code class="notranslate">CupertinoTabScaffold</code> with a <code class="notranslate">CupertinoTabBar</code> and multiple <code class="notranslate">BottomNavigationBarItem</code> with both <code class="notranslate">icon</code> and <code class="notranslate">activeIcon</code> arguments. Where the icon argument is wrapped in an <code class="notranslate">Opacity</code> widget.</li> </ol> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Example extends StatelessWidget{ @override Widget build(BuildContext context) { // TODO: implement build return CupertinoTabScaffold( // tabBuilder: ... , tabBar: CupertinoTabBar(items: [ BottomNavigationBarItem( title: Container(), icon: Image.asset( 'assets/images/icons/home-icon.png', ), activeIcon: Image.asset( 'assets/images/icons/home-icon-active.png', ) ), BottomNavigationBarItem( title: Container(), icon: Image.asset( 'assets/images/icons/search-icon.png', ), activeIcon: Image.asset( 'assets/images/icons/search-icon-active.png', ) ), // More icons ... ]), ); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">Example</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span>{ <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-c">// TODO: implement build</span> <span class="pl-k">return</span> <span class="pl-c1">CupertinoTabScaffold</span>( <span class="pl-c">// tabBuilder: ... ,</span> tabBar<span class="pl-k">:</span> <span class="pl-c1">CupertinoTabBar</span>(items<span class="pl-k">:</span> [ <span class="pl-c1">BottomNavigationBarItem</span>( title<span class="pl-k">:</span> <span class="pl-c1">Container</span>(), icon<span class="pl-k">:</span> <span class="pl-c1">Image</span>.<span class="pl-en">asset</span>( <span class="pl-s">'assets/images/icons/home-icon.png'</span>, ), activeIcon<span class="pl-k">:</span> <span class="pl-c1">Image</span>.<span class="pl-en">asset</span>( <span class="pl-s">'assets/images/icons/home-icon-active.png'</span>, ) ), <span class="pl-c1">BottomNavigationBarItem</span>( title<span class="pl-k">:</span> <span class="pl-c1">Container</span>(), icon<span class="pl-k">:</span> <span class="pl-c1">Image</span>.<span class="pl-en">asset</span>( <span class="pl-s">'assets/images/icons/search-icon.png'</span>, ), activeIcon<span class="pl-k">:</span> <span class="pl-c1">Image</span>.<span class="pl-en">asset</span>( <span class="pl-s">'assets/images/icons/search-icon-active.png'</span>, ) ), <span class="pl-c">// More icons ...</span> ]), ); } }</pre></div> <ol start="2" dir="auto"> <li> <p dir="auto">Start app and observe expected behaviour (also clicking around).<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12737509/48300845-2b9a2980-e4e4-11e8-86b5-1abea80561bb.png"><img src="https://user-images.githubusercontent.com/12737509/48300845-2b9a2980-e4e4-11e8-86b5-1abea80561bb.png" alt="image from ios" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">Lock phone, unlock phone and now observe grey squares where the other unactive icons used to be.</p> </li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12737509/48300865-98adbf00-e4e4-11e8-9bef-5a47e5760e97.png"><img src="https://user-images.githubusercontent.com/12737509/48300865-98adbf00-e4e4-11e8-9bef-5a47e5760e97.png" alt="image from ios 1" style="max-width: 100%;"></a></p> <ol start="4" dir="auto"> <li>Click one of the grey squares and observe everything work again.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12737509/48300872-c266e600-e4e4-11e8-8cdc-e86a116e197c.png"><img src="https://user-images.githubusercontent.com/12737509/48300872-c266e600-e4e4-11e8-8cdc-e86a116e197c.png" alt="image from ios 2" style="max-width: 100%;"></a></li> </ol> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Touch /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app cd /Users/joelhernandez/Documents/code/open-book/openbook-app/ios export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app /Contents/Developer/usr/bin:/Users/joelhernandez/Downloads/google-cloud-sdk/bin:/Users/joelhernandez/Documents/code/fl utter/bin:/Users/joelhernandez/.pyenv/plugins/pyenv-virtualenv/shims:/Users/joelhernandez/.pyenv/shims:/Users/joelhern andez/.nvm/versions/node/v9.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin&quot; /usr/bin/touch -c /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app CodeSign /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app cd /Users/joelhernandez/Documents/code/open-book/openbook-app/ios export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allo cate export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app /Contents/Developer/usr/bin:/Users/joelhernandez/Downloads/google-cloud-sdk/bin:/Users/joelhernandez/Documents/code/fl utter/bin:/Users/joelhernandez/.pyenv/plugins/pyenv-virtualenv/shims:/Users/joelhernandez/.pyenv/shims:/Users/joelhern andez/.nvm/versions/node/v9.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin&quot; Signing Identity: &quot;iPhone Developer: [email protected] (JVZQ75QNAC)&quot; Provisioning Profile: &quot;iOS Team Provisioning Profile: social.openbook&quot; (f2c24854-fc18-4aca-97ee-5261cd3960e5) /usr/bin/codesign --force --sign 0D41FBC8518187DEDD1CD34AC9CF752EBD76974C --entitlements /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noind ex/Runner.build/Debug-development-iphoneos/Runner.build/Runner.app.xcent --timestamp=none /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app Validate /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app cd /Users/joelhernandez/Documents/code/open-book/openbook-app/ios export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app /Contents/Developer/usr/bin:/Users/joelhernandez/Downloads/google-cloud-sdk/bin:/Users/joelhernandez/Documents/code/fl utter/bin:/Users/joelhernandez/.pyenv/plugins/pyenv-virtualenv/shims:/Users/joelhernandez/.pyenv/shims:/Users/joelhern andez/.nvm/versions/node/v9.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin&quot; export PRODUCT_TYPE=com.apple.product-type.application builtin-validationUtility /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app ** BUILD SUCCEEDED ** [ +90 ms] └─Compiling, linking and signing... (completed) [ ] Starting Xcode build... (completed) [ +6 ms] Xcode build done. 7.0s [ ] executing: [/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/] /usr/bin/env xcrun xcodebuild -configuration Debug-development VERBOSE_SCRIPT_LOGGING=YES -workspace Runner.xcworkspace -scheme development BUILD_DIR=/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios -sdk iphoneos SCRIPT_OUTPUT_STREAM_FILE=/var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/T/flutter_build_log_pipe.A9bNfB/pipe_to_stdout -showBuildSettings [ +911 ms] Exit code 0 from: /usr/bin/env xcrun xcodebuild -configuration Debug-development VERBOSE_SCRIPT_LOGGING=YES -workspace Runner.xcworkspace -scheme development BUILD_DIR=/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios -sdk iphoneos SCRIPT_OUTPUT_STREAM_FILE=/var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/T/flutter_build_log_pipe.A9bNfB/pipe_to_stdout -showBuildSettings [ ] Build settings from command line: BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios SCRIPT_OUTPUT_STREAM_FILE = /var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/T/flutter_build_log_pipe.A9bNfB/pipe_to_stdout SDKROOT = iphoneos12.1 VERBOSE_SCRIPT_LOGGING = YES Build settings for action build and target Runner: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = joelhernandez ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO ARCHS = armv7 ARCHS_STANDARD = armv7 arm64 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64 ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator BITCODE_GENERATION_MODE = marker BUILD_ACTIVE_RESOURCES_ONLY = NO BUILD_COMPONENTS = headers build BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios BUILD_ROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Products BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos CACHE_ROOT = /var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/C/com.apple.DeveloperTools/10.1-10B61/Xcode CCHROOT = /var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/C/com.apple.DeveloperTools/10.1-10B61/Xcode CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CLANG_ANALYZER_NONNULL = YES CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_MODULES = YES CLANG_ENABLE_OBJC_ARC = YES CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_COMMA = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES CLANG_WARN_OBJC_LITERAL_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_RANGE_LOOP_ANALYSIS = YES CLANG_WARN_STRICT_PROTOTYPES = YES CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO CODESIGNING_FOLDER_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPILER_INDEX_STORE_ENABLE = Default COMPOSITE_SDK_DIRS = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Compos iteSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Debug-development CONFIGURATION_BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos CONFIGURATION_TEMP_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos CONTENTS_FOLDER_PATH = Runner.app COPYING_PRESERVES_HFS_DATA = NO COPY_HEADERS_RUN_UNIFDEF = NO COPY_PHASE_STRIP = NO COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator12.1 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = armv7 CURRENT_PROJECT_VERSION = 1 CURRENT_VARIANT = normal DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_LD_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_LD_FLAG_NAME = ios_version_min DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.0 12.1 DERIVED_FILES_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/DerivedSources DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Applications DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Library DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Tools DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr DEVELOPMENT_LANGUAGE = English DEVELOPMENT_TEAM = BX63KSDAY5 DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation DO_HEADER_SCANNING_IN_JAM = NO DSTROOT = /tmp/Runner.dst DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DWARF_DSYM_FILE_NAME = Runner.app.dSYM DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO DWARF_DSYM_FOLDER_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos EFFECTIVE_PLATFORM_NAME = -iphoneos EMBEDDED_CONTENT_CONTAINS_SWIFT = NO EMBEDDED_PROFILE_NAME = embedded.mobileprovision EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO ENABLE_BITCODE = NO ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES ENABLE_HEADER_DEPENDENCIES = YES ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = YES ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_DESTINATION = Signature ENTITLEMENTS_REQUIRED = YES EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj EXECUTABLES_FOLDER_PATH = Runner.app/Executables EXECUTABLE_FOLDER_PATH = Runner.app EXECUTABLE_NAME = Runner EXECUTABLE_PATH = Runner.app/Runner EXPANDED_CODE_SIGN_IDENTITY = EXPANDED_CODE_SIGN_IDENTITY_NAME = EXPANDED_PROVISIONING_PROFILE = FILE_LIST = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app FLUTTER_BUILD_DIR = build FLUTTER_BUILD_MODE = debug FLUTTER_BUILD_NAME = 1.0.0 FLUTTER_BUILD_NUMBER = 1 FLUTTER_FRAMEWORK_DIR = /Users/joelhernandez/Documents/code/flutter/bin/cache/artifacts/engine/ios FLUTTER_ROOT = /Users/joelhernandez/Documents/code/flutter FLUTTER_TARGET = /Users/joelhernandez/Documents/code/open-book/openbook-app/lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/../.symlinks/flutter/ios&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/../.symlinks/flutter/ios&quot; /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Flutter FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_DYNAMIC_NO_PIC = NO GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_OPTIMIZATION_LEVEL = 0 GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 COCOAPODS=1 COCOAPODS=1 GCC_SYMBOLS_PRIVATE_EXTERN = NO GCC_THUMB_SUPPORT = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_VERSION = com.apple.compilers.llvm.clang.1_0 GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0 GCC_WARN_64_TO_32_BIT_CONVERSION = YES GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES GENERATE_MASTER_OBJECT_FILE = NO GENERATE_PKGINFO_FILE = YES GENERATE_PROFILING_CODE = NO GENERATE_TEXT_BASED_STUBS = NO GID = 20 GROUP = staff HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES HEADERMAP_INCLUDES_PROJECT_HEADERS = YES HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES HEADERMAP_USES_VFS = NO HEADER_SEARCH_PATHS = &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker&quot; HIDE_BITCODE_SYMBOLS = YES HOME = /Users/joelhernandez ICONV = /usr/bin/iconv INFOPLIST_EXPAND_BUILD_SETTINGS = YES INFOPLIST_FILE = Runner/development.plist INFOPLIST_OUTPUT_FORMAT = binary INFOPLIST_PATH = Runner.app/Info.plist INFOPLIST_PREPROCESS = NO INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings INLINE_PRIVATE_FRAMEWORKS = NO INSTALLHDRS_COPY_PHASE = NO INSTALLHDRS_SCRIPT_PHASE = NO INSTALL_DIR = /tmp/Runner.dst/Applications INSTALL_GROUP = staff INSTALL_MODE_FLAG = u+w,go-w,a+rX INSTALL_OWNER = joelhernandez INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 8.0 JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub JAVA_ARCHIVE_CLASSES = YES JAVA_ARCHIVE_TYPE = JAR JAVA_COMPILER = /usr/bin/javac JAVA_FOLDER_PATH = Runner.app/Java JAVA_FRAMEWORK_RESOURCES_DIRS = Resources JAVA_JAR_FLAGS = cv JAVA_SOURCE_SUBDIR = . JAVA_USE_DEPENDENCIES = YES JAVA_ZIP_FLAGS = -urg JIKES_DEFAULT_FLAGS = +E +OLDCSO KASAN_DEFAULT_CFLAGS = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Objects-normal/armv7/Runner_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Runner-LinkMap-normal-armv7.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/Frameworks' '@loader_path/Frameworks' @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LIBRARY_SEARCH_PATHS = &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/TOCropViewController&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/flutter_secure_storage&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/image_cropper&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/image_picker&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/TOCropViewController&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/flutter_secure_storage&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/image_cropper&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/image_picker&quot; /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Flutter LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_armv7 = LINK_WITH_STANDARD_LIBRARIES = YES LOCALIZABLE_CONTENT_DIR = LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj LOCALIZED_STRING_MACRO_NAMES = NSLocalizedString CFLocalizedString LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 18A391 MAC_OS_X_VERSION_ACTUAL = 101400 MAC_OS_X_VERSION_MAJOR = 101400 MAC_OS_X_VERSION_MINOR = 1400 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app MODULE_CACHE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/ModuleCache.noindex MTL_ENABLE_DEBUG_INFO = YES NATIVE_ARCH = armv7 NATIVE_ARCH_32_BIT = i386 NATIVE_ARCH_64_BIT = x86_64 NATIVE_ARCH_ACTUAL = x86_64 NO_COMMON = YES OBJECT_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex ONLY_ACTIVE_ARCH = YES OS = MACOS OSAC = /usr/bin/osacompile OTHER_CFLAGS = -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker&quot; OTHER_CPLUSPLUSFLAGS = -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper&quot; -isystem &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker&quot; OTHER_LDFLAGS = -ObjC -l&quot;TOCropViewController&quot; -l&quot;flutter_secure_storage&quot; -l&quot;image_cropper&quot; -l&quot;image_picker&quot; -framework &quot;Flutter&quot; -ObjC -l&quot;TOCropViewController&quot; -l&quot;flutter_secure_storage&quot; -l&quot;image_cropper&quot; -l&quot;image_picker&quot; -framework &quot;Flutter&quot; PACKAGE_TYPE = com.apple.package-type.wrapper.application PASCAL_STRINGS = YES PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/Users/joelhernandez/Downloads/google-cloud-sdk/bin:/Users/joelhernandez/Doc uments/code/flutter/bin:/Users/joelhernandez/.pyenv/plugins/pyenv-virtualenv/shims:/Users/joelhernandez/.pyenv/shims:/Users/joe lhernandez/.nvm/versions/node/v9.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist PFE_FILE_C_DIALECTS = objective-c PKGINFO_FILE_PATH = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/PkgInfo PKGINFO_PATH = Runner.app/PkgInfo PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform PLATFORM_DISPLAY_NAME = iOS PLATFORM_NAME = iphoneos PLATFORM_PREFERRED_ARCH = arm64 PLATFORM_PRODUCT_BUILD_VERSION = 16B91 PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PODS_BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios PODS_CONFIGURATION_BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos PODS_PODFILE_DIR_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/. PODS_ROOT = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = social.openbook PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Runner/development.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/DerivedSources PROJECT_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios PROJECT_FILE_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build PROJECT_TEMP_ROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex PROVISIONING_PROFILE_REQUIRED = YES PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES REMOVE_CVS_FROM_RESOURCES = YES REMOVE_GIT_FROM_RESOURCES = YES REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES REMOVE_HG_FROM_RESOURCES = YES REMOVE_SVN_FROM_RESOURCES = YES RESOURCE_RULES_REQUIRED = YES REZ_COLLECTOR_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/ResourceManagerResources REZ_OBJECTS_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/ResourceManagerResources/Objects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SCRIPT_OUTPUT_STREAM_FILE = /var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/T/flutter_build_log_pipe.A9bNfB/pipe_to_stdout SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk SDK_DIR_iphoneos12_1 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk SDK_NAME = iphoneos12.1 SDK_NAMES = iphoneos12.1 SDK_PRODUCT_BUILD_VERSION = 16B91 SDK_VERSION = 12.1 SDK_VERSION_ACTUAL = 120100 SDK_VERSION_MAJOR = 120000 SDK_VERSION_MINOR = 100 SED = /usr/bin/sed SEPARATE_STRIP = NO SEPARATE_SYMBOL_EDIT = NO SET_DIR_MODE_OWNER_GROUP = YES SET_FILE_MODE_OWNER_GROUP = NO SHALLOW_BUNDLE = YES SHARED_DERIVED_FILE_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Precom piledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios SRCROOT = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all STRIP_SWIFT_SYMBOLS = YES SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphonesimulator iphoneos SUPPORTS_TEXT_BASED_API = NO SWIFT_PLATFORM_TARGET_PREFIX = ios SYMROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Products SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1,2 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build TEMP_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build TEMP_FILES_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build TEMP_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build TEMP_ROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = joelhernandez USER_APPS_DIR = /Users/joelhernandez/Applications USER_LIBRARY_DIR = /Users/joelhernandez/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO VALIDATE_PRODUCT = NO VALID_ARCHS = arm64 arm64e armv7 armv7s VERBOSE_PBXCP = NO VERBOSE_SCRIPT_LOGGING = YES VERSIONING_SYSTEM = apple-generic VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = joelhernandez VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = &quot;@(#)PROGRAM:Runner PROJECT:Runner-1&quot; WRAPPER_EXTENSION = app WRAPPER_NAME = Runner.app WRAPPER_SUFFIX = .app WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode XCODE_PRODUCT_BUILD_VERSION = 10B61 XCODE_VERSION_ACTUAL = 1010 XCODE_VERSION_MAJOR = 1000 XCODE_VERSION_MINOR = 1010 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = armv7 variant = normal [ +365 ms] Installing and launching... [ ] Debugging is enabled, connecting to observatory [ +2 ms] executing: /usr/bin/env ios-deploy --id 1d548d079169fde4d329284ea2448a5b8982eaf3 --bundle build/ios/iphoneos/Runner.app --no-wifi --justlaunch --args --enable-dart-profiling --enable-checked-mode [ +20 ms] [....] Waiting for iOS device to be connected [ +20 ms] [....] Using 1d548d079169fde4d329284ea2448a5b8982eaf3 (D221AP, D221AP, uknownos, unkarch) a.k.a. '🥑'. [ ] ------ Install phase ------ [ ] [ 0%] Found 1d548d079169fde4d329284ea2448a5b8982eaf3 (D221AP, D221AP, uknownos, unkarch) a.k.a. '🥑' connected through USB, beginning install [ +486 ms] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/META-INF/ to device [ +1 ms] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/_CodeSignature/ to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/_CodeSignature/CodeResources to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon29x29.png to device [ ] [ 6%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 6%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Runner to device [ +16 ms] [ 6%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 6%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon29x29~ipad.png to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/ to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/Main.storyboardc/ to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t 0r.nib to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vd C.nib to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/Main.storyboardc/Info.plist to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/LaunchScreen.storyboardc/ to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Z e5-6b-2t3.nib to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/LaunchScreen.storyboardc/UIViewController- 01J-lp-oVM.nib to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/LaunchScreen.storyboardc/Info.plist to device [ ] [ 9%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/ to device [ ] [ 9%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/LICENSE to device [ +15 ms] [ 9%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/vm_snapshot_data to device [ +102 ms] [ 10%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/isolate_snapshot_data to device [ +10 ms] [ 11%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/AssetManifest.json to device [ ] [ 11%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/kernel_blob.bin to device [ +506 ms] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/FontManifest.json to device [ ] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/packages/ to device [ ] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/packages/cupertino_icons/ to device [ ] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/packages/cupertino_icons/assets/ to device [ ] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/packages/cupertino_icons/assets/Cupert inoIcons.ttf to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/.env.json to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/fonts/ to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/fonts/MaterialIcons-Regular.ttf to device [ +4 ms] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/ to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/ to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/pixel-universe.jpg to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/avatar.png to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/ to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/warning-icon.png to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/logout-icon.png to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/communities-icon.p ng to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/error-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/connections-icon.p ng to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/audience-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/media-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/camera-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/customize-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/create-post-icon.p ng to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/notifications-icon .png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/profile-icon.png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/gif-icon.png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/settings-icon.png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/burner-icon.png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/home-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/chat-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/help-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/info-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/search-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/success-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/confetti-background.gif to device [ ] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/splash-background.png to device [ +3 ms] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/openbook-o-logo.png to device [ +2 ms] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/lang/ to device [ ] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/lang/en.json to device [ ] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/lang/es.json to device [ ] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/fonts/ to device [ ] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/fonts/NunitoSans-Regular.ttf to device [ +1 ms] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/fonts/NunitoSans-Bold.ttf to device [ +7 ms] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Assets.car to device [ +2 ms] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppFrameworkInfo.plist to device [ ] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon40x40@2x~ipad.png to device [ ] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon76x76@2x~ipad.png to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon83.5x83.5@2x~ipad.png to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon29x29@2x~ipad.png to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/de.lproj/ to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/de.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ar.lproj/ to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ar.lproj/TOCropView ControllerLocalizable.strings to device [ +5 ms] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/zh-Hans.lproj/ to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/zh-Hans.lproj/TOCro pViewControllerLocalizable.strings to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ja.lproj/ to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ja.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/en.lproj/ to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/en.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/es.lproj/ to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/es.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/it.lproj/ to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/it.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ms.lproj/ to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ms.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ko.lproj/ to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ko.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/Base.lproj/ to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/Base.lproj/TOCropVi ewControllerLocalizable.strings to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/zh-Hant.lproj/ to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/zh-Hant.lproj/TOCro pViewControllerLocalizable.strings to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/da-DK.lproj/ to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/da-DK.lproj/TOCropV iewControllerLocalizable.strings to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/tr.lproj/ to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/tr.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/pl.lproj/ to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/pl.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/vi.lproj/ to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/vi.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ru.lproj/ to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ru.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/fr.lproj/ to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/fr.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/id.lproj/ to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/id.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/nl.lproj/ to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/nl.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/pt.lproj/ to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/pt.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/Info.plist to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon40x40~ipad.png to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/ to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/ to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/_CodeSignature/ to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/_CodeSignature/CodeResou rces to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/icudtl.dat to device [ +59 ms] [ 33%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/Flutter to device [+1274 ms] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/Info.plist to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/ to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/_CodeSignature/ to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/_CodeSignature/CodeResources to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/App to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/Info.plist to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon20x20~ipad.png to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/embedded.mobileprovision to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon20x20@2x~ipad.png to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Info.plist to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/PkgInfo to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon76x76~ipad.png to device [ +460 ms] [ 52%] CreatingStagingDirectory [ ] [ 57%] ExtractingPackage [ ] [ 60%] InspectingPackage [ +44 ms] [ 60%] TakingInstallLock [ +9 ms] [ 65%] PreflightingApplication [ +16 ms] [ 65%] InstallingEmbeddedProfile [ +6 ms] [ 70%] VerifyingApplication [ +911 ms] [ 75%] CreatingContainer [ +7 ms] [ 80%] InstallingApplication [ +9 ms] [ 85%] PostflightingApplication [ +2 ms] [ 90%] SandboxingApplication [ +15 ms] [ 95%] GeneratingApplicationMap [ +45 ms] [100%] Installed package build/ios/iphoneos/Runner.app [ +289 ms] ------ Debug phase ------ [ ] Starting debug of 1d548d079169fde4d329284ea2448a5b8982eaf3 (D221AP, D221AP, uknownos, unkarch) a.k.a. '🥑' connected through USB... [ +172 ms] [ 0%] Looking up developer disk image [ +28 ms] [ 95%] Developer disk image mounted successfully [ +335 ms] [100%] Connecting to remote debug server [ ] ------------------------- [ +77 ms] (lldb) command source -s 0 '/tmp/0EC6C4A0-1B22-49D3-A33E-695E59D38BCF/fruitstrap-lldb-prep-cmds-1d548d079169fde4d329284ea2448a5b8982eaf3' [ ] Executing commands in '/tmp/0EC6C4A0-1B22-49D3-A33E-695E59D38BCF/fruitstrap-lldb-prep-cmds-1d548d079169fde4d329284ea2448a5b8982eaf3'. [ ] (lldb) platform select remote-ios --sysroot '/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols' [ ] Platform: remote-ios [ ] Connected: no [ ] SDK Path: &quot;/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols&quot; [ ] (lldb) target create &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app&quot; [+4338 ms] Current executable set to '/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app' (arm64). [ ] (lldb) script fruitstrap_device_app=&quot;/private/var/containers/Bundle/Application/5F932593-9B1D-4D05-A644-77FA4A8ADBF8/Runner.app&quot; [ ] (lldb) script fruitstrap_connect_url=&quot;connect://127.0.0.1:62695&quot; [ ] (lldb) target modules search-paths add /usr &quot;/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols/usr&quot; /System &quot;/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols/System&quot; &quot;/private/var/containers/Bundle/Application/5F932593-9B1D-4D05-A644-77FA4A8ADBF8&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos&quot; &quot;/var/containers/Bundle/Application/5F932593-9B1D-4D05-A644-77FA4A8ADBF8&quot; &quot;/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos&quot; /Developer &quot;/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols/Developer&quot; [ +49 ms] (lldb) command script import &quot;/tmp/0EC6C4A0-1B22-49D3-A33E-695E59D38BCF/fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.py&quot; [ +4 ms] (lldb) command script add -f fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.connect_command connect [ ] (lldb) command script add -s asynchronous -f fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.run_command run [ ] (lldb) command script add -s asynchronous -f fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.autoexit_command autoexit [ ] (lldb) command script add -s asynchronous -f fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.safequit_command safequit [ ] (lldb) connect [ +33 ms] (lldb) run [ +159 ms] success [ ] (lldb) safequit [ +111 ms] Process 57510 detached [ +36 ms] Application launched on the device. Waiting for observatory port. [ +507 ms] Observatory URL on device: http://127.0.0.1:49762/ [ ] attempting to forward device port 49762 to host port 1024 [ ] executing: /usr/local/bin/iproxy 1024 49762 1d548d079169fde4d329284ea2448a5b8982eaf3 [ +8 ms] attempting to forward device port 49762 to host port 1025 [ ] executing: /usr/local/bin/iproxy 1025 49762 1d548d079169fde4d329284ea2448a5b8982eaf3 [ +5 ms] attempting to forward device port 49762 to host port 1026 [ ] executing: /usr/local/bin/iproxy 1026 49762 1d548d079169fde4d329284ea2448a5b8982eaf3 [ +5 ms] attempting to forward device port 49762 to host port 1027 [ ] executing: /usr/local/bin/iproxy 1027 49762 1d548d079169fde4d329284ea2448a5b8982eaf3 [+1008 ms] Forwarded port ForwardedPort HOST:1027 to DEVICE:49762 [ ] Forwarded host port 1027 to device port 49762 for Observatory [ +1 ms] Installing and launching... (completed) [ +3 ms] Connecting to service protocol: http://127.0.0.1:1027/ [ +115 ms] Successfully connected to service protocol: http://127.0.0.1:1027/ [ +1 ms] getVM: {} [ +7 ms] getIsolate: {isolateId: isolates/855673383} [ +1 ms] _flutter.listViews: {} [ +127 ms] DevFS: Creating new filesystem on the device (null) [ ] _createDevFS: {fsName: openbook-app} [ +28 ms] DevFS: Created new filesystem on the device (file:///private/var/mobile/Containers/Data/Application/FC505A2C-0F0C-4A20-A1FC-A7A864C7F0E7/tmp/openbook-appRchMNS/openbook-app/) [ +1 ms] Updating assets [ +802 ms] Syncing files to device 🥑... [ +1 ms] DevFS: Starting sync from LocalDirectory: '/Users/joelhernandez/Documents/code/open-book/openbook-app' [ ] Scanning project files [ +10 ms] Scanning package files [ +118 ms] Scanning asset files [ +3 ms] Scanning for deleted files [ +14 ms] Compiling dart to kernel with 703 updated files [ +8 ms] /Users/joelhernandez/Documents/code/flutter/bin/cache/dart-sdk/bin/dart /Users/joelhernandez/Documents/code/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/joelhernandez/Documents/code/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /Users/joelhernandez/Documents/code/open-book/openbook-app/.packages --filesystem-scheme org-dartlang-root [+1439 ms] Updating files [ +112 ms] Retrying writing &quot;build/flutter_assets/assets/lang/es.json&quot; to DevFS due to error: type 'OSError' is not a subtype of type 'bool' of 'function result' [ +188 ms] DevFS: Sync finished [ ] Syncing files to device 🥑... (completed) [ ] Synced 1.5MB. [ ] _flutter.listViews: {} [ +3 ms] Connected to _flutterView/0x103c1a0e8. [ +1 ms] 🔥 To hot reload changes while running, press &quot;r&quot;. To hot restart (and rebuild state), press &quot;R&quot;. [ ] An Observatory debugger and profiler on 🥑 is available at: http://127.0.0.1:1027/ [ ] For a more detailed help message, press &quot;h&quot;. To detach, press &quot;d&quot;; to quit, press &quot;q&quot;. "><pre class="notranslate"><code class="notranslate"> Touch /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app cd /Users/joelhernandez/Documents/code/open-book/openbook-app/ios export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app /Contents/Developer/usr/bin:/Users/joelhernandez/Downloads/google-cloud-sdk/bin:/Users/joelhernandez/Documents/code/fl utter/bin:/Users/joelhernandez/.pyenv/plugins/pyenv-virtualenv/shims:/Users/joelhernandez/.pyenv/shims:/Users/joelhern andez/.nvm/versions/node/v9.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin" /usr/bin/touch -c /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app CodeSign /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app cd /Users/joelhernandez/Documents/code/open-book/openbook-app/ios export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allo cate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app /Contents/Developer/usr/bin:/Users/joelhernandez/Downloads/google-cloud-sdk/bin:/Users/joelhernandez/Documents/code/fl utter/bin:/Users/joelhernandez/.pyenv/plugins/pyenv-virtualenv/shims:/Users/joelhernandez/.pyenv/shims:/Users/joelhern andez/.nvm/versions/node/v9.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin" Signing Identity: "iPhone Developer: [email protected] (JVZQ75QNAC)" Provisioning Profile: "iOS Team Provisioning Profile: social.openbook" (f2c24854-fc18-4aca-97ee-5261cd3960e5) /usr/bin/codesign --force --sign 0D41FBC8518187DEDD1CD34AC9CF752EBD76974C --entitlements /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noind ex/Runner.build/Debug-development-iphoneos/Runner.build/Runner.app.xcent --timestamp=none /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app Validate /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app cd /Users/joelhernandez/Documents/code/open-book/openbook-app/ios export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app /Contents/Developer/usr/bin:/Users/joelhernandez/Downloads/google-cloud-sdk/bin:/Users/joelhernandez/Documents/code/fl utter/bin:/Users/joelhernandez/.pyenv/plugins/pyenv-virtualenv/shims:/Users/joelhernandez/.pyenv/shims:/Users/joelhern andez/.nvm/versions/node/v9.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin" export PRODUCT_TYPE=com.apple.product-type.application builtin-validationUtility /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app ** BUILD SUCCEEDED ** [ +90 ms] └─Compiling, linking and signing... (completed) [ ] Starting Xcode build... (completed) [ +6 ms] Xcode build done. 7.0s [ ] executing: [/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/] /usr/bin/env xcrun xcodebuild -configuration Debug-development VERBOSE_SCRIPT_LOGGING=YES -workspace Runner.xcworkspace -scheme development BUILD_DIR=/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios -sdk iphoneos SCRIPT_OUTPUT_STREAM_FILE=/var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/T/flutter_build_log_pipe.A9bNfB/pipe_to_stdout -showBuildSettings [ +911 ms] Exit code 0 from: /usr/bin/env xcrun xcodebuild -configuration Debug-development VERBOSE_SCRIPT_LOGGING=YES -workspace Runner.xcworkspace -scheme development BUILD_DIR=/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios -sdk iphoneos SCRIPT_OUTPUT_STREAM_FILE=/var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/T/flutter_build_log_pipe.A9bNfB/pipe_to_stdout -showBuildSettings [ ] Build settings from command line: BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios SCRIPT_OUTPUT_STREAM_FILE = /var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/T/flutter_build_log_pipe.A9bNfB/pipe_to_stdout SDKROOT = iphoneos12.1 VERBOSE_SCRIPT_LOGGING = YES Build settings for action build and target Runner: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = joelhernandez ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO ARCHS = armv7 ARCHS_STANDARD = armv7 arm64 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64 ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator BITCODE_GENERATION_MODE = marker BUILD_ACTIVE_RESOURCES_ONLY = NO BUILD_COMPONENTS = headers build BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios BUILD_ROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Products BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos CACHE_ROOT = /var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/C/com.apple.DeveloperTools/10.1-10B61/Xcode CCHROOT = /var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/C/com.apple.DeveloperTools/10.1-10B61/Xcode CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CLANG_ANALYZER_NONNULL = YES CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_MODULES = YES CLANG_ENABLE_OBJC_ARC = YES CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_COMMA = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES CLANG_WARN_OBJC_LITERAL_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_RANGE_LOOP_ANALYSIS = YES CLANG_WARN_STRICT_PROTOTYPES = YES CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO CODESIGNING_FOLDER_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPILER_INDEX_STORE_ENABLE = Default COMPOSITE_SDK_DIRS = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Compos iteSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Debug-development CONFIGURATION_BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos CONFIGURATION_TEMP_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos CONTENTS_FOLDER_PATH = Runner.app COPYING_PRESERVES_HFS_DATA = NO COPY_HEADERS_RUN_UNIFDEF = NO COPY_PHASE_STRIP = NO COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator12.1 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = armv7 CURRENT_PROJECT_VERSION = 1 CURRENT_VARIANT = normal DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_LD_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_LD_FLAG_NAME = ios_version_min DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3 11.0 11.1 11.2 11.3 11.4 12.0 12.1 DERIVED_FILES_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/DerivedSources DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Applications DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Library DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Tools DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr DEVELOPMENT_LANGUAGE = English DEVELOPMENT_TEAM = BX63KSDAY5 DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation DO_HEADER_SCANNING_IN_JAM = NO DSTROOT = /tmp/Runner.dst DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DWARF_DSYM_FILE_NAME = Runner.app.dSYM DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO DWARF_DSYM_FOLDER_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos EFFECTIVE_PLATFORM_NAME = -iphoneos EMBEDDED_CONTENT_CONTAINS_SWIFT = NO EMBEDDED_PROFILE_NAME = embedded.mobileprovision EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO ENABLE_BITCODE = NO ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES ENABLE_HEADER_DEPENDENCIES = YES ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = YES ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_DESTINATION = Signature ENTITLEMENTS_REQUIRED = YES EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj EXECUTABLES_FOLDER_PATH = Runner.app/Executables EXECUTABLE_FOLDER_PATH = Runner.app EXECUTABLE_NAME = Runner EXECUTABLE_PATH = Runner.app/Runner EXPANDED_CODE_SIGN_IDENTITY = EXPANDED_CODE_SIGN_IDENTITY_NAME = EXPANDED_PROVISIONING_PROFILE = FILE_LIST = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app FLUTTER_BUILD_DIR = build FLUTTER_BUILD_MODE = debug FLUTTER_BUILD_NAME = 1.0.0 FLUTTER_BUILD_NUMBER = 1 FLUTTER_FRAMEWORK_DIR = /Users/joelhernandez/Documents/code/flutter/bin/cache/artifacts/engine/ios FLUTTER_ROOT = /Users/joelhernandez/Documents/code/flutter FLUTTER_TARGET = /Users/joelhernandez/Documents/code/open-book/openbook-app/lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/../.symlinks/flutter/ios" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/../.symlinks/flutter/ios" /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Flutter FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_DYNAMIC_NO_PIC = NO GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_OPTIMIZATION_LEVEL = 0 GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 COCOAPODS=1 COCOAPODS=1 GCC_SYMBOLS_PRIVATE_EXTERN = NO GCC_THUMB_SUPPORT = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_VERSION = com.apple.compilers.llvm.clang.1_0 GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0 GCC_WARN_64_TO_32_BIT_CONVERSION = YES GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES GENERATE_MASTER_OBJECT_FILE = NO GENERATE_PKGINFO_FILE = YES GENERATE_PROFILING_CODE = NO GENERATE_TEXT_BASED_STUBS = NO GID = 20 GROUP = staff HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES HEADERMAP_INCLUDES_PROJECT_HEADERS = YES HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES HEADERMAP_USES_VFS = NO HEADER_SEARCH_PATHS = "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper" "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker" HIDE_BITCODE_SYMBOLS = YES HOME = /Users/joelhernandez ICONV = /usr/bin/iconv INFOPLIST_EXPAND_BUILD_SETTINGS = YES INFOPLIST_FILE = Runner/development.plist INFOPLIST_OUTPUT_FORMAT = binary INFOPLIST_PATH = Runner.app/Info.plist INFOPLIST_PREPROCESS = NO INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings INLINE_PRIVATE_FRAMEWORKS = NO INSTALLHDRS_COPY_PHASE = NO INSTALLHDRS_SCRIPT_PHASE = NO INSTALL_DIR = /tmp/Runner.dst/Applications INSTALL_GROUP = staff INSTALL_MODE_FLAG = u+w,go-w,a+rX INSTALL_OWNER = joelhernandez INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 8.0 JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub JAVA_ARCHIVE_CLASSES = YES JAVA_ARCHIVE_TYPE = JAR JAVA_COMPILER = /usr/bin/javac JAVA_FOLDER_PATH = Runner.app/Java JAVA_FRAMEWORK_RESOURCES_DIRS = Resources JAVA_JAR_FLAGS = cv JAVA_SOURCE_SUBDIR = . JAVA_USE_DEPENDENCIES = YES JAVA_ZIP_FLAGS = -urg JIKES_DEFAULT_FLAGS = +E +OLDCSO KASAN_DEFAULT_CFLAGS = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Objects-normal/armv7/Runner_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Runner-LinkMap-normal-armv7.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/Frameworks' '@loader_path/Frameworks' @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LIBRARY_SEARCH_PATHS = "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/TOCropViewController" "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/flutter_secure_storage" "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/image_cropper" "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/image_picker" "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/TOCropViewController" "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/flutter_secure_storage" "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/image_cropper" "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/image_picker" /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Flutter LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_armv7 = LINK_WITH_STANDARD_LIBRARIES = YES LOCALIZABLE_CONTENT_DIR = LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj LOCALIZED_STRING_MACRO_NAMES = NSLocalizedString CFLocalizedString LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 18A391 MAC_OS_X_VERSION_ACTUAL = 101400 MAC_OS_X_VERSION_MAJOR = 101400 MAC_OS_X_VERSION_MINOR = 1400 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/Runner.app MODULE_CACHE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/ModuleCache.noindex MTL_ENABLE_DEBUG_INFO = YES NATIVE_ARCH = armv7 NATIVE_ARCH_32_BIT = i386 NATIVE_ARCH_64_BIT = x86_64 NATIVE_ARCH_ACTUAL = x86_64 NO_COMMON = YES OBJECT_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex ONLY_ACTIVE_ARCH = YES OS = MACOS OSAC = /usr/bin/osacompile OTHER_CFLAGS = -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker" OTHER_CPLUSPLUSFLAGS = -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/Flutter" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/TOCropViewController" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/flutter_secure_storage" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_cropper" -isystem "/Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods/Headers/Public/image_picker" OTHER_LDFLAGS = -ObjC -l"TOCropViewController" -l"flutter_secure_storage" -l"image_cropper" -l"image_picker" -framework "Flutter" -ObjC -l"TOCropViewController" -l"flutter_secure_storage" -l"image_cropper" -l"image_picker" -framework "Flutter" PACKAGE_TYPE = com.apple.package-type.wrapper.application PASCAL_STRINGS = YES PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/Users/joelhernandez/Downloads/google-cloud-sdk/bin:/Users/joelhernandez/Doc uments/code/flutter/bin:/Users/joelhernandez/.pyenv/plugins/pyenv-virtualenv/shims:/Users/joelhernandez/.pyenv/shims:/Users/joe lhernandez/.nvm/versions/node/v9.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/opt/X11/bin PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist PFE_FILE_C_DIALECTS = objective-c PKGINFO_FILE_PATH = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/PkgInfo PKGINFO_PATH = Runner.app/PkgInfo PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform PLATFORM_DISPLAY_NAME = iOS PLATFORM_NAME = iphoneos PLATFORM_PREFERRED_ARCH = arm64 PLATFORM_PRODUCT_BUILD_VERSION = 16B91 PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PODS_BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios PODS_CONFIGURATION_BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos PODS_PODFILE_DIR_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/. PODS_ROOT = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Pods PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = social.openbook PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Runner/development.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/DerivedSources PROJECT_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios PROJECT_FILE_PATH = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build PROJECT_TEMP_ROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex PROVISIONING_PROFILE_REQUIRED = YES PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES REMOVE_CVS_FROM_RESOURCES = YES REMOVE_GIT_FROM_RESOURCES = YES REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES REMOVE_HG_FROM_RESOURCES = YES REMOVE_SVN_FROM_RESOURCES = YES RESOURCE_RULES_REQUIRED = YES REZ_COLLECTOR_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/ResourceManagerResources REZ_OBJECTS_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build/ResourceManagerResources/Objects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SCRIPT_OUTPUT_STREAM_FILE = /var/folders/pk/2vc4_8px7y3dj5_0h8qs3s_w0000gn/T/flutter_build_log_pipe.A9bNfB/pipe_to_stdout SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk SDK_DIR_iphoneos12_1 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk SDK_NAME = iphoneos12.1 SDK_NAMES = iphoneos12.1 SDK_PRODUCT_BUILD_VERSION = 16B91 SDK_VERSION = 12.1 SDK_VERSION_ACTUAL = 120100 SDK_VERSION_MAJOR = 120000 SDK_VERSION_MINOR = 100 SED = /usr/bin/sed SEPARATE_STRIP = NO SEPARATE_SYMBOL_EDIT = NO SET_DIR_MODE_OWNER_GROUP = YES SET_FILE_MODE_OWNER_GROUP = NO SHALLOW_BUNDLE = YES SHARED_DERIVED_FILE_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Precom piledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios SRCROOT = /Users/joelhernandez/Documents/code/open-book/openbook-app/ios STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all STRIP_SWIFT_SYMBOLS = YES SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphonesimulator iphoneos SUPPORTS_TEXT_BASED_API = NO SWIFT_PLATFORM_TARGET_PREFIX = ios SYMROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Products SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1,2 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/Debug-development-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build TEMP_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build TEMP_FILES_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build TEMP_FILE_DIR = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex/Runner .build/Debug-development-iphoneos/Runner.build TEMP_ROOT = /Users/joelhernandez/Library/Developer/Xcode/DerivedData/Runner-gxyqukwuibgygmdndailnxftvtwj/Build/Intermediates.noindex TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = joelhernandez USER_APPS_DIR = /Users/joelhernandez/Applications USER_LIBRARY_DIR = /Users/joelhernandez/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO VALIDATE_PRODUCT = NO VALID_ARCHS = arm64 arm64e armv7 armv7s VERBOSE_PBXCP = NO VERBOSE_SCRIPT_LOGGING = YES VERSIONING_SYSTEM = apple-generic VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = joelhernandez VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = "@(#)PROGRAM:Runner PROJECT:Runner-1" WRAPPER_EXTENSION = app WRAPPER_NAME = Runner.app WRAPPER_SUFFIX = .app WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode XCODE_PRODUCT_BUILD_VERSION = 10B61 XCODE_VERSION_ACTUAL = 1010 XCODE_VERSION_MAJOR = 1000 XCODE_VERSION_MINOR = 1010 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = armv7 variant = normal [ +365 ms] Installing and launching... [ ] Debugging is enabled, connecting to observatory [ +2 ms] executing: /usr/bin/env ios-deploy --id 1d548d079169fde4d329284ea2448a5b8982eaf3 --bundle build/ios/iphoneos/Runner.app --no-wifi --justlaunch --args --enable-dart-profiling --enable-checked-mode [ +20 ms] [....] Waiting for iOS device to be connected [ +20 ms] [....] Using 1d548d079169fde4d329284ea2448a5b8982eaf3 (D221AP, D221AP, uknownos, unkarch) a.k.a. '🥑'. [ ] ------ Install phase ------ [ ] [ 0%] Found 1d548d079169fde4d329284ea2448a5b8982eaf3 (D221AP, D221AP, uknownos, unkarch) a.k.a. '🥑' connected through USB, beginning install [ +486 ms] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/META-INF/ to device [ +1 ms] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/_CodeSignature/ to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/_CodeSignature/CodeResources to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 5%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon29x29.png to device [ ] [ 6%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 6%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Runner to device [ +16 ms] [ 6%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 6%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon29x29~ipad.png to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/[email protected] to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/ to device [ ] [ 7%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/Main.storyboardc/ to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t 0r.nib to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vd C.nib to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/Main.storyboardc/Info.plist to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/LaunchScreen.storyboardc/ to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Z e5-6b-2t3.nib to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/LaunchScreen.storyboardc/UIViewController- 01J-lp-oVM.nib to device [ ] [ 8%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Base.lproj/LaunchScreen.storyboardc/Info.plist to device [ ] [ 9%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/ to device [ ] [ 9%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/LICENSE to device [ +15 ms] [ 9%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/vm_snapshot_data to device [ +102 ms] [ 10%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/isolate_snapshot_data to device [ +10 ms] [ 11%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/AssetManifest.json to device [ ] [ 11%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/kernel_blob.bin to device [ +506 ms] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/FontManifest.json to device [ ] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/packages/ to device [ ] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/packages/cupertino_icons/ to device [ ] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/packages/cupertino_icons/assets/ to device [ ] [ 17%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/packages/cupertino_icons/assets/Cupert inoIcons.ttf to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/.env.json to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/fonts/ to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/fonts/MaterialIcons-Regular.ttf to device [ +4 ms] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/ to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/ to device [ ] [ 18%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/pixel-universe.jpg to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/avatar.png to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/ to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/warning-icon.png to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/logout-icon.png to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/communities-icon.p ng to device [ ] [ 19%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/error-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/connections-icon.p ng to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/audience-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/media-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/camera-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/customize-icon.png to device [ ] [ 20%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/create-post-icon.p ng to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/notifications-icon .png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/profile-icon.png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/gif-icon.png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/settings-icon.png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/burner-icon.png to device [ ] [ 21%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/home-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/chat-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/help-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/info-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/search-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/icons/success-icon.png to device [ ] [ 22%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/confetti-background.gif to device [ ] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/splash-background.png to device [ +3 ms] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/images/openbook-o-logo.png to device [ +2 ms] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/lang/ to device [ ] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/lang/en.json to device [ ] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/lang/es.json to device [ ] [ 23%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/fonts/ to device [ ] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/fonts/NunitoSans-Regular.ttf to device [ +1 ms] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/flutter_assets/assets/fonts/NunitoSans-Bold.ttf to device [ +7 ms] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Assets.car to device [ +2 ms] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppFrameworkInfo.plist to device [ ] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon40x40@2x~ipad.png to device [ ] [ 24%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon76x76@2x~ipad.png to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon83.5x83.5@2x~ipad.png to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon29x29@2x~ipad.png to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/de.lproj/ to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/de.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 25%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ar.lproj/ to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ar.lproj/TOCropView ControllerLocalizable.strings to device [ +5 ms] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/zh-Hans.lproj/ to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/zh-Hans.lproj/TOCro pViewControllerLocalizable.strings to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ja.lproj/ to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ja.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 26%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/en.lproj/ to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/en.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/es.lproj/ to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/es.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/it.lproj/ to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/it.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 27%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ms.lproj/ to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ms.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ko.lproj/ to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ko.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/Base.lproj/ to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/Base.lproj/TOCropVi ewControllerLocalizable.strings to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/zh-Hant.lproj/ to device [ ] [ 28%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/zh-Hant.lproj/TOCro pViewControllerLocalizable.strings to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/da-DK.lproj/ to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/da-DK.lproj/TOCropV iewControllerLocalizable.strings to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/tr.lproj/ to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/tr.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/pl.lproj/ to device [ ] [ 29%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/pl.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/vi.lproj/ to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/vi.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ru.lproj/ to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/ru.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/fr.lproj/ to device [ ] [ 30%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/fr.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/id.lproj/ to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/id.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/nl.lproj/ to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/nl.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/pt.lproj/ to device [ ] [ 31%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/pt.lproj/TOCropView ControllerLocalizable.strings to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/TOCropViewControllerBundle.bundle/Info.plist to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon40x40~ipad.png to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/ to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/ to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/_CodeSignature/ to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/_CodeSignature/CodeResou rces to device [ ] [ 32%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/icudtl.dat to device [ +59 ms] [ 33%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/Flutter to device [+1274 ms] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/Flutter.framework/Info.plist to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/ to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/_CodeSignature/ to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/_CodeSignature/CodeResources to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/App to device [ ] [ 48%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Frameworks/App.framework/Info.plist to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon20x20~ipad.png to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/embedded.mobileprovision to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon20x20@2x~ipad.png to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/Info.plist to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/PkgInfo to device [ ] [ 49%] Copying /Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app/AppIcon76x76~ipad.png to device [ +460 ms] [ 52%] CreatingStagingDirectory [ ] [ 57%] ExtractingPackage [ ] [ 60%] InspectingPackage [ +44 ms] [ 60%] TakingInstallLock [ +9 ms] [ 65%] PreflightingApplication [ +16 ms] [ 65%] InstallingEmbeddedProfile [ +6 ms] [ 70%] VerifyingApplication [ +911 ms] [ 75%] CreatingContainer [ +7 ms] [ 80%] InstallingApplication [ +9 ms] [ 85%] PostflightingApplication [ +2 ms] [ 90%] SandboxingApplication [ +15 ms] [ 95%] GeneratingApplicationMap [ +45 ms] [100%] Installed package build/ios/iphoneos/Runner.app [ +289 ms] ------ Debug phase ------ [ ] Starting debug of 1d548d079169fde4d329284ea2448a5b8982eaf3 (D221AP, D221AP, uknownos, unkarch) a.k.a. '🥑' connected through USB... [ +172 ms] [ 0%] Looking up developer disk image [ +28 ms] [ 95%] Developer disk image mounted successfully [ +335 ms] [100%] Connecting to remote debug server [ ] ------------------------- [ +77 ms] (lldb) command source -s 0 '/tmp/0EC6C4A0-1B22-49D3-A33E-695E59D38BCF/fruitstrap-lldb-prep-cmds-1d548d079169fde4d329284ea2448a5b8982eaf3' [ ] Executing commands in '/tmp/0EC6C4A0-1B22-49D3-A33E-695E59D38BCF/fruitstrap-lldb-prep-cmds-1d548d079169fde4d329284ea2448a5b8982eaf3'. [ ] (lldb) platform select remote-ios --sysroot '/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols' [ ] Platform: remote-ios [ ] Connected: no [ ] SDK Path: "/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols" [ ] (lldb) target create "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app" [+4338 ms] Current executable set to '/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos/Runner.app' (arm64). [ ] (lldb) script fruitstrap_device_app="/private/var/containers/Bundle/Application/5F932593-9B1D-4D05-A644-77FA4A8ADBF8/Runner.app" [ ] (lldb) script fruitstrap_connect_url="connect://127.0.0.1:62695" [ ] (lldb) target modules search-paths add /usr "/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols/usr" /System "/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols/System" "/private/var/containers/Bundle/Application/5F932593-9B1D-4D05-A644-77FA4A8ADBF8" "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos" "/var/containers/Bundle/Application/5F932593-9B1D-4D05-A644-77FA4A8ADBF8" "/Users/joelhernandez/Documents/code/open-book/openbook-app/build/ios/iphoneos" /Developer "/Users/joelhernandez/Library/Developer/Xcode/iOS DeviceSupport/12.0 (16A366)/Symbols/Developer" [ +49 ms] (lldb) command script import "/tmp/0EC6C4A0-1B22-49D3-A33E-695E59D38BCF/fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.py" [ +4 ms] (lldb) command script add -f fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.connect_command connect [ ] (lldb) command script add -s asynchronous -f fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.run_command run [ ] (lldb) command script add -s asynchronous -f fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.autoexit_command autoexit [ ] (lldb) command script add -s asynchronous -f fruitstrap_1d548d079169fde4d329284ea2448a5b8982eaf3.safequit_command safequit [ ] (lldb) connect [ +33 ms] (lldb) run [ +159 ms] success [ ] (lldb) safequit [ +111 ms] Process 57510 detached [ +36 ms] Application launched on the device. Waiting for observatory port. [ +507 ms] Observatory URL on device: http://127.0.0.1:49762/ [ ] attempting to forward device port 49762 to host port 1024 [ ] executing: /usr/local/bin/iproxy 1024 49762 1d548d079169fde4d329284ea2448a5b8982eaf3 [ +8 ms] attempting to forward device port 49762 to host port 1025 [ ] executing: /usr/local/bin/iproxy 1025 49762 1d548d079169fde4d329284ea2448a5b8982eaf3 [ +5 ms] attempting to forward device port 49762 to host port 1026 [ ] executing: /usr/local/bin/iproxy 1026 49762 1d548d079169fde4d329284ea2448a5b8982eaf3 [ +5 ms] attempting to forward device port 49762 to host port 1027 [ ] executing: /usr/local/bin/iproxy 1027 49762 1d548d079169fde4d329284ea2448a5b8982eaf3 [+1008 ms] Forwarded port ForwardedPort HOST:1027 to DEVICE:49762 [ ] Forwarded host port 1027 to device port 49762 for Observatory [ +1 ms] Installing and launching... (completed) [ +3 ms] Connecting to service protocol: http://127.0.0.1:1027/ [ +115 ms] Successfully connected to service protocol: http://127.0.0.1:1027/ [ +1 ms] getVM: {} [ +7 ms] getIsolate: {isolateId: isolates/855673383} [ +1 ms] _flutter.listViews: {} [ +127 ms] DevFS: Creating new filesystem on the device (null) [ ] _createDevFS: {fsName: openbook-app} [ +28 ms] DevFS: Created new filesystem on the device (file:///private/var/mobile/Containers/Data/Application/FC505A2C-0F0C-4A20-A1FC-A7A864C7F0E7/tmp/openbook-appRchMNS/openbook-app/) [ +1 ms] Updating assets [ +802 ms] Syncing files to device 🥑... [ +1 ms] DevFS: Starting sync from LocalDirectory: '/Users/joelhernandez/Documents/code/open-book/openbook-app' [ ] Scanning project files [ +10 ms] Scanning package files [ +118 ms] Scanning asset files [ +3 ms] Scanning for deleted files [ +14 ms] Compiling dart to kernel with 703 updated files [ +8 ms] /Users/joelhernandez/Documents/code/flutter/bin/cache/dart-sdk/bin/dart /Users/joelhernandez/Documents/code/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/joelhernandez/Documents/code/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /Users/joelhernandez/Documents/code/open-book/openbook-app/.packages --filesystem-scheme org-dartlang-root [+1439 ms] Updating files [ +112 ms] Retrying writing "build/flutter_assets/assets/lang/es.json" to DevFS due to error: type 'OSError' is not a subtype of type 'bool' of 'function result' [ +188 ms] DevFS: Sync finished [ ] Syncing files to device 🥑... (completed) [ ] Synced 1.5MB. [ ] _flutter.listViews: {} [ +3 ms] Connected to _flutterView/0x103c1a0e8. [ +1 ms] 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R". [ ] An Observatory debugger and profiler on 🥑 is available at: http://127.0.0.1:1027/ [ ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q". </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.11.0, on Mac OS X 10.14 18A391, locale en-NL) • Flutter version 0.11.0 at /Users/joelhernandez/Documents/code/flutter • Framework revision c319b890b3 (11 days ago), 2018-10-29 19:44:36 -0700 • Engine revision 162b2e98c0 • Dart version 2.1.0 (build 2.1.0-dev.8.0 bf26f760b1) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.2) • Android SDK at /Users/joelhernandez/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 27.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] IntelliJ IDEA Ultimate Edition (version 2018.2.4) • IntelliJ at /Applications/IntelliJ IDEA.app • Flutter plugin version 29.1.3 • Dart plugin version 182.4999 [!] VS Code (version 1.25.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected device (1 available) • 🥑 • 1d548d079169fde4d329284ea2448a5b8982eaf3 • ios • iOS 12.0"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.11.0, on Mac OS X 10.14 18A391, locale en-NL) • Flutter version 0.11.0 at /Users/joelhernandez/Documents/code/flutter • Framework revision c319b890b3 (11 days ago), 2018-10-29 19:44:36 -0700 • Engine revision 162b2e98c0 • Dart version 2.1.0 (build 2.1.0-dev.8.0 bf26f760b1) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.2) • Android SDK at /Users/joelhernandez/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 27.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] IntelliJ IDEA Ultimate Edition (version 2018.2.4) • IntelliJ at /Applications/IntelliJ IDEA.app • Flutter plugin version 29.1.3 • Dart plugin version 182.4999 [!] VS Code (version 1.25.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected device (1 available) • 🥑 • 1d548d079169fde4d329284ea2448a5b8982eaf3 • ios • iOS 12.0 </code></pre></div>
<p dir="auto">Image inside Opacity widget disappears after screen lock/unlock until first user interaction.<br> The issue is reproducible on <code class="notranslate">v0.10.2</code> and doesn't reproduce on <code class="notranslate">v0.10.1</code></p> <h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Sample code:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Widget build(BuildContext context) { return Opacity( opacity: 0.5, child: Image.asset( 'images/someimage.png', width: size, height: size, ), ); }"><pre class="notranslate"><span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-c1">Opacity</span>( opacity<span class="pl-k">:</span> <span class="pl-c1">0.5</span>, child<span class="pl-k">:</span> <span class="pl-c1">Image</span>.<span class="pl-en">asset</span>( <span class="pl-s">'images/someimage.png'</span>, width<span class="pl-k">:</span> size, height<span class="pl-k">:</span> size, ), ); }</pre></div> <ul dir="auto"> <li>open view with image inside opacity</li> <li>lock screen</li> <li>unlock screen</li> </ul> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Image doesn't render until first user interaction with app after unlock</p> <h3 dir="auto">Expected</h3> <p dir="auto">Image doesn't disappear</p> <h2 dir="auto">Flutter doctor output:</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.10.2, on Mac OS X 10.14 18A391, locale en-BY) • Flutter version 0.10.2 at /Users/r1zzu/flutter • Framework revision d8cbb80206 (2 weeks ago), 2018-10-26 01:30:21 -0400 • Engine revision 6c2ade9fa2 • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/r1zzu/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /Users/r1zzu/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [!] iOS toolchain - develop for iOS devices (Xcode 9.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.1, Build version 9B55 ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ✗ ios-deploy not installed. To install: brew install ios-deploy • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [!] IntelliJ IDEA Community Edition (version 2017.2.2) • IntelliJ at /Applications/IntelliJ IDEA CE.app ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [✓] VS Code (version 1.28.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.20.0 [✓] Connected device (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) ! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.10.2, on Mac OS X 10.14 18A391, locale en-BY) • Flutter version 0.10.2 at /Users/r1zzu/flutter • Framework revision d8cbb80206 (2 weeks ago), 2018-10-26 01:30:21 -0400 • Engine revision 6c2ade9fa2 • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/r1zzu/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /Users/r1zzu/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [!] iOS toolchain - develop for iOS devices (Xcode 9.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.1, Build version 9B55 ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ✗ ios-deploy not installed. To install: brew install ios-deploy • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [!] IntelliJ IDEA Community Edition (version 2017.2.2) • IntelliJ at /Applications/IntelliJ IDEA CE.app ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [✓] VS Code (version 1.28.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.20.0 [✓] Connected device (1 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) ! Doctor found issues in 2 categories. </code></pre></div> <p dir="auto">P.S. using filters instead of opacity works well</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Image.network( 'https://github.com/flutter/flutter_gallery_assets/raw/master/lib/products/backpack.png', color: Color.fromRGBO(255, 255, 255, 0.5), colorBlendMode: BlendMode.modulate )"><pre class="notranslate"><span class="pl-c1">Image</span>.<span class="pl-en">network</span>( <span class="pl-s">'https://github.com/flutter/flutter_gallery_assets/raw/master/lib/products/backpack.png'</span>, color<span class="pl-k">:</span> <span class="pl-c1">Color</span>.<span class="pl-en">fromRGBO</span>(<span class="pl-c1">255</span>, <span class="pl-c1">255</span>, <span class="pl-c1">255</span>, <span class="pl-c1">0.5</span>), colorBlendMode<span class="pl-k">:</span> <span class="pl-c1">BlendMode</span>.modulate )</pre></div> <p dir="auto">P.P.S <code class="notranslate">AnimatedOpacity</code> doesn't work either</p>
1
<p dir="auto">I'd really like to be able to pass functions to loaders in my webpack config:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function jsLoader(source) { // do whatever... } module.exports = { ..., module: { loaders: [ {test: /\.js$/, loader: jsLoader} ] }, ... };"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">jsLoader</span><span class="pl-kos">(</span><span class="pl-s1">source</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// do whatever...</span> <span class="pl-kos">}</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> ...<span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">loaders</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span><span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>js<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-s1">jsLoader</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">The reason is that I have some global configuration state in my webpack.config.js, example:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var STATIC_ROOT = 'path/to/static/root';"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-c1">STATIC_ROOT</span> <span class="pl-c1">=</span> <span class="pl-s">'path/to/static/root'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">And my js_loader needs access to that static root for the transformation that it performs on the source code. My options are either to duplicate the configuration in each files, which is annoying to maintain and error-prone, or to throw all of the configuration variables into process.env, and from my js_loader, read them back from process.env, which just feels hacky.</p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong><br> I have a web app which I bundle using the Webpack (using it only for bundling and generating chunks)</p> <p dir="auto">Let's say after bundling I have the following output:<br> <code class="notranslate">main.bundle.js</code>,<br> <code class="notranslate">feature1.module.js</code>,<br> <code class="notranslate">feature2.module.js</code></p> <p dir="auto">On the html page (using a different tool) I include then:<br> <code class="notranslate">main.bundle.js</code>,<br> <code class="notranslate">feature1.module.js</code>,<br> <code class="notranslate">feature2.module.js</code></p> <p dir="auto">In this scenario it all works ok</p> <p dir="auto">However as my system is runtime configurable I also have a situation where on the html page only the following is included:<br> <code class="notranslate">main.bundle.js</code>,<br> <code class="notranslate">feature1.module.js</code>,</p> <p dir="auto">i.e. <code class="notranslate">feature2.module.js</code> is not included (because server app having this feature is not running).</p> <p dir="auto">When I run the app now, Webpack during runtime initialization does not complete but quit silently without any message, to be exact:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" function checkDeferredModules() { var result; for(var i = 0; i &lt; deferredModules.length; i++) { var deferredModule = deferredModules[i]; var fulfilled = true; for(var j = 1; j &lt; deferredModule.length; j++) { var depId = deferredModule[j]; if(installedChunks[depId] !== 0) fulfilled = false; } if(fulfilled) { deferredModules.splice(i--, 1); result = __webpack_require__(__webpack_require__.s = deferredModule[0]); } } return result; }"><pre class="notranslate"> <span class="pl-k">function</span> <span class="pl-en">checkDeferredModules</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">result</span><span class="pl-kos">;</span> <span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">deferredModules</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">deferredModule</span> <span class="pl-c1">=</span> <span class="pl-s1">deferredModules</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">fulfilled</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-k">for</span><span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">j</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-s1">j</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">deferredModule</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">;</span> <span class="pl-s1">j</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">depId</span> <span class="pl-c1">=</span> <span class="pl-s1">deferredModule</span><span class="pl-kos">[</span><span class="pl-s1">j</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">installedChunks</span><span class="pl-kos">[</span><span class="pl-s1">depId</span><span class="pl-kos">]</span> <span class="pl-c1">!==</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-s1">fulfilled</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">if</span><span class="pl-kos">(</span><span class="pl-s1">fulfilled</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">deferredModules</span><span class="pl-kos">.</span><span class="pl-en">splice</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-c1">--</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-en">__webpack_require__</span><span class="pl-kos">(</span><span class="pl-s1">__webpack_require__</span><span class="pl-kos">.</span><span class="pl-c1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">deferredModule</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">result</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The variable fullfilled is <code class="notranslate">false</code> and so the content of <code class="notranslate">main.module.js</code> is not loaded.</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> When I "manually" set the variable <code class="notranslate">fulfilled</code> to <code class="notranslate">true</code> to tell Webpack something like: <em>ignore missing chunks because server app with this feature is not running and user will not have a access to features from <code class="notranslate">feature2.module.js</code></em></p> <p dir="auto">The above scenario worked without problems with Webpack 3</p> <p dir="auto">Is there any better way to say Webpack 4 to ignore missing chunks and continue with loading the app?</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 4.35.3<br> Node.js version: 10.14.0</p>
0
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): <code class="notranslate">No</code></p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): <code class="notranslate">nodePort</code>, <code class="notranslate">kubeadm</code></p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): <code class="notranslate">BUG REPORT</code></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.3&quot;, GitCommit:&quot;4957b090e9a4f6a68b4a40375408fdc74a212260&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-10-16T06:36:33Z&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.5&quot;, GitCommit:&quot;5a0a696437ad35c133c0c8493f7e9d22b0f9b81b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2016-10-29T01:32:42Z&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.3", GitCommit:"4957b090e9a4f6a68b4a40375408fdc74a212260", GitTreeState:"clean", BuildDate:"2016-10-16T06:36:33Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:32:42Z", 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 ca): Ubuntu 16.04.1 LTS</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 4.4.0-31-generic x86_64 GNU/Linux</li> <li><strong>Install tools</strong>: kubeadm</li> <li><strong>Others</strong>: single node cluster, with calico network plugin</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto"><code class="notranslate">nodePort</code> attribute in pod does not map container port to host.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Yaml file like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ports: - containerPort: 80 hostPort: 80"><pre class="notranslate"><code class="notranslate">ports: - containerPort: 80 hostPort: 80 </code></pre></div> <p dir="auto">should expose the container port 80 to host port 80.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">Create a pod use below yaml file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: v1 kind: Pod metadata: name: demo spec: containers: - name: nginx-demo image: nginx ports: - containerPort: 80 hostPort: 80"><pre class="notranslate"><code class="notranslate">apiVersion: v1 kind: Pod metadata: name: demo spec: containers: - name: nginx-demo image: nginx ports: - containerPort: 80 hostPort: 80 </code></pre></div> <p dir="auto">Then use <code class="notranslate">curl &lt;node-ip&gt;:80</code> try access it, will get <code class="notranslate">Connection refused</code> error.</p> <p dir="auto">Check the docker container via <code class="notranslate">docker inspect &lt;container-id&gt;</code>, the container port is actually not exposed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;HostConfig&quot;: { &quot;PortBindings&quot;: null } &quot;Config&quot;: { &quot;ExposedPorts&quot;: { &quot;443/tcp&quot;: {}, &quot;80/tcp&quot;: {} } } &quot;NetworkSettings&quot;: { &quot;Ports&quot;: null, }"><pre class="notranslate"><code class="notranslate">"HostConfig": { "PortBindings": null } "Config": { "ExposedPorts": { "443/tcp": {}, "80/tcp": {} } } "NetworkSettings": { "Ports": null, } </code></pre></div> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">Issue was found originally because the <a href="https://raw.githubusercontent.com/kubernetes/contrib/master/ingress/controllers/nginx/examples/default/rc-default.yaml" rel="nofollow">rc-default.yaml</a> file in ingress example require <code class="notranslate">nodePort</code>.</p>
<p dir="auto">Happy to send a patch for this -- I've already written an SNI Client Hello packet parser --</p> <p dir="auto"><a href="https://github.com/paultag/sniff/blob/master/parser/parser.go">https://github.com/paultag/sniff/blob/master/parser/parser.go</a></p> <p dir="auto">That code needs to be audited a bit, and fuzzed, but it's hello-world-ing. Anyone willing to break this?</p> <p dir="auto">However, this will fail if the request has no SNI extension, so default routes are unclear to me.</p> <p dir="auto">The HTTPS Ingress point could do TLS termination, but that'll be mildly annoying for containers that terminate TLS (perhaps Golang apps that to TLS Peer Authentication?), otherwise we could use virtual hosting on HTTP Host.</p>
0
<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> When I upgraded Webpack from 3 to 4 I'v got strange output in dev mode:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="vue__WEBPACK_IMPORTED_MODULE_0__[&quot;default&quot;]vue__WEBPACK_IMPORTED_MODULE_1__[&quot;default&quot;].config.performance = &quot;development&quot;&quot;development&quot; !== 'production' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Unexpected identifier"><pre class="notranslate"><code class="notranslate">vue__WEBPACK_IMPORTED_MODULE_0__["default"]vue__WEBPACK_IMPORTED_MODULE_1__["default"].config.performance = "development""development" !== 'production' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Unexpected identifier </code></pre></div> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> Here is config:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const path = require('path'), webpack = require('webpack'), VueSSRServerPlugin = require('vue-server-renderer/server-plugin'), CopyWebpackPlugin = require('copy-webpack-plugin') module.exports = { mode: 'development', entry: path.resolve(__dirname, './js/entry-server.js'), output: { path: path.resolve(__dirname, '../dist/server'), libraryTarget: 'commonjs2', filename: 'ssr-bundle.js' }, target: 'node', module: { rules: [ { test: /\.vue?$/, loader: 'vue-loader' } ] }, plugins: [ new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), new webpack.DefinePlugin({ 'API_PATH': '&quot;http://192.168.1.8:3001/api/&quot;' }), new VueSSRServerPlugin(), new CopyWebpackPlugin([{from: './js/server'}]) ], performance: { maxEntrypointSize: 400000, assetFilter: assetFilename =&gt; assetFilename.endsWith('.js') }, devtool: false }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">webpack</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">VueSSRServerPlugin</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'vue-server-renderer/server-plugin'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">CopyWebpackPlugin</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'copy-webpack-plugin'</span><span class="pl-kos">)</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">mode</span>: <span class="pl-s">'development'</span><span class="pl-kos">,</span> <span class="pl-c1">entry</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'./js/entry-server.js'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">output</span>: <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'../dist/server'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">libraryTarget</span>: <span class="pl-s">'commonjs2'</span><span class="pl-kos">,</span> <span class="pl-c1">filename</span>: <span class="pl-s">'ssr-bundle.js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">target</span>: <span class="pl-s">'node'</span><span class="pl-kos">,</span> <span class="pl-c1">module</span>: <span class="pl-kos">{</span> <span class="pl-c1">rules</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>vue?<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">loader</span>: <span class="pl-s">'vue-loader'</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span> <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">IgnorePlugin</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">^</span><span class="pl-cce">\.</span><span class="pl-cce">\/</span>locale<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-pds"><span class="pl-c1">/</span>moment<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">DefinePlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">'API_PATH'</span>: <span class="pl-s">'"http://192.168.1.8:3001/api/"'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-v">VueSSRServerPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-v">CopyWebpackPlugin</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-c1">from</span>: <span class="pl-s">'./js/server'</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">performance</span>: <span class="pl-kos">{</span> <span class="pl-c1">maxEntrypointSize</span>: <span class="pl-c1">400000</span><span class="pl-kos">,</span> <span class="pl-en">assetFilter</span>: <span class="pl-s1">assetFilename</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">assetFilename</span><span class="pl-kos">.</span><span class="pl-en">endsWith</span><span class="pl-kos">(</span><span class="pl-s">'.js'</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">devtool</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Here is part of code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Vue from 'vue' Vue.config.performance = process.env.NODE_ENV !== 'production'"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">Vue</span> <span class="pl-k">from</span> <span class="pl-s">'vue'</span> <span class="pl-v">Vue</span><span class="pl-kos">.</span><span class="pl-c1">config</span><span class="pl-kos">.</span><span class="pl-c1">performance</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">NODE_ENV</span> <span class="pl-c1">!==</span> <span class="pl-s">'production'</span></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong><br> Output must be correсt without strange duplication.</p> <p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong><br> N/A<br> <strong>Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.</strong><br> Win 7 x64<br> Node 9.7.1<br> Webpack 4.1</p>
<p dir="auto">I am working on a loader for <a href="https://github.com/musictheory/oj">OJ</a> that compiles <code class="notranslate">.oj</code> files to JS. So far, this works very nicely especially since the compiler doesn't mind an async loader.</p> <p dir="auto">There is one catch that I came across that is making things a bit complicated_</p> <p dir="auto">When I inject the runtime via the following header:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var header = [ &quot;var oj = require('!!ojc/src/runtime');&quot;, &quot;global.oj = global['$oj_oj'] = oj;&quot; ].join(&quot;\n&quot;);"><pre class="notranslate"> <span class="pl-k">var</span> <span class="pl-s1">header</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-s">"var oj = require('!!ojc/src/runtime');"</span><span class="pl-kos">,</span> <span class="pl-s">"global.oj = global['$oj_oj'] = oj;"</span> <span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s">"\n"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I get back a snippet in my output file that looks like:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) { // Within here we have the runtime. Runtime calls itself like: ;(function(){ /* snip */ }).call(this); /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }"><pre class="notranslate"><span class="pl-c">/***/</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">module</span><span class="pl-kos">,</span> <span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s1">__webpack_require__</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">/* WEBPACK VAR INJECTION */</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">global</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Within here we have the runtime. Runtime calls itself like:</span> <span class="pl-kos">;</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span> <span class="pl-c">/* snip */</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">/* WEBPACK VAR INJECTION */</span><span class="pl-kos">}</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</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-c">/***/</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The problem with this injection is, that <code class="notranslate">exports</code> is transformed into the <code class="notranslate">this</code> of the function - and further, that internal function calls its first argument <code class="notranslate">global</code>, effectively shaddowing the real global (<code class="notranslate">window</code> in a browser). And I can't quite recognize what <code class="notranslate">(function() { return this; }())</code> will return... and I doubt it's the real global, which is <strong>mandatory</strong>.</p> <p dir="auto">My questions are:</p> <ul dir="auto"> <li>How do I properly inject this runtime?</li> <li>Is there a way to only inject my header once into the global space? As in, reducing the duplication of code. <code class="notranslate">$oj_oj</code> is expected to keep its state, so I only want to assign it once, and only once.</li> </ul> <p dir="auto">Kind regards, Ingwie!</p>
0
<p dir="auto"><a href="http://www.elastic.co/guide/en/elasticsearch/client/groovy-api/current/client.html" rel="nofollow">http://www.elastic.co/guide/en/elasticsearch/client/groovy-api/current/client.html</a></p> <p dir="auto">Moved to Groovy extensions, so that this documentation should update</p>
<p dir="auto">The documentation that exists in the repo should be added to the main site in place of existing Groovy docs.</p>
1
<p dir="auto">It would be nice to be able to use the minhash token filter, using <a href="https://issues.apache.org/jira/browse/LUCENE-6968" rel="nofollow">minHash token filter</a> added to Lucene.</p> <p dir="auto">The minhash algorithm implements locality-sensitive hashing. Basically, every token is hashed into a hash table. The hash table is then sampled to generate a smaller set of representative tokens.</p> <p dir="auto">This has several applications</p> <ul dir="auto"> <li>Dimensionality reduction that preserves information that can be used in similarity calculations. For example, efficient deduplication over large sets of text, more like this, etc.</li> </ul>
<p dir="auto">See elasticsearch-cloud-aws PR 118 from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/NicolasTr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/NicolasTr">@NicolasTr</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42862610" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch-cloud-aws/issues/118" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch-cloud-aws/pull/118/hovercard" href="https://github.com/elastic/elasticsearch-cloud-aws/pull/118">elastic/elasticsearch-cloud-aws#118</a></p>
0
<p dir="auto">This surfaces the discussion in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="105034406" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/5216" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/5216/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/5216">#5216</a>. Here are some precision differences than <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JPFrancoia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JPFrancoia">@JPFrancoia</a> and I are looking at:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np from sklearn.discriminant_analysis import LinearDiscriminantAnalysis from sklearn.utils.testing import assert_array_almost_equal state = np.random.RandomState(0) X = state.normal(loc=0, scale=100, size=(40, 20)) y = state.randint(0, 3, size=(40, 1)) # Train the LDA classifier. Use the eigen solver lda_eigen = LDA(solver='eigen', n_components=5) lda_eigen.fit(X, y) lda_svd = LDA(n_components=5, solver='svd') lda_svd.fit(X, y) assert_array_almost_equal(lda_eigen.explained_variance_ratio_, lda_svd.explained_variance_ratio_)"><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">sklearn</span>.<span class="pl-s1">discriminant_analysis</span> <span class="pl-k">import</span> <span class="pl-v">LinearDiscriminantAnalysis</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">testing</span> <span class="pl-k">import</span> <span class="pl-s1">assert_array_almost_equal</span> <span class="pl-s1">state</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-v">RandomState</span>(<span class="pl-c1">0</span>) <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">state</span>.<span class="pl-en">normal</span>(<span class="pl-s1">loc</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">scale</span><span class="pl-c1">=</span><span class="pl-c1">100</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span>(<span class="pl-c1">40</span>, <span class="pl-c1">20</span>)) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">state</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>, <span class="pl-c1">3</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span>(<span class="pl-c1">40</span>, <span class="pl-c1">1</span>)) <span class="pl-c"># Train the LDA classifier. Use the eigen solver</span> <span class="pl-s1">lda_eigen</span> <span class="pl-c1">=</span> <span class="pl-v">LDA</span>(<span class="pl-s1">solver</span><span class="pl-c1">=</span><span class="pl-s">'eigen'</span>, <span class="pl-s1">n_components</span><span class="pl-c1">=</span><span class="pl-c1">5</span>) <span class="pl-s1">lda_eigen</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>) <span class="pl-s1">lda_svd</span> <span class="pl-c1">=</span> <span class="pl-v">LDA</span>(<span class="pl-s1">n_components</span><span class="pl-c1">=</span><span class="pl-c1">5</span>, <span class="pl-s1">solver</span><span class="pl-c1">=</span><span class="pl-s">'svd'</span>) <span class="pl-s1">lda_svd</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>) <span class="pl-en">assert_array_almost_equal</span>(<span class="pl-s1">lda_eigen</span>.<span class="pl-s1">explained_variance_ratio_</span>, <span class="pl-s1">lda_svd</span>.<span class="pl-s1">explained_variance_ratio_</span>)</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AssertionError: Arrays are not almost equal to 6 decimals (shapes (20,), (3,) mismatch) x: array([ 6.03795532e-01, 3.96204468e-01, 5.85621882e-16, 3.18609950e-16, 2.08378911e-16, 1.21510637e-16, 7.83079028e-17, 7.58612317e-17, 3.89040436e-17,... y: array([ 5.52469269e-01, 4.47530731e-01, 7.08925911e-17])"><pre class="notranslate"><code class="notranslate">AssertionError: Arrays are not almost equal to 6 decimals (shapes (20,), (3,) mismatch) x: array([ 6.03795532e-01, 3.96204468e-01, 5.85621882e-16, 3.18609950e-16, 2.08378911e-16, 1.21510637e-16, 7.83079028e-17, 7.58612317e-17, 3.89040436e-17,... y: array([ 5.52469269e-01, 4.47530731e-01, 7.08925911e-17]) </code></pre></div> <p dir="auto">Besides the fact that <code class="notranslate">lda_eigen</code> has the wrong number of components for the <code class="notranslate">explained_variance_ratio_</code> (according to the docs, it should have only <code class="notranslate">n_components=5</code>), there are numeric differences as well.</p>
<p dir="auto">The docs say that <a href="http://scikit-learn.org/stable/modules/generated/sklearn.discriminant_analysis.LinearDiscriminantAnalysis.html#sklearn.discriminant_analysis.LinearDiscriminantAnalysis" rel="nofollow">LDA.explained_variance_ratio_</a> should have only <code class="notranslate">n_components_</code>. But it doesn't.</p> <p dir="auto">It looks like this bug only exists when we use the <code class="notranslate">eigen</code> solver, not the <code class="notranslate">svd</code> solver.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; from sklearn.lda import LDA &gt;&gt;&gt; from sklearn.utils.testing import assert_equal &gt;&gt;&gt; &gt;&gt;&gt; state = np.random.RandomState(0) &gt;&gt;&gt; X = state.normal(loc=0, scale=100, size=(40, 20)) &gt;&gt;&gt; y = state.randint(0, 3, size=(40, 1)) &gt;&gt;&gt; &gt;&gt;&gt; # Train the LDA classifier. Use the eigen solver &gt;&gt;&gt; lda_eigen = LDA(solver='eigen', n_components=5) &gt;&gt;&gt; lda_eigen.fit(X, y) &gt;&gt;&gt; assert_equal(lda_eigen.explained_variance_ratio_.shape, (5,)) AssertionError: Tuples differ: (20,) != (5,) First differing element 0: 20 5 - (20,) + (5,)"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; from sklearn.lda import LDA &gt;&gt;&gt; from sklearn.utils.testing import assert_equal &gt;&gt;&gt; &gt;&gt;&gt; state = np.random.RandomState(0) &gt;&gt;&gt; X = state.normal(loc=0, scale=100, size=(40, 20)) &gt;&gt;&gt; y = state.randint(0, 3, size=(40, 1)) &gt;&gt;&gt; &gt;&gt;&gt; # Train the LDA classifier. Use the eigen solver &gt;&gt;&gt; lda_eigen = LDA(solver='eigen', n_components=5) &gt;&gt;&gt; lda_eigen.fit(X, y) &gt;&gt;&gt; assert_equal(lda_eigen.explained_variance_ratio_.shape, (5,)) AssertionError: Tuples differ: (20,) != (5,) First differing element 0: 20 5 - (20,) + (5,) </code></pre></div> <p dir="auto">Looks like we fix either the docs or the code. Which one?</p> <p dir="auto">Pinging <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JPFrancoia/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JPFrancoia">@JPFrancoia</a>.</p> <p dir="auto">Addresses an issue in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="122161355" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6031" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/6031/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/6031">#6031</a>.</p>
1
<ul dir="auto"> <li>Electron version: v1.8.2-beta.4</li> <li>Operating system: Windows 7 Ultimate x64</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Enter the command and its execution</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">the electron crash when I start enter the command</p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>open developer tools</li> <li>open console</li> <li>try to enter any character (and you will get a crash)</li> </ol>
<ul dir="auto"> <li>Electron version: 1.8.2-beta.3</li> <li>Operating system: Windows_NT 10.0.15063</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">When devtools are open I should be able to type directly into the console.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">When you type into the console in devtools it crashes the electron app without showing any errors.</p> <h3 dir="auto">How to reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/electron/electron-api-demos.git cd electron-api-demos npm install --save-dev [email protected] npm install npm start"><pre class="notranslate"><code class="notranslate">git clone https://github.com/electron/electron-api-demos.git cd electron-api-demos npm install --save-dev [email protected] npm install npm start </code></pre></div> <p dir="auto">When the electron window opens, go to View menu, then Toggle Developer Tools option.<br> Go to Console tab.<br> Click into the console by the &gt; and start typing anything.</p>
1
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.3.5</td> </tr> </tbody> </table> <p dir="auto">We have a custom user provider created based on <a href="https://symfony.com/doc/current/security/custom_provider.html" rel="nofollow">this documentation</a> and a custom authenticator based on <a href="http://symfony.com/doc/current/security/custom_password_authenticator.html" rel="nofollow">this documentation</a>. Furthermore we trigger the firewall ourselves during our routing, because we have dynamic firewalls depending on dynamic page paths and settings.</p> <p dir="auto">Now with cookie based session authentication, the <a href="https://github.com/symfony/symfony/blob/6db73d3f4e47fad0be4973b83fb3402bd2321b35/src/Symfony/Component/Security/Http/Firewall/ContextListener.php#L168">ContextListener</a> calls <code class="notranslate">refreshUser()</code> on the provider.</p> <p dir="auto">The token is still not authenticated here. Only a first <strong>authorization</strong> request such as configured access directives on the route or a call to <code class="notranslate">isGranted()</code> will cause the token to be <strong>authenticated</strong>, which is fine, we can still manually authenticate the token if need be.</p> <p dir="auto">However, upon authentication the authenticator will call <code class="notranslate">loadUserByUsername()</code>, loading the user again, despite the <code class="notranslate">refreshUser()</code> before.</p> <p dir="auto">What is the intended workflow here? Is the documentation faulty? Should the authenticator not load the user again? Or should the ContextListener not refresh the user? Because right now the only thing the refresh does is finding out if the user was deleted, but all the other checks, like the user's isActive-flag, are only checked during authentication. Maybe the ContextListener should immediately authenticate the user?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$in = &lt;&lt;&lt;EOF a: b: 5 b: 6 EOF; var_dump(\Symfony\Component\Yaml\Yaml::parse($in));"><pre class="notranslate"><code class="notranslate">$in = &lt;&lt;&lt;EOF a: b: 5 b: 6 EOF; var_dump(\Symfony\Component\Yaml\Yaml::parse($in)); </code></pre></div> <p dir="auto">will give that a[b] = 5 instead of complaining b was defined twice.</p>
0
<p dir="auto">I tried writing tarai function with Rust, version info is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version rustc 1.0.0-dev (3d5fbae33 2015-01-13 01:08:03 +0000)"><pre class="notranslate"><code class="notranslate">$ rustc --version rustc 1.0.0-dev (3d5fbae33 2015-01-13 01:08:03 +0000) </code></pre></div> <p dir="auto">written code is:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(unboxed_closures)] fn tarai&lt;F:Fn() -&gt; i32&gt;(x:i32, y:i32, z:F) -&gt; i32 { if x &lt;= y { y } else { let fz = z(); let nx = tarai(x - 1, y, z); let ny = tarai(y - 1, fz, |&amp;:| { x }); let nz = |&amp;:| { tarai(fz - 1, x, |&amp;:| { y }) }; tarai(nx, ny, nz) } } fn main() { println!(&quot;{}&quot;, tarai(12, 6, |&amp;:| { 0 })); } "><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>unboxed_closures<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">fn</span> <span class="pl-en">tarai</span><span class="pl-kos">&lt;</span><span class="pl-smi">F</span><span class="pl-kos">:</span><span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">i32</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">:</span><span class="pl-smi">i32</span><span class="pl-kos">,</span> <span class="pl-s1">y</span><span class="pl-kos">:</span><span class="pl-smi">i32</span><span class="pl-kos">,</span> <span class="pl-s1">z</span><span class="pl-kos">:</span><span class="pl-smi">F</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">i32</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> x &lt;= y <span class="pl-kos">{</span> y <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> fz = <span class="pl-en">z</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> nx = <span class="pl-en">tarai</span><span class="pl-kos">(</span>x - <span class="pl-c1">1</span><span class="pl-kos">,</span> y<span class="pl-kos">,</span> z<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> ny = <span class="pl-en">tarai</span><span class="pl-kos">(</span>y - <span class="pl-c1">1</span><span class="pl-kos">,</span> fz<span class="pl-kos">,</span> |<span class="pl-c1">&amp;</span><span class="pl-kos">:</span>| <span class="pl-kos">{</span> x <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> nz = |<span class="pl-c1">&amp;</span><span class="pl-kos">:</span>| <span class="pl-kos">{</span> <span class="pl-en">tarai</span><span class="pl-kos">(</span>fz - <span class="pl-c1">1</span><span class="pl-kos">,</span> x<span class="pl-kos">,</span> |<span class="pl-c1">&amp;</span><span class="pl-kos">:</span>| <span class="pl-kos">{</span> y <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-en">tarai</span><span class="pl-kos">(</span>nx<span class="pl-kos">,</span> ny<span class="pl-kos">,</span> nz<span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, tarai<span class="pl-kos">(</span><span class="pl-c1">12</span>, <span class="pl-c1">6</span>, |&amp;:| <span class="pl-kos">{</span> <span class="pl-c1">0</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">but compiling this code, occurs an error like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc ./21-161505.rs 21-161505.rs:3:1: 15:2 error: reached the recursion limit during monomorphization 21-161505.rs:3 fn tarai&lt;F:Fn() -&gt; i32&gt;(x:i32, y:i32, z:F) -&gt; i32 { 21-161505.rs:4 if x &lt;= y { 21-161505.rs:5 y 21-161505.rs:6 } 21-161505.rs:7 else { 21-161505.rs:8 let fz = z(); ..."><pre class="notranslate"><code class="notranslate">$ rustc ./21-161505.rs 21-161505.rs:3:1: 15:2 error: reached the recursion limit during monomorphization 21-161505.rs:3 fn tarai&lt;F:Fn() -&gt; i32&gt;(x:i32, y:i32, z:F) -&gt; i32 { 21-161505.rs:4 if x &lt;= y { 21-161505.rs:5 y 21-161505.rs:6 } 21-161505.rs:7 else { 21-161505.rs:8 let fz = z(); ... </code></pre></div> <p dir="auto">Why my code is wrong? And what should I do for pass compiling without errors?<br> Please show me these. Sorry for poor my english. Thank you.</p>
<p dir="auto">Came up with this issue while "unboxing" the <a href="https://github.com/rust-lang/rust/blob/6f4c11be3b9706d1ba0e1b74b89de1478410a56f/src/libcollections/trie/map.rs#L709-712"><code class="notranslate">collections::trie::map::InternalNode::each_reverse</code></a> method.</p> <h3 dir="auto">Reduced test case</h3> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(unboxed_closures)] struct Struct; impl Struct { fn method_ok(&amp;self, f: |()| -&gt; bool) -&gt; bool { self.method_ok(|t| f(t)) } fn method_bad&lt;F&gt;(&amp;self, f: F) -&gt; bool where F: Fn(()) -&gt; bool { self.method_bad(|t| f(t)) } fn method_bad2&lt;F&gt;(&amp;self, f: F) -&gt; bool where F: Fn(()) -&gt; bool { let f: &amp;Fn(()) -&gt; bool = &amp;f; self.method_bad2(|t| f.call((t,))) } } fn main() { Struct.method_ok(|_| true); // Pick one Struct.method_bad(|_| true); //Struct.method_bad2(|_| true); }"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>unboxed_closures<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">struct</span> <span class="pl-smi">Struct</span><span class="pl-kos">;</span> <span class="pl-k">impl</span> <span class="pl-smi">Struct</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">method_ok</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">,</span> f<span class="pl-kos">:</span> |<span class="pl-kos">(</span><span class="pl-kos">)</span>| -&gt; bool<span class="pl-kos">)</span> -&gt; <span class="pl-smi">bool</span> <span class="pl-kos">{</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-en">method_ok</span><span class="pl-kos">(</span>|t| <span class="pl-en">f</span><span class="pl-kos">(</span>t<span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">method_bad</span><span class="pl-kos">&lt;</span><span class="pl-smi">F</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-smi">F</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">bool</span> <span class="pl-k">where</span> <span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">bool</span> <span class="pl-kos">{</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-en">method_bad</span><span class="pl-kos">(</span>|t| <span class="pl-en">f</span><span class="pl-kos">(</span>t<span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">method_bad2</span><span class="pl-kos">&lt;</span><span class="pl-smi">F</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-smi">F</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">bool</span> <span class="pl-k">where</span> <span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">bool</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> f<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">bool</span> = <span class="pl-c1">&amp;</span>f<span class="pl-kos">;</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-en">method_bad2</span><span class="pl-kos">(</span>|t| f<span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-kos">(</span>t<span class="pl-kos">,</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">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-v">Struct</span><span class="pl-kos">.</span><span class="pl-en">method_ok</span><span class="pl-kos">(</span>|_| <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Pick one</span> <span class="pl-v">Struct</span><span class="pl-kos">.</span><span class="pl-en">method_bad</span><span class="pl-kos">(</span>|_| <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Struct.method_bad2(|_| true);</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Output</h3> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="limit.rs:10:5: 12:6 error: reached the recursion limit during monomorphization limit.rs:10 fn method_bad&lt;F&gt;(&amp;self, f: F) -&gt; bool where F: Fn(()) -&gt; bool { limit.rs:11 self.method_bad(|t| f(t)) limit.rs:12 }"><pre class="notranslate">limit<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">10</span><span class="pl-kos">:</span><span class="pl-c1">5</span><span class="pl-kos">:</span> <span class="pl-c1">12</span><span class="pl-kos">:</span><span class="pl-c1">6</span> error<span class="pl-kos">:</span> reached the recursion limit during monomorphization limit<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">10</span> <span class="pl-k">fn</span> <span class="pl-en">method_bad</span><span class="pl-kos">&lt;</span><span class="pl-smi">F</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-smi">F</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">bool</span> <span class="pl-k">where</span> <span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">bool</span> <span class="pl-kos">{</span> limit<span class="pl-kos">.</span><span class="pl-c1">rs</span><span class="pl-kos">:</span><span class="pl-c1">11</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-en">method_bad</span><span class="pl-kos">(</span>|t| <span class="pl-en">f</span><span class="pl-kos">(</span>t<span class="pl-kos">)</span><span class="pl-kos">)</span> limit<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> <h3 dir="auto">Version</h3> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="rustc 0.13.0-dev (d9c7c00b9 2014-12-04 21:33:07 +0000)"><pre class="notranslate">rustc <span class="pl-c1">0.13</span><span class="pl-kos">.</span><span class="pl-c1">0</span>-<span class="pl-en">dev</span> <span class="pl-kos">(</span>d9c7c00b9 <span class="pl-c1">2014</span>-<span class="pl-c1">12</span>-<span class="pl-c1">04</span> <span class="pl-c1">21</span><span class="pl-kos">:</span><span class="pl-c1">33</span><span class="pl-kos">:</span><span class="pl-c1">07</span> +<span class="pl-c1">0000</span><span class="pl-kos">)</span></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikomatsakis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikomatsakis">@nikomatsakis</a> (you already know, but I want to keep track of the issue)</p>
1
<p dir="auto">I couldn't find anything like this which would have removed the need for parsing some text in my extension.</p> <p dir="auto"><a href="https://atom.io/docs/api/v1.1.0/ScopeDescriptor" rel="nofollow">https://atom.io/docs/api/v1.1.0/ScopeDescriptor</a></p>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/billti/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/billti">@billti</a> on November 1, 2015 6:10</em></p> <p dir="auto">The API call <code class="notranslate">document.getWordRangeAtPosition(position)</code> appears to use its own definition of a word. For example, my tmLanguage defines <code class="notranslate">attrib-name</code> as a token/scope, yet <code class="notranslate">getWordRangeAtPosition</code> appears to break this into 2 words on the <code class="notranslate">-</code> character.</p> <p dir="auto">How can I get token ranges at a position based on my custom syntax? (And it would be really useful if I could get the scope name that goes along with it too).</p> <p dir="auto"><em>Copied from original issue: Microsoft/vscode-extensionbuilders#76</em></p>
1
<h2 dir="auto">Question</h2> <h3 dir="auto">Which version of Sharding-Jdbc do you using?(您使用的Sharding-Jdbc版本为?)</h3> <p dir="auto">sharding-jdbc-spring-boot-starter:3.1.0<br> springboot: 2.1.1.release<br> druid-spring-boot-starter:1.1.10<br> mybatis-spring-boot-starter:1.3.2</p> <h3 dir="auto">Expected behavior (您预期的结果是)</h3> <p dir="auto">正常运行</p> <h3 dir="auto">Actual behavior (实际运行的结果是)</h3> <p dir="auto">The bean 'dataSource', defined duplicate.</p> <h3 dir="auto">Steps to reproduce the behavior (可重现问题的操作步骤)</h3> <hr> <p dir="auto">APPLICATION FAILED TO START</p> <hr> <p dir="auto">Description:</p> <p dir="auto">The bean 'dataSource', defined in class path resource [io/shardingsphere/shardingjdbc/spring/boot/SpringBootConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class] and overriding is disabled.</p>
<p dir="auto">使用<strong>python sqlalchemy</strong> ,在创建连接中,必须添加<strong>autocommit</strong>参数,否则在进行连接中便会报错:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30698152/134836519-5bbb437f-b721-40c0-a707-6e86ccdcf46c.png"><img src="https://user-images.githubusercontent.com/30698152/134836519-5bbb437f-b721-40c0-a707-6e86ccdcf46c.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>报错提示(4.1.0):</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30698152/134836608-37578dd4-86f0-4266-96e9-dc57043efe25.png"><img src="https://user-images.githubusercontent.com/30698152/134836608-37578dd4-86f0-4266-96e9-dc57043efe25.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">这个问题在 <strong>sharding-porxy 4.1.1</strong> or <strong>sharding-porxy 5.0.0</strong> 版本都会出现</p> <p dir="auto">另外,即使添加了这个参数,不用报错了,但是在 commit 之前使用 <strong>session.flush()</strong> 预提交数据时,便已经提交数据保存了,之后不管是 rollback还是 commit都无效:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30698152/134837235-8cc0866f-5e41-4ac3-ad77-f4ff5ab3c767.png"><img src="https://user-images.githubusercontent.com/30698152/134837235-8cc0866f-5e41-4ac3-ad77-f4ff5ab3c767.png" alt="lALPDhJzxskh6h7M4c0Buw_443_225" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30698152/134837251-24f5f9a6-d416-4aa6-8290-ef706dc6132a.png"><img src="https://user-images.githubusercontent.com/30698152/134837251-24f5f9a6-d416-4aa6-8290-ef706dc6132a.png" alt="lALPDgfLStrnkqfNAVbNBQ4_1294_342" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30698152/134837265-0db98357-0575-4718-a760-8e8e7b744dd6.png"><img src="https://user-images.githubusercontent.com/30698152/134837265-0db98357-0575-4718-a760-8e8e7b744dd6.png" alt="lALPDgQ9zDYOOIZszQFe_350_108" style="max-width: 100%;"></a></p>
0
<h2 dir="auto">Problem</h2> <p dir="auto">After upgrade from v0.7.2 to v0.8, it compile failed.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main_dev.dart on Redmi 3S in debug mode... 注: /Users/jagger/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inapp_purchase-0.8.7/android/src/main/java/com/dooboolab/flutterinapppurchase/AndroidInappPurchasePlugin.java使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: /Users/jagger/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.0+2/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 注: /Users/jagger/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.8.0/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerPlugin.java使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 D8: Invoke-customs are only supported starting with Android O (--min-api 26) D8: Invoke-customs are only supported starting with Android O (--min-api 26) D8: Invoke-customs are only supported starting with Android O (--min-api 26) D8: Invoke-customs are only supported starting with Android O (--min-api 26) D8: Default interface methods are only supported starting with Android N (--min-api 24): void com.google.android.exoplayer2.Player$EventListener.onLoadingChanged(boolean) D8: Default interface methods are only supported starting with Android N (--min-api 24): void com.google.android.exoplayer2.drm.DefaultDrmSessionEventListener.onDrmSessionAcquired() com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/jagger/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.9.1.aar/b905bfcc5eb7fa0029e04a14998701f7/jars/classes.jar at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:593) at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677) at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720) at com.android.ide.common.internal.WaitableExecutor.waitForTasksWithQuickFail(WaitableExecutor.java:146) at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.transform(DexArchiveBuilderTransform.java:405) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:239) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:235) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102) at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:230) at sun.reflect.GeneratedMethodAccessor417.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101) at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46) at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:74) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.execute(DefaultTaskExecutionGraph.java:143) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:40) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40) at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:24) at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:46) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:49) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:33) at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:355) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:219) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149) at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124) at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77) at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154) at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38) at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96) at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45) at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51) at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47) at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44) at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:745) Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/jagger/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.9.1.aar/b905bfcc5eb7fa0029e04a14998701f7/jars/classes.jar at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:900) at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.lambda$convertToDexArchive$6(DexArchiveBuilderTransform.java:825) at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing. at com.android.builder.dexing.D8DexArchiveBuilder.getExceptionToRethrow(D8DexArchiveBuilder.java:124) at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:101) at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:895) ... 6 more Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:65) at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:43) at com.android.tools.r8.D8.run(D8.java:90) at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:99) ... 7 more Caused by: com.android.tools.r8.utils.AbortException: Error: Default interface methods are only supported starting with Android N (--min-api 24): void com.google.android.exoplayer2.drm.DefaultDrmSessionEventListener.onDrmSessionAcquired() at com.android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.java:116) at com.android.tools.r8.utils.Reporter.fatalError(Reporter.java:74) at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:59) ... 10 more FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesWithDexBuilderForDebug'. &gt; com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/jagger/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.9.1.aar/b905bfcc5eb7fa0029e04a14998701f7/jars/classes.jar * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1m 14s Gradle task assembleDebug failed with exit code 1 Exited (sigterm) "><pre class="notranslate"><code class="notranslate">Launching lib/main_dev.dart on Redmi 3S in debug mode... 注: /Users/jagger/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inapp_purchase-0.8.7/android/src/main/java/com/dooboolab/flutterinapppurchase/AndroidInappPurchasePlugin.java使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: /Users/jagger/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.0+2/android/src/main/java/com/flutter_webview_plugin/WebviewManager.java使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 注: /Users/jagger/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.8.0/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerPlugin.java使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 D8: Invoke-customs are only supported starting with Android O (--min-api 26) D8: Invoke-customs are only supported starting with Android O (--min-api 26) D8: Invoke-customs are only supported starting with Android O (--min-api 26) D8: Invoke-customs are only supported starting with Android O (--min-api 26) D8: Default interface methods are only supported starting with Android N (--min-api 24): void com.google.android.exoplayer2.Player$EventListener.onLoadingChanged(boolean) D8: Default interface methods are only supported starting with Android N (--min-api 24): void com.google.android.exoplayer2.drm.DefaultDrmSessionEventListener.onDrmSessionAcquired() com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/jagger/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.9.1.aar/b905bfcc5eb7fa0029e04a14998701f7/jars/classes.jar at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:593) at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677) at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720) at com.android.ide.common.internal.WaitableExecutor.waitForTasksWithQuickFail(WaitableExecutor.java:146) at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.transform(DexArchiveBuilderTransform.java:405) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:239) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:235) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102) at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:230) at sun.reflect.GeneratedMethodAccessor417.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101) at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46) at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:74) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.execute(DefaultTaskExecutionGraph.java:143) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:40) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40) at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:24) at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:46) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:49) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:40) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:33) at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:355) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:219) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149) at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:124) at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:77) at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:74) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:154) at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:38) at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:96) at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:74) at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.run(RunAsBuildOperationBuildActionRunner.java:50) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45) at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51) at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47) at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:44) at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:79) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:44) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39) at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80) at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:62) at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:34) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36) at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43) at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59) at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59) at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:46) at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30) at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) at org.gradle.util.Swapper.swap(Swapper.java:38) at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81) at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122) at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:745) Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/jagger/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.9.1.aar/b905bfcc5eb7fa0029e04a14998701f7/jars/classes.jar at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:900) at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.lambda$convertToDexArchive$6(DexArchiveBuilderTransform.java:825) at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing. at com.android.builder.dexing.D8DexArchiveBuilder.getExceptionToRethrow(D8DexArchiveBuilder.java:124) at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:101) at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:895) ... 6 more Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:65) at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:43) at com.android.tools.r8.D8.run(D8.java:90) at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:99) ... 7 more Caused by: com.android.tools.r8.utils.AbortException: Error: Default interface methods are only supported starting with Android N (--min-api 24): void com.google.android.exoplayer2.drm.DefaultDrmSessionEventListener.onDrmSessionAcquired() at com.android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.java:116) at com.android.tools.r8.utils.Reporter.fatalError(Reporter.java:74) at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:59) ... 10 more FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesWithDexBuilderForDebug'. &gt; com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/jagger/.gradle/caches/transforms-1/files-1.1/exoplayer-core-2.9.1.aar/b905bfcc5eb7fa0029e04a14998701f7/jars/classes.jar * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 1m 14s Gradle task assembleDebug failed with exit code 1 Exited (sigterm) </code></pre></div> <h2 dir="auto">Env</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ app git:(master) ✗ flutter doctor -v [✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.1 18B75, locale zh-Hans-CN) • Flutter version 1.0.0 at /Users/jagger/flutter • Framework revision 5391447fae (2 周前), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /Users/jagger/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = /Users/jagger/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.4 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 31.0.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] VS Code (version 1.30.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.21.1 [✓] Connected device (1 available) • Redmi 3S • 303352e7d330 • android-arm64 • Android 6.0.1 (API 23) • No issues found!"><pre class="notranslate"><code class="notranslate">➜ app git:(master) ✗ flutter doctor -v [✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.1 18B75, locale zh-Hans-CN) • Flutter version 1.0.0 at /Users/jagger/flutter • Framework revision 5391447fae (2 周前), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /Users/jagger/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = /Users/jagger/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.4 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 31.0.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] VS Code (version 1.30.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.21.1 [✓] Connected device (1 available) • Redmi 3S • 303352e7d330 • android-arm64 • Android 6.0.1 (API 23) • No issues found! </code></pre></div>
<p dir="auto">Since the last engine roll the devicelab microbenchmarks are failing due to an exception parsing the JSON response, and the <code class="notranslate">completeError</code> call failing claiming it was already completed (!). I added some debug logging in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="338557890" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/19093" data-hovercard-type="pull_request" data-hovercard-url="/flutter/flutter/pull/19093/hovercard" href="https://github.com/flutter/flutter/pull/19093">#19093</a> which I'm reverting. Below is some example output for further investigation. I still can't see how it's already completed, but at least we have the JSON decoding exception (I'm not yet sure if the JSON has been put in the string twice, or that's just multiple output lines, in which case it's even more strange).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +2 ms] /Volumes/DevicelabAndroid/sdk/platform-tools/adb version [ +15 ms] Android Debug Bridge version 1.0.39 Version 0.0.1-4500957 Installed as /Volumes/DevicelabAndroid/sdk/platform-tools/adb [ ] /Volumes/DevicelabAndroid/sdk/platform-tools/adb start-server [ +14 ms] Installing build/app/outputs/apk/app.apk... [ ] /Volumes/DevicelabAndroid/sdk/platform-tools/adb -s ZY2245H6ZS install -t -r build/app/outputs/apk/app.apk [+8928 ms] Success [ +1 ms] /Volumes/DevicelabAndroid/sdk/platform-tools/adb -s ZY2245H6ZS shell echo -n c953ffd01afebc6430031a30781d38fc7329b423 &gt; /data/local/tmp/sky.com.yourcompany.microbenchmarks.sha1 [ +60 ms] Moto G 4 startApp [ +3 ms] /Volumes/DevicelabAndroid/sdk/platform-tools/adb -s ZY2245H6ZS shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true com.yourcompany.microbenchmarks/io.flutter.app.FlutterActivity [ +935 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.yourcompany.microbenchmarks/io.flutter.app.FlutterActivity (has extras) } [ ] Waiting for observatory port to be available... [+53878 ms] I/flutter ( 7569): ================ RESULTS ================ [ ] I/flutter ( 7569): :::JSON::: {&quot;stock_build_iteration&quot;:7099.030288689068} [ ] I/flutter ( 7569): ================ FORMATTED ============== [DEBUG:DANTUP] Completing successfully [DEBUG:DANTUP] Decoding JSON failed (FormatException: Unexpected character (at line 2, character 2) {&quot;stock_build_iteration&quot;:7099.030288689068} ^ ). JSON string was: {&quot;stock_layout_iteration&quot;:3821.4360672440143} {&quot;stock_build_iteration&quot;:7099.030288689068} Task failed: Bad state: Future already completed Stack trace: dart:async _Completer.completeError package:flutter_devicelab/tasks/microbenchmarks.dart 136:19 _readJsonResults. ===== asynchronous gap =========================== dart:async _BoundSinkStream.listen package:flutter_devicelab/tasks/microbenchmarks.dart 116:8 _readJsonResults package:flutter_devicelab/tasks/microbenchmarks.dart 53:22 createMicrobenchmarkTask.._runMicrobench._run ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_devicelab/tasks/microbenchmarks.dart 27:48 createMicrobenchmarkTask.._runMicrobench._run package:flutter_devicelab/tasks/microbenchmarks.dart 55:18 createMicrobenchmarkTask.._runMicrobench ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_devicelab/tasks/microbenchmarks.dart 22:19 createMicrobenchmarkTask. package:flutter_devicelab/framework/framework.dart 125:36 _TaskRunner._performTask. [ ] I/flutter ( 7569): Stock build: 7099.0 µs per iteration [+18033 ms] I/flutter ( 7569): ================ RESULTS ================ [ ] I/flutter ( 7569): :::JSON::: {&quot;stock_build_iteration&quot;:7099.030288689068} [ ] I/flutter ( 7569): ================ FORMATTED ============== [DEBUG:DANTUP] Completing successfully [DEBUG:DANTUP] (done) [ ] I/flutter ( 7569): Stock build: 7099.0 µs per iteration"><pre class="notranslate"><code class="notranslate">[ +2 ms] /Volumes/DevicelabAndroid/sdk/platform-tools/adb version [ +15 ms] Android Debug Bridge version 1.0.39 Version 0.0.1-4500957 Installed as /Volumes/DevicelabAndroid/sdk/platform-tools/adb [ ] /Volumes/DevicelabAndroid/sdk/platform-tools/adb start-server [ +14 ms] Installing build/app/outputs/apk/app.apk... [ ] /Volumes/DevicelabAndroid/sdk/platform-tools/adb -s ZY2245H6ZS install -t -r build/app/outputs/apk/app.apk [+8928 ms] Success [ +1 ms] /Volumes/DevicelabAndroid/sdk/platform-tools/adb -s ZY2245H6ZS shell echo -n c953ffd01afebc6430031a30781d38fc7329b423 &gt; /data/local/tmp/sky.com.yourcompany.microbenchmarks.sha1 [ +60 ms] Moto G 4 startApp [ +3 ms] /Volumes/DevicelabAndroid/sdk/platform-tools/adb -s ZY2245H6ZS shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true com.yourcompany.microbenchmarks/io.flutter.app.FlutterActivity [ +935 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.yourcompany.microbenchmarks/io.flutter.app.FlutterActivity (has extras) } [ ] Waiting for observatory port to be available... [+53878 ms] I/flutter ( 7569): ================ RESULTS ================ [ ] I/flutter ( 7569): :::JSON::: {"stock_build_iteration":7099.030288689068} [ ] I/flutter ( 7569): ================ FORMATTED ============== [DEBUG:DANTUP] Completing successfully [DEBUG:DANTUP] Decoding JSON failed (FormatException: Unexpected character (at line 2, character 2) {"stock_build_iteration":7099.030288689068} ^ ). JSON string was: {"stock_layout_iteration":3821.4360672440143} {"stock_build_iteration":7099.030288689068} Task failed: Bad state: Future already completed Stack trace: dart:async _Completer.completeError package:flutter_devicelab/tasks/microbenchmarks.dart 136:19 _readJsonResults. ===== asynchronous gap =========================== dart:async _BoundSinkStream.listen package:flutter_devicelab/tasks/microbenchmarks.dart 116:8 _readJsonResults package:flutter_devicelab/tasks/microbenchmarks.dart 53:22 createMicrobenchmarkTask.._runMicrobench._run ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_devicelab/tasks/microbenchmarks.dart 27:48 createMicrobenchmarkTask.._runMicrobench._run package:flutter_devicelab/tasks/microbenchmarks.dart 55:18 createMicrobenchmarkTask.._runMicrobench ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_devicelab/tasks/microbenchmarks.dart 22:19 createMicrobenchmarkTask. package:flutter_devicelab/framework/framework.dart 125:36 _TaskRunner._performTask. [ ] I/flutter ( 7569): Stock build: 7099.0 µs per iteration [+18033 ms] I/flutter ( 7569): ================ RESULTS ================ [ ] I/flutter ( 7569): :::JSON::: {"stock_build_iteration":7099.030288689068} [ ] I/flutter ( 7569): ================ FORMATTED ============== [DEBUG:DANTUP] Completing successfully [DEBUG:DANTUP] (done) [ ] I/flutter ( 7569): Stock build: 7099.0 µs per iteration </code></pre></div>
0
<p dir="auto">I <a href="https://github.com/Microsoft/vscode/issues/52194" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/52194/hovercard">raised this against VS Code</a>, but they advise it's Electron's doing. When I go to select a debug session and there are several, the dropdown menu grows upwards but there's limited space on the screen so it ends up being quite difficult to use.</p> <ul dir="auto"> <li>Electron Version: 1.7.12</li> <li>Operating System (Platform and Version): macOS High Seirra</li> <li>Last known working Electron version: Unknown</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> Drop-down lists near the edge of the screen should expand away from the edge of the screen.</p> <p dir="auto"><strong>Actual behavior</strong><br> Drop-down renders upwards when at the top of the screen, making a tiny scrollable menu.</p> <p dir="auto"><strong>To Reproduce</strong><br> Open VS Code; and start several debugging sessions, then open the drop-down that lets you select between them.</p> <p dir="auto"><strong>Screenshots</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1078012/41534917-3d68229c-72f8-11e8-98d9-bebdb9bc7428.png"><img src="https://user-images.githubusercontent.com/1078012/41534917-3d68229c-72f8-11e8-98d9-bebdb9bc7428.png" alt="screen shot 2018-06-18 at 1 03 26 pm" style="max-width: 100%;"></a></p>
<h3 dir="auto">Preflight Checklist</h3> <p dir="auto">I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.<br> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.<br> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</p> <h3 dir="auto">Electron Version</h3> <p dir="auto">12.0.0</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Windows</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">Windows 10</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">12.0.0</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Electron version: 12.0.0<br> <strong>Problem:</strong> Need to disable new windows popup, for this use the event and its working but this is deprecated in Electron 12.0</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="win.webContents.on('new-window'', event =&gt; { event.preventDefault() })"><pre class="notranslate"><code class="notranslate">win.webContents.on('new-window'', event =&gt; { event.preventDefault() }) </code></pre></div> <p dir="auto">So instead of above used the suggested alternative handler but this is not getting called during new windows open or mouse mid click.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="win.webContents.setWindowOpenHandler(() =&gt; { return { action: 'deny' }; });"><pre class="notranslate"><code class="notranslate">win.webContents.setWindowOpenHandler(() =&gt; { return { action: 'deny' }; }); </code></pre></div> <p dir="auto"><strong>Expected behavior:</strong> On mouse mid click new windows creation should prevented.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto"><strong>Actual</strong> : New window opens on mouse windows click.</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><em>No response</em></p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1036" rel="nofollow">http://projects.scipy.org/numpy/ticket/1036</a> on 2009-03-04 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rc">@rc</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rc">@rc</a>.</em></p> <p dir="auto">Neil Crighton wrote:</p> <p dir="auto">As far as I know there isn't an obvious way to get the functionality of setmember1d working on non-unique inputs. However, I've needed this operation quite a lot, so here's a function I wrote that does it. It's only a few times slower than numpy's setmember1d. You're welcome to use it.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np def ismember(a1,a2): &quot;&quot;&quot; Test whether items from a2 are in a1. This does the same thing as np.setmember1d, but works on non-unique arrays. Only a few (2-4) times slower than np.setmember1d, and a lot faster than [i in a2 for i in a1]. An example that np.setmember1d gets wrong: &gt;&gt;&gt; a1 = np.array([5,4,5,3,4,4,3,4,3,5,2,1,5,5]) &gt;&gt;&gt; a2 = [2,3,4] &gt;&gt;&gt; mask = ismember(a1,a2) &gt;&gt;&gt; a1[mask] array([4, 3, 4, 4, 3, 4, 3, 2]) &quot;&quot;&quot; a2 = set(a2) a1 = np.asarray(a1) ind = a1.argsort() a1 = a1[ind] mask = [] # need this bit because prev is not defined for first item item = a1[0] if item in a2: mask.append(True) a2.remove(item) else: mask.append(False) prev = item # main loop for item in a1[1:]: if item == prev: mask.append(mask[-1]) elif item in a2: mask.append(True) prev = item a2.remove(item) else: mask.append(False) prev = item # restore mask to original ordering of a1 and return mask = np.array(mask) return mask[ind.argsort()]"><pre class="notranslate"><code class="notranslate">import numpy as np def ismember(a1,a2): """ Test whether items from a2 are in a1. This does the same thing as np.setmember1d, but works on non-unique arrays. Only a few (2-4) times slower than np.setmember1d, and a lot faster than [i in a2 for i in a1]. An example that np.setmember1d gets wrong: &gt;&gt;&gt; a1 = np.array([5,4,5,3,4,4,3,4,3,5,2,1,5,5]) &gt;&gt;&gt; a2 = [2,3,4] &gt;&gt;&gt; mask = ismember(a1,a2) &gt;&gt;&gt; a1[mask] array([4, 3, 4, 4, 3, 4, 3, 2]) """ a2 = set(a2) a1 = np.asarray(a1) ind = a1.argsort() a1 = a1[ind] mask = [] # need this bit because prev is not defined for first item item = a1[0] if item in a2: mask.append(True) a2.remove(item) else: mask.append(False) prev = item # main loop for item in a1[1:]: if item == prev: mask.append(mask[-1]) elif item in a2: mask.append(True) prev = item a2.remove(item) else: mask.append(False) prev = item # restore mask to original ordering of a1 and return mask = np.array(mask) return mask[ind.argsort()] </code></pre></div>
<h3 dir="auto">Describe the issue:</h3> <p dir="auto">A simple code snippet below calculating bins for a given input fails while trying to allocate 12.7 PiB of RAM. Probably related to my floats precision, but is definitely not the expected result.</p> <p dir="auto">I would be most grateful if anyone could suggest a workaround while this bug is being fixed.</p> <h3 dir="auto">Reproduce the code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np x = np.array([6.3, 6.3, 7.399999999999999, 7.399999999999999, 7.399999999999999, 7.399999999999999, 7.4, 7.4, 7.4, 7.4, 7.4, 7.4, 7.4, 7.4, 7.4, 7.4, 7.4, 7.4, 7.4, 7.407142857142857, 7.407142857142857, 7.4125, 7.4125]) np.histogram(x, density=True, bins=&quot;auto&quot;)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">6.3</span>, <span class="pl-c1">6.3</span>, <span class="pl-c1">7.399999999999999</span>, <span class="pl-c1">7.399999999999999</span>, <span class="pl-c1">7.399999999999999</span>, <span class="pl-c1">7.399999999999999</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.4</span>, <span class="pl-c1">7.407142857142857</span>, <span class="pl-c1">7.407142857142857</span>, <span class="pl-c1">7.4125</span>, <span class="pl-c1">7.4125</span>]) <span class="pl-s1">np</span>.<span class="pl-en">histogram</span>(<span class="pl-s1">x</span>, <span class="pl-s1">density</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">bins</span><span class="pl-c1">=</span><span class="pl-s">"auto"</span>)</pre></div> <h3 dir="auto">Error message:</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/Users/user/miniforge3/envs/clients/lib/python3.8/site-packages/IPython/core/interactiveshell.py&quot;, line 3433, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File &quot;&lt;ipython-input-3-f76ea541d063&gt;&quot;, line 25, in &lt;module&gt; np.histogram(x, density=True, bins=&quot;auto&quot;) File &quot;&lt;__array_function__ internals&gt;&quot;, line 180, in histogram File &quot;/Users/user/miniforge3/envs/clients/lib/python3.8/site-packages/numpy/lib/histograms.py&quot;, line 793, in histogram bin_edges, uniform_bins = _get_bin_edges(a, bins, range, weights) File &quot;/Users/user/miniforge3/envs/clients/lib/python3.8/site-packages/numpy/lib/histograms.py&quot;, line 446, in _get_bin_edges bin_edges = np.linspace( File &quot;&lt;__array_function__ internals&gt;&quot;, line 180, in linspace File &quot;/Users/user/miniforge3/envs/clients/lib/python3.8/site-packages/numpy/core/function_base.py&quot;, line 135, in linspace y = _nx.arange(0, num, dtype=dt).reshape((-1,) + (1,) * ndim(delta)) numpy.core._exceptions._ArrayMemoryError: Unable to allocate 12.7 PiB for an array with shape (1781062197026280,) and data type float64"><pre class="notranslate">Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/Users/user/miniforge3/envs/clients/lib/python3.8/site-packages/IPython/core/interactiveshell.py<span class="pl-pds">"</span></span>, line 3433, <span class="pl-k">in</span> run_code exec(code_obj, self.user_global_ns, self.user_ns) File <span class="pl-s"><span class="pl-pds">"</span>&lt;ipython-input-3-f76ea541d063&gt;<span class="pl-pds">"</span></span>, line 25, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> np.histogram(x, density=True, bins=<span class="pl-s"><span class="pl-pds">"</span>auto<span class="pl-pds">"</span></span>) File <span class="pl-s"><span class="pl-pds">"</span>&lt;__array_function__ internals&gt;<span class="pl-pds">"</span></span>, line 180, <span class="pl-k">in</span> histogram File <span class="pl-s"><span class="pl-pds">"</span>/Users/user/miniforge3/envs/clients/lib/python3.8/site-packages/numpy/lib/histograms.py<span class="pl-pds">"</span></span>, line 793, <span class="pl-k">in</span> histogram bin_edges, uniform_bins = _get_bin_edges(a, bins, range, weights) File <span class="pl-s"><span class="pl-pds">"</span>/Users/user/miniforge3/envs/clients/lib/python3.8/site-packages/numpy/lib/histograms.py<span class="pl-pds">"</span></span>, line 446, <span class="pl-k">in</span> _get_bin_edges bin_edges = np.linspace( File <span class="pl-s"><span class="pl-pds">"</span>&lt;__array_function__ internals&gt;<span class="pl-pds">"</span></span>, line 180, <span class="pl-k">in</span> linspace File <span class="pl-s"><span class="pl-pds">"</span>/Users/user/miniforge3/envs/clients/lib/python3.8/site-packages/numpy/core/function_base.py<span class="pl-pds">"</span></span>, line 135, <span class="pl-k">in</span> linspace y = _nx.arange(0, num, dtype=dt).reshape<span class="pl-s"><span class="pl-pds">((</span><span class="pl-k">-</span><span class="pl-c1">1</span><span class="pl-k">,</span>) <span class="pl-k">+</span> (<span class="pl-c1">1</span><span class="pl-k">,</span>) <span class="pl-k">*</span> ndim(delta<span class="pl-pds">))</span></span> numpy.core._exceptions._ArrayMemoryError: Unable to allocate 12.7 PiB <span class="pl-k">for</span> an array with shape (1781062197026280,) and data <span class="pl-c1">type</span> float64</pre></div> <h3 dir="auto">NumPy/Python version information:</h3> <p dir="auto">1.23.3 3.8.15 | packaged by conda-forge | (default, Nov 22 2022, 08:49:06)<br> [Clang 14.0.6 ]</p> <h3 dir="auto">Context for the issue:</h3> <p dir="auto"><em>No response</em></p>
0
<p dir="auto">Apologies if this is a duplicate of an existing issue, but I haven't been able to find an answer to this specific issue. I note however <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="69690167" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2839" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2839/hovercard" href="https://github.com/microsoft/TypeScript/issues/2839">#2839</a></p> <p dir="auto">A summary of the config/setup for our app:</p> <ul dir="auto"> <li>TypeScript <code class="notranslate">v1.7.0-dev.20150827</code></li> <li><code class="notranslate">tsd v0.6.4-beta</code></li> <li><code class="notranslate">tsconfig.json</code>:</li> </ul> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;target&quot;: &quot;es5&quot;, &quot;module&quot;: &quot;system&quot;, &quot;declaration&quot;: false, &quot;noImplicitAny&quot;: true, &quot;removeComments&quot;: false, &quot;noLib&quot;: false, &quot;sourceMap&quot;: true, &quot;jsx&quot;: &quot;react&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"compilerOptions"</span>: { <span class="pl-ent">"target"</span>: <span class="pl-s"><span class="pl-pds">"</span>es5<span class="pl-pds">"</span></span>, <span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>system<span class="pl-pds">"</span></span>, <span class="pl-ent">"declaration"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"noImplicitAny"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"removeComments"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"noLib"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"sourceMap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"jsx"</span>: <span class="pl-s"><span class="pl-pds">"</span>react<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto">Our app depends on <a href="https://github.com/borisyankov/DefinitelyTyped/blob/master/bootstrap-slider/bootstrap-slider.d.ts"><code class="notranslate">bootstrap-slider</code></a>; as you can see this type definition does not define a module. Instead it 'extends' <a href="https://github.com/borisyankov/DefinitelyTyped/blob/master/jquery/jquery.d.ts"><code class="notranslate">jquery</code></a> in what I understand is the usual way for JQuery components. Via <code class="notranslate">tsd</code> our app defines a <code class="notranslate">tsd.d.ts</code> file that references the <code class="notranslate">bootstrap-slider</code> and <code class="notranslate">jquery</code> type definitions, amongst others.</p> <p dir="auto">Now consider a <code class="notranslate">.tsx</code> file where we define a React component that wraps <code class="notranslate">bootstrap-slider</code>. This <code class="notranslate">.tsx</code> file references the <code class="notranslate">tsd.d.ts</code> definition.</p> <p dir="auto"><code class="notranslate">jquery</code> <a href="https://github.com/borisyankov/DefinitelyTyped/blob/1d6c126e8ead25892ded5a32df2e813ffad06905/jquery/jquery.d.ts#L3178">declares <code class="notranslate">$</code></a>, hence there is no need to import <code class="notranslate">jquery</code>. Nor is there a need to import <code class="notranslate">bootstrap-slider</code> from a typing perspective because we will reference everything we need via <code class="notranslate">jquery</code>'s <code class="notranslate">$</code> (indeed to try and do so would fail because there is no module by the name of <code class="notranslate">"bootstrap-slider"</code> defined)</p> <p dir="auto">However, this now presents a problem because nowhere in our application are we declaring via an import a dependency on <code class="notranslate">bootstrap-slider</code>. The generated code (target ES5, module SystemJS) does not include a reference to <code class="notranslate">bootstrap-slider</code> and hence the relevant JS files are not loaded at runtime.</p> <p dir="auto">What is the recommended solution in this situation?<br> Should the <code class="notranslate">bootstrap-slider</code> type definition include a module definition for exactly this reason?<br> Or are we missing a more obvious solution?</p> <p dir="auto">Thanks</p>
<p dir="auto">In a <code class="notranslate">.d.ts</code> file, I have the following:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as interfaces from './interfaces'; declare module sequelize { export import Promise = interfaces.Promise; } declare var sequelize: interfaces.Static; export = sequelize;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">interfaces</span> <span class="pl-k">from</span> <span class="pl-s">'./interfaces'</span><span class="pl-kos">;</span> <span class="pl-k">declare</span> module <span class="pl-s1">sequelize</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">import</span> <span class="pl-smi">Promise</span> <span class="pl-c1">=</span> <span class="pl-s1">interfaces</span><span class="pl-kos">.</span><span class="pl-smi">Promise</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">sequelize</span>: <span class="pl-s1">interfaces</span><span class="pl-kos">.</span><span class="pl-smi">Static</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">sequelize</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I'm getting an error saying "duplicate identifier 'sequelize'".<br> I think this might not be the best way of doing things, but I couldn't find any other way.<br> What I want to achieve is exporting the <code class="notranslate">sequelize</code> variable using <code class="notranslate">export =</code> syntax while also exporting some interfaces using <code class="notranslate">declare module</code>.</p> <p dir="auto">If I do this instead it works fine:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as interfaces from './interfaces'; declare module sequelize { type Promise&lt;T&gt; = interfaces.Promise&lt;T&gt;; } declare var sequelize: interfaces.Static; export = sequelize;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">interfaces</span> <span class="pl-k">from</span> <span class="pl-s">'./interfaces'</span><span class="pl-kos">;</span> <span class="pl-k">declare</span> module <span class="pl-s1">sequelize</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Promise</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-c1">=</span> <span class="pl-s1">interfaces</span><span class="pl-kos">.</span><span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">sequelize</span>: <span class="pl-s1">interfaces</span><span class="pl-kos">.</span><span class="pl-smi">Static</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">sequelize</span><span class="pl-kos">;</span></pre></div> <p dir="auto">but I don't want to use types because you cannot extend a type. another option is:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as interfaces from './interfaces'; declare module sequelize { interface Promise&lt;T&gt; extends interfaces.Promise&lt;T&gt; {} } declare var sequelize: interfaces.Static; export = sequelize;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">interfaces</span> <span class="pl-k">from</span> <span class="pl-s">'./interfaces'</span><span class="pl-kos">;</span> <span class="pl-k">declare</span> module <span class="pl-s1">sequelize</span> <span class="pl-kos">{</span> <span class="pl-k">interface</span> <span class="pl-smi">Promise</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-k">extends</span> <span class="pl-s1">interfaces</span><span class="pl-kos">.</span><span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">sequelize</span>: <span class="pl-s1">interfaces</span><span class="pl-kos">.</span><span class="pl-smi">Static</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">sequelize</span><span class="pl-kos">;</span></pre></div> <p dir="auto">which works fine but is very confusing. Is there a better way to achieve this?<br> On a side note, it's very confusing to me how there are two types of modules. The one with <code class="notranslate">export</code>s and the one that's a namespace.<br> A better title for this issue is probably <em>cannot re-export interfaces in <code class="notranslate">declare module</code> without switching its type to object</em></p>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Create a TextField like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var text = &quot;hello&quot;; var controller = new TextEditingController(text: text) ..selection = new TextSelection(baseOffset: 0, extentOffset: text.length); new TextField( autofocus: true, textAlign: TextAlign.end, controller: controller);"><pre class="notranslate"><code class="notranslate">var text = "hello"; var controller = new TextEditingController(text: text) ..selection = new TextSelection(baseOffset: 0, extentOffset: text.length); new TextField( autofocus: true, textAlign: TextAlign.end, controller: controller); </code></pre></div> <p dir="auto">This renders a block of text selection at the beginning instead over the characters:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1781516/40584402-14069d16-61a0-11e8-9ac9-8e2af2fb5c6e.png"><img src="https://user-images.githubusercontent.com/1781516/40584402-14069d16-61a0-11e8-9ac9-8e2af2fb5c6e.png" alt="textfield" style="max-width: 100%;"></a></p> <p dir="auto">Same for TextAlign.right.</p> <p dir="auto">[✓] Flutter (Channel beta, v0.4.4, on Linux, locale en_US.UTF-8)<br> • Flutter version 0.4.4 at /home/crazywater/flutter<br> • Framework revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/f9bb4289e9fd861d70ae78bcc3a042ef1b35cc9d/hovercard" href="https://github.com/flutter/flutter/commit/f9bb4289e9fd861d70ae78bcc3a042ef1b35cc9d"><tt>f9bb428</tt></a> (2 weeks ago), 2018-05-11 21:44:54 -0700<br> • Engine revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/06afdfe54ebef9168a90ca00a6721c2d36e6aafa/hovercard" href="https://github.com/flutter/flutter/commit/06afdfe54ebef9168a90ca00a6721c2d36e6aafa"><tt>06afdfe</tt></a><br> • Dart version 2.0.0-dev.54.0.flutter-46ab040e58</p> <p dir="auto">[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)<br> • Android SDK at /home/crazywater/Android/Sdk<br> • Android NDK location not configured (optional; useful for native profiling support)<br> • Platform android-27, build-tools 27.0.3<br> • Java binary at: /home/crazywater/android-studio-3/jre/bin/java<br> • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)<br> • All Android licenses accepted.</p> <p dir="auto">[✓] Android Studio (version 2.3)<br> • Android Studio at /home/crazywater/android-studio<br> ✗ Flutter plugin not installed; this adds Flutter specific functionality.<br> ✗ Dart plugin not installed; this adds Dart specific functionality.<br> • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)</p> <p dir="auto">[✓] Android Studio (version 3.0)<br> • Android Studio at /home/crazywater/android-studio-3<br> ✗ Flutter plugin not installed; this adds Flutter specific functionality.<br> ✗ Dart plugin not installed; this adds Dart specific functionality.<br> • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)</p> <p dir="auto">[✓] IntelliJ IDEA Community Edition (version 2017.3)<br> • IntelliJ at /home/crazywater/Apps/idea-IC-173.4548.28<br> • Flutter plugin version 22.2.2<br> • Dart plugin version 173.4548.30</p> <p dir="auto">[✓] IntelliJ IDEA Community Edition (version 2017.2)<br> • IntelliJ at /home/crazywater/Downloads/idea-IC-172.3544.35<br> • Flutter plugin version 21.2.2<br> • Dart plugin version 172.4343.25</p> <p dir="auto">[!] VS Code (version 1.23.0)<br> • VS Code at /usr/share/code<br> • Dart Code extension not installed; install from<br> <a href="https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code" rel="nofollow">https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code</a></p> <p dir="auto">[✓] Connected devices (1 available)<br> • Nexus 5X • 02662d754ebcc6a3 • android-arm64 • Android 8.1.0 (API 27)</p> <p dir="auto">! Doctor found issues in 1 category.</p>
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Create a <code class="notranslate">TextField</code> wrapped in <code class="notranslate">Expanded</code> or <code class="notranslate">Flexible</code> inside <code class="notranslate">Row</code></li> <li>Set <code class="notranslate">TextAlign</code> for <code class="notranslate">TextField</code> to <code class="notranslate">end</code></li> <li>Start typing in text field, you can notice after first character cursor jumps on the left side of text field.</li> <li>If you try to select a text by doing long tap - selection will be on left side instead of over text which you was going to select.</li> </ol> <p dir="auto">GIF on how it looks like (same behaviour in iOS and Android) <a href="https://imgur.com/a/l7e1sgh" rel="nofollow">https://imgur.com/a/l7e1sgh</a></p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +28 ms] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +39 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git rev-parse --abbrev-ref HEAD [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git ls-remote --get-url origin [ +11 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git log -n 1 --pretty=format:%H [ +44 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] c169136effe913693a5d31f0b9b97cce53a6a1df [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git log -n 1 --pretty=format:%ar [ +13 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 2 hours ago [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +61 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.4.4-12-gc169136ef [ +321 ms] /usr/bin/defaults read /Applications/Android Studio 3.2 Preview.app/Contents/Info CFBundleShortVersionString [ +101 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio 3.2 Preview.app/Contents/Info CFBundleShortVersionString [ ] EAP AI-181.4668.68.32.4763614 [ +100 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +44 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +110 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb devices -l [ +16 ms] Exit code 0 from: /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached emulator-5554 device product:sdk_google_phone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1 [ +9 ms] idevice_id -h [ +325 ms] /usr/bin/xcrun simctl list --json devices [ +193 ms] Found plugin connectivity at /Users/denis.feoktistov/.pub-cache/hosted/pub.dartlang.org/connectivity-0.3.0/ [ +26 ms] Found plugin device_info at /Users/denis.feoktistov/.pub-cache/hosted/pub.dartlang.org/device_info-0.2.0/ [ +97 ms] Found plugin url_launcher at /Users/denis.feoktistov/.pub-cache/hosted/pub.dartlang.org/url_launcher-3.0.0/ [ +3 ms] Found plugin video_player at /Users/denis.feoktistov/.pub-cache/hosted/pub.dartlang.org/video_player-0.5.1/ [ +71 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop [ +29 ms] ro.hardware = ranchu [ +15 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with &quot;--enable-software-rendering&quot;. [ +936 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode... [ +6 ms] Initializing gradle... [ +7 ms] Using gradle from /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/gradlew. [ +96 ms] /usr/bin/defaults read /Applications/Android Studio 3.2 Preview.app/Contents/Info CFBundleShortVersionString [ +43 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio 3.2 Preview.app/Contents/Info CFBundleShortVersionString [ ] EAP AI-181.4668.68.32.4763614 [ +87 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +43 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +79 ms] /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/gradlew -v [ +659 ms] ------------------------------------------------------------ Gradle 4.1 ------------------------------------------------------------ Build time: 2017-08-07 14:38:48 UTC Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b01) OS: Mac OS X 10.13.4 x86_64 [ +1 ms] Resolving dependencies... [ ] [android/] /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/gradlew app:properties [+1194 ms] :app:properties ------------------------------------------------------------ Project :app ------------------------------------------------------------ allprojects: [project ':app'] android: com.android.build.gradle.AppExtension_Decorated@6fea813d androidDependencies: task ':app:androidDependencies' ant: org.gradle.api.internal.project.DefaultAntBuilder@12f38bb7 antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@3e51a150 archivesBaseName: app artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@3c0f904c asDynamicObject: DynamicObject for project ':app' assemble: task ':app:assemble' assembleAndroidTest: task ':app:assembleAndroidTest' assembleDebug: task ':app:assembleDebug' assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest' assembleDebugUnitTest: task ':app:assembleDebugUnitTest' assembleProfile: task ':app:assembleProfile' assembleProfileUnitTest: task ':app:assembleProfileUnitTest' assembleRelease: task ':app:assembleRelease' assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest' baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@7d70d99 buildDependents: task ':app:buildDependents' buildDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app buildFile: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/app/build.gradle buildNeeded: task ':app:buildNeeded' buildOutputs: BaseVariantOutput container buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@9f780e7 buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@3a1ffba8 bundleAppClassesDebug: task ':app:bundleAppClassesDebug' bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest' bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest' bundleAppClassesProfile: task ':app:bundleAppClassesProfile' bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest' bundleAppClassesRelease: task ':app:bundleAppClassesRelease' bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest' check: task ':app:check' checkDebugManifest: task ':app:checkDebugManifest' checkProfileManifest: task ':app:checkProfileManifest' checkReleaseManifest: task ':app:checkReleaseManifest' childProjects: {} class: class org.gradle.api.internal.project.DefaultProject_Decorated classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@7a529157 cleanBuildCache: task ':app:cleanBuildCache' compileDebugAidl: task ':app:compileDebugAidl' compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl' compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac' compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk' compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript' compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders' compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources' compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac' compileDebugNdk: task ':app:compileDebugNdk' compileDebugRenderscript: task ':app:compileDebugRenderscript' compileDebugShaders: task ':app:compileDebugShaders' compileDebugSources: task ':app:compileDebugSources' compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac' compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources' compileLint: task ':app:compileLint' compileProfileAidl: task ':app:compileProfileAidl' compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac' compileProfileNdk: task ':app:compileProfileNdk' compileProfileRenderscript: task ':app:compileProfileRenderscript' compileProfileShaders: task ':app:compileProfileShaders' compileProfileSources: task ':app:compileProfileSources' compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac' compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources' compileReleaseAidl: task ':app:compileReleaseAidl' compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac' compileReleaseNdk: task ':app:compileReleaseNdk' compileReleaseRenderscript: task ':app:compileReleaseRenderscript' compileReleaseShaders: task ':app:compileReleaseShaders' compileReleaseSources: task ':app:compileReleaseSources' compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac' compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources' components: SoftwareComponentInternal set configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@45d6e041 configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@7093a0a4 configurations: configuration container connectedAndroidTest: task ':app:connectedAndroidTest' connectedCheck: task ':app:connectedCheck' connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest' consumeConfigAttr: task ':app:consumeConfigAttr' convention: org.gradle.api.internal.plugins.DefaultConvention@3514c7a5 copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug' copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile' copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease' createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests' createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests' createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests' defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@5b222079 defaultTasks: [] deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@290417b4 dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@44ff14b0 depth: 1 description: null deviceAndroidTest: task ':app:deviceAndroidTest' deviceCheck: task ':app:deviceCheck' displayName: project ':app' distsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/distributions distsDirName: distributions docsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/docs docsDirName: docs ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@57c5ca65 extensions: org.gradle.api.internal.plugins.DefaultConvention@3514c7a5 extractProguardFiles: task ':app:extractProguardFiles' fileOperations: org.gradle.api.internal.file.DefaultFileOperations@1dae190c fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@149e04ba flutter: FlutterExtension_Decorated@28f8c80d flutterBuildDebug: task ':app:flutterBuildDebug' flutterBuildProfile: task ':app:flutterBuildProfile' flutterBuildRelease: task ':app:flutterBuildRelease' flutterBuildX86Jar: task ':app:flutterBuildX86Jar' generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets' generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig' generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues' generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources' generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources' generateDebugAssets: task ':app:generateDebugAssets' generateDebugBuildConfig: task ':app:generateDebugBuildConfig' generateDebugResValues: task ':app:generateDebugResValues' generateDebugResources: task ':app:generateDebugResources' generateDebugSources: task ':app:generateDebugSources' generateProfileAssets: task ':app:generateProfileAssets' generateProfileBuildConfig: task ':app:generateProfileBuildConfig' generateProfileResValues: task ':app:generateProfileResValues' generateProfileResources: task ':app:generateProfileResources' generateProfileSources: task ':app:generateProfileSources' generateReleaseAssets: task ':app:generateReleaseAssets' generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig' generateReleaseResValues: task ':app:generateReleaseResValues' generateReleaseResources: task ':app:generateReleaseResources' generateReleaseSources: task ':app:generateReleaseSources' gradle: build 'android' group: android identityPath: :app inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@5197b995 installDebug: task ':app:installDebug' installDebugAndroidTest: task ':app:installDebugAndroidTest' installProfile: task ':app:installProfile' installRelease: task ':app:installRelease' javaPreCompileDebug: task ':app:javaPreCompileDebug' javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest' javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest' javaPreCompileProfile: task ':app:javaPreCompileProfile' javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest' javaPreCompileRelease: task ':app:javaPreCompileRelease' javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest' layout: org.gradle.api.internal.file.DefaultProjectLayout@3c1cbcd2 libsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/libs libsDirName: libs lint: task ':app:lint' lintDebug: task ':app:lintDebug' lintProfile: task ':app:lintProfile' lintRelease: task ':app:lintRelease' lintVitalRelease: task ':app:lintVitalRelease' logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@2c5e9693 logging: org.gradle.internal.logging.services.DefaultLoggingManager@5843d43f mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets' mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders' mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources' mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders' mergeDebugAssets: task ':app:mergeDebugAssets' mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders' mergeDebugResources: task ':app:mergeDebugResources' mergeDebugShaders: task ':app:mergeDebugShaders' mergeProfileAssets: task ':app:mergeProfileAssets' mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders' mergeProfileResources: task ':app:mergeProfileResources' mergeProfileShaders: task ':app:mergeProfileShaders' mergeReleaseAssets: task ':app:mergeReleaseAssets' mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders' mergeReleaseResources: task ':app:mergeReleaseResources' mergeReleaseShaders: task ':app:mergeReleaseShaders' mockableAndroidJar: task ':app:mockableAndroidJar' modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@3615d79a modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@4cad276d module: org.gradle.api.internal.artifacts.ProjectBackedModule@4a18bc50 name: app normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@5a229bdc objects: org.gradle.api.internal.model.DefaultObjectFactory@15978c95 org.gradle.jvmargs: -Xmx1536M packageDebug: task ':app:packageDebug' packageDebugAndroidTest: task ':app:packageDebugAndroidTest' packageProfile: task ':app:packageProfile' packageRelease: task ':app:packageRelease' parent: root project 'android' parentIdentifier: root project 'android' path: :app platformAttrExtractor: task ':app:platformAttrExtractor' pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@3014666 plugins: [org.gradle.api.plugins.HelpTasksPlugin@3e29f4c0, com.android.build.gradle.api.AndroidBasePlugin@18088bd5, org.gradle.language.base.plugins.LifecycleBasePlugin@46edb183, org.gradle.api.plugins.BasePlugin@5b6510e6, org.gradle.api.plugins.ReportingBasePlugin@37971b2a, org.gradle.platform.base.plugins.ComponentBasePlugin@781c085c, org.gradle.language.base.plugins.LanguageBasePlugin@775d123e, org.gradle.platform.base.plugins.BinaryBasePlugin@3ad62366, org.gradle.api.plugins.JavaBasePlugin@52b204e8, com.android.build.gradle.internal.coverage.JacocoPlugin@31c8b381, com.android.build.gradle.AppPlugin@7f1f834c, FlutterPlugin@d15054] preBuild: task ':app:preBuild' preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild' preDebugBuild: task ':app:preDebugBuild' preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild' preProfileBuild: task ':app:preProfileBuild' preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild' preReleaseBuild: task ':app:preReleaseBuild' preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild' prepareLintJar: task ':app:prepareLintJar' processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes' processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest' processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources' processDebugJavaRes: task ':app:processDebugJavaRes' processDebugManifest: task ':app:processDebugManifest' processDebugResources: task ':app:processDebugResources' processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes' processOperations: org.gradle.api.internal.file.DefaultFileOperations@1dae190c processProfileJavaRes: task ':app:processProfileJavaRes' processProfileManifest: task ':app:processProfileManifest' processProfileResources: task ':app:processProfileResources' processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes' processReleaseJavaRes: task ':app:processReleaseJavaRes' processReleaseManifest: task ':app:processReleaseManifest' processReleaseResources: task ':app:processReleaseResources' processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes' project: project ':app' projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@45259815 projectDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/app projectEvaluationBroadcaster: ProjectEvaluationListener broadcast projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@5d143e2c projectPath: :app projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@13a6a229 properties: {...} providers: org.gradle.api.internal.provider.DefaultProviderFactory@325ed692 reporting: org.gradle.api.reporting.ReportingExtension_Decorated@1a1df44d reportsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/reports repositories: repository container resolveConfigAttr: task ':app:resolveConfigAttr' resources: org.gradle.api.internal.resources.DefaultResourceHandler@7391222b rootDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android rootProject: root project 'android' scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@f08972b scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@2919cb09 serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@5c53fdfb services: ProjectScopeServices signingReport: task ':app:signingReport' sourceCompatibility: 1.8 sourceSets: SourceSet container splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug' splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest' splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile' splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease' standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@5843d43f state: project state 'EXECUTED' status: integration subprojects: [] targetCompatibility: 1.8 tasks: task set test: task ':app:test' testDebugUnitTest: task ':app:testDebugUnitTest' testProfileUnitTest: task ':app:testProfileUnitTest' testReleaseUnitTest: task ':app:testReleaseUnitTest' testReportDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/reports/tests testReportDirName: tests testResultsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/test-results testResultsDirName: test-results transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug' transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest' transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile' transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease' transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug' transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest' transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile' transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest' transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile' transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease' transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug' transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest' transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile' transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease' transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug' transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest' transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest' transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile' transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest' transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease' transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest' uninstallAll: task ':app:uninstallAll' uninstallDebug: task ':app:uninstallDebug' uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest' uninstallProfile: task ':app:uninstallProfile' uninstallRelease: task ':app:uninstallRelease' validateSigningDebug: task ':app:validateSigningDebug' validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest' validateSigningProfile: task ':app:validateSigningProfile' validateSigningRelease: task ':app:validateSigningRelease' version: unspecified writeDebugApplicationId: task ':app:writeDebugApplicationId' writeProfileApplicationId: task ':app:writeProfileApplicationId' writeReleaseApplicationId: task ':app:writeReleaseApplicationId' BUILD SUCCESSFUL in 1s 1 actionable task: 1 executed [ +8 ms] /Users/denis.feoktistov/Library/Android/sdk/build-tools/27.0.3/aapt dump badging build/app/outputs/apk/app.apk [ +43 ms] Exit code 0 from: /Users/denis.feoktistov/Library/Android/sdk/build-tools/27.0.3/aapt dump badging build/app/outputs/apk/app.apk [ ] package: name='io.flutter.demo.gallery' versionCode='4005012' versionName='0.4.5-pre.12' platformBuildVersionName='' sdkVersion:'16' targetSdkVersion:'27' uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permission.ACCESS_NETWORK_STATE' application-label:'Gallery' application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png' application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png' application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png' application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png' application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png' application: label='Gallery' icon='res/mipmap-mdpi-v4/ic_launcher.png' application-debuggable launchable-activity: name='io.flutter.demo.gallery.MainActivity' label='' icon='' feature-group: label='' uses-feature: name='android.hardware.faketouch' uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps' main other-activities supports-screens: 'small' 'normal' 'large' 'xlarge' supports-any-density: 'true' locales: '--_--' densities: '160' '240' '320' '480' '640' native-code: 'armeabi-v7a' 'x86' 'x86_64' [ +8 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 logcat -v time -t 1 [ +25 ms] Exit code 0 from: /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 logcat -v time -t 1 [ ] --------- beginning of main 05-16 08:32:41.261 I/PlayCommon( 2447): [157] com.google.android.play.b.h.e(267): No file ready to send [ +3 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 logcat -v time [ +438 ms] DependencyChecker: nothing is modified after 2018-05-16 08:15:43.262. [ +3 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb version [ +23 ms] Android Debug Bridge version 1.0.39 Version 0.0.1-4500957 Installed as /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb [ +4 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb start-server [ +193 ms] Building APK [ +5 ms] Running 'gradlew assembleDebug'... [ +2 ms] [android/] /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/gradlew -Ptarget=/Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/lib/main.dart -Ppreview-dart-2=true -Pfilesystem-scheme=org-dartlang-root assembleDebug [ +950 ms] :app:preBuild UP-TO-DATE [ ] :connectivity:preBuild UP-TO-DATE [ ] :connectivity:preDebugBuild UP-TO-DATE [ +7 ms] :connectivity:checkDebugManifest UP-TO-DATE [ ] :connectivity:processDebugManifest UP-TO-DATE [ ] :device_info:preBuild UP-TO-DATE [ ] :device_info:preDebugBuild UP-TO-DATE [ ] :device_info:checkDebugManifest UP-TO-DATE [ ] :device_info:processDebugManifest UP-TO-DATE [ +10 ms] :url_launcher:preBuild UP-TO-DATE [ ] :url_launcher:preDebugBuild UP-TO-DATE [ ] :url_launcher:checkDebugManifest UP-TO-DATE [ ] :url_launcher:processDebugManifest UP-TO-DATE [ ] :video_player:preBuild UP-TO-DATE [ ] :video_player:preDebugBuild UP-TO-DATE [ ] :video_player:checkDebugManifest UP-TO-DATE [ ] :video_player:processDebugManifest UP-TO-DATE [ +20 ms] :app:preDebugBuild UP-TO-DATE [ +11 ms] :connectivity:compileDebugAidl UP-TO-DATE [ ] :device_info:compileDebugAidl UP-TO-DATE [ +10 ms] :url_launcher:compileDebugAidl UP-TO-DATE [ +10 ms] :video_player:compileDebugAidl UP-TO-DATE [ ] :app:compileDebugAidl UP-TO-DATE [ ] :connectivity:packageDebugRenderscript NO-SOURCE [ ] :device_info:packageDebugRenderscript NO-SOURCE [ ] :url_launcher:packageDebugRenderscript NO-SOURCE [ ] :video_player:packageDebugRenderscript NO-SOURCE [ +9 ms] :app:compileDebugRenderscript UP-TO-DATE [ +63 ms] :app:flutterBuildX86Jar UP-TO-DATE [ ] :app:checkDebugManifest UP-TO-DATE [ +10 ms] :app:generateDebugBuildConfig UP-TO-DATE [ ] :app:prepareLintJar UP-TO-DATE [ +34 ms] :app:cleanMergeDebugAssets [ +164 ms] :app:flutterBuildDebug UP-TO-DATE [ ] :app:mergeDebugShaders UP-TO-DATE [ +10 ms] :app:compileDebugShaders UP-TO-DATE [ ] :app:generateDebugAssets UP-TO-DATE [ ] :connectivity:mergeDebugShaders UP-TO-DATE [ ] :connectivity:compileDebugShaders UP-TO-DATE [ ] :connectivity:generateDebugAssets UP-TO-DATE [ ] :connectivity:mergeDebugAssets UP-TO-DATE [ +10 ms] :device_info:mergeDebugShaders UP-TO-DATE [ ] :device_info:compileDebugShaders UP-TO-DATE [ ] :device_info:generateDebugAssets UP-TO-DATE [ ] :device_info:mergeDebugAssets UP-TO-DATE [ ] :url_launcher:mergeDebugShaders UP-TO-DATE [ ] :url_launcher:compileDebugShaders UP-TO-DATE [ ] :url_launcher:generateDebugAssets UP-TO-DATE [ ] :url_launcher:mergeDebugAssets UP-TO-DATE [ +9 ms] :video_player:mergeDebugShaders UP-TO-DATE [ ] :video_player:compileDebugShaders UP-TO-DATE [ ] :video_player:generateDebugAssets UP-TO-DATE [ ] :video_player:mergeDebugAssets UP-TO-DATE [ +9 ms] :app:mergeDebugAssets [ +643 ms] :app:copyFlutterAssetsDebug [ ] :app:generateDebugResValues UP-TO-DATE [ ] :app:generateDebugResources UP-TO-DATE [ +10 ms] :connectivity:compileDebugRenderscript UP-TO-DATE [ ] :connectivity:generateDebugResValues UP-TO-DATE [ ] :connectivity:generateDebugResources UP-TO-DATE [ ] :connectivity:packageDebugResources UP-TO-DATE [ ] :device_info:compileDebugRenderscript UP-TO-DATE [ +10 ms] :device_info:generateDebugResValues UP-TO-DATE [ ] :device_info:generateDebugResources UP-TO-DATE [ ] :device_info:packageDebugResources UP-TO-DATE [ +11 ms] :url_launcher:compileDebugRenderscript UP-TO-DATE [ ] :url_launcher:generateDebugResValues UP-TO-DATE [ ] :url_launcher:generateDebugResources UP-TO-DATE [ ] :url_launcher:packageDebugResources UP-TO-DATE [ ] :video_player:compileDebugRenderscript UP-TO-DATE [ ] :video_player:generateDebugResValues UP-TO-DATE [ +9 ms] :video_player:generateDebugResources UP-TO-DATE [ +10 ms] :video_player:packageDebugResources UP-TO-DATE [ ] :app:mergeDebugResources UP-TO-DATE [ ] :app:createDebugCompatibleScreenManifests UP-TO-DATE [ +10 ms] :app:processDebugManifest UP-TO-DATE [ ] :app:splitsDiscoveryTaskDebug UP-TO-DATE [ ] :connectivity:platformAttrExtractor UP-TO-DATE [ ] :connectivity:processDebugResources UP-TO-DATE [ ] :device_info:platformAttrExtractor UP-TO-DATE [ +10 ms] :device_info:processDebugResources UP-TO-DATE [ ] :url_launcher:platformAttrExtractor UP-TO-DATE [ ] :url_launcher:processDebugResources UP-TO-DATE [ ] :video_player:platformAttrExtractor UP-TO-DATE [ +12 ms] :video_player:processDebugResources UP-TO-DATE [ ] :app:processDebugResources UP-TO-DATE [ ] :app:generateDebugSources UP-TO-DATE [ ] :connectivity:generateDebugBuildConfig UP-TO-DATE [ ] :connectivity:prepareLintJar UP-TO-DATE [ ] :connectivity:generateDebugSources UP-TO-DATE [ ] :connectivity:javaPreCompileDebug UP-TO-DATE [ +9 ms] :connectivity:compileDebugJavaWithJavac UP-TO-DATE [ ] :connectivity:processDebugJavaRes NO-SOURCE [ ] :connectivity:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ ] :device_info:generateDebugBuildConfig UP-TO-DATE [ ] :device_info:prepareLintJar UP-TO-DATE [ +11 ms] :device_info:generateDebugSources UP-TO-DATE [ ] :device_info:javaPreCompileDebug UP-TO-DATE [ ] :device_info:compileDebugJavaWithJavac UP-TO-DATE [ ] :device_info:processDebugJavaRes NO-SOURCE [ ] :device_info:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ ] :url_launcher:generateDebugBuildConfig UP-TO-DATE [ ] :url_launcher:prepareLintJar UP-TO-DATE [ +10 ms] :url_launcher:generateDebugSources UP-TO-DATE [ ] :url_launcher:javaPreCompileDebug UP-TO-DATE [ ] :url_launcher:compileDebugJavaWithJavac UP-TO-DATE [ ] :url_launcher:processDebugJavaRes NO-SOURCE [ ] :url_launcher:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ ] :video_player:generateDebugBuildConfig UP-TO-DATE [ +9 ms] :video_player:prepareLintJar UP-TO-DATE [ ] :video_player:generateDebugSources UP-TO-DATE [ ] :video_player:javaPreCompileDebug UP-TO-DATE [ ] :video_player:compileDebugJavaWithJavac UP-TO-DATE [ ] :video_player:processDebugJavaRes NO-SOURCE [ ] :video_player:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ +12 ms] :app:javaPreCompileDebug UP-TO-DATE [ ] :app:compileDebugJavaWithJavac UP-TO-DATE [ ] :app:compileDebugNdk NO-SOURCE [ ] :app:compileDebugSources UP-TO-DATE [ +46 ms] :app:transformClassesWithDexBuilderForDebug UP-TO-DATE [ ] :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE [ +11 ms] :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE [ ] :app:mergeDebugJniLibFolders UP-TO-DATE [ ] :connectivity:compileDebugNdk NO-SOURCE [ ] :connectivity:mergeDebugJniLibFolders UP-TO-DATE [ ] :connectivity:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :connectivity:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ ] :device_info:compileDebugNdk NO-SOURCE [ +8 ms] :device_info:mergeDebugJniLibFolders UP-TO-DATE [ ] :device_info:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :device_info:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ ] :url_launcher:compileDebugNdk NO-SOURCE [ +12 ms] :url_launcher:mergeDebugJniLibFolders UP-TO-DATE [ ] :url_launcher:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :url_launcher:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ ] :video_player:compileDebugNdk NO-SOURCE [ ] :video_player:mergeDebugJniLibFolders UP-TO-DATE [ +10 ms] :video_player:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :video_player:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ ] :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :app:processDebugJavaRes NO-SOURCE [ +22 ms] :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :app:validateSigningDebug [ +21 ms] :app:packageDebug UP-TO-DATE [ +10 ms] :app:assembleDebug UP-TO-DATE [ ] :connectivity:extractDebugAnnotations UP-TO-DATE [ ] :connectivity:mergeDebugConsumerProguardFiles UP-TO-DATE [ +13 ms] :connectivity:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :connectivity:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ ] :connectivity:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ ] :connectivity:bundleDebug UP-TO-DATE [ ] :connectivity:compileDebugSources UP-TO-DATE [ ] :connectivity:assembleDebug UP-TO-DATE [ +10 ms] :device_info:extractDebugAnnotations UP-TO-DATE [ ] :device_info:mergeDebugConsumerProguardFiles UP-TO-DATE [ ] :device_info:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :device_info:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ ] :device_info:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ +10 ms] :device_info:bundleDebug UP-TO-DATE [ ] :device_info:compileDebugSources UP-TO-DATE [ ] :device_info:assembleDebug UP-TO-DATE [ ] :url_launcher:extractDebugAnnotations UP-TO-DATE [ ] :url_launcher:mergeDebugConsumerProguardFiles UP-TO-DATE [ ] :url_launcher:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ +11 ms] :url_launcher:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ ] :url_launcher:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ ] :url_launcher:bundleDebug UP-TO-DATE [ ] :url_launcher:compileDebugSources UP-TO-DATE [ ] :url_launcher:assembleDebug UP-TO-DATE [ ] :video_player:extractDebugAnnotations UP-TO-DATE [ ] :video_player:mergeDebugConsumerProguardFiles UP-TO-DATE [ +10 ms] :video_player:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :video_player:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ ] :video_player:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ ] :video_player:bundleDebug UP-TO-DATE [ ] :video_player:compileDebugSources UP-TO-DATE [ ] :video_player:assembleDebug UP-TO-DATE [ ] BUILD SUCCESSFUL in 2s [ ] 129 actionable tasks: 4 executed, 125 up-to-date [ +459 ms] calculateSha: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/outputs/apk/app.apk [ +591 ms] Built build/app/outputs/apk/debug/app-debug.apk. [ +1 ms] /Users/denis.feoktistov/Library/Android/sdk/build-tools/27.0.3/aapt dump badging build/app/outputs/apk/app.apk [ +15 ms] Exit code 0 from: /Users/denis.feoktistov/Library/Android/sdk/build-tools/27.0.3/aapt dump badging build/app/outputs/apk/app.apk [ ] package: name='io.flutter.demo.gallery' versionCode='4005012' versionName='0.4.5-pre.12' platformBuildVersionName='' sdkVersion:'16' targetSdkVersion:'27' uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permission.ACCESS_NETWORK_STATE' application-label:'Gallery' application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png' application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png' application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png' application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png' application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png' application: label='Gallery' icon='res/mipmap-mdpi-v4/ic_launcher.png' application-debuggable launchable-activity: name='io.flutter.demo.gallery.MainActivity' label='' icon='' feature-group: label='' uses-feature: name='android.hardware.faketouch' uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps' main other-activities supports-screens: 'small' 'normal' 'large' 'xlarge' supports-any-density: 'true' locales: '--_--' densities: '160' '240' '320' '480' '640' native-code: 'armeabi-v7a' 'x86' 'x86_64' [ +1 ms] Stopping app 'app.apk' on Android SDK built for x86. [ ] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am force-stop io.flutter.demo.gallery [ +228 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm list packages io.flutter.demo.gallery [ +418 ms] package:io.flutter.demo.gallery [ +3 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.io.flutter.demo.gallery.sha1 [ +29 ms] 388a4df2d9b9a9ba5f86e6b667283e603af85b74 [ +1 ms] Latest build already installed. [ ] Android SDK built for x86 startApp [ +2 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true io.flutter.demo.gallery/io.flutter.demo.gallery.MainActivity [ +270 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=io.flutter.demo.gallery/.MainActivity (has extras) } [ ] Waiting for observatory port to be available... [ +198 ms] I/FlutterActivityDelegate( 5180): onResume setting current activity to this [ +101 ms] Observatory URL on device: http://127.0.0.1:43862/ [ +6 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward tcp:8102 tcp:43862 [ +19 ms] Forwarded host port 8102 to device port 43862 for Observatory [ +8 ms] Connecting to service protocol: http://127.0.0.1:8102/ [ +190 ms] Successfully connected to service protocol: http://127.0.0.1:8102/ [ +4 ms] getVM: {} [ +11 ms] getIsolate: {isolateId: isolates/726581546} [ +2 ms] _flutter.listViews: {} [ +270 ms] DevFS: Creating new filesystem on the device (null) [ ] _createDevFS: {fsName: flutter_gallery} [ +18 ms] DevFS: Created new filesystem on the device (file:///data/user/0/io.flutter.demo.gallery/cache/flutter_galleryCZOZLR/flutter_gallery/) [ +1 ms] Updating assets [ +305 ms] D/ ( 5180): HostConnection::get() New Host Connection established 0xab108540, tid 5197 [ ] D/EGL_emulation( 5180): eglMakeCurrent: 0xb0429260: ver 3 0 (tinfo 0xab103200) [ +175 ms] Syncing files to device Android SDK built for x86... [ +7 ms] DevFS: Starting sync from LocalDirectory: '/Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery' [ ] Scanning project files [ +20 ms] Scanning package files [ +93 ms] Scanning asset files [ +8 ms] Scanning for deleted files [ +12 ms] Compiling dart to kernel with 539 updated files [ +2 ms] /Users/denis.feoktistov/Development/Frameworks/flutter/bin/cache/dart-sdk/bin/dart /Users/denis.feoktistov/Development/Frameworks/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/denis.feoktistov/Development/Frameworks/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/.packages --filesystem-scheme org-dartlang-root [+1516 ms] Updating files [+2096 ms] DevFS: Sync finished [ +1 ms] Synced 11.7MB. [ +5 ms] _flutter.listViews: {} [ +5 ms] Connected to _flutterView/0xb043530c. [ +1 ms] 🔥 To hot reload your app on the fly, press &quot;r&quot;. To restart the app entirely, press &quot;R&quot;. [ ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:8102/ [ ] For a more detailed help message, press &quot;h&quot;. To quit, press &quot;q&quot;."><pre class="notranslate"><code class="notranslate">[ +28 ms] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +39 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git rev-parse --abbrev-ref HEAD [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git ls-remote --get-url origin [ +11 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git log -n 1 --pretty=format:%H [ +44 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] c169136effe913693a5d31f0b9b97cce53a6a1df [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git log -n 1 --pretty=format:%ar [ +13 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 2 hours ago [ ] [/Users/denis.feoktistov/Development/Frameworks/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +61 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.4.4-12-gc169136ef [ +321 ms] /usr/bin/defaults read /Applications/Android Studio 3.2 Preview.app/Contents/Info CFBundleShortVersionString [ +101 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio 3.2 Preview.app/Contents/Info CFBundleShortVersionString [ ] EAP AI-181.4668.68.32.4763614 [ +100 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +44 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +110 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb devices -l [ +16 ms] Exit code 0 from: /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached emulator-5554 device product:sdk_google_phone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:1 [ +9 ms] idevice_id -h [ +325 ms] /usr/bin/xcrun simctl list --json devices [ +193 ms] Found plugin connectivity at /Users/denis.feoktistov/.pub-cache/hosted/pub.dartlang.org/connectivity-0.3.0/ [ +26 ms] Found plugin device_info at /Users/denis.feoktistov/.pub-cache/hosted/pub.dartlang.org/device_info-0.2.0/ [ +97 ms] Found plugin url_launcher at /Users/denis.feoktistov/.pub-cache/hosted/pub.dartlang.org/url_launcher-3.0.0/ [ +3 ms] Found plugin video_player at /Users/denis.feoktistov/.pub-cache/hosted/pub.dartlang.org/video_player-0.5.1/ [ +71 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop [ +29 ms] ro.hardware = ranchu [ +15 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering". [ +936 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode... [ +6 ms] Initializing gradle... [ +7 ms] Using gradle from /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/gradlew. [ +96 ms] /usr/bin/defaults read /Applications/Android Studio 3.2 Preview.app/Contents/Info CFBundleShortVersionString [ +43 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio 3.2 Preview.app/Contents/Info CFBundleShortVersionString [ ] EAP AI-181.4668.68.32.4763614 [ +87 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +43 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +79 ms] /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/gradlew -v [ +659 ms] ------------------------------------------------------------ Gradle 4.1 ------------------------------------------------------------ Build time: 2017-08-07 14:38:48 UTC Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b01) OS: Mac OS X 10.13.4 x86_64 [ +1 ms] Resolving dependencies... [ ] [android/] /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/gradlew app:properties [+1194 ms] :app:properties ------------------------------------------------------------ Project :app ------------------------------------------------------------ allprojects: [project ':app'] android: com.android.build.gradle.AppExtension_Decorated@6fea813d androidDependencies: task ':app:androidDependencies' ant: org.gradle.api.internal.project.DefaultAntBuilder@12f38bb7 antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@3e51a150 archivesBaseName: app artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@3c0f904c asDynamicObject: DynamicObject for project ':app' assemble: task ':app:assemble' assembleAndroidTest: task ':app:assembleAndroidTest' assembleDebug: task ':app:assembleDebug' assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest' assembleDebugUnitTest: task ':app:assembleDebugUnitTest' assembleProfile: task ':app:assembleProfile' assembleProfileUnitTest: task ':app:assembleProfileUnitTest' assembleRelease: task ':app:assembleRelease' assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest' baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@7d70d99 buildDependents: task ':app:buildDependents' buildDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app buildFile: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/app/build.gradle buildNeeded: task ':app:buildNeeded' buildOutputs: BaseVariantOutput container buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@9f780e7 buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@3a1ffba8 bundleAppClassesDebug: task ':app:bundleAppClassesDebug' bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest' bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest' bundleAppClassesProfile: task ':app:bundleAppClassesProfile' bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest' bundleAppClassesRelease: task ':app:bundleAppClassesRelease' bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest' check: task ':app:check' checkDebugManifest: task ':app:checkDebugManifest' checkProfileManifest: task ':app:checkProfileManifest' checkReleaseManifest: task ':app:checkReleaseManifest' childProjects: {} class: class org.gradle.api.internal.project.DefaultProject_Decorated classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@7a529157 cleanBuildCache: task ':app:cleanBuildCache' compileDebugAidl: task ':app:compileDebugAidl' compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl' compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac' compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk' compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript' compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders' compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources' compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac' compileDebugNdk: task ':app:compileDebugNdk' compileDebugRenderscript: task ':app:compileDebugRenderscript' compileDebugShaders: task ':app:compileDebugShaders' compileDebugSources: task ':app:compileDebugSources' compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac' compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources' compileLint: task ':app:compileLint' compileProfileAidl: task ':app:compileProfileAidl' compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac' compileProfileNdk: task ':app:compileProfileNdk' compileProfileRenderscript: task ':app:compileProfileRenderscript' compileProfileShaders: task ':app:compileProfileShaders' compileProfileSources: task ':app:compileProfileSources' compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac' compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources' compileReleaseAidl: task ':app:compileReleaseAidl' compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac' compileReleaseNdk: task ':app:compileReleaseNdk' compileReleaseRenderscript: task ':app:compileReleaseRenderscript' compileReleaseShaders: task ':app:compileReleaseShaders' compileReleaseSources: task ':app:compileReleaseSources' compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac' compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources' components: SoftwareComponentInternal set configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@45d6e041 configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@7093a0a4 configurations: configuration container connectedAndroidTest: task ':app:connectedAndroidTest' connectedCheck: task ':app:connectedCheck' connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest' consumeConfigAttr: task ':app:consumeConfigAttr' convention: org.gradle.api.internal.plugins.DefaultConvention@3514c7a5 copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug' copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile' copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease' createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests' createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests' createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests' defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@5b222079 defaultTasks: [] deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@290417b4 dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@44ff14b0 depth: 1 description: null deviceAndroidTest: task ':app:deviceAndroidTest' deviceCheck: task ':app:deviceCheck' displayName: project ':app' distsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/distributions distsDirName: distributions docsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/docs docsDirName: docs ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@57c5ca65 extensions: org.gradle.api.internal.plugins.DefaultConvention@3514c7a5 extractProguardFiles: task ':app:extractProguardFiles' fileOperations: org.gradle.api.internal.file.DefaultFileOperations@1dae190c fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@149e04ba flutter: FlutterExtension_Decorated@28f8c80d flutterBuildDebug: task ':app:flutterBuildDebug' flutterBuildProfile: task ':app:flutterBuildProfile' flutterBuildRelease: task ':app:flutterBuildRelease' flutterBuildX86Jar: task ':app:flutterBuildX86Jar' generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets' generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig' generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues' generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources' generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources' generateDebugAssets: task ':app:generateDebugAssets' generateDebugBuildConfig: task ':app:generateDebugBuildConfig' generateDebugResValues: task ':app:generateDebugResValues' generateDebugResources: task ':app:generateDebugResources' generateDebugSources: task ':app:generateDebugSources' generateProfileAssets: task ':app:generateProfileAssets' generateProfileBuildConfig: task ':app:generateProfileBuildConfig' generateProfileResValues: task ':app:generateProfileResValues' generateProfileResources: task ':app:generateProfileResources' generateProfileSources: task ':app:generateProfileSources' generateReleaseAssets: task ':app:generateReleaseAssets' generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig' generateReleaseResValues: task ':app:generateReleaseResValues' generateReleaseResources: task ':app:generateReleaseResources' generateReleaseSources: task ':app:generateReleaseSources' gradle: build 'android' group: android identityPath: :app inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@5197b995 installDebug: task ':app:installDebug' installDebugAndroidTest: task ':app:installDebugAndroidTest' installProfile: task ':app:installProfile' installRelease: task ':app:installRelease' javaPreCompileDebug: task ':app:javaPreCompileDebug' javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest' javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest' javaPreCompileProfile: task ':app:javaPreCompileProfile' javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest' javaPreCompileRelease: task ':app:javaPreCompileRelease' javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest' layout: org.gradle.api.internal.file.DefaultProjectLayout@3c1cbcd2 libsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/libs libsDirName: libs lint: task ':app:lint' lintDebug: task ':app:lintDebug' lintProfile: task ':app:lintProfile' lintRelease: task ':app:lintRelease' lintVitalRelease: task ':app:lintVitalRelease' logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@2c5e9693 logging: org.gradle.internal.logging.services.DefaultLoggingManager@5843d43f mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets' mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders' mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources' mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders' mergeDebugAssets: task ':app:mergeDebugAssets' mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders' mergeDebugResources: task ':app:mergeDebugResources' mergeDebugShaders: task ':app:mergeDebugShaders' mergeProfileAssets: task ':app:mergeProfileAssets' mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders' mergeProfileResources: task ':app:mergeProfileResources' mergeProfileShaders: task ':app:mergeProfileShaders' mergeReleaseAssets: task ':app:mergeReleaseAssets' mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders' mergeReleaseResources: task ':app:mergeReleaseResources' mergeReleaseShaders: task ':app:mergeReleaseShaders' mockableAndroidJar: task ':app:mockableAndroidJar' modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@3615d79a modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@4cad276d module: org.gradle.api.internal.artifacts.ProjectBackedModule@4a18bc50 name: app normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@5a229bdc objects: org.gradle.api.internal.model.DefaultObjectFactory@15978c95 org.gradle.jvmargs: -Xmx1536M packageDebug: task ':app:packageDebug' packageDebugAndroidTest: task ':app:packageDebugAndroidTest' packageProfile: task ':app:packageProfile' packageRelease: task ':app:packageRelease' parent: root project 'android' parentIdentifier: root project 'android' path: :app platformAttrExtractor: task ':app:platformAttrExtractor' pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@3014666 plugins: [org.gradle.api.plugins.HelpTasksPlugin@3e29f4c0, com.android.build.gradle.api.AndroidBasePlugin@18088bd5, org.gradle.language.base.plugins.LifecycleBasePlugin@46edb183, org.gradle.api.plugins.BasePlugin@5b6510e6, org.gradle.api.plugins.ReportingBasePlugin@37971b2a, org.gradle.platform.base.plugins.ComponentBasePlugin@781c085c, org.gradle.language.base.plugins.LanguageBasePlugin@775d123e, org.gradle.platform.base.plugins.BinaryBasePlugin@3ad62366, org.gradle.api.plugins.JavaBasePlugin@52b204e8, com.android.build.gradle.internal.coverage.JacocoPlugin@31c8b381, com.android.build.gradle.AppPlugin@7f1f834c, FlutterPlugin@d15054] preBuild: task ':app:preBuild' preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild' preDebugBuild: task ':app:preDebugBuild' preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild' preProfileBuild: task ':app:preProfileBuild' preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild' preReleaseBuild: task ':app:preReleaseBuild' preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild' prepareLintJar: task ':app:prepareLintJar' processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes' processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest' processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources' processDebugJavaRes: task ':app:processDebugJavaRes' processDebugManifest: task ':app:processDebugManifest' processDebugResources: task ':app:processDebugResources' processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes' processOperations: org.gradle.api.internal.file.DefaultFileOperations@1dae190c processProfileJavaRes: task ':app:processProfileJavaRes' processProfileManifest: task ':app:processProfileManifest' processProfileResources: task ':app:processProfileResources' processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes' processReleaseJavaRes: task ':app:processReleaseJavaRes' processReleaseManifest: task ':app:processReleaseManifest' processReleaseResources: task ':app:processReleaseResources' processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes' project: project ':app' projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@45259815 projectDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/app projectEvaluationBroadcaster: ProjectEvaluationListener broadcast projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@5d143e2c projectPath: :app projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@13a6a229 properties: {...} providers: org.gradle.api.internal.provider.DefaultProviderFactory@325ed692 reporting: org.gradle.api.reporting.ReportingExtension_Decorated@1a1df44d reportsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/reports repositories: repository container resolveConfigAttr: task ':app:resolveConfigAttr' resources: org.gradle.api.internal.resources.DefaultResourceHandler@7391222b rootDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android rootProject: root project 'android' scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@f08972b scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@2919cb09 serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@5c53fdfb services: ProjectScopeServices signingReport: task ':app:signingReport' sourceCompatibility: 1.8 sourceSets: SourceSet container splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug' splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest' splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile' splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease' standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@5843d43f state: project state 'EXECUTED' status: integration subprojects: [] targetCompatibility: 1.8 tasks: task set test: task ':app:test' testDebugUnitTest: task ':app:testDebugUnitTest' testProfileUnitTest: task ':app:testProfileUnitTest' testReleaseUnitTest: task ':app:testReleaseUnitTest' testReportDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/reports/tests testReportDirName: tests testResultsDir: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/test-results testResultsDirName: test-results transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug' transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest' transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile' transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease' transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug' transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest' transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile' transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest' transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile' transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease' transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug' transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest' transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile' transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease' transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug' transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest' transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest' transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile' transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest' transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease' transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest' uninstallAll: task ':app:uninstallAll' uninstallDebug: task ':app:uninstallDebug' uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest' uninstallProfile: task ':app:uninstallProfile' uninstallRelease: task ':app:uninstallRelease' validateSigningDebug: task ':app:validateSigningDebug' validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest' validateSigningProfile: task ':app:validateSigningProfile' validateSigningRelease: task ':app:validateSigningRelease' version: unspecified writeDebugApplicationId: task ':app:writeDebugApplicationId' writeProfileApplicationId: task ':app:writeProfileApplicationId' writeReleaseApplicationId: task ':app:writeReleaseApplicationId' BUILD SUCCESSFUL in 1s 1 actionable task: 1 executed [ +8 ms] /Users/denis.feoktistov/Library/Android/sdk/build-tools/27.0.3/aapt dump badging build/app/outputs/apk/app.apk [ +43 ms] Exit code 0 from: /Users/denis.feoktistov/Library/Android/sdk/build-tools/27.0.3/aapt dump badging build/app/outputs/apk/app.apk [ ] package: name='io.flutter.demo.gallery' versionCode='4005012' versionName='0.4.5-pre.12' platformBuildVersionName='' sdkVersion:'16' targetSdkVersion:'27' uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permission.ACCESS_NETWORK_STATE' application-label:'Gallery' application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png' application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png' application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png' application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png' application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png' application: label='Gallery' icon='res/mipmap-mdpi-v4/ic_launcher.png' application-debuggable launchable-activity: name='io.flutter.demo.gallery.MainActivity' label='' icon='' feature-group: label='' uses-feature: name='android.hardware.faketouch' uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps' main other-activities supports-screens: 'small' 'normal' 'large' 'xlarge' supports-any-density: 'true' locales: '--_--' densities: '160' '240' '320' '480' '640' native-code: 'armeabi-v7a' 'x86' 'x86_64' [ +8 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 logcat -v time -t 1 [ +25 ms] Exit code 0 from: /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 logcat -v time -t 1 [ ] --------- beginning of main 05-16 08:32:41.261 I/PlayCommon( 2447): [157] com.google.android.play.b.h.e(267): No file ready to send [ +3 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 logcat -v time [ +438 ms] DependencyChecker: nothing is modified after 2018-05-16 08:15:43.262. [ +3 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb version [ +23 ms] Android Debug Bridge version 1.0.39 Version 0.0.1-4500957 Installed as /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb [ +4 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb start-server [ +193 ms] Building APK [ +5 ms] Running 'gradlew assembleDebug'... [ +2 ms] [android/] /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/android/gradlew -Ptarget=/Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/lib/main.dart -Ppreview-dart-2=true -Pfilesystem-scheme=org-dartlang-root assembleDebug [ +950 ms] :app:preBuild UP-TO-DATE [ ] :connectivity:preBuild UP-TO-DATE [ ] :connectivity:preDebugBuild UP-TO-DATE [ +7 ms] :connectivity:checkDebugManifest UP-TO-DATE [ ] :connectivity:processDebugManifest UP-TO-DATE [ ] :device_info:preBuild UP-TO-DATE [ ] :device_info:preDebugBuild UP-TO-DATE [ ] :device_info:checkDebugManifest UP-TO-DATE [ ] :device_info:processDebugManifest UP-TO-DATE [ +10 ms] :url_launcher:preBuild UP-TO-DATE [ ] :url_launcher:preDebugBuild UP-TO-DATE [ ] :url_launcher:checkDebugManifest UP-TO-DATE [ ] :url_launcher:processDebugManifest UP-TO-DATE [ ] :video_player:preBuild UP-TO-DATE [ ] :video_player:preDebugBuild UP-TO-DATE [ ] :video_player:checkDebugManifest UP-TO-DATE [ ] :video_player:processDebugManifest UP-TO-DATE [ +20 ms] :app:preDebugBuild UP-TO-DATE [ +11 ms] :connectivity:compileDebugAidl UP-TO-DATE [ ] :device_info:compileDebugAidl UP-TO-DATE [ +10 ms] :url_launcher:compileDebugAidl UP-TO-DATE [ +10 ms] :video_player:compileDebugAidl UP-TO-DATE [ ] :app:compileDebugAidl UP-TO-DATE [ ] :connectivity:packageDebugRenderscript NO-SOURCE [ ] :device_info:packageDebugRenderscript NO-SOURCE [ ] :url_launcher:packageDebugRenderscript NO-SOURCE [ ] :video_player:packageDebugRenderscript NO-SOURCE [ +9 ms] :app:compileDebugRenderscript UP-TO-DATE [ +63 ms] :app:flutterBuildX86Jar UP-TO-DATE [ ] :app:checkDebugManifest UP-TO-DATE [ +10 ms] :app:generateDebugBuildConfig UP-TO-DATE [ ] :app:prepareLintJar UP-TO-DATE [ +34 ms] :app:cleanMergeDebugAssets [ +164 ms] :app:flutterBuildDebug UP-TO-DATE [ ] :app:mergeDebugShaders UP-TO-DATE [ +10 ms] :app:compileDebugShaders UP-TO-DATE [ ] :app:generateDebugAssets UP-TO-DATE [ ] :connectivity:mergeDebugShaders UP-TO-DATE [ ] :connectivity:compileDebugShaders UP-TO-DATE [ ] :connectivity:generateDebugAssets UP-TO-DATE [ ] :connectivity:mergeDebugAssets UP-TO-DATE [ +10 ms] :device_info:mergeDebugShaders UP-TO-DATE [ ] :device_info:compileDebugShaders UP-TO-DATE [ ] :device_info:generateDebugAssets UP-TO-DATE [ ] :device_info:mergeDebugAssets UP-TO-DATE [ ] :url_launcher:mergeDebugShaders UP-TO-DATE [ ] :url_launcher:compileDebugShaders UP-TO-DATE [ ] :url_launcher:generateDebugAssets UP-TO-DATE [ ] :url_launcher:mergeDebugAssets UP-TO-DATE [ +9 ms] :video_player:mergeDebugShaders UP-TO-DATE [ ] :video_player:compileDebugShaders UP-TO-DATE [ ] :video_player:generateDebugAssets UP-TO-DATE [ ] :video_player:mergeDebugAssets UP-TO-DATE [ +9 ms] :app:mergeDebugAssets [ +643 ms] :app:copyFlutterAssetsDebug [ ] :app:generateDebugResValues UP-TO-DATE [ ] :app:generateDebugResources UP-TO-DATE [ +10 ms] :connectivity:compileDebugRenderscript UP-TO-DATE [ ] :connectivity:generateDebugResValues UP-TO-DATE [ ] :connectivity:generateDebugResources UP-TO-DATE [ ] :connectivity:packageDebugResources UP-TO-DATE [ ] :device_info:compileDebugRenderscript UP-TO-DATE [ +10 ms] :device_info:generateDebugResValues UP-TO-DATE [ ] :device_info:generateDebugResources UP-TO-DATE [ ] :device_info:packageDebugResources UP-TO-DATE [ +11 ms] :url_launcher:compileDebugRenderscript UP-TO-DATE [ ] :url_launcher:generateDebugResValues UP-TO-DATE [ ] :url_launcher:generateDebugResources UP-TO-DATE [ ] :url_launcher:packageDebugResources UP-TO-DATE [ ] :video_player:compileDebugRenderscript UP-TO-DATE [ ] :video_player:generateDebugResValues UP-TO-DATE [ +9 ms] :video_player:generateDebugResources UP-TO-DATE [ +10 ms] :video_player:packageDebugResources UP-TO-DATE [ ] :app:mergeDebugResources UP-TO-DATE [ ] :app:createDebugCompatibleScreenManifests UP-TO-DATE [ +10 ms] :app:processDebugManifest UP-TO-DATE [ ] :app:splitsDiscoveryTaskDebug UP-TO-DATE [ ] :connectivity:platformAttrExtractor UP-TO-DATE [ ] :connectivity:processDebugResources UP-TO-DATE [ ] :device_info:platformAttrExtractor UP-TO-DATE [ +10 ms] :device_info:processDebugResources UP-TO-DATE [ ] :url_launcher:platformAttrExtractor UP-TO-DATE [ ] :url_launcher:processDebugResources UP-TO-DATE [ ] :video_player:platformAttrExtractor UP-TO-DATE [ +12 ms] :video_player:processDebugResources UP-TO-DATE [ ] :app:processDebugResources UP-TO-DATE [ ] :app:generateDebugSources UP-TO-DATE [ ] :connectivity:generateDebugBuildConfig UP-TO-DATE [ ] :connectivity:prepareLintJar UP-TO-DATE [ ] :connectivity:generateDebugSources UP-TO-DATE [ ] :connectivity:javaPreCompileDebug UP-TO-DATE [ +9 ms] :connectivity:compileDebugJavaWithJavac UP-TO-DATE [ ] :connectivity:processDebugJavaRes NO-SOURCE [ ] :connectivity:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ ] :device_info:generateDebugBuildConfig UP-TO-DATE [ ] :device_info:prepareLintJar UP-TO-DATE [ +11 ms] :device_info:generateDebugSources UP-TO-DATE [ ] :device_info:javaPreCompileDebug UP-TO-DATE [ ] :device_info:compileDebugJavaWithJavac UP-TO-DATE [ ] :device_info:processDebugJavaRes NO-SOURCE [ ] :device_info:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ ] :url_launcher:generateDebugBuildConfig UP-TO-DATE [ ] :url_launcher:prepareLintJar UP-TO-DATE [ +10 ms] :url_launcher:generateDebugSources UP-TO-DATE [ ] :url_launcher:javaPreCompileDebug UP-TO-DATE [ ] :url_launcher:compileDebugJavaWithJavac UP-TO-DATE [ ] :url_launcher:processDebugJavaRes NO-SOURCE [ ] :url_launcher:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ ] :video_player:generateDebugBuildConfig UP-TO-DATE [ +9 ms] :video_player:prepareLintJar UP-TO-DATE [ ] :video_player:generateDebugSources UP-TO-DATE [ ] :video_player:javaPreCompileDebug UP-TO-DATE [ ] :video_player:compileDebugJavaWithJavac UP-TO-DATE [ ] :video_player:processDebugJavaRes NO-SOURCE [ ] :video_player:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ +12 ms] :app:javaPreCompileDebug UP-TO-DATE [ ] :app:compileDebugJavaWithJavac UP-TO-DATE [ ] :app:compileDebugNdk NO-SOURCE [ ] :app:compileDebugSources UP-TO-DATE [ +46 ms] :app:transformClassesWithDexBuilderForDebug UP-TO-DATE [ ] :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE [ +11 ms] :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE [ ] :app:mergeDebugJniLibFolders UP-TO-DATE [ ] :connectivity:compileDebugNdk NO-SOURCE [ ] :connectivity:mergeDebugJniLibFolders UP-TO-DATE [ ] :connectivity:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :connectivity:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ ] :device_info:compileDebugNdk NO-SOURCE [ +8 ms] :device_info:mergeDebugJniLibFolders UP-TO-DATE [ ] :device_info:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :device_info:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ ] :url_launcher:compileDebugNdk NO-SOURCE [ +12 ms] :url_launcher:mergeDebugJniLibFolders UP-TO-DATE [ ] :url_launcher:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :url_launcher:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ ] :video_player:compileDebugNdk NO-SOURCE [ ] :video_player:mergeDebugJniLibFolders UP-TO-DATE [ +10 ms] :video_player:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :video_player:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ ] :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :app:processDebugJavaRes NO-SOURCE [ +22 ms] :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :app:validateSigningDebug [ +21 ms] :app:packageDebug UP-TO-DATE [ +10 ms] :app:assembleDebug UP-TO-DATE [ ] :connectivity:extractDebugAnnotations UP-TO-DATE [ ] :connectivity:mergeDebugConsumerProguardFiles UP-TO-DATE [ +13 ms] :connectivity:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :connectivity:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ ] :connectivity:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ ] :connectivity:bundleDebug UP-TO-DATE [ ] :connectivity:compileDebugSources UP-TO-DATE [ ] :connectivity:assembleDebug UP-TO-DATE [ +10 ms] :device_info:extractDebugAnnotations UP-TO-DATE [ ] :device_info:mergeDebugConsumerProguardFiles UP-TO-DATE [ ] :device_info:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :device_info:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ ] :device_info:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ +10 ms] :device_info:bundleDebug UP-TO-DATE [ ] :device_info:compileDebugSources UP-TO-DATE [ ] :device_info:assembleDebug UP-TO-DATE [ ] :url_launcher:extractDebugAnnotations UP-TO-DATE [ ] :url_launcher:mergeDebugConsumerProguardFiles UP-TO-DATE [ ] :url_launcher:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ +11 ms] :url_launcher:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ ] :url_launcher:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ ] :url_launcher:bundleDebug UP-TO-DATE [ ] :url_launcher:compileDebugSources UP-TO-DATE [ ] :url_launcher:assembleDebug UP-TO-DATE [ ] :video_player:extractDebugAnnotations UP-TO-DATE [ ] :video_player:mergeDebugConsumerProguardFiles UP-TO-DATE [ +10 ms] :video_player:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :video_player:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ ] :video_player:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ ] :video_player:bundleDebug UP-TO-DATE [ ] :video_player:compileDebugSources UP-TO-DATE [ ] :video_player:assembleDebug UP-TO-DATE [ ] BUILD SUCCESSFUL in 2s [ ] 129 actionable tasks: 4 executed, 125 up-to-date [ +459 ms] calculateSha: /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/build/app/outputs/apk/app.apk [ +591 ms] Built build/app/outputs/apk/debug/app-debug.apk. [ +1 ms] /Users/denis.feoktistov/Library/Android/sdk/build-tools/27.0.3/aapt dump badging build/app/outputs/apk/app.apk [ +15 ms] Exit code 0 from: /Users/denis.feoktistov/Library/Android/sdk/build-tools/27.0.3/aapt dump badging build/app/outputs/apk/app.apk [ ] package: name='io.flutter.demo.gallery' versionCode='4005012' versionName='0.4.5-pre.12' platformBuildVersionName='' sdkVersion:'16' targetSdkVersion:'27' uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permission.ACCESS_NETWORK_STATE' application-label:'Gallery' application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png' application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png' application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png' application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png' application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png' application: label='Gallery' icon='res/mipmap-mdpi-v4/ic_launcher.png' application-debuggable launchable-activity: name='io.flutter.demo.gallery.MainActivity' label='' icon='' feature-group: label='' uses-feature: name='android.hardware.faketouch' uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps' main other-activities supports-screens: 'small' 'normal' 'large' 'xlarge' supports-any-density: 'true' locales: '--_--' densities: '160' '240' '320' '480' '640' native-code: 'armeabi-v7a' 'x86' 'x86_64' [ +1 ms] Stopping app 'app.apk' on Android SDK built for x86. [ ] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am force-stop io.flutter.demo.gallery [ +228 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm list packages io.flutter.demo.gallery [ +418 ms] package:io.flutter.demo.gallery [ +3 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.io.flutter.demo.gallery.sha1 [ +29 ms] 388a4df2d9b9a9ba5f86e6b667283e603af85b74 [ +1 ms] Latest build already installed. [ ] Android SDK built for x86 startApp [ +2 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true io.flutter.demo.gallery/io.flutter.demo.gallery.MainActivity [ +270 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=io.flutter.demo.gallery/.MainActivity (has extras) } [ ] Waiting for observatory port to be available... [ +198 ms] I/FlutterActivityDelegate( 5180): onResume setting current activity to this [ +101 ms] Observatory URL on device: http://127.0.0.1:43862/ [ +6 ms] /Users/denis.feoktistov/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward tcp:8102 tcp:43862 [ +19 ms] Forwarded host port 8102 to device port 43862 for Observatory [ +8 ms] Connecting to service protocol: http://127.0.0.1:8102/ [ +190 ms] Successfully connected to service protocol: http://127.0.0.1:8102/ [ +4 ms] getVM: {} [ +11 ms] getIsolate: {isolateId: isolates/726581546} [ +2 ms] _flutter.listViews: {} [ +270 ms] DevFS: Creating new filesystem on the device (null) [ ] _createDevFS: {fsName: flutter_gallery} [ +18 ms] DevFS: Created new filesystem on the device (file:///data/user/0/io.flutter.demo.gallery/cache/flutter_galleryCZOZLR/flutter_gallery/) [ +1 ms] Updating assets [ +305 ms] D/ ( 5180): HostConnection::get() New Host Connection established 0xab108540, tid 5197 [ ] D/EGL_emulation( 5180): eglMakeCurrent: 0xb0429260: ver 3 0 (tinfo 0xab103200) [ +175 ms] Syncing files to device Android SDK built for x86... [ +7 ms] DevFS: Starting sync from LocalDirectory: '/Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery' [ ] Scanning project files [ +20 ms] Scanning package files [ +93 ms] Scanning asset files [ +8 ms] Scanning for deleted files [ +12 ms] Compiling dart to kernel with 539 updated files [ +2 ms] /Users/denis.feoktistov/Development/Frameworks/flutter/bin/cache/dart-sdk/bin/dart /Users/denis.feoktistov/Development/Frameworks/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/denis.feoktistov/Development/Frameworks/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /Users/denis.feoktistov/Development/Frameworks/flutter/examples/flutter_gallery/.packages --filesystem-scheme org-dartlang-root [+1516 ms] Updating files [+2096 ms] DevFS: Sync finished [ +1 ms] Synced 11.7MB. [ +5 ms] _flutter.listViews: {} [ +5 ms] Connected to _flutterView/0xb043530c. [ +1 ms] 🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R". [ ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:8102/ [ ] For a more detailed help message, press "h". To quit, press "q". </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing flutter_gallery... No issues found! (ran in 13.8s)"><pre class="notranslate"><code class="notranslate">Analyzing flutter_gallery... No issues found! (ran in 13.8s) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v0.4.5-pre.12, on Mac OS X 10.13.4 17E202, locale en-NZ) • Flutter version 0.4.5-pre.12 at /Users/denis.feoktistov/Development/Frameworks/flutter • Framework revision c169136eff (2 hours ago), 2018-05-15 11:52:34 -0700 • Engine revision 06afdfe54e • Dart version 2.0.0-dev.54.0.flutter-46ab040e58 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/denis.feoktistov/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.3.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.3.1, Build version 9E501 • ios-deploy 1.9.2 • CocoaPods version 1.5.0 [✓] Android Studio • Android Studio at /Applications/Android Studio 3.2 Preview.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b02) [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 24.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] IntelliJ IDEA Ultimate Edition (version 2018.1.3) • IntelliJ at /Users/denis.feoktistov/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app • Flutter plugin version 24.2.2 • Dart plugin version 181.4892.1 [✓] VS Code (version 1.23.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Dart Code extension version 2.12.1 [✓] Connected devices (2 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator) • iPhone X • 6EAEED21-9269-45D0-90FB-67328E6471B8 • ios • iOS 11.3 (simulator) • No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v0.4.5-pre.12, on Mac OS X 10.13.4 17E202, locale en-NZ) • Flutter version 0.4.5-pre.12 at /Users/denis.feoktistov/Development/Frameworks/flutter • Framework revision c169136eff (2 hours ago), 2018-05-15 11:52:34 -0700 • Engine revision 06afdfe54e • Dart version 2.0.0-dev.54.0.flutter-46ab040e58 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/denis.feoktistov/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.3.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.3.1, Build version 9E501 • ios-deploy 1.9.2 • CocoaPods version 1.5.0 [✓] Android Studio • Android Studio at /Applications/Android Studio 3.2 Preview.app/Contents ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b02) [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 24.1.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] IntelliJ IDEA Ultimate Edition (version 2018.1.3) • IntelliJ at /Users/denis.feoktistov/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app • Flutter plugin version 24.2.2 • Dart plugin version 181.4892.1 [✓] VS Code (version 1.23.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Dart Code extension version 2.12.1 [✓] Connected devices (2 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator) • iPhone X • 6EAEED21-9269-45D0-90FB-67328E6471B8 • ios • iOS 11.3 (simulator) • No issues found! </code></pre></div>
1
<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">"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto"><a href="https://gist.github.com/caseyWebb/a5fdd929638f961ee673581e7d68ddb1">https://gist.github.com/caseyWebb/a5fdd929638f961ee673581e7d68ddb1</a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">No error should be thrown</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>Firefox 58 &amp; Chrome 64</li> <li>Node 9.5.0</li> <li>webpack 3.10.0 &amp; webpack@next</li> <li>webpack-dev-server 2.11.1 &amp; webpack-dev-server@next</li> <li>MacOS 10.13</li> </ul> <p dir="auto">When the <code class="notranslate">NamedModulesPlugin</code> is added, a different error is thrown, and the generated code is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="webpackHotUpdate(0,{ /***/ &quot;./src/index.js&quot;: /***/ (function(module, __webpack_exports__, __webpack_require__) { &quot;use strict&quot;; Object.defineProperty(__webpack_exports__, &quot;__esModule&quot;, { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__log_js__ = __webpack_require__(&quot;./src/log.js&quot;); Object(__WEBPACK_IMPORTED_MODULE_0__log_js__[&quot;log&quot;])() /** * THIS IS THE IMPORTANT/BROKEN PART */ module.hot.accept(&quot;./src/log.js&quot;&quot;./src/log.js&quot;, function(__WEBPACK_OUTDATED_DEPENDENCIES__) { /* harmony import */ __WEBPACK_IMPORTED_MODULE_0__log_js__ = __webpack_require__(&quot;./src/log.js&quot;); (function(__WEBPACK_OUTDATED_DEPENDENCIES__) { /* harmony import */ __WEBPACK_IMPORTED_MODULE_0__log_js__ = __webpack_require__(&quot;./src/log.js&quot;); (() =&gt; Object(__WEBPACK_IMPORTED_MODULE_0__log_js__[&quot;log&quot;])())(__WEBPACK_OUTDATED_DEPENDENCIES__); })(__WEBPACK_OUTDATED_DEPENDENCIES__); }) /***/ }), /***/ &quot;./src/log.js&quot;: /***/ (function(module, __webpack_exports__, __webpack_require__) { &quot;use strict&quot;; Object.defineProperty(__webpack_exports__, &quot;__esModule&quot;, { value: true }); /* harmony export (immutable) */ __webpack_exports__[&quot;log&quot;] = log; function log() { document.body.innerText += 'foo\n' document.body.innerText += 'bar\n' } /***/ }) })"><pre class="notranslate"><code class="notranslate">webpackHotUpdate(0,{ /***/ "./src/index.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__log_js__ = __webpack_require__("./src/log.js"); Object(__WEBPACK_IMPORTED_MODULE_0__log_js__["log"])() /** * THIS IS THE IMPORTANT/BROKEN PART */ module.hot.accept("./src/log.js""./src/log.js", function(__WEBPACK_OUTDATED_DEPENDENCIES__) { /* harmony import */ __WEBPACK_IMPORTED_MODULE_0__log_js__ = __webpack_require__("./src/log.js"); (function(__WEBPACK_OUTDATED_DEPENDENCIES__) { /* harmony import */ __WEBPACK_IMPORTED_MODULE_0__log_js__ = __webpack_require__("./src/log.js"); (() =&gt; Object(__WEBPACK_IMPORTED_MODULE_0__log_js__["log"])())(__WEBPACK_OUTDATED_DEPENDENCIES__); })(__WEBPACK_OUTDATED_DEPENDENCIES__); }) /***/ }), /***/ "./src/log.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony export (immutable) */ __webpack_exports__["log"] = log; function log() { document.body.innerText += 'foo\n' document.body.innerText += 'bar\n' } /***/ }) }) </code></pre></div> <p dir="auto">This leads me to believe that for some reason the module identifier is being duplicated. I think the octal error is an effect of <code class="notranslate">0</code> being doubled to <code class="notranslate">00</code>.</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> A Bug</p> <p dir="auto"><strong>What is the current behavior?</strong><br> Our application has ~2K modules with multiple entries. After compiling these entry points, webpack logs given entries + distorted entries in output and emits duplicate events like <code class="notranslate">after-compile</code>. With this, our custom plugins are executed twice or thrice for each entry point and causing unexpected issues.</p> <p dir="auto">Here is one such output from webpack</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Hash: b09d9f200c42ca4a76dbf8cc66d5e8b587fba22bdd218de191690012cb805ea514138c6d9e3071acbee62c6b402563b345eeeb7ce7ec3db9b3fcb1aeaf11a86131ea1f00ab71 Version: webpack 3.6.0 / grunt-webpack 3.0.2 Child Hash: b09d9f200c42ca4a76db Time: 98314ms Asset Size Chunks Chunk Names foo_app.bundle.js 14.7 MB 0 [emitted] [big] foo_app foo_app_vendor.bundle.js 5.81 MB 1 [emitted] [big] vendor Child Hash: f8cc66d5e8b587fba22b Time: 101489ms Asset Size Chunks Chunk Names bar_app.bundle.js 10.6 MB 0 [emitted] [big] bar_app bar_app_vendor.bundle.js 9.81 MB 1 [emitted] [big] vendor ## Following are distorted chunks which are not in config ## Child Hash: dd218de191690012cb80 Time: 19155ms 4 assets Child Hash: 5ea514138c6d9e3071ac Time: 11085ms 3 assets Child Hash: bee62c6b402563b345ee Time: 10084ms 3 assets Child Hash: eb7ce7ec3db9b3fcb1ae Time: 1359ms 2 assets Child Hash: af11a86131ea1f00ab71 Time: 13631ms 4 assets"><pre class="notranslate"><code class="notranslate">Hash: b09d9f200c42ca4a76dbf8cc66d5e8b587fba22bdd218de191690012cb805ea514138c6d9e3071acbee62c6b402563b345eeeb7ce7ec3db9b3fcb1aeaf11a86131ea1f00ab71 Version: webpack 3.6.0 / grunt-webpack 3.0.2 Child Hash: b09d9f200c42ca4a76db Time: 98314ms Asset Size Chunks Chunk Names foo_app.bundle.js 14.7 MB 0 [emitted] [big] foo_app foo_app_vendor.bundle.js 5.81 MB 1 [emitted] [big] vendor Child Hash: f8cc66d5e8b587fba22b Time: 101489ms Asset Size Chunks Chunk Names bar_app.bundle.js 10.6 MB 0 [emitted] [big] bar_app bar_app_vendor.bundle.js 9.81 MB 1 [emitted] [big] vendor ## Following are distorted chunks which are not in config ## Child Hash: dd218de191690012cb80 Time: 19155ms 4 assets Child Hash: 5ea514138c6d9e3071ac Time: 11085ms 3 assets Child Hash: bee62c6b402563b345ee Time: 10084ms 3 assets Child Hash: eb7ce7ec3db9b3fcb1ae Time: 1359ms 2 assets Child Hash: af11a86131ea1f00ab71 Time: 13631ms 4 assets </code></pre></div> <p dir="auto">On debugger mode, obj in <a href="https://github.com/webpack/webpack/blob/7fe03718f2e5eb554ec3e76eb0536fe2aa56c2a8/lib/Stats.js#L600">lib/Stats.js</a> file has following value:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ errors: [], warnings: [], hash: 'af11a86131ea1f00ab71', time: 13631, assetsByChunkName: { bar_app: 'bar_app.bundle.js', vendor: 'bar_app_vendor.bundle.js' }, assets: [], filteredAssets: 4, children: [], name: undefined } // wonder why name is undefined here."><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">errors</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">warnings</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">hash</span>: <span class="pl-s">'af11a86131ea1f00ab71'</span><span class="pl-kos">,</span> <span class="pl-c1">time</span>: <span class="pl-c1">13631</span><span class="pl-kos">,</span> <span class="pl-c1">assetsByChunkName</span>: <span class="pl-kos">{</span> <span class="pl-c1">bar_app</span>: <span class="pl-s">'bar_app.bundle.js'</span><span class="pl-kos">,</span> <span class="pl-c1">vendor</span>: <span class="pl-s">'bar_app_vendor.bundle.js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">assets</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">filteredAssets</span>: <span class="pl-c1">4</span><span class="pl-kos">,</span> <span class="pl-c1">children</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">name</span>: <span class="pl-c1">undefined</span> <span class="pl-kos">}</span> <span class="pl-c">// wonder why name is undefined here.</span></pre></div> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">Sample webpack config: <a href="https://gist.github.com/muralikr/57a9667b6570027d171579447f7dfa6e">https://gist.github.com/muralikr/57a9667b6570027d171579447f7dfa6e</a><br> We are using custom loader and plugin in our config. Both of them does only synchronous tasks (like modifying source of few modules, processing and storing as files).</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> Webpack should emit plugin related events only once per entry. If it gets into any error state, it should throw error and suspend compiling.</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><br> node -- v6.10.0<br> webpack -- 3.5.6<br> Mac OSX Sierra</p>
0
<p dir="auto"><em>Apologies is this is a dupe - I searched a number of different ways and couldn't fine anything existing. Obviously, I'd be surprised if this hasn't come up somewhere before.</em></p> <p dir="auto">Default syntax highlighting, and setting syntax highlighting for files without a default works great in Atom - except for one significant thing: if Atom doesn't have a syntax highlighting match for your filetype, then you have to set it manually ever time you open a file of that type.</p> <p dir="auto">That gets quite cumbersome when, for example, you're working with a repo filled entirely with <code class="notranslate">.liquid</code> files.</p> <p dir="auto">Other editors, like Sublime, handle this by offering an option to <code class="notranslate">Open all with current extension as...</code> which lets you set a default syntax for all files with that extension.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/020de514f5569aec32ef11b515a6376c799c0c77953aa23355c0c5b89032962a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313331393739312f323439313630322f65633737303564342d623166332d313165332d383532352d3937643930306564333265312e706e67"><img src="https://camo.githubusercontent.com/020de514f5569aec32ef11b515a6376c799c0c77953aa23355c0c5b89032962a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313331393739312f323439313630322f65633737303564342d623166332d313165332d383532352d3937643930306564333265312e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/1319791/2491602/ec7705d4-b1f3-11e3-8525-97d900ed32e1.png" style="max-width: 100%;"></a></p> <p dir="auto">Since we're not offering a place to set filetype in the menubar (and certainly not suggesting we should; setting from command palette is <g-emoji class="g-emoji" alias="sparkles" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2728.png">✨</g-emoji>), one simple way to expose this could be to add an option to the command palette list for syntax options for set all as this type.</p>
<p dir="auto">Several halp issues about people wanting to add extensions to language plugins.</p> <p dir="auto">Currently they have to fork the package to do this, might be nice to support this through the config.</p>
1
<p dir="auto">I can't found DatePicker after install material-ui</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">I'm using Material-ui for web _ ver 1.0.0-beta.4</p>
<p dir="auto"><a href="https://codesandbox.io/s/vy79r048z5" rel="nofollow">Here</a> small button is small.<br> But <a href="https://codesandbox.io/s/rw1mky9prp" rel="nofollow">here</a> it looks like a medium size 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/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">Button with size="small" looks smaller then medium size button, independently by content inside.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It looks almost like medium size button.</p>
0
<p dir="auto">Creating a model in Three.js/editor and exporting with roughness or metal maps to GLB or GLTF will not export the rough/metal maps whether they are combined as a single file AO/Rough/Metal RGB or as individual images.</p> <p dir="auto">I'm trying to apply these images in the Editor and export them as a gltf file. However when the exporter ignores them because it says they are not the same image (even though they are in the case of a hand merged file.</p> <p dir="auto">When I reimport the glb in the editor the images are not their, but if I exported the AO map (same image) it is exported.</p> <p dir="auto">Is there a way to check that the user is trying to apply a merged image or the same image and go ahead and export the metal roughness maps?</p> <p dir="auto">here is a shot of the editor before export...</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7503097/45763708-10572000-bbff-11e8-8bbc-7c37897b053d.JPG"><img src="https://user-images.githubusercontent.com/7503097/45763708-10572000-bbff-11e8-8bbc-7c37897b053d.JPG" alt="beforeexport" style="max-width: 100%;"></a></p> <p dir="auto">And here is a shot after import with a console log showing the export problem.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7503097/45763780-37155680-bbff-11e8-956e-b0facd07db61.JPG"><img src="https://user-images.githubusercontent.com/7503097/45763780-37155680-bbff-11e8-956e-b0facd07db61.JPG" alt="importglb" style="max-width: 100%;"></a></p> <h5 dir="auto">Three.js version</h5> <p dir="auto">version r.96</p> <h5 dir="auto">Browser</h5> <p dir="auto">Chrome</p> <h5 dir="auto">OS</h5> <p dir="auto">Windows 10</p>
<p dir="auto">It would be nice if the TransformControls had optional constraints (minimum, maximum) for each axis. It would be also nice if some gizmo definitions/helpers could be enabled/disabled.</p> <p dir="auto">The example below shows a max scale constraint for all axes and most of the gizmo definitions/helpers disabled.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18190064/129895469-da5e146a-2e0b-4882-818d-c10f77d97ac3.gif"><img src="https://user-images.githubusercontent.com/18190064/129895469-da5e146a-2e0b-4882-818d-c10f77d97ac3.gif" alt="gizmo" data-animated-image="" style="max-width: 100%;"></a></p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/999" rel="nofollow">http://projects.scipy.org/numpy/ticket/999</a> on 2009-02-05 by trac user mjwakefield, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dmcooke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dmcooke">@dmcooke</a>.</em></p> <p dir="auto">When NumPy is listed as a dependency for another package automatic installation of NumPy fails.<br> easy_install numpy works successfully</p> <p dir="auto">Best match: numpy 1.2.1<br> Downloading <a href="http://downloads.sourceforge.net/numpy/numpy-1.2.1.tar.gz?modtime=1225265011&amp;big_mirror=0" rel="nofollow">http://downloads.sourceforge.net/numpy/numpy-1.2.1.tar.gz?modtime=1225265011&amp;big_mirror=0</a><br> Processing numpy-1.2.1.tar.gz<br> Running numpy-1.2.1/setup.py -q bdist_egg --dist-dir /var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/egg-dist-tmp-H5FSHT<br> Running from numpy source directory.<br> Warning: distutils distribution has been initialized, it may be too late to add a subpackage command<br> Warning: distutils distribution has been initialized, it may be too late to add a subpackage fcompiler<br> non-existing path in '/private/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils': 'site.cfg'<br> Warning: distutils distribution has been initialized, it may be too late to add a subpackage distutils<br> Warning: distutils distribution has been initialized, it may be too late to add a subpackage testing<br> /var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils/misc_util.py:1343: DeprecationWarning: os.popen4 is deprecated. Use the subprocess module.<br> sin, sout = os.popen4('svnversion')<br> Traceback (most recent call last):<br> File "/Library/Frameworks/Python.framework/Versions/Current/bin/easy_install", line 8, in <br> load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')()<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1671, in main<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1659, in with_ei_usage<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1675, in <br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup<br> dist.run_commands()<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands<br> self.run_command(cmd)<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command<br> cmd_obj.run()<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 211, in run<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 427, in easy_install<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 478, in install_item<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 519, in process_distribution<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 522, in resolve<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 758, in best_match<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 770, in obtain<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 446, in easy_install<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 476, in install_item<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 655, in install_eggs<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 930, in build_and_install<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 919, in run_setup<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 27, in run_setup<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 63, in run<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 29, in <br> File "setup.py", line 96, in </p> <p dir="auto">File "setup.py", line 89, in setup_package</p> <p dir="auto">File "/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils/core.py", line 150, in setup<br> File "setup.py", line 56, in configuration</p> <p dir="auto">File "/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils/misc_util.py", line 851, in add_subpackage<br> File "/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils/misc_util.py", line 834, in get_subpackage<br> File "/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils/misc_util.py", line 781, in _get_configuration_from_setup_py<br> File "numpy/setup.py", line 8, in configuration<br> import os<br> File "/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils/misc_util.py", line 851, in add_subpackage<br> File "/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils/misc_util.py", line 834, in get_subpackage<br> File "/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils/misc_util.py", line 781, in _get_configuration_from_setup_py<br> File "/private/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/f2py/setup.py", line 81, in configuration</p> <p dir="auto">File "/var/folders/Kg/KgodBp6HFYaMgVoWCkGln+++mNU/-Tmp-/easy_install-p3img4/numpy-1.2.1/numpy/distutils/misc_util.py", line 1239, in add_scripts<br> AttributeError: 'NoneType' object has no attribute 'extend'</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/860" rel="nofollow">http://projects.scipy.org/numpy/ticket/860</a> on 2008-07-24 by trac user phsilva, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dmcooke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dmcooke">@dmcooke</a>.</em></p> <p dir="auto">Numpy 1.1.0 works well with easy_install if called from command line, like:</p> <p dir="auto">easy_install numpy==1.1.0</p> <p dir="auto">BUT, if I declare numpy==1.1.0 as a dependency in my setup.py setup() function, then I got this error (actually I get the same errors with Numpy 1.0.4):</p> <p dir="auto">Traceback (most recent call last):<br> File "setup.py", line 116, in <br> platforms = <em>chimera_platform</em>)<br> File "/usr/lib/python2.5/distutils/core.py", line 151, in setup<br> dist.run_commands()<br> File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands<br> self.run_command(cmd)<br> File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command<br> cmd_obj.run()<br> File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/develop.py", line 27, in run<br> File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/command/develop.py", line 102, in install_for_development<br> File "/usr/lib/python2.5/site-packages/easy_install.py", line 519, in process_distribution</p> <p dir="auto">File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 522, in resolve<br> dist = best[req.key] = env.best_match(req, self, installer)<br> File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 758, in best_match<br> return self.obtain(req, installer) # try and download/install<br> File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 770, in obtain<br> return installer(requirement)<br> File "/usr/lib/python2.5/site-packages/easy_install.py", line 446, in easy_install</p> <p dir="auto">File "/usr/lib/python2.5/site-packages/easy_install.py", line 476, in install_item</p> <p dir="auto">File "/usr/lib/python2.5/site-packages/easy_install.py", line 655, in install_eggs</p> <p dir="auto">File "/usr/lib/python2.5/site-packages/easy_install.py", line 930, in build_and_install</p> <p dir="auto">File "/usr/lib/python2.5/site-packages/easy_install.py", line 919, in run_setup</p> <p dir="auto">File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/sandbox.py", line 27, in run_setup<br> File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/sandbox.py", line 63, in run<br> File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/setuptools/sandbox.py", line 29, in <br> File "setup.py", line 96, in <br> "numpy == 1.1.0",<br> File "setup.py", line 89, in setup_package<br> "Elixir &gt;= 0.5.2",<br> File "/tmp/easy_install-kOtWpP/numpy-1.1.0/numpy/distutils/core.py", line 150, in setup<br> File "setup.py", line 56, in configuration<br> # setup<br> File "/tmp/easy_install-kOtWpP/numpy-1.1.0/numpy/distutils/misc_util.py", line 839, in add_subpackage<br> File "/tmp/easy_install-kOtWpP/numpy-1.1.0/numpy/distutils/misc_util.py", line 822, in get_subpackage<br> File "/tmp/easy_install-kOtWpP/numpy-1.1.0/numpy/distutils/misc_util.py", line 769, in _get_configuration_from_setup_py<br> File "/home/henrique/work/chimera/chimera/setup.py", line 9, in configuration<br> # as published by the Free Software Foundation; either version 2<br> File "/tmp/easy_install-kOtWpP/numpy-1.1.0/numpy/distutils/misc_util.py", line 839, in add_subpackage<br> File "/tmp/easy_install-kOtWpP/numpy-1.1.0/numpy/distutils/misc_util.py", line 822, in get_subpackage<br> File "/tmp/easy_install-kOtWpP/numpy-1.1.0/numpy/distutils/misc_util.py", line 769, in _get_configuration_from_setup_py<br> File "/home/henrique/work/chimera/chimera/setup.py", line 223, in configuration</p> <p dir="auto">File "/tmp/easy_install-kOtWpP/numpy-1.1.0/numpy/distutils/misc_util.py", line 1039, in add_include_dirs<br> AttributeError: 'NoneType' object has no attribute 'extend'</p> <p dir="auto">This seems similar to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7723701" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/679" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/679/hovercard" href="https://github.com/numpy/numpy/issues/679">#679</a>. Numpy distutils was expecting something which setuptools distutils (only in dependency mode) overrides and throw away.</p> <p dir="auto">Follows a patch/hack against 1.1.0 that worked to me (for 1.0.4 it's just the same hack on different chunck).</p> <p dir="auto">What the plan for distutils based installers (like setuptools) when numscons became the default? I'm not going to integrate my package in distribution yet, so I'm using easy_install which seems to be the easiest solution available. Any other idea about how to distribute Numpy? I was thinking about try to create an egg, but then I'll need to have one for each different setup (distro/arch) that I would like to use, right?</p> <p dir="auto">Thanks a lot, and congrats for the great work with Numpy!</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2> <p dir="auto">Per <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pritamdamania87/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pritamdamania87">@pritamdamania87</a>'s comment on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="524548935" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/30020" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/30020/hovercard" href="https://github.com/pytorch/pytorch/pull/30020">#30020</a>, we can have duplicated code in the shutdown implementation of different RPC backends. We should unify this code in RpcAgent's shutdown function, and then each backend can have a <code class="notranslate">shutdownImpl</code> for their custom shutdown implementation details.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pietern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pietern">@pietern</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrshenli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrshenli">@mrshenli</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pritamdamania87/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pritamdamania87">@pritamdamania87</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zhaojuanmao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zhaojuanmao">@zhaojuanmao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satgera/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satgera">@satgera</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aazzolini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aazzolini">@aazzolini</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rohan-varma/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rohan-varma">@rohan-varma</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xush6528/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xush6528">@xush6528</a></p>
<p dir="auto">Hi guys:<br> I have build a seq2seq model using nn.LSTMCELL in it. And I want to export a trained one to onnx form. However, when I do this, I have an error says:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UserWarning: ONNX export failed on ATen operator _thnn_fused_lstm_cell because torch.onnx.symbolic_opset9._thnn_fused_lstm_cell does not exist .format(op_name, opset_version, op_name))"><pre class="notranslate"><code class="notranslate">UserWarning: ONNX export failed on ATen operator _thnn_fused_lstm_cell because torch.onnx.symbolic_opset9._thnn_fused_lstm_cell does not exist .format(op_name, opset_version, op_name)) </code></pre></div> <p dir="auto">I think this maybe due to the opset nort supporting nn.LSTMCELL.<br> Any one could help and share some advice?<br> Thank you!</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/houseroad/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/houseroad">@houseroad</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spandantiwari/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spandantiwari">@spandantiwari</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lara-hdr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lara-hdr">@lara-hdr</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BowenBao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BowenBao">@BowenBao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/neginraoof/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/neginraoof">@neginraoof</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a></p>
0
<p dir="auto">This issue formalizes <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pcwalton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pcwalton">@pcwalton</a>'s <a href="https://mail.mozilla.org/pipermail/rust-dev/2013-April/003866.html" rel="nofollow">RFC on the mailing list</a>. This was also discussed in the <a href="https://github.com/mozilla/rust/wiki/Meeting-weekly-2013-05-14#generic-paths">2013-05-14 meeting</a> and in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13714900" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6087" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/6087/hovercard" href="https://github.com/rust-lang/rust/pull/6087">#6087</a>. Steps towards this have already been made in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14289366" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6462" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/6462/hovercard" href="https://github.com/rust-lang/rust/pull/6462">#6462</a>.</p> <p dir="auto">Whilst this is not a high priority change at the moment (understandably there are far bigger fish to fry), this is a semi-common question on the IRC and I think it's good if we have some place to redirect questions to.</p> <p dir="auto">Instead of the current:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Real::pi::&lt;float&gt;()"><pre class="notranslate"><span class="pl-smi">Real</span><span class="pl-kos">::</span><span class="pl-en">pi</span><span class="pl-kos">::</span><span class="pl-kos">&lt;</span><span class="pl-smi">float</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos"></span></pre></div> <p dir="auto">this change would allow you to do:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="float::pi()"><pre class="notranslate">float<span class="pl-kos">::</span><span class="pl-en">pi</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos"></span></pre></div> <p dir="auto">or</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type T = float; T::pi()"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">T</span> = <span class="pl-smi">float</span><span class="pl-kos">;</span> <span class="pl-smi">T</span><span class="pl-kos">::</span><span class="pl-en">pi</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos"></span></pre></div> <p dir="auto">This could also allow for neat things like a generic <code class="notranslate">SizeOf</code> trait: <code class="notranslate">T::size_of()</code>, which is far nicer than the current <code class="notranslate">size_of::&lt;T&gt;()</code>. Or maybe there could be an <code class="notranslate">Init</code> trait for default initializers: <code class="notranslate">T::init()</code>.</p>
<p dir="auto">I get an internal compiler error on the input detailed below.</p> <p dir="auto">I tried this code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct B; impl B { fn func(&amp;self) { } } fn main() { let x:&amp;fn(&amp;B) = &amp;B::func; }"><pre class="notranslate"><code class="notranslate">struct B; impl B { fn func(&amp;self) { } } fn main() { let x:&amp;fn(&amp;B) = &amp;B::func; } </code></pre></div> <p dir="auto">I expected to see this happen: Maybe it should work like <code class="notranslate">let x = &amp;B::func</code>, but I'm guessing that I have some error here. I get an error message when I try a variant of the above;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn main() { let y = &amp;B::func; let z:&amp;fn(&amp;B) = y; }"><pre class="notranslate"><code class="notranslate">fn main() { let y = &amp;B::func; let z:&amp;fn(&amp;B) = y; } </code></pre></div> <p dir="auto">This gives me the compile time error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bug.rs:10:18: 10:19 error: mismatched types: expected `&amp;fn(&amp;B)`, found `&amp;fn(&amp;B) {B::func}` (expected fn pointer, found fn item) [E0308] bug.rs:10 let z:&amp;fn(&amp;B) = y; ^ error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">bug.rs:10:18: 10:19 error: mismatched types: expected `&amp;fn(&amp;B)`, found `&amp;fn(&amp;B) {B::func}` (expected fn pointer, found fn item) [E0308] bug.rs:10 let z:&amp;fn(&amp;B) = y; ^ error: aborting due to previous error </code></pre></div> <p dir="auto">Instead, this happened:</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: 4 }, false), last_private: LastMod(AllPublic), depth: 1 }', /build/buildd/rust-nightly-201504110408~93f7fe3~utopic/src/librustc/middle/def.rs:80"><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: 4 }, false), last_private: LastMod(AllPublic), depth: 1 }', /build/buildd/rust-nightly-201504110408~93f7fe3~utopic/src/librustc/middle/def.rs:80 </code></pre></div> <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-dev (built 2015-04-11) binary: rustc commit-hash: unknown commit-date: unknown build-date: 2015-04-11 host: x86_64-unknown-linux-gnu release: 1.0.0-dev"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-dev (built 2015-04-11) binary: rustc commit-hash: unknown commit-date: unknown build-date: 2015-04-11 host: x86_64-unknown-linux-gnu release: 1.0.0-dev </code></pre></div> <p dir="auto">From the <code class="notranslate">rust-nightly</code> package here: <a href="https://launchpad.net/~hansjorg/+archive/ubuntu/rust" rel="nofollow">https://launchpad.net/~hansjorg/+archive/ubuntu/rust</a></p> <p dir="auto">Backtrace:</p> <p dir="auto">Running <code class="notranslate">RUST_BACKTRACE=1 rustc bug.rs</code> gives me only this output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Illegal instruction"><pre class="notranslate"><code class="notranslate">Illegal instruction </code></pre></div>
0
<p dir="auto">Hi,<br> I see the atom helper process not responding in my activity monitor. When I quit the process atom crashes with the attached error message. If I click 'reload' from that button I see a blank atom window.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2488588/5171730/836508b0-73d7-11e4-9935-7dde55893de0.png"><img src="https://cloud.githubusercontent.com/assets/2488588/5171730/836508b0-73d7-11e4-9935-7dde55893de0.png" alt="screen shot 2014-11-24 at 12 34 59 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Looking at activity monitor, I always get a <code class="notranslate">Atom Helper (Not Responding)</code>, even if I start atom in safe mode.</p> <p dir="auto">I'm on OSX mavericks and atom 0.138.0. I noticed this at least a few versions back too.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/253936/4739097/05bb3504-5a02-11e4-9216-54f719241018.png"><img src="https://cloud.githubusercontent.com/assets/253936/4739097/05bb3504-5a02-11e4-9216-54f719241018.png" alt="screen shot 2014-10-21 at 10 08 40 am" style="max-width: 100%;"></a></p>
1
<p dir="auto">The test <code class="notranslate">scipy.signal.tests.test_bsplines::TestBSplines::test_spline_filter</code> fails on Windows 32-bit with Python3.4/2.7.</p> <p dir="auto"><s>Probably just tolerance issue --- the test seems to be doing comparison vs. 0 with atol=0.</s></p> <h3 dir="auto">Error message:</h3> <p dir="auto"><a href="https://ci.appveyor.com/project/scipy/scipy-wheels/build/1.0.143/job/m9vypcjy80ghxqcn" rel="nofollow">https://ci.appveyor.com/project/scipy/scipy-wheels/build/1.0.143/job/m9vypcjy80ghxqcn</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_______________________ TestBSplines.test_spline_filter _______________________ [gw1] win32 -- Python 3.4.4 C:\Python34\python.exe self = &lt;scipy.signal.tests.test_bsplines.TestBSplines object at 0x0C4B63F0&gt; def test_spline_filter(self): np.random.seed(12457) # Test the type-error branch raises(TypeError, bsp.spline_filter, array([0]), 0) # Test the complex branch data_array_complex = np.random.rand(7, 7) + np.random.rand(7, 7)*1j # make the magnitude exceed 1, and make some negative data_array_complex = 10*(1+1j-2*data_array_complex) result_array_complex = array( [[-4.61489230e-01-1.92994022j, 8.33332443+6.25519943j, 6.96300745e-01-9.05576038j, 5.28294849+3.97541356j, 5.92165565+7.68240595j, 6.59493160-1.04542804j, 9.84503460-5.85946894j], [-8.78262329-8.4295969j, 7.20675516+5.47528982j, -8.17223072+2.06330729j, -4.38633347-8.65968037j, 9.89916801-8.91720295j, 2.67755103+8.8706522j, 6.24192142+3.76879835j], [-3.15627527+2.56303072j, 9.87658501-0.82838702j, -9.96930313+8.72288895j, 3.17193985+6.42474651j, -4.50919819-6.84576082j, 5.75423431+9.94723988j, 9.65979767+6.90665293j], [-8.28993416-6.61064005j, 9.71416473e-01-9.44907284j, -2.38331890+9.25196648j, -7.08868170-0.77403212j, 4.89887714+7.05371094j, -1.37062311-2.73505688j, 7.70705748+2.5395329j], [2.51528406-1.82964492j, 3.65885472+2.95454836j, 5.16786575-1.66362023j, -8.77737999e-03+5.72478867j, 4.10533333-3.10287571j, 9.04761887+1.54017115j, -5.77960968e-01-7.87758923j], [9.86398506-3.98528528j, -4.71444130-2.44316983j, -1.68038976-1.12708664j, 2.84695053+1.01725709j, 1.14315915-8.89294529j, -3.17127085-5.42145538j, 1.91830420-6.16370344j], [7.13875294+2.91851187j, -5.35737514+9.64132309j, -9.66586399+0.70250005j, -9.87717438-2.0262239j, 9.93160629+1.5630846j, 4.71948051-2.22050714j, 9.49550819+7.8995142j]]) assert_allclose(bsp.spline_filter(data_array_complex, 0), &gt; result_array_complex) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (mismatch 40.816326530612244%) E x: array([[ -4.614889e-01-1.92994j , 8.333325e+00+6.255199j, E 6.963016e-01-9.055761j, 5.282949e+00+3.975415j, E 5.921656e+00+7.682406j, 6.594931e+00-1.045428j,... E y: array([[ -4.614892e-01-1.92994j , 8.333324e+00+6.255199j, E 6.963007e-01-9.05576j , 5.282948e+00+3.975414j, E 5.921656e+00+7.682406j, 6.594932e+00-1.045428j,... data_array_complex = array([[ -4.63309868e-01-1.92958424j, 8.33391188e+00+6.25427956j, 6.97289972e-01-9.05582857j, 5.28390748....0262238j , 9.93160613e+00+1.56308421j, 4.71948116e+00-2.22050722j, 9.49551018e+00+7.89951507j]]) result_array_complex = array([[ -4.61489230e-01-1.92994022j, 8.33332443e+00+6.25519943j, 6.96300745e-01-9.05576038j, 5.28294849....0262239j , 9.93160629e+00+1.5630846j , 4.71948051e+00-2.22050714j, 9.49550819e+00+7.8995142j ]]) self = &lt;scipy.signal.tests.test_bsplines.TestBSplines object at 0x0C4B63F0&gt; C:\Python34\lib\site-packages\scipy\signal\tests\test_bsplines.py:60: AssertionError"><pre class="notranslate"><code class="notranslate">_______________________ TestBSplines.test_spline_filter _______________________ [gw1] win32 -- Python 3.4.4 C:\Python34\python.exe self = &lt;scipy.signal.tests.test_bsplines.TestBSplines object at 0x0C4B63F0&gt; def test_spline_filter(self): np.random.seed(12457) # Test the type-error branch raises(TypeError, bsp.spline_filter, array([0]), 0) # Test the complex branch data_array_complex = np.random.rand(7, 7) + np.random.rand(7, 7)*1j # make the magnitude exceed 1, and make some negative data_array_complex = 10*(1+1j-2*data_array_complex) result_array_complex = array( [[-4.61489230e-01-1.92994022j, 8.33332443+6.25519943j, 6.96300745e-01-9.05576038j, 5.28294849+3.97541356j, 5.92165565+7.68240595j, 6.59493160-1.04542804j, 9.84503460-5.85946894j], [-8.78262329-8.4295969j, 7.20675516+5.47528982j, -8.17223072+2.06330729j, -4.38633347-8.65968037j, 9.89916801-8.91720295j, 2.67755103+8.8706522j, 6.24192142+3.76879835j], [-3.15627527+2.56303072j, 9.87658501-0.82838702j, -9.96930313+8.72288895j, 3.17193985+6.42474651j, -4.50919819-6.84576082j, 5.75423431+9.94723988j, 9.65979767+6.90665293j], [-8.28993416-6.61064005j, 9.71416473e-01-9.44907284j, -2.38331890+9.25196648j, -7.08868170-0.77403212j, 4.89887714+7.05371094j, -1.37062311-2.73505688j, 7.70705748+2.5395329j], [2.51528406-1.82964492j, 3.65885472+2.95454836j, 5.16786575-1.66362023j, -8.77737999e-03+5.72478867j, 4.10533333-3.10287571j, 9.04761887+1.54017115j, -5.77960968e-01-7.87758923j], [9.86398506-3.98528528j, -4.71444130-2.44316983j, -1.68038976-1.12708664j, 2.84695053+1.01725709j, 1.14315915-8.89294529j, -3.17127085-5.42145538j, 1.91830420-6.16370344j], [7.13875294+2.91851187j, -5.35737514+9.64132309j, -9.66586399+0.70250005j, -9.87717438-2.0262239j, 9.93160629+1.5630846j, 4.71948051-2.22050714j, 9.49550819+7.8995142j]]) assert_allclose(bsp.spline_filter(data_array_complex, 0), &gt; result_array_complex) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (mismatch 40.816326530612244%) E x: array([[ -4.614889e-01-1.92994j , 8.333325e+00+6.255199j, E 6.963016e-01-9.055761j, 5.282949e+00+3.975415j, E 5.921656e+00+7.682406j, 6.594931e+00-1.045428j,... E y: array([[ -4.614892e-01-1.92994j , 8.333324e+00+6.255199j, E 6.963007e-01-9.05576j , 5.282948e+00+3.975414j, E 5.921656e+00+7.682406j, 6.594932e+00-1.045428j,... data_array_complex = array([[ -4.63309868e-01-1.92958424j, 8.33391188e+00+6.25427956j, 6.97289972e-01-9.05582857j, 5.28390748....0262238j , 9.93160613e+00+1.56308421j, 4.71948116e+00-2.22050722j, 9.49551018e+00+7.89951507j]]) result_array_complex = array([[ -4.61489230e-01-1.92994022j, 8.33332443e+00+6.25519943j, 6.96300745e-01-9.05576038j, 5.28294849....0262239j , 9.93160629e+00+1.5630846j , 4.71948051e+00-2.22050714j, 9.49550819e+00+7.8995142j ]]) self = &lt;scipy.signal.tests.test_bsplines.TestBSplines object at 0x0C4B63F0&gt; C:\Python34\lib\site-packages\scipy\signal\tests\test_bsplines.py:60: AssertionError </code></pre></div> <h3 dir="auto">Scipy/Numpy/Python version information:</h3> <p dir="auto">Numpy 1.13.1, Scipy 6421d63</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_______________________ TestBSplines.test_spline_filter ________________________ [snip] &gt; raise AssertionError(msg) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (mismatch 100.0%) E x: array([[ -4.61489439e-01-1.92994106j, 8.33332348e+00+6.25519848j, E 6.96301341e-01-9.05576134j, 5.28294897e+00+3.97541451j, E 5.92165613e+00+7.68240595j, 6.59493113e+00-1.04542828j,... E y: array([[ -4.61489230e-01-1.92994022j, 8.33332443e+00+6.25519943j, E 6.96300745e-01-9.05576038j, 5.28294849e+00+3.97541356j, E 5.92165565e+00+7.68240595j, 6.59493160e+00-1.04542804j,..."><pre class="notranslate"><code class="notranslate">_______________________ TestBSplines.test_spline_filter ________________________ [snip] &gt; raise AssertionError(msg) E AssertionError: E Not equal to tolerance rtol=1e-07, atol=0 E E (mismatch 100.0%) E x: array([[ -4.61489439e-01-1.92994106j, 8.33332348e+00+6.25519848j, E 6.96301341e-01-9.05576134j, 5.28294897e+00+3.97541451j, E 5.92165613e+00+7.68240595j, 6.59493113e+00-1.04542828j,... E y: array([[ -4.61489230e-01-1.92994022j, 8.33332443e+00+6.25519943j, E 6.96300745e-01-9.05576038j, 5.28294849e+00+3.97541356j, E 5.92165565e+00+7.68240595j, 6.59493160e+00-1.04542804j,... </code></pre></div> <p dir="auto"><a href="https://travis-ci.org/MacPython/scipy-wheels/jobs/409327647" rel="nofollow">https://travis-ci.org/MacPython/scipy-wheels/jobs/409327647</a></p> <p dir="auto">Detected on scipy-wheels build matrix. First failure on this test on 21 July:</p> <p dir="auto"><a href="https://travis-ci.org/MacPython/scipy-wheels/builds/406631499" rel="nofollow">https://travis-ci.org/MacPython/scipy-wheels/builds/406631499</a></p> <p dir="auto">Previous test was July 14th, no failure (on this test).</p> <p dir="auto"><a href="https://travis-ci.org/MacPython/scipy-wheels/builds/403942847" rel="nofollow">https://travis-ci.org/MacPython/scipy-wheels/builds/403942847</a></p>
1
<p dir="auto">when I've install the phpexcel and update the composer this error is occurred, I tried to clear the cache but the error appeared again.</p>
<p dir="auto">After updating from 2.8.9 to 2.8.10 I experience the following exception for any request. Downgrading again resolves the issue. No other composer dependencies were updated in the process.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeException in appDevDebugProjectContainer.php line 7425: You have requested a synthetic service (&quot;request&quot;). The DIC does not know how to construct this service. in appDevDebugProjectContainer.php line 7425 at appDevDebugProjectContainer-&gt;getRequestService() in bootstrap.php.cache line 2221 at Container-&gt;get('request', '2') in appDevDebugProjectContainer.php line 10835 at appDevDebugProjectContainer-&gt;synchronizeRequestService() in bootstrap.php.cache line 2157 at Container-&gt;set('request', null, 'request') in bootstrap.php.cache line 3360 at ContainerAwareHttpKernel-&gt;handle(object(Request), '1', true) in bootstrap.php.cache line 2535 at Kernel-&gt;handle(object(Request)) in app_dev.php line 28"><pre class="notranslate"><code class="notranslate">RuntimeException in appDevDebugProjectContainer.php line 7425: You have requested a synthetic service ("request"). The DIC does not know how to construct this service. in appDevDebugProjectContainer.php line 7425 at appDevDebugProjectContainer-&gt;getRequestService() in bootstrap.php.cache line 2221 at Container-&gt;get('request', '2') in appDevDebugProjectContainer.php line 10835 at appDevDebugProjectContainer-&gt;synchronizeRequestService() in bootstrap.php.cache line 2157 at Container-&gt;set('request', null, 'request') in bootstrap.php.cache line 3360 at ContainerAwareHttpKernel-&gt;handle(object(Request), '1', true) in bootstrap.php.cache line 2535 at Kernel-&gt;handle(object(Request)) in app_dev.php line 28 </code></pre></div> <p dir="auto">This might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174777746" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/19825" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/19825/hovercard" href="https://github.com/symfony/symfony/issues/19825">#19825</a> and also feels like a BC break.</p>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/712" rel="nofollow">http://projects.scipy.org/scipy/ticket/712</a> on 2008-08-04 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jpaalasm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jpaalasm">@jpaalasm</a>, assigned to unknown.</em></p> <p dir="auto">scipy.cluster.distance.pdist does not work when the Canberra distance is used.</p> <p dir="auto">As seen below, pdist outputs a pseudorandom number instead of the real distance (which, in this case, should be around 0.01492537).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [27]: scipy.cluster.distance.pdist(([3.3], [3.4]), &quot;canberra&quot;) Out[27]: array([ 0.99999814]) In [28]: scipy.cluster.distance.pdist(([3.3], [3.4]), &quot;canberra&quot;) Out[28]: array([ 0.9999984]) In [29]: scipy.cluster.distance.pdist(([3.3], [3.4]), &quot;canberra&quot;) Out[29]: array([ 1.])"><pre class="notranslate"><code class="notranslate">In [27]: scipy.cluster.distance.pdist(([3.3], [3.4]), "canberra") Out[27]: array([ 0.99999814]) In [28]: scipy.cluster.distance.pdist(([3.3], [3.4]), "canberra") Out[28]: array([ 0.9999984]) In [29]: scipy.cluster.distance.pdist(([3.3], [3.4]), "canberra") Out[29]: array([ 1.]) </code></pre></div> <p dir="auto">See the patch for a fix.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/711" rel="nofollow">http://projects.scipy.org/scipy/ticket/711</a> on 2008-08-04 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jpaalasm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jpaalasm">@jpaalasm</a>, assigned to trac user damian.eads.</em></p> <p dir="auto">scipy.cluster.distance.pdist does not work when the Canberra distance is used.</p> <p dir="auto">As seen below, pdist outputs a pseudorandom number instead of the real distance (which, in this case, should be around 0.01492537).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [27]: scipy.cluster.distance.pdist(([3.3], [3.4]), &quot;canberra&quot;) Out[27]: array([ 0.99999814]) In [28]: scipy.cluster.distance.pdist(([3.3], [3.4]), &quot;canberra&quot;) Out[28]: array([ 0.9999984]) In [29]: scipy.cluster.distance.pdist(([3.3], [3.4]), &quot;canberra&quot;) Out[29]: array([ 1.])"><pre class="notranslate"><code class="notranslate">In [27]: scipy.cluster.distance.pdist(([3.3], [3.4]), "canberra") Out[27]: array([ 0.99999814]) In [28]: scipy.cluster.distance.pdist(([3.3], [3.4]), "canberra") Out[28]: array([ 0.9999984]) In [29]: scipy.cluster.distance.pdist(([3.3], [3.4]), "canberra") Out[29]: array([ 1.]) </code></pre></div> <p dir="auto">See the patch for a fix.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.5</li> <li>Operating System version: macOS</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>how about change the data type of field ‘generic’ from ‘String’ to ‘Boolean’ in class AbstractReferenceConfig?</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.5.x</li> <li>Operating System version: xxx</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>人为制造异常</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" public User getUser ( int id){ System.out.println(&quot;getUser&quot;); System.out.println(String.format(&quot;%s&quot;, 10 / 0)); User user = new User(); user.setId(1); user.setUsername(&quot;test&quot;); user.setPassword(&quot;test&quot;); System.out.println(&quot;11111111562&quot;); return user; }"><pre class="notranslate"> <span class="pl-k">public</span> <span class="pl-smi">User</span> <span class="pl-s1">getUser</span> ( <span class="pl-smi">int</span> <span class="pl-s1">id</span>){ <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"getUser"</span>); <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-smi">String</span>.<span class="pl-en">format</span>(<span class="pl-s">"%s"</span>, <span class="pl-c1">10</span> / <span class="pl-c1">0</span>)); <span class="pl-smi">User</span> <span class="pl-s1">user</span> = <span class="pl-k">new</span> <span class="pl-smi">User</span>(); <span class="pl-s1">user</span>.<span class="pl-en">setId</span>(<span class="pl-c1">1</span>); <span class="pl-s1">user</span>.<span class="pl-en">setUsername</span>(<span class="pl-s">"test"</span>); <span class="pl-s1">user</span>.<span class="pl-en">setPassword</span>(<span class="pl-s">"test"</span>); <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"11111111562"</span>); <span class="pl-k">return</span> <span class="pl-s1">user</span>; }</pre></div> <ol start="2" dir="auto"> <li>单元测试</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" @Test public void testEchoException() { //echoService.echoWithException(); echoService.getUser(1); System.out.println(&quot;666666666666&quot;); }"><pre class="notranslate"> <span class="pl-c1">@</span><span class="pl-c1">Test</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">testEchoException</span>() { <span class="pl-c">//echoService.echoWithException();</span> <span class="pl-s1">echoService</span>.<span class="pl-en">getUser</span>(<span class="pl-c1">1</span>); <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"666666666666"</span>); }</pre></div> <ol start="3" dir="auto"> <li>异常结果</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="java.lang.ClassCastException: java.lang.String cannot be cast to com.test.dubbo.service.User at com.alibaba.dubbo.common.bytecode.proxy0.getUser(proxy0.java) at com.test.dubbo.ConsumerTest.testEchoException(ConsumerTest.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)"><pre class="notranslate"><span class="pl-smi">java</span>.<span class="pl-smi">lang</span>.<span class="pl-smi">ClassCastException</span>: <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">String</span> <span class="pl-s1">cannot</span> <span class="pl-s1">be</span> <span class="pl-smi">cast</span> <span class="pl-s1">to</span> <span class="pl-smi">com</span>.<span class="pl-smi">test</span>.<span class="pl-smi">dubbo</span>.<span class="pl-smi">service</span>.<span class="pl-smi">User</span> <span class="pl-s1">at</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">common</span>.<span class="pl-s1">bytecode</span>.<span class="pl-s1">proxy0</span>.<span class="pl-en">getUser</span>(<span class="pl-s1">proxy0</span>.<span class="pl-s1">java</span>) <span class="pl-smi">at</span> <span class="pl-s1">com</span>.<span class="pl-s1">test</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">ConsumerTest</span>.<span class="pl-s1">testEchoException</span>(<span class="pl-smi">ConsumerTest</span>.<span class="pl-smi">java</span>:<span class="pl-c1">46</span>) <span class="pl-smi">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeMethodAccessorImpl</span>.<span class="pl-en">invoke0</span>(<span class="pl-smi">Native</span> <span class="pl-s1">Method</span>) <span class="pl-s1">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">NativeMethodAccessorImpl</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">NativeMethodAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">62</span>) <span class="pl-s1">at</span> <span class="pl-s1">sun</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">DelegatingMethodAccessorImpl</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">DelegatingMethodAccessorImpl</span>.<span class="pl-smi">java</span>:<span class="pl-c1">43</span>) <span class="pl-s1">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">Method</span>.<span class="pl-en">invoke</span>(<span class="pl-smi">Method</span>.<span class="pl-smi">java</span>:<span class="pl-c1">498</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">model</span>.<span class="pl-s1">FrameworkMethod$1</span>.<span class="pl-en">runReflectiveCall</span>(<span class="pl-smi">FrameworkMethod</span>.<span class="pl-smi">java</span>:<span class="pl-c1">50</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">model</span>.<span class="pl-s1">ReflectiveCallable</span>.<span class="pl-en">run</span>(<span class="pl-smi">ReflectiveCallable</span>.<span class="pl-smi">java</span>:<span class="pl-c1">12</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">model</span>.<span class="pl-s1">FrameworkMethod</span>.<span class="pl-en">invokeExplosively</span>(<span class="pl-smi">FrameworkMethod</span>.<span class="pl-smi">java</span>:<span class="pl-c1">47</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">statements</span>.<span class="pl-s1">InvokeMethod</span>.<span class="pl-en">evaluate</span>(<span class="pl-smi">InvokeMethod</span>.<span class="pl-smi">java</span>:<span class="pl-c1">17</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">statements</span>.<span class="pl-s1">RunBefores</span>.<span class="pl-en">evaluate</span>(<span class="pl-smi">RunBefores</span>.<span class="pl-smi">java</span>:<span class="pl-c1">26</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">ParentRunner</span>.<span class="pl-en">runLeaf</span>(<span class="pl-smi">ParentRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">325</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">BlockJUnit4ClassRunner</span>.<span class="pl-en">runChild</span>(<span class="pl-smi">BlockJUnit4ClassRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">78</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">BlockJUnit4ClassRunner</span>.<span class="pl-en">runChild</span>(<span class="pl-smi">BlockJUnit4ClassRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">57</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">ParentRunner$3</span>.<span class="pl-en">run</span>(<span class="pl-smi">ParentRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">290</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">ParentRunner$1</span>.<span class="pl-en">schedule</span>(<span class="pl-smi">ParentRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">71</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">ParentRunner</span>.<span class="pl-en">runChildren</span>(<span class="pl-smi">ParentRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">288</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">ParentRunner</span>.<span class="pl-en">access$000</span>(<span class="pl-smi">ParentRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">58</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">ParentRunner$2</span>.<span class="pl-en">evaluate</span>(<span class="pl-smi">ParentRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">268</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runners</span>.<span class="pl-s1">ParentRunner</span>.<span class="pl-en">run</span>(<span class="pl-smi">ParentRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">363</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">eclipse</span>.<span class="pl-s1">jdt</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">junit4</span>.<span class="pl-s1">runner</span>.<span class="pl-s1">JUnit4TestReference</span>.<span class="pl-en">run</span>(<span class="pl-smi">JUnit4TestReference</span>.<span class="pl-smi">java</span>:<span class="pl-c1">86</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">eclipse</span>.<span class="pl-s1">jdt</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runner</span>.<span class="pl-s1">TestExecution</span>.<span class="pl-en">run</span>(<span class="pl-smi">TestExecution</span>.<span class="pl-smi">java</span>:<span class="pl-c1">38</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">eclipse</span>.<span class="pl-s1">jdt</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runner</span>.<span class="pl-s1">RemoteTestRunner</span>.<span class="pl-en">runTests</span>(<span class="pl-smi">RemoteTestRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">459</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">eclipse</span>.<span class="pl-s1">jdt</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runner</span>.<span class="pl-s1">RemoteTestRunner</span>.<span class="pl-en">runTests</span>(<span class="pl-smi">RemoteTestRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">675</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">eclipse</span>.<span class="pl-s1">jdt</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runner</span>.<span class="pl-s1">RemoteTestRunner</span>.<span class="pl-en">run</span>(<span class="pl-smi">RemoteTestRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">382</span>) <span class="pl-s1">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">eclipse</span>.<span class="pl-s1">jdt</span>.<span class="pl-s1">internal</span>.<span class="pl-s1">junit</span>.<span class="pl-s1">runner</span>.<span class="pl-s1">RemoteTestRunner</span>.<span class="pl-en">main</span>(<span class="pl-smi">RemoteTestRunner</span>.<span class="pl-smi">java</span>:<span class="pl-c1">192</span>)</pre></div> <ol start="4" dir="auto"> <li>HystrixFilter过滤器:</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package com.netease.hystrix.dubbo.rpc.filter; import com.alibaba.dubbo.common.Constants; import com.alibaba.dubbo.common.extension.Activate; import com.alibaba.dubbo.rpc.Filter; import com.alibaba.dubbo.rpc.Invocation; import com.alibaba.dubbo.rpc.Invoker; import com.alibaba.dubbo.rpc.Result; import com.alibaba.dubbo.rpc.RpcException; @Activate(group = Constants.CONSUMER) public class HystrixFilter implements Filter { @Override public Result invoke(Invoker&lt;?&gt; invoker, Invocation invocation) throws RpcException { DubboHystrixCommand command = new DubboHystrixCommand(invoker, invocation); return command.execute(); } }"><pre class="notranslate"><span class="pl-k">package</span> <span class="pl-s1">com</span>.<span class="pl-s1">netease</span>.<span class="pl-s1">hystrix</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">filter</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">common</span>.<span class="pl-s1">Constants</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">common</span>.<span class="pl-s1">extension</span>.<span class="pl-s1">Activate</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">Filter</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">Invocation</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">Invoker</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">Result</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">RpcException</span>; <span class="pl-c1">@</span><span class="pl-c1">Activate</span>(<span class="pl-s1">group</span> = <span class="pl-smi">Constants</span>.<span class="pl-c1">CONSUMER</span>) <span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">HystrixFilter</span> <span class="pl-k">implements</span> <span class="pl-smi">Filter</span> { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">Result</span> <span class="pl-en">invoke</span>(<span class="pl-smi">Invoker</span>&lt;?&gt; <span class="pl-s1">invoker</span>, <span class="pl-smi">Invocation</span> <span class="pl-s1">invocation</span>) <span class="pl-k">throws</span> <span class="pl-smi">RpcException</span> { <span class="pl-smi">DubboHystrixCommand</span> <span class="pl-s1">command</span> = <span class="pl-k">new</span> <span class="pl-smi">DubboHystrixCommand</span>(<span class="pl-s1">invoker</span>, <span class="pl-s1">invocation</span>); <span class="pl-k">return</span> <span class="pl-s1">command</span>.<span class="pl-en">execute</span>(); } }</pre></div> <ol start="5" dir="auto"> <li>DubboHystrixCommand 类:</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package com.netease.hystrix.dubbo.rpc.filter; import org.apache.log4j.Logger; import com.alibaba.dubbo.common.URL; import com.alibaba.dubbo.rpc.Invocation; import com.alibaba.dubbo.rpc.Invoker; import com.alibaba.dubbo.rpc.Result; import com.netflix.hystrix.HystrixCommand; import com.netflix.hystrix.HystrixCommandGroupKey; import com.netflix.hystrix.HystrixCommandKey; import com.netflix.hystrix.HystrixCommandProperties; import com.netflix.hystrix.HystrixThreadPoolProperties; public class DubboHystrixCommand extends HystrixCommand&lt;Result&gt; { private static Logger logger = Logger.getLogger(DubboHystrixCommand.class); private static final int DEFAULT_THREADPOOL_CORE_SIZE = 30; private Invoker&lt;?&gt; invoker; private Invocation invocation; public DubboHystrixCommand(Invoker&lt;?&gt; invoker,Invocation invocation){ super(Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey(invoker.getInterface().getName())) .andCommandKey(HystrixCommandKey.Factory.asKey(String.format(&quot;%s_%d&quot;, invocation.getMethodName(), invocation.getArguments() == null ? 0 : invocation.getArguments().length))) .andCommandPropertiesDefaults(HystrixCommandProperties.Setter() .withCircuitBreakerRequestVolumeThreshold(20)//10秒钟内至少19此请求失败,熔断器才发挥起作用 .withCircuitBreakerSleepWindowInMilliseconds(30000)//熔断器中断请求30秒后会进入半打开状态,放部分流量过去重试 .withCircuitBreakerErrorThresholdPercentage(50)//错误率达到50开启熔断保护 .withExecutionTimeoutEnabled(false))//使用dubbo的超时,禁用这里的超时 .andThreadPoolPropertiesDefaults(HystrixThreadPoolProperties.Setter().withCoreSize(getThreadPoolCoreSize(invoker.getUrl()))));//线程池为30 this.invoker=invoker; this.invocation=invocation; } /** * 获取线程池大小 * * @param url * @return */ private static int getThreadPoolCoreSize(URL url) { if (url != null) { int size = url.getParameter(&quot;ThreadPoolCoreSize&quot;, DEFAULT_THREADPOOL_CORE_SIZE); if (logger.isDebugEnabled()) { logger.debug(&quot;ThreadPoolCoreSize:&quot; + size); } return size; } return DEFAULT_THREADPOOL_CORE_SIZE; } @Override protected Result run() throws Exception { return invoker.invoke(invocation); } }"><pre class="notranslate"><span class="pl-k">package</span> <span class="pl-s1">com</span>.<span class="pl-s1">netease</span>.<span class="pl-s1">hystrix</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">filter</span>; <span class="pl-k">import</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">log4j</span>.<span class="pl-s1">Logger</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">common</span>.<span class="pl-c1">URL</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">Invocation</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">Invoker</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">alibaba</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">rpc</span>.<span class="pl-s1">Result</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">netflix</span>.<span class="pl-s1">hystrix</span>.<span class="pl-s1">HystrixCommand</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">netflix</span>.<span class="pl-s1">hystrix</span>.<span class="pl-s1">HystrixCommandGroupKey</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">netflix</span>.<span class="pl-s1">hystrix</span>.<span class="pl-s1">HystrixCommandKey</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">netflix</span>.<span class="pl-s1">hystrix</span>.<span class="pl-s1">HystrixCommandProperties</span>; <span class="pl-k">import</span> <span class="pl-s1">com</span>.<span class="pl-s1">netflix</span>.<span class="pl-s1">hystrix</span>.<span class="pl-s1">HystrixThreadPoolProperties</span>; <span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">DubboHystrixCommand</span> <span class="pl-k">extends</span> <span class="pl-smi">HystrixCommand</span>&lt;<span class="pl-smi">Result</span>&gt; { <span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-smi">Logger</span> <span class="pl-s1">logger</span> = <span class="pl-smi">Logger</span>.<span class="pl-en">getLogger</span>(<span class="pl-smi">DubboHystrixCommand</span>.<span class="pl-k">class</span>); <span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-k">final</span> <span class="pl-smi">int</span> <span class="pl-c1">DEFAULT_THREADPOOL_CORE_SIZE</span> = <span class="pl-c1">30</span>; <span class="pl-k">private</span> <span class="pl-smi">Invoker</span>&lt;?&gt; <span class="pl-s1">invoker</span>; <span class="pl-k">private</span> <span class="pl-smi">Invocation</span> <span class="pl-s1">invocation</span>; <span class="pl-k">public</span> <span class="pl-smi">DubboHystrixCommand</span>(<span class="pl-smi">Invoker</span>&lt;?&gt; <span class="pl-s1">invoker</span>,<span class="pl-smi">Invocation</span> <span class="pl-s1">invocation</span>){ <span class="pl-en">super</span>(<span class="pl-smi">Setter</span>.<span class="pl-en">withGroupKey</span>(<span class="pl-smi">HystrixCommandGroupKey</span>.<span class="pl-s1">Factory</span>.<span class="pl-en">asKey</span>(<span class="pl-s1">invoker</span>.<span class="pl-en">getInterface</span>().<span class="pl-en">getName</span>())) .<span class="pl-en">andCommandKey</span>(<span class="pl-smi">HystrixCommandKey</span>.<span class="pl-s1">Factory</span>.<span class="pl-en">asKey</span>(<span class="pl-smi">String</span>.<span class="pl-en">format</span>(<span class="pl-s">"%s_%d"</span>, <span class="pl-s1">invocation</span>.<span class="pl-en">getMethodName</span>(), <span class="pl-s1">invocation</span>.<span class="pl-en">getArguments</span>() == <span class="pl-c1">null</span> ? <span class="pl-c1">0</span> : <span class="pl-s1">invocation</span>.<span class="pl-en">getArguments</span>().<span class="pl-s1">length</span>))) .<span class="pl-en">andCommandPropertiesDefaults</span>(<span class="pl-smi">HystrixCommandProperties</span>.<span class="pl-en">Setter</span>() .<span class="pl-en">withCircuitBreakerRequestVolumeThreshold</span>(<span class="pl-c1">20</span>)<span class="pl-c">//10秒钟内至少19此请求失败,熔断器才发挥起作用</span> .<span class="pl-en">withCircuitBreakerSleepWindowInMilliseconds</span>(<span class="pl-c1">30000</span>)<span class="pl-c">//熔断器中断请求30秒后会进入半打开状态,放部分流量过去重试</span> .<span class="pl-en">withCircuitBreakerErrorThresholdPercentage</span>(<span class="pl-c1">50</span>)<span class="pl-c">//错误率达到50开启熔断保护</span> .<span class="pl-en">withExecutionTimeoutEnabled</span>(<span class="pl-c1">false</span>))<span class="pl-c">//使用dubbo的超时,禁用这里的超时</span> .<span class="pl-en">andThreadPoolPropertiesDefaults</span>(<span class="pl-smi">HystrixThreadPoolProperties</span>.<span class="pl-en">Setter</span>().<span class="pl-en">withCoreSize</span>(<span class="pl-en">getThreadPoolCoreSize</span>(<span class="pl-s1">invoker</span>.<span class="pl-en">getUrl</span>()))));<span class="pl-c">//线程池为30</span> <span class="pl-smi">this</span>.<span class="pl-s1">invoker</span>=<span class="pl-s1">invoker</span>; <span class="pl-smi">this</span>.<span class="pl-s1">invocation</span>=<span class="pl-s1">invocation</span>; } <span class="pl-c">/**</span> <span class="pl-c"> * 获取线程池大小</span> <span class="pl-c"> * </span> <span class="pl-c"> * @param url</span> <span class="pl-c"> * @return</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-smi">int</span> <span class="pl-en">getThreadPoolCoreSize</span>(<span class="pl-smi">URL</span> <span class="pl-s1">url</span>) { <span class="pl-k">if</span> (<span class="pl-s1">url</span> != <span class="pl-c1">null</span>) { <span class="pl-smi">int</span> <span class="pl-s1">size</span> = <span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-s">"ThreadPoolCoreSize"</span>, <span class="pl-c1">DEFAULT_THREADPOOL_CORE_SIZE</span>); <span class="pl-k">if</span> (<span class="pl-s1">logger</span>.<span class="pl-en">isDebugEnabled</span>()) { <span class="pl-s1">logger</span>.<span class="pl-en">debug</span>(<span class="pl-s">"ThreadPoolCoreSize:"</span> + <span class="pl-s1">size</span>); } <span class="pl-k">return</span> <span class="pl-s1">size</span>; } <span class="pl-k">return</span> <span class="pl-c1">DEFAULT_THREADPOOL_CORE_SIZE</span>; } <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">protected</span> <span class="pl-smi">Result</span> <span class="pl-en">run</span>() <span class="pl-k">throws</span> <span class="pl-smi">Exception</span> { <span class="pl-k">return</span> <span class="pl-s1">invoker</span>.<span class="pl-en">invoke</span>(<span class="pl-s1">invocation</span>); } }</pre></div> <ol start="6" dir="auto"> <li>配置:<br> 在resources/META-INF新建dubbo文件夹<br> hystrixFilter=com.netease.hystrix.dubbo.rpc.filter.HystrixFilter</li> </ol> <p dir="auto">人为制造了一个异常,如果方法返回void和String类型的话没问题,如果是返回List、实体类等就报以上错!达不到熔断或降级的错误,会是什么原因?该如何处理。。。</p>
0
<h3 dir="auto">Vue.js version</h3> <p dir="auto">2.2.2</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="https://jsfiddle.net/8azt2xz9/3/" rel="nofollow">https://jsfiddle.net/8azt2xz9/3/</a><br> and click <code class="notranslate">filter</code>, vue.js throw error <code class="notranslate">duplicate keys</code> error</p> <p dir="auto">if bind key is an object, vnode <code class="notranslate">updateChildren</code> algorithm has problems.<br> So the key is strictly required a string value?</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/vueschool/vuejs-components-fundamentals/commit/3a90eeace5d3f8c01b5c989bd47850a96510eb51/hovercard" href="https://github.com/vueschool/vuejs-components-fundamentals/commit/3a90eeace5d3f8c01b5c989bd47850a96510eb51">vueschool/vuejs-components-fundamentals@<tt>3a90eea</tt></a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Currently, when I get a Vue "warn"ing like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: &quot;groupBy&quot; found in ---&gt; &lt;OpsSidebarTab&gt; at src/components/a/b/c.vue"><pre class="notranslate"><code class="notranslate">[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "groupBy" found in ---&gt; &lt;OpsSidebarTab&gt; at src/components/a/b/c.vue </code></pre></div> <h3 dir="auto">What is expected?</h3> <p dir="auto">The warning should go to <code class="notranslate">console.warn</code></p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">The warning goes to <code class="notranslate">console.error</code></p> <hr> <p dir="auto">To duplicate the issue, check out the link, then mutate one of the props in the example.</p> <p dir="auto">Currently, when I get a Vue "warn"ing like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: &quot;groupBy&quot; found in ---&gt; &lt;OpsSidebarTab&gt; at src/components/a/b/c.vue"><pre class="notranslate"><code class="notranslate">[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "groupBy" found in ---&gt; &lt;OpsSidebarTab&gt; at src/components/a/b/c.vue </code></pre></div> <p dir="auto">It actually logs it to console.error.</p> <p dir="auto">How can I instead make warnings log to console.warn instead?</p> <p dir="auto">I know I could do <code class="notranslate">Vue.config.warnHandler</code>, but I don't know how to get it be the same format as the regular Vue output. For example, would I do something like</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Vue.config.warnHandler = fucntion (msg, vm, trace) { console.warn(`[Vue warn]: ${msg}\nfound in\n---&gt;${trace}`) }"><pre class="notranslate"><span class="pl-smi">Vue</span><span class="pl-kos">.</span><span class="pl-c1">config</span><span class="pl-kos">.</span><span class="pl-c1">warnHandler</span> <span class="pl-c1">=</span> <span class="pl-en">fucntion</span> <span class="pl-kos">(</span><span class="pl-s1">msg</span><span class="pl-kos">,</span> <span class="pl-s1">vm</span><span class="pl-kos">,</span> <span class="pl-s1">trace</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">warn</span><span class="pl-kos">(</span><span class="pl-s">`[Vue warn]: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">msg</span><span class="pl-kos">}</span></span>\nfound in\n---&gt;<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">trace</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">?</p> <p dir="auto">Are there ever other formats I have to worry about? I wish I could just redirect these errors to <code class="notranslate">console.warn</code> without having to reformat them</p>
0
<p dir="auto">The <a href="https://docs.scipy.org/doc/numpy-1.15.1/reference/ufuncs.html" rel="nofollow">ufunc reference</a> contains the following notes about <code class="notranslate">out</code> and <code class="notranslate">where</code> usage:</p> <blockquote> <p dir="auto">If ‘out’ is None (the default), a uninitialized return array is created. The output array is then filled with the results of the ufunc in the places that the broadcast ‘where’ is True. If ‘where’ is the scalar True (the default), then this corresponds to the entire output being filled. <strong>Note that outputs not explicitly filled are left with their uninitialized values.</strong></p> </blockquote> <p dir="auto">and</p> <blockquote> <p dir="auto">Note that if an uninitialized return array is created, values of False will leave those values uninitialized.</p> </blockquote> <p dir="auto">I understand why the API is like this, and that there are legitimate use cases that prevent unnecessary initialization. But it would be nice to also have this warning on the specific functions, like <a href="https://docs.scipy.org/doc/numpy-1.15.1/reference/generated/numpy.divide.html" rel="nofollow">np.divide</a> etc. - especially because this is a construct where an innocent looking statement may result in non-deterministic behavior.</p> <p dir="auto">Thanks!</p>
<p dir="auto">The numpy documentation on the use of the argument 'where' in <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.divide.html" rel="nofollow">numpy.divide</a> says:</p> <blockquote> <p dir="auto"><strong>where : <em>array_like, optional</em></strong><br> Values of True indicate to calculate the ufunc at that position, values of False indicate to leave the value in the output alone.</p> </blockquote> <p dir="auto">I am wondering what value is used for the positions in the array where the condition in the argument 'where' evaluates to False. It does not set it to np.nan, nor takes the value from x1 / from x2, it seems to assign a random value. Sometimes it takes the value 0, which could make sense, but it is not very convenient to get a value that is not the same across the array, or not the same between two runs of the script.</p> <p dir="auto">Obviously, it is possible for the user to assign values in the output array subsequently using Boolean indexing. So, I am wondering if this is the expected behaviour? If so, so be it and I will just assign values subsequently.</p> <p dir="auto">Thank you.</p> <h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np arr = np.ones((10,), dtype=int) x1 = arr * 2 x2 = arr * 3 d = np.divide(x1, x2, where=(arr != 1)) print(d)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>((<span class="pl-c1">10</span>,), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">int</span>) <span class="pl-s1">x1</span> <span class="pl-c1">=</span> <span class="pl-s1">arr</span> <span class="pl-c1">*</span> <span class="pl-c1">2</span> <span class="pl-s1">x2</span> <span class="pl-c1">=</span> <span class="pl-s1">arr</span> <span class="pl-c1">*</span> <span class="pl-c1">3</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">divide</span>(<span class="pl-s1">x1</span>, <span class="pl-s1">x2</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span>(<span class="pl-s1">arr</span> <span class="pl-c1">!=</span> <span class="pl-c1">1</span>)) <span class="pl-en">print</span>(<span class="pl-s1">d</span>)</pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto"><code class="notranslate">('1.15.0', '2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]')</code></p>
1
<p dir="auto">The wrong character (œ) is displayed for the lowercase æ<br> The capitalized version (Æ) is working fine</p> <p dir="auto">(Atom Version 0.138.0, OS X 10.10 Yosemite)</p>
<p dir="auto">Original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28529842" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/1625" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/1625/hovercard" href="https://github.com/atom/atom/issues/1625">atom/atom#1625</a></p> <hr> <p dir="auto">Use <a href="https://atom.io/packages/keyboard-localization" rel="nofollow">https://atom.io/packages/keyboard-localization</a> until this issue gets fixed (should be in the Blink upstream).</p>
1
<p dir="auto">I use multiple monitors on my laptop and can't use FancyZones on both. Only the primary laptop display will have all the zones but the external monitors is just considered and one zone.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Currently the new FZ editor only comes up and applies zone layouts to the primary monitor. In order to get a layout on a different monitor, the original custom editor is needed. Bret and Jeff have a design for this change and now they need to implement it.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Note that when this is done the original editor should be removed as well as the setting to toggle between editors.</p>
1
<p dir="auto">The following code does not show markers.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="my_data = [1,2,5,3,0] sns.lineplot(data = my_data,markers=True);"><pre class="notranslate"><code class="notranslate">my_data = [1,2,5,3,0] sns.lineplot(data = my_data,markers=True); </code></pre></div> <p dir="auto">this code doesn't show markers either</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ax = sns.lineplot(x = [1,2,3,4,5], y=[1,2,5,3,0],markers=True);"><pre class="notranslate"><code class="notranslate">ax = sns.lineplot(x = [1,2,3,4,5], y=[1,2,5,3,0],markers=True); </code></pre></div> <p dir="auto">on the other hand, this code does:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="my_data=pd.DataFrame([1,2,5,3,0]) sns.lineplot(data = my_data,markers=True);"><pre class="notranslate"><code class="notranslate">my_data=pd.DataFrame([1,2,5,3,0]) sns.lineplot(data = my_data,markers=True); </code></pre></div> <p dir="auto">seaborn version 0.11.1<br> matplotlib version 3.3.1</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35338267/115969765-ae749a80-a50c-11eb-995b-8e9e9b7a0b9f.png"><img src="https://user-images.githubusercontent.com/35338267/115969765-ae749a80-a50c-11eb-995b-8e9e9b7a0b9f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I am running matplotlib 3.0.2 and Seaborn 0.9.0 in python 3.7 on MacOs.<br> There appears to be a bug in Seaborn which makes its line plot function ignore the markers argument. The matplotlib plot still plots the markers, i.e. this is not the problem and I also set lines.markeredgewidth as was recommended in an earlier issue on missing markers. Still whatever I set markers to, line plot accepts this and ignores it.</p> <p dir="auto">See a broken example: Matplotlib plots as it should, but Seaborn shows no markers:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd import seaborn as sns import matplotlib.pyplot as plt sns.set() sns.set_context(&quot;paper&quot;,rc={&quot;lines.linewidth&quot;: 2.5,'lines.markeredgewidth': 1,'lines.markersize': 10}) df_test = pd.DataFrame(data={'x':[1,2,3],'y':[4,5,6]}) plt.figure() plt.plot(df_test['x'],df_test['y'],'o-') plt.figure() sns.lineplot(data=df_test,x='x',y='y',markers=['o']) plt.show()"><pre class="notranslate"><code class="notranslate">import pandas as pd import seaborn as sns import matplotlib.pyplot as plt sns.set() sns.set_context("paper",rc={"lines.linewidth": 2.5,'lines.markeredgewidth': 1,'lines.markersize': 10}) df_test = pd.DataFrame(data={'x':[1,2,3],'y':[4,5,6]}) plt.figure() plt.plot(df_test['x'],df_test['y'],'o-') plt.figure() sns.lineplot(data=df_test,x='x',y='y',markers=['o']) plt.show() </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13691026/53176872-f4e0ae80-35bc-11e9-9224-18417d406f50.png"><img src="https://user-images.githubusercontent.com/13691026/53176872-f4e0ae80-35bc-11e9-9224-18417d406f50.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/13691026/53176853-e7c3bf80-35bc-11e9-99e5-911b59380b27.png"><img src="https://user-images.githubusercontent.com/13691026/53176853-e7c3bf80-35bc-11e9-99e5-911b59380b27.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Here is some strange code uncovered by a test I wrote for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="63116688" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/23536" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/23536/hovercard" href="https://github.com/rust-lang/rust/pull/23536">#23536</a>:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn id&lt;T&gt;(x: T) -&gt; T { x } fn main() { let spot: Option&lt;i8&gt;; let x = 1_i8 &lt;&lt; id(8_i8); spot = Some(x); assert_eq!(spot.unwrap(), 0); println!(&quot;so we stored a zero byte ... but:&quot;); assert_eq!(x, 0); }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">id</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">T</span> <span class="pl-kos">{</span> x <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> spot<span class="pl-kos">:</span> <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span><span class="pl-smi">i8</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">let</span> x = <span class="pl-c1">1_i8</span> &lt;&lt; <span class="pl-en">id</span><span class="pl-kos">(</span><span class="pl-c1">8_i8</span><span class="pl-kos">)</span><span class="pl-kos">;</span> spot = <span class="pl-v">Some</span><span class="pl-kos">(</span>x<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert_eq</span><span class="pl-en">!</span><span class="pl-kos">(</span>spot.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span>, <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"so we stored a zero byte ... but:"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert_eq</span><span class="pl-en">!</span><span class="pl-kos">(</span>x, <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Even in the <a href="http://is.gd/DmEuze" rel="nofollow">playpen</a>, this prints:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="so we stored a zero byte ... but: thread '&lt;main&gt;' panicked at 'assertion failed: `(left == right) &amp;&amp; (right == left)` (left: `0`, right: `0`)', &lt;anon&gt;:9 playpen: application terminated with error code 101"><pre class="notranslate"><code class="notranslate">so we stored a zero byte ... but: thread '&lt;main&gt;' panicked at 'assertion failed: `(left == right) &amp;&amp; (right == left)` (left: `0`, right: `0`)', &lt;anon&gt;:9 playpen: application terminated with error code 101 </code></pre></div> <p dir="auto">Note those "crazy, non-matching" left and right values.</p> <p dir="auto">(Presumably something with LLVM's low-level code is leaving <code class="notranslate">x</code> in a register, thus yielding hidden high-order bits after the shift is done; those need to be masked away before we attempt to compare with another register.)</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="1 &gt;&gt; 24353125315"><pre class="notranslate"><span class="pl-c1">1</span> &gt;&gt; <span class="pl-c1">24353125315</span></pre></div>
1
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>v12.0.0-beta.21</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>Ubuntu 20.04</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>v11.2.3 (the same provided example works most recent v11 release, tested!)</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Expecting <code class="notranslate">browserWindow.capturePage()</code> to return a promise that resolves to captured image</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">The function call will at some point result an uncaught promise exception. Currently it seems it's random and about a 5% chance of this happening.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Minimal example is a loop calling <code class="notranslate">browserWindow.capturePage()</code> every 1 second until eventually it fails. On my machine it will fail within a minute and result in the error.<br> I tried with the new <code class="notranslate">@electron/remote</code> and also with the old <code class="notranslate">electron.remote</code>. The example is using the new remote module as it will result in an error whereas the old <code class="notranslate">electron.remote</code> will not result an exception, but instead the promise <strong>will never resolve or reject</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/ozooner/electron-capture-page.git npm install npm start"><pre class="notranslate"><code class="notranslate">git clone https://github.com/ozooner/electron-capture-page.git npm install npm start </code></pre></div> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2709373/107247085-c34d9180-69e5-11eb-83d3-344a77387cde.png"><img src="https://user-images.githubusercontent.com/2709373/107247085-c34d9180-69e5-11eb-83d3-344a77387cde.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li>13.0.0-nightly.20201203</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>N/A</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">WebFrameMain.frames</code> should never contain undefined</p> <h3 dir="auto">Actual Behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught Exception: TypeError: Cannot read property 'processId' of undefined at id (/private/var/folders/_7/jm5cr84j7jd4v7btf2d3bqwm0000gn/T/tmp-59557-p4DTr3KWOsNk/main.js:4:38) at pft (/private/var/folders/_7/jm5cr84j7jd4v7btf2d3bqwm0000gn/T/tmp-59557-p4DTr3KWOsNk/main.js:6:36) at Timeout._onTimeout (/private/var/folders/_7/jm5cr84j7jd4v7btf2d3bqwm0000gn/T/tmp-59557-p4DTr3KWOsNk/main.js:27:5) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)"><pre class="notranslate"><code class="notranslate">Uncaught Exception: TypeError: Cannot read property 'processId' of undefined at id (/private/var/folders/_7/jm5cr84j7jd4v7btf2d3bqwm0000gn/T/tmp-59557-p4DTr3KWOsNk/main.js:4:38) at pft (/private/var/folders/_7/jm5cr84j7jd4v7btf2d3bqwm0000gn/T/tmp-59557-p4DTr3KWOsNk/main.js:6:36) at Timeout._onTimeout (/private/var/folders/_7/jm5cr84j7jd4v7btf2d3bqwm0000gn/T/tmp-59557-p4DTr3KWOsNk/main.js:27:5) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) </code></pre></div> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Run <a href="https://gist.github.com/f46823470955034b4a456b6275862bfb">https://gist.github.com/f46823470955034b4a456b6275862bfb</a> for a short while and you'll observe the above error.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/samuelmaddock/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/samuelmaddock">@samuelmaddock</a></p>
1
<h3 dir="auto">Description</h3> <p dir="auto">A textbox is added to the UI next to each DAG to write/modify information regarding the DAG directly in the UI.</p> <h3 dir="auto">Use case/motivation</h3> <p dir="auto">I work on a team and currently we are unable to relay information regarding a DAG through the UI. For example: reason why a maintainer temporarily disabled a particular DAG.<br> The <em>DAG doc_md</em> is not very useful in this case since that lives in code - which has to go through a review process. It is a better candidate for displaying lasting information in our case.<br> In general, this feature can be used to display/modify any information regarding a DAG.</p> <h3 dir="auto">Related issues</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit a PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<p dir="auto"><strong>Description</strong></p> <p dir="auto">I have been an airflow user for since a long time and I have often asked myself "what did happen to this task 4 months ago?".<br> Usually, this question starts a long and tedious process of going through slack/github/jira/emails to understand what was the problem.</p> <p dir="auto">Wouldn't be nice having a small airflow component where users can insert notes about tasks?</p> <p dir="auto"><strong>What do you want to happen?</strong><br> The idea is to have a "task note" which is related to a task instance. We would have a new table: task_notes which has 5 columns dag_id, task_id, execution_date, task_notes, timestamp, (potentially others such a user etc)<br> We would have a new view similar to the xcom (second screenshot) and we modify the task instance view and model to refer to this task note view (first screenshot).<br> Users would be able to insert notes from this view.</p> <p dir="auto">In my current implementation, it looks something similar to this.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/34150/124752832-408f1b00-df20-11eb-804f-221875cea496.png"><img src="https://user-images.githubusercontent.com/34150/124752832-408f1b00-df20-11eb-804f-221875cea496.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/34150/124752867-4a188300-df20-11eb-8ec1-392d1abeb6fb.png"><img src="https://user-images.githubusercontent.com/34150/124752867-4a188300-df20-11eb-8ec1-392d1abeb6fb.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">--&gt;</p> <p dir="auto"><strong>Are you willing to submit a PR?</strong></p> <p dir="auto">Yes. I have been working on this for fun as a POC.</p> <p dir="auto"><strong>Related Issues</strong></p>
1
<h3 dir="auto">系统及 Electron 的版本信息:</h3> <p dir="auto">Electron version: v1.6.1<br> Operating system: os x 10.12.2</p> <h3 dir="auto">问题现象</h3> <p dir="auto">中文输入法(百度五笔),在输入中文时,时常会出来「输入法候选词面板」位置异常,会出现在整个窗口的「左上角」</p> <h3 dir="auto">问题截图</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1432335/23797890/025e0434-05dd-11e7-8d52-2051ea899062.png"><img src="https://cloud.githubusercontent.com/assets/1432335/23797890/025e0434-05dd-11e7-8d52-2051ea899062.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I'm encountering a weird situation. When I was inputting characters in Chinese, the IME window would appear at top left of the app first, and then in a normal position for the consecutive letters. Please see the snapshot below.</p> <p dir="auto">Maybe <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zcbenz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zcbenz">@zcbenz</a> you can view this issue.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7262715/13143194/3cb382de-d67d-11e5-9fbf-ca42a62db68a.png"><img src="https://cloud.githubusercontent.com/assets/7262715/13143194/3cb382de-d67d-11e5-9fbf-ca42a62db68a.png" alt="qq20160218-0 2x" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>Electron Version: v0.36.7</li> <li>OS: Latest Mac OS X, 10.0.2 as far as I can recall</li> </ul> <p dir="auto">Issue reproduced every time on several machines.</p> <p dir="auto">There is a webview tag in my app. Could this be the cause?</p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery. (v5.0.2)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li>[x ] I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 5.0.2</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:5.0.2 (singularity) kombu:5.0.2 py:3.6.9 billiard:3.6.3.0 redis:3.5.3 platform -&gt; system:Linux arch:64bit, ELF kernel version:5.4.0-53-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://localhost/ broker_url: 'redis://localhost:6379//' result_backend: 'redis://localhost/' deprecated_settings: None result_extended: True "><pre class="notranslate"><code class="notranslate">software -&gt; celery:5.0.2 (singularity) kombu:5.0.2 py:3.6.9 billiard:3.6.3.0 redis:3.5.3 platform -&gt; system:Linux arch:64bit, ELF kernel version:5.4.0-53-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:redis://localhost/ broker_url: 'redis://localhost:6379//' result_backend: 'redis://localhost/' deprecated_settings: None result_extended: True </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li> <p dir="auto"><strong>Minimal Python Version</strong>: 3.6.9</p> </li> <li> <p dir="auto"><strong>Minimal Celery Version</strong>: 5.0.2</p> </li> <li> <p dir="auto"><strong>Minimal Kombu Version</strong>: 5.0.2</p> </li> <li> <p dir="auto"><strong>Minimal Broker Version</strong>: Redis server v=6.0.8 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=75cef67090587c6</p> </li> <li> <p dir="auto"><strong>Minimal Result Backend Version</strong>: Redis server v=6.0.8 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=75cef67090587c6</p> </li> <li> <p dir="auto"><strong>Minimal OS and/or Kernel Version</strong>: Linux Machine 5.4.0-53-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="100857" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/59" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/59/hovercard" href="https://github.com/celery/celery/issues/59">#59</a>~18.04.1-Ubuntu SMP Wed Oct 21 12:14:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</p> </li> <li> <p dir="auto"><strong>Minimal Broker Client Version</strong>: N/A or Unknown</p> </li> <li> <p dir="auto"><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</p> </li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="aioredis==1.3.1 alabaster==0.7.8 amqp==5.0.2 appdirs==1.4.4 apturl==0.5.2 argon2-cffi==20.1.0 asgiref==3.3.1 asn1crypto==0.24.0 astroid==1.6.0 async-generator==1.10 async-timeout==3.0.1 attrs==20.2.0 autobahn==20.7.1 Automat==20.2.0 Babel==2.3.4 backcall==0.2.0 beautifulsoup4==4.9.0 billiard==3.6.3.0 black==20.8b1 bleach==3.2.1 blinker==1.4 Brlapi==0.6.6 bs4==0.0.1 celery==5.0.2 certifi==2020.6.20 cffi==1.14.3 channels==2.4.0 channels-redis==3.1.0 chardet==3.0.4 click==7.1.2 click-didyoumean==0.0.3 click-repl==0.1.6 cloudpickle==0.5.2 colorama==0.4.3 colored==1.4.2 command-not-found==0.3 constantly==15.1.0 cryptography==3.1.1 cupshelpers==1.0 cycler==0.10.0 daphne==2.5.0 dataclasses==0.8 decorator==4.4.2 defer==1.0.6 defusedxml==0.6.0 distlib==0.3.1 distro==1.5.0 distro-info===0.18ubuntu0.18.04.1 Django==3.1.3 django-allauth==0.42.0 django-automated-logging==6.0.0 django-cors-headers==3.5.0 django-filter==2.4.0 django-ipware==3.0.2 django-picklefield==3.0.1 django-rest-auth==0.9.5 djangorestframework==3.12.1 docutils==0.12 elasticsearch==7.9.1 entrypoints==0.3 fastapi==0.61.2 feedparser==5.2.1 filelock==3.0.12 Flask==1.1.2 Flask-Cors==3.0.8 future==0.18.2 greenlet==0.4.12 h11==0.11.0 hiredis==1.1.0 html5lib==0.999999999 httpie==0.9.8 httplib2==0.9.2 hyperlink==20.0.1 idna==2.10 imagesize==0.7.1 importlib-metadata==2.0.0 importlib-resources==3.0.0 incremental==17.5.0 ipykernel==5.3.4 ipython==7.16.1 ipython-genutils==0.2.0 isort==4.3.4 itsdangerous==1.1.0 jedi==0.17.2 Jinja2==2.11.2 joblib==0.17.0 json5==0.9.5 jsonschema==3.2.0 jupyter-client==6.1.7 jupyter-core==4.6.3 jupyterlab==2.2.9 jupyterlab-pygments==0.1.2 jupyterlab-server==1.2.0 kafka-python==2.0.2 keyring==10.6.0 keyrings.alt==3.0 kiwisolver==1.3.1 kombu==5.0.2 language-selector==0.1 launchpadlib==1.10.6 lazr.restfulclient==0.13.5 lazr.uri==1.0.3 lazy-object-proxy==1.3.1 logilab-common==1.4.1 louis==3.5.0 lxml==4.5.0 macaroonbakery==1.1.3 Mako==1.0.7 Markdown==3.3 MarkupSafe==1.1.1 marshmallow==3.9.1 matplotlib==3.3.3 mccabe==0.6.1 mistune==0.8.4 msgpack==1.0.0 mypy-extensions==0.4.3 nbclient==0.5.1 nbconvert==6.0.7 nbformat==5.0.8 neovim==0.2.0 nest-asyncio==1.4.2 netifaces==0.10.9 notebook==6.1.4 numpy==1.19.4 numpydoc==0.7.0 oauth==1.0.1 oauthlib==3.1.0 olefile==0.45.1 packaging==20.4 pandas==1.0.3 pandocfilters==1.4.3 parso==0.7.1 pathspec==0.8.0 pexpect==4.8.0 pickleshare==0.7.5 Pillow==8.0.1 prometheus-client==0.8.0 prompt-toolkit==3.0.8 protobuf==3.0.0 psutil==5.4.2 ptk==1.3.8 ptyprocess==0.6.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycairo==1.16.2 pycodestyle==2.3.1 pycparser==2.20 pycrypto==2.6.1 pycups==1.9.73 pydantic==1.7.2 pyflakes==1.6.0 Pygments==2.7.2 pygobject==3.26.1 PyHamcrest==2.0.2 PyJWT==1.5.3 pylint==1.8.3 pymacaroons==0.13.0 PyNaCl==1.1.2 pyOpenSSL==19.1.0 pyparsing==2.4.7 pyRFC3339==1.0 pyrsistent==0.17.3 PySocks==1.7.1 python-apt==1.6.5+ubuntu0.3 python-dateutil==2.8.1 python-debian==0.1.32 python-slugify==4.0.1 python3-openid==3.2.0 pytz==2020.4 pyxdg==0.25 PyYAML==3.12 pyzmq==19.0.2 QtAwesome==0.4.4 qtconsole==4.3.1 QtPy==1.3.1 redis==3.5.3 regex==2020.7.14 reportlab==3.4.0 requests==2.24.0 requests-futures==1.0.0 requests-oauthlib==1.3.0 requests-unixsocket==0.1.5 roman==2.0.0 rope==0.10.5 scikit-learn==0.23.2 scipy==1.5.4 screen-resolution-extra==0.0.0 SecretStorage==2.3.1 Send2Trash==1.5.0 service-identity==18.1.0 simplegeneric==0.8.1 simplejson==3.13.2 six==1.15.0 soupsieve==2.0 Sphinx==1.6.7 spyder==3.2.6 sqlparse==0.4.1 starlette==0.13.6 stem==1.8.0 system-service==0.3 systemd-python==234 terminado==0.9.1 testpath==0.4.4 text-unidecode==1.3 threadpoolctl==2.1.0 toml==0.10.1 torch==1.7.0 torchvision==0.8.1 tornado==6.1 torrequest==0.1.0 traitlets==4.3.3 Twisted==20.3.0 txaio==20.4.1 typed-ast==1.4.1 typing-extensions==3.7.4.3 ubuntu-drivers-common==0.0.0 ufw==0.36 unattended-upgrades==0.1 unity-scope-calculator==0.1 unity-scope-chromiumbookmarks==0.1 unity-scope-colourlovers==0.1 unity-scope-devhelp==0.1 unity-scope-firefoxbookmarks==0.1 unity-scope-manpages==0.1 unity-scope-openclipart==0.1 unity-scope-texdoc==0.1 unity-scope-tomboy==0.1 unity-scope-virtualbox==0.1 unity-scope-yelp==0.1 unity-scope-zotero==0.1 unity-tweak-tool==0.0.7 urllib3==1.25.11 usb-creator==0.3.3 uvicorn==0.12.2 vine==5.0.0 virtualenv==20.0.35 wadllib==1.3.2 wcwidth==0.2.5 webencodings==0.5.1 websocket-client==0.57.0 websockets==8.1 Werkzeug==1.0.1 wrapt==1.9.0 xkit==0.0.0 xonsh==0.9.24 zipp==3.4.0 zope.interface==5.1.2 "><pre class="notranslate"><code class="notranslate">aioredis==1.3.1 alabaster==0.7.8 amqp==5.0.2 appdirs==1.4.4 apturl==0.5.2 argon2-cffi==20.1.0 asgiref==3.3.1 asn1crypto==0.24.0 astroid==1.6.0 async-generator==1.10 async-timeout==3.0.1 attrs==20.2.0 autobahn==20.7.1 Automat==20.2.0 Babel==2.3.4 backcall==0.2.0 beautifulsoup4==4.9.0 billiard==3.6.3.0 black==20.8b1 bleach==3.2.1 blinker==1.4 Brlapi==0.6.6 bs4==0.0.1 celery==5.0.2 certifi==2020.6.20 cffi==1.14.3 channels==2.4.0 channels-redis==3.1.0 chardet==3.0.4 click==7.1.2 click-didyoumean==0.0.3 click-repl==0.1.6 cloudpickle==0.5.2 colorama==0.4.3 colored==1.4.2 command-not-found==0.3 constantly==15.1.0 cryptography==3.1.1 cupshelpers==1.0 cycler==0.10.0 daphne==2.5.0 dataclasses==0.8 decorator==4.4.2 defer==1.0.6 defusedxml==0.6.0 distlib==0.3.1 distro==1.5.0 distro-info===0.18ubuntu0.18.04.1 Django==3.1.3 django-allauth==0.42.0 django-automated-logging==6.0.0 django-cors-headers==3.5.0 django-filter==2.4.0 django-ipware==3.0.2 django-picklefield==3.0.1 django-rest-auth==0.9.5 djangorestframework==3.12.1 docutils==0.12 elasticsearch==7.9.1 entrypoints==0.3 fastapi==0.61.2 feedparser==5.2.1 filelock==3.0.12 Flask==1.1.2 Flask-Cors==3.0.8 future==0.18.2 greenlet==0.4.12 h11==0.11.0 hiredis==1.1.0 html5lib==0.999999999 httpie==0.9.8 httplib2==0.9.2 hyperlink==20.0.1 idna==2.10 imagesize==0.7.1 importlib-metadata==2.0.0 importlib-resources==3.0.0 incremental==17.5.0 ipykernel==5.3.4 ipython==7.16.1 ipython-genutils==0.2.0 isort==4.3.4 itsdangerous==1.1.0 jedi==0.17.2 Jinja2==2.11.2 joblib==0.17.0 json5==0.9.5 jsonschema==3.2.0 jupyter-client==6.1.7 jupyter-core==4.6.3 jupyterlab==2.2.9 jupyterlab-pygments==0.1.2 jupyterlab-server==1.2.0 kafka-python==2.0.2 keyring==10.6.0 keyrings.alt==3.0 kiwisolver==1.3.1 kombu==5.0.2 language-selector==0.1 launchpadlib==1.10.6 lazr.restfulclient==0.13.5 lazr.uri==1.0.3 lazy-object-proxy==1.3.1 logilab-common==1.4.1 louis==3.5.0 lxml==4.5.0 macaroonbakery==1.1.3 Mako==1.0.7 Markdown==3.3 MarkupSafe==1.1.1 marshmallow==3.9.1 matplotlib==3.3.3 mccabe==0.6.1 mistune==0.8.4 msgpack==1.0.0 mypy-extensions==0.4.3 nbclient==0.5.1 nbconvert==6.0.7 nbformat==5.0.8 neovim==0.2.0 nest-asyncio==1.4.2 netifaces==0.10.9 notebook==6.1.4 numpy==1.19.4 numpydoc==0.7.0 oauth==1.0.1 oauthlib==3.1.0 olefile==0.45.1 packaging==20.4 pandas==1.0.3 pandocfilters==1.4.3 parso==0.7.1 pathspec==0.8.0 pexpect==4.8.0 pickleshare==0.7.5 Pillow==8.0.1 prometheus-client==0.8.0 prompt-toolkit==3.0.8 protobuf==3.0.0 psutil==5.4.2 ptk==1.3.8 ptyprocess==0.6.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycairo==1.16.2 pycodestyle==2.3.1 pycparser==2.20 pycrypto==2.6.1 pycups==1.9.73 pydantic==1.7.2 pyflakes==1.6.0 Pygments==2.7.2 pygobject==3.26.1 PyHamcrest==2.0.2 PyJWT==1.5.3 pylint==1.8.3 pymacaroons==0.13.0 PyNaCl==1.1.2 pyOpenSSL==19.1.0 pyparsing==2.4.7 pyRFC3339==1.0 pyrsistent==0.17.3 PySocks==1.7.1 python-apt==1.6.5+ubuntu0.3 python-dateutil==2.8.1 python-debian==0.1.32 python-slugify==4.0.1 python3-openid==3.2.0 pytz==2020.4 pyxdg==0.25 PyYAML==3.12 pyzmq==19.0.2 QtAwesome==0.4.4 qtconsole==4.3.1 QtPy==1.3.1 redis==3.5.3 regex==2020.7.14 reportlab==3.4.0 requests==2.24.0 requests-futures==1.0.0 requests-oauthlib==1.3.0 requests-unixsocket==0.1.5 roman==2.0.0 rope==0.10.5 scikit-learn==0.23.2 scipy==1.5.4 screen-resolution-extra==0.0.0 SecretStorage==2.3.1 Send2Trash==1.5.0 service-identity==18.1.0 simplegeneric==0.8.1 simplejson==3.13.2 six==1.15.0 soupsieve==2.0 Sphinx==1.6.7 spyder==3.2.6 sqlparse==0.4.1 starlette==0.13.6 stem==1.8.0 system-service==0.3 systemd-python==234 terminado==0.9.1 testpath==0.4.4 text-unidecode==1.3 threadpoolctl==2.1.0 toml==0.10.1 torch==1.7.0 torchvision==0.8.1 tornado==6.1 torrequest==0.1.0 traitlets==4.3.3 Twisted==20.3.0 txaio==20.4.1 typed-ast==1.4.1 typing-extensions==3.7.4.3 ubuntu-drivers-common==0.0.0 ufw==0.36 unattended-upgrades==0.1 unity-scope-calculator==0.1 unity-scope-chromiumbookmarks==0.1 unity-scope-colourlovers==0.1 unity-scope-devhelp==0.1 unity-scope-firefoxbookmarks==0.1 unity-scope-manpages==0.1 unity-scope-openclipart==0.1 unity-scope-texdoc==0.1 unity-scope-tomboy==0.1 unity-scope-virtualbox==0.1 unity-scope-yelp==0.1 unity-scope-zotero==0.1 unity-tweak-tool==0.0.7 urllib3==1.25.11 usb-creator==0.3.3 uvicorn==0.12.2 vine==5.0.0 virtualenv==20.0.35 wadllib==1.3.2 wcwidth==0.2.5 webencodings==0.5.1 websocket-client==0.57.0 websockets==8.1 Werkzeug==1.0.1 wrapt==1.9.0 xkit==0.0.0 xonsh==0.9.24 zipp==3.4.0 zope.interface==5.1.2 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="## tasks.py from celery import Celery import os from time import sleep redis_url = os.getenv(&quot;REDIS_URL&quot;, default=&quot;redis://localhost&quot;) app = Celery('tasks', backend=redis_url, broker=redis_url) app.conf.update( result_extended=True ) @app.task(bind=True) def dyn_sleeper(self,s): print('Executing task id {0.id}, args: {0.args!r} kwargs: {0.kwargs!r}'.format( self.request)) sleep(s) return s "><pre class="notranslate"><span class="pl-c">## tasks.py</span> <span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span> <span class="pl-k">import</span> <span class="pl-s1">os</span> <span class="pl-k">from</span> <span class="pl-s1">time</span> <span class="pl-k">import</span> <span class="pl-s1">sleep</span> <span class="pl-s1">redis_url</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-en">getenv</span>(<span class="pl-s">"REDIS_URL"</span>, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-s">"redis://localhost"</span>) <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'tasks'</span>, <span class="pl-s1">backend</span><span class="pl-c1">=</span><span class="pl-s1">redis_url</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s1">redis_url</span>) <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-en">update</span>( <span class="pl-s1">result_extended</span><span class="pl-c1">=</span><span class="pl-c1">True</span> ) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span> <span class="pl-k">def</span> <span class="pl-en">dyn_sleeper</span>(<span class="pl-s1">self</span>,<span class="pl-s1">s</span>): <span class="pl-en">print</span>(<span class="pl-s">'Executing task id {0.id}, args: {0.args!r} kwargs: {0.kwargs!r}'</span>.<span class="pl-en">format</span>( <span class="pl-s1">self</span>.<span class="pl-s1">request</span>)) <span class="pl-en">sleep</span>(<span class="pl-s1">s</span>) <span class="pl-k">return</span> <span class="pl-s1">s</span></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="## producer.py from test import dyn_sleeper from time import sleep task_list = [] for i in range(5, 15, 2): print(&quot;example task initiated, SLEEP:&quot;,i) task_list.append(dyn_sleeper.delay(i)) print(&quot;num of tasks:&quot;, len(task_list)) while True: completed_tasks = [task for task in task_list if task.ready() ] if len(completed_tasks) ==len(task_list): print(&quot;All tasks finished.&quot;) for c in task_list: print(&quot;&gt;&gt; &quot;,c.name, c.args,&quot; :&quot;, c.result) break print(&quot;There is&quot;, len(completed_tasks), &quot;completed tasks out of&quot;, len(task_list), &quot;tasks&quot;) print(&quot;&gt;&gt; &quot;, len(completed_tasks)/len(task_list)*100) sleep(1) sleep(10) "><pre class="notranslate"><span class="pl-c">## producer.py</span> <span class="pl-k">from</span> <span class="pl-s1">test</span> <span class="pl-k">import</span> <span class="pl-s1">dyn_sleeper</span> <span class="pl-k">from</span> <span class="pl-s1">time</span> <span class="pl-k">import</span> <span class="pl-s1">sleep</span> <span class="pl-s1">task_list</span> <span class="pl-c1">=</span> [] <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">5</span>, <span class="pl-c1">15</span>, <span class="pl-c1">2</span>): <span class="pl-en">print</span>(<span class="pl-s">"example task initiated, SLEEP:"</span>,<span class="pl-s1">i</span>) <span class="pl-s1">task_list</span>.<span class="pl-en">append</span>(<span class="pl-s1">dyn_sleeper</span>.<span class="pl-en">delay</span>(<span class="pl-s1">i</span>)) <span class="pl-en">print</span>(<span class="pl-s">"num of tasks:"</span>, <span class="pl-en">len</span>(<span class="pl-s1">task_list</span>)) <span class="pl-k">while</span> <span class="pl-c1">True</span>: <span class="pl-s1">completed_tasks</span> <span class="pl-c1">=</span> [<span class="pl-s1">task</span> <span class="pl-k">for</span> <span class="pl-s1">task</span> <span class="pl-c1">in</span> <span class="pl-s1">task_list</span> <span class="pl-k">if</span> <span class="pl-s1">task</span>.<span class="pl-en">ready</span>() ] <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">completed_tasks</span>) <span class="pl-c1">==</span><span class="pl-en">len</span>(<span class="pl-s1">task_list</span>): <span class="pl-en">print</span>(<span class="pl-s">"All tasks finished."</span>) <span class="pl-k">for</span> <span class="pl-s1">c</span> <span class="pl-c1">in</span> <span class="pl-s1">task_list</span>: <span class="pl-en">print</span>(<span class="pl-s">"&gt;&gt; "</span>,<span class="pl-s1">c</span>.<span class="pl-s1">name</span>, <span class="pl-s1">c</span>.<span class="pl-s1">args</span>,<span class="pl-s">" :"</span>, <span class="pl-s1">c</span>.<span class="pl-s1">result</span>) <span class="pl-k">break</span> <span class="pl-en">print</span>(<span class="pl-s">"There is"</span>, <span class="pl-en">len</span>(<span class="pl-s1">completed_tasks</span>), <span class="pl-s">"completed tasks out of"</span>, <span class="pl-en">len</span>(<span class="pl-s1">task_list</span>), <span class="pl-s">"tasks"</span>) <span class="pl-en">print</span>(<span class="pl-s">"&gt;&gt; "</span>, <span class="pl-en">len</span>(<span class="pl-s1">completed_tasks</span>)<span class="pl-c1">/</span><span class="pl-en">len</span>(<span class="pl-s1">task_list</span>)<span class="pl-c1">*</span><span class="pl-c1">100</span>) <span class="pl-en">sleep</span>(<span class="pl-c1">1</span>) <span class="pl-en">sleep</span>(<span class="pl-c1">10</span>) </pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Exit without an error</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">I have a tasks like this</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="## celery -A tasks worker -l INFO --concurrency=6 @app.task(bind=True) def dyn_sleeper(self,s): print('Executing task id {0.id}, args: {0.args!r} kwargs: {0.kwargs!r}'.format( self.request)) sleep(s) return s"><pre class="notranslate"><span class="pl-c">## celery -A tasks worker -l INFO --concurrency=6</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span> <span class="pl-k">def</span> <span class="pl-en">dyn_sleeper</span>(<span class="pl-s1">self</span>,<span class="pl-s1">s</span>): <span class="pl-en">print</span>(<span class="pl-s">'Executing task id {0.id}, args: {0.args!r} kwargs: {0.kwargs!r}'</span>.<span class="pl-en">format</span>( <span class="pl-s1">self</span>.<span class="pl-s1">request</span>)) <span class="pl-en">sleep</span>(<span class="pl-s1">s</span>) <span class="pl-k">return</span> <span class="pl-s1">s</span></pre></div> <p dir="auto">When I start celery and run the task like this:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="## producer.py task_list = [] for i in range(5, 35, 2): print(&quot;example task initiated, SLEEP:&quot;,i) task_list.append(dyn_sleeper.delay(i)) "><pre class="notranslate"><span class="pl-c">## producer.py</span> <span class="pl-s1">task_list</span> <span class="pl-c1">=</span> [] <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">5</span>, <span class="pl-c1">35</span>, <span class="pl-c1">2</span>): <span class="pl-en">print</span>(<span class="pl-s">"example task initiated, SLEEP:"</span>,<span class="pl-s1">i</span>) <span class="pl-s1">task_list</span>.<span class="pl-en">append</span>(<span class="pl-s1">dyn_sleeper</span>.<span class="pl-en">delay</span>(<span class="pl-s1">i</span>))</pre></div> <p dir="auto">I also check if all task finished:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="## producer.py while True: completed_tasks = [task for task in task_list if task.ready() ] if len(completed_tasks) ==len(task_list): print(&quot;All tasks finished.&quot;) for c in task_list: print(&quot;&gt;&gt; &quot;,c.name, c.args,&quot; :&quot;, c.result) break print(&quot;There is&quot;, len(completed_tasks), &quot;completed tasks out of&quot;, len(task_list), &quot;tasks&quot;) sleep(1)"><pre class="notranslate"><span class="pl-c">## producer.py</span> <span class="pl-k">while</span> <span class="pl-c1">True</span>: <span class="pl-s1">completed_tasks</span> <span class="pl-c1">=</span> [<span class="pl-s1">task</span> <span class="pl-k">for</span> <span class="pl-s1">task</span> <span class="pl-c1">in</span> <span class="pl-s1">task_list</span> <span class="pl-k">if</span> <span class="pl-s1">task</span>.<span class="pl-en">ready</span>() ] <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">completed_tasks</span>) <span class="pl-c1">==</span><span class="pl-en">len</span>(<span class="pl-s1">task_list</span>): <span class="pl-en">print</span>(<span class="pl-s">"All tasks finished."</span>) <span class="pl-k">for</span> <span class="pl-s1">c</span> <span class="pl-c1">in</span> <span class="pl-s1">task_list</span>: <span class="pl-en">print</span>(<span class="pl-s">"&gt;&gt; "</span>,<span class="pl-s1">c</span>.<span class="pl-s1">name</span>, <span class="pl-s1">c</span>.<span class="pl-s1">args</span>,<span class="pl-s">" :"</span>, <span class="pl-s1">c</span>.<span class="pl-s1">result</span>) <span class="pl-k">break</span> <span class="pl-en">print</span>(<span class="pl-s">"There is"</span>, <span class="pl-en">len</span>(<span class="pl-s1">completed_tasks</span>), <span class="pl-s">"completed tasks out of"</span>, <span class="pl-en">len</span>(<span class="pl-s1">task_list</span>), <span class="pl-s">"tasks"</span>) <span class="pl-en">sleep</span>(<span class="pl-c1">1</span>)</pre></div> <p dir="auto">Everything works fine but after the producer.py finishes I get an error. I complete all the tasks but I just get this error while I exit from producer.py.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/username/.local/lib/python3.6/site-packages/celery/result.py&quot;, line 391, in __del__ File &quot;/home/username/.local/lib/python3.6/site-packages/celery/backends/asynchronous.py&quot;, line 186, in remove_pending_result File &quot;/home/username/.local/lib/python3.6/site-packages/celery/backends/asynchronous.py&quot;, line 194, in on_result_fulfilled File &quot;/home/username/.local/lib/python3.6/site-packages/celery/backends/redis.py&quot;, line 174, in cancel_for File &quot;/home/username/.local/lib/python3.6/site-packages/redis/client.py&quot;, line 3600, in unsubscribe File &quot;/home/username/.local/lib/python3.6/site-packages/redis/client.py&quot;, line 3468, in execute_command File &quot;/home/username/.local/lib/python3.6/site-packages/redis/connection.py&quot;, line 1192, in get_connection File &quot;/home/username/.local/lib/python3.6/site-packages/redis/connection.py&quot;, line 567, in connect File &quot;/home/username/.local/lib/python3.6/site-packages/redis/connection.py&quot;, line 630, in on_connect File &quot;/home/username/.local/lib/python3.6/site-packages/redis/connection.py&quot;, line 401, in on_connect ImportError: sys.meta_path is None, Python is likely shutting down"><pre class="notranslate"><span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/celery/result.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">391</span>, <span class="pl-s1">in</span> <span class="pl-s1">__del__</span> <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/celery/backends/asynchronous.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">186</span>, <span class="pl-s1">in</span> <span class="pl-s1">remove_pending_result</span> <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/celery/backends/asynchronous.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">194</span>, <span class="pl-s1">in</span> <span class="pl-s1">on_result_fulfilled</span> <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/celery/backends/redis.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">174</span>, <span class="pl-s1">in</span> <span class="pl-s1">cancel_for</span> <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/redis/client.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3600</span>, <span class="pl-s1">in</span> <span class="pl-s1">unsubscribe</span> <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/redis/client.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3468</span>, <span class="pl-s1">in</span> <span class="pl-s1">execute_command</span> <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/redis/connection.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1192</span>, <span class="pl-s1">in</span> <span class="pl-s1">get_connection</span> <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/redis/connection.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">567</span>, <span class="pl-s1">in</span> <span class="pl-s1">connect</span> <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/redis/connection.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">630</span>, <span class="pl-s1">in</span> <span class="pl-s1">on_connect</span> <span class="pl-v">File</span> <span class="pl-s">"/home/username/.local/lib/python3.6/site-packages/redis/connection.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">401</span>, <span class="pl-s1">in</span> <span class="pl-s1">on_connect</span> <span class="pl-v">ImportError</span>: <span class="pl-s1">sys</span>.<span class="pl-s1">meta_path</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>, <span class="pl-v">Python</span> <span class="pl-c1">is</span> <span class="pl-s1">likely</span> <span class="pl-s1">shutting</span> <span class="pl-s1">down</span></pre></div> <p dir="auto">Weird thing is if, I don't use the loop above I don't get an error. Also if I don't use many tasks (tasks less than 20) again I don't get an error.</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://github.com/celery/celery/discussions">discussions forum</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="670997396" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6271" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/6271/hovercard" href="https://github.com/celery/celery/pull/6271">#6271</a></p> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: 5.2</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: SQS</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Using <a href="https://github.com/jazzband/pip-tools">pip-tools</a> to compile a requirements.txt should include the locked dependencies for the sqs-backend.<br> For example using this requirements.in file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery[sqs]"><pre class="notranslate"><code class="notranslate">celery[sqs] </code></pre></div> <p dir="auto">Compiled to a requirements.txt by:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip-compile --generate-hashes --output-file requirements.txt requirements.in"><pre class="notranslate">pip-compile --generate-hashes --output-file requirements.txt requirements.in</pre></div> <p dir="auto">This requirements.txt should include the pinned dependencies for the SQS backend (boto3, pycurl, urllib3) and installable with <code class="notranslate">pip install --require-hashes -r reqs/requirements.txt</code> .</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Trying to install this requirements.txt by <code class="notranslate">pip install --require-hashes -r reqs/requirements.txt</code> will error since not all dependencies are pinned as required by the option <code class="notranslate">require-hashes</code>. I've tried this with the latest pip (21.3.1). and pip-tools (6.4.0).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ pip install --require-hashes -r requirements.txt Collecting amqp==5.0.6 Using cached amqp-5.0.6-py3-none-any.whl (53 kB) Collecting billiard==3.6.4.0 Using cached billiard-3.6.4.0-py3-none-any.whl (89 kB) Collecting celery[sqs]==5.2.0 Using cached celery-5.2.0-py3-none-any.whl (404 kB) Requirement already satisfied: click==8.0.3 in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 19)) (8.0.3) Collecting click-didyoumean==0.3.0 Using cached click_didyoumean-0.3.0-py3-none-any.whl (2.7 kB) Collecting click-plugins==1.1.1 Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB) Collecting click-repl==0.2.0 Using cached click_repl-0.2.0-py3-none-any.whl (5.2 kB) Collecting kombu==5.2.1 Using cached kombu-5.2.1-py3-none-any.whl (188 kB) Collecting prompt-toolkit==3.0.22 Using cached prompt_toolkit-3.0.22-py3-none-any.whl (374 kB) Collecting pytz==2021.3 Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB) Collecting six==1.16.0 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting vine==5.0.0 Using cached vine-5.0.0-py2.py3-none-any.whl (9.4 kB) Collecting wcwidth==0.2.5 Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB) Requirement already satisfied: setuptools in ./venv/lib/python3.10/site-packages (from celery[sqs]==5.2.0-&gt;-r requirements.txt (line 15)) (58.2.0) Collecting urllib3&gt;=1.26.7 ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not: urllib3&gt;=1.26.7 from https://files.pythonhosted.org/packages/af/f4/524415c0744552cce7d8bf3669af78e8a069514405ea4fcbd0cc44733744/urllib3-1.26.7-py2.py3-none-any.whl#sha256=c4fdf4019605b6e5423637e01bc9fe4daef873709a7973e195ceba0a62bbc844 (from kombu==5.2.1-&gt;-r requirements.txt (line 39))"><pre class="notranslate"><code class="notranslate">$ pip install --require-hashes -r requirements.txt Collecting amqp==5.0.6 Using cached amqp-5.0.6-py3-none-any.whl (53 kB) Collecting billiard==3.6.4.0 Using cached billiard-3.6.4.0-py3-none-any.whl (89 kB) Collecting celery[sqs]==5.2.0 Using cached celery-5.2.0-py3-none-any.whl (404 kB) Requirement already satisfied: click==8.0.3 in ./venv/lib/python3.10/site-packages (from -r requirements.txt (line 19)) (8.0.3) Collecting click-didyoumean==0.3.0 Using cached click_didyoumean-0.3.0-py3-none-any.whl (2.7 kB) Collecting click-plugins==1.1.1 Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB) Collecting click-repl==0.2.0 Using cached click_repl-0.2.0-py3-none-any.whl (5.2 kB) Collecting kombu==5.2.1 Using cached kombu-5.2.1-py3-none-any.whl (188 kB) Collecting prompt-toolkit==3.0.22 Using cached prompt_toolkit-3.0.22-py3-none-any.whl (374 kB) Collecting pytz==2021.3 Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB) Collecting six==1.16.0 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting vine==5.0.0 Using cached vine-5.0.0-py2.py3-none-any.whl (9.4 kB) Collecting wcwidth==0.2.5 Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB) Requirement already satisfied: setuptools in ./venv/lib/python3.10/site-packages (from celery[sqs]==5.2.0-&gt;-r requirements.txt (line 15)) (58.2.0) Collecting urllib3&gt;=1.26.7 ERROR: In --require-hashes mode, all requirements must have their versions pinned with ==. These do not: urllib3&gt;=1.26.7 from https://files.pythonhosted.org/packages/af/f4/524415c0744552cce7d8bf3669af78e8a069514405ea4fcbd0cc44733744/urllib3-1.26.7-py2.py3-none-any.whl#sha256=c4fdf4019605b6e5423637e01bc9fe4daef873709a7973e195ceba0a62bbc844 (from kombu==5.2.1-&gt;-r requirements.txt (line 39)) </code></pre></div> <p dir="auto">I tracked down the cause of this to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="670997396" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6271" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/6271/hovercard" href="https://github.com/celery/celery/pull/6271">#6271</a> where requirements/sqs.txt is modified to install <code class="notranslate">kombu[sqs]</code> instead of the explicit dependencies. See <a href="https://github.com/celery/celery/pull/6271/files#diff-d229b45a35f019d718901cd33e806e8d2fbecb8eb66d81fb00f8e481c56ea0b4">https://github.com/celery/celery/pull/6271/files#diff-d229b45a35f019d718901cd33e806e8d2fbecb8eb66d81fb00f8e481c56ea0b4</a></p> <p dir="auto">I under that it's much nicer to only specify these dependencies in one repository by using this pass through dependency but it appears like pip-tools (or even the resolver in pip?) can not handle it. I haven't really had the time to dig into the details but it might make sense to explicitly define the SQS dependencies in <a href="https://github.com/celery/celery/blob/master/requirements/extras/sqs.txt">https://github.com/celery/celery/blob/master/requirements/extras/sqs.txt</a> as is done for the other backends until this works upstream since pip-tools is a rather common tool to work with dependencies.</p>
0
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">As <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/fs/promises.d.ts#L611">defined in TypeScript</a>, the <code class="notranslate">fs.stat</code> in Node.js returns value of type <code class="notranslate">Stats | BigIntStats</code>. While in Webpack's type definition, the API <code class="notranslate">InputFileSystem.stat</code> <a href="https://github.com/webpack/webpack/blob/51637ae59b4ec8a7e38d4ecde22fee93f6176935/types.d.ts#L4356-L4382">returns value of type <code class="notranslate">IStats</code></a>, which is not assignable to <code class="notranslate">Stats | BigIntStats</code>.</p> <p dir="auto">This becomes a problem for me. I'm using <code class="notranslate">fast-glob</code>, and its <code class="notranslate">sync</code> API offers an <code class="notranslate">fs</code> option. However, I can't assign the <code class="notranslate">LoaderContext.fs</code> to this option.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">Create index.ts with the following content:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { sync } from 'fast-glob' import { LoaderContext } from 'webpack'; function testFunc(fs: LoaderContext&lt;any&gt;['fs']) { sync('source', { fs: { stat: fs.stat } }); }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">sync</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'fast-glob'</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">LoaderContext</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'webpack'</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">testFunc</span><span class="pl-kos">(</span><span class="pl-s1">fs</span>: <span class="pl-smi">LoaderContext</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-kos">[</span><span class="pl-s">'fs'</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">sync</span><span class="pl-kos">(</span><span class="pl-s">'source'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">fs</span>: <span class="pl-kos">{</span> <span class="pl-c1">stat</span>: <span class="pl-s1">fs</span><span class="pl-kos">.</span><span class="pl-c1">stat</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">And compile with tsc:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ tsc index.ts index.ts:6:9 - error TS2769: No overload matches this call. Overload 1 of 2, '(source: string | string[], options: Options &amp; EntryObjectPredicate): Entry[]', gave the following error. Type '(arg0: string, arg1: (arg0?: ErrnoException, arg1?: IStats) =&gt; void) =&gt; void' is not assignable to type 'StatAsynchronousMethod'. Types of parameters 'arg1' and 'callback' are incompatible. Types of parameters 'stats' and 'arg1' are incompatible. Type 'IStats' is not assignable to type 'Stats | BigIntStats'. Type 'IStats' is not assignable to type 'BigIntStats'. Property 'atimeNs' is optional in type 'IStats' but required in type 'BigIntStats'. Overload 2 of 2, '(source: string | string[], options?: Options): string[]', gave the following error. Type '(arg0: string, arg1: (arg0?: ErrnoException, arg1?: IStats) =&gt; void) =&gt; void' is not assignable to type 'StatAsynchronousMethod'. 6 stat: fs.stat ~~~~ node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts:8:5 8 stat: StatAsynchronousMethod; ~~~~ The expected type comes from property 'stat' which is declared here on type 'Partial&lt;FileSystemAdapter&gt;' node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts:8:5 8 stat: StatAsynchronousMethod; ~~~~ The expected type comes from property 'stat' which is declared here on type 'Partial&lt;FileSystemAdapter&gt;' Found 1 error."><pre class="notranslate"><code class="notranslate">➜ tsc index.ts index.ts:6:9 - error TS2769: No overload matches this call. Overload 1 of 2, '(source: string | string[], options: Options &amp; EntryObjectPredicate): Entry[]', gave the following error. Type '(arg0: string, arg1: (arg0?: ErrnoException, arg1?: IStats) =&gt; void) =&gt; void' is not assignable to type 'StatAsynchronousMethod'. Types of parameters 'arg1' and 'callback' are incompatible. Types of parameters 'stats' and 'arg1' are incompatible. Type 'IStats' is not assignable to type 'Stats | BigIntStats'. Type 'IStats' is not assignable to type 'BigIntStats'. Property 'atimeNs' is optional in type 'IStats' but required in type 'BigIntStats'. Overload 2 of 2, '(source: string | string[], options?: Options): string[]', gave the following error. Type '(arg0: string, arg1: (arg0?: ErrnoException, arg1?: IStats) =&gt; void) =&gt; void' is not assignable to type 'StatAsynchronousMethod'. 6 stat: fs.stat ~~~~ node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts:8:5 8 stat: StatAsynchronousMethod; ~~~~ The expected type comes from property 'stat' which is declared here on type 'Partial&lt;FileSystemAdapter&gt;' node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts:8:5 8 stat: StatAsynchronousMethod; ~~~~ The expected type comes from property 'stat' which is declared here on type 'Partial&lt;FileSystemAdapter&gt;' Found 1 error. </code></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">The code snippet above should compile without any type errors.</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.50.0<br> Node.js version: 14.15.1<br> Operating System: macOS Big Sur 11.5.2<br> Additional tools:</p>
<p dir="auto"><g-emoji class="g-emoji" alias="christmas_tree" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f384.png">🎄</g-emoji> First, thanks for trying and giving feedback to our alpha version. <g-emoji class="g-emoji" alias="christmas_tree" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f384.png">🎄</g-emoji></p> <p dir="auto">Note that it's still in an early state and stuff may be broken. This is something you want to report here, as we don't want this to happen in the final release.</p> <p dir="auto">Note that the major version has breaking changes and some plugins might no longer work as expected. We try to provided compatibility layers when possible, but some of the changes make this difficult (especially regarding injection additional runtime code). If some plugin isn't working this is also something you should report here to we are at least aware of it and may work on fixing it or adding a compatibility layer.</p> <p dir="auto">Here is the full <a href="https://github.com/webpack/changelog-v5/blob/master/README.md">Changelog</a>. Make sure to read at least until the configuration changes to be up-to-date.</p> <p dir="auto">If you find something missing in the changelog, this is also something to report here. Easy fixes can made directly in the repo. Every webpack contributor has write access, otherwise send a PR.</p> <p dir="auto">If everything is working great, that's also nice to hear. If you are trying the Persistent Caching feature, we would love to see numbers.</p> <p dir="auto">Please make sure to try with the lastest alpha version before reporting, as it may already be fixed. You can use the npm dist-tag <code class="notranslate">next</code> to reference the latest alpha version.</p> <p dir="auto"><code class="notranslate">package.json</code> <code class="notranslate">"webpack": "next"</code>. Update with <code class="notranslate">yarn upgrade webpack</code> / <code class="notranslate">npm update webpack</code>.</p> <p dir="auto">Not to forget: Thanks for everybody contributed to this version (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/byzyk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/byzyk">@byzyk</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cacheflow/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cacheflow">@cacheflow</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Connormiha/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Connormiha">@Connormiha</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fscherwi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fscherwi">@fscherwi</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guybedford/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guybedford">@guybedford</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michael-ciniawsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michael-ciniawsky">@michael-ciniawsky</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/niieani/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/niieani">@niieani</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ooflorent/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ooflorent">@ooflorent</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SevInf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SevInf">@SevInf</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smelukov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smelukov">@smelukov</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sodatea/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sodatea">@sodatea</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sokra/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sokra">@sokra</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xtuc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xtuc">@xtuc</a>). <g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">🎉</g-emoji></p> <hr> <p dir="auto">Feedback summary:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> mini-css-extract-plugin is incompatible (RuntimeModules change)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> fork-ts-checker-webpack-plugin is incompatible (frozen hooks)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> circular-dependency-plugin is incompatible (dep.module removed)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cache-loader is no longer needed</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> webpack-cli misses <code class="notranslate">Stats.presetToOptions</code> (should use <code class="notranslate">compilation.createStatsOptions</code>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> html-webpack-plugin misses <code class="notranslate">fileTimestamps</code> (should use <code class="notranslate">fileSystemInfo</code>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> null prototype objects can't be serialized</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Deprecation warning for the HMR defaults</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Docs need update</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">namedChunkGroups</code> have weird keys</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MultiStats.toJson</code> fails without options argument (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="394358326" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/8561" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/8561/hovercard" href="https://github.com/webpack/webpack/pull/8561">#8561</a>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Stats assetsByChunkName is different to v4</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">node.global: false</code> causes many errors</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">define</code> is missing require requirement for <code class="notranslate">module</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> reasons for scope-hoisted modules are inconsistent</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> resolve.alias false doesn't work</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Source map caching is very slow</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Runtime modules duplicated in runtime chunk single</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">Compilation.rebuildModule</code> broken in alpha</li> </ul>
0
<p dir="auto">Hi,</p> <p dir="auto">I'm working with histogram aggregation but there is something strange with keys.<br> For instance (cf : <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html" rel="nofollow">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html</a>):</p> <p dir="auto">If I use this request :</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;aggs&quot; : { &quot;prices&quot; : { &quot;histogram&quot; : { &quot;field&quot; : &quot;price&quot;, &quot;interval&quot; : 50 } } } }"><pre class="notranslate">{ <span class="pl-ent">"aggs"</span> : { <span class="pl-ent">"prices"</span> : { <span class="pl-ent">"histogram"</span> : { <span class="pl-ent">"field"</span> : <span class="pl-s"><span class="pl-pds">"</span>price<span class="pl-pds">"</span></span>, <span class="pl-ent">"interval"</span> : <span class="pl-c1">50</span> } } } }</pre></div> <p dir="auto">I obtain something like this :</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;aggregations&quot;: { &quot;prices&quot; : { &quot;buckets&quot;: [ { &quot;key_as_string&quot; : &quot;0&quot;, &quot;key&quot;: 0, &quot;doc_count&quot;: 2 }, { &quot;key_as_string&quot; : &quot;50&quot;, &quot;key&quot;: 50, &quot;doc_count&quot;: 4 }, { &quot;key_as_string&quot; : &quot;150&quot;, &quot;key&quot;: 150, &quot;doc_count&quot;: 3 } ] } } }"><pre class="notranslate">{ <span class="pl-ent">"aggregations"</span>: { <span class="pl-ent">"prices"</span> : { <span class="pl-ent">"buckets"</span>: [ { <span class="pl-ent">"key_as_string"</span> : <span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>, <span class="pl-ent">"key"</span>: <span class="pl-c1">0</span>, <span class="pl-ent">"doc_count"</span>: <span class="pl-c1">2</span> }, { <span class="pl-ent">"key_as_string"</span> : <span class="pl-s"><span class="pl-pds">"</span>50<span class="pl-pds">"</span></span>, <span class="pl-ent">"key"</span>: <span class="pl-c1">50</span>, <span class="pl-ent">"doc_count"</span>: <span class="pl-c1">4</span> }, { <span class="pl-ent">"key_as_string"</span> : <span class="pl-s"><span class="pl-pds">"</span>150<span class="pl-pds">"</span></span>, <span class="pl-ent">"key"</span>: <span class="pl-c1">150</span>, <span class="pl-ent">"doc_count"</span>: <span class="pl-c1">3</span> } ] } } }</pre></div> <p dir="auto">Instead of :</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;aggregations&quot;: { &quot;prices&quot; : { &quot;buckets&quot;: [ { &quot;key&quot;: 0, &quot;doc_count&quot;: 2 }, { &quot;key&quot;: 50, &quot;doc_count&quot;: 4 }, { &quot;key&quot;: 150, &quot;doc_count&quot;: 3 } ] } } }"><pre class="notranslate">{ <span class="pl-ent">"aggregations"</span>: { <span class="pl-ent">"prices"</span> : { <span class="pl-ent">"buckets"</span>: [ { <span class="pl-ent">"key"</span>: <span class="pl-c1">0</span>, <span class="pl-ent">"doc_count"</span>: <span class="pl-c1">2</span> }, { <span class="pl-ent">"key"</span>: <span class="pl-c1">50</span>, <span class="pl-ent">"doc_count"</span>: <span class="pl-c1">4</span> }, { <span class="pl-ent">"key"</span>: <span class="pl-c1">150</span>, <span class="pl-ent">"doc_count"</span>: <span class="pl-c1">3</span> } ] } } }</pre></div> <p dir="auto">You could say, it's not important but it generates json ~1/3 bigger...<br> Is there a mean to disable this ???</p> <p dir="auto">Moreover, in Elasticsearch Java API, it could be fine to have a method to request the response as a hash instead keyed by the buckets keys (cf :<a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html#_response_format" rel="nofollow">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html#_response_format</a>)</p> <p dir="auto">Thanks!!!</p>
<h1 dir="auto">Completion Suggester V2</h1> <p dir="auto">The completion suggester provides auto-complete/search-as-you-type functionality.<br> This is a navigational feature to guide users to relevant results as they are typing, improving search precision. It is not meant for spell correction or did-you-mean functionality like the term or phrase suggesters.</p> <p dir="auto">The completions are indexed as a weighted FST (finite state transducer) to provide fast Top N prefix-based<br> searches suitable for serving relevant results as a user types.</p> <p dir="auto"><strong>Notable Features</strong>:</p> <ul dir="auto"> <li>Document oriented suggestions: <ul dir="auto"> <li>Near-real time.</li> <li>Deleted document filtering.</li> <li>Multiple Context support.</li> <li>Return document field values via <code class="notranslate">payload</code>.</li> </ul> </li> <li>Query Interface: <ul dir="auto"> <li>Regular expression support via <code class="notranslate">regex</code>.</li> <li>Typo tolerance via <code class="notranslate">fuzzy</code>.</li> <li>Context boosting at query time.</li> </ul> </li> </ul> <p dir="auto">Completion Suggester V2 is based on <a href="https://issues.apache.org/jira/browse/LUCENE-6339" rel="nofollow">LUCENE-6339</a> and <a href="https://issues.apache.org/jira/browse/LUCENE-6459" rel="nofollow">LUCENE-6459</a>, the first iteration of Lucene's new <em>suggest</em> API.</p> <h2 dir="auto">Mapping</h2> <p dir="auto">The completion fields are indexed in a special way, hence a field mapping has to be defined.<br> Following shows a field mapping for a completion field named <em>title_suggest</em>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="PUT {INDEX_NAME} { &quot;mappings&quot;: { {TYPE_NAME}: { &quot;properties&quot;: { &quot;title_suggest&quot;: { &quot;type&quot;: &quot;completion&quot; } } } }"><pre class="notranslate">PUT {INDEX_NAME} { <span class="pl-s"><span class="pl-pds">"</span>mappings<span class="pl-pds">"</span></span>: { {TYPE_NAME}: { <span class="pl-s"><span class="pl-pds">"</span>properties<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>title_suggest<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>completion<span class="pl-pds">"</span></span> } } } }</pre></div> <p dir="auto">You can choose index and search time analyzer for the completion field by adding <code class="notranslate">analyzer</code><br> and <code class="notranslate">search_analyzer</code> options.</p> <h3 dir="auto">Context Mappings</h3> <p dir="auto">Adding a <code class="notranslate">contexts</code> option in the field mapping defines a context-enabled completion field. You may want<br> a context-enabled completion field, if you require filtering or boosting suggestions by a criteria other than<br> just its prefix. Note that adding high-cardinality context values will increase the size of the in-memory<br> index significantly.</p> <p dir="auto">There are two types of supported context types: <code class="notranslate">category</code> and <code class="notranslate">geo</code>.</p> <h4 dir="auto">Category Context Mapping</h4> <p dir="auto">Category contexts are indexed as prefixes to the completion field value.</p> <p dir="auto">The following adds a category context named <em>genre</em>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... &quot;contexts&quot;: [ { &quot;name&quot;: &quot;genre&quot;, &quot;type&quot;: &quot;category&quot; } ]"><pre class="notranslate">... <span class="pl-s"><span class="pl-pds">"</span>contexts<span class="pl-pds">"</span></span>: [ { <span class="pl-s"><span class="pl-pds">"</span>name<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>genre<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>category<span class="pl-pds">"</span></span> } ]</pre></div> <p dir="auto">You can also pull context values from another field in a document by using a <code class="notranslate">path</code> option specifying the field name.</p> <h4 dir="auto">Geo Context Mapping</h4> <p dir="auto">Geo points are encoded as geohash strings and prefixed to the completion field value.<br> The following adds a geo context named <em>location</em>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... &quot;contexts&quot;: [ { &quot;name&quot;: &quot;location&quot;, &quot;type&quot;: &quot;geo&quot; } ]"><pre class="notranslate">... <span class="pl-s"><span class="pl-pds">"</span>contexts<span class="pl-pds">"</span></span>: [ { <span class="pl-s"><span class="pl-pds">"</span>name<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>location<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>geo<span class="pl-pds">"</span></span> } ]</pre></div> <p dir="auto">You can also set <code class="notranslate">precision</code> option to choose the geohash length and <code class="notranslate">path</code> to pull context values from another<br> field in the document.</p> <h2 dir="auto">Indexing</h2> <p dir="auto">Just like any other field, you can add multiple completion fields to a document. You can also index multiple completions<br> for a completion field per document. Each completion value is tied to its document and can be assigned an index-time<br> weight, which determines its relative rank among other completion values which share a common prefix.</p> <p dir="auto">The following indexes a completion value and its weight for the <em>title_suggest</em> completion field:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX_NAME}/{TYPE_NAME} { &quot;title_suggest&quot;: { &quot;input&quot;: &quot;title1&quot;, &quot;weight&quot;: 7 } }"><pre class="notranslate">POST {INDEX_NAME}/{TYPE_NAME} { <span class="pl-s"><span class="pl-pds">"</span>title_suggest<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>input<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>title1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>weight<span class="pl-pds">"</span></span>: 7 } }</pre></div> <p dir="auto">You can use the short-form, if you prefer not to add <code class="notranslate">weight</code> to the completions:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX_NAME}/{TYPE_NAME} { &quot;title_suggest&quot;: &quot;title1&quot;, }"><pre class="notranslate">POST {INDEX_NAME}/{TYPE_NAME} { <span class="pl-s"><span class="pl-pds">"</span>title_suggest<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>title1<span class="pl-pds">"</span></span>, }</pre></div> <p dir="auto">Arrays are also supported to index multiple values,</p> <p dir="auto">The following indexes multiple completion entries (<code class="notranslate">input</code> and <code class="notranslate">weight</code>) for a single document:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX_NAME}/{TYPE_NAME} { &quot;title_suggest&quot;: [ { &quot;input&quot;: &quot;title1&quot;, &quot;weight&quot;: 14 }, { &quot;input&quot;: &quot;alternate_title&quot;, &quot;weight&quot;: 7 } ] }"><pre class="notranslate">POST {INDEX_NAME}/{TYPE_NAME} { <span class="pl-s"><span class="pl-pds">"</span>title_suggest<span class="pl-pds">"</span></span>: [ { <span class="pl-s"><span class="pl-pds">"</span>input<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>title1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>weight<span class="pl-pds">"</span></span>: 14 }, { <span class="pl-s"><span class="pl-pds">"</span>input<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>alternate_title<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>weight<span class="pl-pds">"</span></span>: 7 } ] }</pre></div> <h4 dir="auto">Indexing context-enabled fields</h4> <p dir="auto">You can use the <code class="notranslate">path</code> option previously mentioned to pull context values from another field<br> in the document or add <code class="notranslate">contexts</code> option to the completion entry while indexing.</p> <p dir="auto">The following explicitly indexes context values along with completions:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX_NAME}/{TYPE_NAME} { &quot;genre_title_suggest&quot;: { &quot;input&quot;: &quot;title1&quot;, &quot;contexts&quot;: { &quot;genre&quot;: [&quot;genre1&quot;, &quot;genre2&quot;] }, &quot;weight&quot;: 7 } }"><pre class="notranslate">POST {INDEX_NAME}/{TYPE_NAME} { <span class="pl-s"><span class="pl-pds">"</span>genre_title_suggest<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>input<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>title1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>contexts<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>genre<span class="pl-pds">"</span></span>: [<span class="pl-s"><span class="pl-pds">"</span>genre1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>genre2<span class="pl-pds">"</span></span>] }, <span class="pl-s"><span class="pl-pds">"</span>weight<span class="pl-pds">"</span></span>: 7 } }</pre></div> <p dir="auto">You can also configure the <code class="notranslate">path</code> option in the context mapping to pull values from another<br> field as follows (assuming <code class="notranslate">path</code> for the <em>genre</em> context has been set to <em>genre</em> field):</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX_NAME}/{TYPE_NAME} { &quot;genre_title_suggest&quot;: &quot;title1&quot;, &quot;genre&quot;: [&quot;genre1&quot;, &quot;genre2&quot;] }"><pre class="notranslate">POST {INDEX_NAME}/{TYPE_NAME} { <span class="pl-s"><span class="pl-pds">"</span>genre_title_suggest<span class="pl-pds">"</span></span>: <span class="pl-s"><span class="pl-pds">"</span>title1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>genre<span class="pl-pds">"</span></span>: [<span class="pl-s"><span class="pl-pds">"</span>genre1<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>genre2<span class="pl-pds">"</span></span>] }</pre></div> <h2 dir="auto">Query Interface</h2> <p dir="auto">The point of indexing values as completions is to be able to run fast prefix-based searches on them.<br> You can run <strong>Prefix</strong>, <strong>Fuzzy</strong> and <strong>Regex</strong> queries on all completion fields. In case of a context-<br> enabled completion field, providing no context indicates <em>all</em> contexts will be considered. But you<br> can not run a <strong>Context</strong> query on a completion field with no contexts. When a query is run on a context-<br> enabled field, the contexts for a completion is returned with the suggestion.</p> <h4 dir="auto">Prefix Query</h4> <p dir="auto">The following suggests completions from the field <em>title_suggest</em> that start with <em>titl</em>:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX}/_suggest { &quot;suggest-namespace&quot; : { &quot;prefix&quot; : &quot;titl&quot;, &quot;completion&quot; : { &quot;field&quot; : &quot;title_suggest&quot; } } }"><pre class="notranslate">POST {INDEX}/_suggest { <span class="pl-s"><span class="pl-pds">"</span>suggest-namespace<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>prefix<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>titl<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>completion<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>field<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>title_suggest<span class="pl-pds">"</span></span> } } }</pre></div> <p dir="auto">The suggestions are sorted by their index-time <code class="notranslate">weight</code>.</p> <h4 dir="auto">Fuzzy Prefix Query</h4> <p dir="auto">A fuzzy prefix query can serve typo-tolerant suggestions. It scores suggestions <em>closer</em> (based on its edit distance)<br> to the provided <em>prefix</em> higher, regardless of their <em>weight</em>.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX}/_suggest { &quot;suggest-namespace&quot; : { &quot;prefix&quot; : &quot;sug&quot;, &quot;completion&quot; : { &quot;field&quot; : &quot;suggest&quot;, &quot;fuzzy&quot; : { (1) &quot;fuzziness&quot; : 2 } } } }"><pre class="notranslate">POST {INDEX}/_suggest { <span class="pl-s"><span class="pl-pds">"</span>suggest-namespace<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>prefix<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>sug<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>completion<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>field<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>suggest<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>fuzzy<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { (1) <span class="pl-s"><span class="pl-pds">"</span>fuzziness<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2 } } } }</pre></div> <p dir="auto">Specify <em>fuzzy</em> as shown in (1) to use typo-tolerant suggester. <a href="http://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-completion.html#fuzzy" rel="nofollow">Full options for fuzzy</a></p> <h4 dir="auto">Regex Prefix Query</h4> <p dir="auto">A regex prefix query matches all the term prefixes that match a regular expression. Regex is anchored at the begining but not at the end.<br> The suggestions are sorted by their index-time <code class="notranslate">weight</code>.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX}/_suggest { &quot;suggest-namespace&quot; : { &quot;regex&quot; : &quot;s[u|a]g&quot;, (1) &quot;completion&quot; : { &quot;field&quot; : &quot;suggest&quot; } } }"><pre class="notranslate">POST {INDEX}/_suggest { <span class="pl-s"><span class="pl-pds">"</span>suggest-namespace<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>regex<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>s[u|a]g<span class="pl-pds">"</span></span>, (1) <span class="pl-s"><span class="pl-pds">"</span>completion<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>field<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>suggest<span class="pl-pds">"</span></span> } } }</pre></div> <p dir="auto">Specify <em>regex</em> as shown in (1), instead of <em>prefix</em> to use regular expressions. <a href="http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html#regexp-syntax" rel="nofollow">Supported regular expression syntax</a></p> <h3 dir="auto">Context Query</h3> <p dir="auto">Adding <code class="notranslate">contexts</code> (1) option to the query enables filtering and/or boosting suggestions based on their context values.<br> This query scores suggestions by multiplying the query-time <em>boost</em> withe the suggestion <em>weight</em>.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX}/_suggest { &quot;suggest-namespace&quot; : { &quot;prefix&quot; : &quot;sug&quot;, &quot;completion&quot; : { &quot;field&quot; : &quot;genre_title_suggest&quot;, &quot;contexts&quot;: { (1) &quot;genre&quot;: [ { &quot;value&quot; : &quot;rock&quot;, &quot;boost&quot; : 3 }, { &quot;value&quot; : &quot;indie&quot;, &quot;boost&quot; : 2 } ] } } } }"><pre class="notranslate">POST {INDEX}/_suggest { <span class="pl-s"><span class="pl-pds">"</span>suggest-namespace<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>prefix<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>sug<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>completion<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>field<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>genre_title_suggest<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>contexts<span class="pl-pds">"</span></span>: { (1) <span class="pl-s"><span class="pl-pds">"</span>genre<span class="pl-pds">"</span></span>: [ { <span class="pl-s"><span class="pl-pds">"</span>value<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>rock<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>boost<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 3 }, { <span class="pl-s"><span class="pl-pds">"</span>value<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>indie<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>boost<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2 } ] } } } }</pre></div> <p dir="auto">The contexts can also be specified without any boost:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ... &quot;contexts&quot;: { &quot;genre&quot; : [&quot;rock&quot;, &quot;indie&quot;] }"><pre class="notranslate"> ... <span class="pl-s"><span class="pl-pds">"</span>contexts<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>genre<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> [<span class="pl-s"><span class="pl-pds">"</span>rock<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>indie<span class="pl-pds">"</span></span>] }</pre></div> <h4 dir="auto">Geo Context Query:</h4> <p dir="auto">The result will be scored such that the suggestions are first sorted by the distance between the corresponding geo context and the provided<br> geo location and then by the weight of the suggestions.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ... &quot;contexts&quot; : { &quot;location&quot; : { &quot;context&quot; : { &quot;lat&quot; : .., &quot;lon&quot; : .. }, &quot;precision&quot; : .. } }"><pre class="notranslate"> ... <span class="pl-s"><span class="pl-pds">"</span>contexts<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>location<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>context<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>lat<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> .., <span class="pl-s"><span class="pl-pds">"</span>lon<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> .. }, <span class="pl-s"><span class="pl-pds">"</span>precision<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> .. } }</pre></div> <h4 dir="auto">Example</h4> <p dir="auto">The following performs a <strong>Fuzzy Prefix Query</strong> combined with a <strong>Context Query</strong> on a context-enabled completion field named <em>genre_song_suggest</em>.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX}/_suggest { &quot;suggest-namespace&quot; : { &quot;prefix&quot; : &quot;like a roling st&quot;, &quot;completion&quot; : { &quot;field&quot; : &quot;genre_song_suggest&quot;, &quot;fuzzy&quot; : { &quot;fuzziness&quot; : 2 }, &quot;contexts&quot; : { &quot;genre&quot;: [ { &quot;context&quot; : &quot;rock&quot;, &quot;boost&quot; : 3 }, { &quot;context&quot; : &quot;indie&quot;, &quot;boost&quot; : 2 } ] } } } }"><pre class="notranslate">POST {INDEX}/_suggest { <span class="pl-s"><span class="pl-pds">"</span>suggest-namespace<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>prefix<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>like a roling st<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>completion<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>field<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>genre_song_suggest<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>fuzzy<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>fuzziness<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2 }, <span class="pl-s"><span class="pl-pds">"</span>contexts<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>genre<span class="pl-pds">"</span></span>: [ { <span class="pl-s"><span class="pl-pds">"</span>context<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>rock<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>boost<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 3 }, { <span class="pl-s"><span class="pl-pds">"</span>context<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>indie<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>boost<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 2 } ] } } } }</pre></div> <p dir="auto">This query will return <strong>all</strong> song names for the genre <em>rock</em> and <em>indie</em> that are within an edit distance of <em>2</em> from the prefix <em>like a roling st</em>.<br> The song names with genre of <em>rock</em> will be boosted higher then that of <em>indie</em>.<br> The completion field values that share the longest prefix with <em>like a roling st</em> will be additionally boosted higher.</p> <h3 dir="auto">Payload</h3> <p dir="auto">You can retrieve any document field values along with its completions using the <code class="notranslate">payload</code> option.<br> The following returns the <em>url</em> field with each suggestion entry:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="POST {INDEX}/_suggest { &quot;suggest-namespace&quot; : { &quot;prefix&quot; : &quot;titl&quot;, &quot;completion&quot; : { &quot;field&quot; : &quot;title_suggest&quot;, &quot;payload&quot; : [&quot;url&quot;] } } }"><pre class="notranslate">POST {INDEX}/_suggest { <span class="pl-s"><span class="pl-pds">"</span>suggest-namespace<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>prefix<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>titl<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>completion<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> { <span class="pl-s"><span class="pl-pds">"</span>field<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>title_suggest<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>payload<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> [<span class="pl-s"><span class="pl-pds">"</span>url<span class="pl-pds">"</span></span>] } } }</pre></div> <p dir="auto">The response format is as follows:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ ... &quot;suggest-namespace&quot; : [ { &quot;prefix&quot; : &quot;sugg&quot;, &quot;offset&quot; : 0, &quot;length&quot; : 4, &quot;options&quot; : [ { &quot;text&quot; : &quot;suggestion&quot;, &quot;score&quot; : 34.0, &quot;payload&quot;: { &quot;url&quot; : [ &quot;url_1&quot; ] } } ] } ] }"><pre class="notranslate">{ ... <span class="pl-s"><span class="pl-pds">"</span>suggest-namespace<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> [ { <span class="pl-s"><span class="pl-pds">"</span>prefix<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>sugg<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>offset<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 0, <span class="pl-s"><span class="pl-pds">"</span>length<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 4, <span class="pl-s"><span class="pl-pds">"</span>options<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> [ { <span class="pl-s"><span class="pl-pds">"</span>text<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> <span class="pl-s"><span class="pl-pds">"</span>suggestion<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>score<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> 34.0, <span class="pl-s"><span class="pl-pds">"</span>payload<span class="pl-pds">"</span></span>: { <span class="pl-s"><span class="pl-pds">"</span>url<span class="pl-pds">"</span></span> <span class="pl-c1">:</span> [ <span class="pl-s"><span class="pl-pds">"</span>url_1<span class="pl-pds">"</span></span> ] } } ] } ] }</pre></div>
0