text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">Replicating example</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: df = pd.DataFrame([[1,2],[3,4]],columns=pd.CategoricalIndex(list('AB'))) In [2]: df.describe() AttributeError: 'DataFrame' object has no attribute 'value_counts'"><pre class="notranslate"><code class="notranslate">In [1]: df = pd.DataFrame([[1,2],[3,4]],columns=pd.CategoricalIndex(list('AB'))) In [2]: df.describe() AttributeError: 'DataFrame' object has no attribute 'value_counts' </code></pre></div> <p dir="auto">The behaviour in <a href="https://gist.github.com/williamsmj/c6cbabcb25f27f08407f">this notebook</a> seems like a bug to me. This is pandas 0.17.0.</p> <p dir="auto">In it, <code class="notranslate">g</code> and <code class="notranslate">gcat</code> are the results of two <code class="notranslate">df.groupby(['medium', 'artist']).count().unstack()</code> operations. The only difference is that one of those operations is on <code class="notranslate">df</code> where one of the columns that the <code class="notranslate">groupby</code> operates over has been converted to Categorical.</p> <p dir="auto"><code class="notranslate">g</code> and <code class="notranslate">gcat</code> behave very differently. I've tried to pin this down to the exact operation in the split-apply-combine that causes the problem without much luck.</p> <p dir="auto">Slicing a column out of <code class="notranslate">g</code> returns a Series as expected, while slicing a column out of <code class="notranslate">gcat</code> returns a DataFrame (see cells 4 and 5).</p> <p dir="auto"><code class="notranslate">g.describe()</code> works as expected, but <code class="notranslate">gcat.describe()</code> raises the exception</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AttributeError: 'DataFrame' object has no attribute 'value_counts'"><pre class="notranslate"><code class="notranslate">AttributeError: 'DataFrame' object has no attribute 'value_counts' </code></pre></div> <p dir="auto">and <code class="notranslate">g['painting'] + g['sculpture']</code> works as expected but <code class="notranslate">g['painting'] + g['sculpture']</code> raises</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception: Data must be 1-dimensional"><pre class="notranslate"><code class="notranslate">Exception: Data must be 1-dimensional </code></pre></div>
<p dir="auto">Hard to reprod.</p> <p dir="auto">Select from a duplicate indexed axis in a frame with ix where part of the<br> selection set is missing</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [22]: df = DataFrame(np.random.randn(5,5),columns=['A.1','B.1','B.2','B.3','A.2'],index=date_range('20130101',periods=5)) In [23]: df2 = df.rename(columns=lambda x: x.split('.')[0]) In [24]: df2 Out[24]: A B B B A 2013-01-01 -1.029245 -0.782139 0.584956 1.097301 -0.150675 2013-01-02 -0.723246 -0.356150 -0.441952 0.027012 -1.851583 2013-01-03 -1.001412 0.129464 0.093433 0.952615 -1.338390 2013-01-04 0.165987 0.227918 0.557940 -0.102501 -1.194053 2013-01-05 0.249493 -1.102096 -0.977755 -0.529540 0.783277 [5 rows x 5 columns] In [25]: df2.ix[:,['A','B','C']] AssertionError: Number of manager items must equal union of block items # manager items: 6, # tot_items: 14"><pre class="notranslate"><code class="notranslate">In [22]: df = DataFrame(np.random.randn(5,5),columns=['A.1','B.1','B.2','B.3','A.2'],index=date_range('20130101',periods=5)) In [23]: df2 = df.rename(columns=lambda x: x.split('.')[0]) In [24]: df2 Out[24]: A B B B A 2013-01-01 -1.029245 -0.782139 0.584956 1.097301 -0.150675 2013-01-02 -0.723246 -0.356150 -0.441952 0.027012 -1.851583 2013-01-03 -1.001412 0.129464 0.093433 0.952615 -1.338390 2013-01-04 0.165987 0.227918 0.557940 -0.102501 -1.194053 2013-01-05 0.249493 -1.102096 -0.977755 -0.529540 0.783277 [5 rows x 5 columns] In [25]: df2.ix[:,['A','B','C']] AssertionError: Number of manager items must equal union of block items # manager items: 6, # tot_items: 14 </code></pre></div>
0
<p dir="auto">The HeroDetailComponent (code not shown) presents facts about a particular hero, the hero that the user selects from the list presented by the the HeroListComponent. The HeroDetailComponent is a child of the the HeroListComponent.<br> Search for the two 'the the' in the text.</p>
<p dir="auto">After upgrading to 2.2.0 ( and router 3.2.0) I am getting a runtime error on navigation with queryParams.</p> <p dir="auto"><code class="notranslate">EXCEPTION: Cannot read property 'appendChild' of null</code></p> <p dir="auto">The weird thing is that the error does not occur while in development mode, nor does the AoT compiler throw any error.</p> <p dir="auto">Angular: 2.2.0<br> Angular router: 3.2.0</p> <p dir="auto">Example:</p> <p dir="auto">router.navigate( [ 'home'], { queryParams: { test: 'test' }})</p> <p dir="auto">Anyone got this error as well?</p> <p dir="auto">Angular 2.1.2 works fine with precisely the same code.</p> <p dir="auto">// Update<br> So I tried only to update Angular to 2.2.0 and keep Angular-Router on 3.1.2, and the issue remains.</p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1208" rel="nofollow">http://projects.scipy.org/numpy/ticket/1208</a> on 2009-08-26 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stefanv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stefanv">@stefanv</a>, assigned to unknown.</em></p> <p dir="auto">Considering</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="x = np.array([np.array(3+1j), np.array(4+1j)], dtype=object)"><pre class="notranslate"><code class="notranslate">x = np.array([np.array(3+1j), np.array(4+1j)], dtype=object) </code></pre></div> <p dir="auto">both</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [4]: x.real Out[4]: array([(3+1j), (4+1j)], dtype=object)"><pre class="notranslate"><code class="notranslate">In [4]: x.real Out[4]: array([(3+1j), (4+1j)], dtype=object) </code></pre></div> <p dir="auto">and</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [6]: np.real(x) Out[6]: array([(3+1j), (4+1j)], dtype=object)"><pre class="notranslate"><code class="notranslate">In [6]: np.real(x) Out[6]: array([(3+1j), (4+1j)], dtype=object) </code></pre></div> <p dir="auto">does nothing, so that you have to do</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [8]: [np.real(e) for e in x] Out[8]: [array(3.0), array(4.0)]"><pre class="notranslate"><code class="notranslate">In [8]: [np.real(e) for e in x] Out[8]: [array(3.0), array(4.0)] </code></pre></div> <p dir="auto">or [e.real for e in x].</p> <p dir="auto">We should check for the real method of e.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1142" rel="nofollow">http://projects.scipy.org/numpy/ticket/1142</a> on 2009-06-19 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/inducer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/inducer">@inducer</a>, assigned to unknown.</em></p> <p dir="auto">numpy could really do a better job here by propagating the .real to the elements of the object array:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47) [GCC 4.3.3] on linux2 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import numpy as n &gt;&gt;&gt; n.__version__ '1.3.0' &gt;&gt;&gt; a = n.array(5+7j) &gt;&gt;&gt; b = n.array([a], dtype=object) &gt;&gt;&gt; b.real array([(5+7j)], dtype=object) &gt;&gt;&gt; n.real(b) array([(5+7j)], dtype=object)"><pre class="notranslate"><code class="notranslate">Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import numpy as n &gt;&gt;&gt; n.__version__ '1.3.0' &gt;&gt;&gt; a = n.array(5+7j) &gt;&gt;&gt; b = n.array([a], dtype=object) &gt;&gt;&gt; b.real array([(5+7j)], dtype=object) &gt;&gt;&gt; n.real(b) array([(5+7j)], dtype=object) </code></pre></div> <hr> <p dir="auto">Summary by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seberg">@seberg</a>:</p> <p dir="auto">Object arrays could call <code class="notranslate">.real</code> on all objects, but that would not return a view as typically promised by <code class="notranslate">arr.real</code>. It seems that moving forward here may require a new function that returns a copy?</p>
1
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">After we write one page with flutter and release it with traffic control.<br> We found two kind of crash report related to SkMemory_malloc.cpp:21.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/817851/39164329-8a2e9d76-47b1-11e8-9a84-1b9f367dd393.png"><img src="https://user-images.githubusercontent.com/817851/39164329-8a2e9d76-47b1-11e8-9a84-1b9f367dd393.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">One symbolicated callback stacktrace is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="KyleWongdeMacBook-Pro:src kylewong$ ./third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line -e out/android_release/libflutter.so 0013ea5f 001e8e6d 00058dc7 004f5d1b 00058e57 00077165 0004f475 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/skia/src/ports/SkMemory_malloc.cpp:21 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../garnet/public/lib/fxl/logging.cc:93 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/icu_util.cc:99 /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/mutex.cpp:241 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/mutex:548 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/shell/common/shell.cc:85 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/shell/platform/android/flutter_main.cc:34"><pre lang="terminal" class="notranslate"><code class="notranslate">KyleWongdeMacBook-Pro:src kylewong$ ./third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line -e out/android_release/libflutter.so 0013ea5f 001e8e6d 00058dc7 004f5d1b 00058e57 00077165 0004f475 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/skia/src/ports/SkMemory_malloc.cpp:21 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../garnet/public/lib/fxl/logging.cc:93 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/icu_util.cc:99 /Volumes/Android/buildbot/src/android/ndk-r12-release/ndk/sources/cxx-stl/llvm-libc++/libcxx/src/mutex.cpp:241 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/mutex:548 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/shell/common/shell.cc:85 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/shell/platform/android/flutter_main.cc:34 </code></pre></div> <p dir="auto">For this case, I take a users's meminfo when crashed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="meminfo: MemTotal: 3835708 kB MemFree: 266880 kB MemAvailable: 930532 kB Buffers: 1040 kB Cached: 848564 kB SwapCached: 12064 kB Active: 961156 kB Inactive: 1064104 kB Active(anon): 605616 kB Inactive(anon): 600236 kB Active(file): 355540 kB Inactive(file): 463868 kB Unevictable: 81828 kB Mlocked: 82000 kB SwapTotal: 1572860 kB SwapFree: 528896 kB Dirty: 12192 kB Writeback: 0 kB AnonPages: 1248392 kB Mapped: 541684 kB Shmem: 5016 kB Slab: 229548 kB SReclaimable: 50840 kB SUnreclaim: 178708 kB KernelStack: 49632 kB PageTables: 61404 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 3490712 kB Committed_AS: 99801136 kB VmallocTotal: 258867136 kB VmallocUsed: 0 kB VmallocChunk: 0 kB CmaTotal: 176128 kB CmaFree: 0 kB"><pre lang="log" class="notranslate"><code class="notranslate">meminfo: MemTotal: 3835708 kB MemFree: 266880 kB MemAvailable: 930532 kB Buffers: 1040 kB Cached: 848564 kB SwapCached: 12064 kB Active: 961156 kB Inactive: 1064104 kB Active(anon): 605616 kB Inactive(anon): 600236 kB Active(file): 355540 kB Inactive(file): 463868 kB Unevictable: 81828 kB Mlocked: 82000 kB SwapTotal: 1572860 kB SwapFree: 528896 kB Dirty: 12192 kB Writeback: 0 kB AnonPages: 1248392 kB Mapped: 541684 kB Shmem: 5016 kB Slab: 229548 kB SReclaimable: 50840 kB SUnreclaim: 178708 kB KernelStack: 49632 kB PageTables: 61404 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 3490712 kB Committed_AS: 99801136 kB VmallocTotal: 258867136 kB VmallocUsed: 0 kB VmallocChunk: 0 kB CmaTotal: 176128 kB CmaFree: 0 kB </code></pre></div> <p dir="auto">Another similar one is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="KyleWongdeMacBook-Pro:src kylewong$ ./third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line -e out/android_release/libflutter.so 0013ea5f 001e8e6d 0006f6bf 00070a2d 0007208b 000599e1 0005c223 0005c1df 00059a6d 0005ae15 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/skia/src/ports/SkMemory_malloc.cpp:21 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../garnet/public/lib/fxl/logging.cc:93 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/runtime/dart_init.cc:695 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/runtime/runtime_init.cc:30 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/shell/common/engine.cc:292 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/functional:1756 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/platform/android/message_loop_android.cc:93 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/platform/android/message_loop_android.cc:69 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/message_loop_impl.cc:81 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/thread.cc:32"><pre lang="terminal" class="notranslate"><code class="notranslate">KyleWongdeMacBook-Pro:src kylewong$ ./third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line -e out/android_release/libflutter.so 0013ea5f 001e8e6d 0006f6bf 00070a2d 0007208b 000599e1 0005c223 0005c1df 00059a6d 0005ae15 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/skia/src/ports/SkMemory_malloc.cpp:21 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../garnet/public/lib/fxl/logging.cc:93 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/runtime/dart_init.cc:695 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/runtime/runtime_init.cc:30 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/shell/common/engine.cc:292 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../third_party/android_tools/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/functional:1756 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/platform/android/message_loop_android.cc:93 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/platform/android/message_loop_android.cc:69 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/message_loop_impl.cc:81 /Users/kylewong/Codes/Flutter/engine/src/out/android_release/../../flutter/fml/thread.cc:32 </code></pre></div> <p dir="auto">For this one, I've take a user's meminfo:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="meminfo: MemTotal: 3813592 kB MemFree: 221276 kB MemAvailable: 1020744 kB Buffers: 1348 kB Cached: 822600 kB SwapCached: 15188 kB Active: 1368196 kB Inactive: 751700 kB Active(anon): 1007148 kB Inactive(anon): 308560 kB Active(file): 361048 kB Inactive(file): 443140 kB Unevictable: 1412 kB Mlocked: 1412 kB SwapTotal: 2293756 kB SwapFree: 822344 kB Dirty: 15980 kB Writeback: 0 kB AnonPages: 1292596 kB Mapped: 324340 kB Shmem: 18772 kB Slab: 230672 kB SReclaimable: 102440 kB SUnreclaim: 128232 kB KernelStack: 65632 kB PageTables: 73284 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 4200552 kB Committed_AS: 115778564 kB VmallocTotal: 258998208 kB VmallocUsed: 386624 kB VmallocChunk: 258415424 kB CmaTotal: 32768 kB CmaFree: 100 kB Isolate1Free: 2868 kB Isolate2Free: 0 kB"><pre lang="log" class="notranslate"><code class="notranslate">meminfo: MemTotal: 3813592 kB MemFree: 221276 kB MemAvailable: 1020744 kB Buffers: 1348 kB Cached: 822600 kB SwapCached: 15188 kB Active: 1368196 kB Inactive: 751700 kB Active(anon): 1007148 kB Inactive(anon): 308560 kB Active(file): 361048 kB Inactive(file): 443140 kB Unevictable: 1412 kB Mlocked: 1412 kB SwapTotal: 2293756 kB SwapFree: 822344 kB Dirty: 15980 kB Writeback: 0 kB AnonPages: 1292596 kB Mapped: 324340 kB Shmem: 18772 kB Slab: 230672 kB SReclaimable: 102440 kB SUnreclaim: 128232 kB KernelStack: 65632 kB PageTables: 73284 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 4200552 kB Committed_AS: 115778564 kB VmallocTotal: 258998208 kB VmallocUsed: 386624 kB VmallocChunk: 258415424 kB CmaTotal: 32768 kB CmaFree: 100 kB Isolate1Free: 2868 kB Isolate2Free: 0 kB </code></pre></div> <h2 dir="auto">Logs</h2> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[βœ“] Flutter (Channel beta, v0.1.6-pre.47, on Mac OS X 10.13.4 17E199, locale en-CN) β€’ Flutter version 0.1.6-pre.47 at /Users/kylewong/Codes/fwn_idlefish/flutter β€’ Framework revision 538c8e12b6 (3 days ago), 2018-04-21 19:47:45 +0800 β€’ Engine revision e61bb9ac3a β€’ Dart version 2.0.0-dev.35.flutter-290c576264 [βœ“] Android toolchain - develop for Android devices (Android SDK 27.0.3) β€’ Android SDK at /Users/kylewong/Library/Android/sdk β€’ Android NDK at /Users/kylewong/Library/Android/sdk/ndk-bundle β€’ Platform android-27, build-tools 27.0.3 β€’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java β€’ Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) β€’ All Android licenses accepted. [βœ“] iOS toolchain - develop for iOS devices (Xcode 9.3) β€’ Xcode at /Applications/Xcode.app/Contents/Developer β€’ Xcode 9.3, Build version 9E145 β€’ ios-deploy 1.9.2 β€’ CocoaPods version 1.2.0 [βœ“] Android Studio (version 3.1) β€’ Android Studio at /Applications/Android Studio.app/Contents β€’ Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [βœ“] Connected devices (1 available) β€’ KyleWong's iPhone β€’ 1c8e085cf2ff6fa27643ab4afec4bf4a077688af β€’ ios β€’ iOS 11.3"><pre lang="terminal" class="notranslate"><code class="notranslate">[βœ“] Flutter (Channel beta, v0.1.6-pre.47, on Mac OS X 10.13.4 17E199, locale en-CN) β€’ Flutter version 0.1.6-pre.47 at /Users/kylewong/Codes/fwn_idlefish/flutter β€’ Framework revision 538c8e12b6 (3 days ago), 2018-04-21 19:47:45 +0800 β€’ Engine revision e61bb9ac3a β€’ Dart version 2.0.0-dev.35.flutter-290c576264 [βœ“] Android toolchain - develop for Android devices (Android SDK 27.0.3) β€’ Android SDK at /Users/kylewong/Library/Android/sdk β€’ Android NDK at /Users/kylewong/Library/Android/sdk/ndk-bundle β€’ Platform android-27, build-tools 27.0.3 β€’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java β€’ Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) β€’ All Android licenses accepted. [βœ“] iOS toolchain - develop for iOS devices (Xcode 9.3) β€’ Xcode at /Applications/Xcode.app/Contents/Developer β€’ Xcode 9.3, Build version 9E145 β€’ ios-deploy 1.9.2 β€’ CocoaPods version 1.2.0 [βœ“] Android Studio (version 3.1) β€’ Android Studio at /Applications/Android Studio.app/Contents β€’ Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [βœ“] Connected devices (1 available) β€’ KyleWong's iPhone β€’ 1c8e085cf2ff6fa27643ab4afec4bf4a077688af β€’ ios β€’ iOS 11.3 </code></pre></div> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eseidelGoogle/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eseidelGoogle">@eseidelGoogle</a><br> This one is the top2 crash in our application. Would you spare some efforts to help us solve it?</p>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">In our application,one detail page is written in flutter while the others use java. However, in our test, we noticed that after my detail page crashes one time, it will continuously crash when entering any detail page again after relaunching.</p> <p dir="auto">The Crash log is given below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="01-12 21:51:08.075 26227-26181/? E/DEBUG: fault addr 00000000 not in maps 01-12 21:51:08.076 26227-26181/? E/DEBUG: --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- 01-12 21:51:08.395 26227-26181/? E/DEBUG: Process Name: 'com.taobao.idlefish' Thread Name: 'ui_thread' pid: 10824, tid: 26181 &gt;&gt;&gt; com.taobao.idlefish &lt;&lt;&lt; signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 r0 00000000 r1 ffffffff r2 83649d8c r3 85a57d3c r4 85a57cf8 r5 83649d8c r6 85a57d00 r7 00000000 r8 83649eb8 r9 aaaaaaab 10 00000006 fp 00000000 01-12 21:51:08.396 26227-26181/? E/DEBUG: ip b1286624 sp 83649d88 lr 95043c9d pc 9518709c cpsr 200c0030 #00 pc 0036109c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.397 26227-26181/? E/DEBUG: #01 pc 0035fa98 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so #02 pc 003634aa /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.398 26227-26181/? E/DEBUG: #03 pc 00363dac /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.399 26227-26181/? E/DEBUG: #04 pc 0006a71c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so #05 pc 0006814c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.400 26227-26181/? E/DEBUG: #06 pc 00068106 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so #07 pc 003cfb42 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.401 26227-26181/? E/DEBUG: #08 pc 003d00ac /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so --- --- --- 01-12 21:51:08.450 26227-26181/? E/DEBUG: 00 pc 0036109c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01 pc 0035fa99 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 02 pc 003634ab /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 03 pc 00363dad /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 04 pc 0006a71d /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 05 pc 0006814d /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 06 pc 00068107 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 07 pc 003cfb43 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.451 26227-26181/? E/DEBUG: 08 pc 003d00ad /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 09 pc 0000240c /data/data/com.taobao.idlefish/app_flutter/vm_snapshot_instr"><pre lang="log" class="notranslate"><code class="notranslate">01-12 21:51:08.075 26227-26181/? E/DEBUG: fault addr 00000000 not in maps 01-12 21:51:08.076 26227-26181/? E/DEBUG: --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- 01-12 21:51:08.395 26227-26181/? E/DEBUG: Process Name: 'com.taobao.idlefish' Thread Name: 'ui_thread' pid: 10824, tid: 26181 &gt;&gt;&gt; com.taobao.idlefish &lt;&lt;&lt; signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 r0 00000000 r1 ffffffff r2 83649d8c r3 85a57d3c r4 85a57cf8 r5 83649d8c r6 85a57d00 r7 00000000 r8 83649eb8 r9 aaaaaaab 10 00000006 fp 00000000 01-12 21:51:08.396 26227-26181/? E/DEBUG: ip b1286624 sp 83649d88 lr 95043c9d pc 9518709c cpsr 200c0030 #00 pc 0036109c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.397 26227-26181/? E/DEBUG: #01 pc 0035fa98 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so #02 pc 003634aa /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.398 26227-26181/? E/DEBUG: #03 pc 00363dac /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.399 26227-26181/? E/DEBUG: #04 pc 0006a71c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so #05 pc 0006814c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.400 26227-26181/? E/DEBUG: #06 pc 00068106 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so #07 pc 003cfb42 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.401 26227-26181/? E/DEBUG: #08 pc 003d00ac /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so --- --- --- 01-12 21:51:08.450 26227-26181/? E/DEBUG: 00 pc 0036109c /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01 pc 0035fa99 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 02 pc 003634ab /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 03 pc 00363dad /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 04 pc 0006a71d /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 05 pc 0006814d /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 06 pc 00068107 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 07 pc 003cfb43 /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 01-12 21:51:08.451 26227-26181/? E/DEBUG: 08 pc 003d00ad /data/app/com.taobao.idlefish-1/lib/arm/libflutter.so 09 pc 0000240c /data/data/com.taobao.idlefish/app_flutter/vm_snapshot_instr </code></pre></div> <p dir="auto">Please tell us what you were doing and what went wrong. If you are running flutter tools from the command line, please try adding the <code class="notranslate">-v</code> or <code class="notranslate">--verbose</code> option to gather more information.</p> <p dir="auto">If the problem is with your application's rendering, please attach a screenshot and any relevant source code.<br> If you are getting an exception in the logs, and your code is implicated in the first few frames, then please include the source code for the functions involved.</p> <h2 dir="auto">Logs</h2> <p dir="auto">Run your application with <code class="notranslate">flutter run</code> and attach all the log output.</p> <p dir="auto">Run <code class="notranslate">flutter analyze</code> and attach any output of that command also.</p> <h2 dir="auto">Flutter Doctor</h2> <p dir="auto">[βœ“] Flutter (Channel beta, v0.1.6-pre.39, on Mac OS X 10.13.4 17E199, locale en-CN)<br> β€’ Flutter version 0.1.6-pre.39 at /Users/kylewong/Codes/fwn_idlefish/flutter<br> β€’ Framework revision 5cac396777 (2 days ago), 2018-04-17 13:09:18 +0800<br> β€’ Engine revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/e61bb9ac3a3fd789754e2e54220bcfc27076a857/hovercard" href="https://github.com/flutter/flutter/commit/e61bb9ac3a3fd789754e2e54220bcfc27076a857"><tt>e61bb9a</tt></a><br> β€’ Dart version 2.0.0-dev.35.flutter-290c576264</p> <p dir="auto">[βœ“] Android toolchain - develop for Android devices (Android SDK 27.0.3)<br> β€’ Android SDK at /Users/kylewong/Library/Android/sdk<br> β€’ Android NDK at /Users/kylewong/Library/Android/sdk/ndk-bundle<br> β€’ Platform android-27, build-tools 27.0.3<br> β€’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java<br> β€’ Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)<br> β€’ All Android licenses accepted.</p> <p dir="auto">[βœ“] iOS toolchain - develop for iOS devices (Xcode 9.3)<br> β€’ Xcode at /Applications/Xcode.app/Contents/Developer<br> β€’ Xcode 9.3, Build version 9E145<br> β€’ ios-deploy 1.9.2<br> β€’ CocoaPods version 1.2.0</p> <p dir="auto">[βœ“] Android Studio (version 3.1)<br> β€’ Android Studio at /Applications/Android Studio.app/Contents<br> β€’ Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)</p> <p dir="auto">[βœ“] Connected devices (1 available)<br> β€’ KyleWong's iPhone β€’ 1c8e085cf2ff6fa27643ab4afec4bf4a077688af β€’ ios β€’ iOS 11.3</p> <p dir="auto">β€’ No issues found!</p> <p dir="auto">Paste the output of running <code class="notranslate">flutter doctor -v</code> here.</p> <h2 dir="auto">Questions</h2> <p dir="auto">Besides how to fix this problem, I'm curious how can I know which function/file-linenum the address in a released libflutter.so matches?<br> Do you have any good ideas for me to know which file/linenum triggered this crash?</p>
1
<p dir="auto">Currently, TypeScript requires that the <code class="notranslate">get</code> and the <code class="notranslate">set</code> types of properties match. However, there are scenarios where, I think, it would be very useful to have a <code class="notranslate">set</code> that is more accepting than the get.</p> <p dir="auto">For example: imagine you have a property of <code class="notranslate">Array&lt;Array&lt;string&gt;&gt;</code> type. Today, this means that both the get and set would have to be of the same type, and so setting the property would always be done via the array notation.</p> <p dir="auto">It seems reasonable, however, to allow the "setter" to be more forgiving and let it coalesce a single string value into an array automatically. That way, when setting the property, you could either do <code class="notranslate">cell.values = [[1]]</code> or just <code class="notranslate">cell.values = 1</code>, and the class would accept either syntax. But for return values, it would always return an array type, and so the <code class="notranslate">get</code> of the values property should still be marked as <code class="notranslate">Array&lt;Array&lt;string&gt;&gt;</code> (that way you would get all the good IntelliSense of having <code class="notranslate">.filter</code>, <code class="notranslate">.forEach</code>, etc., on the return type).</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Cell { private _values: Array&lt;Array&lt;string&gt;&gt;; get values():Array&lt;Array&lt;string&gt;&gt;{ return this._values; } set values(values: Array&lt;Array&lt;string&gt;&gt;|string) { if (values instanceof Array) { this._values = &lt;Array&lt;Array&lt;string&gt;&gt;&gt;values; } else { this._values = [[&lt;string&gt;values]]; } } } "><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Cell</span> <span class="pl-kos">{</span> <span class="pl-c1">private</span> <span class="pl-s1">_values</span>: <span class="pl-v">Array</span><span class="pl-c1">&lt;</span><span class="pl-v">Array</span><span class="pl-c1">&lt;</span><span class="pl-s1">string</span><span class="pl-c1">&gt;&gt;</span><span class="pl-kos">;</span> <span class="pl-k">get</span> <span class="pl-en">values</span><span class="pl-kos">(</span><span class="pl-kos">)</span>:<span class="pl-v">Array</span><span class="pl-c1">&lt;</span><span class="pl-v">Array</span><span class="pl-c1">&lt;</span><span class="pl-s1">string</span><span class="pl-c1">&gt;&gt;</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-c1">_values</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">set</span> <span class="pl-en">values</span><span class="pl-kos">(</span><span class="pl-s1">values</span>: <span class="pl-v">Array</span><span class="pl-c1">&lt;</span><span class="pl-v">Array</span><span class="pl-c1">&lt;</span><span class="pl-s1">string</span><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">|</span><span class="pl-s1">string</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">values</span> <span class="pl-k">instanceof</span> <span class="pl-v">Array</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">_values</span> <span class="pl-c1">=</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Array</span><span class="pl-c1">&lt;</span><span class="pl-c1">Array</span><span class="pl-c1">&lt;</span><span class="pl-c1">string</span><span class="pl-c1">&gt;</span><span class="pl-c1">&gt;&gt;</span><span class="pl-s1">values</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_values</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-c1">&lt;</span><span class="pl-s1">string</span><span class="pl-c1">&gt;</span>values]]; <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Today, this code would trigger an error that "get and set accessors must have the same type".<br> <br><br> The only workarounds available today are both less than ideal:</p> <ol dir="auto"> <li> <p dir="auto">Set the property of values -- both "set" and "get" -- to <code class="notranslate">any</code>. But in doing so, you lose all IntelliSense.</p> </li> <li> <p dir="auto">Mark the property -- both "set" and "get" -- as <code class="notranslate">Array&lt;Array&lt;string&gt;&gt;|string</code>. However, while this solves the "set" problem, the "get" property loses a lot of the IntelliSense (<code class="notranslate">.filter</code>, <code class="notranslate">.forEach</code>), and is actually no longer true to reality (the return value <em>is</em> always an array, not an "array or a string")</p> </li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2230453/8991826/f78d1cd2-36af-11e5-8acb-7f3619108997.png"><img src="https://cloud.githubusercontent.com/assets/2230453/8991826/f78d1cd2-36af-11e5-8acb-7f3619108997.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Would be great if the scenario of a "more inclusive <code class="notranslate">set</code> property" could be supported.</p>
<p dir="auto">Namespaces are objects that can hold types, but cannot be passed around because don't have a type themselves.<br> Objects are mostly namespaces which can be passed around because they are typed, but cannot hold types in them.</p> <p dir="auto">Looks like this difference is a made up thing.</p> <p dir="auto"><strong>Consider unifying objects and namespaces.</strong></p> <p dir="auto">possible resolution of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="151168858" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/8308" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/8308/hovercard" href="https://github.com/microsoft/TypeScript/issues/8308">#8308</a></p>
0
<p dir="auto">Given a kubernetes cluster that is running some number of pods, services, deployments, etc, I would like to generate one or more files ( yml format preferred) that would re-produce the current configuration, when applied to a new cluster.</p> <p dir="auto">My use case is a promotion system. I have my 'stack files' as yml files in a git repo, but I need to allow humans to approve changes before they are applied to the cluster.</p> <p dir="auto">One way to do this is to use an 'open loop' system. I can use tags or other mechanisms to determine which versions have been applied to the cluster, and then compare the latest version available with the latest deployed version.</p> <p dir="auto">The problem with the open-loop system is that it does not consider that changes could have been made outside the files, or that changes applied could have had problems, etc.</p> <p dir="auto">If I could extract the 'equivalent' files from a running cluster, I could compare them with the ones that are about to be applied. This is a much stronger, 'closed loop' system-- it is able to correctly understand what will happen when the changes are applied, even if we have lost track of the real target state.</p> <p dir="auto">if there were such a thing as kubectl apply -f --dry-run, which lists only the changes that will be made, rather than actually doing the changes, that would work as well. That is already being discussed over at issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="95764950" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/11488" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/11488/hovercard" href="https://github.com/kubernetes/kubernetes/issues/11488">#11488</a></p> <p dir="auto">Does anyone have thoughts on this? We are new to kubernetes, but we have created the the functionality I'm describing above for our RedHat/Satellite rpm-based deployments, so i want to re-create it in K8s. Of course, in k8s, we have the complexity that the infrastructure itself can change, not just installed package versions!</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): zsh</p> <p dir="auto">(Found a bug which I believe is a consequence of this bug, will mark it as such after filed)</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto">Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.5", GitCommit:"b0deb2eb8f4037421077f77cb163dbb4c0a2a9f5", GitTreeState:"clean", BuildDate:"2016-08-11T20:29:08Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"clean", BuildDate:"2016-08-26T18:06:06Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: GCE kubernetes</li> <li><strong>OS</strong> (e.g. from /etc/os-release): MacOS 10.10.5</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Darwin tungsten.local 14.5.0 Darwin Kernel Version 14.5.0: Mon Aug 29 21:14:16 PDT 2016; root:xnu-2782.50.6~1/RELEASE_X86_64 x86_64</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">Calling <code class="notranslate">source &lt;( kubectl completion zsh)</code> did a re-init of the completion system, stomping over any settings already applied (alternative cache file locations, etc) and causing debugging problems. (The gcloud SDK makes the same mistake).</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Define completions but don't call <code class="notranslate">compinit</code> which is a top-level command for completion system initialization which should only be called once and should not be called from within the completion definitions for a given command.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ZDOTDIR=/some/path . &lt;( kubectl completion zsh) ls -ld $ZDOTDIR/.zcompdump"><pre class="notranslate"><code class="notranslate">ZDOTDIR=/some/path . &lt;( kubectl completion zsh) ls -ld $ZDOTDIR/.zcompdump </code></pre></div> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">My current shell config workaround is to call:</p> <p dir="auto"><code class="notranslate">&lt;( kubectl completion zsh | grep -v '^autoload .*compinit$' )</code></p> <p dir="auto">Note that the GCloud <code class="notranslate">completion.zsh.inc</code> makes the same mistake, so needs to be edited to avoid the system initialization function to avoid triggering the bug there too.</p> <p dir="auto">Ideally the calls to compinit/bashcompinit would just be removed, but if there are user-support concerns from people who haven't otherwise enabled completion then you <em>might</em> be able to get away with "force-enable completion with defaults unless already enabled". In which case, this should work:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="zmodload -i zsh/parameter if ! (( $+functions[compdef] )) ; then autoload -U +X compinit &amp;&amp; compinit autoload -U +X bashcompinit &amp;&amp; bashcompinit fi"><pre class="notranslate"><code class="notranslate">zmodload -i zsh/parameter if ! (( $+functions[compdef] )) ; then autoload -U +X compinit &amp;&amp; compinit autoload -U +X bashcompinit &amp;&amp; bashcompinit fi </code></pre></div> <p dir="auto">This works because <code class="notranslate">compinit</code> is explicitly documented to provide the function <code class="notranslate">compdef</code> after called; the <code class="notranslate">zsh/parameter</code> loadable module provides the <code class="notranslate">functions</code> special associative array. <code class="notranslate">zsh/parameter</code> will frequently have been loaded anyway, making the <code class="notranslate">zmodload</code> a no-op safety check (loadable modules are safe to request repeatedly, it's idempotent, unlike <code class="notranslate">compinit</code>).</p>
0
<p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">i have orbitcontroller.update() in the animate loop for damping<br> and<br> after doing orbitcontroller.enabled=false , i still cant tilt the camera,</p> <p dir="auto">my guess is , the update logic to prevent the camera from tilting /going upside down is still running<br> <strong>Expected behavior</strong><br> maybe in the update function when orbitcontroller.enabled=false , return early ?</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/mrdoob/three.js/blob/0d7fb8d74f3c4d4e465b5a92ada65e1c789708e1/examples/jsm/controls/OrbitControls.js#L154">three.js/examples/jsm/controls/OrbitControls.js</a> </p> <p class="mb-0 color-fg-muted"> Line 154 in <a data-pjax="true" class="commit-tease-sha" href="/mrdoob/three.js/commit/0d7fb8d74f3c4d4e465b5a92ada65e1c789708e1">0d7fb8d</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="L154" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="154"></td> <td id="LC154" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">update</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"><strong>Platform:</strong></p> <ul dir="auto"> <li>Device: [Desktop, Mobile]</li> <li>OS: [Windows]</li> <li>Browser: [Chrome]</li> <li>Three.js version: [dev]</li> </ul>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">I was trying to manually set camera to a position and lookat target and disable control. However the disable does not seem to really shut down control from meddleing with the camera, unless I also set the control's target to be the same as the new camera's lookat target, it will update the camera.</p> <p dir="auto">Sample code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Try set my camera, then disable orbit control updateCamera(pos, target) { this.camera.position.copy(pos); this.camera.lookAt(target); // This won't work this.orbitControl.enabled = false; }"><pre class="notranslate"><span class="pl-c">// Try set my camera, then disable orbit control</span> <span class="pl-en">updateCamera</span><span class="pl-kos">(</span><span class="pl-s1">pos</span><span class="pl-kos">,</span> <span class="pl-s1">target</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">camera</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-en">copy</span><span class="pl-kos">(</span><span class="pl-s1">pos</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">camera</span><span class="pl-kos">.</span><span class="pl-en">lookAt</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// This won't work</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">orbitControl</span><span class="pl-kos">.</span><span class="pl-c1">enabled</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Possible cause that I guess:<br> I have a mainloop calback that keeps calling orbitControls.update() for inertia animation, my guess is that the update function meddles with camera and does not respect that enabled=== false setting.</p> <p dir="auto">I found the cure is to add this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this.orbitControls.target = pos; // I also noted that setting target would re-enable a disabled orbit controls."><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">orbitControls</span><span class="pl-kos">.</span><span class="pl-c1">target</span> <span class="pl-c1">=</span> <span class="pl-s1">pos</span><span class="pl-kos">;</span> <span class="pl-c">// I also noted that setting target would re-enable a disabled orbit controls.</span></pre></div> <p dir="auto">I guess my main complaint is that I did not expect orbitControls to be able to change camera at all, after setting disabled. Including setting target, or calling update.</p> <h5 dir="auto">Three.js version</h5> <p dir="auto">r118</p> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> </ul>
1
<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 numpy.unique(numpy.empty((0, 2)), axis=0)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-s1">numpy</span>.<span class="pl-en">unique</span>(<span class="pl-s1">numpy</span>.<span class="pl-en">empty</span>((<span class="pl-c1">0</span>, <span class="pl-c1">2</span>)), <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)</pre></div> <h3 dir="auto">Error message:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;&lt;__array_function__ internals&gt;&quot;, line 5, in unique File &quot;/opt/python/3.8.2.1/lib/python3.8/site-packages/numpy/lib/arraysetops.py&quot;, line 275, in unique ar = ar.reshape(orig_shape[0], -1) ValueError: cannot reshape array of size 0 into shape (0,newaxis)"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "&lt;__array_function__ internals&gt;", line 5, in unique File "/opt/python/3.8.2.1/lib/python3.8/site-packages/numpy/lib/arraysetops.py", line 275, in unique ar = ar.reshape(orig_shape[0], -1) ValueError: cannot reshape array of size 0 into shape (0,newaxis) </code></pre></div> <h3 dir="auto">NumPy/Python version information:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.18.2 3.8.2 (default, May 13 2020, 11:50:46) [GCC 8.1.0 20180502 (Cray Inc.)]"><pre class="notranslate"><code class="notranslate">1.18.2 3.8.2 (default, May 13 2020, 11:50:46) [GCC 8.1.0 20180502 (Cray Inc.)] </code></pre></div>
<p dir="auto">Using <code class="notranslate">np.unique</code> with the <code class="notranslate">axis</code> argument on a multidimensional array with zero in one or more of the dimensions hits <code class="notranslate">ValueError</code> failures, seemingly due to sizes/reshaping.</p> <p dir="auto">When <code class="notranslate">axis</code> is one of the zero dimensions (that is, <code class="notranslate">shape[axis] == 0</code>), it throws <code class="notranslate">ValueError: cannot reshape array of size 0 into shape (0,newaxis)</code>.</p> <p dir="auto">When <code class="notranslate">axis</code> is a non-zero dimension (<code class="notranslate">shape[axis] == 1</code>), it throws <code class="notranslate">ValueError: When changing to a smaller dtype, its size must be a divisor of the size of original dtype</code>.</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.zeros(shape=(0, 10)) np.unique(arr, axis=0) # ValueError: cannot reshape array of size 0 into shape (0,newaxis) np.unique(arr, axis=1) # ValueError: When changing to a smaller dtype, its size must be a divisor of the size of original dtype # equivalent code with non-zero dimension works as expected: arr = np.zeros(shape=(1, 10)) np.unique(arr, axis=0) # array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) np.unique(arr, axis=1) # array([[0.]])"><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">zeros</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">0</span>, <span class="pl-c1">10</span>)) <span class="pl-s1">np</span>.<span class="pl-en">unique</span>(<span class="pl-s1">arr</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-c"># ValueError: cannot reshape array of size 0 into shape (0,newaxis)</span> <span class="pl-s1">np</span>.<span class="pl-en">unique</span>(<span class="pl-s1">arr</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c"># ValueError: When changing to a smaller dtype, its size must be a divisor of the size of original dtype</span> <span class="pl-c"># equivalent code with non-zero dimension works as expected:</span> <span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">10</span>)) <span class="pl-s1">np</span>.<span class="pl-en">unique</span>(<span class="pl-s1">arr</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-c"># array([[0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]])</span> <span class="pl-s1">np</span>.<span class="pl-en">unique</span>(<span class="pl-s1">arr</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c"># array([[0.]])</span></pre></div> <h3 dir="auto">Error message:</h3> <p dir="auto"><code class="notranslate">np.unique(arr, axis=0)</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;&lt;__array_function__ internals&gt;&quot;, line 6, in unique File &quot;~/.pyenv/versions/numpy-bug/lib/python3.6/site-packages/numpy/lib/arraysetops.py&quot;, line 275, in unique ar = ar.reshape(orig_shape[0], -1) ValueError: cannot reshape array of size 0 into shape (0,newaxis)"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "&lt;__array_function__ internals&gt;", line 6, in unique File "~/.pyenv/versions/numpy-bug/lib/python3.6/site-packages/numpy/lib/arraysetops.py", line 275, in unique ar = ar.reshape(orig_shape[0], -1) ValueError: cannot reshape array of size 0 into shape (0,newaxis) </code></pre></div> <p dir="auto"><code class="notranslate">np.unique(arr, axis=1)</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;&lt;__array_function__ internals&gt;&quot;, line 6, in unique File &quot;~/.pyenv/versions/numpy-bug/lib/python3.6/site-packages/numpy/lib/arraysetops.py&quot;, line 280, in unique consolidated = ar.view(dtype) ValueError: When changing to a smaller dtype, its size must be a divisor of the size of original dtype"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "&lt;__array_function__ internals&gt;", line 6, in unique File "~/.pyenv/versions/numpy-bug/lib/python3.6/site-packages/numpy/lib/arraysetops.py", line 280, in unique consolidated = ar.view(dtype) ValueError: When changing to a smaller dtype, its size must be a divisor of the size of original dtype </code></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">Numpy: <code class="notranslate">1.18.1</code><br> Python: <code class="notranslate">3.6.9 (default, Jul 10 2019, 12:25:55) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)]</code></p>
1
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">I'm not sure about other DB backends, but postgres supports also unique/check constraints to be inspected on db. Any change to get this into SA?</p>
<p dir="auto"><strong>Migrated issue, originally created by Brendan Abel (<a href="https://github.com/babel">@babel</a>)</strong></p> <p dir="auto">This is using sqlalchemy 0.9.8</p> <p dir="auto">Assuming a declarative class called "MyClass" with an association proxy field call "my_field"</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; ap = MyClass.__mapper__.all_orm_descriptors['my_field'] &gt;&gt;&gt; ap.owning_class None &gt;&gt;&gt; ap = MyClass.my_field &gt;&gt;&gt; ap.owning_class &lt;class 'MyClass'&gt; &gt;&gt;&gt; ap = MyClass.__mapper__.all_orm_descriptors['my_field'] &gt;&gt;&gt; ap.owning_class &lt;class 'MyClass'&gt;"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; ap = MyClass.__mapper__.all_orm_descriptors['my_field'] &gt;&gt;&gt; ap.owning_class None &gt;&gt;&gt; ap = MyClass.my_field &gt;&gt;&gt; ap.owning_class &lt;class 'MyClass'&gt; &gt;&gt;&gt; ap = MyClass.__mapper__.all_orm_descriptors['my_field'] &gt;&gt;&gt; ap.owning_class &lt;class 'MyClass'&gt; </code></pre></div> <p dir="auto">Without the owning_class set, most of the other properties will raise exceptions when trying to access them. This can be problematic when using the mapper class to procedurally access fields via the mapper.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/3423/rework_attribute_proxy_owner.patch">rework_attribute_proxy_owner.patch</a> | <a href="../wiki/imported_issue_attachments/3423/aptest.py">aptest.py</a></p>
0
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57681391" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rfcs/issues/840" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rfcs/pull/840/hovercard" href="https://github.com/rust-lang/rfcs/pull/840">rust-lang/rfcs#840</a></p>
<p dir="auto">Take this code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Foo { type Value: 'static; } fn require_static&lt;T: 'static&gt;() {} fn takes_foo&lt;F: Foo&gt;() { require_static::&lt;F::Value&gt;() }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">Value</span><span class="pl-kos">:</span> <span class="pl-c1">'</span><span class="pl-ent">static</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">require_static</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</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-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">takes_foo</span><span class="pl-kos">&lt;</span><span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</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-en">require_static</span><span class="pl-kos">::</span><span class="pl-kos">&lt;</span><span class="pl-smi">F</span><span class="pl-kos">::</span><span class="pl-smi">Value</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">Since <code class="notranslate">Foo::Value</code> is bounded with <code class="notranslate">'static</code>, we would expect this to compile, but instead we get this error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;anon&gt;:6:3: 6:29 error: the associated type `&lt;F as Foo&gt;::Value` may not live long enough &lt;anon&gt;:6 require_static::&lt;F::Value&gt;() ^~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;anon&gt;:6:3: 6:29 help: consider adding an explicit lifetime bound `&lt;F as Foo&gt;::Value: 'static`... &lt;anon&gt;:6 require_static::&lt;F::Value&gt;() ^~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;anon&gt;:6:3: 6:29 note: ...so that the declared lifetime parameter bounds are satisfied &lt;anon&gt;:6 require_static::&lt;F::Value&gt;() ^~~~~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:6:3: 6:29 error: the associated type `&lt;F as Foo&gt;::Value` may not live long enough &lt;anon&gt;:6 require_static::&lt;F::Value&gt;() ^~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;anon&gt;:6:3: 6:29 help: consider adding an explicit lifetime bound `&lt;F as Foo&gt;::Value: 'static`... &lt;anon&gt;:6 require_static::&lt;F::Value&gt;() ^~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;anon&gt;:6:3: 6:29 note: ...so that the declared lifetime parameter bounds are satisfied &lt;anon&gt;:6 require_static::&lt;F::Value&gt;() ^~~~~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to previous error </code></pre></div> <p dir="auto">Which seems redundant, if not incorrect.</p> <p dir="auto">playpen: <a href="http://is.gd/UkEaDV" rel="nofollow">http://is.gd/UkEaDV</a></p> <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> from IRC</p>
0
<h3 dir="auto">Documentation Link</h3> <p dir="auto"><a href="https://matplotlib.org/devdocs/gallery/widgets/span_selector.html" rel="nofollow">https://matplotlib.org/devdocs/gallery/widgets/span_selector.html</a></p> <h3 dir="auto">Problem</h3> <p dir="auto">I've noticed this in a couple instances, but was requested via twitter to report this one. I think a visitor would expect the spanselector example to be a dynamic, working version. When I go to the stable or dev link, it appears as a static image.</p> <h3 dir="auto">Suggested improvement</h3> <p dir="auto">A working example would be helpful for users to know how spanselector actually works. This seems like a great feature that folks might like to embed in their websites.</p>
<h3 dir="auto">Problem</h3> <p dir="auto">It can be hard to discern what a widget example does as for many of them there are no images that show up in the docs. For example the <a href="https://matplotlib.org/devdocs/gallery/widgets/lasso_selector_demo_sgskip.html#sphx-glr-gallery-widgets-lasso-selector-demo-sgskip-py" rel="nofollow">Lasso Selector Demo</a> has no image and the <a href="https://matplotlib.org/devdocs/gallery/event_handling/lasso_demo.html#sphx-glr-gallery-event-handling-lasso-demo-py" rel="nofollow">Lasso Demo</a> only has a static image.</p> <h3 dir="auto">Suggested Improvement</h3> <p dir="auto">Manually generate GIFS of the usage and embed them onto the example pages. For example here is a GIF of me using the LassoSelector demo:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10111092/103472284-c2c43a00-4d59-11eb-8c03-59ca6e2b9489.gif"><img src="https://user-images.githubusercontent.com/10111092/103472284-c2c43a00-4d59-11eb-8c03-59ca6e2b9489.gif" alt="lasso-selector" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">I'm not sure if sphinx-gallery supports this though? maybe embeding and html <code class="notranslate">&lt;img&gt;</code> tag into the comment at the top would work?<br> Also instead of <code class="notranslate">.gifs</code> I it would be better to keep files small by using <code class="notranslate">.apng</code> and running them <a href="https://tinypng.com/" rel="nofollow">https://tinypng.com/</a></p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto">With the current injectior options you can't redefine a service that uses his parent, because of a circular dependency.</p> <p dir="auto">For instance, imagine I make a new service, called <code class="notranslate">HttpA</code> that uses the <code class="notranslate">Http</code> service but adding a functionality. Now, as long as my service extends <code class="notranslate">Http</code> or explicitly uses <code class="notranslate">Http</code> (by creating an instance) I can declare a provider for this service with:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="provide(HttpA, { useFactory: (xhrBackend: XHRBackend, requestOptions: RequestOptions) =&gt; { return new HttpA(xhrBackend, requestOptions); }, deps: [XHRBackend, RequestOptions] })"><pre class="notranslate"><span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-v">HttpA</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">useFactory</span>: <span class="pl-kos">(</span><span class="pl-s1">xhrBackend</span>: <span class="pl-v">XHRBackend</span><span class="pl-kos">,</span> <span class="pl-c1">requestOptions</span>: <span class="pl-v">RequestOptions</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">return</span> <span class="pl-s1">new</span> <span class="pl-v">HttpA</span><span class="pl-kos">(</span><span class="pl-s1">xhrBackend</span><span class="pl-kos">,</span> <span class="pl-s1">requestOptions</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">deps</span>: <span class="pl-kos">[</span><span class="pl-v">XHRBackend</span><span class="pl-kos">,</span> <span class="pl-v">RequestOptions</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">But now, maybe I don't want to go through all my application and change all the Http references to HttpA, so I can do something like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="provide(Http, { useFactory: (xhrBackend: XHRBackend, requestOptions: RequestOptions) =&gt; { return new HttpA(xhrBackend, requestOptions); }, deps: [XHRBackend, RequestOptions] })"><pre class="notranslate"><span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-v">Http</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">useFactory</span>: <span class="pl-kos">(</span><span class="pl-s1">xhrBackend</span>: <span class="pl-v">XHRBackend</span><span class="pl-kos">,</span> <span class="pl-c1">requestOptions</span>: <span class="pl-v">RequestOptions</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">return</span> <span class="pl-s1">new</span> <span class="pl-v">HttpA</span><span class="pl-kos">(</span><span class="pl-s1">xhrBackend</span><span class="pl-kos">,</span> <span class="pl-s1">requestOptions</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">deps</span>: <span class="pl-kos">[</span><span class="pl-v">XHRBackend</span><span class="pl-kos">,</span> <span class="pl-v">RequestOptions</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">And this will work perfectly.</p> <p dir="auto">But what will happen if we create another Http-based service called <code class="notranslate">HttpB</code> that adds a different functionality from <code class="notranslate">HttpA</code>? If we use the same provider as <code class="notranslate">HttpA</code> it will replace that implementation with the new one, because we will be telling the injector that whenever someone asks for the <code class="notranslate">Http</code> service, give him the <code class="notranslate">HttpB</code> service instance that we just created, that it uses or extends @angular/core <code class="notranslate">Http</code>, thus the functionality in <code class="notranslate">HttpA</code> will be lost.</p> <p dir="auto">The problem then is that when we try to use the injector to get the last <code class="notranslate">Http</code> implementation we get a cyclic dependency error:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="provide(Http, { useFactory: (http:Http) =&gt; { return new HttpA(http); }, deps: [Http] })"><pre class="notranslate"><span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-v">Http</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-en">useFactory</span>: <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-v">Http</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">HttpA</span><span class="pl-kos">(</span><span class="pl-s1">http</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">deps</span>: <span class="pl-kos">[</span><span class="pl-v">Http</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">And it makes sense if you read it like "When someone asks the <code class="notranslate">Http</code> service, get the <code class="notranslate">Http</code> service and use <code class="notranslate">HttpA</code> instead", but wouldn't it be cool the injector to know that the <code class="notranslate">Http</code> service we are injecting in the provider is not the same we are returning? (i.e., it's the last defined implementation)? In fact, the behaviour that I want would be like:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="provide(Http, { useFactory: (http:OldHttp) =&gt; { return new HttpA(http); }, deps: [OldHttp] })"><pre class="notranslate"><span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-v">Http</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-en">useFactory</span>: <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-v">OldHttp</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">HttpA</span><span class="pl-kos">(</span><span class="pl-s1">http</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">deps</span>: <span class="pl-kos">[</span><span class="pl-v">OldHttp</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">But of course this won't work now because OldHttp is not defined (this is just the behaviour I mean)</p> <p dir="auto">This would let the developers do these kind of chaining, with any service (Angular 2 or custom)</p> <p dir="auto"><em>PS: This feature was crafted from a talk in AngularCamp Barcelona June 2016</em></p>
<h2 dir="auto">I'm submitting a...</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [x] Feature request [ ] Documentation issue or 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"> [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [x] Feature request [ ] Documentation issue or 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">Supersedes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="209202050" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/14620" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/14620/hovercard" href="https://github.com/angular/angular/issues/14620">#14620</a> with more concrete summary and design.</p> <h2 dir="auto">Current behavior</h2> <p dir="auto">It's currently not possible to wrap an existing provider in the same injector, which causing:</p> <h4 dir="auto">Class inheritance problems</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="257380561" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/19181" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/19181/hovercard" href="https://github.com/angular/angular/issues/19181">#19181</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="290464434" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/21697" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/21697/hovercard" href="https://github.com/angular/angular/issues/21697">#21697</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="294147849" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/22011" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/22011/hovercard?comment_id=166260795&amp;comment_type=review_comment" href="https://github.com/angular/angular/pull/22011#discussion_r166260795">#22011 (comment)</a>, ... (<code class="notranslate">class extends ErrorHandler</code>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="254349686" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/18976" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/18976/hovercard" href="https://github.com/angular/angular/issues/18976">#18976</a> (<code class="notranslate">class extends Location</code>)</li> </ul> <p dir="auto"><em>In Angular, the constructor is not consider public API due to the DI system, so extending class would be problematic and may require lots of boilerplate (declare deps again).</em></p> <h4 dir="auto">Customize existing service problems</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="294444229" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/22024" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/22024/hovercard" href="https://github.com/angular/angular/issues/22024">#22024</a> (<code class="notranslate">RendererFactory2</code>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="222996234" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/16184" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/16184/hovercard" href="https://github.com/angular/angular/issues/16184">#16184</a> (<code class="notranslate">DefaultRouteReuseStrategy</code>)</li> </ul> <p dir="auto"><em>The declared class may not be same to the provided one, the latter may not be exposed to user.</em></p> <h4 dir="auto">Strategy pattern design problems</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="104186925" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/3929" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/3929/hovercard" href="https://github.com/angular/angular/issues/3929">#3929</a> (<code class="notranslate">Renderer</code>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174905639" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/11309" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/11309/hovercard" href="https://github.com/angular/angular/issues/11309">#11309</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="248252275" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/18554" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/18554/hovercard" href="https://github.com/angular/angular/issues/18554">#18554</a> (<code class="notranslate">IterableDiffers</code>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="243251648" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/18155" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/18155/hovercard" href="https://github.com/angular/angular/issues/18155">#18155</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="267447326" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/19852" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/19852/hovercard" href="https://github.com/angular/angular/issues/19852">#19852</a> (<code class="notranslate">HttpInterceptor</code>)</li> </ul> <p dir="auto"><em>Extends behavior of some poor-designed services.</em></p> <h2 dir="auto">Expected behavior</h2> <h4 dir="auto">API Design</h4> <p dir="auto">The term <code class="notranslate">decorator</code> is not fit to this any more (due to other meanings), currently choose <code class="notranslate">intercept</code> for similar usage to <code class="notranslate">HttpInterceptor</code>. (still open to bikeshed)</p> <p dir="auto">An optional <code class="notranslate">intercept</code> property like <code class="notranslate">multi</code> applies to all kinds of providers:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Injectable() class CustomErrorHandler implements ErrorHandler { constructor(private handler: ErrorHandler) {} handleError(error: any) { // custom error collecting or reporting this.handler.handleError(error) } } @NgModule({ providers: [ { provide: ErrorHandler, useClass: CustomErrorHandler, intercept: true } ] }) class AppModule { }"><pre class="notranslate">@<span class="pl-smi">Injectable</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">CustomErrorHandler</span> <span class="pl-k">implements</span> <span class="pl-smi">ErrorHandler</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">private</span> <span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-en">handleError</span><span class="pl-kos">(</span><span class="pl-s1">error</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// custom error collecting or reporting</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handler</span><span class="pl-kos">.</span><span class="pl-en">handleError</span><span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> @<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">CustomErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">AppModule</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <h4 dir="auto">Semantics</h4> <p dir="auto">Ref: <a href="https://docs.angularjs.org/guide/decorators" rel="nofollow">AngularJS Decorator API</a>.</p> <p dir="auto">By setting <code class="notranslate">intercept: true</code>, it would allowed to inject (previous instance of) the token it providers, so it helps reusing existing logic (no need to rewrite) without modifying the consumer part (in same token).</p> <p dir="auto">So only combining with <code class="notranslate">useClass</code> or <code class="notranslate">useFactory</code> makes sense.</p> <p dir="auto"><code class="notranslate">{ provide: TOKEN, useExisting: TOKEN, intercept: true }</code> would not be allowed.<br> <code class="notranslate">{ provide: TOKEN, useValue: VALUE, intercept: true }</code> is technically valid but meaningless, could cause either warning or error.</p> <p dir="auto">Edge case: for <code class="notranslate">multi: true</code> provider, interceptor should transform the instances array, namely getting the existing array and returning a new array.</p> <p dir="auto"><code class="notranslate">{ provide: TOKEN, useClass: CLASS, multi: true, intercept: true }</code> would not be allowed, as it cannot return an array.</p> <p dir="auto">Inconsistent <code class="notranslate">multi</code> value between concrete provider and interceptor in same injector would not be allowed.</p> <h4 dir="auto">Scoping</h4> <p dir="auto">Any interceptor would belong to a specific <code class="notranslate">Injector</code> thus supporting inheritance. For example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ providers: [ { provide: ErrorHandler, useFactory: func2, deps: [ErrorHandler], intercept: true }, ] }) class MyComponent { constructor(handler: ErrorHandler) { // handler -&gt; func2(func1(/*original*/ErrorHandler)) } } @NgModule({ providers: [ { provide: ErrorHandler, useFactory: func1, deps: [ErrorHandler], intercept: true }, ] }) class MyModule { constructor(handler: ErrorHandler) { // handler -&gt; func1(/*original*/ErrorHandler) } }"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useFactory</span>: <span class="pl-s1">func2</span><span class="pl-kos">,</span> <span class="pl-c1">deps</span>: <span class="pl-kos">[</span><span class="pl-smi">ErrorHandler</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">MyComponent</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handler -&gt; func2(func1(/*original*/ErrorHandler))</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> @<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useFactory</span>: <span class="pl-s1">func1</span><span class="pl-kos">,</span> <span class="pl-c1">deps</span>: <span class="pl-kos">[</span><span class="pl-smi">ErrorHandler</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">MyModule</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handler -&gt; func1(/*original*/ErrorHandler)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Providing the normal instance won't be affected by interceptor in parent <code class="notranslate">Injector</code>. For example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ providers: [ { provide: ErrorHandler, useClass: CustomErrorHandler }, ] }) class MyComponent { constructor(handler: ErrorHandler) { // handler -&gt; CustomErrorHandler } } @NgModule({ providers: [ { provide: ErrorHandler, useFactory: func1, deps: [ErrorHandler], intercept: true }, ] }) class MyModule { constructor(handler: ErrorHandler) { // handler -&gt; func1(/*original*/ErrorHandler) } }"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">CustomErrorHandler</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">class</span> <span class="pl-smi">MyComponent</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handler -&gt; CustomErrorHandler</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> @<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useFactory</span>: <span class="pl-s1">func1</span><span class="pl-kos">,</span> <span class="pl-c1">deps</span>: <span class="pl-kos">[</span><span class="pl-smi">ErrorHandler</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">MyModule</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handler -&gt; func1(/*original*/ErrorHandler)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Should intercepting <code class="notranslate">multi: true</code> providers at each level. For example:</p> <p dir="auto">(Without <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="253156434" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/18894" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/18894/hovercard" href="https://github.com/angular/angular/issues/18894">#18894</a>)</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ providers: [ { provide: ERROR_HANDLERS, useValue: errorHandler3, multi: true }, { provide: ERROR_HANDLERS, useValue: errorHandler4, multi: true }, { provide: ERROR_HANDLERS, useFactory: func2, deps: [ErrorHandler], multi: true, intercept: true }, ] }) class MyComponent { constructor(handler: ErrorHandler) { // handler -&gt; func2([errorHandler3, errorHandler4]) } } @NgModule({ providers: [ { provide: ERROR_HANDLERS, useValue: errorHandler1, multi: true }, { provide: ERROR_HANDLERS, useValue: errorHandler2, multi: true }, { provide: ERROR_HANDLERS, useFactory: func1, deps: [ErrorHandler], multi: true, intercept: true }, ] }) class MyModule { constructor(handler: ErrorHandler) { // handler -&gt; func1([errorHandler1, errorHandler2]) } }"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useValue</span>: <span class="pl-s1">errorHandler3</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useValue</span>: <span class="pl-s1">errorHandler4</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useFactory</span>: <span class="pl-s1">func2</span><span class="pl-kos">,</span> <span class="pl-c1">deps</span>: <span class="pl-kos">[</span><span class="pl-smi">ErrorHandler</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">MyComponent</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handler -&gt; func2([errorHandler3, errorHandler4])</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> @<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useValue</span>: <span class="pl-s1">errorHandler1</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useValue</span>: <span class="pl-s1">errorHandler2</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useFactory</span>: <span class="pl-s1">func1</span><span class="pl-kos">,</span> <span class="pl-c1">deps</span>: <span class="pl-kos">[</span><span class="pl-smi">ErrorHandler</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">MyModule</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handler -&gt; func1([errorHandler1, errorHandler2])</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">(With <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="253156434" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/18894" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/18894/hovercard" href="https://github.com/angular/angular/issues/18894">#18894</a>)</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ providers: [ { provide: ERROR_HANDLERS, useValue: errorHandler3, multi: true }, { provide: ERROR_HANDLERS, useValue: errorHandler4, multi: true }, { provide: ERROR_HANDLERS, useFactory: func2, deps: [ErrorHandler], multi: true, intercept: true }, ] }) class MyComponent { constructor(handler: ErrorHandler) { // handler -&gt; func2([...func1([errorHandler1, errorHandler2]), errorHandler3, errorHandler4]) } } @NgModule({ providers: [ { provide: ERROR_HANDLERS, useValue: errorHandler1, multi: true }, { provide: ERROR_HANDLERS, useValue: errorHandler2, multi: true }, { provide: ERROR_HANDLERS, useFactory: func1, deps: [ErrorHandler], multi: true, intercept: true }, ] }) class MyModule { constructor(handler: ErrorHandler) { // handler -&gt; func1([errorHandler1, errorHandler2]) } }"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useValue</span>: <span class="pl-s1">errorHandler3</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useValue</span>: <span class="pl-s1">errorHandler4</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useFactory</span>: <span class="pl-s1">func2</span><span class="pl-kos">,</span> <span class="pl-c1">deps</span>: <span class="pl-kos">[</span><span class="pl-smi">ErrorHandler</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">MyComponent</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handler -&gt; func2([...func1([errorHandler1, errorHandler2]), errorHandler3, errorHandler4])</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> @<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useValue</span>: <span class="pl-s1">errorHandler1</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useValue</span>: <span class="pl-s1">errorHandler2</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ERROR_HANDLERS</span><span class="pl-kos">,</span> <span class="pl-c1">useFactory</span>: <span class="pl-s1">func1</span><span class="pl-kos">,</span> <span class="pl-c1">deps</span>: <span class="pl-kos">[</span><span class="pl-smi">ErrorHandler</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">MyModule</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handler -&gt; func1([errorHandler1, errorHandler2])</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h4 dir="auto">Ordering</h4> <p dir="auto">All interceptors are considered <code class="notranslate">multi</code> provider and applied last (local to <code class="notranslate">Injector</code>). For example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@NgModule({ providers: [ { provide: ErrorHandler, useClass: CustomErrorHandler1 }, { provide: ErrorHandler, useClass: CustomErrorHandler2, intercept: true }, { provide: ErrorHandler, useClass: CustomErrorHandler3 }, { provide: ErrorHandler, useClass: CustomErrorHandler4, intercept: true }, ] }) class AppModule { constructor(handler: ErrorHandler) { // handler -&gt; new CustomErrorHandler4(new CustomErrorHandler2(new CustomErrorHandler3(/* ... */))) } }"><pre class="notranslate">@<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">CustomErrorHandler1</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">CustomErrorHandler2</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">CustomErrorHandler3</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">CustomErrorHandler4</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">AppModule</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// handler -&gt; new CustomErrorHandler4(new CustomErrorHandler2(new CustomErrorHandler3(/* ... */)))</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h4 dir="auto">Examples</h4> <p dir="auto">Reduce class inheritance:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Injectable() class CustomErrorHandler implements ErrorHandler { constructor(private handler: ErrorHandler) {} handleError(error: any) { // custom error collecting or reporting this.handler.handleError(error) } } @NgModule({ providers: [ { provide: ErrorHandler, useClass: CustomErrorHandler, intercept: true } ] }) class AppModule { }"><pre class="notranslate">@<span class="pl-smi">Injectable</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">CustomErrorHandler</span> <span class="pl-k">implements</span> <span class="pl-smi">ErrorHandler</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">private</span> <span class="pl-s1">handler</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-en">handleError</span><span class="pl-kos">(</span><span class="pl-s1">error</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// custom error collecting or reporting</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handler</span><span class="pl-kos">.</span><span class="pl-en">handleError</span><span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> @<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">ErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">CustomErrorHandler</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">AppModule</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Protect private APIs:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@NgModule({ providers: [ { provide: RendererFactory2, useClass: CustomRendererFactory2, intercept: true } ] }) class AppModule { }"><pre class="notranslate">@<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">RendererFactory2</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">CustomRendererFactory2</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">AppModule</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Applying new strategy:</p> <p dir="auto"><sub>Actually this is not the best way to solve that problem, exposing <code class="notranslate">DifferFactory</code> as a multi provider would be better, but this could work without changing existing APIs.</sub></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Injectable() class CustomIterableDiffers implements IterableDiffers { constructor(private differs: IterableDiffers) {} get factories(): IterableDifferFactory[] { return this.differs.factories } find(iterable: any): IterableDifferFactory { if (iterable[SOME_SPECIAL_TOKEN]) { return superPerformantDifferFactory } return this.differs.find(iterable) } } @NgModule({ providers: [ { provide: IterableDiffers, useClass: CustomIterableDiffers, intercept: true } ] }) class AppModule { }"><pre class="notranslate">@<span class="pl-smi">Injectable</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">CustomIterableDiffers</span> <span class="pl-k">implements</span> <span class="pl-smi">IterableDiffers</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">private</span> <span class="pl-s1">differs</span>: <span class="pl-smi">IterableDiffers</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">get</span> <span class="pl-en">factories</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">IterableDifferFactory</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-c1">differs</span><span class="pl-kos">.</span><span class="pl-c1">factories</span> <span class="pl-kos">}</span> <span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s1">iterable</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-smi">IterableDifferFactory</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">iterable</span><span class="pl-kos">[</span><span class="pl-smi">SOME_SPECIAL_TOKEN</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">superPerformantDifferFactory</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-c1">differs</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s1">iterable</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> @<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">IterableDiffers</span><span class="pl-kos">,</span> <span class="pl-c1">useClass</span>: <span class="pl-smi">CustomIterableDiffers</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">AppModule</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Custom control over existing strategy:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const disabledInterceptors = new WeakMap&lt;HttpRequest, Set&lt;Type&lt;HttpInterceptor&gt;&gt;&gt;() @NgModule({ providers: [ { provide: HTTP_INTERCEPTORS, useFactory: enableFiltering, multi: true, intercept: true }, InterceptorControlService, ] }) class AppModule { } function enableFiltering(interceptors: HttpInterceptor) { return interceptors.map(interceptor =&gt; ({ intercept(req: HttpRequest&lt;any&gt;, next: HttpHandler): Observable&lt;HttpEvent&lt;any&gt;&gt; { if (disabledInterceptors.has(req) &amp;&amp; disabledInterceptors.get(req).has(interceptor.constructor)) { return next.handle(req) } return next.handle(interceptor.intercept(req, next)) } })) } @Injectable() class InterceptorControlService { disable(request: HttpRequest, interceptorType: Type&lt;HttpInterceptor&gt;) { if (!disabledInterceptors.has(request)) { disabledInterceptors.set(request, new Set()) } disabledInterceptors.get(request).add(interceptorType) } } @Component({ /*...*/ }) class MyComponent { constructor(http: HttpClient, interceptorControl: InterceptorControlService) { const request = http.post(/*...*/) interceptorControl.disable(request, SomeCustomInterceptor) request.subscribe(/*...*/) } }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">disabledInterceptors</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">WeakMap</span><span class="pl-kos">&lt;</span><span class="pl-smi">HttpRequest</span><span class="pl-kos">,</span> <span class="pl-smi">Set</span><span class="pl-kos">&lt;</span><span class="pl-smi">Type</span><span class="pl-kos">&lt;</span><span class="pl-smi">HttpInterceptor</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-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">HTTP_INTERCEPTORS</span><span class="pl-kos">,</span> <span class="pl-c1">useFactory</span>: <span class="pl-s1">enableFiltering</span><span class="pl-kos">,</span> <span class="pl-c1">multi</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">intercept</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-smi">InterceptorControlService</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">AppModule</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">enableFiltering</span><span class="pl-kos">(</span><span class="pl-s1">interceptors</span>: <span class="pl-smi">HttpInterceptor</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">interceptors</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">interceptor</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">intercept</span><span class="pl-kos">(</span><span class="pl-s1">req</span>: <span class="pl-smi">HttpRequest</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-s1">next</span>: <span class="pl-smi">HttpHandler</span><span class="pl-kos">)</span>: <span class="pl-smi">Observable</span><span class="pl-kos">&lt;</span><span class="pl-smi">HttpEvent</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">disabledInterceptors</span><span class="pl-kos">.</span><span class="pl-en">has</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">)</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">disabledInterceptors</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">has</span><span class="pl-kos">(</span><span class="pl-s1">interceptor</span><span class="pl-kos">.</span><span class="pl-c1">constructor</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">next</span><span class="pl-kos">.</span><span class="pl-en">handle</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">next</span><span class="pl-kos">.</span><span class="pl-en">handle</span><span class="pl-kos">(</span><span class="pl-s1">interceptor</span><span class="pl-kos">.</span><span class="pl-en">intercept</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">next</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-smi">Injectable</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">InterceptorControlService</span> <span class="pl-kos">{</span> <span class="pl-en">disable</span><span class="pl-kos">(</span><span class="pl-s1">request</span>: <span class="pl-smi">HttpRequest</span><span class="pl-kos">,</span> <span class="pl-s1">interceptorType</span>: <span class="pl-smi">Type</span><span class="pl-kos">&lt;</span><span class="pl-smi">HttpInterceptor</span><span class="pl-kos">&gt;</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">disabledInterceptors</span><span class="pl-kos">.</span><span class="pl-en">has</span><span class="pl-kos">(</span><span class="pl-s1">request</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">disabledInterceptors</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">request</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-smi">Set</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-s1">disabledInterceptors</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">request</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s1">interceptorType</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> @<span class="pl-smi">Component</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-k">class</span> <span class="pl-smi">MyComponent</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">http</span>: <span class="pl-smi">HttpClient</span><span class="pl-kos">,</span> <span class="pl-s1">interceptorControl</span>: <span class="pl-smi">InterceptorControlService</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">request</span> <span class="pl-c1">=</span> <span class="pl-s1">http</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-c">/*...*/</span><span class="pl-kos">)</span> <span class="pl-s1">interceptorControl</span><span class="pl-kos">.</span><span class="pl-en">disable</span><span class="pl-kos">(</span><span class="pl-s1">request</span><span class="pl-kos">,</span> <span class="pl-smi">SomeCustomInterceptor</span><span class="pl-kos">)</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">subscribe</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> <h4 dir="auto">Implementation</h4> <p dir="auto">Each <code class="notranslate">Injector</code> should hold a internal slot of interceptors, a naive logical demo could be:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Didn't consider `multi: true` yet class Injector_ { private interceptedInjectables = new Map&lt;/*token*/any, /*instance*/any&gt;() private providerInterceptors = new Map&lt;/*token*/any, /*interceptors*/Provider[]&gt;() hasInterceptors(token: any) { return this.providerInterceptors.has(token) || (!this.hasLocalProvider(token) &amp;&amp; this.parent.hasInterceptors(token)) } getInterceptors(token: any) { return [...(this.hasLocalProvider(token) ? [] : this.parent.getInterceptors(token)), this.providerInterceptors.get(token)] } get(token: any) { if (this.interceptedInjectables.has(token)) { return this.interceptedInjectables.get(token) } if (this.hasInterceptors(token)) { const raw = getRawProviderSomehow(token) const interceptors = this.getInterceptors(token) const res = interceptors.reduce( (previousInstance, currentProvider) =&gt; instantiateSomehow(currentProvider, previousInstance), raw) this.interceptedInjectables.set(token, res) return res } // original logic } }"><pre class="notranslate"><span class="pl-c">// Didn't consider `multi: true` yet</span> <span class="pl-k">class</span> <span class="pl-smi">Injector_</span> <span class="pl-kos">{</span> <span class="pl-k">private</span> <span class="pl-c1">interceptedInjectables</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Map</span><span class="pl-kos">&lt;</span><span class="pl-c">/*token*/</span><span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-c">/*instance*/</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">private</span> <span class="pl-c1">providerInterceptors</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Map</span><span class="pl-kos">&lt;</span><span class="pl-c">/*token*/</span><span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-c">/*interceptors*/</span><span class="pl-smi">Provider</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-en">hasInterceptors</span><span class="pl-kos">(</span><span class="pl-s1">token</span>: <span class="pl-smi">any</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-c1">providerInterceptors</span><span class="pl-kos">.</span><span class="pl-en">has</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">hasLocalProvider</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">)</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">parent</span><span class="pl-kos">.</span><span class="pl-en">hasInterceptors</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-en">getInterceptors</span><span class="pl-kos">(</span><span class="pl-s1">token</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">[</span>...<span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">hasLocalProvider</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">)</span> ? <span class="pl-kos">[</span><span class="pl-kos">]</span> : <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">parent</span><span class="pl-kos">.</span><span class="pl-en">getInterceptors</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">providerInterceptors</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">)</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">token</span>: <span class="pl-smi">any</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">interceptedInjectables</span><span class="pl-kos">.</span><span class="pl-en">has</span><span class="pl-kos">(</span><span class="pl-s1">token</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-c1">interceptedInjectables</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">token</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-smi">this</span><span class="pl-kos">.</span><span class="pl-en">hasInterceptors</span><span class="pl-kos">(</span><span class="pl-s1">token</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">raw</span> <span class="pl-c1">=</span> <span class="pl-en">getRawProviderSomehow</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">interceptors</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">getInterceptors</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">interceptors</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span> <span class="pl-kos">(</span><span class="pl-s1">previousInstance</span><span class="pl-kos">,</span> <span class="pl-s1">currentProvider</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">instantiateSomehow</span><span class="pl-kos">(</span><span class="pl-s1">currentProvider</span><span class="pl-kos">,</span> <span class="pl-s1">previousInstance</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">raw</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">interceptedInjectables</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">token</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">res</span> <span class="pl-kos">}</span> <span class="pl-c">// original logic</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>For performance consideration (static ones):</strong></p> <ul dir="auto"> <li>To get rid of mapping, the <code class="notranslate">interceptors</code> slot should be directly added to <code class="notranslate">providerDef</code> instance via <code class="notranslate">Compiler</code>;</li> <li>If an injector has only <strong>provider interceptor</strong> but not <strong>concrete provider</strong>, use a <code class="notranslate">providerDef</code> with value of special symbol <code class="notranslate">NO_VALUE</code> to ship <code class="notranslate">interceptors</code>;</li> </ul> <p dir="auto"><strong>Tree-shakable consideration (static ones):</strong></p> <p dir="auto">Extend <code class="notranslate">@Inject()</code> decorator to accept an additional optional parameter:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ /*...*/ }) class MyComponent { constructor( @Inject(HttpClient, logRequest) http: HttpClient ) {} } // makeParamDecorator('Inject', (token: any, ...interceptors: any[]) =&gt; ({token, interceptors}))"><pre class="notranslate">@<span class="pl-smi">Component</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-k">class</span> <span class="pl-smi">MyComponent</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span> @<span class="pl-smi">Inject</span><span class="pl-kos">(</span><span class="pl-smi">HttpClient</span><span class="pl-kos">,</span> <span class="pl-s1">logRequest</span><span class="pl-kos">)</span> <span class="pl-s1">http</span>: <span class="pl-smi">HttpClient</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">// makeParamDecorator('Inject', (token: any, ...interceptors: any[]) =&gt; ({token, interceptors}))</span></pre></div> <p dir="auto">Or introduce a new decorator:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ /*...*/ }) class MyComponent { constructor( @Intercept(logRequest) http: HttpClient ) {} } // makeParamDecorator('Intercept', (...interceptors: any[]) =&gt; ({interceptors}))"><pre class="notranslate">@<span class="pl-smi">Component</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-k">class</span> <span class="pl-smi">MyComponent</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span> @<span class="pl-smi">Intercept</span><span class="pl-kos">(</span><span class="pl-s1">logRequest</span><span class="pl-kos">)</span> <span class="pl-s1">http</span>: <span class="pl-smi">HttpClient</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">// makeParamDecorator('Intercept', (...interceptors: any[]) =&gt; ({interceptors}))</span></pre></div> <p dir="auto">Child injectors should not be affected in this way.</p> <h2 dir="auto">Minimal reproduction of the problem with instructions</h2> <p dir="auto">Could go to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="209202050" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/14620" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/14620/hovercard" href="https://github.com/angular/angular/issues/14620">#14620</a> for repro of current behavior.</p> <h2 dir="auto">What is the motivation / use case for changing the behavior?</h2> <p dir="auto"><del>Provide a demo of how to raise concrete feature request</del></p> <p dir="auto">Make the DI mechanism more powerful and useful.</p> <h2 dir="auto">Environment</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Angular version: X.Y.Z Browser: - [ ] Chrome (desktop) version XX - [ ] Chrome (Android) version XX - [ ] Chrome (iOS) version XX - [ ] Firefox version XX - [ ] Safari (desktop) version XX - [ ] Safari (iOS) version XX - [ ] IE version XX - [ ] Edge version XX For Tooling issues: - Node version: XX - Platform: Others: "><pre class="notranslate"><code class="notranslate"> Angular version: X.Y.Z Browser: - [ ] Chrome (desktop) version XX - [ ] Chrome (Android) version XX - [ ] Chrome (iOS) version XX - [ ] Firefox version XX - [ ] Safari (desktop) version XX - [ ] Safari (iOS) version XX - [ ] IE version XX - [ ] Edge version XX For Tooling issues: - Node version: XX - Platform: Others: </code></pre></div>
1
<h2 dir="auto">Bug</h2> <h3 dir="auto">Input Code</h3> <p dir="auto"><a href="http://babeljs.io/repl/#?babili=false&amp;evaluate=true&amp;lineWrap=false&amp;presets=es2015%2Creact%2Cstage-2&amp;targets=&amp;browsers=&amp;builtIns=false&amp;debug=false&amp;code=function%20delay(time)%20%7B%0A%20%20return%20new%20Promise((resolve%2C%20reject)%3D%3E%7B%0A%20%20%20%20setTimeout(()%3D%3Eresolve()%2C%20time)%3B%0A%20%20%7D)%3B%0A%7D%0A%0A%5B1000%2C2000%2C3000%2C4000%5D.forEach(async%20(time)%20%3D%3E%20%7B%0A%20%20await%20delay(time)%3B%0A%20%20console.log(time)%3B%0A%7D)%0A%0Aconsole.log(%5B100000%5D)%0A" rel="nofollow">REPL LINK</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function delay(time) { return new Promise((resolve, reject)=&gt;{ setTimeout(()=&gt;resolve(), time); }); } [1000,2000,3000,4000].forEach(async (time) =&gt; { await delay(time); console.log(time); }) console.log([100000])"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">delay</span><span class="pl-kos">(</span><span class="pl-s1">time</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-kos">{</span> <span class="pl-en">setTimeout</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</span><span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">time</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-c1">1000</span><span class="pl-kos">,</span><span class="pl-c1">2000</span><span class="pl-kos">,</span><span class="pl-c1">3000</span><span class="pl-kos">,</span><span class="pl-c1">4000</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">time</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-en">delay</span><span class="pl-kos">(</span><span class="pl-s1">time</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">time</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">100000</span><span class="pl-kos">]</span><span class="pl-kos">)</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Output:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Array [100000] // at 0s 1000 // at 1s 2000 // at 2s 3000 // at 3s 4000 // at 4s"><pre class="notranslate"><span class="pl-v">Array</span> <span class="pl-kos">[</span><span class="pl-c1">100000</span><span class="pl-kos">]</span> <span class="pl-c">// at 0s</span> <span class="pl-c1">1000</span> <span class="pl-c">// at 1s</span> <span class="pl-c1">2000</span> <span class="pl-c">// at 2s</span> <span class="pl-c1">3000</span> <span class="pl-c">// at 3s</span> <span class="pl-c1">4000</span> <span class="pl-c">// at 4s</span></pre></div> <blockquote> <p dir="auto">And the Chrome newest version just act like this.</p> </blockquote> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Output:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// at 0s Array [100000] // at 1s Array [100000] 1000 // at 2s Array [100000] 1000 2000 // at 3s Array [100000] 1000 2000 3000 // at 4s Array [100000] 1000 2000 3000 4000"><pre class="notranslate"><span class="pl-c">// at 0s</span> <span class="pl-v">Array</span> <span class="pl-kos">[</span><span class="pl-c1">100000</span><span class="pl-kos">]</span> <span class="pl-c">// at 1s</span> <span class="pl-v">Array</span> <span class="pl-kos">[</span><span class="pl-c1">100000</span><span class="pl-kos">]</span> <span class="pl-c1">1000</span> <span class="pl-c">// at 2s</span> <span class="pl-v">Array</span> <span class="pl-kos">[</span><span class="pl-c1">100000</span><span class="pl-kos">]</span> <span class="pl-c1">1000</span> <span class="pl-c1">2000</span> <span class="pl-c">// at 3s</span> <span class="pl-v">Array</span> <span class="pl-kos">[</span><span class="pl-c1">100000</span><span class="pl-kos">]</span> <span class="pl-c1">1000</span> <span class="pl-c1">2000</span> <span class="pl-c1">3000</span> <span class="pl-c">// at 4s</span> <span class="pl-v">Array</span> <span class="pl-kos">[</span><span class="pl-c1">100000</span><span class="pl-kos">]</span> <span class="pl-c1">1000</span> <span class="pl-c1">2000</span> <span class="pl-c1">3000</span> <span class="pl-c1">4000</span></pre></div> <blockquote> <p dir="auto">I thought the problem is at the function <code class="notranslate">_asyncToGenerator</code>.</p> </blockquote>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> using decorators with stage-0 doesn't work as before; no mix of syntax-decorators and decoratorsBefore or legacy works;<br> throws mix of errors like legacy true and/or decoratorsBeforeExport true/false required<br> see duplicate code throughout babel handling decorators, all start with <code class="notranslate">var decoratorsBeforeExport =</code> followed by this bizarre throw sequence of checks:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var decoratorsBeforeExport = .... if( ... null throw ... Error other cases... throw Error(s)"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">decoratorsBeforeExport</span> <span class="pl-c1">=</span> ...<span class="pl-kos">.</span> <span class="pl-k">if</span><span class="pl-kos">(</span> ... <span class="pl-s1">null</span> <span class="pl-s1">throw</span> ... <span class="pl-v">Error</span> <span class="pl-s1">other</span> <span class="pl-s1">cases</span><span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span> <span class="pl-c1">throw</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s1">s</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>Input Code</strong></p> <ul dir="auto"> <li>REPL or Repo link if applicable:</li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Thing export default class Stuff extends Extensible"><pre class="notranslate">@<span class="pl-v">Thing</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">class</span> <span class="pl-v">Stuff</span> <span class="pl-k">extends</span> <span class="pl-v">Extensible</span></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> A clear and concise description of what you expected to happen (or code).</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="various combinations of: { presets: [&quot;stage-0&quot;,&quot;react&quot;] ,plugins: [[&quot;syntax-decorators&quot;, {&quot;legacy&quot;:true, &quot;decoratorsBeforeExport&quot;:true}]] }"><pre class="notranslate">various <span class="pl-s1">combinations</span> <span class="pl-k">of</span>: <span class="pl-kos">{</span> <span class="pl-c1">presets</span>: <span class="pl-kos">[</span><span class="pl-s">"stage-0"</span><span class="pl-kos">,</span><span class="pl-s">"react"</span><span class="pl-kos">]</span> <span class="pl-kos">,</span><span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-s">"syntax-decorators"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-s">"legacy"</span>:<span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"decoratorsBeforeExport"</span>:<span class="pl-c1">true</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version 7.0.0</li> <li>How you are using Babel: web browser</li> </ul> <p dir="auto"><strong>Possible Solution</strong><br> handle decorators in one place, comment in code how to properly set the options so that the old stage-0 legacy behavior (sample above) works as before</p> <p dir="auto"><strong>Additional context/Screenshots</strong><br> context: all the projects with this old approach</p>
0
<p dir="auto">ElasticSearch 1.7.0, 5 nodes, each running in a docker container.</p> <p dir="auto">Got the following exception during a bulk index operation</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2015-07-30 13:29:05,558][WARN ][action.bulk ] [duvel-elasticsearch_3] unexpected error during the primary phase for action [indices:data/write/bulk[s]] java.lang.NullPointerException at org.elasticsearch.action.bulk.TransportShardBulkAction.shards(TransportShardBulkAction.java:128) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase.doRun(TransportShardReplicationOperationAction.java:354) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction.doExecute(TransportShardReplicationOperationAction.java:112) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction.doExecute(TransportShardReplicationOperationAction.java:74) at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:75) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$OperationTransportHandler.messageReceived(TransportShardReplicationOperationAction.java:207) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$OperationTransportHandler.messageReceived(TransportShardReplicationOperationAction.java:189) at org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:222) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:114) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) 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">[2015-07-30 13:29:05,558][WARN ][action.bulk ] [duvel-elasticsearch_3] unexpected error during the primary phase for action [indices:data/write/bulk[s]] java.lang.NullPointerException at org.elasticsearch.action.bulk.TransportShardBulkAction.shards(TransportShardBulkAction.java:128) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase.doRun(TransportShardReplicationOperationAction.java:354) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction.doExecute(TransportShardReplicationOperationAction.java:112) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction.doExecute(TransportShardReplicationOperationAction.java:74) at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:75) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$OperationTransportHandler.messageReceived(TransportShardReplicationOperationAction.java:207) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$OperationTransportHandler.messageReceived(TransportShardReplicationOperationAction.java:189) at org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:222) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:114) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) 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">Any following bulk operation returns a <code class="notranslate">IndexMissingException</code> error</p> <p dir="auto">In case that help, here is an extract of the returned message of the first error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;index&quot;: { &quot;_index&quot;: &quot;ads&quot;, &quot;_type&quot;: &quot;ads&quot;, &quot;_id&quot;: &quot;bdi-190-1901&quot;, &quot;status&quot;: 500, &quot;error&quot;: &quot;RemoteTransportException[[duvel-elasticsearch_3][inet[/172.17.4.62:9302]][indices:data/write/bulk[s]]]; nested: NullPointerException; &quot; }, &quot;bulkCommand&quot;: { &quot;operation&quot;: { &quot;index&quot;: { &quot;_index&quot;: &quot;ads&quot;, &quot;_type&quot;: &quot;ads&quot;, &quot;_id&quot;: &quot;bdi-190-1901&quot; } }, &quot;data&quot;: { &quot;some data&quot;: &quot;...&quot; } } }"><pre class="notranslate"><code class="notranslate">{ "index": { "_index": "ads", "_type": "ads", "_id": "bdi-190-1901", "status": 500, "error": "RemoteTransportException[[duvel-elasticsearch_3][inet[/172.17.4.62:9302]][indices:data/write/bulk[s]]]; nested: NullPointerException; " }, "bulkCommand": { "operation": { "index": { "_index": "ads", "_type": "ads", "_id": "bdi-190-1901" } }, "data": { "some data": "..." } } } </code></pre></div> <p dir="auto">This may be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="88425719" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/11671" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/11671/hovercard" href="https://github.com/elastic/elasticsearch/issues/11671">#11671</a></p>
<p dir="auto">I have an Elasticsearch engine running on my Macbook and it is crashing randomly, even when in idle mode. Below please find the error log. (This is my first time posting here so apologies if I included more/less info than required)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0x0000000125b14d1c, pid=36072, tid=58371 JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13) Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode bsd-amd64 compressed oops) Problematic frame: C [libnet.dylib+0x9d1c] Java_java_net_SocketInputStream_socketRead0+0x23d Core dump written. Default location: /cores/core or core.36072 If you would like to submit a bug report, please visit: http://bugreport.sun.com/bugreport/crash.jsp The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug. --------------- T H R E A D --------------- Current thread (0x00007fcf1a22d000): JavaThread &quot;elasticsearch[Arides][keep_alive]&quot; daemon [_thread_in_native, id=58371, stack(0x000000012cfce000,0x000000012d0ce000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000f1a22d1e0 Registers: RAX=0x000000000000019d, RBX=0x000000012d0bce60, RCX=0x0000000000000000, RDX=0x0000000125b3ca40 RSP=0x000000012d0bce50, RBP=0x000000012d0cce90, RSI=0x0000080000000800, RDI=0x0000070000000803 R8 =0x000000012d0bcdb0, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x0000000000000246 R12=0x000000000000019d, R13=0x0000000000002000, R14=0x0000000f1a22d1e0, R15=0x000000000000ea60 RIP=0x0000000125b14d1c, EFLAGS=0x0000000000010202, ERR=0x0000000000000004 TRAPNO=0x000000000000000e Top of Stack: (sp=0x000000012d0bce50) 0x000000012d0bce50: 000000012d0cceb8 000000008a02db4e 0x000000012d0bce60: 312e312f50545448 0d4b4f2030303220 0x000000012d0bce70: 746e65746e6f430a 61203a657079542d 0x000000012d0bce80: 69746163696c7070 3b6e6f736a2f6e6f 0x000000012d0bce90: 7465737261686320 0a0d382d4654553d 0x000000012d0bcea0: 2d746e65746e6f43 203a6874676e654c 0x000000012d0bceb0: 7b0a0d0a0d363233 746174732220200a 0x000000012d0bcec0: 3032203a20227375 616e2220200a2c30 0x000000012d0bced0: 4122203a2022656d 0a2c227365646972 0x000000012d0bcee0: 7473756c63222020 22656d616e5f7265 0x000000012d0bcef0: 7069727422203a20 762220200a2c2278 0x000000012d0bcf00: 20226e6f69737265 202020200a7b203a 0x000000012d0bcf10: 227265626d756e22 2e352e3122203a20 0x000000012d0bcf20: 202020200a2c2232 685f646c69756222 0x000000012d0bcf30: 22203a2022687361 3836383966663236 0x000000012d0bcf40: 3463306138633462 6262656230363835 0x000000012d0bcf50: 3839313265393532 6331626138373730 0x000000012d0bcf60: 22202020200a2c22 69745f646c697562 0x000000012d0bcf70: 22706d617473656d 3531303222203a20 0x000000012d0bcf80: 305437322d34302d 5a36303a31323a39 0x000000012d0bcf90: 22202020200a2c22 6e735f646c697562 0x000000012d0bcfa0: 2022746f68737061 2c65736c6166203a 0x000000012d0bcfb0: 756c22202020200a 7265765f656e6563 0x000000012d0bcfc0: 203a20226e6f6973 22342e30312e3422 0x000000012d0bcfd0: 20200a2c7d20200a 656e696c67617422 0x000000012d0bcfe0: 756f5922203a2022 66202c776f6e4b20 0x000000012d0bcff0: 637261655320726f 6331620a7d0a2268 0x000000012d0bd000: 222020202e7a4f30 69745f646c697562 0x000000012d0bd010: 22706d617473656d 3531303222203a20 0x000000012d0bd020: 305437322d34302d 5a36303a22a60048 0x000000012d0bd030: 222020202c7ce1d0 6e735f6422c4f320 0x000000012d0bd040: 2022746f22a5ffc8 2c65736c2c7cc090 Instructions: (pc=0x0000000125b14d1c) 0x0000000125b14cfc: 48 8d 35 a5 35 00 00 48 8d 15 f7 36 00 00 eb e6 0x0000000125b14d0c: 48 8d 35 e3 3a 00 00 48 8d 15 00 3f 00 00 eb d6 0x0000000125b14d1c: 49 8b 06 4c 89 f7 48 8b b5 c0 ff fe ff 8b 95 cc 0x0000000125b14d2c: ff fe ff 44 89 e1 49 89 d8 ff 90 80 06 00 00 48 Register to memory mapping: RAX=0x000000000000019d is an unknown value RBX=0x000000012d0bce60 is pointing into the stack for thread: 0x00007fcf1a22d000 RCX=0x0000000000000000 is an unknown value RDX=0x0000000125b3ca40 is an unknown value RSP=0x000000012d0bce50 is pointing into the stack for thread: 0x00007fcf1a22d000 RBP=0x000000012d0cce90 is pointing into the stack for thread: 0x00007fcf1a22d000 RSI=0x0000080000000800 is an unknown value RDI=0x0000070000000803 is an unknown value R8 =0x000000012d0bcdb0 is pointing into the stack for thread: 0x00007fcf1a22d000 R9 =0x0000000000000000 is an unknown value R10=0x0000000000000000 is an unknown value R11=0x0000000000000246 is an unknown value R12=0x000000000000019d is an unknown value R13=0x0000000000002000 is an unknown value R14=0x0000000f1a22d1e0 is an unknown value R15=0x000000000000ea60 is an unknown value Stack: [0x000000012cfce000,0x000000012d0ce000], sp=0x000000012d0bce50, free space=955k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libnet.dylib+0x9d1c] Java_java_net_SocketInputStream_socketRead0+0x23d J 9529 java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I (0 bytes) @ 0x00000001105318e1 [0x0000000110531800+0xe1] J 9528 C1 java.net.SocketInputStream.read([BIII)I (290 bytes) @ 0x0000000110540e24 [0x00000001105408c0+0x564] J 9311 C1 java.net.SocketInputStream.read([BII)I (15 bytes) @ 0x000000011041067c [0x00000001104105c0+0xbc] J 8997 C1 java.io.BufferedInputStream.fill()V (233 bytes) @ 0x00000001102b7c0c [0x00000001102b7580+0x68c] J 24 C1 java.io.BufferedInputStream.read1([BII)I (108 bytes) @ 0x000000010ebd612c [0x000000010ebd5f60+0x1cc] J 23 C1 java.io.BufferedInputStream.read([BII)I (113 bytes) @ 0x000000010ebd4fec [0x000000010ebd4d60+0x28c] J 9668 C1 sun.net.www.http.HttpClient.parseHTTPHeader(Lsun/net/www/MessageHeader;Lsun/net/ProgressSource;Lsun/net/www/protocol/http/HttpURLConnection;)Z (944 bytes) @ 0x000000010fcbcdf4 [0x000000010fcbcb60+0x294] J 9497 C1 sun.net.www.http.HttpClient.parseHTTP(Lsun/net/www/MessageHeader;Lsun/net/ProgressSource;Lsun/net/www/protocol/http/HttpURLConnection;)Z (188 bytes) @ 0x0000000110518a64 [0x0000000110518740+0x324] J 8319 C1 sun.net.www.protocol.http.HttpURLConnection.getInputStream0()Ljava/io/InputStream; (2019 bytes) @ 0x0000000110077c0c [0x0000000110076d40+0xecc] J 8151 C1 sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/InputStream; (56 bytes) @ 0x000000010f8aa4e4 [0x000000010f8a9fe0+0x504] j org.elasticsearch.marvel.agent.exporter.ESExporter$ConnectionKeepAliveWorker.run()V+120 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [libjvm.dylib+0x2c5186] V [libjvm.dylib+0x2c5914] V [libjvm.dylib+0x2c5ac0] V [libjvm.dylib+0x3152a7] V [libjvm.dylib+0x51ccf5] V [libjvm.dylib+0x51e432] V [libjvm.dylib+0x445426] C [libsystem_pthread.dylib+0x3268] _pthread_body+0x83 C [libsystem_pthread.dylib+0x31e5] _pthread_body+0x0 C [libsystem_pthread.dylib+0x141d] thread_start+0xd Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J 9529 java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I (0 bytes) @ 0x0000000110531867 [0x0000000110531800+0x67] J 9528 C1 java.net.SocketInputStream.read([BIII)I (290 bytes) @ 0x0000000110540e24 [0x00000001105408c0+0x564] J 9311 C1 java.net.SocketInputStream.read([BII)I (15 bytes) @ 0x000000011041067c [0x00000001104105c0+0xbc] J 8997 C1 java.io.BufferedInputStream.fill()V (233 bytes) @ 0x00000001102b7c0c [0x00000001102b7580+0x68c] J 24 C1 java.io.BufferedInputStream.read1([BII)I (108 bytes) @ 0x000000010ebd612c [0x000000010ebd5f60+0x1cc] J 23 C1 java.io.BufferedInputStream.read([BII)I (113 bytes) @ 0x000000010ebd4fec [0x000000010ebd4d60+0x28c] J 9668 C1 sun.net.www.http.HttpClient.parseHTTPHeader(Lsun/net/www/MessageHeader;Lsun/net/ProgressSource;Lsun/net/www/protocol/http/HttpURLConnection;)Z (944 bytes) @ 0x000000010fcbcdf4 [0x000000010fcbcb60+0x294] J 9497 C1 sun.net.www.http.HttpClient.parseHTTP(Lsun/net/www/MessageHeader;Lsun/net/ProgressSource;Lsun/net/www/protocol/http/HttpURLConnection;)Z (188 bytes) @ 0x0000000110518a64 [0x0000000110518740+0x324] J 8319 C1 sun.net.www.protocol.http.HttpURLConnection.getInputStream0()Ljava/io/InputStream; (2019 bytes) @ 0x0000000110077c0c [0x0000000110076d40+0xecc] J 8151 C1 sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/InputStream; (56 bytes) @ 0x000000010f8aa4e4 [0x000000010f8a9fe0+0x504] j org.elasticsearch.marvel.agent.exporter.ESExporter$ConnectionKeepAliveWorker.run()V+120 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( =&gt; current thread ) 0x00007fcf144dd800 JavaThread &quot;elasticsearch[Arides][merge][T#1]&quot; daemon [_thread_blocked, id=45355, stack(0x0000000127bed000,0x0000000127ced000)] 0x00007fcf1a237800 JavaThread &quot;elasticsearch[Arides][bulk][T#8]&quot; daemon [_thread_blocked, id=67075, stack(0x000000012e248000,0x000000012e348000)] 0x00007fcf1b0b1800 JavaThread &quot;elasticsearch[Arides][bulk][T#7]&quot; daemon [_thread_blocked, id=66563, stack(0x000000012d955000,0x000000012da55000)] 0x00007fcf1a149800 JavaThread &quot;elasticsearch[Arides][bulk][T#6]&quot; daemon [_thread_blocked, id=65547, stack(0x000000012d852000,0x000000012d952000)] 0x00007fcf1a808000 JavaThread &quot;elasticsearch[Arides][bulk][T#5]&quot; daemon [_thread_blocked, id=66055, stack(0x000000012d2d7000,0x000000012d3d7000)] 0x00007fcf14be1000 JavaThread &quot;elasticsearch[Arides][flush][T#1]&quot; daemon [_thread_blocked, id=64523, stack(0x000000012af4e000,0x000000012b04e000)] 0x00007fcf150e2000 JavaThread &quot;elasticsearch[Arides][bulk][T#4]&quot; daemon [_thread_in_Java, id=65031, stack(0x000000012cd65000,0x000000012ce65000)] 0x00007fcf19836800 JavaThread &quot;elasticsearch[Arides][bulk][T#3]&quot; daemon [_thread_blocked, id=64003, stack(0x000000012d5dd000,0x000000012d6dd000)] 0x00007fcf18802000 JavaThread &quot;elasticsearch[Arides][listener][T#4]&quot; daemon [_thread_blocked, id=63491, stack(0x000000012ddb0000,0x000000012deb0000)] 0x00007fcf16185000 JavaThread &quot;elasticsearch[Arides][management][T#5]&quot; daemon [_thread_blocked, id=62979, stack(0x000000012dcad000,0x000000012ddad000)] 0x00007fcf14627000 JavaThread &quot;elasticsearch[Arides][management][T#4]&quot; daemon [_thread_blocked, id=62467, stack(0x000000012dbaa000,0x000000012dcaa000)] 0x00007fcf188c9800 JavaThread &quot;elasticsearch[Arides][management][T#3]&quot; daemon [_thread_blocked, id=61955, stack(0x000000012daa7000,0x000000012dba7000)] 0x00007fcf19c7a000 JavaThread &quot;elasticsearch[Arides][management][T#2]&quot; daemon [_thread_blocked, id=61443, stack(0x000000012d74f000,0x000000012d84f000)] 0x00007fcf172cd800 JavaThread &quot;elasticsearch[Arides][bulk][T#2]&quot; daemon [_thread_blocked, id=60931, stack(0x000000012d1d4000,0x000000012d2d4000)] 0x00007fcf170d1800 JavaThread &quot;elasticsearch[Arides][refresh][T#1]&quot; daemon [_thread_blocked, id=60419, stack(0x000000012ad3b000,0x000000012ae3b000)] 0x00007fcf19b56000 JavaThread &quot;elasticsearch[Arides][listener][T#3]&quot; daemon [_thread_blocked, id=59907, stack(0x000000012d0d1000,0x000000012d1d1000)] 0x00007fcf19bb7000 JavaThread &quot;elasticsearch[Arides][bulk][T#1]&quot; daemon [_thread_blocked, id=59395, stack(0x000000012c9a9000,0x000000012caa9000)] 0x00007fcf171ef800 JavaThread &quot;elasticsearch[Arides][listener][T#2]&quot; daemon [_thread_blocked, id=58883, stack(0x00000001269d1000,0x0000000126ad1000)] =&gt;0x00007fcf1a22d000 JavaThread &quot;elasticsearch[Arides][keep_alive]&quot; daemon [_thread_in_native, id=58371, stack(0x000000012cfce000,0x000000012d0ce000)] 0x00007fcf139dc800 JavaThread &quot;Keep-Alive-Timer&quot; daemon [_thread_blocked, id=57355, stack(0x000000012cecb000,0x000000012cfcb000)] 0x00007fcf1787d000 JavaThread &quot;elasticsearch[Arides][listener][T#1]&quot; daemon [_thread_blocked, id=57863, stack(0x000000012cc62000,0x000000012cd62000)] 0x00007fcf14b4c000 JavaThread &quot;elasticsearch[Arides][warmer][T#1]&quot; daemon [_thread_blocked, id=56835, stack(0x000000012a796000,0x000000012a896000)] 0x00007fcf18969800 JavaThread &quot;DestroyJavaVM&quot; [_thread_blocked, id=3847, stack(0x000000010ca7e000,0x000000010cb7e000)] 0x00007fcf14dc9800 JavaThread &quot;elasticsearch[keepAlive/1.5.2]&quot; [_thread_blocked, id=55811, stack(0x000000012ae4b000,0x000000012af4b000)] 0x00007fcf18917800 JavaThread &quot;elasticsearch[Arides][http_server_boss][T#1]{New I/O server boss #51}&quot; daemon [_thread_in_native, id=55299, stack(0x000000012c2a6000,0x000000012c3a6000)] 0x00007fcf18917000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#16]{New I/O worker #50}&quot; daemon [_thread_in_native, id=54787, stack(0x000000012c1a3000,0x000000012c2a3000)] 0x00007fcf13d9c000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#15]{New I/O worker #49}&quot; daemon [_thread_in_native, id=54275, stack(0x000000012c0a0000,0x000000012c1a0000)] 0x00007fcf18b09000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#14]{New I/O worker #48}&quot; daemon [_thread_in_native, id=53763, stack(0x000000012bf9d000,0x000000012c09d000)] 0x00007fcf18131800 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#13]{New I/O worker #47}&quot; daemon [_thread_in_native, id=53251, stack(0x000000012be9a000,0x000000012bf9a000)] 0x00007fcf13d9b800 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#12]{New I/O worker #46}&quot; daemon [_thread_in_native, id=52739, stack(0x000000012bd97000,0x000000012be97000)] 0x00007fcf18130800 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#11]{New I/O worker #45}&quot; daemon [_thread_in_native, id=52227, stack(0x000000012bc94000,0x000000012bd94000)] 0x00007fcf14581800 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#10]{New I/O worker #44}&quot; daemon [_thread_in_native, id=51715, stack(0x000000012bb91000,0x000000012bc91000)] 0x00007fcf13815000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#9]{New I/O worker #43}&quot; daemon [_thread_in_native, id=51203, stack(0x000000012ba8e000,0x000000012bb8e000)] 0x00007fcf18329800 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#8]{New I/O worker #42}&quot; daemon [_thread_in_native, id=50691, stack(0x000000012b98b000,0x000000012ba8b000)] 0x00007fcf18adf000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#7]{New I/O worker #41}&quot; daemon [_thread_in_native, id=50179, stack(0x000000012b888000,0x000000012b988000)] 0x00007fcf13d77000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#6]{New I/O worker #40}&quot; daemon [_thread_in_native, id=49667, stack(0x000000012b785000,0x000000012b885000)] 0x00007fcf1783e000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#5]{New I/O worker #39}&quot; daemon [_thread_in_native, id=49155, stack(0x000000012b682000,0x000000012b782000)] 0x00007fcf188b3000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#4]{New I/O worker #38}&quot; daemon [_thread_in_native, id=48643, stack(0x000000012b57f000,0x000000012b67f000)] 0x00007fcf1381b000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#3]{New I/O worker #37}&quot; daemon [_thread_in_native, id=48131, stack(0x000000012b47c000,0x000000012b57c000)] 0x00007fcf13813000 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#2]{New I/O worker #36}&quot; daemon [_thread_in_native, id=47619, stack(0x000000012b1be000,0x000000012b2be000)] 0x00007fcf14a1d800 JavaThread &quot;elasticsearch[Arides][http_server_worker][T#1]{New I/O worker #35}&quot; daemon [_thread_in_native, id=17159, stack(0x000000012b0bb000,0x000000012b1bb000)] 0x00007fcf1456f000 JavaThread &quot;elasticsearch[Arides][management][T#1]&quot; daemon [_thread_blocked, id=17671, stack(0x00000001278eb000,0x00000001279eb000)] 0x00007fcf1456c000 JavaThread &quot;elasticsearch[Arides][riverClusterService#updateTask][T#1]&quot; daemon [_thread_blocked, id=16139, stack(0x00000001237a6000,0x00000001238a6000)] 0x00007fcf17828800 JavaThread &quot;elasticsearch[Arides][transport_client_timer][T#1]{Hashed wheel timer #1}&quot; daemon [_thread_blocked, id=45827, stack(0x0000000127cf0000,0x0000000127df0000)] 0x00007fcf1783d000 JavaThread &quot;elasticsearch[Arides][generic][T#1]&quot; daemon [_thread_blocked, id=44803, stack(0x0000000127586000,0x0000000127686000)] 0x00007fcf1838d000 JavaThread &quot;elasticsearch[Arides][clusterService#updateTask][T#1]&quot; daemon [_thread_blocked, id=44291, stack(0x0000000127483000,0x0000000127583000)] 0x00007fcf151c1000 JavaThread &quot;elasticsearch[#shared#][discovery#multicast#receiver][T#1]&quot; daemon [_thread_in_native, id=43779, stack(0x00000001266ba000,0x00000001267ba000)] 0x00007fcf144e1000 JavaThread &quot;elasticsearch[Arides][[http_server_boss.default]][T#1]{New I/O server boss #34}&quot; daemon [_thread_in_native, id=43267, stack(0x000000012a28d000,0x000000012a38d000)] 0x00007fcf168f7800 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#16]{New I/O worker #33}&quot; daemon [_thread_in_native, id=42755, stack(0x000000012a18a000,0x000000012a28a000)] 0x00007fcf168f4800 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#15]{New I/O worker #32}&quot; daemon [_thread_in_native, id=42243, stack(0x000000012a087000,0x000000012a187000)] 0x00007fcf169d6000 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#14]{New I/O worker #31}&quot; daemon [_thread_in_native, id=41731, stack(0x0000000129f84000,0x000000012a084000)] 0x00007fcf168f2000 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#13]{New I/O worker #30}&quot; daemon [_thread_in_native, id=41219, stack(0x0000000129e81000,0x0000000129f81000)] 0x00007fcf168ed800 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#12]{New I/O worker #29}&quot; daemon [_thread_in_native, id=40707, stack(0x0000000129d7e000,0x0000000129e7e000)] 0x00007fcf17109800 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#11]{New I/O worker #28}&quot; daemon [_thread_in_native, id=40195, stack(0x0000000129c7b000,0x0000000129d7b000)] 0x00007fcf17032800 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#10]{New I/O worker #27}&quot; daemon [_thread_in_native, id=39683, stack(0x0000000129b78000,0x0000000129c78000)] 0x00007fcf17063800 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#9]{New I/O worker #26}&quot; daemon [_thread_in_native, id=39171, stack(0x0000000129a75000,0x0000000129b75000)] 0x00007fcf170a8800 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#8]{New I/O worker #25}&quot; daemon [_thread_in_native, id=38659, stack(0x0000000129972000,0x0000000129a72000)] 0x00007fcf16249800 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#7]{New I/O worker #24}&quot; daemon [_thread_in_native, id=38147, stack(0x000000012986f000,0x000000012996f000)] 0x00007fcf16247000 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#6]{New I/O worker #23}&quot; daemon [_thread_in_native, id=37635, stack(0x000000012976c000,0x000000012986c000)] 0x00007fcf168eb000 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#5]{New I/O worker #22}&quot; daemon [_thread_in_native, id=37123, stack(0x0000000129669000,0x0000000129769000)] 0x00007fcf16949000 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#4]{New I/O worker #21}&quot; daemon [_thread_in_native, id=36611, stack(0x0000000127aea000,0x0000000127bea000)] 0x00007fcf16948000 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#3]{New I/O worker #20}&quot; daemon [_thread_in_native, id=36099, stack(0x000000012680c000,0x000000012690c000)] 0x00007fcf14aeb000 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#2]{New I/O worker #19}&quot; daemon [_thread_in_native, id=35587, stack(0x0000000125d13000,0x0000000125e13000)] 0x00007fcf14aea000 JavaThread &quot;elasticsearch[Arides][[http_server_worker.default]][T#1]{New I/O worker #18}&quot; daemon [_thread_in_native, id=35075, stack(0x0000000125b6e000,0x0000000125c6e000)] 0x00007fcf13947000 JavaThread &quot;elasticsearch[Arides][transport_client_boss][T#1]{New I/O boss #17}&quot; daemon [_thread_in_native, id=34563, stack(0x0000000129566000,0x0000000129666000)] 0x00007fcf16243000 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#16]{New I/O worker #16}&quot; daemon [_thread_in_native, id=34051, stack(0x0000000129463000,0x0000000129563000)] 0x00007fcf16240800 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#15]{New I/O worker #15}&quot; daemon [_thread_in_native, id=33539, stack(0x0000000129360000,0x0000000129460000)] 0x00007fcf1623d800 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#14]{New I/O worker #14}&quot; daemon [_thread_in_native, id=33027, stack(0x000000012925d000,0x000000012935d000)] 0x00007fcf1622b000 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#13]{New I/O worker #13}&quot; daemon [_thread_in_native, id=32515, stack(0x000000012915a000,0x000000012925a000)] 0x00007fcf1611f000 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#12]{New I/O worker #12}&quot; daemon [_thread_in_native, id=32003, stack(0x0000000129057000,0x0000000129157000)] 0x00007fcf1611c800 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#11]{New I/O worker #11}&quot; daemon [_thread_in_native, id=31491, stack(0x0000000128f54000,0x0000000129054000)] 0x00007fcf16119800 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#10]{New I/O worker #10}&quot; daemon [_thread_in_native, id=30979, stack(0x0000000128e51000,0x0000000128f51000)] 0x00007fcf16117000 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#9]{New I/O worker #9}&quot; daemon [_thread_in_native, id=30467, stack(0x0000000128d4e000,0x0000000128e4e000)] 0x00007fcf160ba000 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#8]{New I/O worker #8}&quot; daemon [_thread_in_native, id=29955, stack(0x0000000128c4b000,0x0000000128d4b000)] 0x00007fcf160b9000 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#7]{New I/O worker #7}&quot; daemon [_thread_in_native, id=29443, stack(0x0000000128b48000,0x0000000128c48000)] 0x00007fcf160d8800 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#6]{New I/O worker #6}&quot; daemon [_thread_in_native, id=28931, stack(0x0000000128a45000,0x0000000128b45000)] 0x00007fcf160d8000 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#5]{New I/O worker #5}&quot; daemon [_thread_in_native, id=28419, stack(0x0000000128942000,0x0000000128a42000)] 0x00007fcf16082800 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#4]{New I/O worker #4}&quot; daemon [_thread_in_native, id=27907, stack(0x000000012883f000,0x000000012893f000)] 0x00007fcf16081800 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#3]{New I/O worker #3}&quot; daemon [_thread_in_native, id=27395, stack(0x000000012873c000,0x000000012883c000)] 0x00007fcf14302000 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#2]{New I/O worker #2}&quot; daemon [_thread_in_native, id=26883, stack(0x0000000128639000,0x0000000128739000)] 0x00007fcf14539800 JavaThread &quot;elasticsearch[Arides][transport_client_worker][T#1]{New I/O worker #1}&quot; daemon [_thread_in_native, id=26371, stack(0x00000001277e8000,0x00000001278e8000)] 0x00007fcf14d70000 JavaThread &quot;elasticsearch[Arides][[ttl_expire]]&quot; daemon [_thread_blocked, id=25859, stack(0x0000000128536000,0x0000000128636000)] 0x00007fcf168fc800 JavaThread &quot;elasticsearch[Arides][master_mapping_updater]&quot; [_thread_blocked, id=25347, stack(0x0000000128433000,0x0000000128533000)] 0x00007fcf1606f000 JavaThread &quot;elasticsearch[Arides][marvel.exporters]&quot; daemon [_thread_in_native, id=24331, stack(0x0000000128330000,0x0000000128430000)] 0x00007fcf149c7800 JavaThread &quot;elasticsearch[Arides][scheduler][T#1]&quot; daemon [_thread_blocked, id=24839, stack(0x000000012822d000,0x000000012832d000)] 0x00007fcf144c9000 JavaThread &quot;elasticsearch[Arides][[timer]]&quot; daemon [_thread_blocked, id=23811, stack(0x0000000126b2f000,0x0000000126c2f000)] 0x00007fcf15074800 JavaThread &quot;Service Thread&quot; daemon [_thread_blocked, id=22787, stack(0x0000000125692000,0x0000000125792000)] 0x00007fcf1409c000 JavaThread &quot;C1 CompilerThread3&quot; daemon [_thread_blocked, id=22275, stack(0x000000012558f000,0x000000012568f000)] 0x00007fcf1409b800 JavaThread &quot;C2 CompilerThread2&quot; daemon [_thread_blocked, id=21763, stack(0x000000012548c000,0x000000012558c000)] 0x00007fcf14808800 JavaThread &quot;C2 CompilerThread1&quot; daemon [_thread_in_native, id=21251, stack(0x0000000125389000,0x0000000125489000)] 0x00007fcf1409a800 JavaThread &quot;C2 CompilerThread0&quot; daemon [_thread_blocked, id=20739, stack(0x0000000125286000,0x0000000125386000)] 0x00007fcf1381c000 JavaThread &quot;Signal Dispatcher&quot; daemon [_thread_blocked, id=20227, stack(0x0000000125183000,0x0000000125283000)] 0x00007fcf1406a800 JavaThread &quot;Surrogate Locker Thread (Concurrent GC)&quot; daemon [_thread_blocked, id=16395, stack(0x0000000125080000,0x0000000125180000)] 0x00007fcf14069000 JavaThread &quot;Finalizer&quot; daemon [_thread_blocked, id=15107, stack(0x000000012365d000,0x000000012375d000)] 0x00007fcf14068000 JavaThread &quot;Reference Handler&quot; daemon [_thread_blocked, id=14595, stack(0x000000012355a000,0x000000012365a000)] Other Threads: 0x00007fcf14063800 VMThread [stack: 0x0000000123457000,0x0000000123557000] [id=14083] 0x00007fcf1409d000 WatcherThread [stack: 0x0000000125795000,0x0000000125895000] [id=23299] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap: par new generation total 314560K, used 191197K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 64% used [0x0000000780000000, 0x000000078afbaf80, 0x0000000791110000) from space 34944K, 32% used [0x0000000793330000, 0x0000000793e2c680, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439853K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38173K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K Card table byte_map: [0x000000011e698000,0x000000011e899000] byte_map_base: 0x000000011aa98000 Marking Bits: (CMSBitMap*) 0x00007fcf15059cc8 Bits: [0x000000011f1ef000, 0x000000011fc99c00) Mod Union Table: (CMSBitMap*) 0x00007fcf15059d88 Bits: [0x000000011fc9a000, 0x000000011fcc4ab0) Polling page: 0x000000010cbc2000 CodeCache: size=245760Kb used=28086Kb max_used=28099Kb free=217673Kb bounds [0x000000010eac0000, 0x0000000110660000, 0x000000011dac0000] total_blobs=8539 nmethods=8001 adapters=452 compilation: enabled Compilation events (10 events): Event: 673.575 Thread 0x00007fcf1409c000 nmethod 9870 0x0000000110649390 code [0x00000001106494e0, 0x00000001106495f0] Event: 674.268 Thread 0x00007fcf1409c000 9871 3 org.apache.lucene.codecs.DocValuesConsumer::&lt;init&gt; (5 bytes) Event: 674.269 Thread 0x00007fcf1409c000 nmethod 9871 0x0000000110649650 code [0x00000001106497a0, 0x0000000110649950] Event: 674.273 Thread 0x00007fcf1409b800 9872 4 org.apache.lucene.util.packed.PackedInts$Format::longCount (86 bytes) Event: 674.275 Thread 0x00007fcf1409b800 nmethod 9872 0x000000011064a8d0 code [0x000000011064aa80, 0x000000011064acd8] Event: 677.744 Thread 0x00007fcf14808800 9873 4 org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator::writeStartObject (72 bytes) Event: 677.751 Thread 0x00007fcf14808800 nmethod 9873 0x0000000110649c10 code [0x0000000110649de0, 0x000000011064a360] Event: 678.388 Thread 0x00007fcf1409c000 9874 ! 3 org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector::run (462 bytes) Event: 678.391 Thread 0x00007fcf1409c000 nmethod 9874 0x000000011064df50 code [0x000000011064e480, 0x0000000110652408] Event: 683.764 Thread 0x00007fcf14808800 9875 4 org.elasticsearch.common.bytes.ChannelBufferBytesReference::slice (19 bytes) GC Heap History (10 events): Event: 477.411 GC heap before {Heap before GC invocations=6204 (full 4): par new generation total 314560K, used 283430K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 10% used [0x0000000791110000, 0x00000007914c9a70, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439827K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38136K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K Event: 477.416 GC heap after Heap after GC invocations=6205 (full 4): par new generation total 314560K, used 8635K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 24% used [0x0000000793330000, 0x0000000793b9ef20, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439832K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38136K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K } Event: 518.575 GC heap before {Heap before GC invocations=6205 (full 4): par new generation total 314560K, used 288251K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 24% used [0x0000000793330000, 0x0000000793b9ef20, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439832K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38141K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K Event: 518.578 GC heap after Heap after GC invocations=6206 (full 4): par new generation total 314560K, used 5465K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 15% used [0x0000000791110000, 0x0000000791666628, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439837K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38141K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K } Event: 561.554 GC heap before {Heap before GC invocations=6206 (full 4): par new generation total 314560K, used 285081K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 15% used [0x0000000791110000, 0x0000000791666628, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439837K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38146K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K Event: 561.558 GC heap after Heap after GC invocations=6207 (full 4): par new generation total 314560K, used 8721K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 24% used [0x0000000793330000, 0x0000000793bb4740, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439841K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38146K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K } Event: 611.988 GC heap before {Heap before GC invocations=6207 (full 4): par new generation total 314560K, used 288337K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 24% used [0x0000000793330000, 0x0000000793bb4740, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439841K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38162K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K Event: 611.993 GC heap after Heap after GC invocations=6208 (full 4): par new generation total 314560K, used 6435K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 18% used [0x0000000791110000, 0x0000000791758dc8, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439845K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38162K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K } Event: 643.860 GC heap before {Heap before GC invocations=6208 (full 4): par new generation total 314560K, used 286051K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 18% used [0x0000000791110000, 0x0000000791758dc8, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439845K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38167K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K Event: 643.864 GC heap after Heap after GC invocations=6209 (full 4): par new generation total 314560K, used 11249K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 32% used [0x0000000793330000, 0x0000000793e2c680, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439853K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38167K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K } Deoptimization events (10 events): Event: 280.604 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001103cd174 method=org.elasticsearch.common.xcontent.XContentBuilder.field(Lorg/elasticsearch/common/xcontent/XContentBuilderString;Ljava/lang/String;)Lorg/elasticsearch/common/xcontent/XC Event: 280.604 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001103cd174 method=org.elasticsearch.common.xcontent.XContentBuilder.field(Lorg/elasticsearch/common/xcontent/XContentBuilderString;Ljava/lang/String;)Lorg/elasticsearch/common/xcontent/XC Event: 280.604 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001103cd174 method=org.elasticsearch.common.xcontent.XContentBuilder.field(Lorg/elasticsearch/common/xcontent/XContentBuilderString;Ljava/lang/String;)Lorg/elasticsearch/common/xcontent/XC Event: 280.604 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001103cd174 method=org.elasticsearch.common.xcontent.XContentBuilder.field(Lorg/elasticsearch/common/xcontent/XContentBuilderString;Ljava/lang/String;)Lorg/elasticsearch/common/xcontent/XC Event: 343.081 Thread 0x00007fcf17948000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000011044c7ac method=org.elasticsearch.index.cache.fixedbitset.FixedBitSetFilterCache$FixedBitSetFilterWarmer.warmNewReaders(Lorg/elasticsearch/index/shard/IndexShard;Lorg/elasticsearch/clus Event: 343.081 Thread 0x00007fcf17948000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000011044c7ac method=org.elasticsearch.index.cache.fixedbitset.FixedBitSetFilterCache$FixedBitSetFilterWarmer.warmNewReaders(Lorg/elasticsearch/index/shard/IndexShard;Lorg/elasticsearch/clus Event: 343.081 Thread 0x00007fcf17948000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000011044c7ac method=org.elasticsearch.index.cache.fixedbitset.FixedBitSetFilterCache$FixedBitSetFilterWarmer.warmNewReaders(Lorg/elasticsearch/index/shard/IndexShard;Lorg/elasticsearch/clus Event: 343.081 Thread 0x00007fcf17948000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000011044c7ac method=org.elasticsearch.index.cache.fixedbitset.FixedBitSetFilterCache$FixedBitSetFilterWarmer.warmNewReaders(Lorg/elasticsearch/index/shard/IndexShard;Lorg/elasticsearch/clus Event: 416.207 Thread 0x00007fcf14462800 Uncommon trap: reason=unreached action=reinterpret pc=0x00000001100623a4 method=org.apache.lucene.util.fst.ByteSequenceOutputs.add(Lorg/apache/lucene/util/BytesRef;Lorg/apache/lucene/util/BytesRef;)Lorg/apache/lucene/util/BytesRef; @ 49 Event: 425.334 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001104f7830 method=org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse.getIndices()Ljava/util/Map; @ 128 Internal exceptions (10 events): Event: 208.000 Thread 0x00007fcf14a1d800 Exception &lt;a 'java/security/PrivilegedActionException'&gt; (0x00000007815d5590) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jvm.cpp, line 1248] Event: 208.000 Thread 0x00007fcf14a1d800 Exception &lt;a 'java/security/PrivilegedActionException'&gt; (0x00000007815dcd90) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jvm.cpp, line 1248] Event: 246.542 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x000000078d6809b8) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 306.547 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x000000078459a320) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 366.551 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x000000078bfc0e30) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 426.558 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x00000007822b3fa8) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 486.562 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x00000007810b1a88) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 546.565 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x00000007885f9bb0) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 606.570 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x00000007900e5a60) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 666.577 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x0000000786dac030) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Events (10 events): Event: 683.728 Executing VM operation: RevokeBias Event: 683.728 Executing VM operation: RevokeBias done Event: 683.730 Executing VM operation: RevokeBias Event: 683.730 Executing VM operation: RevokeBias done Event: 683.765 Executing VM operation: RevokeBias Event: 683.765 Executing VM operation: RevokeBias done Event: 683.765 Executing VM operation: RevokeBias Event: 683.766 Executing VM operation: RevokeBias done Event: 683.769 Executing VM operation: RevokeBias Event: 683.769 Executing VM operation: RevokeBias done Dynamic libraries: 0x000000000925d000 /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x000000000925d000 /System/Library/Frameworks/Security.framework/Versions/A/Security 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x000000000925d000 /usr/lib/libz.1.dylib 0x000000000925d000 /usr/lib/libSystem.B.dylib 0x000000000925d000 /usr/lib/libobjc.A.dylib 0x000000000925d000 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x000000000925d000 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x000000000925d000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x000000000925d000 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x000000000925d000 /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices 0x000000000925d000 /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation 0x000000000925d000 /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface 0x000000000925d000 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x000000000925d000 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x000000000925d000 /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore 0x000000000925d000 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x000000000925d000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x000000000925d000 /usr/lib/libauto.dylib 0x000000000925d000 /usr/lib/libicucore.A.dylib 0x000000000925d000 /usr/lib/libxml2.2.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI 0x000000000925d000 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x000000000925d000 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x000000000925d000 /usr/lib/liblangid.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport 0x000000000925d000 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x000000000925d000 /usr/lib/libDiagnosticMessagesClient.dylib 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x000000000925d000 /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis 0x000000000925d000 /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x000000000925d000 /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing 0x000000000925d000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x000000000925d000 /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x000000000925d000 /usr/lib/libextension.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup 0x000000000925d000 /usr/lib/libarchive.2.dylib 0x000000000925d000 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x000000000925d000 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x000000000925d000 /usr/lib/libCRFSuite.dylib 0x000000000925d000 /usr/lib/libc++.1.dylib 0x000000000925d000 /usr/lib/libc++abi.dylib 0x000000000925d000 /usr/lib/system/libcache.dylib 0x000000000925d000 /usr/lib/system/libcommonCrypto.dylib 0x000000000925d000 /usr/lib/system/libcompiler_rt.dylib 0x000000000925d000 /usr/lib/system/libcopyfile.dylib 0x000000000925d000 /usr/lib/system/libcorecrypto.dylib 0x000000000925d000 /usr/lib/system/libdispatch.dylib 0x000000000925d000 /usr/lib/system/libdyld.dylib 0x000000000925d000 /usr/lib/system/libkeymgr.dylib 0x000000000925d000 /usr/lib/system/liblaunch.dylib 0x000000000925d000 /usr/lib/system/libmacho.dylib 0x000000000925d000 /usr/lib/system/libquarantine.dylib 0x000000000925d000 /usr/lib/system/libremovefile.dylib 0x000000000925d000 /usr/lib/system/libsystem_asl.dylib 0x000000000925d000 /usr/lib/system/libsystem_blocks.dylib 0x000000000925d000 /usr/lib/system/libsystem_c.dylib 0x000000000925d000 /usr/lib/system/libsystem_configuration.dylib 0x000000000925d000 /usr/lib/system/libsystem_coreservices.dylib 0x000000000925d000 /usr/lib/system/libsystem_coretls.dylib 0x000000000925d000 /usr/lib/system/libsystem_dnssd.dylib 0x000000000925d000 /usr/lib/system/libsystem_info.dylib 0x000000000925d000 /usr/lib/system/libsystem_kernel.dylib 0x000000000925d000 /usr/lib/system/libsystem_m.dylib 0x000000000925d000 /usr/lib/system/libsystem_malloc.dylib 0x000000000925d000 /usr/lib/system/libsystem_network.dylib 0x000000000925d000 /usr/lib/system/libsystem_networkextension.dylib 0x000000000925d000 /usr/lib/system/libsystem_notify.dylib 0x000000000925d000 /usr/lib/system/libsystem_platform.dylib 0x000000000925d000 /usr/lib/system/libsystem_pthread.dylib 0x000000000925d000 /usr/lib/system/libsystem_sandbox.dylib 0x000000000925d000 /usr/lib/system/libsystem_secinit.dylib 0x000000000925d000 /usr/lib/system/libsystem_stats.dylib 0x000000000925d000 /usr/lib/system/libsystem_trace.dylib 0x000000000925d000 /usr/lib/system/libunc.dylib 0x000000000925d000 /usr/lib/system/libunwind.dylib 0x000000000925d000 /usr/lib/system/libxpc.dylib 0x000000000925d000 /usr/lib/libbz2.1.0.dylib 0x000000000925d000 /usr/lib/liblzma.5.dylib 0x000000000925d000 /usr/lib/libbsm.0.dylib 0x000000000925d000 /usr/lib/libsqlite3.dylib 0x000000000925d000 /usr/lib/system/libkxld.dylib 0x000000000925d000 /usr/lib/libxar.1.dylib 0x000000000925d000 /usr/lib/libpam.2.dylib 0x000000000925d000 /usr/lib/libOpenScriptingUtil.dylib 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices 0x000000000925d000 /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS 0x000000000925d000 /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth 0x000000000925d000 /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport 0x000000000925d000 /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC 0x000000000925d000 /usr/lib/libmecabra.dylib 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA 0x000000000925d000 /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x000000000925d000 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib 0x000000000925d000 /usr/lib/libcups.2.dylib 0x000000000925d000 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos 0x000000000925d000 /System/Library/Frameworks/GSS.framework/Versions/A/GSS 0x000000000925d000 /usr/lib/libresolv.9.dylib 0x000000000925d000 /usr/lib/libiconv.2.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal 0x000000000925d000 /usr/lib/libheimdal-asn1.dylib 0x000000000925d000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory 0x000000000925d000 /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth 0x000000000925d000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory 0x000000000925d000 /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation 0x000000000925d000 /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling 0x000000000925d000 /usr/lib/libcmph.dylib 0x000000000925d000 /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement 0x000000000925d000 /usr/lib/libxslt.1.dylib 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x000000000925d000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage 0x000000000925d000 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport 0x000000000925d000 /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL 0x000000000925d000 /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore 0x000000000925d000 /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity 0x000000000925d000 /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices 0x000000000925d000 /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary 0x000000000925d000 /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 0x000000000925d000 /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN 0x000000000925d000 /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth 0x000000000925d000 /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi 0x000000000925d000 /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth 0x000000000925d000 /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols 0x000000000925d000 /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication 0x000000000925d000 /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication 0x000000000925d000 /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore 0x000000010dc00000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/server/libjvm.dylib 0x000000000925d000 /usr/lib/libstdc++.6.dylib 0x000000010cb80000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libverify.dylib 0x000000010cb8e000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libjava.dylib 0x000000010cbcc000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libzip.dylib 0x000000012375f000 /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport 0x0000000123777000 /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation 0x000000012378c000 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x0000000123799000 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x0000000125b0b000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libnet.dylib 0x0000000125edc000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libnio.dylib 0x0000000125f11000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libmanagement.dylib 0x0000000126583000 /Users/donkoink/Development/elasticsearch-1.5.2/lib/sigar/libsigar-universal64-macosx.dylib VM Arguments: jvm_args: -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Delasticsearch -Des.foreground=yes -Des.path.home=/Users/donkoink/Development/elasticsearch-1.5.2 java_command: org.elasticsearch.bootstrap.Elasticsearch java_class_path (initial): :/Users/donkoink/Development/elasticsearch-1.5.2/lib/elasticsearch-1.5.2.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/antlr-runtime-3.5.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/apache-log4j-extras-1.2.17.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/asm-4.1.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/asm-commons-4.1.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/elasticsearch-1.5.2.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/groovy-all-2.4.0.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/jna-4.1.0.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/jts-1.13.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/log4j-1.2.17.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-analyzers-common-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-core-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-expressions-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-grouping-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-highlighter-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-join-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-memory-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-misc-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-queries-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-queryparser-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-sandbox-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-spatial-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-suggest-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/spatial4j-0.4.1.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/sigar/sigar-1.6.4.jar Launcher Type: SUN_STANDARD Environment Variables: PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/donkoink/Library/Android/sdk:/Users/donkoink/Library/Android/sdk/tools/:/Users/donkoink/Library/Android/sdk/platform-tools/ SHELL=/bin/bash Signal Handlers: SIGSEGV: [libjvm.dylib+0x55f7df], sa_mask[0]=0xfffefeff, sa_flags=0x00000043 SIGBUS: [libjvm.dylib+0x55f7df], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGFPE: [libjvm.dylib+0x442cfa], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGPIPE: [libjvm.dylib+0x442cfa], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGXFSZ: [libjvm.dylib+0x442cfa], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGILL: [libjvm.dylib+0x442cfa], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGUSR1: SIG_DFL, sa_mask[0]=0x63807efb, sa_flags=0x00000000 SIGUSR2: [libjvm.dylib+0x442818], sa_mask[0]=0x00000000, sa_flags=0x00000042 SIGHUP: [libjvm.dylib+0x440ba5], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGINT: [libjvm.dylib+0x440ba5], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGTERM: [libjvm.dylib+0x440ba5], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGQUIT: [libjvm.dylib+0x440ba5], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 --------------- S Y S T E M --------------- OS:Bsduname:Darwin 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64 rlimit: STACK 8192k, CORE infinity, NPROC 709, NOFILE 10240, AS infinity load average:2.46 3.12 3.41 CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 70 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, ht, tsc, tscinvbit Memory: 4k page, physical 16777216k(47852k free) /proc/meminfo: vm_info: Java HotSpot(TM) 64-Bit Server VM (25.5-b02) for bsd-amd64 JRE (1.8.0_05-b13), built on Mar 18 2014 00:36:13 by &quot;java_re&quot; with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) time: Wed Jun 24 10:23:56 2015 elapsed time: 683 seconds"><pre class="notranslate"><code class="notranslate"> A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0x0000000125b14d1c, pid=36072, tid=58371 JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13) Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode bsd-amd64 compressed oops) Problematic frame: C [libnet.dylib+0x9d1c] Java_java_net_SocketInputStream_socketRead0+0x23d Core dump written. Default location: /cores/core or core.36072 If you would like to submit a bug report, please visit: http://bugreport.sun.com/bugreport/crash.jsp The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug. --------------- T H R E A D --------------- Current thread (0x00007fcf1a22d000): JavaThread "elasticsearch[Arides][keep_alive]" daemon [_thread_in_native, id=58371, stack(0x000000012cfce000,0x000000012d0ce000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000f1a22d1e0 Registers: RAX=0x000000000000019d, RBX=0x000000012d0bce60, RCX=0x0000000000000000, RDX=0x0000000125b3ca40 RSP=0x000000012d0bce50, RBP=0x000000012d0cce90, RSI=0x0000080000000800, RDI=0x0000070000000803 R8 =0x000000012d0bcdb0, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x0000000000000246 R12=0x000000000000019d, R13=0x0000000000002000, R14=0x0000000f1a22d1e0, R15=0x000000000000ea60 RIP=0x0000000125b14d1c, EFLAGS=0x0000000000010202, ERR=0x0000000000000004 TRAPNO=0x000000000000000e Top of Stack: (sp=0x000000012d0bce50) 0x000000012d0bce50: 000000012d0cceb8 000000008a02db4e 0x000000012d0bce60: 312e312f50545448 0d4b4f2030303220 0x000000012d0bce70: 746e65746e6f430a 61203a657079542d 0x000000012d0bce80: 69746163696c7070 3b6e6f736a2f6e6f 0x000000012d0bce90: 7465737261686320 0a0d382d4654553d 0x000000012d0bcea0: 2d746e65746e6f43 203a6874676e654c 0x000000012d0bceb0: 7b0a0d0a0d363233 746174732220200a 0x000000012d0bcec0: 3032203a20227375 616e2220200a2c30 0x000000012d0bced0: 4122203a2022656d 0a2c227365646972 0x000000012d0bcee0: 7473756c63222020 22656d616e5f7265 0x000000012d0bcef0: 7069727422203a20 762220200a2c2278 0x000000012d0bcf00: 20226e6f69737265 202020200a7b203a 0x000000012d0bcf10: 227265626d756e22 2e352e3122203a20 0x000000012d0bcf20: 202020200a2c2232 685f646c69756222 0x000000012d0bcf30: 22203a2022687361 3836383966663236 0x000000012d0bcf40: 3463306138633462 6262656230363835 0x000000012d0bcf50: 3839313265393532 6331626138373730 0x000000012d0bcf60: 22202020200a2c22 69745f646c697562 0x000000012d0bcf70: 22706d617473656d 3531303222203a20 0x000000012d0bcf80: 305437322d34302d 5a36303a31323a39 0x000000012d0bcf90: 22202020200a2c22 6e735f646c697562 0x000000012d0bcfa0: 2022746f68737061 2c65736c6166203a 0x000000012d0bcfb0: 756c22202020200a 7265765f656e6563 0x000000012d0bcfc0: 203a20226e6f6973 22342e30312e3422 0x000000012d0bcfd0: 20200a2c7d20200a 656e696c67617422 0x000000012d0bcfe0: 756f5922203a2022 66202c776f6e4b20 0x000000012d0bcff0: 637261655320726f 6331620a7d0a2268 0x000000012d0bd000: 222020202e7a4f30 69745f646c697562 0x000000012d0bd010: 22706d617473656d 3531303222203a20 0x000000012d0bd020: 305437322d34302d 5a36303a22a60048 0x000000012d0bd030: 222020202c7ce1d0 6e735f6422c4f320 0x000000012d0bd040: 2022746f22a5ffc8 2c65736c2c7cc090 Instructions: (pc=0x0000000125b14d1c) 0x0000000125b14cfc: 48 8d 35 a5 35 00 00 48 8d 15 f7 36 00 00 eb e6 0x0000000125b14d0c: 48 8d 35 e3 3a 00 00 48 8d 15 00 3f 00 00 eb d6 0x0000000125b14d1c: 49 8b 06 4c 89 f7 48 8b b5 c0 ff fe ff 8b 95 cc 0x0000000125b14d2c: ff fe ff 44 89 e1 49 89 d8 ff 90 80 06 00 00 48 Register to memory mapping: RAX=0x000000000000019d is an unknown value RBX=0x000000012d0bce60 is pointing into the stack for thread: 0x00007fcf1a22d000 RCX=0x0000000000000000 is an unknown value RDX=0x0000000125b3ca40 is an unknown value RSP=0x000000012d0bce50 is pointing into the stack for thread: 0x00007fcf1a22d000 RBP=0x000000012d0cce90 is pointing into the stack for thread: 0x00007fcf1a22d000 RSI=0x0000080000000800 is an unknown value RDI=0x0000070000000803 is an unknown value R8 =0x000000012d0bcdb0 is pointing into the stack for thread: 0x00007fcf1a22d000 R9 =0x0000000000000000 is an unknown value R10=0x0000000000000000 is an unknown value R11=0x0000000000000246 is an unknown value R12=0x000000000000019d is an unknown value R13=0x0000000000002000 is an unknown value R14=0x0000000f1a22d1e0 is an unknown value R15=0x000000000000ea60 is an unknown value Stack: [0x000000012cfce000,0x000000012d0ce000], sp=0x000000012d0bce50, free space=955k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libnet.dylib+0x9d1c] Java_java_net_SocketInputStream_socketRead0+0x23d J 9529 java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I (0 bytes) @ 0x00000001105318e1 [0x0000000110531800+0xe1] J 9528 C1 java.net.SocketInputStream.read([BIII)I (290 bytes) @ 0x0000000110540e24 [0x00000001105408c0+0x564] J 9311 C1 java.net.SocketInputStream.read([BII)I (15 bytes) @ 0x000000011041067c [0x00000001104105c0+0xbc] J 8997 C1 java.io.BufferedInputStream.fill()V (233 bytes) @ 0x00000001102b7c0c [0x00000001102b7580+0x68c] J 24 C1 java.io.BufferedInputStream.read1([BII)I (108 bytes) @ 0x000000010ebd612c [0x000000010ebd5f60+0x1cc] J 23 C1 java.io.BufferedInputStream.read([BII)I (113 bytes) @ 0x000000010ebd4fec [0x000000010ebd4d60+0x28c] J 9668 C1 sun.net.www.http.HttpClient.parseHTTPHeader(Lsun/net/www/MessageHeader;Lsun/net/ProgressSource;Lsun/net/www/protocol/http/HttpURLConnection;)Z (944 bytes) @ 0x000000010fcbcdf4 [0x000000010fcbcb60+0x294] J 9497 C1 sun.net.www.http.HttpClient.parseHTTP(Lsun/net/www/MessageHeader;Lsun/net/ProgressSource;Lsun/net/www/protocol/http/HttpURLConnection;)Z (188 bytes) @ 0x0000000110518a64 [0x0000000110518740+0x324] J 8319 C1 sun.net.www.protocol.http.HttpURLConnection.getInputStream0()Ljava/io/InputStream; (2019 bytes) @ 0x0000000110077c0c [0x0000000110076d40+0xecc] J 8151 C1 sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/InputStream; (56 bytes) @ 0x000000010f8aa4e4 [0x000000010f8a9fe0+0x504] j org.elasticsearch.marvel.agent.exporter.ESExporter$ConnectionKeepAliveWorker.run()V+120 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [libjvm.dylib+0x2c5186] V [libjvm.dylib+0x2c5914] V [libjvm.dylib+0x2c5ac0] V [libjvm.dylib+0x3152a7] V [libjvm.dylib+0x51ccf5] V [libjvm.dylib+0x51e432] V [libjvm.dylib+0x445426] C [libsystem_pthread.dylib+0x3268] _pthread_body+0x83 C [libsystem_pthread.dylib+0x31e5] _pthread_body+0x0 C [libsystem_pthread.dylib+0x141d] thread_start+0xd Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J 9529 java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I (0 bytes) @ 0x0000000110531867 [0x0000000110531800+0x67] J 9528 C1 java.net.SocketInputStream.read([BIII)I (290 bytes) @ 0x0000000110540e24 [0x00000001105408c0+0x564] J 9311 C1 java.net.SocketInputStream.read([BII)I (15 bytes) @ 0x000000011041067c [0x00000001104105c0+0xbc] J 8997 C1 java.io.BufferedInputStream.fill()V (233 bytes) @ 0x00000001102b7c0c [0x00000001102b7580+0x68c] J 24 C1 java.io.BufferedInputStream.read1([BII)I (108 bytes) @ 0x000000010ebd612c [0x000000010ebd5f60+0x1cc] J 23 C1 java.io.BufferedInputStream.read([BII)I (113 bytes) @ 0x000000010ebd4fec [0x000000010ebd4d60+0x28c] J 9668 C1 sun.net.www.http.HttpClient.parseHTTPHeader(Lsun/net/www/MessageHeader;Lsun/net/ProgressSource;Lsun/net/www/protocol/http/HttpURLConnection;)Z (944 bytes) @ 0x000000010fcbcdf4 [0x000000010fcbcb60+0x294] J 9497 C1 sun.net.www.http.HttpClient.parseHTTP(Lsun/net/www/MessageHeader;Lsun/net/ProgressSource;Lsun/net/www/protocol/http/HttpURLConnection;)Z (188 bytes) @ 0x0000000110518a64 [0x0000000110518740+0x324] J 8319 C1 sun.net.www.protocol.http.HttpURLConnection.getInputStream0()Ljava/io/InputStream; (2019 bytes) @ 0x0000000110077c0c [0x0000000110076d40+0xecc] J 8151 C1 sun.net.www.protocol.http.HttpURLConnection.getInputStream()Ljava/io/InputStream; (56 bytes) @ 0x000000010f8aa4e4 [0x000000010f8a9fe0+0x504] j org.elasticsearch.marvel.agent.exporter.ESExporter$ConnectionKeepAliveWorker.run()V+120 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( =&gt; current thread ) 0x00007fcf144dd800 JavaThread "elasticsearch[Arides][merge][T#1]" daemon [_thread_blocked, id=45355, stack(0x0000000127bed000,0x0000000127ced000)] 0x00007fcf1a237800 JavaThread "elasticsearch[Arides][bulk][T#8]" daemon [_thread_blocked, id=67075, stack(0x000000012e248000,0x000000012e348000)] 0x00007fcf1b0b1800 JavaThread "elasticsearch[Arides][bulk][T#7]" daemon [_thread_blocked, id=66563, stack(0x000000012d955000,0x000000012da55000)] 0x00007fcf1a149800 JavaThread "elasticsearch[Arides][bulk][T#6]" daemon [_thread_blocked, id=65547, stack(0x000000012d852000,0x000000012d952000)] 0x00007fcf1a808000 JavaThread "elasticsearch[Arides][bulk][T#5]" daemon [_thread_blocked, id=66055, stack(0x000000012d2d7000,0x000000012d3d7000)] 0x00007fcf14be1000 JavaThread "elasticsearch[Arides][flush][T#1]" daemon [_thread_blocked, id=64523, stack(0x000000012af4e000,0x000000012b04e000)] 0x00007fcf150e2000 JavaThread "elasticsearch[Arides][bulk][T#4]" daemon [_thread_in_Java, id=65031, stack(0x000000012cd65000,0x000000012ce65000)] 0x00007fcf19836800 JavaThread "elasticsearch[Arides][bulk][T#3]" daemon [_thread_blocked, id=64003, stack(0x000000012d5dd000,0x000000012d6dd000)] 0x00007fcf18802000 JavaThread "elasticsearch[Arides][listener][T#4]" daemon [_thread_blocked, id=63491, stack(0x000000012ddb0000,0x000000012deb0000)] 0x00007fcf16185000 JavaThread "elasticsearch[Arides][management][T#5]" daemon [_thread_blocked, id=62979, stack(0x000000012dcad000,0x000000012ddad000)] 0x00007fcf14627000 JavaThread "elasticsearch[Arides][management][T#4]" daemon [_thread_blocked, id=62467, stack(0x000000012dbaa000,0x000000012dcaa000)] 0x00007fcf188c9800 JavaThread "elasticsearch[Arides][management][T#3]" daemon [_thread_blocked, id=61955, stack(0x000000012daa7000,0x000000012dba7000)] 0x00007fcf19c7a000 JavaThread "elasticsearch[Arides][management][T#2]" daemon [_thread_blocked, id=61443, stack(0x000000012d74f000,0x000000012d84f000)] 0x00007fcf172cd800 JavaThread "elasticsearch[Arides][bulk][T#2]" daemon [_thread_blocked, id=60931, stack(0x000000012d1d4000,0x000000012d2d4000)] 0x00007fcf170d1800 JavaThread "elasticsearch[Arides][refresh][T#1]" daemon [_thread_blocked, id=60419, stack(0x000000012ad3b000,0x000000012ae3b000)] 0x00007fcf19b56000 JavaThread "elasticsearch[Arides][listener][T#3]" daemon [_thread_blocked, id=59907, stack(0x000000012d0d1000,0x000000012d1d1000)] 0x00007fcf19bb7000 JavaThread "elasticsearch[Arides][bulk][T#1]" daemon [_thread_blocked, id=59395, stack(0x000000012c9a9000,0x000000012caa9000)] 0x00007fcf171ef800 JavaThread "elasticsearch[Arides][listener][T#2]" daemon [_thread_blocked, id=58883, stack(0x00000001269d1000,0x0000000126ad1000)] =&gt;0x00007fcf1a22d000 JavaThread "elasticsearch[Arides][keep_alive]" daemon [_thread_in_native, id=58371, stack(0x000000012cfce000,0x000000012d0ce000)] 0x00007fcf139dc800 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=57355, stack(0x000000012cecb000,0x000000012cfcb000)] 0x00007fcf1787d000 JavaThread "elasticsearch[Arides][listener][T#1]" daemon [_thread_blocked, id=57863, stack(0x000000012cc62000,0x000000012cd62000)] 0x00007fcf14b4c000 JavaThread "elasticsearch[Arides][warmer][T#1]" daemon [_thread_blocked, id=56835, stack(0x000000012a796000,0x000000012a896000)] 0x00007fcf18969800 JavaThread "DestroyJavaVM" [_thread_blocked, id=3847, stack(0x000000010ca7e000,0x000000010cb7e000)] 0x00007fcf14dc9800 JavaThread "elasticsearch[keepAlive/1.5.2]" [_thread_blocked, id=55811, stack(0x000000012ae4b000,0x000000012af4b000)] 0x00007fcf18917800 JavaThread "elasticsearch[Arides][http_server_boss][T#1]{New I/O server boss #51}" daemon [_thread_in_native, id=55299, stack(0x000000012c2a6000,0x000000012c3a6000)] 0x00007fcf18917000 JavaThread "elasticsearch[Arides][http_server_worker][T#16]{New I/O worker #50}" daemon [_thread_in_native, id=54787, stack(0x000000012c1a3000,0x000000012c2a3000)] 0x00007fcf13d9c000 JavaThread "elasticsearch[Arides][http_server_worker][T#15]{New I/O worker #49}" daemon [_thread_in_native, id=54275, stack(0x000000012c0a0000,0x000000012c1a0000)] 0x00007fcf18b09000 JavaThread "elasticsearch[Arides][http_server_worker][T#14]{New I/O worker #48}" daemon [_thread_in_native, id=53763, stack(0x000000012bf9d000,0x000000012c09d000)] 0x00007fcf18131800 JavaThread "elasticsearch[Arides][http_server_worker][T#13]{New I/O worker #47}" daemon [_thread_in_native, id=53251, stack(0x000000012be9a000,0x000000012bf9a000)] 0x00007fcf13d9b800 JavaThread "elasticsearch[Arides][http_server_worker][T#12]{New I/O worker #46}" daemon [_thread_in_native, id=52739, stack(0x000000012bd97000,0x000000012be97000)] 0x00007fcf18130800 JavaThread "elasticsearch[Arides][http_server_worker][T#11]{New I/O worker #45}" daemon [_thread_in_native, id=52227, stack(0x000000012bc94000,0x000000012bd94000)] 0x00007fcf14581800 JavaThread "elasticsearch[Arides][http_server_worker][T#10]{New I/O worker #44}" daemon [_thread_in_native, id=51715, stack(0x000000012bb91000,0x000000012bc91000)] 0x00007fcf13815000 JavaThread "elasticsearch[Arides][http_server_worker][T#9]{New I/O worker #43}" daemon [_thread_in_native, id=51203, stack(0x000000012ba8e000,0x000000012bb8e000)] 0x00007fcf18329800 JavaThread "elasticsearch[Arides][http_server_worker][T#8]{New I/O worker #42}" daemon [_thread_in_native, id=50691, stack(0x000000012b98b000,0x000000012ba8b000)] 0x00007fcf18adf000 JavaThread "elasticsearch[Arides][http_server_worker][T#7]{New I/O worker #41}" daemon [_thread_in_native, id=50179, stack(0x000000012b888000,0x000000012b988000)] 0x00007fcf13d77000 JavaThread "elasticsearch[Arides][http_server_worker][T#6]{New I/O worker #40}" daemon [_thread_in_native, id=49667, stack(0x000000012b785000,0x000000012b885000)] 0x00007fcf1783e000 JavaThread "elasticsearch[Arides][http_server_worker][T#5]{New I/O worker #39}" daemon [_thread_in_native, id=49155, stack(0x000000012b682000,0x000000012b782000)] 0x00007fcf188b3000 JavaThread "elasticsearch[Arides][http_server_worker][T#4]{New I/O worker #38}" daemon [_thread_in_native, id=48643, stack(0x000000012b57f000,0x000000012b67f000)] 0x00007fcf1381b000 JavaThread "elasticsearch[Arides][http_server_worker][T#3]{New I/O worker #37}" daemon [_thread_in_native, id=48131, stack(0x000000012b47c000,0x000000012b57c000)] 0x00007fcf13813000 JavaThread "elasticsearch[Arides][http_server_worker][T#2]{New I/O worker #36}" daemon [_thread_in_native, id=47619, stack(0x000000012b1be000,0x000000012b2be000)] 0x00007fcf14a1d800 JavaThread "elasticsearch[Arides][http_server_worker][T#1]{New I/O worker #35}" daemon [_thread_in_native, id=17159, stack(0x000000012b0bb000,0x000000012b1bb000)] 0x00007fcf1456f000 JavaThread "elasticsearch[Arides][management][T#1]" daemon [_thread_blocked, id=17671, stack(0x00000001278eb000,0x00000001279eb000)] 0x00007fcf1456c000 JavaThread "elasticsearch[Arides][riverClusterService#updateTask][T#1]" daemon [_thread_blocked, id=16139, stack(0x00000001237a6000,0x00000001238a6000)] 0x00007fcf17828800 JavaThread "elasticsearch[Arides][transport_client_timer][T#1]{Hashed wheel timer #1}" daemon [_thread_blocked, id=45827, stack(0x0000000127cf0000,0x0000000127df0000)] 0x00007fcf1783d000 JavaThread "elasticsearch[Arides][generic][T#1]" daemon [_thread_blocked, id=44803, stack(0x0000000127586000,0x0000000127686000)] 0x00007fcf1838d000 JavaThread "elasticsearch[Arides][clusterService#updateTask][T#1]" daemon [_thread_blocked, id=44291, stack(0x0000000127483000,0x0000000127583000)] 0x00007fcf151c1000 JavaThread "elasticsearch[#shared#][discovery#multicast#receiver][T#1]" daemon [_thread_in_native, id=43779, stack(0x00000001266ba000,0x00000001267ba000)] 0x00007fcf144e1000 JavaThread "elasticsearch[Arides][[http_server_boss.default]][T#1]{New I/O server boss #34}" daemon [_thread_in_native, id=43267, stack(0x000000012a28d000,0x000000012a38d000)] 0x00007fcf168f7800 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#16]{New I/O worker #33}" daemon [_thread_in_native, id=42755, stack(0x000000012a18a000,0x000000012a28a000)] 0x00007fcf168f4800 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#15]{New I/O worker #32}" daemon [_thread_in_native, id=42243, stack(0x000000012a087000,0x000000012a187000)] 0x00007fcf169d6000 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#14]{New I/O worker #31}" daemon [_thread_in_native, id=41731, stack(0x0000000129f84000,0x000000012a084000)] 0x00007fcf168f2000 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#13]{New I/O worker #30}" daemon [_thread_in_native, id=41219, stack(0x0000000129e81000,0x0000000129f81000)] 0x00007fcf168ed800 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#12]{New I/O worker #29}" daemon [_thread_in_native, id=40707, stack(0x0000000129d7e000,0x0000000129e7e000)] 0x00007fcf17109800 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#11]{New I/O worker #28}" daemon [_thread_in_native, id=40195, stack(0x0000000129c7b000,0x0000000129d7b000)] 0x00007fcf17032800 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#10]{New I/O worker #27}" daemon [_thread_in_native, id=39683, stack(0x0000000129b78000,0x0000000129c78000)] 0x00007fcf17063800 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#9]{New I/O worker #26}" daemon [_thread_in_native, id=39171, stack(0x0000000129a75000,0x0000000129b75000)] 0x00007fcf170a8800 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#8]{New I/O worker #25}" daemon [_thread_in_native, id=38659, stack(0x0000000129972000,0x0000000129a72000)] 0x00007fcf16249800 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#7]{New I/O worker #24}" daemon [_thread_in_native, id=38147, stack(0x000000012986f000,0x000000012996f000)] 0x00007fcf16247000 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#6]{New I/O worker #23}" daemon [_thread_in_native, id=37635, stack(0x000000012976c000,0x000000012986c000)] 0x00007fcf168eb000 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#5]{New I/O worker #22}" daemon [_thread_in_native, id=37123, stack(0x0000000129669000,0x0000000129769000)] 0x00007fcf16949000 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#4]{New I/O worker #21}" daemon [_thread_in_native, id=36611, stack(0x0000000127aea000,0x0000000127bea000)] 0x00007fcf16948000 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#3]{New I/O worker #20}" daemon [_thread_in_native, id=36099, stack(0x000000012680c000,0x000000012690c000)] 0x00007fcf14aeb000 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#2]{New I/O worker #19}" daemon [_thread_in_native, id=35587, stack(0x0000000125d13000,0x0000000125e13000)] 0x00007fcf14aea000 JavaThread "elasticsearch[Arides][[http_server_worker.default]][T#1]{New I/O worker #18}" daemon [_thread_in_native, id=35075, stack(0x0000000125b6e000,0x0000000125c6e000)] 0x00007fcf13947000 JavaThread "elasticsearch[Arides][transport_client_boss][T#1]{New I/O boss #17}" daemon [_thread_in_native, id=34563, stack(0x0000000129566000,0x0000000129666000)] 0x00007fcf16243000 JavaThread "elasticsearch[Arides][transport_client_worker][T#16]{New I/O worker #16}" daemon [_thread_in_native, id=34051, stack(0x0000000129463000,0x0000000129563000)] 0x00007fcf16240800 JavaThread "elasticsearch[Arides][transport_client_worker][T#15]{New I/O worker #15}" daemon [_thread_in_native, id=33539, stack(0x0000000129360000,0x0000000129460000)] 0x00007fcf1623d800 JavaThread "elasticsearch[Arides][transport_client_worker][T#14]{New I/O worker #14}" daemon [_thread_in_native, id=33027, stack(0x000000012925d000,0x000000012935d000)] 0x00007fcf1622b000 JavaThread "elasticsearch[Arides][transport_client_worker][T#13]{New I/O worker #13}" daemon [_thread_in_native, id=32515, stack(0x000000012915a000,0x000000012925a000)] 0x00007fcf1611f000 JavaThread "elasticsearch[Arides][transport_client_worker][T#12]{New I/O worker #12}" daemon [_thread_in_native, id=32003, stack(0x0000000129057000,0x0000000129157000)] 0x00007fcf1611c800 JavaThread "elasticsearch[Arides][transport_client_worker][T#11]{New I/O worker #11}" daemon [_thread_in_native, id=31491, stack(0x0000000128f54000,0x0000000129054000)] 0x00007fcf16119800 JavaThread "elasticsearch[Arides][transport_client_worker][T#10]{New I/O worker #10}" daemon [_thread_in_native, id=30979, stack(0x0000000128e51000,0x0000000128f51000)] 0x00007fcf16117000 JavaThread "elasticsearch[Arides][transport_client_worker][T#9]{New I/O worker #9}" daemon [_thread_in_native, id=30467, stack(0x0000000128d4e000,0x0000000128e4e000)] 0x00007fcf160ba000 JavaThread "elasticsearch[Arides][transport_client_worker][T#8]{New I/O worker #8}" daemon [_thread_in_native, id=29955, stack(0x0000000128c4b000,0x0000000128d4b000)] 0x00007fcf160b9000 JavaThread "elasticsearch[Arides][transport_client_worker][T#7]{New I/O worker #7}" daemon [_thread_in_native, id=29443, stack(0x0000000128b48000,0x0000000128c48000)] 0x00007fcf160d8800 JavaThread "elasticsearch[Arides][transport_client_worker][T#6]{New I/O worker #6}" daemon [_thread_in_native, id=28931, stack(0x0000000128a45000,0x0000000128b45000)] 0x00007fcf160d8000 JavaThread "elasticsearch[Arides][transport_client_worker][T#5]{New I/O worker #5}" daemon [_thread_in_native, id=28419, stack(0x0000000128942000,0x0000000128a42000)] 0x00007fcf16082800 JavaThread "elasticsearch[Arides][transport_client_worker][T#4]{New I/O worker #4}" daemon [_thread_in_native, id=27907, stack(0x000000012883f000,0x000000012893f000)] 0x00007fcf16081800 JavaThread "elasticsearch[Arides][transport_client_worker][T#3]{New I/O worker #3}" daemon [_thread_in_native, id=27395, stack(0x000000012873c000,0x000000012883c000)] 0x00007fcf14302000 JavaThread "elasticsearch[Arides][transport_client_worker][T#2]{New I/O worker #2}" daemon [_thread_in_native, id=26883, stack(0x0000000128639000,0x0000000128739000)] 0x00007fcf14539800 JavaThread "elasticsearch[Arides][transport_client_worker][T#1]{New I/O worker #1}" daemon [_thread_in_native, id=26371, stack(0x00000001277e8000,0x00000001278e8000)] 0x00007fcf14d70000 JavaThread "elasticsearch[Arides][[ttl_expire]]" daemon [_thread_blocked, id=25859, stack(0x0000000128536000,0x0000000128636000)] 0x00007fcf168fc800 JavaThread "elasticsearch[Arides][master_mapping_updater]" [_thread_blocked, id=25347, stack(0x0000000128433000,0x0000000128533000)] 0x00007fcf1606f000 JavaThread "elasticsearch[Arides][marvel.exporters]" daemon [_thread_in_native, id=24331, stack(0x0000000128330000,0x0000000128430000)] 0x00007fcf149c7800 JavaThread "elasticsearch[Arides][scheduler][T#1]" daemon [_thread_blocked, id=24839, stack(0x000000012822d000,0x000000012832d000)] 0x00007fcf144c9000 JavaThread "elasticsearch[Arides][[timer]]" daemon [_thread_blocked, id=23811, stack(0x0000000126b2f000,0x0000000126c2f000)] 0x00007fcf15074800 JavaThread "Service Thread" daemon [_thread_blocked, id=22787, stack(0x0000000125692000,0x0000000125792000)] 0x00007fcf1409c000 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=22275, stack(0x000000012558f000,0x000000012568f000)] 0x00007fcf1409b800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=21763, stack(0x000000012548c000,0x000000012558c000)] 0x00007fcf14808800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=21251, stack(0x0000000125389000,0x0000000125489000)] 0x00007fcf1409a800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=20739, stack(0x0000000125286000,0x0000000125386000)] 0x00007fcf1381c000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=20227, stack(0x0000000125183000,0x0000000125283000)] 0x00007fcf1406a800 JavaThread "Surrogate Locker Thread (Concurrent GC)" daemon [_thread_blocked, id=16395, stack(0x0000000125080000,0x0000000125180000)] 0x00007fcf14069000 JavaThread "Finalizer" daemon [_thread_blocked, id=15107, stack(0x000000012365d000,0x000000012375d000)] 0x00007fcf14068000 JavaThread "Reference Handler" daemon [_thread_blocked, id=14595, stack(0x000000012355a000,0x000000012365a000)] Other Threads: 0x00007fcf14063800 VMThread [stack: 0x0000000123457000,0x0000000123557000] [id=14083] 0x00007fcf1409d000 WatcherThread [stack: 0x0000000125795000,0x0000000125895000] [id=23299] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap: par new generation total 314560K, used 191197K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 64% used [0x0000000780000000, 0x000000078afbaf80, 0x0000000791110000) from space 34944K, 32% used [0x0000000793330000, 0x0000000793e2c680, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439853K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38173K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K Card table byte_map: [0x000000011e698000,0x000000011e899000] byte_map_base: 0x000000011aa98000 Marking Bits: (CMSBitMap*) 0x00007fcf15059cc8 Bits: [0x000000011f1ef000, 0x000000011fc99c00) Mod Union Table: (CMSBitMap*) 0x00007fcf15059d88 Bits: [0x000000011fc9a000, 0x000000011fcc4ab0) Polling page: 0x000000010cbc2000 CodeCache: size=245760Kb used=28086Kb max_used=28099Kb free=217673Kb bounds [0x000000010eac0000, 0x0000000110660000, 0x000000011dac0000] total_blobs=8539 nmethods=8001 adapters=452 compilation: enabled Compilation events (10 events): Event: 673.575 Thread 0x00007fcf1409c000 nmethod 9870 0x0000000110649390 code [0x00000001106494e0, 0x00000001106495f0] Event: 674.268 Thread 0x00007fcf1409c000 9871 3 org.apache.lucene.codecs.DocValuesConsumer::&lt;init&gt; (5 bytes) Event: 674.269 Thread 0x00007fcf1409c000 nmethod 9871 0x0000000110649650 code [0x00000001106497a0, 0x0000000110649950] Event: 674.273 Thread 0x00007fcf1409b800 9872 4 org.apache.lucene.util.packed.PackedInts$Format::longCount (86 bytes) Event: 674.275 Thread 0x00007fcf1409b800 nmethod 9872 0x000000011064a8d0 code [0x000000011064aa80, 0x000000011064acd8] Event: 677.744 Thread 0x00007fcf14808800 9873 4 org.elasticsearch.common.jackson.core.json.UTF8JsonGenerator::writeStartObject (72 bytes) Event: 677.751 Thread 0x00007fcf14808800 nmethod 9873 0x0000000110649c10 code [0x0000000110649de0, 0x000000011064a360] Event: 678.388 Thread 0x00007fcf1409c000 9874 ! 3 org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector::run (462 bytes) Event: 678.391 Thread 0x00007fcf1409c000 nmethod 9874 0x000000011064df50 code [0x000000011064e480, 0x0000000110652408] Event: 683.764 Thread 0x00007fcf14808800 9875 4 org.elasticsearch.common.bytes.ChannelBufferBytesReference::slice (19 bytes) GC Heap History (10 events): Event: 477.411 GC heap before {Heap before GC invocations=6204 (full 4): par new generation total 314560K, used 283430K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 10% used [0x0000000791110000, 0x00000007914c9a70, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439827K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38136K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K Event: 477.416 GC heap after Heap after GC invocations=6205 (full 4): par new generation total 314560K, used 8635K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 24% used [0x0000000793330000, 0x0000000793b9ef20, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439832K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38136K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K } Event: 518.575 GC heap before {Heap before GC invocations=6205 (full 4): par new generation total 314560K, used 288251K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 24% used [0x0000000793330000, 0x0000000793b9ef20, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439832K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38141K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K Event: 518.578 GC heap after Heap after GC invocations=6206 (full 4): par new generation total 314560K, used 5465K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 15% used [0x0000000791110000, 0x0000000791666628, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439837K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38141K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K } Event: 561.554 GC heap before {Heap before GC invocations=6206 (full 4): par new generation total 314560K, used 285081K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 15% used [0x0000000791110000, 0x0000000791666628, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439837K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38146K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K Event: 561.558 GC heap after Heap after GC invocations=6207 (full 4): par new generation total 314560K, used 8721K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 24% used [0x0000000793330000, 0x0000000793bb4740, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439841K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38146K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4687K, capacity 4748K, committed 4864K, reserved 1048576K } Event: 611.988 GC heap before {Heap before GC invocations=6207 (full 4): par new generation total 314560K, used 288337K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 24% used [0x0000000793330000, 0x0000000793bb4740, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439841K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38162K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K Event: 611.993 GC heap after Heap after GC invocations=6208 (full 4): par new generation total 314560K, used 6435K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 18% used [0x0000000791110000, 0x0000000791758dc8, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439845K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38162K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K } Event: 643.860 GC heap before {Heap before GC invocations=6208 (full 4): par new generation total 314560K, used 286051K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 100% used [0x0000000780000000, 0x0000000791110000, 0x0000000791110000) from space 34944K, 18% used [0x0000000791110000, 0x0000000791758dc8, 0x0000000793330000) to space 34944K, 0% used [0x0000000793330000, 0x0000000793330000, 0x0000000795550000) concurrent mark-sweep generation total 699072K, used 439845K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38167K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K Event: 643.864 GC heap after Heap after GC invocations=6209 (full 4): par new generation total 314560K, used 11249K [0x0000000780000000, 0x0000000795550000, 0x0000000795550000) eden space 279616K, 0% used [0x0000000780000000, 0x0000000780000000, 0x0000000791110000) from space 34944K, 32% used [0x0000000793330000, 0x0000000793e2c680, 0x0000000795550000) to space 34944K, 0% used [0x0000000791110000, 0x0000000791110000, 0x0000000793330000) concurrent mark-sweep generation total 699072K, used 439853K [0x0000000795550000, 0x00000007c0000000, 0x00000007c0000000) Metaspace used 38167K, capacity 38468K, committed 38656K, reserved 1083392K class space used 4688K, capacity 4748K, committed 4864K, reserved 1048576K } Deoptimization events (10 events): Event: 280.604 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001103cd174 method=org.elasticsearch.common.xcontent.XContentBuilder.field(Lorg/elasticsearch/common/xcontent/XContentBuilderString;Ljava/lang/String;)Lorg/elasticsearch/common/xcontent/XC Event: 280.604 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001103cd174 method=org.elasticsearch.common.xcontent.XContentBuilder.field(Lorg/elasticsearch/common/xcontent/XContentBuilderString;Ljava/lang/String;)Lorg/elasticsearch/common/xcontent/XC Event: 280.604 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001103cd174 method=org.elasticsearch.common.xcontent.XContentBuilder.field(Lorg/elasticsearch/common/xcontent/XContentBuilderString;Ljava/lang/String;)Lorg/elasticsearch/common/xcontent/XC Event: 280.604 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001103cd174 method=org.elasticsearch.common.xcontent.XContentBuilder.field(Lorg/elasticsearch/common/xcontent/XContentBuilderString;Ljava/lang/String;)Lorg/elasticsearch/common/xcontent/XC Event: 343.081 Thread 0x00007fcf17948000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000011044c7ac method=org.elasticsearch.index.cache.fixedbitset.FixedBitSetFilterCache$FixedBitSetFilterWarmer.warmNewReaders(Lorg/elasticsearch/index/shard/IndexShard;Lorg/elasticsearch/clus Event: 343.081 Thread 0x00007fcf17948000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000011044c7ac method=org.elasticsearch.index.cache.fixedbitset.FixedBitSetFilterCache$FixedBitSetFilterWarmer.warmNewReaders(Lorg/elasticsearch/index/shard/IndexShard;Lorg/elasticsearch/clus Event: 343.081 Thread 0x00007fcf17948000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000011044c7ac method=org.elasticsearch.index.cache.fixedbitset.FixedBitSetFilterCache$FixedBitSetFilterWarmer.warmNewReaders(Lorg/elasticsearch/index/shard/IndexShard;Lorg/elasticsearch/clus Event: 343.081 Thread 0x00007fcf17948000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x000000011044c7ac method=org.elasticsearch.index.cache.fixedbitset.FixedBitSetFilterCache$FixedBitSetFilterWarmer.warmNewReaders(Lorg/elasticsearch/index/shard/IndexShard;Lorg/elasticsearch/clus Event: 416.207 Thread 0x00007fcf14462800 Uncommon trap: reason=unreached action=reinterpret pc=0x00000001100623a4 method=org.apache.lucene.util.fst.ByteSequenceOutputs.add(Lorg/apache/lucene/util/BytesRef;Lorg/apache/lucene/util/BytesRef;)Lorg/apache/lucene/util/BytesRef; @ 49 Event: 425.334 Thread 0x00007fcf1606f000 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00000001104f7830 method=org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse.getIndices()Ljava/util/Map; @ 128 Internal exceptions (10 events): Event: 208.000 Thread 0x00007fcf14a1d800 Exception &lt;a 'java/security/PrivilegedActionException'&gt; (0x00000007815d5590) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jvm.cpp, line 1248] Event: 208.000 Thread 0x00007fcf14a1d800 Exception &lt;a 'java/security/PrivilegedActionException'&gt; (0x00000007815dcd90) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jvm.cpp, line 1248] Event: 246.542 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x000000078d6809b8) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 306.547 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x000000078459a320) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 366.551 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x000000078bfc0e30) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 426.558 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x00000007822b3fa8) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 486.562 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x00000007810b1a88) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 546.565 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x00000007885f9bb0) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 606.570 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x00000007900e5a60) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Event: 666.577 Thread 0x00007fcf151c1000 Exception &lt;a 'java/net/SocketTimeoutException': Receive timed out&gt; (0x0000000786dac030) thrown at [/HUDSON/workspace/8-2-build-macosx-x86_64/jdk8u5/2488/hotspot/src/share/vm/prims/jni.cpp, line 742] Events (10 events): Event: 683.728 Executing VM operation: RevokeBias Event: 683.728 Executing VM operation: RevokeBias done Event: 683.730 Executing VM operation: RevokeBias Event: 683.730 Executing VM operation: RevokeBias done Event: 683.765 Executing VM operation: RevokeBias Event: 683.765 Executing VM operation: RevokeBias done Event: 683.765 Executing VM operation: RevokeBias Event: 683.766 Executing VM operation: RevokeBias done Event: 683.769 Executing VM operation: RevokeBias Event: 683.769 Executing VM operation: RevokeBias done Dynamic libraries: 0x000000000925d000 /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x000000000925d000 /System/Library/Frameworks/Security.framework/Versions/A/Security 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x000000000925d000 /usr/lib/libz.1.dylib 0x000000000925d000 /usr/lib/libSystem.B.dylib 0x000000000925d000 /usr/lib/libobjc.A.dylib 0x000000000925d000 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x000000000925d000 /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x000000000925d000 /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x000000000925d000 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x000000000925d000 /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices 0x000000000925d000 /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation 0x000000000925d000 /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface 0x000000000925d000 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x000000000925d000 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x000000000925d000 /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore 0x000000000925d000 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x000000000925d000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x000000000925d000 /usr/lib/libauto.dylib 0x000000000925d000 /usr/lib/libicucore.A.dylib 0x000000000925d000 /usr/lib/libxml2.2.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI 0x000000000925d000 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x000000000925d000 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x000000000925d000 /usr/lib/liblangid.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport 0x000000000925d000 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x000000000925d000 /usr/lib/libDiagnosticMessagesClient.dylib 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x000000000925d000 /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis 0x000000000925d000 /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x000000000925d000 /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing 0x000000000925d000 /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x000000000925d000 /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x000000000925d000 /usr/lib/libextension.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup 0x000000000925d000 /usr/lib/libarchive.2.dylib 0x000000000925d000 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x000000000925d000 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x000000000925d000 /usr/lib/libCRFSuite.dylib 0x000000000925d000 /usr/lib/libc++.1.dylib 0x000000000925d000 /usr/lib/libc++abi.dylib 0x000000000925d000 /usr/lib/system/libcache.dylib 0x000000000925d000 /usr/lib/system/libcommonCrypto.dylib 0x000000000925d000 /usr/lib/system/libcompiler_rt.dylib 0x000000000925d000 /usr/lib/system/libcopyfile.dylib 0x000000000925d000 /usr/lib/system/libcorecrypto.dylib 0x000000000925d000 /usr/lib/system/libdispatch.dylib 0x000000000925d000 /usr/lib/system/libdyld.dylib 0x000000000925d000 /usr/lib/system/libkeymgr.dylib 0x000000000925d000 /usr/lib/system/liblaunch.dylib 0x000000000925d000 /usr/lib/system/libmacho.dylib 0x000000000925d000 /usr/lib/system/libquarantine.dylib 0x000000000925d000 /usr/lib/system/libremovefile.dylib 0x000000000925d000 /usr/lib/system/libsystem_asl.dylib 0x000000000925d000 /usr/lib/system/libsystem_blocks.dylib 0x000000000925d000 /usr/lib/system/libsystem_c.dylib 0x000000000925d000 /usr/lib/system/libsystem_configuration.dylib 0x000000000925d000 /usr/lib/system/libsystem_coreservices.dylib 0x000000000925d000 /usr/lib/system/libsystem_coretls.dylib 0x000000000925d000 /usr/lib/system/libsystem_dnssd.dylib 0x000000000925d000 /usr/lib/system/libsystem_info.dylib 0x000000000925d000 /usr/lib/system/libsystem_kernel.dylib 0x000000000925d000 /usr/lib/system/libsystem_m.dylib 0x000000000925d000 /usr/lib/system/libsystem_malloc.dylib 0x000000000925d000 /usr/lib/system/libsystem_network.dylib 0x000000000925d000 /usr/lib/system/libsystem_networkextension.dylib 0x000000000925d000 /usr/lib/system/libsystem_notify.dylib 0x000000000925d000 /usr/lib/system/libsystem_platform.dylib 0x000000000925d000 /usr/lib/system/libsystem_pthread.dylib 0x000000000925d000 /usr/lib/system/libsystem_sandbox.dylib 0x000000000925d000 /usr/lib/system/libsystem_secinit.dylib 0x000000000925d000 /usr/lib/system/libsystem_stats.dylib 0x000000000925d000 /usr/lib/system/libsystem_trace.dylib 0x000000000925d000 /usr/lib/system/libunc.dylib 0x000000000925d000 /usr/lib/system/libunwind.dylib 0x000000000925d000 /usr/lib/system/libxpc.dylib 0x000000000925d000 /usr/lib/libbz2.1.0.dylib 0x000000000925d000 /usr/lib/liblzma.5.dylib 0x000000000925d000 /usr/lib/libbsm.0.dylib 0x000000000925d000 /usr/lib/libsqlite3.dylib 0x000000000925d000 /usr/lib/system/libkxld.dylib 0x000000000925d000 /usr/lib/libxar.1.dylib 0x000000000925d000 /usr/lib/libpam.2.dylib 0x000000000925d000 /usr/lib/libOpenScriptingUtil.dylib 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x000000000925d000 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices 0x000000000925d000 /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS 0x000000000925d000 /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth 0x000000000925d000 /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport 0x000000000925d000 /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC 0x000000000925d000 /usr/lib/libmecabra.dylib 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x000000000925d000 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib 0x000000000925d000 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA 0x000000000925d000 /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x000000000925d000 /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x000000000925d000 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib 0x000000000925d000 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib 0x000000000925d000 /usr/lib/libcups.2.dylib 0x000000000925d000 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos 0x000000000925d000 /System/Library/Frameworks/GSS.framework/Versions/A/GSS 0x000000000925d000 /usr/lib/libresolv.9.dylib 0x000000000925d000 /usr/lib/libiconv.2.dylib 0x000000000925d000 /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal 0x000000000925d000 /usr/lib/libheimdal-asn1.dylib 0x000000000925d000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory 0x000000000925d000 /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth 0x000000000925d000 /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory 0x000000000925d000 /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation 0x000000000925d000 /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling 0x000000000925d000 /usr/lib/libcmph.dylib 0x000000000925d000 /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement 0x000000000925d000 /usr/lib/libxslt.1.dylib 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x000000000925d000 /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage 0x000000000925d000 /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport 0x000000000925d000 /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL 0x000000000925d000 /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore 0x000000000925d000 /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity 0x000000000925d000 /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices 0x000000000925d000 /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary 0x000000000925d000 /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 0x000000000925d000 /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN 0x000000000925d000 /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth 0x000000000925d000 /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi 0x000000000925d000 /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth 0x000000000925d000 /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols 0x000000000925d000 /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication 0x000000000925d000 /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication 0x000000000925d000 /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore 0x000000010dc00000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/server/libjvm.dylib 0x000000000925d000 /usr/lib/libstdc++.6.dylib 0x000000010cb80000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libverify.dylib 0x000000010cb8e000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libjava.dylib 0x000000010cbcc000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libzip.dylib 0x000000012375f000 /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport 0x0000000123777000 /System/Library/Frameworks/JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework/Versions/A/JavaNativeFoundation 0x000000012378c000 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x0000000123799000 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x000000000925d000 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x0000000125b0b000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libnet.dylib 0x0000000125edc000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libnio.dylib 0x0000000125f11000 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libmanagement.dylib 0x0000000126583000 /Users/donkoink/Development/elasticsearch-1.5.2/lib/sigar/libsigar-universal64-macosx.dylib VM Arguments: jvm_args: -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Delasticsearch -Des.foreground=yes -Des.path.home=/Users/donkoink/Development/elasticsearch-1.5.2 java_command: org.elasticsearch.bootstrap.Elasticsearch java_class_path (initial): :/Users/donkoink/Development/elasticsearch-1.5.2/lib/elasticsearch-1.5.2.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/antlr-runtime-3.5.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/apache-log4j-extras-1.2.17.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/asm-4.1.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/asm-commons-4.1.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/elasticsearch-1.5.2.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/groovy-all-2.4.0.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/jna-4.1.0.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/jts-1.13.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/log4j-1.2.17.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-analyzers-common-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-core-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-expressions-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-grouping-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-highlighter-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-join-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-memory-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-misc-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-queries-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-queryparser-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-sandbox-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-spatial-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/lucene-suggest-4.10.4.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/spatial4j-0.4.1.jar:/Users/donkoink/Development/elasticsearch-1.5.2/lib/sigar/sigar-1.6.4.jar Launcher Type: SUN_STANDARD Environment Variables: PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/donkoink/Library/Android/sdk:/Users/donkoink/Library/Android/sdk/tools/:/Users/donkoink/Library/Android/sdk/platform-tools/ SHELL=/bin/bash Signal Handlers: SIGSEGV: [libjvm.dylib+0x55f7df], sa_mask[0]=0xfffefeff, sa_flags=0x00000043 SIGBUS: [libjvm.dylib+0x55f7df], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGFPE: [libjvm.dylib+0x442cfa], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGPIPE: [libjvm.dylib+0x442cfa], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGXFSZ: [libjvm.dylib+0x442cfa], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGILL: [libjvm.dylib+0x442cfa], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGUSR1: SIG_DFL, sa_mask[0]=0x63807efb, sa_flags=0x00000000 SIGUSR2: [libjvm.dylib+0x442818], sa_mask[0]=0x00000000, sa_flags=0x00000042 SIGHUP: [libjvm.dylib+0x440ba5], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGINT: [libjvm.dylib+0x440ba5], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGTERM: [libjvm.dylib+0x440ba5], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 SIGQUIT: [libjvm.dylib+0x440ba5], sa_mask[0]=0xfffefeff, sa_flags=0x00000042 --------------- S Y S T E M --------------- OS:Bsduname:Darwin 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64 rlimit: STACK 8192k, CORE infinity, NPROC 709, NOFILE 10240, AS infinity load average:2.46 3.12 3.41 CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 70 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, ht, tsc, tscinvbit Memory: 4k page, physical 16777216k(47852k free) /proc/meminfo: vm_info: Java HotSpot(TM) 64-Bit Server VM (25.5-b02) for bsd-amd64 JRE (1.8.0_05-b13), built on Mar 18 2014 00:36:13 by "java_re" with gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) time: Wed Jun 24 10:23:56 2015 elapsed time: 683 seconds </code></pre></div>
0
<p dir="auto">I was wondering if something like the following is possible.</p> <p dir="auto">Given the data structure:</p> <ul dir="auto"> <li>docs <ul dir="auto"> <li>doc1.json</li> <li>doc2.json</li> </ul> </li> </ul> <p dir="auto">And the following code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function loadDoc(name, cb) { require.ensure([], function (require) { cb(require(&quot;./docs/&quot; + name)); }); } "><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">loadDoc</span><span class="pl-kos">(</span><span class="pl-s1">name</span><span class="pl-kos">,</span> <span class="pl-s1">cb</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">ensure</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-kos">(</span><span class="pl-s1">require</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">cb</span><span class="pl-kos">(</span><span class="pl-s1">require</span><span class="pl-kos">(</span><span class="pl-s">"./docs/"</span> <span class="pl-c1">+</span> <span class="pl-s1">name</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> </pre></div> <p dir="auto">If I understand the current behaviour would be that doc1.json and doc2.json both end up in one chunk together (one external JS file that will be loaded dynamic). But is there any way to change the code so that doc1.json and doc2.json get there individual bundle without having to hardcode for each file a require.ensure?</p>
<p dir="auto"><strong>What is the current behavior?</strong><br> When I use anything else besides an external source map file option as a value in the dev option (for example "source-map"), <a href="https://webpack.js.org/configuration/devtool/#development" rel="nofollow">https://webpack.js.org/configuration/devtool/#development</a> , when I modify a CSS property in my Chrome dev tools inspector, something weird happens: Chrome seems to add dynamically many copies of my rule/file which I modified (and naturally a broken layout.)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1768834/39618318-7b35acd6-4f83-11e8-8808-37ff442dd0d4.gif"><img src="https://user-images.githubusercontent.com/1768834/39618318-7b35acd6-4f83-11e8-8808-37ff442dd0d4.gif" alt="39046259-db556168-4495-11e8-99d9-b366b8cb976f" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <ul dir="auto"> <li>use webpack-dev-server</li> <li>use cheap-module-eval-source-map</li> <li>modify CSS properties from devtools (see gif above)</li> </ul> <p dir="auto"><strong>What is the expected behavior?</strong><br> Layout should just update the properties modified.</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 2.x + 4.x<br> Node.js version: 8.x , 9.x<br> Operating System: macOS Sierra 10.12.6 (16G1212)<br> Additional tools: Chrome Version 66.0.3359.139 (Official Build) (64-bit)</p>
0
<h2 dir="auto">πŸ“ Provide a description of the new feature</h2> <p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em></p> <p dir="auto">currently there's no shortcut that windows support to navigate between the open windows of same application. Like I might have opened two firefox windows. If I Have to go to other window I have to use Alt + Tab and that goes to the previous used and I need to search and go it. It will be good if there's a dedicated button like Win+` like mac.</p> <hr> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">πŸ‘</g-emoji> reaction to this post.</p>
<p dir="auto">I couldn't find it in the documentation, so I guess this is a feature request:<br> I would like to be able to switch focus between windows on a specific desktop, by cycling the focus of each window.</p> <p dir="auto">This is a little different from <code class="notranslate">ALT + TAB</code> because in <code class="notranslate">ALT + TAB</code> the focus isn't switched until you leave the keys, and repeated presses change the cycle order (the focus is switched back to the window you came from). I'm asking for something like 'focus next window in desktop' and 'focus previous window in desktop'. This is a common feature in tiling window managers in linux (for example, <a href="https://github.com/awesomeWM/awesome">AwesomeWM</a>).</p> <p dir="auto">Does this feature exist in current PowerToys?</p>
1
<p dir="auto">By default, Ctrl + Alt + ] Keybinding is : fold_current_now.</p> <p dir="auto">With azerty (french keyboard) Ctrl + Alt (AltGr) + ] is used to write "]". So, it's impossible to write "]" char if you are inside a function.</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">Source : <a href="https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/#4" rel="nofollow">tensorflow for poets</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Anujs-iMac:tensorflow-for-poets-2 anujchampjain$ python -m scripts.label_image --graph=tf_files/retrained_graph.pb --image=tf_files/flower_photos/daisy/21652746_cc379e0eea_m.jpg 2017-09-05 12:48:36.936100: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. 2017-09-05 12:48:36.936140: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 2017-09-05 12:48:36.936144: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 2017-09-05 12:48:36.936148: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. Traceback (most recent call last): File &quot;/Users/anujchampjain/anaconda/lib/python3.6/runpy.py&quot;, line 193, in _run_module_as_main &quot;__main__&quot;, mod_spec) File &quot;/Users/anujchampjain/anaconda/lib/python3.6/runpy.py&quot;, line 85, in _run_code exec(code, run_globals) File &quot;/Users/anujchampjain/Desktop/Workspace/Tensorflow/tensorflow-for-poets-2/scripts/label_image.py&quot;, line 120, in &lt;module&gt; input_operation = graph.get_operation_by_name(input_name); File &quot;/Users/anujchampjain/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py&quot;, line 2836, in get_operation_by_name return self.as_graph_element(name, allow_tensor=False, allow_operation=True) File &quot;/Users/anujchampjain/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py&quot;, line 2708, in as_graph_element return self._as_graph_element_locked(obj, allow_tensor, allow_operation) File &quot;/Users/anujchampjain/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py&quot;, line 2768, in _as_graph_element_locked &quot;graph.&quot; % repr(name)) KeyError: &quot;The name 'import/input' refers to an Operation not in the graph.&quot;"><pre class="notranslate"><code class="notranslate">Anujs-iMac:tensorflow-for-poets-2 anujchampjain$ python -m scripts.label_image --graph=tf_files/retrained_graph.pb --image=tf_files/flower_photos/daisy/21652746_cc379e0eea_m.jpg 2017-09-05 12:48:36.936100: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. 2017-09-05 12:48:36.936140: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. 2017-09-05 12:48:36.936144: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. 2017-09-05 12:48:36.936148: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. Traceback (most recent call last): File "/Users/anujchampjain/anaconda/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Users/anujchampjain/anaconda/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/anujchampjain/Desktop/Workspace/Tensorflow/tensorflow-for-poets-2/scripts/label_image.py", line 120, in &lt;module&gt; input_operation = graph.get_operation_by_name(input_name); File "/Users/anujchampjain/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2836, in get_operation_by_name return self.as_graph_element(name, allow_tensor=False, allow_operation=True) File "/Users/anujchampjain/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2708, in as_graph_element return self._as_graph_element_locked(obj, allow_tensor, allow_operation) File "/Users/anujchampjain/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2768, in _as_graph_element_locked "graph." % repr(name)) KeyError: "The name 'import/input' refers to an Operation not in the graph." </code></pre></div>
<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 or a feature request.</li> <li>The form below must be filled out.</li> <li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li> </ol> <p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p> <hr> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10 X64 Enterprise Edition</li> <li><strong>TensorFlow installed from (source or binary)</strong>: binary</li> <li><strong>TensorFlow version (use command below)</strong>: 1.3</li> <li><strong>Python version</strong>: Anaconda 4.4.0 Python 3.6.2</li> <li><strong>Bazel version (if compiling from source)</strong>: no</li> <li><strong>CUDA/cuDNN version</strong>: No</li> <li><strong>GPU model and memory</strong>: No</li> <li><strong>Exact command to reproduce</strong>:<br> (tensorflow13) C:\Users\James\Tensorflow\model-retrain\tensorflow-for-poets-2\scripts&gt;python .\label_image.py --image c:\Users\James\Tensorflow\sample_img\Panda001.jpg --graph c:\Users\James\Tensorflow\model-retrain\tensorflow-for-poets-2\scripts\retrained_graph.pb --labels C:\Users\James\Tensorflow\model-retrain\tensorflow-for-poets-2\scripts\retrained_labels.txt</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">Error Log:<br> 2017-09-01 09:27:46.902115: I C:\tf_jenkins\home\workspace\nightly-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2<br> Traceback (most recent call last):<br> File ".\label_image.py", line 120, in <br> input_operation = graph.get_operation_by_name(input_name);<br> File "C:\Users\James\AppData\Local\conda\conda\envs\tensorflow13\lib\site-packages\tensorflow\python\framework\ops.py", line 3225, in get_operation_by_name<br> return self.as_graph_element(name, allow_tensor=False, allow_operation=True)<br> File "C:\Users\James\AppData\Local\conda\conda\envs\tensorflow13\lib\site-packages\tensorflow\python\framework\ops.py", line 3097, in as_graph_element<br> return self._as_graph_element_locked(obj, allow_tensor, allow_operation)<br> File "C:\Users\James\AppData\Local\conda\conda\envs\tensorflow13\lib\site-packages\tensorflow\python\framework\ops.py", line 3157, in _as_graph_element_locked<br> "graph." % repr(name))<br> KeyError: "The name 'import/input' refers to an Operation not in the graph."</p>
1
<p dir="auto">In Go 1.5, the CA root certificate store search order was changed for BSD systems:</p> <ul dir="auto"> <li>Go 1.4 programs would look for <code class="notranslate">/etc/ssl/cert.pem</code> before trying <code class="notranslate">/usr/local/share/certs/ca-root-nss.crt</code>. (<a href="https://github.com/golang/go/blob/release-branch.go1.4/src/crypto/x509/root_unix.go#L16">source</a>)</li> <li>Go 1.5 programs will try <code class="notranslate">/usr/local/share/certs/ca-root-nss.crt</code> first, before looking for <code class="notranslate">/etc/ssl/cert.pem</code>. (<a href="https://github.com/golang/go/blob/release-branch.go1.5/src/crypto/x509/root_bsd.go#L11">source</a>)</li> </ul> <p dir="auto">Looking at FreeBSD itself, libfetch (used by FreeBSD core) appears to try the SSL_CA_CERT_FILE environment variable first, then <code class="notranslate">/usr/local/etc/ssl/cert.pem</code>, then <code class="notranslate">/etc/ssl/cert.pem</code>. (<a href="https://svnweb.freebsd.org/base/head/lib/libfetch/common.c?view=markup&amp;pathrev=294326#l691" rel="nofollow">source</a>) This might be considered the canonical way to determine the location for the trust store on FreeBSD.</p> <p dir="auto">In FreeBSD, the location <code class="notranslate">/usr/local/share/certs/ca-root-nss.crt</code> is not special or blessed, but it's an implementation detail of the ca_root_nss package (Root certificate bundle from the Mozilla Project). Almost all users will have this package installed, and due to the ca_root_nss package's ETCSYMLINK option, their <code class="notranslate">/etc/ssl/cert.pem</code> will be symlinked, in which case the lookup order does not matter.</p> <p dir="auto">My issue with Go 1.5 happens because I deploy my own trust store to <code class="notranslate">/etc/ssl/cert.pem</code>.</p> <p dir="auto">If the ca_root_nss package happens to be installed, Go 1.5 picks up the ca_root_nss package's file <code class="notranslate">/usr/local/share/certs/ca-root-nss.crt</code> and no longer looks at the global <code class="notranslate">/etc/ssl/cert.pem</code>.</p> <p dir="auto">My build boxes have the Mozilla roots ca_root_nss package installed (to incorporate a modified version of it in our own trust store). On these machines, Go 1.5 programs prefer <code class="notranslate">ca-root-nss.crt</code> and use only the Mozilla roots, failing to verify servers using the global roots.</p> <p dir="auto">Due to fate, the search order in Go 1.4 (<a href="https://github.com/golang/go/blob/release-branch.go1.4/src/crypto/x509/root_unix.go#L16">source</a>) seems to have been more correct, as <code class="notranslate">/etc/ssl/cert.pem</code> was tried first, even if it was marked only as for OpenBSD.</p> <p dir="auto">However, since most people will just plainly use the Mozilla CA roots as their global roots file, this issue is probably rare.</p> <p dir="auto">I would recommend to duplicate the search order of FreeBSD's libfetch (<a href="https://svnweb.freebsd.org/base/head/lib/libfetch/common.c?view=markup&amp;pathrev=294326#l691" rel="nofollow">source</a>) in /src/crypto/x509/root_bsd.go.</p> <p dir="auto">The current list is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var certFiles = []string{ &quot;/usr/local/share/certs/ca-root-nss.crt&quot;, // FreeBSD/DragonFly &quot;/etc/ssl/cert.pem&quot;, // OpenBSD &quot;/etc/openssl/certs/ca-certificates.crt&quot;, // NetBSD }"><pre class="notranslate"><code class="notranslate">var certFiles = []string{ "/usr/local/share/certs/ca-root-nss.crt", // FreeBSD/DragonFly "/etc/ssl/cert.pem", // OpenBSD "/etc/openssl/certs/ca-certificates.crt", // NetBSD } </code></pre></div> <p dir="auto">To prefer the system roots and mimic the behavior of libfetch, while keeping compatibility with the other OSes, the entries could become:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var certFiles = []string{ &quot;/usr/local/etc/ssl/cert.pem&quot;, // FreeBSD &quot;/etc/ssl/cert.pem&quot;, // FreeBSD/OpenBSD &quot;/usr/local/share/certs/ca-root-nss.crt&quot;, // DragonFly &quot;/etc/openssl/certs/ca-certificates.crt&quot;, // NetBSD }"><pre class="notranslate"><code class="notranslate">var certFiles = []string{ "/usr/local/etc/ssl/cert.pem", // FreeBSD "/etc/ssl/cert.pem", // FreeBSD/OpenBSD "/usr/local/share/certs/ca-root-nss.crt", // DragonFly "/etc/openssl/certs/ca-certificates.crt", // NetBSD } </code></pre></div> <p dir="auto">Go version: <code class="notranslate">go version go1.5.3 freebsd/amd64</code></p>
<p dir="auto">by <strong>atctex</strong>:</p> <pre class="notranslate">Reproducing the problem: Compile and execute main.go (example.html in same directory): main.go: package main import ( "fmt" "os" "html" "io" ) func main() { file, _ := os.Open("example.html") tokenizer := html.NewTokenizer(file) for { tt := tokenizer.Next() tn, _ := tokenizer.TagName() switch tt { case html.ErrorToken: return case html.StartTagToken: fmt.Printf("%s - ", tn) case html.EndTagToken: fmt.Printf("%s\n", tn) } } } What is the expected output? html - head - meta - script - script head body - body html What do you see instead? html - head - meta - script - Which compiler are you using (5g, 6g, 8g, gccgo)? 8g Which operating system are you using? linux mint Which revision are you using? (hg identify) 775543b0795c tip Please provide any additional information below. Apparently parser is confused by "&lt;" (less than) inside javascript code.</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/2229/0/example.html" rel="nofollow">example.html</a> (313 bytes)</li> </ol>
0
<p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/psf/requests/blob/1e62a3ec18e19f85ddae03b4cbbdf0b4c62834c0/setup.cfg#L6-L10">requests/setup.cfg</a> </p> <p class="mb-0 color-fg-muted"> Lines 6 to 10 in <a data-pjax="true" class="commit-tease-sha" href="/psf/requests/commit/1e62a3ec18e19f85ddae03b4cbbdf0b4c62834c0">1e62a3e</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="L6" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="6"></td> <td id="LC6" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">requires-dist</span> = </td> </tr> <tr class="border-0"> <td id="L7" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="7"></td> <td id="LC7" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> certifi&gt;=2017.4.17 </td> </tr> <tr class="border-0"> <td id="L8" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="8"></td> <td id="LC8" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> charset_normalizer&gt;=2,&lt;4 </td> </tr> <tr class="border-0"> <td id="L9" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="9"></td> <td id="LC9" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> idna&gt;=2.5,&lt;4 </td> </tr> <tr class="border-0"> <td id="L10" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="10"></td> <td id="LC10" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> urllib3&gt;=1.21.1,&lt;1.27 </td> </tr> </tbody></table> </div> </div> <p></p>
<h2 dir="auto">Problem statement</h2> <p dir="auto">Current documentation only specifies the most common case of post data - a dictionary. The code in fact supports other forms of post data which is not documented. Propose to enhance the quick start section that deals with post data to include examples of other uses.</p> <p dir="auto">Section of text in the current documentation: <a href="http://docs.python-requests.org/en/master/user/quickstart/#more-complicated-post-requests" rel="nofollow">More complicated POST requests</a></p> <h2 dir="auto">Questions in the wild indicating the need for more documentation in this regard</h2> <p dir="auto">On stockoverflow:</p> <ul dir="auto"> <li><a href="http://stackoverflow.com/questions/23384230/how-to-post-multiple-value-with-same-key-in-python-requests" rel="nofollow">how to post multiple value with same key in python requests?</a></li> <li><a href="http://stackoverflow.com/questions/27116424/handling-duplicate-keys-in-http-post-in-order-to-specify-multiple-values" rel="nofollow">handling duplicate keys in HTTP post in order to specify multiple values</a></li> <li><a href="http://stackoverflow.com/questions/19004403/how-to-send-multiple-of-the-same-key-parameter-via-post" rel="nofollow">How to send multiple of the same key/parameter via POST?</a></li> <li><a href="http://stackoverflow.com/questions/31168819/how-to-send-an-array-using-requests-post-python-value-error-too-many-values/35534695" rel="nofollow">How to send an array using requests.post (Python)? β€œValue Error: Too many values to unpack”</a></li> </ul> <p dir="auto">And there is this issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20380137" data-permission-text="Title is private" data-url="https://github.com/psf/requests/issues/1641" data-hovercard-type="issue" data-hovercard-url="/psf/requests/issues/1641/hovercard" href="https://github.com/psf/requests/issues/1641">#1641</a>: Cannot send Single Key, Multiple value data in post because of the use of pythons dict.</p> <h2 dir="auto">Proposed modification:</h2> <div class="highlight highlight-text-restructuredtext notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="You can also pass a list of tuples to the ``data`` argument. This is particularly useful when the form has multiple elements that use the same key:: &gt;&gt;&gt; payload = (('key1', 'value1'), ('key1', 'value2')) &gt;&gt;&gt; r = requests.post('http://httpbin.org/post', data=payload) &gt;&gt;&gt; print(r.text) { ... &quot;form&quot;: { &quot;key1&quot;: [ &quot;value1&quot;, &quot;value2&quot; ] }, ... } Value of each payload element can be a scalar or an iterable:: &gt;&gt;&gt; payload = (('key1', ('value1', 1, (1, 2))), {'key2', ('value2', 2)}) &gt;&gt;&gt; r = requests.post('http://httpbin.org/post', data=payload) &gt;&gt;&gt; print(r.text) { ... &quot;form&quot;: { &quot;key1&quot;: [ &quot;value1&quot;, &quot;1&quot;, &quot;1&quot;, &quot;2&quot; ], &quot;key2&quot;: [ &quot;value2&quot;, &quot;2&quot; ] }, ... } "><pre class="notranslate">You can also pass a list of tuples to the ``<span class="pl-c1">data</span>`` argument. This is particularly useful when the form has multiple elements that use the same key:: <span class="pl-c1"> &gt;&gt;&gt; payload = (('key1', 'value1'), ('key1', 'value2'))</span> <span class="pl-c1"> &gt;&gt;&gt; r = requests.post('http://httpbin.org/post', data=payload)</span> <span class="pl-c1"> &gt;&gt;&gt; print(r.text)</span> <span class="pl-c1"> {</span> <span class="pl-c1"> ...</span> <span class="pl-c1"> "form": {</span> <span class="pl-c1"> "key1": [</span> <span class="pl-c1"> "value1",</span> <span class="pl-c1"> "value2"</span> <span class="pl-c1"> ]</span> <span class="pl-c1"> },</span> <span class="pl-c1"> ...</span> <span class="pl-c1"> }</span> Value of each payload element can be a scalar or an iterable:: <span class="pl-c1"> &gt;&gt;&gt; payload = (('key1', ('value1', 1, (1, 2))), {'key2', ('value2', 2)})</span> <span class="pl-c1"> &gt;&gt;&gt; r = requests.post('http://httpbin.org/post', data=payload)</span> <span class="pl-c1"> &gt;&gt;&gt; print(r.text)</span> <span class="pl-c1"> {</span> <span class="pl-c1"> ...</span> <span class="pl-c1"> "form": {</span> <span class="pl-c1"> "key1": [</span> <span class="pl-c1"> "value1",</span> <span class="pl-c1"> "1",</span> <span class="pl-c1"> "1",</span> <span class="pl-c1"> "2"</span> <span class="pl-c1"> ],</span> <span class="pl-c1"> "key2": [</span> <span class="pl-c1"> "value2",</span> <span class="pl-c1"> "2"</span> <span class="pl-c1"> ]</span> <span class="pl-c1"> },</span> <span class="pl-c1"> ...</span> <span class="pl-c1"> }</span> </pre></div>
0
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">Received this error without creating any viewport meta tag.<br> And also no duplicate meta tag at client side.<br> <code class="notranslate">Found conflicting amp tag "meta" with conflicting prop name="viewport". https://err.sh/next.js/conflicting-amp-tag</code></p> <h2 dir="auto">To Reproduce</h2> <ol dir="auto"> <li>start a new Next.js project</li> <li>create <code class="notranslate">./pages/index.js</code> as below <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { withAmp } from 'next/amp'; export default withAmp(() =&gt; { return &lt;div&gt;withAmp test&lt;/div&gt; });"><pre class="notranslate"><code class="notranslate">import { withAmp } from 'next/amp'; export default withAmp(() =&gt; { return &lt;div&gt;withAmp test&lt;/div&gt; }); </code></pre></div> </li> <li>create <code class="notranslate">./pages/_document.js</code> as below <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react'; import Document, { Html, Head, Main, NextScript } from 'next/document'; export default class MyDocument extends Document { render() { return ( &lt;Html&gt; &lt;Head /&gt; &lt;body&gt; &lt;Main /&gt; &lt;NextScript /&gt; &lt;/body&gt; &lt;/Html&gt; ); } }"><pre class="notranslate"><code class="notranslate">import React from 'react'; import Document, { Html, Head, Main, NextScript } from 'next/document'; export default class MyDocument extends Document { render() { return ( &lt;Html&gt; &lt;Head /&gt; &lt;body&gt; &lt;Main /&gt; &lt;NextScript /&gt; &lt;/body&gt; &lt;/Html&gt; ); } } </code></pre></div> </li> <li>yarn dev</li> <li>received this error in the terminal<br> <code class="notranslate">Found conflicting amp tag "meta" with conflicting prop name="viewport". https://err.sh/next.js/conflicting-amp-tag</code></li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">no error in the terminal</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS</li> <li>Browser: chrome</li> <li>Version of Next.js: 8.1.0</li> </ul>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">There is about 47% desktop browsers and about 45% mobile browsers run ES2015 without any problem. By <a href="https://www.netmarketshare.com" rel="nofollow">https://www.netmarketshare.com</a></p> <p dir="auto">There is new simplest solution yet how to deploy separate javascript to modern browsers and transpiled to older browsers. And it is use to &lt;script type="module"&gt;<br> Exists two nice articles how to use it<br> <a href="https://philipwalton.com/articles/deploying-es2015-code-in-production-today/" rel="nofollow">https://philipwalton.com/articles/deploying-es2015-code-in-production-today/</a><br> <a href="https://www.contentful.com/blog/2017/04/04/es6-modules-support-lands-in-browsers-is-it-time-to-rethink-bundling/" rel="nofollow">https://www.contentful.com/blog/2017/04/04/es6-modules-support-lands-in-browsers-is-it-time-to-rethink-bundling/</a></p> <p dir="auto">Both articles explains how to do that with webpack and script tag.<br> This could be really nice feature, because half of all visitors don't need to transpile to older code.</p> <p dir="auto">What we need to make it work?</p> <ol dir="auto"> <li>babel-plugin-transform-es2015-modules-commonjs no needed anymore</li> <li>Replace UglifyJs with Babel Minify (Babili)</li> <li>Create new webpack entry and common plugins</li> <li>Set two different babelrc settings for ES2015 and for legacy</li> <li>Create two different script tags explained in blog articles</li> </ol>
0
<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">We have a number of node14 projects that we are in the process of upgrading to 16 (and if we aren't careful, the LTS train will have moved on before we get there!).</p> <p dir="auto">Can anyone explain what has changed in npm 8(?), that could cause git+ssh dependencies to fail? I have a (fairly) minimal <a href="https://github.com/grahamrhay/npm-chown">repro</a> here, but almost no theory as to what could cause it. I don't know if it is related to docker, or npm, or some combination of the two.</p> <p dir="auto">The <code class="notranslate">main</code> branch builds fine:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ make build Building the image... DOCKER_BUILDKIT=1 docker build --ssh default -t npm-chown . [+] Building 2.2s (14/14) FINISHED =&gt; [internal] load build definition from Dockerfile 0.0s =&gt; =&gt; transferring dockerfile: 450B 0.0s =&gt; [internal] load .dockerignore 0.0s =&gt; =&gt; transferring context: 2B 0.0s =&gt; resolve image config for docker.io/docker/dockerfile:experimental 1.0s =&gt; CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s =&gt; [internal] load metadata for docker.io/library/node:14-alpine 1.0s =&gt; [internal] load build context 0.0s =&gt; =&gt; transferring context: 69B 0.0s =&gt; [1/7] FROM docker.io/library/node:14-alpine@sha256:e22ee6a906e823dc592d6022a3f520676575b50320fe2c3916c88acb16f471ce 0.0s =&gt; CACHED [2/7] RUN apk --no-cache --virtual build-dependencies add make g++ git openssh 0.0s =&gt; CACHED [3/7] RUN mkdir -p /root/.ssh &amp;&amp; chmod 0700 /root/.ssh &amp;&amp; ssh-keyscan github.com &gt;&gt; /root/.ssh/known_hosts 0.0s =&gt; CACHED [4/7] WORKDIR /app/ 0.0s =&gt; CACHED [5/7] RUN chown -R node $PWD 0.0s =&gt; CACHED [6/7] ADD ./service/package.json . 0.0s =&gt; CACHED [7/7] RUN --mount=type=ssh npm i 0.0s =&gt; exporting to image 0.0s =&gt; =&gt; exporting layers 0.0s =&gt; =&gt; writing image sha256:fa984c52481af4a483017351da9902eb627eccdfc2f837ead12a73812b1bf14d 0.0s =&gt; =&gt; naming to docker.io/library/npm-chown "><pre class="notranslate"><code class="notranslate">$ make build Building the image... DOCKER_BUILDKIT=1 docker build --ssh default -t npm-chown . [+] Building 2.2s (14/14) FINISHED =&gt; [internal] load build definition from Dockerfile 0.0s =&gt; =&gt; transferring dockerfile: 450B 0.0s =&gt; [internal] load .dockerignore 0.0s =&gt; =&gt; transferring context: 2B 0.0s =&gt; resolve image config for docker.io/docker/dockerfile:experimental 1.0s =&gt; CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s =&gt; [internal] load metadata for docker.io/library/node:14-alpine 1.0s =&gt; [internal] load build context 0.0s =&gt; =&gt; transferring context: 69B 0.0s =&gt; [1/7] FROM docker.io/library/node:14-alpine@sha256:e22ee6a906e823dc592d6022a3f520676575b50320fe2c3916c88acb16f471ce 0.0s =&gt; CACHED [2/7] RUN apk --no-cache --virtual build-dependencies add make g++ git openssh 0.0s =&gt; CACHED [3/7] RUN mkdir -p /root/.ssh &amp;&amp; chmod 0700 /root/.ssh &amp;&amp; ssh-keyscan github.com &gt;&gt; /root/.ssh/known_hosts 0.0s =&gt; CACHED [4/7] WORKDIR /app/ 0.0s =&gt; CACHED [5/7] RUN chown -R node $PWD 0.0s =&gt; CACHED [6/7] ADD ./service/package.json . 0.0s =&gt; CACHED [7/7] RUN --mount=type=ssh npm i 0.0s =&gt; exporting to image 0.0s =&gt; =&gt; exporting layers 0.0s =&gt; =&gt; writing image sha256:fa984c52481af4a483017351da9902eb627eccdfc2f837ead12a73812b1bf14d 0.0s =&gt; =&gt; naming to docker.io/library/npm-chown </code></pre></div> <p dir="auto">but the other two branches fail like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ make build Building the image... DOCKER_BUILDKIT=1 docker build --ssh default -t npm-chown . [+] Building 11.3s (14/14) FINISHED =&gt; [internal] load build definition from Dockerfile 0.0s =&gt; =&gt; transferring dockerfile: 467B 0.0s =&gt; [internal] load .dockerignore 0.0s =&gt; =&gt; transferring context: 2B 0.0s =&gt; resolve image config for docker.io/docker/dockerfile:experimental 0.8s =&gt; CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s =&gt; [internal] load metadata for docker.io/library/node:14-alpine 0.7s =&gt; [1/8] FROM docker.io/library/node:14-alpine@sha256:e22ee6a906e823dc592d6022a3f520676575b50320fe2c3916c88acb16f471ce 0.0s =&gt; [internal] load build context 0.0s =&gt; =&gt; transferring context: 69B 0.0s =&gt; CACHED [2/8] RUN apk --no-cache --virtual build-dependencies add make g++ git openssh 0.0s =&gt; CACHED [3/8] RUN mkdir -p /root/.ssh &amp;&amp; chmod 0700 /root/.ssh &amp;&amp; ssh-keyscan github.com &gt;&gt; /root/.ssh/known_hosts 0.0s =&gt; CACHED [4/8] WORKDIR /app/ 0.0s =&gt; CACHED [5/8] RUN chown -R node $PWD 0.0s =&gt; CACHED [6/8] ADD ./service/package.json . 0.0s =&gt; [7/8] RUN npm i -g npm 7.2s =&gt; ERROR [8/8] RUN --mount=type=ssh npm i 2.3s ------ &gt; [8/8] RUN --mount=type=ssh npm i: #14 2.263 npm ERR! code 128 #14 2.266 npm ERR! An unknown git error occurred #14 2.267 npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/jashkenas/underscore.git #14 2.267 npm ERR! Warning: Permanently added 'github.com' (ED25519) to the list of known hosts. #14 2.267 npm ERR! [email protected]: Permission denied (publickey). #14 2.267 npm ERR! fatal: Could not read from remote repository. #14 2.267 npm ERR! #14 2.267 npm ERR! Please make sure you have the correct access rights #14 2.267 npm ERR! and the repository exists. #14 2.269 #14 2.270 npm ERR! A complete log of this run can be found in: #14 2.270 npm ERR! /root/.npm/_logs/2022-08-09T11_50_52_370Z-debug-0.log ------ executor failed running [/bin/sh -c npm i]: exit code: 128 make: *** [Makefile:7: build] Error 1"><pre class="notranslate"><code class="notranslate">$ make build Building the image... DOCKER_BUILDKIT=1 docker build --ssh default -t npm-chown . [+] Building 11.3s (14/14) FINISHED =&gt; [internal] load build definition from Dockerfile 0.0s =&gt; =&gt; transferring dockerfile: 467B 0.0s =&gt; [internal] load .dockerignore 0.0s =&gt; =&gt; transferring context: 2B 0.0s =&gt; resolve image config for docker.io/docker/dockerfile:experimental 0.8s =&gt; CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s =&gt; [internal] load metadata for docker.io/library/node:14-alpine 0.7s =&gt; [1/8] FROM docker.io/library/node:14-alpine@sha256:e22ee6a906e823dc592d6022a3f520676575b50320fe2c3916c88acb16f471ce 0.0s =&gt; [internal] load build context 0.0s =&gt; =&gt; transferring context: 69B 0.0s =&gt; CACHED [2/8] RUN apk --no-cache --virtual build-dependencies add make g++ git openssh 0.0s =&gt; CACHED [3/8] RUN mkdir -p /root/.ssh &amp;&amp; chmod 0700 /root/.ssh &amp;&amp; ssh-keyscan github.com &gt;&gt; /root/.ssh/known_hosts 0.0s =&gt; CACHED [4/8] WORKDIR /app/ 0.0s =&gt; CACHED [5/8] RUN chown -R node $PWD 0.0s =&gt; CACHED [6/8] ADD ./service/package.json . 0.0s =&gt; [7/8] RUN npm i -g npm 7.2s =&gt; ERROR [8/8] RUN --mount=type=ssh npm i 2.3s ------ &gt; [8/8] RUN --mount=type=ssh npm i: #14 2.263 npm ERR! code 128 #14 2.266 npm ERR! An unknown git error occurred #14 2.267 npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/jashkenas/underscore.git #14 2.267 npm ERR! Warning: Permanently added 'github.com' (ED25519) to the list of known hosts. #14 2.267 npm ERR! [email protected]: Permission denied (publickey). #14 2.267 npm ERR! fatal: Could not read from remote repository. #14 2.267 npm ERR! #14 2.267 npm ERR! Please make sure you have the correct access rights #14 2.267 npm ERR! and the repository exists. #14 2.269 #14 2.270 npm ERR! A complete log of this run can be found in: #14 2.270 npm ERR! /root/.npm/_logs/2022-08-09T11_50_52_370Z-debug-0.log ------ executor failed running [/bin/sh -c npm i]: exit code: 128 make: *** [Makefile:7: build] Error 1 </code></pre></div> <p dir="auto">I have a workaround, to move the <code class="notranslate">chown</code> after <code class="notranslate">npm i</code>, but that takes my build time from ~1 min to ~12 mins. which isn't ideal.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">I would expect it to work the same as npm6</p> <h3 dir="auto">Steps To Reproduce</h3> <p dir="auto">see above</p> <h3 dir="auto">Environment</h3> <p dir="auto">see above</p>
<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">After upgrading from npm 6 to npm 8.1.1, <code class="notranslate">npm install</code> started failing. This happens with npm 7.24.2 as well. I used <code class="notranslate">--loglevel verbose</code> and found the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm timing command:install Completed in 29728ms npm verb stack Error: git dep preparation failed npm verb stack at ChildProcess.&lt;anonymous&gt; (C:\Users\RudeySH\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27) npm verb stack at ChildProcess.emit (events.js:400:28) npm verb stack at maybeClose (internal/child_process.js:1058:16) npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5) npm verb cwd E:\Sync\Projects\SteamHunters\SteamHunters\src\SteamHunters.Web.Mvc npm verb Windows_NT 10.0.19042 npm verb argv &quot;C:\\Program Files (x86)\\nodejs\\node.exe&quot; &quot;C:\\Users\\RudeySH\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;install&quot; &quot;--loglevel&quot; &quot;verbose&quot; npm verb node v14.18.1 npm verb npm v8.1.1 npm ERR! code 1 npm ERR! git dep preparation failed npm ERR! command C:\Program Files (x86)\nodejs\node.exe C:\Users\RudeySH\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\RudeySH\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run npm ERR! npm verb cli [ npm ERR! npm verb cli 'C:\\Program Files (x86)\\nodejs\\node.exe', npm ERR! npm verb cli 'C:\\Users\\RudeySH\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', npm ERR! npm verb cli 'install', npm ERR! npm verb cli '--force', npm ERR! npm verb cli '--cache=C:\\Users\\RudeySH\\AppData\\Local\\npm-cache', npm ERR! npm verb cli '--prefer-offline=false', npm ERR! npm verb cli '--prefer-online=false', npm ERR! npm verb cli '--offline=false', npm ERR! npm verb cli '--no-progress', npm ERR! npm verb cli '--no-save', npm ERR! npm verb cli '--no-audit', npm ERR! npm verb cli '--include=dev', npm ERR! npm verb cli '--include=peer', npm ERR! npm verb cli '--include=optional', npm ERR! npm verb cli '--no-package-lock-only', npm ERR! npm verb cli '--no-dry-run' npm ERR! npm verb cli ]"><pre class="notranslate"><code class="notranslate">npm timing command:install Completed in 29728ms npm verb stack Error: git dep preparation failed npm verb stack at ChildProcess.&lt;anonymous&gt; (C:\Users\RudeySH\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27) npm verb stack at ChildProcess.emit (events.js:400:28) npm verb stack at maybeClose (internal/child_process.js:1058:16) npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5) npm verb cwd E:\Sync\Projects\SteamHunters\SteamHunters\src\SteamHunters.Web.Mvc npm verb Windows_NT 10.0.19042 npm verb argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\RudeySH\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--loglevel" "verbose" npm verb node v14.18.1 npm verb npm v8.1.1 npm ERR! code 1 npm ERR! git dep preparation failed npm ERR! command C:\Program Files (x86)\nodejs\node.exe C:\Users\RudeySH\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js install --force --cache=C:\Users\RudeySH\AppData\Local\npm-cache --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run npm ERR! npm verb cli [ npm ERR! npm verb cli 'C:\\Program Files (x86)\\nodejs\\node.exe', npm ERR! npm verb cli 'C:\\Users\\RudeySH\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', npm ERR! npm verb cli 'install', npm ERR! npm verb cli '--force', npm ERR! npm verb cli '--cache=C:\\Users\\RudeySH\\AppData\\Local\\npm-cache', npm ERR! npm verb cli '--prefer-offline=false', npm ERR! npm verb cli '--prefer-online=false', npm ERR! npm verb cli '--offline=false', npm ERR! npm verb cli '--no-progress', npm ERR! npm verb cli '--no-save', npm ERR! npm verb cli '--no-audit', npm ERR! npm verb cli '--include=dev', npm ERR! npm verb cli '--include=peer', npm ERR! npm verb cli '--include=optional', npm ERR! npm verb cli '--no-package-lock-only', npm ERR! npm verb cli '--no-dry-run' npm ERR! npm verb cli ] </code></pre></div> <p dir="auto">It get's more interesting a bit further down in the log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! npm timing build:link Completed in 126ms npm ERR! npm info run [email protected] install node_modules/iltorb node ./scripts/install.js || node-gyp rebuild npm ERR! npm info run [email protected] install { code: 1, signal: null } npm ERR! npm timing reify:rollback:createSparse Completed in 1809ms npm ERR! npm timing reify:rollback:retireShallow Completed in 0ms npm ERR! npm timing command:install Completed in 13304ms npm ERR! npm verb stack Error: command failed npm ERR! npm verb stack at ChildProcess.&lt;anonymous&gt; (C:\Users\RudeySH\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27) npm ERR! npm verb stack at ChildProcess.emit (events.js:400:28) npm ERR! npm verb stack at maybeClose (internal/child_process.js:1058:16) npm ERR! npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5) npm ERR! npm verb pkgid [email protected] npm ERR! npm verb cwd C:\Users\RudeySH\AppData\Local\npm-cache\_cacache\tmp\git-cloneO1YrvZ npm ERR! npm verb Windows_NT 10.0.19042 npm ERR! npm verb argv &quot;C:\\Program Files (x86)\\nodejs\\node.exe&quot; &quot;C:\\Users\\RudeySH\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;install&quot; &quot;--force&quot; &quot;--cache=C:\\Users\\RudeySH\\AppData\\Local\\npm-cache&quot; &quot;--prefer-offline=false&quot; &quot;--prefer-online=false&quot; &quot;--offline=false&quot; &quot;--no-progress&quot; &quot;--no-save&quot; &quot;--no-audit&quot; &quot;--include=dev&quot; &quot;--include=peer&quot; &quot;--include=optional&quot; &quot;--no-package-lock-only&quot; &quot;--no-dry-run&quot; npm ERR! npm verb node v14.18.1 npm ERR! npm verb npm v8.1.1 npm ERR! npm ERR! code 1 npm ERR! npm ERR! path C:\Users\RudeySH\AppData\Local\npm-cache\_cacache\tmp\git-cloneO1YrvZ\node_modules\iltorb npm ERR! npm ERR! command failed npm ERR! npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./scripts/install.js || node-gyp rebuild"><pre class="notranslate"><code class="notranslate">npm ERR! npm timing build:link Completed in 126ms npm ERR! npm info run [email protected] install node_modules/iltorb node ./scripts/install.js || node-gyp rebuild npm ERR! npm info run [email protected] install { code: 1, signal: null } npm ERR! npm timing reify:rollback:createSparse Completed in 1809ms npm ERR! npm timing reify:rollback:retireShallow Completed in 0ms npm ERR! npm timing command:install Completed in 13304ms npm ERR! npm verb stack Error: command failed npm ERR! npm verb stack at ChildProcess.&lt;anonymous&gt; (C:\Users\RudeySH\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27) npm ERR! npm verb stack at ChildProcess.emit (events.js:400:28) npm ERR! npm verb stack at maybeClose (internal/child_process.js:1058:16) npm ERR! npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5) npm ERR! npm verb pkgid [email protected] npm ERR! npm verb cwd C:\Users\RudeySH\AppData\Local\npm-cache\_cacache\tmp\git-cloneO1YrvZ npm ERR! npm verb Windows_NT 10.0.19042 npm ERR! npm verb argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\RudeySH\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--force" "--cache=C:\\Users\\RudeySH\\AppData\\Local\\npm-cache" "--prefer-offline=false" "--prefer-online=false" "--offline=false" "--no-progress" "--no-save" "--no-audit" "--include=dev" "--include=peer" "--include=optional" "--no-package-lock-only" "--no-dry-run" npm ERR! npm verb node v14.18.1 npm ERR! npm verb npm v8.1.1 npm ERR! npm ERR! code 1 npm ERR! npm ERR! path C:\Users\RudeySH\AppData\Local\npm-cache\_cacache\tmp\git-cloneO1YrvZ\node_modules\iltorb npm ERR! npm ERR! command failed npm ERR! npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./scripts/install.js || node-gyp rebuild </code></pre></div> <p dir="auto">I'm not sure why the cli is using the deprecated <code class="notranslate">iltorb</code> package, but it's readme states the following:</p> <blockquote> <h3 dir="auto">Prerequisites for Building</h3> <p dir="auto">The following is required to build from source or when a <a href="https://github.com/nstepien/iltorb/releases">pre-compiled binary</a> does not exist.</p> <ul dir="auto"> <li>Python 2.7</li> <li>GCC 4.8+ (Unix) or <a href="https://github.com/felixrieseberg/windows-build-tools">windows-build-tools</a> (Windows), see <a href="https://github.com/nodejs/node-gyp#installation">Node Building tools</a>.</li> </ul> </blockquote> <p dir="auto">I'm guessing a pre-compiled binary doesn't exist, and that is why it's calling <code class="notranslate">node-gyp rebuild</code>.</p> <p dir="auto">I don't have Python nor <code class="notranslate">windows-build-tools</code> nor Visual C/C++ Build Tools installed, and I don't want to. I'm not trying to build native addons for for Node.js, after all.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Npm 7 and later versions should not require developers to install Python, nor should it require developers to install C/C++ development tools, if their project does not involve building native addons for Node.js. Just like npm 6 didn't have this requirement.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Install [email protected] on a machine that does not have Python or C/C++ development tools</li> <li>In a new empty folder, run <code class="notranslate">npm init -y</code></li> <li>Install a popular npm package, for example <code class="notranslate">npm i -D [email protected]</code></li> <li>Run <code class="notranslate">npm install</code></li> <li>See error...</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: Windows_NT 10.0.19042</li> <li>Node: v14.18.1</li> <li>npm: v8.1.1</li> </ul>
0
<p dir="auto">I created a self-signed certificate with OpenSSL and started a TLS server with Deno. I was able to start the server without problems, but when sending a request from the browser the server crashed. I received two different error messages from Firefox and Chrome. It is clear that a self-signed certificate is not suitable for production systems, but usually it can be temporarily bypassed in the browser by setting "Advanced" and "I'll take the risk".</p> <p dir="auto">I created the certificates with the following command:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="openssl req -nodes -new -x509 -keyout server.key -out server.cert"><pre class="notranslate"><code class="notranslate">openssl req -nodes -new -x509 -keyout server.key -out server.cert </code></pre></div> <p dir="auto">Then created a <a href="https://gist.github.com/Caesar2011/eba3b46e944ef221100f6be79c0e3e7d">minimal working example</a>:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { serveTLS } from &quot;https://deno.land/x/[email protected]/http/server.ts&quot;; const options = { port: 3000, hostname: &quot;0.0.0.0&quot;, certFile: &quot;./server.cert&quot;, keyFile: &quot;./server.key&quot; }; const s = serveTLS(options); for await (const req of s) { req.respond({body: &quot;Hello World&quot;}); }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">serveTLS</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/x/[email protected]/http/server.ts"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">port</span>: <span class="pl-c1">3000</span><span class="pl-kos">,</span> <span class="pl-c1">hostname</span>: <span class="pl-s">"0.0.0.0"</span><span class="pl-kos">,</span> <span class="pl-c1">certFile</span>: <span class="pl-s">"./server.cert"</span><span class="pl-kos">,</span> <span class="pl-c1">keyFile</span>: <span class="pl-s">"./server.key"</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-en">serveTLS</span><span class="pl-kos">(</span><span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-k">await</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">req</span> <span class="pl-k">of</span> <span class="pl-s1">s</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-en">respond</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">body</span>: <span class="pl-s">"Hello World"</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 ran it with the following command:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno run --allow-all https://gist.githubusercontent.com/Caesar2011/eba3b46e944ef221100f6be79c0e3e7d/raw/15bd52963d6a27787ed9261f1b78d8a05bf5058e/deno_bad_certificate.ts"><pre class="notranslate">$ deno run --allow-all https://gist.githubusercontent.com/Caesar2011/eba3b46e944ef221100f6be79c0e3e7d/raw/15bd52963d6a27787ed9261f1b78d8a05bf5058e/deno_bad_certificate.ts</pre></div> <p dir="auto">My version of Deno:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno --version deno 1.0.1 v8 8.4.300 typescript 3.9.2"><pre class="notranslate">$ deno --version deno 1.0.1 v8 8.4.300 typescript 3.9.2</pre></div> <p dir="auto">In a browser, the server is then accessible at:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="https://0.0.0.0:3000/"><pre class="notranslate"><code class="notranslate">https://0.0.0.0:3000/ </code></pre></div> <p dir="auto">Server crash/shutdown after a call in Firefox (76.0.1, Ubuntu):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR RS - rustls::session:514 - TLS alert received: Message { typ: Alert, version: TLSv1_3, payload: Alert( AlertMessagePayload { level: Fatal, description: BadCertificate, }, ), } error: Uncaught InvalidData: received fatal alert: BadCertificate at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11) at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10) at async TLSListenerImpl.accept ($deno$/tls.ts:31:17) at async Server.acceptConnAndIterateHttpRequests (https://deno.land/x/[email protected]/http/server.ts:221:14) at async MuxAsyncIterator.callIteratorNext (https://deno.land/x/[email protected]/async/mux_async_iterator.ts:28:29)"><pre class="notranslate"><code class="notranslate">ERROR RS - rustls::session:514 - TLS alert received: Message { typ: Alert, version: TLSv1_3, payload: Alert( AlertMessagePayload { level: Fatal, description: BadCertificate, }, ), } error: Uncaught InvalidData: received fatal alert: BadCertificate at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11) at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10) at async TLSListenerImpl.accept ($deno$/tls.ts:31:17) at async Server.acceptConnAndIterateHttpRequests (https://deno.land/x/[email protected]/http/server.ts:221:14) at async MuxAsyncIterator.callIteratorNext (https://deno.land/x/[email protected]/async/mux_async_iterator.ts:28:29) </code></pre></div> <p dir="auto">Server crash/shutdown after a call in Chromium (81.0.4044.138, Ubuntu):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR RS - rustls::session:514 - TLS alert received: Message { typ: Alert, version: TLSv1_3, payload: Alert( AlertMessagePayload { level: Fatal, description: CertificateUnknown, }, ), } error: Uncaught InvalidData: received fatal alert: CertificateUnknown at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11) at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10) at async TLSListenerImpl.accept ($deno$/tls.ts:31:17) at async Server.acceptConnAndIterateHttpRequests (https://deno.land/x/[email protected]/http/server.ts:221:14) at async MuxAsyncIterator.callIteratorNext (https://deno.land/x/[email protected]/async/mux_async_iterator.ts:28:29)"><pre class="notranslate"><code class="notranslate">ERROR RS - rustls::session:514 - TLS alert received: Message { typ: Alert, version: TLSv1_3, payload: Alert( AlertMessagePayload { level: Fatal, description: CertificateUnknown, }, ), } error: Uncaught InvalidData: received fatal alert: CertificateUnknown at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11) at Object.sendAsync ($deno$/ops/dispatch_json.ts:98:10) at async TLSListenerImpl.accept ($deno$/tls.ts:31:17) at async Server.acceptConnAndIterateHttpRequests (https://deno.land/x/[email protected]/http/server.ts:221:14) at async MuxAsyncIterator.callIteratorNext (https://deno.land/x/[email protected]/async/mux_async_iterator.ts:28:29) </code></pre></div>
<p dir="auto">Here's a quick reproducer, given:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import ajv from &quot;https://cdn.skypack.dev/[email protected]?dts&quot;;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">ajv</span> <span class="pl-k">from</span> <span class="pl-s">"https://cdn.skypack.dev/[email protected]?dts"</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><code class="notranslate">deno</code> (<code class="notranslate">eval</code>, <code class="notranslate">run</code>, <code class="notranslate">cache</code>, etc.) will hang forever, with 100% CPU usage:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="docker run -it --rm denoland/deno:1.15.3 deno eval 'import ajv from &quot;https://cdn.skypack.dev/[email protected]?dts&quot;' "><pre class="notranslate">docker run -it --rm denoland/deno:1.15.3 deno <span class="pl-c1">eval</span> <span class="pl-s"><span class="pl-pds">'</span>import ajv from "https://cdn.skypack.dev/[email protected]?dts"<span class="pl-pds">'</span></span> </pre></div> <p dir="auto">This used to work perfectly with <code class="notranslate">1.14.x</code> and below:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="docker run -it --rm denoland/deno:1.14.3 deno eval 'import ajv from &quot;https://cdn.skypack.dev/[email protected]?dts&quot;' "><pre class="notranslate">docker run -it --rm denoland/deno:1.14.3 deno <span class="pl-c1">eval</span> <span class="pl-s"><span class="pl-pds">'</span>import ajv from "https://cdn.skypack.dev/[email protected]?dts"<span class="pl-pds">'</span></span> </pre></div> <p dir="auto">This seemed to exhibit the behavior of an infinite loop or recursion.</p>
0
<p dir="auto">Hi, we are seeing this error</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/378859/30689628-d46232a2-9ec1-11e7-8fbf-5b81c3b3bcc0.jpeg"><img src="https://user-images.githubusercontent.com/378859/30689628-d46232a2-9ec1-11e7-8fbf-5b81c3b3bcc0.jpeg" alt="screenshot_20170919_161441" style="max-width: 100%;"></a></p> <p dir="auto">but the React Developer Tools is saying this</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/378859/30689654-ebe05864-9ec1-11e7-8000-9fe165cc6f9a.jpg"><img src="https://user-images.githubusercontent.com/378859/30689654-ebe05864-9ec1-11e7-8000-9fe165cc6f9a.jpg" alt="reach_notification" style="max-width: 100%;"></a></p> <p dir="auto">We use <code class="notranslate">NODE_ENV=production</code> to build our js file (using browserify) and I also tried out <code class="notranslate">envify</code> but no luck. The red warning doesn't disappear.</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> <em>bug</em> (I think)</p> <p dir="auto"><strong>What is the current behavior?</strong><br> Here's a <a href="https://codesandbox.io/s/0ml3roomr0" rel="nofollow">codesandbox</a>. Or just plop this in an <code class="notranslate">index.html</code>:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;body&gt; &lt;div id=&quot;root&quot;&gt;&lt;/div&gt; &lt;script src=&quot;https://unpkg.com/[email protected]/umd/react.development.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;https://unpkg.com/[email protected]/umd/react-dom.development.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;https://unpkg.com/[email protected]/babel.js&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/babel&quot;&gt; function makeRenderable(fn, valueGetter) { const ITERATOR_SYMBOL = (typeof Symbol === 'function' &amp;&amp; Symbol.iterator) || '@@iterator' function iterator() { let timesCalled = 0 return { next() { const done = timesCalled++ &gt; 0 return {done, value: done ? undefined : valueGetter()} }, } } fn[ITERATOR_SYMBOL] = iterator return fn } const renderableFunction = makeRenderable(function(a, b) { // kinda irrelevant what goes on in here... return a + b }, () =&gt; 'I am the rendered version of the function') function Working() { return ( &lt;div&gt; This works: &lt;div&gt;{renderableFunction}&lt;/div&gt; &lt;/div&gt; ) } function NotWorking() { return &lt;div&gt;This does not work: {renderableFunction}&lt;/div&gt; } ReactDOM.render( &lt;div&gt; &lt;Working /&gt; &lt;hr /&gt; &lt;NotWorking /&gt; &lt;/div&gt;, document.getElementById('root'), ) &lt;/script&gt; &lt;/body&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">root</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">https://unpkg.com/[email protected]/umd/react.development.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">https://unpkg.com/[email protected]/umd/react-dom.development.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">https://unpkg.com/[email protected]/babel.js</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span> <span class="pl-c1">type</span>="<span class="pl-s">text/babel</span>"<span class="pl-kos">&gt;</span> <span class="pl-k">function</span> <span class="pl-en">makeRenderable</span><span class="pl-kos">(</span><span class="pl-s1">fn</span><span class="pl-kos">,</span> <span class="pl-s1">valueGetter</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-c1">ITERATOR_SYMBOL</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-v">Symbol</span> <span class="pl-c1">===</span> <span class="pl-s">'function'</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">iterator</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-s">'@@iterator'</span> <span class="pl-k">function</span> <span class="pl-en">iterator</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">timesCalled</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-en">next</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">done</span> <span class="pl-c1">=</span> <span class="pl-s1">timesCalled</span><span class="pl-c1">++</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span> <span class="pl-k">return</span> <span class="pl-kos">{</span>done<span class="pl-kos">,</span> <span class="pl-c1">value</span>: <span class="pl-s1">done</span> ? <span class="pl-c1">undefined</span> : <span class="pl-s1">valueGetter</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-s1">fn</span><span class="pl-kos">[</span><span class="pl-c1">ITERATOR_SYMBOL</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">iterator</span> <span class="pl-k">return</span> <span class="pl-s1">fn</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-s1">renderableFunction</span> <span class="pl-c1">=</span> <span class="pl-en">makeRenderable</span><span class="pl-kos">(</span><span class="pl-k">function</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-c">// kinda irrelevant what goes on in here...</span> <span class="pl-k">return</span> <span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-s1">b</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s">'I am the rendered version of the function'</span><span class="pl-kos">)</span> <span class="pl-k">function</span> <span class="pl-v">Working</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-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> This works: <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">renderableFunction</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-v">NotWorking</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span>This does not work: <span class="pl-kos">{</span><span class="pl-s1">renderableFunction</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Working</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">hr</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">NotWorking</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">'root'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">)</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">I expect that things will render the same regardless of whether they're an only child or a member of an array of children.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">Yes, <a href="https://codesandbox.io/s/8zlpvjzjy9" rel="nofollow">it worked in React@15</a>.</p> <p dir="auto"><strong>Suggested Solution</strong></p> <p dir="auto">I'm fairly confident that the issue is in the array of children case, the <a href="https://github.com/facebook/react/blob/2c0a8fb99e945315c9dce7a15c85775d51f5755d/packages/react-reconciler/src/ReactChildFiber.js#L578-L586"><code class="notranslate">getIteratorFn</code> call</a> is within a <code class="notranslate">typeof newChild === 'object' &amp;&amp; newChild !== null</code> if statement, whereas the original <a href="https://github.com/facebook/react/blob/2c0a8fb99e945315c9dce7a15c85775d51f5755d/packages/react-reconciler/src/ReactChildFiber.js#L1358">reconcileChildFibers</a> puts the <a href="https://github.com/facebook/react/blob/2c0a8fb99e945315c9dce7a15c85775d51f5755d/packages/react-reconciler/src/ReactChildFiber.js#L1434-L1441"><code class="notranslate">getIteratorFn</code> call outside it</a>.</p> <p dir="auto">If I'm not mistaken, a simple fix would be to move <a href="https://github.com/facebook/react/blob/2c0a8fb99e945315c9dce7a15c85775d51f5755d/packages/react-reconciler/src/ReactChildFiber.js#L589">this curly brace</a> a few lines up πŸ˜‰</p> <p dir="auto">I'm happy to do so complete with a test given a little direction (like, where the test should go). Thanks!</p>
0
<p dir="auto">Request header keys are being encoded and then checked for later. In python 3 this is causing issues.</p> <p dir="auto">In an example use case, if <code class="notranslate">Content-Type</code> is explicitly set, when making a post request, you end up getting both the user-set type and the default type, eg: <code class="notranslate">application/x-www-form-urlencoded</code>.</p> <p dir="auto"><a href="https://github.com/kennethreitz/requests/blob/master/requests/models.py#L364">https://github.com/kennethreitz/requests/blob/master/requests/models.py#L364</a></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="headers = dict((name.encode('ascii'), value) for name, value in headers.items())"><pre class="notranslate"><span class="pl-s1">headers</span> <span class="pl-c1">=</span> <span class="pl-en">dict</span>((<span class="pl-s1">name</span>.<span class="pl-en">encode</span>(<span class="pl-s">'ascii'</span>), <span class="pl-s1">value</span>) <span class="pl-k">for</span> <span class="pl-s1">name</span>, <span class="pl-s1">value</span> <span class="pl-c1">in</span> <span class="pl-s1">headers</span>.<span class="pl-en">items</span>())</pre></div> <p dir="auto"><a href="https://github.com/kennethreitz/requests/blob/master/requests/models.py#L417">https://github.com/kennethreitz/requests/blob/master/requests/models.py#L417</a></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Add content-type if it wasn't explicitly provided. if (content_type) and (not 'content-type' in self.headers): self.headers['Content-Type'] = content_type"><pre class="notranslate"><span class="pl-c"># Add content-type if it wasn't explicitly provided.</span> <span class="pl-k">if</span> (<span class="pl-s1">content_type</span>) <span class="pl-c1">and</span> (<span class="pl-c1">not</span> <span class="pl-s">'content-type'</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">headers</span>): <span class="pl-s1">self</span>.<span class="pl-s1">headers</span>[<span class="pl-s">'Content-Type'</span>] <span class="pl-c1">=</span> <span class="pl-s1">content_type</span></pre></div>
<h2 dir="auto">Summary</h2> <p dir="auto">Started getting SSLError when invoking API using requests module.<br> SSLError: HTTPSConnectionPool(host=', port=443): Max retries exceeded with url: /oauth/token (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))</p> <p dir="auto">Just to add that this is on RHEL</p> <blockquote> <blockquote> <blockquote> <p dir="auto">ssl.OPENSSL_VERSION<br> 'OpenSSL 1.0.1e-fips 11 Feb 2013'</p> </blockquote> </blockquote> </blockquote> <p dir="auto">The system openssl is<br> Version : 1.0.1e,<br> Release : 58.el6_10</p> <p dir="auto">python was built using source.</p> <h2 dir="auto">Expected Result</h2> <p dir="auto">Was not expecting an SSLError. This is not a problem with the source website as the same call works fine using postman. Could this have anything to do with letsencryt root certificate expiration?</p> <h2 dir="auto">Actual Result</h2> <p dir="auto">SSLError: HTTPSConnectionPool(host=', port=443): Max retries exceeded with url: /oauth/token (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),))</p> <h2 dir="auto">Reproduction Steps</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Invoke API using python requests and without verify=False "><pre class="notranslate"><code class="notranslate">Invoke API using python requests and without verify=False </code></pre></div> <h2 dir="auto">System Information</h2> <p dir="auto">Just to add that this is on RHEL</p> <blockquote> <blockquote> <blockquote> <p dir="auto">ssl.OPENSSL_VERSION<br> 'OpenSSL 1.0.1e-fips 11 Feb 2013'</p> </blockquote> </blockquote> </blockquote> <p dir="auto">The system openssl is<br> Version : 1.0.1e,<br> Release : 58.el6_10</p> <p dir="auto">python was built using source.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;chardet&quot;: { &quot;version&quot;: &quot;4.0.0&quot; }, &quot;charset_normalizer&quot;: { &quot;version&quot;: null }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;2.10&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;2.7.9&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;2.6.32-754.9.1.el6.x86_64&quot;, &quot;system&quot;: &quot;Linux&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;&quot;, &quot;version&quot;: null }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.26.0&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;1000105f&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.26.6&quot; }, &quot;using_charset_normalizer&quot;: false, &quot;using_pyopenssl&quot;: false } "><pre class="notranslate"><code class="notranslate">{ "chardet": { "version": "4.0.0" }, "charset_normalizer": { "version": null }, "cryptography": { "version": "" }, "idna": { "version": "2.10" }, "implementation": { "name": "CPython", "version": "2.7.9" }, "platform": { "release": "2.6.32-754.9.1.el6.x86_64", "system": "Linux" }, "pyOpenSSL": { "openssl_version": "", "version": null }, "requests": { "version": "2.26.0" }, "system_ssl": { "version": "1000105f" }, "urllib3": { "version": "1.26.6" }, "using_charset_normalizer": false, "using_pyopenssl": false } </code></pre></div> <p dir="auto">This command is only available on Requests v2.16.4 and greater. Otherwise,<br> please provide some basic information about your system (Python version,<br> operating system, &amp;c).</p>
0
<p dir="auto">I have a Vim workflow that I am having trouble recreating in Atom. Most of my tabs consist of a split, for a file and its tests:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d39f891b97086db324b1fd6c2cc6f25dcc267e7aba205b085d40af5b4423cff1/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f31323637362f3839363037342f31393562336566382d666164392d313165322d386263622d3830653835616237616238652e706e67"><img src="https://camo.githubusercontent.com/d39f891b97086db324b1fd6c2cc6f25dcc267e7aba205b085d40af5b4423cff1/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f31323637362f3839363037342f31393562336566382d666164392d313165322d386263622d3830653835616237616238652e706e67" alt="srt_imports rb _github_talks_app_concerns_talk - vim" data-canonical-src="https://f.cloud.github.com/assets/12676/896074/195b3ef8-fad9-11e2-8bcb-80e85ab7ab8e.png" style="max-width: 100%;"></a></p> <p dir="auto">Thus I can <code class="notranslate">{</code> and <code class="notranslate">}</code> my way through tabs and <code class="notranslate">[</code> and <code class="notranslate">]</code> my way through splits within them, and all was right with the world. My splits are about keeping related files together, not separate panes or editors.</p> <p dir="auto">The modeling of <code class="notranslate">Pane</code> and <code class="notranslate">EditSession</code> doesn't really allow this right now. It's fairly easy to see a number of ways to do it, but I was stymied when I started to edit core stuff by things marked as internal. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kevinsawicki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kevinsawicki">@kevinsawicki</a> said to ignore that, so I'm going to slowly work on something that works for me. But he also said to make an issue, so here it is. I'm hoping that one of you core guys sees a super easy way to do it :)</p>
<p dir="auto">Halp ticket:</p> <ul dir="auto"> <li>support/7866493ac7c811e394e434282a9ab820</li> </ul> <blockquote> <p dir="auto">If an untitled document is dragged from one atom window to another, a "save/don't save" window pops up in the source window. In addition to that, the duplicates title is 'undefined' instead of 'untitled'.</p> </blockquote> <p dir="auto">I can't reproduce this exact error (strange, because the user who reported this is on 0.89.0, as am I), but I still see errors in the console when dragging an untitled tab to another window:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Arguments to path.join must be strings path.js:378 (anonymous function) path.js:378 exports.join path.js:376 module.exports.Project.resolve /Applications/Atom.app/Contents/Resources/app/src/project.js:162 module.exports.Workspace.open /Applications/Atom.app/Contents/Resources/app/src/workspace.js:121 module.exports.TabBarView.onDrop /Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:362 (anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:3 jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676 elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Arguments to path.join must be strings path.js:378 (anonymous function) path.js:378 exports.join path.js:376 module.exports.Project.resolve /Applications/Atom.app/Contents/Resources/app/src/project.js:162 module.exports.Workspace.open /Applications/Atom.app/Contents/Resources/app/src/workspace.js:121 module.exports.TabBarView.onDrop /Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:362 (anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:3 jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676 elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360 </code></pre></div>
0
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Ubuntu 15.10 (64-bit)</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Enter<br> <code class="notranslate">asm("movw $0x38, %ax; ltr %ax");</code></li> </ol> <p dir="auto">Example:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12996728/13906801/fa879c4e-eedf-11e5-8a39-7c23dc8ba57f.png"><img src="https://cloud.githubusercontent.com/assets/12996728/13906801/fa879c4e-eedf-11e5-8a39-7c23dc8ba57f.png" alt="screenshot from 2016-03-20 21-08-40" style="max-width: 100%;"></a></p>
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Windows 7</li> </ul> <h2 dir="auto">Issue 1:</h2> <p dir="auto">In the following code (using C++ syntax highlighting), the string literal(s) are not highlighted at all.<br> This issue is exclusive to C++ syntax highlighting and does not occur with C syntax highlighting.</p> <h4 dir="auto">Code:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int main() { printf(&quot;%s\n&quot;, &quot;a string&quot;); }"><pre class="notranslate"><code class="notranslate">int main() { printf("%s\n", "a string"); } </code></pre></div> <h4 dir="auto">Result</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/c-vs-cpp.png"><img src="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/c-vs-cpp.png" alt="Bug Screenshot" style="max-width: 100%;"></a></p> <h2 dir="auto">Issue 2:</h2> <p dir="auto">In custom tmLanguage based colorizers that reference source.c from within rules that begin with certain patterns, the inlined C highlighting is incorrect (this issue also applies to rules using source.c++ but does not occur in rules using source.js).</p> <h4 dir="auto">Code</h4> <p dir="auto">(See <a href="https://github.com/SE2Dev/VSCode-BugExample">https://github.com/SE2Dev/VSCode-BugExample</a>)</p> <h4 dir="auto">Result</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/screenshot.png"><img src="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/screenshot.png" alt="Bug Screenshot" style="max-width: 100%;"></a></p>
1
<p dir="auto">Hi, after customizing my layout the download give the following error.txt:</p> <p dir="auto">{"type":"Parse","message":"Syntax Error on line 810","index":25572,"filename":"bootstrap.css","line":810,"column":11,"extract":[" *margin: -5px 0 5px;"," ove rflow: hidden;"," background-color: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/top/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/top">@top</a>;"]}</p> <p dir="auto">I dont know whats wrong?</p>
<p dir="auto">I'm trying to get Bootsrap through Customize, but every time I get a blank boostrap.css and file error.txt with the error:</p> <blockquote> <p dir="auto">A less error occured trying to build your bundle.<br> You've likely entered an invalid input into the less variable field. Check your syntax and try again!<br> Β  thanks!</p> <p dir="auto">{"type": "Parse", "message": "Syntax Error on line 792", "index": 25106, "filename": "bootstrap.css", "line": 792, "column": 11, "extract ": [" * margin:-5px 0 5px; "," ove rflow: hidden; "," background-color: @ top; "]}</p><p dir="auto"></p> </blockquote> <p dir="auto">My Settings: all items marked, except Icons.</p> <p dir="auto">What is the problem?</p>
1
<p dir="auto">I am using Angular 2.0.0-beta.12 &amp; D3, i am injecting D3 barchart after viewInit, and inject css in component by adding attribute "styles", element injected and display on browser, but css is not apply on dynamic elements which are created by D3, found an issue, after component initialization css embed in document head tag, and all css selectors changed to .myClass[_ngcontent-[variable]], and this variable attribute attached to all elements of that component, but not with dynamically appended components.</p> <p dir="auto">here are my code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({ selector: 'app', template: ` &lt;h1&gt;D3.js Integrated if background is yellow&lt;/h1&gt; style apply on this static element but not dynamic element &lt;svg&gt;&lt;rect class=&quot;bar&quot; width=&quot;200&quot; height=&quot;200&quot;&gt;&lt;/rect&gt;&lt;/svg&gt; `, styles : [`.bar { fill: steelblue; } .bar:hover { fill: brown; } ` ] }) class App { constructor(public elementRef: ElementRef){ } ngOnInit(){ var componentContainer = d3.select(this.elementRef.nativeElement); componentContainer.select(&quot;h1&quot;).style(&quot;background-color&quot;, &quot;yellow&quot;); //Dynamic Element Injeciton componentContainer.append(&quot;svg&quot;) .append(&quot;rect&quot;) .attr(&quot;class&quot;, &quot;bar&quot;) .attr(&quot;width&quot;, 200) .attr(&quot;height&quot;, 200); } }"><pre class="notranslate"><code class="notranslate">@Component({ selector: 'app', template: ` &lt;h1&gt;D3.js Integrated if background is yellow&lt;/h1&gt; style apply on this static element but not dynamic element &lt;svg&gt;&lt;rect class="bar" width="200" height="200"&gt;&lt;/rect&gt;&lt;/svg&gt; `, styles : [`.bar { fill: steelblue; } .bar:hover { fill: brown; } ` ] }) class App { constructor(public elementRef: ElementRef){ } ngOnInit(){ var componentContainer = d3.select(this.elementRef.nativeElement); componentContainer.select("h1").style("background-color", "yellow"); //Dynamic Element Injeciton componentContainer.append("svg") .append("rect") .attr("class", "bar") .attr("width", 200) .attr("height", 200); } } </code></pre></div>
<p dir="auto">currently there are several layers in our build system that log and rethrow exceptions, we need to unify these and suppress errors (or stack traces for errors) so that the output is easy to understand and doesn't contain duplicate messages or useless stack traces.</p> <p dir="auto">Sources of exceptions/exception logging:</p> <ul dir="auto"> <li>broccoli plugins</li> <li>angular_builder.ts</li> <li>gulp's runSequence</li> <li>gulp's tasks</li> </ul> <p dir="auto">common scenarios to tackle:</p> <p dir="auto">interactive/watch mode:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> typescript compilation error</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> traceur compilation error</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> karma browser test failure/error (<code class="notranslate">gulp test.unit.js</code>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> jasmine test failure/error (<code class="notranslate">gulp test.unit.cjs</code>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ts2dart errors</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> dart unit tests failures/errors</li> </ul> <p dir="auto">ci mode:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> typescript compilation error</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> traceur compilation error</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> karma browser test failure/error (<code class="notranslate">gulp test.unit.js</code>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> jasmine test failure/error (<code class="notranslate">gulp test.unit.cjs</code>)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ts2dart errors</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> dart unit tests failures/errors</li> </ul> <p dir="auto">WIP branch resolving some errors: <a href="https://github.com/angular/angular/compare/master...IgorMinar:tripple-errors?expand=1">https://github.com/angular/angular/compare/master...IgorMinar:tripple-errors?expand=1</a></p>
0
<h2 dir="auto">Table header horizontal line</h2> <p dir="auto">The horizontal line in the header table component doesn't behave correctly. It doesn't move when the whole table moves. For example, <a href="http://www.material-ui.com/#/components/table" rel="nofollow">http://www.material-ui.com/#/components/table</a></p> <h2 dir="auto">Versions</h2> <ul dir="auto"> <li>Material-UI: 0.14.4, 0.15.0</li> <li>React:</li> <li>Browser: Chrome</li> </ul>
<p dir="auto">Hello,</p> <p dir="auto">I noticed the border-bottom width does not resize when resizing window. To repeat this create simple table and then open browser window as default with small size and put it to fullscreen.</p> <p dir="auto">-XDVarpunen</p>
1
<p dir="auto">Build: <a href="https://github.visualstudio.com/electron/_build/results?buildId=14677&amp;view=logs" rel="nofollow">https://github.visualstudio.com/electron/_build/results?buildId=14677&amp;view=logs</a><br> Patch: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="368655813" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/15056" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/15056/hovercard" href="https://github.com/electron/electron/pull/15056">#15056</a></p> <p dir="auto">We should fix this properly instead of patching out the <code class="notranslate">sys.exit</code></p>
<ul dir="auto"> <li>Electron version: 0.36.9</li> <li>Operating system: Mac OSX 10.11.14</li> </ul> <p dir="auto">When I click on a link that triggers a file download, it emits a <code class="notranslate">did-fail-load</code> event with an error code <code class="notranslate">-3</code>. The download works and is saved as expected though.</p> <p dir="auto">As a side note, I was calling <code class="notranslate">loadURL</code> in the <code class="notranslate">did-fail-load</code> handler which caused Electron to crash. I can provide the full dump for that if you'd like.</p> <p dir="auto">Let me know if you'd like any more details.</p>
0
<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>:<br> No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br> Windows 10</li> <li><strong>TensorFlow installed from (source or binary)</strong>:<br> source</li> <li><strong>TensorFlow version (use command below)</strong>:<br> r1.5</li> <li><strong>Python version</strong>:<br> 3.6</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:<br> Visual Studio 2017</li> <li><strong>CUDA/cuDNN version</strong>:<br> 9.1</li> <li><strong>GPU model and memory</strong>:<br> 1080Ti</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <p dir="auto"><strong>Cmake Command:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cmake -G &quot;Visual Studio 15 2017 Win64&quot; -T host=x64 -DCMAKE_BUILD_TYPE=&quot; Release&quot; -DSWIG_EXECUTABLE='C:\ProgramData\Chocolatey\bin\swig.exe' -Dtensorflow_ENABLE_GPU=ON -Dtensorflow_CUDA_VERSION =9.1 -Dtensorflow_CUDNN_VERSION=7 -Dtensorflow_WIN_CPU_SIMD_OPTIONS=&quot;/arch:AVX2&quot; -DCUDA_CUDART_LIBRARY=D:\NVIDIA\CUDA\v9 .1 -DCUDNN_HOME='D:\NVIDIA\CUDA\v9.1' .."><pre class="notranslate"><code class="notranslate">cmake -G "Visual Studio 15 2017 Win64" -T host=x64 -DCMAKE_BUILD_TYPE=" Release" -DSWIG_EXECUTABLE='C:\ProgramData\Chocolatey\bin\swig.exe' -Dtensorflow_ENABLE_GPU=ON -Dtensorflow_CUDA_VERSION =9.1 -Dtensorflow_CUDNN_VERSION=7 -Dtensorflow_WIN_CPU_SIMD_OPTIONS="/arch:AVX2" -DCUDA_CUDART_LIBRARY=D:\NVIDIA\CUDA\v9 .1 -DCUDNN_HOME='D:\NVIDIA\CUDA\v9.1' .. </code></pre></div> <p dir="auto"><strong>Build command</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MSBuild.exe&quot; /m:4 /p:Configuration=Release .\tf_core_gpu_kernels.vcxproj"><pre class="notranslate"><code class="notranslate">"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MSBuild.exe" /m:4 /p:Configuration=Release .\tf_core_gpu_kernels.vcxproj </code></pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Cmake creates a bad command to send to nvcc.exe</p> <p dir="auto">In tf_core_gpu_kernels_generated_adjust_contrast_op_gpu.cu.cc.obj.Release.cmake:202L<br> there is an error with the resulting command.</p> <p dir="auto">There is issues with spacing, ";" in between arguments and others.</p> <p dir="auto"><strong>Command Ran</strong><br> <code class="notranslate">C:/NVIDIA/CUDA/v9.1/bin/nvcc.exe -M -D__CUDACC__ D:/tensorflow/tensorflow/core/kernels/adjust_contrast_op_gpu.cu.cc -o D:/tensorflow/tensorflow/contrib/cmake/build/CMakeFiles/tf_core_gpu_kernels.dir/__/__/core/kernels/tf_core_gpu_kernels_generated_adjust_contrast_op_gpu.cu.cc.obj.NVCC-depend -ccbin;C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/bin -m64;-DSQLITE_OMIT_LOAD_EXTENSION;-DEIGEN_AVOID_STL_ARRAY;-DNOMINMAX;-D_WIN32_WINNT=0x0A00;-DLANG_CXX11;-DCOMPILER_MSVC;-DWIN32;-DOS_WIN;-D_MBCS;-DWIN64;-DWIN32_LEAN_AND_MEAN;-DNOGDI;-DPLATFORM_WINDOWS;-DTENSORFLOW_USE_EIGEN_THREADPOOL;-DEIGEN_HAS_C99_MATH;-DTF_COMPILE_LIBRARY;-DGRPC_ARES=0;-DTF_USE_SNAPPY;-DGOOGLE_CUDA=1;-DTF_EXTRA_CUDA_CAPABILITIES=6.1 -Xcompiler;,"/DWIN32","/D_WINDOWS","/W3","/GR","/EHsc","/MP","/arch:AVX2","/MD","/O2","/Ob2","/DNDEBUG","/D_ITERATOR_DEBUG_LEVEL=0" -gencode;arch=compute_61,code="sm_61,compute_61";--include-path;D:/tensorflow/tensorflow/contrib/cmake/build/Release;--expt-relaxed-constexpr;-ftz=true; -DNVCC -IC:/NVIDIA/CUDA/v9.1/include ;-ID:/tensorflow ;-ID:/tensorflow/tensorflow/contrib/cmake/build ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/zlib_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/gif_archive/giflib-5.1.4 ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/png_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/jpeg_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/lmdb ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/eigen_archive ;-ID:/tensorflow/third_party/eigen3 ;-ID:/tensorflow/tensorflow/contrib/cmake/build/gemmlowp/src/gemmlowp ;-ID:/tensorflow/tensorflow/contrib/cmake/build/jsoncpp/src/jsoncpp ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive/util ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/highwayhash ;-ID:/tensorflow/tensorflow/contrib/cmake/build/cub/src/cub ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/nsync/public ;-ID:/tensorflow/tensorflow/contrib/cmake/build/protobuf/src/protobuf/src ;-ID:/tensorflow/tensorflow/contrib/cmake/build/re2/install/include ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/sqlite ;-ID:/tensorflow/tensorflow/contrib/cmake/build/grpc/src/grpc/include ;-ID:/tensorflow/tensorflow/contrib/cmake/build/snappy/src/snappy ;-IC:/NVIDIA/CUDA/v9.1 ;-IC:/NVIDIA/CUDA/v9.1/extras/CUPTI/include ;-ID:/tensorflow/third_party/gpus</code></p> <p dir="auto">Multable invalid cmake varables</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="${CCBIN} = -ccbin;C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/bin ${nvcc_flags} = -m64;-DSQLITE_OMIT_LOAD_EXTENSION;-DEIGEN_AVOID_STL_ARRAY;-DNOMINMAX;-D_WIN32_WINNT=0x0A00;-DLANG_CXX11;-DCOMPILER_MSVC;-DWIN32;-DOS_WIN;-D_MBCS;-DWIN64;-DWIN32_LEAN_AND_MEAN;-DNOGDI;-DPLATFORM_WINDOWS;-DTENSORFLOW_USE_EIGEN_THREADPOOL;-DEIGEN_HAS_C99_MATH;-DTF_COMPILE_LIBRARY;-DGRPC_ARES=0;-DTF_USE_SNAPPY;-DGOOGLE_CUDA=1;-DTF_EXTRA_CUDA_CAPABILITIES=6.1 ${nvcc_host_compiler_flags} = -Xcompiler;,&quot;/DWIN32&quot;,&quot;/D_WINDOWS&quot;,&quot;/W3&quot;,&quot;/GR&quot;,&quot;/EHsc&quot;,&quot;/MP&quot;,&quot;/arch:AVX2&quot;,&quot;/MD&quot;,&quot;/O2&quot;,&quot;/Ob2&quot;,&quot;/DNDEBUG&quot;,&quot;/D_ITERATOR_DEBUG_LEVEL=0&quot; ${depends_CUDA_NVCC_FLAGS} = -gencode;arch=compute_61,code=&quot;sm_61,compute_61&quot;;--include-path;D:/tensorflow/tensorflow/contrib/cmake/build/Release;--expt-relaxed-constexpr;-ftz=true ${CUDA_NVCC_INCLUDE_ARGS} = -IC:/NVIDIA/CUDA/v9.1/include ;-ID:/tensorflow ;-ID:/tensorflow/tensorflow/contrib/cmake/build ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/zlib_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/gif_archive/giflib-5.1.4 ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/png_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/jpeg_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/lmdb ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/eigen_archive ;-ID:/tensorflow/third_party/eigen3 ;-ID:/tensorflow/tensorflow/contrib/cmake/build/gemmlowp/src/gemmlowp ;-ID:/tensorflow/tensorflow/contrib/cmake/build/jsoncpp/src/jsoncpp ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive/util ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/highwayhash ;-ID:/tensorflow/tensorflow/contrib/cmake/build/cub/src/cub ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/nsync/public ;-ID:/tensorflow/tensorflow/contrib/cmake/build/protobuf/src/protobuf/src ;-ID:/tensorflow/tensorflow/contrib/cmake/build/re2/install/include ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/sqlite ;-ID:/tensorflow/tensorflow/contrib/cmake/build/grpc/src/grpc/include ;-ID:/tensorflow/tensorflow/contrib/cmake/build/snappy/src/snappy ;-IC:/NVIDIA/CUDA/v9.1 ;-IC:/NVIDIA/CUDA/v9.1/extras/CUPTI/include ;-ID:/tensorflow/third_party/gpus"><pre class="notranslate"><code class="notranslate">${CCBIN} = -ccbin;C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/bin ${nvcc_flags} = -m64;-DSQLITE_OMIT_LOAD_EXTENSION;-DEIGEN_AVOID_STL_ARRAY;-DNOMINMAX;-D_WIN32_WINNT=0x0A00;-DLANG_CXX11;-DCOMPILER_MSVC;-DWIN32;-DOS_WIN;-D_MBCS;-DWIN64;-DWIN32_LEAN_AND_MEAN;-DNOGDI;-DPLATFORM_WINDOWS;-DTENSORFLOW_USE_EIGEN_THREADPOOL;-DEIGEN_HAS_C99_MATH;-DTF_COMPILE_LIBRARY;-DGRPC_ARES=0;-DTF_USE_SNAPPY;-DGOOGLE_CUDA=1;-DTF_EXTRA_CUDA_CAPABILITIES=6.1 ${nvcc_host_compiler_flags} = -Xcompiler;,"/DWIN32","/D_WINDOWS","/W3","/GR","/EHsc","/MP","/arch:AVX2","/MD","/O2","/Ob2","/DNDEBUG","/D_ITERATOR_DEBUG_LEVEL=0" ${depends_CUDA_NVCC_FLAGS} = -gencode;arch=compute_61,code="sm_61,compute_61";--include-path;D:/tensorflow/tensorflow/contrib/cmake/build/Release;--expt-relaxed-constexpr;-ftz=true ${CUDA_NVCC_INCLUDE_ARGS} = -IC:/NVIDIA/CUDA/v9.1/include ;-ID:/tensorflow ;-ID:/tensorflow/tensorflow/contrib/cmake/build ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/zlib_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/gif_archive/giflib-5.1.4 ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/png_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/jpeg_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/lmdb ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/eigen_archive ;-ID:/tensorflow/third_party/eigen3 ;-ID:/tensorflow/tensorflow/contrib/cmake/build/gemmlowp/src/gemmlowp ;-ID:/tensorflow/tensorflow/contrib/cmake/build/jsoncpp/src/jsoncpp ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive/util ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/highwayhash ;-ID:/tensorflow/tensorflow/contrib/cmake/build/cub/src/cub ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/nsync/public ;-ID:/tensorflow/tensorflow/contrib/cmake/build/protobuf/src/protobuf/src ;-ID:/tensorflow/tensorflow/contrib/cmake/build/re2/install/include ;-ID:/tensorflow/tensorflow/contrib/cmake/build/external/sqlite ;-ID:/tensorflow/tensorflow/contrib/cmake/build/grpc/src/grpc/include ;-ID:/tensorflow/tensorflow/contrib/cmake/build/snappy/src/snappy ;-IC:/NVIDIA/CUDA/v9.1 ;-IC:/NVIDIA/CUDA/v9.1/extras/CUPTI/include ;-ID:/tensorflow/third_party/gpus </code></pre></div> <p dir="auto">Should be</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="${CCBIN} = -ccbin &quot;C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/bin&quot; ${nvcc_flags} = -m64 -DSQLITE_OMIT_LOAD_EXTENSION -DEIGEN_AVOID_STL_ARRAY -DNOMINMAX -D_WIN32_WINNT=0x0A00 -DLANG_CXX11 -DCOMPILER_MSVC -DWIN32 -DOS_WIN -D_MBCS -DWIN64 -DWIN32_LEAN_AND_MEAN -DNOGDI -DPLATFORM_WINDOWS -DTENSORFLOW_USE_EIGEN_THREADPOOL -DEIGEN_HAS_C99_MATH -DTF_COMPILE_LIBRARY -DGRPC_ARES=0 -DTF_USE_SNAPPY -DGOOGLE_CUDA=1 -DTF_EXTRA_CUDA_CAPABILITIES=6.1 ${nvcc_host_compiler_flags} = -Xcompiler &quot;/DWIN32,/D_WINDOWS,/W3,/GR,/EHsc,/MP,/arch:AVX2,/MD,/O2,/Ob2,/DNDEBUG,/D_ITERATOR_DEBUG_LEVEL=0&quot; ${depends_CUDA_NVCC_FLAGS} = -gencode arch=compute_61,code=\&quot;sm_61,compute_61\&quot; --include-path D:/tensorflow/tensorflow/contrib/cmake/build/Release --expt-relaxed-constexpr -ftz=true ${CUDA_NVCC_INCLUDE_ARGS} = -IC:/NVIDIA/CUDA/v9.1/include -ID:/tensorflow -ID:/tensorflow/tensorflow/contrib/cmake/build -ID:/tensorflow/tensorflow/contrib/cmake/build/external/zlib_archive -ID:/tensorflow/tensorflow/contrib/cmake/build/external/gif_archive/giflib-5.1.4 -ID:/tensorflow/tensorflow/contrib/cmake/build/external/png_archive -ID:/tensorflow/tensorflow/contrib/cmake/build/external/jpeg_archive -ID:/tensorflow/tensorflow/contrib/cmake/build/external/lmdb -ID:/tensorflow/tensorflow/contrib/cmake/build/external/eigen_archive -ID:/tensorflow/third_party/eigen3 -ID:/tensorflow/tensorflow/contrib/cmake/build/gemmlowp/src/gemmlowp -ID:/tensorflow/tensorflow/contrib/cmake/build/jsoncpp/src/jsoncpp -ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive -ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive/util -ID:/tensorflow/tensorflow/contrib/cmake/build/external/highwayhash -ID:/tensorflow/tensorflow/contrib/cmake/build/cub/src/cub -ID:/tensorflow/tensorflow/contrib/cmake/build/external/nsync/public -ID:/tensorflow/tensorflow/contrib/cmake/build/protobuf/src/protobuf/src -ID:/tensorflow/tensorflow/contrib/cmake/build/re2/install/include -ID:/tensorflow/tensorflow/contrib/cmake/build/external/sqlite -ID:/tensorflow/tensorflow/contrib/cmake/build/grpc/src/grpc/include -ID:/tensorflow/tensorflow/contrib/cmake/build/snappy/src/snappy -IC:/NVIDIA/CUDA/v9.1 -IC:/NVIDIA/CUDA/v9.1/extras/CUPTI/include -ID:/tensorflow/third_party/gpus "><pre class="notranslate"><code class="notranslate">${CCBIN} = -ccbin "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/bin" ${nvcc_flags} = -m64 -DSQLITE_OMIT_LOAD_EXTENSION -DEIGEN_AVOID_STL_ARRAY -DNOMINMAX -D_WIN32_WINNT=0x0A00 -DLANG_CXX11 -DCOMPILER_MSVC -DWIN32 -DOS_WIN -D_MBCS -DWIN64 -DWIN32_LEAN_AND_MEAN -DNOGDI -DPLATFORM_WINDOWS -DTENSORFLOW_USE_EIGEN_THREADPOOL -DEIGEN_HAS_C99_MATH -DTF_COMPILE_LIBRARY -DGRPC_ARES=0 -DTF_USE_SNAPPY -DGOOGLE_CUDA=1 -DTF_EXTRA_CUDA_CAPABILITIES=6.1 ${nvcc_host_compiler_flags} = -Xcompiler "/DWIN32,/D_WINDOWS,/W3,/GR,/EHsc,/MP,/arch:AVX2,/MD,/O2,/Ob2,/DNDEBUG,/D_ITERATOR_DEBUG_LEVEL=0" ${depends_CUDA_NVCC_FLAGS} = -gencode arch=compute_61,code=\"sm_61,compute_61\" --include-path D:/tensorflow/tensorflow/contrib/cmake/build/Release --expt-relaxed-constexpr -ftz=true ${CUDA_NVCC_INCLUDE_ARGS} = -IC:/NVIDIA/CUDA/v9.1/include -ID:/tensorflow -ID:/tensorflow/tensorflow/contrib/cmake/build -ID:/tensorflow/tensorflow/contrib/cmake/build/external/zlib_archive -ID:/tensorflow/tensorflow/contrib/cmake/build/external/gif_archive/giflib-5.1.4 -ID:/tensorflow/tensorflow/contrib/cmake/build/external/png_archive -ID:/tensorflow/tensorflow/contrib/cmake/build/external/jpeg_archive -ID:/tensorflow/tensorflow/contrib/cmake/build/external/lmdb -ID:/tensorflow/tensorflow/contrib/cmake/build/external/eigen_archive -ID:/tensorflow/third_party/eigen3 -ID:/tensorflow/tensorflow/contrib/cmake/build/gemmlowp/src/gemmlowp -ID:/tensorflow/tensorflow/contrib/cmake/build/jsoncpp/src/jsoncpp -ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive -ID:/tensorflow/tensorflow/contrib/cmake/build/external/farmhash_archive/util -ID:/tensorflow/tensorflow/contrib/cmake/build/external/highwayhash -ID:/tensorflow/tensorflow/contrib/cmake/build/cub/src/cub -ID:/tensorflow/tensorflow/contrib/cmake/build/external/nsync/public -ID:/tensorflow/tensorflow/contrib/cmake/build/protobuf/src/protobuf/src -ID:/tensorflow/tensorflow/contrib/cmake/build/re2/install/include -ID:/tensorflow/tensorflow/contrib/cmake/build/external/sqlite -ID:/tensorflow/tensorflow/contrib/cmake/build/grpc/src/grpc/include -ID:/tensorflow/tensorflow/contrib/cmake/build/snappy/src/snappy -IC:/NVIDIA/CUDA/v9.1 -IC:/NVIDIA/CUDA/v9.1/extras/CUPTI/include -ID:/tensorflow/third_party/gpus </code></pre></div>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:<br> No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br> Windows 10</li> <li><strong>TensorFlow installed from (source or binary)</strong>:<br> Source</li> <li><strong>TensorFlow version (use command below)</strong>:<br> 1.5.0-dev20180103<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/25d275280dfb163674f81c7681c2c1d34545a155/hovercard" href="https://github.com/tensorflow/tensorflow/commit/25d275280dfb163674f81c7681c2c1d34545a155"><tt>25d2752</tt></a></li> <li><strong>Python version</strong>:<br> 3.5.4</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>:<br> 9.0 with cuDNN 7</li> <li><strong>GPU model and memory</strong>:<br> GeForce GTX 1060 6GB</li> <li><strong>Exact command to reproduce</strong>:<br> Open Visual Studio x64 Native Tools Command Prompt with admin rights.<br> using MSBuild 15.5.180.51428,</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cmake .. -A x64 -DCMAKE_BUILD_TYPE=Release ^ -DSWIG_EXECUTABLE=C:/tools/swigwin-3.0.12/swig.exe ^ -DPYTHON_EXECUTABLE=C:\Users\csemp\AppData\Local\Programs\Python\Python35\python.exe ^ -DPYTHON_LIBRARIES=C:\Users\csemp\AppData\Local\Programs\Python\Python35\libs\python35.lib ^ -Dtensorflow_ENABLE_GPU=ON ^ -DCUDNN_HOME=&quot;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0&quot; ^ -Dtensorflow_WIN_CPU_SIMD_OPTIONS=/arch:AVX ^ -Dtensorflow_BUILD_CC_EXAMPLE=OFF set PreferredToolArchitecture=x64 &quot;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MSBuild.exe&quot; /m:2 /p:Configuration=Release tf_python_build_pip_package.vcxproj /v:diag &gt; diag.log"><pre class="notranslate"><code class="notranslate">cmake .. -A x64 -DCMAKE_BUILD_TYPE=Release ^ -DSWIG_EXECUTABLE=C:/tools/swigwin-3.0.12/swig.exe ^ -DPYTHON_EXECUTABLE=C:\Users\csemp\AppData\Local\Programs\Python\Python35\python.exe ^ -DPYTHON_LIBRARIES=C:\Users\csemp\AppData\Local\Programs\Python\Python35\libs\python35.lib ^ -Dtensorflow_ENABLE_GPU=ON ^ -DCUDNN_HOME="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0" ^ -Dtensorflow_WIN_CPU_SIMD_OPTIONS=/arch:AVX ^ -Dtensorflow_BUILD_CC_EXAMPLE=OFF set PreferredToolArchitecture=x64 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MSBuild.exe" /m:2 /p:Configuration=Release tf_python_build_pip_package.vcxproj /v:diag &gt; diag.log </code></pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">The build fails with the error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 133&gt;CustomBuild: (TargetId:8893) CMake Error at tf_core_gpu_kernels_generated_adjust_contrast_op_gpu.cu.cc.obj.Release.cmake:222 (message): (TaskId:3323) Error generating (TaskId:3323) C:/Users/csemp/dev/tensorflowbuild/tensorflow/tensorflow/contrib/cmake/build/CMakeFiles/tf_core_gpu_kernels.dir/__/__/core/kernels/Release/tf_core_gpu_kernels_generated_adjust_contrast_op_gpu.cu.cc.obj (TaskId:3323) (TaskId:3323) (TaskId:3323)"><pre class="notranslate"><code class="notranslate"> 133&gt;CustomBuild: (TargetId:8893) CMake Error at tf_core_gpu_kernels_generated_adjust_contrast_op_gpu.cu.cc.obj.Release.cmake:222 (message): (TaskId:3323) Error generating (TaskId:3323) C:/Users/csemp/dev/tensorflowbuild/tensorflow/tensorflow/contrib/cmake/build/CMakeFiles/tf_core_gpu_kernels.dir/__/__/core/kernels/Release/tf_core_gpu_kernels_generated_adjust_contrast_op_gpu.cu.cc.obj (TaskId:3323) (TaskId:3323) (TaskId:3323) </code></pre></div> <p dir="auto">It also has the error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(ClCompile target) -&gt; C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\algorithm(2417): error C2678: binary '*': no operator found which takes a left-hand operand of type 'const tensorflow::boosted_trees::utils::`anonymous-namespace'::IndicesRowIterator' (or there is no acceptable conversion) (compiling source file C:\Users\csemp\dev\tensorflowbuild2\tensorflow\tensorflow\contrib\boosted_trees\lib\utils\sparse_column_iterable.cc) [C:\Users\csemp\dev\tensorflowbuild2\tensorflow\tensorflow\contrib\cmake\build\tf_core_kernels.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\algorithm(2417): error C2100: illegal indirection (compiling source file C:\Users\csemp\dev\tensorflowbuild2\tensorflow\tensorflow\contrib\boosted_trees\lib\utils\sparse_column_iterable.cc) [C:\Users\csemp\dev\tensorflowbuild2\tensorflow\tensorflow\contrib\cmake\build\tf_core_kernels.vcxproj]"><pre class="notranslate"><code class="notranslate">(ClCompile target) -&gt; C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\algorithm(2417): error C2678: binary '*': no operator found which takes a left-hand operand of type 'const tensorflow::boosted_trees::utils::`anonymous-namespace'::IndicesRowIterator' (or there is no acceptable conversion) (compiling source file C:\Users\csemp\dev\tensorflowbuild2\tensorflow\tensorflow\contrib\boosted_trees\lib\utils\sparse_column_iterable.cc) [C:\Users\csemp\dev\tensorflowbuild2\tensorflow\tensorflow\contrib\cmake\build\tf_core_kernels.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include\algorithm(2417): error C2100: illegal indirection (compiling source file C:\Users\csemp\dev\tensorflowbuild2\tensorflow\tensorflow\contrib\boosted_trees\lib\utils\sparse_column_iterable.cc) [C:\Users\csemp\dev\tensorflowbuild2\tensorflow\tensorflow\contrib\cmake\build\tf_core_kernels.vcxproj] </code></pre></div> <p dir="auto">the latter of which can be fixed by a simple change, as noted in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="286565094" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/15925" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/15925/hovercard?comment_id=356275963&amp;comment_type=issue_comment" href="https://github.com/tensorflow/tensorflow/issues/15925#issuecomment-356275963">#15925 (comment)</a> .<br> Creating this new issue per <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gunan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gunan">@gunan</a>'s request<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="275089746" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/14691" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/14691/hovercard?comment_id=356846982&amp;comment_type=issue_comment" href="https://github.com/tensorflow/tensorflow/issues/14691#issuecomment-356846982">#14691 (comment)</a></p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">The log file is way too big to post apparently. I'm open to suggestions</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">Hi there,</p> <p dir="auto">I want to setup this node_module <a href="https://react-styleguidist.js.org/docs/webpack#create-react-app-typescript" rel="nofollow">https://react-styleguidist.js.org/docs/webpack#create-react-app-typescript</a></p> <p dir="auto">and in order for it to work, it needs to access the webpack.config, how do I go about exposing that to this node_module?</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">I built my Next app and deployed it as I usually do, but when loading the page, I got the following on the browser:</p> <p dir="auto"><code class="notranslate">Uncaught ReferenceError: webpackJsonp is not defined</code> in main.js 1:1</p> <p dir="auto">Also, all JS interactivity was broken, but the style/design of the website was looking okay.</p> <p dir="auto">Here is the beginning of main.js file:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = webpackJsonp([0],{"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-s1">webpackJsonp</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">,</span><span class="pl-kos">{</span></pre></div> <p dir="auto">I rebuilt and redeployed the application and it disappeared.</p> <p dir="auto">I believe it is because I had a running Next.js app while building, and I was changing the code on it, which trigger other rebuilds. It probably messed up the build process (the first main.js wasn't uglified at all, while the new/fixed version I have now is correctly uglified/onelined)</p> <p dir="auto">I'm reporting the issue because I could have not noticed it, maybe something should be done when a build is ran when another build is in process. The main issue is deploying a non-working app to production without noticing it. I agree that's a very particular use case, which is very hard to reproduce. People shouldn't be building while doing modification to the source code with a watcher enabled. =D</p>
0
<p dir="auto">Hi!</p> <p dir="auto">I'm trying to prepare dataset splits for a problem I'm working on, and would ultimately like a hybrid of Stratified K-Fold and Grouped K-Fold. Is there a way to accomplish this using logic already built into sklearn? If not, where would be the right place for me to add it/do you have any suggestions for how to get started before I give it a go?</p> <p dir="auto">For a bit more context, my dataset is a considerably larger version of the following structure:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="groups = [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4] # you can think of this as a sample-id y = [1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] # this is some trait of the samples "><pre class="notranslate"><span class="pl-s1">groups</span> <span class="pl-c1">=</span> [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>, <span class="pl-c1">4</span>, <span class="pl-c1">4</span>] <span class="pl-c"># you can think of this as a sample-id</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>] <span class="pl-c"># this is some trait of the samples </span></pre></div> <p dir="auto">The objective would be to balance <code class="notranslate">y</code> across the train and test sets, and have each <code class="notranslate">group</code> only represented on one side of the folds. Thanks in advance!</p>
<h4 dir="auto">Description</h4> <p dir="auto">Currently sklearn does not have a stratified group kfold feature. Either we can use stratification or we can use group kfold. However, it would be good to have both.</p> <p dir="auto">I would like to implement it, if we decide to have it.</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.6</li> <li>Operating System / Platform =&gt; centos6.3</li> <li>Compiler =&gt; 4.8.2</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I try to build opencv3.4.6 but the below errors occurs:</p> <p dir="auto">[ 57%] Built target opencv_imgcodecs<br> [ 57%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o<br> BullseyeCoverage Compile C++ 8.13.21 Linux-x64 License 3179<br> Copyright (c) Bullseye Testing Technology 1990-2017<br> BullseyeCoverage Compile C++ 8.13.21 Linux-x64 License 3179<br> Copyright (c) Bullseye Testing Technology 1990-2017<br> /home/work/meicheng/opencv/opencv-3.4.6/modules/videoio/src/cap_v4l.cpp: In function 'int cv::capPropertyToV4L2(int)':<br> /home/work/meicheng/opencv/opencv-3.4.6/modules/videoio/src/cap_v4l.cpp:1614:9: error: 'V4L2_CID_ROTATE' was not declared in this scope<br> return V4L2_CID_ROTATE;<br> ^<br> /home/work/meicheng/opencv/opencv-3.4.6/modules/videoio/src/cap_v4l.cpp:1616:9: error: 'V4L2_CID_IRIS_ABSOLUTE' was not declared in this scope<br> return V4L2_CID_IRIS_ABSOLUTE;<br> ^<br> BullseyeCoverage error: status 1 from /opt/compiler/gcc-4.8.2/bin/c++<br> make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:154: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o] Error 1<br> make[1]: *** [CMakeFiles/Makefile2:2515: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2<br> make: *** [Makefile:163: all] Error 2</p> <p dir="auto">My cmake command is:<br> cmake -DBUILD_SHARED_LIBS=OFF -DBUILD_opencv_dnn=OFF -DBUILD_opencv_contrib=OFF -DBUILD_opencv_video=OFF -DBUILD_opencv_photo=OFF ..</p> <p dir="auto">I execlude some modules because some compile errors happens.<br> But I can not exclude opencv_imgcodecs, so what's the solution?<br> Thanks in advance.</p> <h5 dir="auto">Steps to reproduce</h5>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.7</li> <li>Operating System / Platform =&gt; ubuntu18.04 x86_64</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">When I try to run my program which can be compiled without error, it said:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error while loading shared libraries: libopencv_world.so.3.4: cannot open shared object file: No such file or directory"><pre class="notranslate">error <span class="pl-k">while</span> loading shared libraries: libopencv_world.so.3.4: cannot open shared object file: No such file or directory</pre></div> <p dir="auto">When I have installed opencv (nothing error happened while compiling), I try to exec opencv_test_core and errors happen.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[ RUN ] Core_InputOutput.filestorage_base64_basic_read_XML /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure Expected equality of these values: (int)rawdata[i].u1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure Expected equality of these values: (int)rawdata[i].u2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure Expected equality of these values: (int)rawdata[i].i1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure Expected equality of these values: (int)rawdata[i].i2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure Expected equality of these values: (int)rawdata[i].i3 Which is: 0 3 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure Expected equality of these values: rawdata[i].d1 Which is: 0 0.1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure Expected equality of these values: rawdata[i].d2 Which is: 0 0.2 i = 0 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure Expected equality of these values: (int)rawdata[i].u1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure Expected equality of these values: (int)rawdata[i].u2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure Expected equality of these values: (int)rawdata[i].i1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure Expected equality of these values: (int)rawdata[i].i2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure Expected equality of these values: (int)rawdata[i].i3 Which is: 0 3 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure Expected equality of these values: rawdata[i].d1 Which is: 0 0.1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure Expected equality of these values: rawdata[i].d2 Which is: 0 0.2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:781: Failure Expected equality of these values: (int)rawdata[i].i4 Which is: 0 i Which is: 1 i = 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure Expected equality of these values: (int)rawdata[i].u1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure Expected equality of these values: (int)rawdata[i].u2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure Expected equality of these values: (int)rawdata[i].i1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure Expected equality of these values: (int)rawdata[i].i2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure Expected equality of these values: (int)rawdata[i].i3 Which is: 0 3 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure Expected equality of these values: rawdata[i].d1 Which is: 0 0.1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure Expected equality of these values: rawdata[i].d2 Which is: 0 0.2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:781: Failure Expected equality of these values: (int)rawdata[i].i4 Which is: 0 i Which is: 2 i = 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:798: Failure Expected equality of these values: _2d_in.rows Which is: 0 _2d_out.rows Which is: 10 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:799: Failure Expected equality of these values: _2d_in.cols Which is: 0 _2d_out.cols Which is: 20 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:800: Failure Expected equality of these values: _2d_in.dims Which is: 0 _2d_out.dims Which is: 2 *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated *** longjmp causes uninitialized stack frame ***: ./bin/opencv_test_core terminated [1] 25343 segmentation fault (core dumped) ./bin/opencv_test_core "><pre class="notranslate">[ RUN ] Core_InputOutput.filestorage_base64_basic_read_XML /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure Expected equality of these values: (int)rawdata[i].u1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure Expected equality of these values: (int)rawdata[i].u2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure Expected equality of these values: (int)rawdata[i].i1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure Expected equality of these values: (int)rawdata[i].i2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure Expected equality of these values: (int)rawdata[i].i3 Which is: 0 3 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure Expected equality of these values: rawdata[i].d1 Which is: 0 0.1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure Expected equality of these values: rawdata[i].d2 Which is: 0 0.2 i = 0 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure Expected equality of these values: (int)rawdata[i].u1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure Expected equality of these values: (int)rawdata[i].u2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure Expected equality of these values: (int)rawdata[i].i1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure Expected equality of these values: (int)rawdata[i].i2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure Expected equality of these values: (int)rawdata[i].i3 Which is: 0 3 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure Expected equality of these values: rawdata[i].d1 Which is: 0 0.1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure Expected equality of these values: rawdata[i].d2 Which is: 0 0.2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:781: Failure Expected equality of these values: (int)rawdata[i].i4 Which is: 0 i Which is: 1 i = 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:774: Failure Expected equality of these values: (int)rawdata[i].u1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:775: Failure Expected equality of these values: (int)rawdata[i].u2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:776: Failure Expected equality of these values: (int)rawdata[i].i1 Which is: 0 1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:777: Failure Expected equality of these values: (int)rawdata[i].i2 Which is: 0 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:778: Failure Expected equality of these values: (int)rawdata[i].i3 Which is: 0 3 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:779: Failure Expected equality of these values: rawdata[i].d1 Which is: 0 0.1 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:780: Failure Expected equality of these values: rawdata[i].d2 Which is: 0 0.2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:781: Failure Expected equality of these values: (int)rawdata[i].i4 Which is: 0 i Which is: 2 i = 2 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:798: Failure Expected equality of these values: _2d_in.rows Which is: 0 _2d_out.rows Which is: 10 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:799: Failure Expected equality of these values: _2d_in.cols Which is: 0 _2d_out.cols Which is: 20 /home/wang/Downloads/opencv-3.4.7/modules/core/test/test_io.cpp:800: Failure Expected equality of these values: _2d_in.dims Which is: 0 _2d_out.dims Which is: 2 <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated <span class="pl-k">***</span> longjmp causes uninitialized stack frame <span class="pl-k">***</span>: ./bin/opencv_test_core terminated [1] 25343 segmentation fault (core dumped) ./bin/opencv_test_core </pre></div>
0
<p dir="auto">Just now i download the Bootstrap Customized version and extract the file, in css folder contains only the two error.txt files.</p> <p dir="auto">In that error.txt file contain:-<br> A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!</p> <p dir="auto">thanks!</p> <p dir="auto">{"type":"Parse","message":"missing opening <code class="notranslate">{</code>","filename":"bootstrap.css","index":374741,"line":6383,"column":0,"extract":["}","",null]}</p> <p dir="auto">Now what can i do and how to download my customized css version file..</p> <p dir="auto">Thank U,</p> <p dir="auto">vjn_23</p>
<p dir="auto">when the user try to download a custom version only without the responsive 1200, the navbar, and the hero unit, the download get an error &gt;<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a833b492623744c08cac234ce7e1fb244d8d916418ddc35e8cde0d02b55c225a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313039393538392f3532313734322f64333762313564302d626664312d313165322d393836652d6433363863333032343961612e706e67"><img src="https://camo.githubusercontent.com/a833b492623744c08cac234ce7e1fb244d8d916418ddc35e8cde0d02b55c225a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313039393538392f3532313734322f64333762313564302d626664312d313165322d393836652d6433363863333032343961612e706e67" alt="captura de pantalla 2013-05-18 a la s 10 42 15" data-canonical-src="https://f.cloud.github.com/assets/1099589/521742/d37b15d0-bfd1-11e2-986e-d368c30249aa.png" style="max-width: 100%;"></a></p> <p dir="auto">"""<br> A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!</p> <p dir="auto">thanks!</p> <p dir="auto">{}</p> <p dir="auto">"""</p>
1
<p dir="auto">Tried this code and it works flawless with files &lt; 2GB but as soon as I'm using files &gt; 2GB it gives me an error.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="e = MultipartEncoder(fields=dict( file=(rfbase, open(filename, 'rb'), 'text/plain') )) m = MultipartEncoderMonitor(e, my_callback) uploadInfo = requests.request('POST', uploadURL,data=m,headers={'Content-Type': m.content_type}) It gives me the following error: File &quot;D:/Upload-Tool/req.py&quot;, line 86, in upload uploadInfo = requests.request(&quot;POST&quot;, uploadURL,data=m,headers={'Content-Type': m.content_type}) File &quot;C:\Python27\lib\site-packages\requests\api.py&quot;, line 50, in request response = session.request(method=method, url=url, **kwargs) File &quot;C:\Python27\lib\site-packages\requests\sessions.py&quot;, line 444, in request data = data or {}, File &quot;C:\Python27\lib\site-packages\requests_toolbelt\multipart\encoder.py&quot;, line 292, in __len__ return len(self.encoder) File &quot;C:\Python27\lib\site-packages\requests_toolbelt\multipart\encoder.py&quot;, line 96, in __len__ return self._len or self._calculate_length() File &quot;C:\Python27\lib\site-packages\requests_toolbelt\multipart\encoder.py&quot;, line 111, in _calculate_length ) + boundary_len + 4 File &quot;C:\Python27\lib\site-packages\requests_toolbelt\multipart\encoder.py&quot;, line 110, in &lt;genexpr&gt; (boundary_len + len(p) + 4) for p in self.parts File &quot;C:\Python27\lib\site-packages\requests_toolbelt\multipart\encoder.py&quot;, line 377, in __len__ return len(self.headers) + super_len(self.body) File &quot;C:\Python27\lib\site-packages\requests\utils.py&quot;, line 52, in super_len return len(o) OverflowError: long int too large to convert to int"><pre class="notranslate"><span class="pl-s1">e</span> <span class="pl-c1">=</span> <span class="pl-v">MultipartEncoder</span>(<span class="pl-s1">fields</span><span class="pl-c1">=</span><span class="pl-en">dict</span>( <span class="pl-s1">file</span><span class="pl-c1">=</span>(<span class="pl-s1">rfbase</span>, <span class="pl-en">open</span>(<span class="pl-s1">filename</span>, <span class="pl-s">'rb'</span>), <span class="pl-s">'text/plain'</span>) )) <span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-v">MultipartEncoderMonitor</span>(<span class="pl-s1">e</span>, <span class="pl-s1">my_callback</span>) <span class="pl-s1">uploadInfo</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">request</span>(<span class="pl-s">'POST'</span>, <span class="pl-s1">uploadURL</span>,<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">m</span>,<span class="pl-s1">headers</span><span class="pl-c1">=</span>{<span class="pl-s">'Content-Type'</span>: <span class="pl-s1">m</span>.<span class="pl-s1">content_type</span>}) <span class="pl-v">It</span> <span class="pl-s1">gives</span> <span class="pl-s1">me</span> <span class="pl-s1">the</span> <span class="pl-s1">following</span> <span class="pl-s1">error</span>: <span class="pl-v">File</span> <span class="pl-s">"D:/Upload-Tool/req.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">86</span>, <span class="pl-c1">in</span> <span class="pl-s1">upload</span> <span class="pl-s1">uploadInfo</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">request</span>(<span class="pl-s">"POST"</span>, <span class="pl-s1">uploadURL</span>,<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">m</span>,<span class="pl-s1">headers</span><span class="pl-c1">=</span>{<span class="pl-s">'Content-Type'</span>: <span class="pl-s1">m</span>.<span class="pl-s1">content_type</span>}) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests<span class="pl-cce">\a</span>pi.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">50</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">request</span>(<span class="pl-s1">method</span><span class="pl-c1">=</span><span class="pl-s1">method</span>, <span class="pl-s1">url</span><span class="pl-c1">=</span><span class="pl-s1">url</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">444</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span> <span class="pl-c1">or</span> {}, <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests_toolbelt\multipart\encoder.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">292</span>, <span class="pl-s1">in</span> <span class="pl-s1">__len__</span> <span class="pl-k">return</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">encoder</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests_toolbelt\multipart\encoder.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">96</span>, <span class="pl-s1">in</span> <span class="pl-s1">__len__</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_len</span> <span class="pl-c1">or</span> <span class="pl-s1">self</span>.<span class="pl-en">_calculate_length</span>() <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests_toolbelt\multipart\encoder.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">111</span>, <span class="pl-s1">in</span> <span class="pl-s1">_calculate_length</span> ) <span class="pl-c1">+</span> <span class="pl-s1">boundary_len</span> <span class="pl-c1">+</span> <span class="pl-c1">4</span> <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests_toolbelt\multipart\encoder.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">110</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">genexpr</span><span class="pl-c1">&gt;</span> (<span class="pl-s1">boundary_len</span> <span class="pl-c1">+</span> <span class="pl-en">len</span>(<span class="pl-s1">p</span>) <span class="pl-c1">+</span> <span class="pl-c1">4</span>) <span class="pl-k">for</span> <span class="pl-s1">p</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">parts</span> <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests_toolbelt\multipart\encoder.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">377</span>, <span class="pl-s1">in</span> <span class="pl-s1">__len__</span> <span class="pl-s1">return</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">headers</span>) <span class="pl-c1">+</span> <span class="pl-en">super_len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">body</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\utils.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">52</span>, <span class="pl-s1">in</span> <span class="pl-s1">super_len</span> <span class="pl-s1">return</span> <span class="pl-en">len</span>(<span class="pl-s1">o</span>) <span class="pl-v">OverflowError</span>: <span class="pl-s1">long</span> <span class="pl-s1">int</span> <span class="pl-s1">too</span> <span class="pl-s1">large</span> <span class="pl-s1">to</span> <span class="pl-s1">convert</span> <span class="pl-s1">to</span> <span class="pl-s1">int</span></pre></div> <p dir="auto">Please help if my code has some errors :)</p> <p dir="auto">edit: sorry, totally forgot to upgrade the toolbelt :) thx. a lot</p>
<p dir="auto">Using Python 3.4.0 and Requests 2.6.0</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" content = MultipartEncoder(fields=[('metadata', (&quot;&quot;, json.dumps(metadata))), ('content', (file_name, open(file_path, 'rb'), mime_type))])"><pre class="notranslate"> <span class="pl-s1">content</span> <span class="pl-c1">=</span> <span class="pl-v">MultipartEncoder</span>(<span class="pl-s1">fields</span><span class="pl-c1">=</span>[(<span class="pl-s">'metadata'</span>, (<span class="pl-s">""</span>, <span class="pl-s1">json</span>.<span class="pl-en">dumps</span>(<span class="pl-s1">metadata</span>))), (<span class="pl-s">'content'</span>, (<span class="pl-s1">file_name</span>, <span class="pl-en">open</span>(<span class="pl-s1">file_path</span>, <span class="pl-s">'rb'</span>), <span class="pl-s1">mime_type</span>))])</pre></div> <p dir="auto">Then, I call requests.post and get this error.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="File &quot;/home/xxxx/upload.py&quot;, line 222, in upload r = requests.post(url, headers=headers, data=content) File &quot;/home/xxxx/upload/venv/lib/python3.4/site-packages/requests/api.py&quot;, line 108, in post return request('post', url, data=data, json=json, **kwargs) File &quot;/home/xxxx/upload/venv/lib/python3.4/site-packages/requests/api.py&quot;, line 50, in request response = session.request(method=method, url=url, **kwargs) File &quot;/home/xxxx/upload/venv/lib/python3.4/site-packages/requests/sessions.py&quot;, line 443, in request data = data or {}, File &quot;/home/xxxx/upload/venv/lib/python3.4/site-packages/requests_toolbelt/multipart/encoder.py&quot;, line 96, in __len__ return self._len or self._calculate_length() File &quot;/home/xxxx/upload/venv/lib/python3.4/site-packages/requests_toolbelt/multipart/encoder.py&quot;, line 111, in _calculate_length ) + boundary_len + 4 File &quot;/home/xxxx/upload/venv/lib/python3.4/site-packages/requests_toolbelt/multipart/encoder.py&quot;, line 110, in &lt;genexpr&gt; (boundary_len + len(p) + 4) for p in self.parts File &quot;/home/xxxx/upload/venv/lib/python3.4/site-packages/requests_toolbelt/multipart/encoder.py&quot;, line 377, in __len__ return len(self.headers) + super_len(self.body) File &quot;/home/xxxx/upload/venv/lib/python3.4/site-packages/requests/utils.py&quot;, line 52, in super_len return len(o) OverflowError: cannot fit 'int' into an index-sized integer"><pre class="notranslate"><span class="pl-v">File</span> <span class="pl-s">"/home/xxxx/upload.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">222</span>, <span class="pl-s1">in</span> <span class="pl-s1">upload</span> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">post</span>(<span class="pl-s1">url</span>, <span class="pl-s1">headers</span><span class="pl-c1">=</span><span class="pl-s1">headers</span>, <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">content</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/xxxx/upload/venv/lib/python3.4/site-packages/requests/api.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">108</span>, <span class="pl-s1">in</span> <span class="pl-s1">post</span> <span class="pl-k">return</span> <span class="pl-en">request</span>(<span class="pl-s">'post'</span>, <span class="pl-s1">url</span>, <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">data</span>, <span class="pl-s1">json</span><span class="pl-c1">=</span><span class="pl-s1">json</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/xxxx/upload/venv/lib/python3.4/site-packages/requests/api.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">50</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">request</span>(<span class="pl-s1">method</span><span class="pl-c1">=</span><span class="pl-s1">method</span>, <span class="pl-s1">url</span><span class="pl-c1">=</span><span class="pl-s1">url</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/xxxx/upload/venv/lib/python3.4/site-packages/requests/sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">443</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span> <span class="pl-c1">or</span> {}, <span class="pl-v">File</span> <span class="pl-s">"/home/xxxx/upload/venv/lib/python3.4/site-packages/requests_toolbelt/multipart/encoder.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">96</span>, <span class="pl-s1">in</span> <span class="pl-s1">__len__</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_len</span> <span class="pl-c1">or</span> <span class="pl-s1">self</span>.<span class="pl-en">_calculate_length</span>() <span class="pl-v">File</span> <span class="pl-s">"/home/xxxx/upload/venv/lib/python3.4/site-packages/requests_toolbelt/multipart/encoder.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">111</span>, <span class="pl-s1">in</span> <span class="pl-s1">_calculate_length</span> ) <span class="pl-c1">+</span> <span class="pl-s1">boundary_len</span> <span class="pl-c1">+</span> <span class="pl-c1">4</span> <span class="pl-v">File</span> <span class="pl-s">"/home/xxxx/upload/venv/lib/python3.4/site-packages/requests_toolbelt/multipart/encoder.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">110</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">genexpr</span><span class="pl-c1">&gt;</span> (<span class="pl-s1">boundary_len</span> <span class="pl-c1">+</span> <span class="pl-en">len</span>(<span class="pl-s1">p</span>) <span class="pl-c1">+</span> <span class="pl-c1">4</span>) <span class="pl-k">for</span> <span class="pl-s1">p</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">parts</span> <span class="pl-v">File</span> <span class="pl-s">"/home/xxxx/upload/venv/lib/python3.4/site-packages/requests_toolbelt/multipart/encoder.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">377</span>, <span class="pl-s1">in</span> <span class="pl-s1">__len__</span> <span class="pl-s1">return</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">headers</span>) <span class="pl-c1">+</span> <span class="pl-en">super_len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">body</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/xxxx/upload/venv/lib/python3.4/site-packages/requests/utils.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">52</span>, <span class="pl-s1">in</span> <span class="pl-s1">super_len</span> <span class="pl-s1">return</span> <span class="pl-en">len</span>(<span class="pl-s1">o</span>) <span class="pl-v">OverflowError</span>: <span class="pl-s1">cannot</span> <span class="pl-s1">fit</span> <span class="pl-s">'int'</span> <span class="pl-s1">into</span> <span class="pl-s1">an</span> <span class="pl-s1">index</span><span class="pl-c1">-</span><span class="pl-s1">sized</span> <span class="pl-s1">integer</span></pre></div> <p dir="auto"><code class="notranslate">__len__</code> can't return values larger than a C int.<br> <a href="http://bugs.python.org/issue21444" rel="nofollow">http://bugs.python.org/issue21444</a></p>
1
<p dir="auto"><strong>Migrated issue, originally created by Denis Otkidach (<a href="https://github.com/ods">@ods</a>)</strong></p> <p dir="auto">The list of tables is the only list of mapped data that automatically collected in <code class="notranslate">MetaData</code> object. So it's the simplest way to construct session with multiple connections where separate connection is used for each metadata. <code class="notranslate">Session.get_bind()</code> does look up based on <code class="notranslate">mapper.mapped_table</code>. This works for simple mapped classes, but doesn't work for classes mapped to join like subclasses with joined table inheritance.</p> <p dir="auto">Test case:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import Column, Integer, ForeignKey, create_engine, orm from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class A(Base): __tablename__ = 'A' id = Column(Integer, primary_key=True) type = Column(Integer, nullable=False) __mapper_args__ = {'polymorphic_on': type} class B(A): __tablename__ = 'B' id = Column(ForeignKey(A.id), primary_key=True) __mapper_args__ = {'polymorphic_identity': 1} engine = create_engine('sqlite://') binds = {table: engine for table in Base.metadata.sorted_tables} db = orm.sessionmaker(binds=binds)() print db.get_bind(A) # Engine(sqlite://) print db.get_bind(B) # sqlalchemy.exc.UnboundExecutionError: Could not locate a bind configured on mapper Mapper|B|B or this Session"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">Column</span>, <span class="pl-v">Integer</span>, <span class="pl-v">ForeignKey</span>, <span class="pl-s1">create_engine</span>, <span class="pl-s1">orm</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">declarative</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span> <span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>() <span class="pl-k">class</span> <span class="pl-v">A</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'A'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">__mapper_args__</span> <span class="pl-c1">=</span> {<span class="pl-s">'polymorphic_on'</span>: <span class="pl-s1">type</span>} <span class="pl-k">class</span> <span class="pl-v">B</span>(<span class="pl-v">A</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'B'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">ForeignKey</span>(<span class="pl-v">A</span>.<span class="pl-s1">id</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">__mapper_args__</span> <span class="pl-c1">=</span> {<span class="pl-s">'polymorphic_identity'</span>: <span class="pl-c1">1</span>} <span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">'sqlite://'</span>) <span class="pl-s1">binds</span> <span class="pl-c1">=</span> {<span class="pl-s1">table</span>: <span class="pl-s1">engine</span> <span class="pl-k">for</span> <span class="pl-s1">table</span> <span class="pl-c1">in</span> <span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-s1">sorted_tables</span>} <span class="pl-s1">db</span> <span class="pl-c1">=</span> <span class="pl-s1">orm</span>.<span class="pl-en">sessionmaker</span>(<span class="pl-s1">binds</span><span class="pl-c1">=</span><span class="pl-s1">binds</span>)() <span class="pl-k">print</span> <span class="pl-s1">db</span>.<span class="pl-en">get_bind</span>(<span class="pl-v">A</span>) <span class="pl-c"># Engine(sqlite://)</span> <span class="pl-k">print</span> <span class="pl-s1">db</span>.<span class="pl-en">get_bind</span>(<span class="pl-v">B</span>) <span class="pl-c"># sqlalchemy.exc.UnboundExecutionError: Could not locate a bind configured on mapper Mapper|B|B or this Session</span></pre></div> <p dir="auto">Should we iterate through tables used in <code class="notranslate">Join</code> object <code class="notranslate">mapper.mapped_table</code> refers to?</p>
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">right now session.__binds uses mappers completely. This makes it impossible to feed in abstract classes and also because it links to base_mapper it's not possible to change the bind along a class hierarchy either (like a concrete hierarchy).</p> <p dir="auto">propose that __binds stores classes directly, and this can likely be a fallback in addition to what we have now. this is kind of a proof of concept</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index 89d9946..f63adfb 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -636,13 +636,20 @@ class Session(_SessionClassMethods): if binds is not None: for mapperortable, bind in binds.items(): - insp = inspect(mapperortable) - if insp.is_selectable: - self.bind_table(mapperortable, bind) - elif insp.is_mapper: - self.bind_mapper(mapperortable, bind) + try: + insp = inspect(mapperortable) + except exc.NoInspectionAvailable: + if isinstance(mapperortable, type): + self.bind_cls(mapperortable, bind) + else: + raise exc.ArgumentError(&quot;Not acceptable bind target: %s&quot; % mapperortable) else: - assert False + if insp.is_selectable: + self.bind_table(mapperortable, bind) + elif insp.is_mapper: + self.bind_mapper(mapperortable, bind) + else: + assert False if not self.autocommit: @@ -1039,6 +1046,17 @@ class Session(_SessionClassMethods): for t in mapper._all_tables: self.__binds[t] = bind + def bind_class(self, cls, bind): + &quot;&quot;&quot;Bind operations for an unmapped class to a Connectable. + + The behavior here is that a subclass of cls which is mapped + will be linked to this bind. + + .. versionadded:: 1.0 + + &quot;&quot;&quot; + self.__binds[cls] = bind + def bind_table(self, table, bind): &quot;&quot;&quot;Bind operations on a Table to a Connectable. @@ -1124,6 +1142,12 @@ class Session(_SessionClassMethods): return self.__binds[c_mapper.base_mapper] elif c_mapper.mapped_table in self.__binds: return self.__binds[c_mapper.mapped_table] + else: + for cls in c_mapper.class_.__mro__: + if cls in self.__binds: + bind = self.__binds[cls] + self.bind_mapper(c_mapper, bind) + return bind if clause is not None: for t in sql_util.find_tables(clause, include_crud=True): if t in self.__binds: "><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index 89d9946..f63adfb 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -636,13 +636,20 @@ class Session(_SessionClassMethods): if binds is not None: for mapperortable, bind in binds.items(): - insp = inspect(mapperortable) - if insp.is_selectable: - self.bind_table(mapperortable, bind) - elif insp.is_mapper: - self.bind_mapper(mapperortable, bind) + try: + insp = inspect(mapperortable) + except exc.NoInspectionAvailable: + if isinstance(mapperortable, type): + self.bind_cls(mapperortable, bind) + else: + raise exc.ArgumentError("Not acceptable bind target: %s" % mapperortable) else: - assert False + if insp.is_selectable: + self.bind_table(mapperortable, bind) + elif insp.is_mapper: + self.bind_mapper(mapperortable, bind) + else: + assert False if not self.autocommit: @@ -1039,6 +1046,17 @@ class Session(_SessionClassMethods): for t in mapper._all_tables: self.__binds[t] = bind + def bind_class(self, cls, bind): + """Bind operations for an unmapped class to a Connectable. + + The behavior here is that a subclass of cls which is mapped + will be linked to this bind. + + .. versionadded:: 1.0 + + """ + self.__binds[cls] = bind + def bind_table(self, table, bind): """Bind operations on a Table to a Connectable. @@ -1124,6 +1142,12 @@ class Session(_SessionClassMethods): return self.__binds[c_mapper.base_mapper] elif c_mapper.mapped_table in self.__binds: return self.__binds[c_mapper.mapped_table] + else: + for cls in c_mapper.class_.__mro__: + if cls in self.__binds: + bind = self.__binds[cls] + self.bind_mapper(c_mapper, bind) + return bind if clause is not None: for t in sql_util.find_tables(clause, include_crud=True): if t in self.__binds: </code></pre></div> <p dir="auto">the tests here also need a rework, with an emphasis on straight unit testing of get_bind(). test_session -&gt; BindTest is really just integration tests.</p>
1
<p dir="auto">I just installed the latest version of Atom yesterday, and have been trying it out. I had an unsaved file open and noticed that soft wrap was not on. I went into the preferences panel, turned it on, and went back to my open file (not saved yet) and soft wrap still wasn't applied.</p> <p dir="auto">Instead, I copied the text, and pasted it into a new unsaved file and soft wrap was working then.</p> <p dir="auto">Maybe this happens for files that are already open too? Not sure.</p>
<p dir="auto">Moved over from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28537769" data-permission-text="Title is private" data-url="https://github.com/atom/settings-view/issues/47" data-hovercard-type="issue" data-hovercard-url="/atom/settings-view/issues/47/hovercard" href="https://github.com/atom/settings-view/issues/47">atom/settings-view#47</a></p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/[email protected]" rel="nofollow">Mike Zupper</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-794?redirect=false" rel="nofollow">SPR-794</a></strong> and commented</p> <p dir="auto">Here is the scenerio:</p> <ul dir="auto"> <li>MyAccountForm extends SimpleFormController</li> <li>MyAccountValidator implements Validator</li> </ul> <p dir="auto">Within MyAccountForm I override the following method:</p> <p dir="auto">protected ModelAndView onSubmit(HttpServletRequest request,<br> HttpServletResponse response,<br> Object command,<br> BindException errors)<br> throws Exception</p> <p dir="auto">with proper validation and no errors, The framework should call the "onSubmit" method with the defined signature but it does not. If I override, the following method:</p> <p dir="auto">protected ModelAndView onSubmit(Object command)<br> throws Exception</p> <hr> <p dir="auto">it calls the "onSubmit" method properly.</p> <p dir="auto">I need to access the HTTP request to set session data.</p> <p dir="auto">I used my IDE's debugger to trace it down and I could not find any reason why that above onSubmit method does not work... Any Ideas????</p> <p dir="auto">Please see issue# <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398054880" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5420" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5420/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5420">#5420</a> for similar problem.</p> <p dir="auto">Thanks,</p> <p dir="auto">Mike Zupper (<a href="mailto:[email protected]">[email protected]</a>)</p> <hr> <p dir="auto"><strong>Affects:</strong> 1.1.3, 1.1.4, 1.1.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/10595/SimpleFormController.java" rel="nofollow">SimpleFormController.java</a> (<em>16.39 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="398054880" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5420" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5420/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5420">#5420</a> After a successfull validation Spring does not call the onSubmit method with signature of (request, response,object, bindexception) (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=krosenvold" rel="nofollow">Kristian Rosenvold</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5863?redirect=false" rel="nofollow">SPR-5863</a></strong> and commented</p> <h4 dir="auto">Status Quo</h4> <p dir="auto">Newer versions of JUnit support concurrent test execution; however, the <em>Spring TestContext Framework</em> is not designed for concurrency.</p> <h4 dir="auto">Proposed Solution</h4> <p dir="auto">The enclosed fixes sharpen focus on concurrency (including making mutable state much more distinct from immutable state), increasing separation between data for each test method run and the class they are being run on.</p> <p dir="auto">The patch consists of a failing test (patch 1) and a fix (patch 2), including several new tests. If you choose to apply the patch with the failing test, you must revert this before applying the fix (failing test is contained in fix patch). The included failing test may not produce concurrency issues (fail) in all cases and on all hardware platforms. They have been known to fail consistently on 3 different machines, usually upon first run.</p> <h5 dir="auto">Details of the Patch</h5> <p dir="auto">The patch contains minor changes to the <code class="notranslate">ContextLoader</code> interface. The most significant changes have been made to the <code class="notranslate">TestContextManager</code> and <code class="notranslate">TestContext</code> classes.</p> <p dir="auto">Additionally upon completing the functionality, I had multiple deadlocks in the JVM when running my real test suite. I solved this by using a Java 5 <code class="notranslate">ReentrantReadWriteLock</code> in the <code class="notranslate">RequestAttributes.getSessionMutex()</code> method. It really looks to me like the creation of this mutex should be moved to one of the loader filters, since it's always created as of this patch.</p> <p dir="auto">Additionally, the patch contains a <code class="notranslate">MockContextLoader</code> that transfers attributes between threads. I'd really like you guys to check that code out before accepting it; there may be other smarter ways of doing this. It's only a part of the test code-base, but once it's included it sets a standard.</p> <h4 dir="auto">Real-life Tests</h4> <p dir="auto">The patch has been applied to a local version of Spring 3 that has been running stably with multi-core machines and multi-CPU servers too. We have been running a continuous build using parallel classes, methods, and a combination of both. This is a full-scale build that was adaptable to multi-threaded test execution. The application under test uses lots of web-scopes, etc.</p> <h4 dir="auto">Proposed Documentation</h4> <blockquote> <p dir="auto"><strong>Parallel Test Execution</strong></p> <p dir="auto">From version 3.0, Spring supports parallel test execution in the <em>Spring TestContext Framework</em>. Executing builds in parallel with JUnit is only supported in later versions of JUnit, and it is recommended to use at least JUnit 4.6 for this feature. Please also note that there's no guarantee your tests will run properly in parallel; a number of general concurrency issues have to be taken into account when executing tests in parallel. Your runner can usually let you choose between classes, methods, and a combination of both. Classes are usually the easiest to get working; "a combination of both" is the hardest. All three modes are supported.</p> </blockquote> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 M3</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/15764/1concurrencyFix2051.patch" rel="nofollow">1concurrencyFix2051.patch</a> (<em>77.48 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/15765/2tests2051.patch" rel="nofollow">2tests2051.patch</a> (<em>31.53 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/16722/3428_SPR5863.patch" rel="nofollow">3428_SPR5863.patch</a> (<em>53.32 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/15766/3dirtiesContext2051.patch" rel="nofollow">3dirtiesContext2051.patch</a> (<em>34.46 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/15500/completeFix.patch" rel="nofollow">completeFix.patch</a> (<em>189.66 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/15499/springFailingTest.patch" rel="nofollow">springFailingTest.patch</a> (<em>33.11 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="398159474" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15263" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15263/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15263">#15263</a> Debug logging for DependencyInjectionTestExecutionListener breaks injection for parallel tests (<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="398191558" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18684" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18684/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18684">#18684</a> Problems running integration tests in parallel using SpringClassRule and SpringMethodRule (<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="398201682" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/19549" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/19549/hovercard" href="https://github.com/spring-projects/spring-framework/issues/19549">#19549</a> using ParallelComputer to test spring test cases got error (<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="398173702" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/17028" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/17028/hovercard" href="https://github.com/spring-projects/spring-framework/issues/17028">#17028</a> Improve thread safety in Spring JUnit integration (<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="398116146" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13582" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13582/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13582">#13582</a> Test execution issue: for "shared" test contexts in multithreading</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398115629" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13499" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13499/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13499">#13499</a> <code class="notranslate">@DirtiesContext</code> does not destroy all cached singleton beans</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398158847" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15166" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15166/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15166">#15166</a> Do not serialize ApplicationContext creation in the TestContext framework</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398108341" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12343" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12343/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12343">#12343</a> Use soft or weak references for context caching in the TestContext framework</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398110759" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12710" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12710/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12710">#12710</a> Limit size of context cache in the TestContext framework</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/e822e4cbe87b09b901eb2363bc884a635a96a01e/hovercard" href="https://github.com/spring-projects/spring-framework/commit/e822e4cbe87b09b901eb2363bc884a635a96a01e"><tt>e822e4c</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/3dc6f1133c1208d212220777fda585f3371f5cc0/hovercard" href="https://github.com/spring-projects/spring-framework/commit/3dc6f1133c1208d212220777fda585f3371f5cc0"><tt>3dc6f11</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/fbfad8695ecc9262f23fd31b0b425eca38b58d01/hovercard" href="https://github.com/spring-projects/spring-framework/commit/fbfad8695ecc9262f23fd31b0b425eca38b58d01"><tt>fbfad86</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/3e96cab0bb9e2861f9555f81117eb46098674f8e/hovercard" href="https://github.com/spring-projects/spring-framework/commit/3e96cab0bb9e2861f9555f81117eb46098674f8e"><tt>3e96cab</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2699504cb8150d7be3e3a4033215acb8fbf1e851/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2699504cb8150d7be3e3a4033215acb8fbf1e851"><tt>2699504</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/a10a8e56df80e6855d104d07010e6f1445100a61/hovercard" href="https://github.com/spring-projects/spring-framework/commit/a10a8e56df80e6855d104d07010e6f1445100a61"><tt>a10a8e5</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/ec7aefa8589d2baf0aea28eac6fd8baae1167de6/hovercard" href="https://github.com/spring-projects/spring-framework/commit/ec7aefa8589d2baf0aea28eac6fd8baae1167de6"><tt>ec7aefa</tt></a></p> <p dir="auto">42 votes, 40 watchers</p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-colors?solution=%3Cstyle%3E%0A%20%20body%20%7B%0A%20%20%20%20background-color%3A%20%23000000%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A" rel="nofollow">Waypoint: Use Hex Code for Specific Colors</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt; body { background-color: #000000; } &lt;/style&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">body</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>000000</span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Correct code does not run test properly. Cannot move on.</p>
<p dir="auto">I've done what was expected but still can't move on. The code is correct since it was simply changing the color black to its hex code. Please help.</p>
1
<pre class="notranslate">5l seems to explode on the TST instruction TST $3, R0 5a is quite happy to assemble this, but 5l then produces main.tst: illegal combination TST C_RCON C_REG C_NONE, 8 1 (3) TST $3,R0, main.tst: illegal combination TST C_RCON C_REG C_NONE, 8 1 (3) TST $3,R0, I conjecture this might be easy to fix since the very similar TEQ instruction works fine. ------------------- What steps will reproduce the problem? Save the attached files into a temporary directory Run GOARCH="arm" GOOS="linux" go build What is the expected output? Nothing (it compiles) What do you see instead? # _/tmp/tst main.tst: illegal combination TST C_RCON C_REG C_NONE, 8 1 (3) TST $3,R0, main.tst: illegal combination TST C_RCON C_REG C_NONE, 8 1 (3) TST $3,R0, Which compiler are you using (5g, 6g, 8g, gccgo)? 5a &amp; 5l Which operating system are you using? Cross compiling for arm linux on amd64 linux $ go-linux-arm env GOARCH="arm" GOBIN="" GOCHAR="5" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/ncw/Code/Go" GORACE="" GOROOT="/home/ncw/Code/go" GOTOOLDIR="/home/ncw/Code/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-g -O2 -fPIC -marm" CGO_ENABLED="0" Which version are you using? (run 'go version') go version devel +77be25034f84 Fri Jul 19 01:22:26 2013 +0400 linux/amd64</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/5921/0/tst.s" rel="nofollow">tst.s</a> (74 bytes)</li> <li><a href="https://storage.googleapis.com/go-attachment/5921/0/tst.go" rel="nofollow">tst.go</a> (49 bytes)</li> </ol>
<p dir="auto">The following go function</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="func ss(u, q uint32) uint32 { if u &amp; q == 0 { return 2 } if u + q == 0 { return 3 } if q ^ u == 0 { return 9 } return 1 }"><pre class="notranslate"><code class="notranslate">func ss(u, q uint32) uint32 { if u &amp; q == 0 { return 2 } if u + q == 0 { return 3 } if q ^ u == 0 { return 9 } return 1 } </code></pre></div> <p dir="auto">is compiled to</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...... a.go:7 0x9ca50 e0002001 AND R1, R0, R2 a.go:7 0x9ca54 e3520000 CMP $0, R2 a.go:7 0x9ca58 0a00000e B.EQ 0x9ca98 a.go:10 0x9ca5c e0802001 ADD R1, R0, R2 a.go:10 0x9ca60 e3520000 CMP $0, R2 a.go:10 0x9ca64 0a000008 B.EQ 0x9ca8c a.go:13 0x9ca68 e0210000 EOR R0, R1, R0 a.go:13 0x9ca6c e3500000 CMP $0, R0 a.go:13 0x9ca70 1a000002 B.NE 0x9ca80 ......"><pre class="notranslate"><code class="notranslate">...... a.go:7 0x9ca50 e0002001 AND R1, R0, R2 a.go:7 0x9ca54 e3520000 CMP $0, R2 a.go:7 0x9ca58 0a00000e B.EQ 0x9ca98 a.go:10 0x9ca5c e0802001 ADD R1, R0, R2 a.go:10 0x9ca60 e3520000 CMP $0, R2 a.go:10 0x9ca64 0a000008 B.EQ 0x9ca8c a.go:13 0x9ca68 e0210000 EOR R0, R1, R0 a.go:13 0x9ca6c e3500000 CMP $0, R0 a.go:13 0x9ca70 1a000002 B.NE 0x9ca80 ...... </code></pre></div> <p dir="auto">But can be optimized to</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CMN R1, R0, R2 B.EQ xxx TST R1, R0, R2 B.EQ XXX TEQ R0, R1, r2 B.NE xxx"><pre class="notranslate"><code class="notranslate">CMN R1, R0, R2 B.EQ xxx TST R1, R0, R2 B.EQ XXX TEQ R0, R1, r2 B.NE xxx </code></pre></div>
1
<h3 dir="auto">Apache Airflow Provider(s)</h3> <p dir="auto">google</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-amazon==6.2.0<br> apache-airflow-providers-celery==3.1.0<br> apache-airflow-providers-cncf-kubernetes==5.0.0<br> apache-airflow-providers-common-sql==1.3.1<br> apache-airflow-providers-databricks==3.3.0<br> apache-airflow-providers-docker==3.3.0<br> apache-airflow-providers-elasticsearch==4.3.1<br> apache-airflow-providers-ftp==3.2.0<br> apache-airflow-providers-google==8.3.0<br> apache-airflow-providers-grpc==3.1.0<br> apache-airflow-providers-hashicorp==3.2.0<br> apache-airflow-providers-http==4.1.0<br> apache-airflow-providers-imap==3.1.0<br> apache-airflow-providers-microsoft-azure==5.0.0<br> apache-airflow-providers-odbc==3.2.1<br> apache-airflow-providers-postgres==5.3.1<br> apache-airflow-providers-redis==3.1.0<br> apache-airflow-providers-sendgrid==3.1.0<br> apache-airflow-providers-sftp==4.2.0<br> apache-airflow-providers-slack==7.1.0<br> apache-airflow-providers-sqlite==3.3.1<br> apache-airflow-providers-ssh==3.3.0</p> <h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.5.0</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Debian GNU/Linux 11 (bullseye)</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Official Apache Airflow Helm Chart</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">We deploy the official Airflow helm chart on Kubernetes on GKE using ArgoCD. We use a custom image derived from the provided official Docker image where the only additional step is the installation of requirements.txt.</p> <h3 dir="auto">What happened</h3> <p dir="auto">On February 1 2023, Google Ads sunset Google Ads API v10 and other versions are going to be <a href="https://developers.google.com/google-ads/api/docs/sunset-dates" rel="nofollow">discontinued soon</a>. Currently, the lowest Google Ads API version that offers a reasonable amount of availability time is v12, and the lowest version of the <code class="notranslate">google-ads</code> package that offers support for API v12 is 19.0.0 (the package is currently at version 20.0.0).</p> <p dir="auto">Using version 8.3.0 of <code class="notranslate">apache-airflow-providers-google</code> package, trying to bump <code class="notranslate">google-ads</code>up to 19.0.0 creates a dependency hell with other Google packages, and upgrading to 20.0.0 causes the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="airflow-dags-airflow-webserver-1 | Traceback (most recent call last): airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/providers_manager.py&quot;, line 275, in _sanity_check airflow-dags-airflow-webserver-1 | imported_class = import_string(class_name) airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/module_loading.py&quot;, line 33, in import_string airflow-dags-airflow-webserver-1 | module = import_module(module_path) airflow-dags-airflow-webserver-1 | File &quot;/usr/local/lib/python3.9/importlib/__init__.py&quot;, line 127, in import_module airflow-dags-airflow-webserver-1 | return _bootstrap._gcd_import(name[level:], package, level) airflow-dags-airflow-webserver-1 | File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1030, in _gcd_import airflow-dags-airflow-webserver-1 | File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1007, in _find_and_load airflow-dags-airflow-webserver-1 | File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 986, in _find_and_load_unlocked airflow-dags-airflow-webserver-1 | File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 680, in _load_unlocked airflow-dags-airflow-webserver-1 | File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 850, in exec_module airflow-dags-airflow-webserver-1 | File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 228, in _call_with_frames_removed airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/hooks/compute_ssh.py&quot;, line 26, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from airflow.providers.google.cloud.hooks.compute import ComputeEngineHook airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/hooks/compute.py&quot;, line 26, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/common/hooks/base_google.py&quot;, line 49, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from airflow.providers.google.cloud.utils.credentials_provider import ( airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/utils/credentials_provider.py&quot;, line 36, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from airflow.providers.google.cloud._internal_client.secret_manager_client import _SecretManagerClient airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/_internal_client/secret_manager_client.py&quot;, line 23, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from google.cloud.secretmanager_v1 import SecretManagerServiceClient airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/google/cloud/secretmanager_v1/__init__.py&quot;, line 22, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from google.cloud.secretmanager_v1 import types airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/google/cloud/secretmanager_v1/types.py&quot;, line 23, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from google.cloud.secretmanager_v1.proto import resources_pb2 airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/google/cloud/secretmanager_v1/proto/resources_pb2.py&quot;, line 57, in &lt;module&gt; airflow-dags-airflow-webserver-1 | _descriptor.EnumValueDescriptor( airflow-dags-airflow-webserver-1 | File &quot;/home/airflow/.local/lib/python3.9/site-packages/google/protobuf/descriptor.py&quot;, line 796, in __new__ airflow-dags-airflow-webserver-1 | _message.Message._CheckCalledFromGeneratedFile() airflow-dags-airflow-webserver-1 | TypeError: Descriptors cannot not be created directly. airflow-dags-airflow-webserver-1 | If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc &gt;= 3.19.0. airflow-dags-airflow-webserver-1 | If you cannot immediately regenerate your protos, some other possible workarounds are: airflow-dags-airflow-webserver-1 | 1. Downgrade the protobuf package to 3.20.x or lower. airflow-dags-airflow-webserver-1 | 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower)."><pre class="notranslate"><code class="notranslate">airflow-dags-airflow-webserver-1 | Traceback (most recent call last): airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/providers_manager.py", line 275, in _sanity_check airflow-dags-airflow-webserver-1 | imported_class = import_string(class_name) airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/module_loading.py", line 33, in import_string airflow-dags-airflow-webserver-1 | module = import_module(module_path) airflow-dags-airflow-webserver-1 | File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module airflow-dags-airflow-webserver-1 | return _bootstrap._gcd_import(name[level:], package, level) airflow-dags-airflow-webserver-1 | File "&lt;frozen importlib._bootstrap&gt;", line 1030, in _gcd_import airflow-dags-airflow-webserver-1 | File "&lt;frozen importlib._bootstrap&gt;", line 1007, in _find_and_load airflow-dags-airflow-webserver-1 | File "&lt;frozen importlib._bootstrap&gt;", line 986, in _find_and_load_unlocked airflow-dags-airflow-webserver-1 | File "&lt;frozen importlib._bootstrap&gt;", line 680, in _load_unlocked airflow-dags-airflow-webserver-1 | File "&lt;frozen importlib._bootstrap_external&gt;", line 850, in exec_module airflow-dags-airflow-webserver-1 | File "&lt;frozen importlib._bootstrap&gt;", line 228, in _call_with_frames_removed airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/hooks/compute_ssh.py", line 26, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from airflow.providers.google.cloud.hooks.compute import ComputeEngineHook airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/hooks/compute.py", line 26, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/common/hooks/base_google.py", line 49, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from airflow.providers.google.cloud.utils.credentials_provider import ( airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/utils/credentials_provider.py", line 36, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from airflow.providers.google.cloud._internal_client.secret_manager_client import _SecretManagerClient airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/google/cloud/_internal_client/secret_manager_client.py", line 23, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from google.cloud.secretmanager_v1 import SecretManagerServiceClient airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/google/cloud/secretmanager_v1/__init__.py", line 22, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from google.cloud.secretmanager_v1 import types airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/google/cloud/secretmanager_v1/types.py", line 23, in &lt;module&gt; airflow-dags-airflow-webserver-1 | from google.cloud.secretmanager_v1.proto import resources_pb2 airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/google/cloud/secretmanager_v1/proto/resources_pb2.py", line 57, in &lt;module&gt; airflow-dags-airflow-webserver-1 | _descriptor.EnumValueDescriptor( airflow-dags-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 796, in __new__ airflow-dags-airflow-webserver-1 | _message.Message._CheckCalledFromGeneratedFile() airflow-dags-airflow-webserver-1 | TypeError: Descriptors cannot not be created directly. airflow-dags-airflow-webserver-1 | If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc &gt;= 3.19.0. airflow-dags-airflow-webserver-1 | If you cannot immediately regenerate your protos, some other possible workarounds are: airflow-dags-airflow-webserver-1 | 1. Downgrade the protobuf package to 3.20.x or lower. airflow-dags-airflow-webserver-1 | 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower). </code></pre></div> <p dir="auto">Following versions of the provider package can't resolve dependencies when installing requirements, because of PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1347041866" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/25886" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/25886/hovercard" href="https://github.com/apache/airflow/pull/25886">#25886</a> (found <a href="https://github.com/apache/airflow/pull/25886" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/25886/hovercard">here</a>, I can't link it for some reason). Limiting protobuf's version was an option back then, but cannot be done now since the only functioning Google Ads version does not support this change.</p> <p dir="auto">We cannot downgrade protobuf because <code class="notranslate">google-ads</code> requires &gt;=4.21.5, which leaves us either with option 2 (which CAN be done, although I'm unsure of the real impact on performance) or with the need to recompile the code using later versions of protoc.</p> <p dir="auto">If option 2 is the only viable way, we believe at least the documentation should be updated, since it's mandatory that the environment variable is set (in our case, that would mean messing with our Dockerfile) for DAGs to work. However, this would complicate things a lot.</p> <p dir="auto">C extensions are not something I completely understand, but from what I could gather, I believe that the code the error logs refer should be recompiled with a later version of the protoc compiler. This is just a cascading consequence of Google discontinuing Ads APIs, and the providers need to keep up (and they seem to be doing it pretty fast).</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>Install <code class="notranslate">apache-airflow-providers-google</code> version 8.3.0</li> <li>Install <code class="notranslate">google-ads</code> version 20.0.0</li> <li>Try to load any DAG that uses any Google operator or imports anything from Google's provider package</li> </ol> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<p dir="auto">This test is flaky and fails sometimes</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ____________ TestLocalTaskJob.test_task_sigkill_works_with_retries _____________ self = &lt;tests.jobs.test_local_task_job.TestLocalTaskJob object at 0x7f3a8ec6c6a0&gt; dag_maker = &lt;tests.conftest.dag_maker.&lt;locals&gt;.DagFactory object at 0x7f3aa1490080&gt; def test_task_sigkill_works_with_retries(self, dag_maker): &quot;&quot;&quot; Test that ensures that tasks are retried when they receive sigkill &quot;&quot;&quot; # use shared memory value so we can properly track value change even if # it's been updated across processes. retry_callback_called = Value('i', 0) task_terminated_externally = Value('i', 1) shared_mem_lock = Lock() def retry_callback(context): with shared_mem_lock: retry_callback_called.value += 1 assert context['dag_run'].dag_id == 'test_mark_failure_2' def task_function(ti): os.kill(os.getpid(), signal.SIGKILL) # This should not happen -- the state change should be noticed and the task should get killed with shared_mem_lock: task_terminated_externally.value = 0 with dag_maker( dag_id='test_mark_failure_2', start_date=DEFAULT_DATE, default_args={'owner': 'owner1'} ): task = PythonOperator( task_id='test_on_failure', python_callable=task_function, retries=1, retry_delay=timedelta(seconds=2), on_retry_callback=retry_callback, ) ti = TaskInstance(task=task, execution_date=DEFAULT_DATE) ti.refresh_from_db() job1 = LocalTaskJob(task_instance=ti, ignore_ti_state=True, executor=SequentialExecutor()) job1.task_runner = StandardTaskRunner(job1) job1.task_runner.start() settings.engine.dispose() process = multiprocessing.Process(target=job1.run) process.start() time.sleep(0.4) process.join(timeout=10) ti.refresh_from_db() &gt; assert ti.state == State.UP_FOR_RETRY E AssertionError: assert None == &lt;TaskInstanceState.UP_FOR_RETRY: 'up_for_retry'&gt; E + where None = &lt;TaskInstance: test_mark_failure_2.test_on_failure 2016-01-01 00:00:00+00:00 [None]&gt;.state E + and &lt;TaskInstanceState.UP_FOR_RETRY: 'up_for_retry'&gt; = State.UP_FOR_RETRY tests/jobs/test_local_task_job.py:778: AssertionError ----------------------------- Captured stdout call ----------------------------- Running &lt;TaskInstance: test_mark_failure_2.test_on_failure 2016-01-01T00:00:00+00:00 [None]&gt; on host 9a517fc8fb98 ----------------------------- Captured stderr call ----------------------------- Process Process-116: Traceback (most recent call last): File &quot;/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1277, in _execute_context cursor, statement, parameters, context File &quot;/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 608, in do_execute cursor.execute(statement, parameters) File &quot;/usr/local/lib/python3.6/site-packages/MySQLdb/cursors.py&quot;, line 206, in execute res = self._query(query) File &quot;/usr/local/lib/python3.6/site-packages/MySQLdb/cursors.py&quot;, line 319, in _query db.query(q) File &quot;/usr/local/lib/python3.6/site-packages/MySQLdb/connections.py&quot;, line 259, in query _mysql.connection.query(self, query) MySQLdb._exceptions.IntegrityError: (1062, &quot;Duplicate entry 'test_on_failure-test_mark_failure_2-2016-01-01 00:00:00.000000' for key 'PRIMARY'&quot;)"><pre class="notranslate"><code class="notranslate"> ____________ TestLocalTaskJob.test_task_sigkill_works_with_retries _____________ self = &lt;tests.jobs.test_local_task_job.TestLocalTaskJob object at 0x7f3a8ec6c6a0&gt; dag_maker = &lt;tests.conftest.dag_maker.&lt;locals&gt;.DagFactory object at 0x7f3aa1490080&gt; def test_task_sigkill_works_with_retries(self, dag_maker): """ Test that ensures that tasks are retried when they receive sigkill """ # use shared memory value so we can properly track value change even if # it's been updated across processes. retry_callback_called = Value('i', 0) task_terminated_externally = Value('i', 1) shared_mem_lock = Lock() def retry_callback(context): with shared_mem_lock: retry_callback_called.value += 1 assert context['dag_run'].dag_id == 'test_mark_failure_2' def task_function(ti): os.kill(os.getpid(), signal.SIGKILL) # This should not happen -- the state change should be noticed and the task should get killed with shared_mem_lock: task_terminated_externally.value = 0 with dag_maker( dag_id='test_mark_failure_2', start_date=DEFAULT_DATE, default_args={'owner': 'owner1'} ): task = PythonOperator( task_id='test_on_failure', python_callable=task_function, retries=1, retry_delay=timedelta(seconds=2), on_retry_callback=retry_callback, ) ti = TaskInstance(task=task, execution_date=DEFAULT_DATE) ti.refresh_from_db() job1 = LocalTaskJob(task_instance=ti, ignore_ti_state=True, executor=SequentialExecutor()) job1.task_runner = StandardTaskRunner(job1) job1.task_runner.start() settings.engine.dispose() process = multiprocessing.Process(target=job1.run) process.start() time.sleep(0.4) process.join(timeout=10) ti.refresh_from_db() &gt; assert ti.state == State.UP_FOR_RETRY E AssertionError: assert None == &lt;TaskInstanceState.UP_FOR_RETRY: 'up_for_retry'&gt; E + where None = &lt;TaskInstance: test_mark_failure_2.test_on_failure 2016-01-01 00:00:00+00:00 [None]&gt;.state E + and &lt;TaskInstanceState.UP_FOR_RETRY: 'up_for_retry'&gt; = State.UP_FOR_RETRY tests/jobs/test_local_task_job.py:778: AssertionError ----------------------------- Captured stdout call ----------------------------- Running &lt;TaskInstance: test_mark_failure_2.test_on_failure 2016-01-01T00:00:00+00:00 [None]&gt; on host 9a517fc8fb98 ----------------------------- Captured stderr call ----------------------------- Process Process-116: Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context cursor, statement, parameters, context File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute cursor.execute(statement, parameters) File "/usr/local/lib/python3.6/site-packages/MySQLdb/cursors.py", line 206, in execute res = self._query(query) File "/usr/local/lib/python3.6/site-packages/MySQLdb/cursors.py", line 319, in _query db.query(q) File "/usr/local/lib/python3.6/site-packages/MySQLdb/connections.py", line 259, in query _mysql.connection.query(self, query) MySQLdb._exceptions.IntegrityError: (1062, "Duplicate entry 'test_on_failure-test_mark_failure_2-2016-01-01 00:00:00.000000' for key 'PRIMARY'") </code></pre></div>
0
<p dir="auto">Compiling this small snippet</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enum Expression { Symbol(~str), Compound(~str, ~[Expression]) } fn standard_form(expr: &amp;Expression) -&gt; ~str { match (*expr) { Compound(~&quot;List&quot;, ref items) =&gt; ~&quot;list&quot;, Compound(~&quot;Blank&quot;, []) =&gt; ~&quot;_&quot;, _ =&gt; ~&quot;default&quot; } } fn main() { let x = ~Symbol(~&quot;x&quot;); println(standard_form(x)); }"><pre lang=".rs" class="notranslate"><code class="notranslate">enum Expression { Symbol(~str), Compound(~str, ~[Expression]) } fn standard_form(expr: &amp;Expression) -&gt; ~str { match (*expr) { Compound(~"List", ref items) =&gt; ~"list", Compound(~"Blank", []) =&gt; ~"_", _ =&gt; ~"default" } } fn main() { let x = ~Symbol(~"x"); println(standard_form(x)); } </code></pre></div> <p dir="auto">yields the following error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: sequence_element_type called on non-sequence value This message reflects a bug in the Rust compiler. We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report task 'rustc' failed at 'explicit failure', /var/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/libsyntax/diagnostic.rs:102 task '&lt;main&gt;' failed at 'explicit failure', /var/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/librustc/lib.rs:394"><pre class="notranslate"><code class="notranslate">error: internal compiler error: sequence_element_type called on non-sequence value This message reflects a bug in the Rust compiler. We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report task 'rustc' failed at 'explicit failure', /var/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/libsyntax/diagnostic.rs:102 task '&lt;main&gt;' failed at 'explicit failure', /var/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/librustc/lib.rs:394 </code></pre></div> <p dir="auto">Swapping the order of the List and Blank cases makes the error go away. This might be a duplicate of Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17085643" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/7990" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/7990/hovercard" href="https://github.com/rust-lang/rust/issues/7990">#7990</a>, but the code there that elicits this is so different I thought it'd be worthwhile to open a whole new issue.</p>
<p dir="auto">If you try to compile <code class="notranslate">tag list&lt;T&gt; { nil; cons(int, list&lt;T&gt;); }</code> (note "list" instead of "<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/list/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/list">@list</a>" in the recursive constructor), then the compiler crashes with <code class="notranslate">rt: e2b5:0x00000000: Out of stack space, sorry</code>.</p> <p dir="auto">It would be nice to detect this condition and provide a more useful error message instead.</p> <p dir="auto">The bottom of the stack is:</p> <pre class="notranslate">#24545 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 () #24546 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 () #24547 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 () #24548 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 () #24549 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 () #24550 0x080ff28e in middle::ty::type_structurally_contains::_5f3ac45ea1b71c45 () #24551 0x08061feb in middle::trans::type_of_tag::_a125eb2fba6a34ee () #24552 0x08061522 in middle::trans::type_of_inner::_f9908926438f2236 () #24553 0x080603bb in middle::trans::type_of_fn::_d1c7c2dc9390d6d7 () #24554 0x08060a5e in middle::trans::type_of_fn_from_ty::_e121377dba6b8bd0 () #24555 0x080bc50c in middle::trans::register_fn_full::_3897f5c49d271367 () #24556 0x080bc358 in middle::trans::register_fn::_2c73ab4a26be7a7a () #24557 0x080c2fd1 in middle::trans::collect_tag_ctor::_5ff72ae6ae3153d1 () #24558 0x082a833e in middle::trans::collect_tag_ctors::thunk1669 () #24559 0x082c9589 in syntax::visit::default_visitor::thunk5653 () #24560 0x080c354b in middle::trans::collect_tag_ctors::_ec22d712145eb498 () #24561 0x080c9503 in middle::trans::trans_crate::_19245ca61421d176 () #24562 0x082e809b in driver::rustc::compile_input::thunk8685 () #24563 0x0827812d in driver::rustc::time::_8bcb4789e2c2f57e () #24564 0x0827acff in driver::rustc::compile_input::_c6e994438f359ee8 () #24565 0x08286208 in driver::rustc::main::_ed54e060591e3a31 () #24566 0x08286e93 in _rust_main () #24567 0x082eb12c in _rust_main_wrap () #24568 0x01337321 in task_start_wrapper (a=0xb7fe0010) at ../src/rt/rust_task.cpp:150 #24569 0xdeadbeef in ?? () #24570 0xb7fe0010 in ?? () #24571 0x00000010 in ?? () </pre>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.2 and lower</li> <li>Operating System version: all version</li> <li>Java version: all version</li> </ul> <h3 dir="auto">Step to reproduce this issue</h3> <ol dir="auto"> <li>shutdown provider</li> <li>consumer side use <code class="notranslate">ReferenceConfigCache.get()</code> to invoke provider</li> <li>invoke provider one time</li> <li>startup provider</li> <li>invoker provider again</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">when provider startup, the second time invoke should success.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">second time invoke failed</p> <h3 dir="auto">What cause it</h3> <p dir="auto">When no provider, <code class="notranslate">config.get()</code> return null, at this time we shouldn't store this reference into cache.</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public &lt;T&gt; T get(ReferenceConfig&lt;T&gt; referenceConfig) { String key = generator.generateKey(referenceConfig); ReferenceConfig&lt;?&gt; config = cache.get(key); if (config != null) { return (T) config.get(); } cache.putIfAbsent(key, referenceConfig); config = cache.get(key); return (T) config.get(); }"><pre class="notranslate"><span class="pl-k">public</span> &lt;<span class="pl-smi">T</span>&gt; <span class="pl-s1">T</span> <span class="pl-en">get</span>(<span class="pl-s1">ReferenceConfig</span>&lt;<span class="pl-s1">T</span>&gt; <span class="pl-s1">referenceConfig</span>) { <span class="pl-smi">String</span> <span class="pl-s1">key</span> = <span class="pl-s1">generator</span>.<span class="pl-en">generateKey</span>(<span class="pl-s1">referenceConfig</span>); <span class="pl-smi">ReferenceConfig</span>&lt;?&gt; <span class="pl-s1">config</span> = <span class="pl-s1">cache</span>.<span class="pl-en">get</span>(<span class="pl-s1">key</span>); <span class="pl-k">if</span> (<span class="pl-s1">config</span> != <span class="pl-c1">null</span>) { <span class="pl-k">return</span> (<span class="pl-smi">T</span>) <span class="pl-s1">config</span>.<span class="pl-en">get</span>(); } <span class="pl-s1">cache</span>.<span class="pl-en">putIfAbsent</span>(<span class="pl-s1">key</span>, <span class="pl-s1">referenceConfig</span>); <span class="pl-s1">config</span> = <span class="pl-s1">cache</span>.<span class="pl-en">get</span>(<span class="pl-s1">key</span>); <span class="pl-k">return</span> (<span class="pl-smi">T</span>) <span class="pl-s1">config</span>.<span class="pl-en">get</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 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: master branch</li> <li>Operating System version: all</li> <li>Java version: all</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">fastjson &lt;= 1.2.48 considers vulnerable, see <a href="https://www.anquanke.com/post/id/181874" rel="nofollow">https://www.anquanke.com/post/id/181874</a><br> we are using 1.2.46, I think it's better to use the latest version <a href="https://github.com/alibaba/fastjson/releases/tag/1.2.58">fastjson-1.2.58</a> if possible.</p>
0
<p dir="auto">While refactoring some code I tripped over this one. As most of the program has changed, I'm not sure what the actual cause is. Posting here in case someone can help me fathom what it is.</p> <p dir="auto">Looks superficially similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="65410617" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/23888" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/23888/hovercard" href="https://github.com/rust-lang/rust/issues/23888">#23888</a> but it's not clear that my changes have introduced an == on "fat raw pointers".</p> <p dir="auto">src/geometry.rs:72:26: 72:29 warning: unused variable: <code class="notranslate">rng</code>, #[warn(unused_variables)] on by default<br> src/geometry.rs:72 fn random_pos(&amp;self, rng: &amp;mut F64Rng) -&gt; Vec3d {<br> ^~~<br> error: internal compiler error: unexpected panic<br> note: the compiler unexpectedly panicked. this is a bug.<br> note: we would appreciate a bug report: <a href="https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports">https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports</a><br> note: run with <code class="notranslate">RUST_BACKTRACE=1</code> for a backtrace<br> thread 'rustc' panicked at 'assertion failed: self.appropriate_rvalue_mode(bcx.ccx()) == ByValue', /home/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-linux/build/src/librustc_trans/trans/datum.rs:646</p> <p dir="auto">stack backtrace:<br> 1: 0x7f7444b3f449 - sys::backtrace::write::hbc46dc0cfb3b9537d4r<br> 2: 0x7f7444b47156 - panicking::on_panic::h74d3c14d86c58ac8jrw<br> 3: 0x7f7444b0a462 - rt::unwind::begin_unwind_inner::h382cea404b11eb00t6v<br> 4: 0x7f744420137e - rt::unwind::begin_unwind::h11527883117899559464<br> 5: 0x7f7444291db2 - trans::datum::Datum&lt;'tcx, K&gt;::to_llscalarish::h13658016800508616489<br> 6: 0x7f7444314d08 - trans::expr::trans_binary::h675be97e90ac8015O6B<br> 7: 0x7f744430b72c - trans::expr::trans_unadjusted::h36bc1189b1eec85e9zA<br> 8: 0x7f7444244ad4 - trans::expr::trans::h7f89da2569c8dc1bgdA<br> 9: 0x7f744430d086 - trans::expr::trans_rvalue_dps_unadjusted::h7c0140fcbfb13319C5A<br> 10: 0x7f74442e0fd7 - trans::expr::trans_into::h10885d95ed8d401aX6z<br> 11: 0x7f7444265b0e - trans::controlflow::trans_block::hfa898015a1217b0b02u<br> 12: 0x7f744430c6e9 - trans::expr::trans_rvalue_dps_unadjusted::h7c0140fcbfb13319C5A<br> 13: 0x7f74442e0fd7 - trans::expr::trans_into::h10885d95ed8d401aX6z<br> 14: 0x7f744434b753 - trans::_match::trans_match_inner::h6119af2a2800890b61H<br> 15: 0x7f744430c6b3 - trans::expr::trans_rvalue_dps_unadjusted::h7c0140fcbfb13319C5A<br> 16: 0x7f74442e0fd7 - trans::expr::trans_into::h10885d95ed8d401aX6z<br> 17: 0x7f7444265b0e - trans::controlflow::trans_block::hfa898015a1217b0b02u<br> 18: 0x7f74442645b1 - trans::base::trans_closure::h8e5687f4ccb96c5eLCh<br> 19: 0x7f74442660ea - trans::base::trans_fn::h0bc8fb6dbe17d6adtNh<br> 20: 0x7f7444269c44 - trans::base::trans_item::h4f9c99b1e4474396Fbi<br> 21: 0x7f7444269ab8 - trans::base::trans_item::h4f9c99b1e4474396Fbi<br> 22: 0x7f744427756d - trans::base::trans_crate::haa02506df24d5efcF0i<br> 23: 0x7f744508d0fa - driver::phase_4_translate_to_llvm::h86d6fb84c5c936d5hOa<br> 24: 0x7f7445064faa - driver::compile_input::hb78754f2f33c01efQba<br> 25: 0x7f74451264d1 - run_compiler::h258d36d5501c1cdfz4b<br> 26: 0x7f7445124122 - boxed::F.FnBox::call_box::h7239693171334256553<br> 27: 0x7f7445123659 - rt::unwind::try::try_fn::h14329119008520845439<br> 28: 0x7f7444bb9ac8 - rust_try_inner<br> 29: 0x7f7444bb9ab5 - rust_try<br> 30: 0x7f7445123908 - boxed::F.FnBox::call_box::h17332056298259451807<br> 31: 0x7f7444b46041 - sys:<g-emoji class="g-emoji" alias="thread" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f9f5.png">🧡</g-emoji>:create::thread_start::h490278b5c3c0b49faqv<br> 32: 0x7f743f3c8181 - start_thread<br> 33: 0x7f744479047c - __clone<br> 34: 0x0 - </p> <p dir="auto">Could not compile <code class="notranslate">path_tracer</code>.</p> <p dir="auto">Caused by:<br> Process didn't exit successfully: <code class="notranslate">rustc src/lib.rs --crate-name path_tracer --crate-type lib -g --out-dir /home/mgodbolt/dev/path-tracer/target/debug --emit=dep-info,link -L dependency=/home/mgodbolt/dev/path-tracer/target/debug -L dependency=/home/mgodbolt/dev/path-tracer/target/debug/deps --extern image=/home/mgodbolt/dev/path-tracer/target/debug/deps/libimage-0d2eddca90a3c251.rlib --extern threadpool=/home/mgodbolt/dev/path-tracer/target/debug/deps/libthreadpool-213781c0d8fba90b.rlib --extern rand=/home/mgodbolt/dev/path-tracer/target/debug/deps/librand-b924d9fc5b3eb5b8.rlib --extern num_cpus=/home/mgodbolt/dev/path-tracer/target/debug/deps/libnum_cpus-d64cdaf0c78cf4e8.rlib --extern argparse=/home/mgodbolt/dev/path-tracer/target/debug/deps/libargparse-e91dcf4972ac931d.rlib</code> (exit code: 101)</p> <p dir="auto">I've checked in the code at <a href="https://github.com/mattgodbolt/path-tracer/tree/ice">https://github.com/mattgodbolt/path-tracer/tree/ice</a> and will leave that 'ice' branch pointing at the broken build while I try and find a workaround and/or fix.</p>
<p dir="auto">Imagine a tail call <code class="notranslate">{ be foo() as int }</code> where <code class="notranslate">foo()</code> returns an <code class="notranslate">i32</code> and on the current arch it is known that integers are 32 bit wide.</p> <p dir="auto">In this case, it should be ok to drop the cast and tail-call <code class="notranslate">foo()</code>.</p> <p dir="auto">The idea for this came up when rewriting <code class="notranslate">std::math</code>, cf</p> <p dir="auto"><a href="https://github.com/boggle/rust/blob/libmath/src/lib/math.rs">https://github.com/boggle/rust/blob/libmath/src/lib/math.rs</a></p>
0
<p dir="auto">Ok this is an odd one:</p> <p dir="auto">If you have a matplotlib figure with multiple subplots and try to plot a regplot inside one of the the axes, regplot will update the axes limits of the last axes of the subplot.</p> <p dir="auto">The cause for this is pretty simple. in <a href="https://github.com/mwaskom/seaborn/blob/29d1075cd56878ad2ba71f537df2cd73170ad847/seaborn/regression.py#L327">this line</a> the regplot function calls <code class="notranslate">plt.plot</code> instead of <code class="notranslate">ax.plot</code>. Hence the currently active axes (meaning the last subplot) is targeted by this line, automatically updating its limits.</p>
<p dir="auto">When using <code class="notranslate">regplot()</code> on a figure with multiple axes, the x and y limits on the last subplot are partially determined by data plotted in the other axes.</p> <p dir="auto">For example, the following code will produce a figure where the range of x values is way too large on the second subplot:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import seaborn import numpy as np import pandas as pd np.random.seed(32) y = np.random.randn(20, 1) x0 = np.random.randn(20, 1) + 100 x1 = np.random.randn(20, 1) df = pd.DataFrame(np.hstack([y, x0, x1]), columns=['y', 'x0', 'x1']) fig, axes = plt.subplots(1, 2) seaborn.regplot(x='x0', y='y', data=df, ax=axes[0]) seaborn.regplot(x='x1', y='y', data=df, ax=axes[1]) plt.show();"><pre lang="import" class="notranslate"><code class="notranslate">import seaborn import numpy as np import pandas as pd np.random.seed(32) y = np.random.randn(20, 1) x0 = np.random.randn(20, 1) + 100 x1 = np.random.randn(20, 1) df = pd.DataFrame(np.hstack([y, x0, x1]), columns=['y', 'x0', 'x1']) fig, axes = plt.subplots(1, 2) seaborn.regplot(x='x0', y='y', data=df, ax=axes[0]) seaborn.regplot(x='x1', y='y', data=df, ax=axes[1]) plt.show(); </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2933570/45769602-f87a9e80-bbf4-11e8-88fb-95a5ca88ea8f.png"><img src="https://user-images.githubusercontent.com/2933570/45769602-f87a9e80-bbf4-11e8-88fb-95a5ca88ea8f.png" alt="regplot" style="max-width: 100%;"></a></p> <p dir="auto">The reason seems to be that the <code class="notranslate">plot()</code> function in <code class="notranslate">_RegressionPlotter</code> uses <code class="notranslate">plt.plot()</code> to create (and then remove) a line, in order to determine what colour to use for the regplot (line 327 of regression.py).</p> <p dir="auto"><code class="notranslate">lines, = plt.plot(self.x.mean(), self.y.mean())</code></p> <p dir="auto">This has the unintended side effect of updating the limits of one of the plots. Because this is done with <code class="notranslate">plt</code> instead of <code class="notranslate">ax</code>, this affects the last of the subplots created using <code class="notranslate">subplots()</code>, rather than the ax that has been passed to regplot. In the example above, because the first and second columns of X have very different means, the xlim of the second plot is pulled very far to the right.</p> <p dir="auto">I believe this can be fixed by changing <code class="notranslate">plt.plot()</code> on line 327 of regression.py to <code class="notranslate">ax.plot()</code>, and will submit a PR. The proposed change will also cause all subplots to be plotted in the same colour by default (unlike above). However, this will also be more consistent with <code class="notranslate">lmplot</code>.</p> <p dir="auto">Version info:<br> python: 3.6.1<br> seaborn: 0.9.0<br> matplotlib: 2.0.2</p>
1
<p dir="auto">While editing a JS file, I noticed some problem that only happens with Light+ theme:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/199648/13003588/af167ac2-d176-11e5-875c-cd2c44bef945.jpg"><img src="https://cloud.githubusercontent.com/assets/199648/13003588/af167ac2-d176-11e5-875c-cd2c44bef945.jpg" alt="themebug" style="max-width: 100%;"></a></p>
<p dir="auto">Ported from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94376232" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/285/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285">microsoft/TypeScript-Sublime-Plugin#285</a></p> <p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91870539" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/265/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265">microsoft/TypeScript-Sublime-Plugin#265</a>.</p> <p dir="auto">Issue:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Correct:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Sorry if it's duplicate, but i wasn't able to find similar question, but: how to disable 'Save Password' popup which appear then you enter some creds on launching persistent context?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7087798/211773620-bc4fca3f-3752-487a-bf12-4d016651a2c9.png"><img src="https://user-images.githubusercontent.com/7087798/211773620-bc4fca3f-3752-487a-bf12-4d016651a2c9.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">If I remember it's 'credentials_enable_service' and 'profile.password_manager_enabled' pref settings. but wasn't able to pass it to playwright.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.36.1</li> <li>Operating System: macOS 13.4.1 (22F82)</li> <li>Browser: All</li> <li>Other info: Mac is an M1 Max Mac Studio, in case the architecture is relevant.</li> </ul> <p dir="auto">I installed the browsers when I installed Playwright a couple of minutes before running <code class="notranslate">npx playwright test --ui</code>, so I'm not sure how it's managed to lose Chromium <em>already</em> <g-emoji class="g-emoji" alias="grin" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f601.png">😁</g-emoji></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/139183/253799102-730561b1-33e6-4fe6-949b-9f963818305f.png"><img src="https://user-images.githubusercontent.com/139183/253799102-730561b1-33e6-4fe6-949b-9f963818305f.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Running <code class="notranslate">npx playwright install</code> manually did install them, and UI mode then worked as expected, so it seems to be an issue with <code class="notranslate">npx init</code>.</p> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Config file</strong></p> <p dir="auto">These are the standard config files installed by <code class="notranslate">npm init playwright@latest</code> β€” so I'm fairly sure it's not something I've done…</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { defineConfig, devices } from '@playwright/test'; /** * Read environment variables from file. * https://github.com/motdotla/dotenv */ // require('dotenv').config(); /** * See https://playwright.dev/docs/test-configuration. */ export default defineConfig({ testDir: './tests/e2e', /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, /* Retry on CI only */ retries: process.env.CI ? 2 : 0, /* Opt out of parallel tests on CI. */ workers: process.env.CI ? 1 : undefined, /* Reporter to use. See https://playwright.dev/docs/test-reporters */ reporter: 'html', /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('/')`. */ // baseURL: 'http://127.0.0.1:3000', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', }, /* Configure projects for major browsers */ projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, { name: 'firefox', use: { ...devices['Desktop Firefox'] }, }, { name: 'webkit', use: { ...devices['Desktop Safari'] }, }, /* Test against mobile viewports. */ // { // name: 'Mobile Chrome', // use: { ...devices['Pixel 5'] }, // }, // { // name: 'Mobile Safari', // use: { ...devices['iPhone 12'] }, // }, /* Test against branded browsers. */ // { // name: 'Microsoft Edge', // use: { ...devices['Desktop Edge'], channel: 'msedge' }, // }, // { // name: 'Google Chrome', // use: { ...devices['Desktop Chrome'], channel: 'chrome' }, // }, ], /* Run your local dev server before starting the tests */ // webServer: { // command: 'npm run start', // url: 'http://127.0.0.1:3000', // reuseExistingServer: !process.env.CI, // }, });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * Read environment variables from file.</span> <span class="pl-c"> * https://github.com/motdotla/dotenv</span> <span class="pl-c"> */</span> <span class="pl-c">// require('dotenv').config();</span> <span class="pl-c">/**</span> <span class="pl-c"> * See https://playwright.dev/docs/test-configuration.</span> <span class="pl-c"> */</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">testDir</span>: <span class="pl-s">'./tests/e2e'</span><span class="pl-kos">,</span> <span class="pl-c">/* Run tests in files in parallel */</span> <span class="pl-c1">fullyParallel</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">/* Fail the build on CI if you accidentally left test.only in the source code. */</span> <span class="pl-c1">forbidOnly</span>: <span class="pl-c1">!</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">CI</span><span class="pl-kos">,</span> <span class="pl-c">/* Retry on CI only */</span> <span class="pl-c1">retries</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">CI</span> ? <span class="pl-c1">2</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c">/* Opt out of parallel tests on CI. */</span> <span class="pl-c1">workers</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">CI</span> ? <span class="pl-c1">1</span> : <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-c">/* Reporter to use. See https://playwright.dev/docs/test-reporters */</span> <span class="pl-c1">reporter</span>: <span class="pl-s">'html'</span><span class="pl-kos">,</span> <span class="pl-c">/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c">/* Base URL to use in actions like `await page.goto('/')`. */</span> <span class="pl-c">// baseURL: 'http://127.0.0.1:3000',</span> <span class="pl-c">/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */</span> <span class="pl-c1">trace</span>: <span class="pl-s">'on-first-retry'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">/* Configure projects for major browsers */</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'firefox'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Firefox'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'webkit'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Safari'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c">/* Test against mobile viewports. */</span> <span class="pl-c">// {</span> <span class="pl-c">// name: 'Mobile Chrome',</span> <span class="pl-c">// use: { ...devices['Pixel 5'] },</span> <span class="pl-c">// },</span> <span class="pl-c">// {</span> <span class="pl-c">// name: 'Mobile Safari',</span> <span class="pl-c">// use: { ...devices['iPhone 12'] },</span> <span class="pl-c">// },</span> <span class="pl-c">/* Test against branded browsers. */</span> <span class="pl-c">// {</span> <span class="pl-c">// name: 'Microsoft Edge',</span> <span class="pl-c">// use: { ...devices['Desktop Edge'], channel: 'msedge' },</span> <span class="pl-c">// },</span> <span class="pl-c">// {</span> <span class="pl-c">// name: 'Google Chrome',</span> <span class="pl-c">// use: { ...devices['Desktop Chrome'], channel: 'chrome' },</span> <span class="pl-c">// },</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c">/* Run your local dev server before starting the tests */</span> <span class="pl-c">// webServer: {</span> <span class="pl-c">// command: 'npm run start',</span> <span class="pl-c">// url: 'http://127.0.0.1:3000',</span> <span class="pl-c">// reuseExistingServer: !process.env.CI,</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"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test' test('has title', async ({ page }) =&gt; { await page.goto('https://playwright.dev/') // Expect a title &quot;to contain&quot; a substring. await expect(page).toHaveTitle(/Playwright/) }) test('get started link', async ({ page }) =&gt; { await page.goto('https://playwright.dev/') // Click the get started link. await page.getByRole('link', { name: 'Get started' }).click() // Expects the URL to contain intro. await expect(page).toHaveURL(/.*intro/) })"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'has title'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://playwright.dev/'</span><span class="pl-kos">)</span> <span class="pl-c">// Expect a title "to contain" a substring.</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveTitle</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>Playwright<span class="pl-c1">/</span></span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'get started link'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://playwright.dev/'</span><span class="pl-kos">)</span> <span class="pl-c">// Click the get started link.</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'link'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Get started'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c">// Expects the URL to contain intro.</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveURL</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>.<span class="pl-c1">*</span>intro<span class="pl-c1">/</span></span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Install Homebrew (<a href="https://brew.sh" rel="nofollow">https://brew.sh</a>)</li> <li>Install Chromium (<code class="notranslate">brew install chromium</code>)</li> <li>Open Chromium (<code class="notranslate">open /Applications/Chromium.app</code>)</li> <li>Run tests (<code class="notranslate">npx playwright test --ui</code>)</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">The installer actually installs the browsers when the user answers "yes" to the "install browsers" question.</p> <p dir="auto"><strong>Actual</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: ╔═══════════════════════════════════════════════════╗ β•‘ No chromium-based browser found on the system. β•‘ β•‘ Please run the following command to download one: β•‘ β•‘ β•‘ β•‘ npx playwright install chromium β•‘ β•‘ β•‘ β•‘ &lt;3 Playwright Team β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•"><pre class="notranslate"><code class="notranslate">Error: ╔═══════════════════════════════════════════════════╗ β•‘ No chromium-based browser found on the system. β•‘ β•‘ Please run the following command to download one: β•‘ β•‘ β•‘ β•‘ npx playwright install chromium β•‘ β•‘ β•‘ β•‘ &lt;3 Playwright Team β•‘ β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• </code></pre></div>
0
<p dir="auto">Hi!</p> <p dir="auto">when i create a new Bundle it suggests to create the target path in the app/cache folder since Version 2.4.5</p>
<p dir="auto">In 2.3.14, 2.3.15, and 2.4.5, when I run <code class="notranslate">php app/console generate:bundle</code> I get the following prompt:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Target directory [/home/intrepion/path/app/cache/dev/../src]:"><pre class="notranslate"><code class="notranslate">Target directory [/home/intrepion/path/app/cache/dev/../src]: </code></pre></div> <p dir="auto">But when I revert back to 2.3.13 or 2.4.4, I get exactly what I expect:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Target directory [/home/intrepion/path/src]: "><pre class="notranslate"><code class="notranslate">Target directory [/home/intrepion/path/src]: </code></pre></div>
1
<p dir="auto">The type of traceback is always string, and children is list.<br> And An error occurred when decode it.<br> It tried to set serializer to json or pickle, and Their results are the same.<br> Thanks.</p> <p dir="auto">$ celery --version<br> 5.0.2 (singularity)</p> <hr> <p dir="auto">Related Issues and Possible Duplicates<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="708774400" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6364" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6364/hovercard" href="https://github.com/celery/celery/issues/6364">#6364</a></p> <blockquote> <p dir="auto">File "msgpack_unpacker.pyx", line 178, in msgpack._cmsgpack.unpackb<br> File "msgpack_unpacker.pyx", line 126, in msgpack._cmsgpack.get_data_from_buffer<br> kombu.exceptions.DecodeError: a bytes-like object is required, not 'str'</p> </blockquote> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/celery/celery/blob/60ba37900a038420aec0fc76e60c55989f66c718/celery/backends/mongodb.py#L205">celery/celery/backends/mongodb.py</a> </p> <p class="mb-0 color-fg-muted"> Line 205 in <a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/60ba37900a038420aec0fc76e60c55989f66c718">60ba379</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="L205" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="205"></td> <td id="LC205" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'traceback'</span>: <span class="pl-s1">self</span>.<span class="pl-en">decode</span>(<span class="pl-s1">obj</span>[<span class="pl-s">'traceback'</span>]), </td> </tr> </tbody></table> </div> </div> <p></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" return self.meta_from_decoded({ 'task_id': obj['_id'], 'status': obj['status'], 'result': self.decode(obj['result']), 'date_done': obj['date_done'], 'traceback': self.decode(obj['traceback']), 'children': self.decode(obj['children']), })"><pre class="notranslate"><code class="notranslate"> return self.meta_from_decoded({ 'task_id': obj['_id'], 'status': obj['status'], 'result': self.decode(obj['result']), 'date_done': obj['date_done'], 'traceback': self.decode(obj['traceback']), 'children': self.decode(obj['children']), }) </code></pre></div>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have 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"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</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"> 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" checked=""> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="823132644" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6661" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6661/hovercard" href="https://github.com/celery/celery/issues/6661">#6661</a></p> <h4 dir="auto">Possible Duplicates</h4> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="823132644" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6661" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6661/hovercard" href="https://github.com/celery/celery/issues/6661">#6661</a></p> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 5.2.5</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><p dir="auto">software -&gt; celery:5.2.5 (dawn-chorus) kombu:5.2.4 py:3.8.13<br> billiard:3.6.4.0 py-amqp:5.1.0<br> platform -&gt; system:Linux arch:64bit<br> kernel version:5.4.0-1069-aws imp:CPython<br> loader -&gt; celery.loaders.default.Loader<br> settings -&gt; transport:amqp results:disabled</p> <p dir="auto">deprecated_settings: None</p> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.8</li> <li><strong>Minimal Celery Version</strong>: 5.2.3</li> <li><strong>Minimal Kombu Version</strong>: 5.2.4</li> <li><strong>Minimal Broker Version</strong>: Redis</li> <li><strong>Minimal Result Backend Version</strong>: N/A</li> <li><strong>Minimal OS and/or Kernel Version</strong>: Debian GNU/Linux 10 (buster)</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><p dir="auto">alembic==1.7.7<br> amqp==5.1.0<br> atomicwrites==1.3.0<br> attrs==19.3.0<br> baseplate==2.1.1<br> billiard==3.6.4.0<br> boto3==1.21.35<br> botocore==1.24.38<br> celery==5.2.5<br> certifi==2020.12.5<br> cffi==1.14.5<br> chardet==4.0.0<br> click==8.1.2<br> click-didyoumean==0.3.0<br> click-plugins==1.1.1<br> click-repl==0.2.0<br> coverage==5.0<br> cryptography==3.3.2<br> gevent==21.1.2<br> greenlet==1.0.0<br> hiredis==2.0.0<br> idna==2.10<br> importlib-metadata==1.7.0<br> importlib-resources==5.6.0<br> jmespath==1.0.0<br> kombu==5.2.4<br> Mako==1.2.0<br> MarkupSafe==2.1.1<br> more-itertools==7.2.0<br> mypy==0.910<br> mypy-extensions==0.4.3<br> packaging==19.1<br> pluggy==0.12.0<br> posix-ipc==1.0.5</p> <h1 dir="auto">Editable install with no version control (product-catalog==0.0.0)</h1> <p dir="auto">-e /src<br> prompt-toolkit==3.0.29<br> psycogreen==1.0.1<br> psycopg2==2.8.5<br> py==1.10.0<br> pycparser==2.20<br> PyJWT==2.0.1<br> pyparsing==2.4.6<br> pytest==5.1.2<br> pytest-cov==2.6.1<br> pytest-random-order==1.0.4<br> python-dateutil==2.8.2<br> python-json-logger==2.0.1<br> pytz==2022.1<br> reddit-edgecontext==1.0.0<br> redis==3.5.3<br> requests==2.25.1<br> s3transfer==0.5.2<br> sentry-sdk==0.20.3<br> simpleflake==0.1.5<br> six==1.15.0<br> SQLAlchemy==1.3.19<br> thrift-unofficial==0.14.1<br> toml==0.10.2<br> typed-ast==1.4.1<br> typing-extensions==3.7.4.2<br> urllib3==1.26.5<br> vine==5.0.0<br> wcwidth==0.1.7<br> zipp==3.1.0<br> zope.event==4.5.0<br> zope.interface==5.2.0</p> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">.delay sending task method from app's docker container to worker's container produces connection error,<br> however both containers are deployed correctly and working.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">I have following code reimplementing original Celery and Task classes in separate <code class="notranslate">app.py</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def short_task_name(task_name: str) -&gt; str: return task_name.split(&quot;.&quot;)[-1] def emit_celery_metric(context: baseplate.RequestContext, task_name: str, **tags: Any) -&gt; None: tags = {&quot;task_name&quot;: short_task_name(task_name), **tags} context.metrics.counter(&quot;celery_task&quot;, tags=tags).increment() context.metrics.flush() class BaseplateTask(celery.Task): # this lets us get away with injecting the context task arg typing = False def __call__(self, *args, **kwargs) -&gt; None: baseplate = self._app._baseplate context = baseplate.make_context_object() with baseplate.make_server_span(context, f&quot;celery.{short_task_name(self.name)}&quot;): try: ret = super().__call__(context, *args, **kwargs) except Exception: emit_celery_metric(context, self.name, success=False) raise emit_celery_metric(context, self.name, success=True) return ret class BaseplateCelery(celery.Celery): def __init__(self, *args, **kwargs) -&gt; None: self._baseplate = None super().__init__(*args, **kwargs) def set_baseplatel(self, baseplate, config) -&gt; None: self._baseplate = baseplate self.conf.update(broker_url=config['broker_url']) def run_workers(self, config: baseplate.lib.config.RawConfig) -&gt; None: &quot;&quot;&quot;Start the worker, sets up context for future use in workers.&quot;&quot;&quot; logger.info(&quot;Starting celery workers&quot;) self.start(config[&quot;celery_worker_command&quot;].split(&quot; &quot;)) celery = BaseplateCelery(&quot;product_catalog&quot;) # I can't pass broker url directly here, because I have to take it from config and set later celery.Task = BaseplateTask"><pre class="notranslate"><code class="notranslate">def short_task_name(task_name: str) -&gt; str: return task_name.split(".")[-1] def emit_celery_metric(context: baseplate.RequestContext, task_name: str, **tags: Any) -&gt; None: tags = {"task_name": short_task_name(task_name), **tags} context.metrics.counter("celery_task", tags=tags).increment() context.metrics.flush() class BaseplateTask(celery.Task): # this lets us get away with injecting the context task arg typing = False def __call__(self, *args, **kwargs) -&gt; None: baseplate = self._app._baseplate context = baseplate.make_context_object() with baseplate.make_server_span(context, f"celery.{short_task_name(self.name)}"): try: ret = super().__call__(context, *args, **kwargs) except Exception: emit_celery_metric(context, self.name, success=False) raise emit_celery_metric(context, self.name, success=True) return ret class BaseplateCelery(celery.Celery): def __init__(self, *args, **kwargs) -&gt; None: self._baseplate = None super().__init__(*args, **kwargs) def set_baseplatel(self, baseplate, config) -&gt; None: self._baseplate = baseplate self.conf.update(broker_url=config['broker_url']) def run_workers(self, config: baseplate.lib.config.RawConfig) -&gt; None: """Start the worker, sets up context for future use in workers.""" logger.info("Starting celery workers") self.start(config["celery_worker_command"].split(" ")) celery = BaseplateCelery("product_catalog") # I can't pass broker url directly here, because I have to take it from config and set later celery.Task = BaseplateTask </code></pre></div> <p dir="auto">Here enough just a simple task to reproduce the error case in <code class="notranslate">tasks.py</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from . import app @app.celery.task def test(context): print(type(context)) "><pre class="notranslate"><code class="notranslate">from . import app @app.celery.task def test(context): print(type(context)) </code></pre></div> <p dir="auto">Just a func in call.py to get caledl from the shell:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from . import tasks def foo(): tasks.test.get(context) # context here will be passed in reimplemented Task class"><pre class="notranslate"><code class="notranslate">from . import tasks def foo(): tasks.test.get(context) # context here will be passed in reimplemented Task class </code></pre></div> <p dir="auto">Then main function in <code class="notranslate">__main__.py</code> is for initialization:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" import baseplate from . import app from . import command def main(): baseplate = baseplate.Baseplate() app.celery.set_baseplate(baseplate, config={'broker_url': 'redis://redis:6379'}) # broker url is correct, works app.celery.run_workers(command.config)"><pre class="notranslate"><code class="notranslate"> import baseplate from . import app from . import command def main(): baseplate = baseplate.Baseplate() app.celery.set_baseplate(baseplate, config={'broker_url': 'redis://redis:6379'}) # broker url is correct, works app.celery.run_workers(command.config) </code></pre></div> <p dir="auto">After both containers get deployed, I can reproduces the behavior via shell:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from call import foo foo()"><pre class="notranslate"><code class="notranslate">from call import foo foo() </code></pre></div> <p dir="auto">It gives me a stack trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/utils/functional.py&quot;, line 30, in __call__ return self.__value__ AttributeError: 'ChannelPromise' object has no attribute '__value__' During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/amqp/transport.py&quot;, line 188, in _connect entries = socket.getaddrinfo( File &quot;/usr/local/lib/python3.8/socket.py&quot;, line 918, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -9] Address family for hostname not supported During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py&quot;, line 446, in _reraise_as_library_errors yield File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py&quot;, line 433, in _ensure_connection return retry_over_time( File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/utils/functional.py&quot;, line 312, in retry_over_time return fun(*args, **kwargs) File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py&quot;, line 877, in _connection_factory self._connection = self._establish_connection() File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py&quot;, line 812, in _establish_connection conn = self.transport.establish_connection() File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/transport/pyamqp.py&quot;, line 201, in establish_connection conn.connect() File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/amqp/connection.py&quot;, line 323, in connect self.transport.connect() File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/amqp/transport.py&quot;, line 129, in connect self._connect(self.host, self.port, self.connect_timeout) File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/amqp/transport.py&quot;, line 197, in _connect raise (e File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/amqp/transport.py&quot;, line 213, in _connect self.sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/src/product_catalog/__main__&quot;, line 81, in main tasks.foo.delay() File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/celery/app/task.py&quot;, line 425, in delay return self.apply_async(args, kwargs) File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/celery/app/task.py&quot;, line 575, in apply_async return app.send_task( File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/celery/app/base.py&quot;, line 788, in send_task amqp.send_task_message(P, name, message, **options) File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/celery/app/amqp.py&quot;, line 510, in send_task_message ret = producer.publish( File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/messaging.py&quot;, line 177, in publish return _publish( File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py&quot;, line 523, in _ensured return fun(*args, **kwargs) File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/messaging.py&quot;, line 186, in _publish channel = self.channel File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/messaging.py&quot;, line 209, in _get_channel channel = self._channel = channel() File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/utils/functional.py&quot;, line 32, in __call__ value = self.__value__ = self.__contract__() File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/messaging.py&quot;, line 225, in &lt;lambda&gt; channel = ChannelPromise(lambda: connection.default_channel) File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py&quot;, line 895, in default_channel self._ensure_connection(**conn_opts) File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py&quot;, line 433, in _ensure_connection return retry_over_time( File &quot;/usr/local/lib/python3.8/contextlib.py&quot;, line 131, in __exit__ self.gen.throw(type, value, traceback) File &quot;/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py&quot;, line 450, in _reraise_as_library_errors raise ConnectionError(str(exc)) from exc kombu.exceptions.OperationalError: [Errno 111] Connection refused"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/utils/functional.py", line 30, in __call__ return self.__value__ AttributeError: 'ChannelPromise' object has no attribute '__value__' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/venv/lib/python3.8/site-packages/amqp/transport.py", line 188, in _connect entries = socket.getaddrinfo( File "/usr/local/lib/python3.8/socket.py", line 918, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -9] Address family for hostname not supported During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py", line 446, in _reraise_as_library_errors yield File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py", line 433, in _ensure_connection return retry_over_time( File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/utils/functional.py", line 312, in retry_over_time return fun(*args, **kwargs) File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py", line 877, in _connection_factory self._connection = self._establish_connection() File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py", line 812, in _establish_connection conn = self.transport.establish_connection() File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/transport/pyamqp.py", line 201, in establish_connection conn.connect() File "/usr/local/lib/venv/lib/python3.8/site-packages/amqp/connection.py", line 323, in connect self.transport.connect() File "/usr/local/lib/venv/lib/python3.8/site-packages/amqp/transport.py", line 129, in connect self._connect(self.host, self.port, self.connect_timeout) File "/usr/local/lib/venv/lib/python3.8/site-packages/amqp/transport.py", line 197, in _connect raise (e File "/usr/local/lib/venv/lib/python3.8/site-packages/amqp/transport.py", line 213, in _connect self.sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused The above exception was the direct cause of the following exception: Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/src/product_catalog/__main__", line 81, in main tasks.foo.delay() File "/usr/local/lib/venv/lib/python3.8/site-packages/celery/app/task.py", line 425, in delay return self.apply_async(args, kwargs) File "/usr/local/lib/venv/lib/python3.8/site-packages/celery/app/task.py", line 575, in apply_async return app.send_task( File "/usr/local/lib/venv/lib/python3.8/site-packages/celery/app/base.py", line 788, in send_task amqp.send_task_message(P, name, message, **options) File "/usr/local/lib/venv/lib/python3.8/site-packages/celery/app/amqp.py", line 510, in send_task_message ret = producer.publish( File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/messaging.py", line 177, in publish return _publish( File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py", line 523, in _ensured return fun(*args, **kwargs) File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/messaging.py", line 186, in _publish channel = self.channel File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/messaging.py", line 209, in _get_channel channel = self._channel = channel() File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/utils/functional.py", line 32, in __call__ value = self.__value__ = self.__contract__() File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/messaging.py", line 225, in &lt;lambda&gt; channel = ChannelPromise(lambda: connection.default_channel) File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py", line 895, in default_channel self._ensure_connection(**conn_opts) File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py", line 433, in _ensure_connection return retry_over_time( File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "/usr/local/lib/venv/lib/python3.8/site-packages/kombu/connection.py", line 450, in _reraise_as_library_errors raise ConnectionError(str(exc)) from exc kombu.exceptions.OperationalError: [Errno 111] Connection refused </code></pre></div> <p dir="auto">That is very strange. Because celery is running in container:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -------------- celery@rcelery-workers-7d4d5bd5c8-4slh5 v5.2.5 (dawn-chorus) --- ***** ----- -- ******* ---- Linux-5.4.0-1069-aws-x86_64-with-glibc2.2.5 2022-04-12 11:56:16 - *** --- * --- - ** ---------- [config] - ** ---------- .&gt; app: __main__:0x7f0df9a15a30 - ** ---------- .&gt; transport: redis://redis:6379/0 - ** ---------- .&gt; results: disabled:// - *** --- * --- .&gt; concurrency: 1 (gevent) -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker) --- ***** ----- -------------- [queues] .&gt; celery exchange=celery(direct) key=celery [tasks] . product_catalog.celery.tasks.test [2022-04-12 11:56:16,208: INFO/MainProcess] Connected to redis://redis:6379/0 [2022-04-12 11:56:16,211: INFO/MainProcess] mingle: searching for neighbors [2022-04-12 11:56:17,226: INFO/MainProcess] mingle: sync with 1 nodes [2022-04-12 11:56:17,226: INFO/MainProcess] mingle: sync complete [2022-04-12 11:56:17,234: INFO/MainProcess] pidbox: Connected to redis://redis:6379/0. [2022-04-12 11:56:17,241: INFO/MainProcess] celery@celery-workers-7d4d5bd5c8-4slh5 ready. [2022-04-12 11:56:17,632: WARNING/MainProcess] Substantial drift from [email protected] may mean clocks are out of sync. Current drift is 21600 seconds. [orig: 2022-04-12 11:56:17.632010 recv: 2022-04-12 17:56:17.339628] [2022-04-12 11:56:52,239: INFO/MainProcess] missed heartbeat from celery@celery-workers-6f67f5499b-vp22v"><pre class="notranslate"><code class="notranslate"> -------------- celery@rcelery-workers-7d4d5bd5c8-4slh5 v5.2.5 (dawn-chorus) --- ***** ----- -- ******* ---- Linux-5.4.0-1069-aws-x86_64-with-glibc2.2.5 2022-04-12 11:56:16 - *** --- * --- - ** ---------- [config] - ** ---------- .&gt; app: __main__:0x7f0df9a15a30 - ** ---------- .&gt; transport: redis://redis:6379/0 - ** ---------- .&gt; results: disabled:// - *** --- * --- .&gt; concurrency: 1 (gevent) -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker) --- ***** ----- -------------- [queues] .&gt; celery exchange=celery(direct) key=celery [tasks] . product_catalog.celery.tasks.test [2022-04-12 11:56:16,208: INFO/MainProcess] Connected to redis://redis:6379/0 [2022-04-12 11:56:16,211: INFO/MainProcess] mingle: searching for neighbors [2022-04-12 11:56:17,226: INFO/MainProcess] mingle: sync with 1 nodes [2022-04-12 11:56:17,226: INFO/MainProcess] mingle: sync complete [2022-04-12 11:56:17,234: INFO/MainProcess] pidbox: Connected to redis://redis:6379/0. [2022-04-12 11:56:17,241: INFO/MainProcess] celery@celery-workers-7d4d5bd5c8-4slh5 ready. [2022-04-12 11:56:17,632: WARNING/MainProcess] Substantial drift from [email protected] may mean clocks are out of sync. Current drift is 21600 seconds. [orig: 2022-04-12 11:56:17.632010 recv: 2022-04-12 17:56:17.339628] [2022-04-12 11:56:52,239: INFO/MainProcess] missed heartbeat from celery@celery-workers-6f67f5499b-vp22v </code></pre></div> <p dir="auto">As I already commented in code, I can't pass broker url to <strong>init</strong> constructor due to some restrictions from top.<br> But if it was passed to constructor without setting afterwards in <code class="notranslate">self.conf</code>, then everything works well and task will be sent to worker and processed properly! But I have to initialize the app first, and then set broker url.</p> <p dir="auto">I suspect that problem is in decorator, because when I initialize celery app without broker set, this task gets wrapped with default broker address to use. That's why <code class="notranslate">kombu</code> uses the default broker address(not sure).</p> <p dir="auto">Although I tried to patch <code class="notranslate">BaseplateCelery</code> with additional method to call later:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def call_super(self): super().__init__(main='product_catalog', broker_url='redis://redis:6379/0')"><pre class="notranslate"><code class="notranslate">def call_super(self): super().__init__(main='product_catalog', broker_url='redis://redis:6379/0') </code></pre></div> <p dir="auto">i see that class state now is if it was initialized in working case, but it still produces the same error!</p>
0
<h2 dir="auto">Bug Report</h2> <p dir="auto">I followed this article <a href="https://my.oschina.net/u/3867294/blog/3089014" rel="nofollow">https://my.oschina.net/u/3867294/blog/3089014</a> to encry my data.<br> When I'm using the following configuration, the program insert data successfully,but throw an exception when querying it. I found out the program trys to decrypt <code class="notranslate">user_name</code>, while <code class="notranslate">user_name</code> is not encrypted , yet <code class="notranslate">user_name_encrypt</code> is .</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="spring: shardingsphere: datasource: names: ds0 ds0: type: org.apache.commons.dbcp2.BasicDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: username: password: encrypt: encryptors: encryptor_aes: type: aes props: aes.key.value: 123456 tables: user: columns: user_name: logicColumn: user_name plainColumn: user_name cipherColumn: user_name_encrypt encryptor: encryptor_aes props: sql.show: false query.with.cipher.column: false"><pre class="notranslate"><code class="notranslate">spring: shardingsphere: datasource: names: ds0 ds0: type: org.apache.commons.dbcp2.BasicDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: username: password: encrypt: encryptors: encryptor_aes: type: aes props: aes.key.value: 123456 tables: user: columns: user_name: logicColumn: user_name plainColumn: user_name cipherColumn: user_name_encrypt encryptor: encryptor_aes props: sql.show: false query.with.cipher.column: false </code></pre></div> <p dir="auto">The sql query</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select * from user"><pre class="notranslate"><code class="notranslate">select * from user </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="create table user ( id int auto_increment primary key, user_name varchar(200) null, age int null, email varchar(200) null, user_name_encrypt varchar(200) null )"><pre class="notranslate"><code class="notranslate">create table user ( id int auto_increment primary key, user_name varchar(200) null, age int null, email varchar(200) null, user_name_encrypt varchar(200) null ) </code></pre></div> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/incubator-shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">4.0.0-RC2</p> <h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3> <p dir="auto">Sharding-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">get correct value of the column</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">program trys to decrypt the unencrypted column</p> <h3 dir="auto">Reason analyze (If you can)</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">The current example is not good enough. It is difficult to understand, which users can not find their desired example codes quickly, the disadvantages are:</p> <ol dir="auto"> <li>The categories of examples are not in same abstract level, they are not show the overview of ShardingSphere features and structure clearly;</li> <li>The <code class="notranslate">example-core</code> module is too complicated which contains too many common and abstract codes, user do not need to understander them. It is better to use "flat" codes and make them independent each other;</li> <li>Proxy and JDBC need to provide configurations for multiple dimensions, such as different modes, different kernel providers and different feature configs;</li> <li>JDBC example can be split to different adaptors, such as <code class="notranslate">jdbc</code>, <code class="notranslate">spring boot starter &amp; jdbc</code>, <code class="notranslate">spring boot starter &amp; jpa</code>, <code class="notranslate">spring boot starter &amp; mybatis</code>, <code class="notranslate">spring namespace &amp; jdbc</code>, <code class="notranslate">spring namespace &amp; jpa</code> and , <code class="notranslate">spring namespace &amp; mybatis</code>;</li> <li>Proxy do not need java connect example, config only is enough.</li> </ol> <p dir="auto">It is more clear if adjust example structure as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shardingsphere-example β”œ- shardingsphere-jdbc-example β”œ- shardingsphere-jdbc-${mode}-example β”œ- shardingsphere-jdbc-${mode}-${transaction}-${feature}-example β”œ- shardingsphere-jdbc-${mode}-${transaction}-${feature}-${framework}-example β”œ- shardingsphere-proxy-example β”œ- shardingsphere-proxy-${mode}-example β”œ- shardingsphere-proxy-${mode}-${transaction}-${feature}-example β”œ- shardingsphere-parser-example"><pre class="notranslate"><code class="notranslate">shardingsphere-example β”œ- shardingsphere-jdbc-example β”œ- shardingsphere-jdbc-${mode}-example β”œ- shardingsphere-jdbc-${mode}-${transaction}-${feature}-example β”œ- shardingsphere-jdbc-${mode}-${transaction}-${feature}-${framework}-example β”œ- shardingsphere-proxy-example β”œ- shardingsphere-proxy-${mode}-example β”œ- shardingsphere-proxy-${mode}-${transaction}-${feature}-example β”œ- shardingsphere-parser-example </code></pre></div> <p dir="auto"><code class="notranslate">${xxx}</code> are variables which can be replaced by:</p> <ul dir="auto"> <li><code class="notranslate">${mode}</code>: memory, standalone-file, cluster-zookeeper, cluster-etcd</li> <li><code class="notranslate">${transaction}</code>: local, xa-atomikos, xa-bitronix, xa-narayana, base-seata</li> <li><code class="notranslate">${feature}</code>: sharding, readwrite-splitting, db-discovery, encrypt, shadow and all permutation of them</li> <li><code class="notranslate">${framework}</code>: jdbc, springboot-starter-jdbc, springboot-starter-jpa, springboot-starter-mybatis, springnamespace-jdbc, springnamespace-jpa, spring-namespace-mybatis</li> </ul> <p dir="auto">The duplicated codes may consider about using code-generation engine.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5516298/132954397-406a0dbe-f28f-4e5b-89b2-1d79595422b4.png"><img src="https://user-images.githubusercontent.com/5516298/132954397-406a0dbe-f28f-4e5b-89b2-1d79595422b4.png" alt="example-code-gen-engine drawio" style="max-width: 100%;"></a></p>
0
<h1 dir="auto">Mergable Zones on Drag.</h1> <h3 dir="auto">See the two examples for clearance:</h3> <p dir="auto"><strong>A</strong>: Merge Columns<br> <strong>B</strong>: Merge Rows</p> <p dir="auto">Grid of 3x2</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" v 3 Columns --- --- --- | | | | &lt; 2 Rows --- --- --- | | | | --- --- --- v A: Drag to here to merge columns --- --- --- | x | | --- --- -x- &lt; B: Drag to here to merge rows | | | | --- --- ---"><pre class="notranslate"><code class="notranslate"> v 3 Columns --- --- --- | | | | &lt; 2 Rows --- --- --- | | | | --- --- --- v A: Drag to here to merge columns --- --- --- | x | | --- --- -x- &lt; B: Drag to here to merge rows | | | | --- --- --- </code></pre></div> <p dir="auto">I would like to be able to create a grid of equal 6 squares. 3 columns and 2 rows.<br> If I drag a window in the middle area between two rows or columns it would merge them and use them both. For me that would make it not necessary to swap out layouts between different tasks.</p> <p dir="auto">Btw, what an amazing utility. Thanks!!</p>
<p dir="auto">Generated issue from Watson<br> Watson Link: <a href="https://watsonportal.microsoft.com/Failure?FailureSearchText=7ee1d5de-38db-4c13-f82a-a993a6ae8960" rel="nofollow">https://watsonportal.microsoft.com/Failure?FailureSearchText=7ee1d5de-38db-4c13-f82a-a993a6ae8960</a><br> ADO Link: <a href="https://microsoft.visualstudio.com/DefaultCollection/OS/_workitems#id=29029627&amp;triage=true&amp;fullScreen=true&amp;_a=edit" rel="nofollow">https://microsoft.visualstudio.com/DefaultCollection/OS/_workitems#id=29029627&amp;triage=true&amp;fullScreen=true&amp;_a=edit</a><br> Process: powerlauncher.exe,<br> Module: system.data.oledb.dll v4.700.20.21406</p>
0
<p dir="auto">Hi,</p> <p dir="auto">I just tried the latest beta. It is confusing to me and others I've spoken with why template variable binding to ngControl would - as visually written in the template - be binding to ngForm instead? (The current beta is requiring this according to documentation.) I believe one of the design goals of Angular was to make it clear in the template what is happening. Currently, this is not clear. The required template syntax for control binding within a form does not match what is actually occurring according to the documentation.</p> <p dir="auto">If one wants to refer to an ngControl on the form using a template local variable, why should the binding look like the following confusing syntax where the #name template variable is tied to an ngForm directive instead as shown on your documentation page <a href="https://angular.io/docs/ts/latest/guide/forms.html" rel="nofollow">https://angular.io/docs/ts/latest/guide/forms.html</a>?</p> <p dir="auto">CONFUSING in the current beta:<br> ngControl="name" #name="ngForm"</p> <p dir="auto">BETTER:<br> ngControl="name" #name="ngControl"</p> <p dir="auto">Wouldn't a better syntax be to bind the template variable for the control to the ngControl which is actually then intent and effect of this syntax even as your documentation describes?</p> <p dir="auto">It would be even better if ngControl="name" would auto-create the #name template variable so only one attribute rather than 2 would be required but perhaps there is an interest in being highly explicit so possibly having both could make sense for the purpose of explicitness and perhaps tool binding (but it would be very nice to just be able to indicate ngControl='name' and be done.)</p> <p dir="auto">Even so, if the #name should be tied to an ngControl, shouldn't the template reflect what is being done for clarity by using #name=ngControl rather than #name=ngForm?</p> <p dir="auto">If we have one form on the page and 3 controls inside it, shouldn't the form itself have the template variable set to 'ngForm' (#heroForm="ngForm") while the 3 controls should be set as shown on the template to 'ngControl' (ngControl="name" #name="ngControl" --- ngControl="addressLine1" #addressLine1="ngControl" --- ngControl="city" #city="ngControl")?</p> <h4 dir="auto">as shown in documentation...</h4> <blockquote> <p dir="auto">Here we initialize a template local variable (name) with the value "ngForm" (#name="<strong>ngForm</strong>"). Angular recognizes that syntax and re-sets the name local template variable to the <strong>ngControl</strong> directive instance <em>[instead????]</em>. In other words, the name local template variable becomes a handle on the <strong>ngControl</strong> object for this input box.</p> </blockquote> <p dir="auto">I'm asking in this issue why when the documentation says that the syntax sets the instance to the ngControl directive, the syntax as written is actually showing #name="ngForm" which intuits that Angular2 is setting the template instance variable to the ngForm? To be consistent with what is actually happening, wouldn't the clearer syntax for an ngControl be #name="ngControl" ?</p> <p dir="auto">Here is the form syntax that the paragraph from the documentation is explaining when it says #name='ngForm' actually makes name point to the ngControl directive:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;form (ngSubmit)=&quot;onSubmit()&quot; #heroForm=&quot;ngForm&quot;&gt; &lt;!-- Why ngForm? Why not ngControl? --&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; required [(ngModel)]=&quot;model.name&quot; ngControl=&quot;name&quot; #name=&quot;ngForm&quot; &gt; &lt;div [hidden]=&quot;name.valid&quot; class=&quot;alert alert-danger&quot;&gt; Name is required &lt;/div&gt; &lt;!-- now what if we have more controls on the form? Why ngForm? Why not ngControl? --&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; required [(ngModel)]=&quot;model.addressLine1&quot; ngControl=&quot;addressLine1&quot; #addressLine1=&quot;ngForm&quot; &gt; &lt;div [hidden]=&quot;addressLine1.valid&quot; class=&quot;alert alert-danger&quot;&gt; Address first line is required &lt;/div&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; required [(ngModel)]=&quot;model.name&quot; ngControl=&quot;city&quot; #city=&quot;ngForm&quot; &gt; &lt;div [hidden]=&quot;city.valid&quot; class=&quot;alert alert-danger&quot;&gt; City is required &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">(ngSubmit)</span>="<span class="pl-s">onSubmit()</span>" <span class="pl-c1">#heroForm</span>="<span class="pl-s">ngForm</span>"<span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Why ngForm? Why not ngControl? --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">class</span>="<span class="pl-s">form-control</span>" <span class="pl-c1">required</span> <span class="pl-c1">[(ngModel)]</span>="<span class="pl-s">model.name</span>" <span class="pl-c1">ngControl</span>="<span class="pl-s">name</span>" <span class="pl-c1">#name</span>="<span class="pl-s">ngForm</span>" <span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">[hidden]</span>="<span class="pl-s">name.valid</span>" <span class="pl-c1">class</span>="<span class="pl-s">alert alert-danger</span>"<span class="pl-kos">&gt;</span> Name is required <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- now what if we have more controls on the form? </span> <span class="pl-c">Why ngForm? Why not ngControl? --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">class</span>="<span class="pl-s">form-control</span>" <span class="pl-c1">required</span> <span class="pl-c1">[(ngModel)]</span>="<span class="pl-s">model.addressLine1</span>" <span class="pl-c1">ngControl</span>="<span class="pl-s">addressLine1</span>" <span class="pl-c1">#addressLine1</span>="<span class="pl-s">ngForm</span>" <span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">[hidden]</span>="<span class="pl-s">addressLine1.valid</span>" <span class="pl-c1">class</span>="<span class="pl-s">alert alert-danger</span>"<span class="pl-kos">&gt;</span> Address first line is required <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">class</span>="<span class="pl-s">form-control</span>" <span class="pl-c1">required</span> <span class="pl-c1">[(ngModel)]</span>="<span class="pl-s">model.name</span>" <span class="pl-c1">ngControl</span>="<span class="pl-s">city</span>" <span class="pl-c1">#city</span>="<span class="pl-s">ngForm</span>" <span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">[hidden]</span>="<span class="pl-s">city.valid</span>" <span class="pl-c1">class</span>="<span class="pl-s">alert alert-danger</span>"<span class="pl-kos">&gt;</span> City is required <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Something I'd like to discuss first.</p> <p dir="auto">It turns out, that <code class="notranslate">ngControl</code>/<code class="notranslate">NgControlName</code> is exported as <code class="notranslate">ngForm</code>. This is quite unintuitive when instances of <code class="notranslate">ngControl</code>are referenced. Say I want to display an error message when a control is invalid. I'd need an instance of that control to check it's validity:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;input ngControl=&quot;name&quot; #name=&quot;ngForm&quot;&gt; &lt;p *ngIf=&quot;!name.valid&quot;&gt;This field is invalid!&lt;/p&gt;"><pre class="notranslate"><code class="notranslate">&lt;input ngControl="name" #name="ngForm"&gt; &lt;p *ngIf="!name.valid"&gt;This field is invalid!&lt;/p&gt; </code></pre></div> <p dir="auto">While this works (and I'm unsure if that's the way to do this), I'd rather expect <code class="notranslate">ngControl</code> to be exported as <code class="notranslate">ngControl</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;input ngControl=&quot;name&quot; #name=&quot;ngControl&quot;&gt;"><pre class="notranslate"><code class="notranslate">&lt;input ngControl="name" #name="ngControl"&gt; </code></pre></div> <p dir="auto">Is that something we can change? Or is there any reasoning behind <code class="notranslate">ngControl</code> being exported as <code class="notranslate">ngForm</code>?</p> <p dir="auto">This would be a BREAKING change.</p>
1
<p dir="auto">(Hopefully I did not find this issue in the list, because there was none...) I have experienced the following issue for a while (wonder if it ever worked actually):</p> <p dir="auto">I create a Series or a DataFrame with well-defined, floating-point indices. Then I try to slice some rows using a list. For some valid index values I get NaN instead of the value itself. An example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; import pandas as pd &gt;&gt;&gt; i = np.linspace(0, 10, 101) # create a floating-point (i)ndex-range &gt;&gt;&gt; d = np.random.random(101) # add some random numbers as (d)ata &gt;&gt;&gt; s = pd.Series(d, index=i) # create a Series from the generated data &gt;&gt;&gt; type(s) &lt;class 'pandas.core.series.Series'&gt; &gt;&gt;&gt; s.head() 0.0 0.969683 0.1 0.463655 0.2 0.879788 0.3 0.122202 0.4 0.466166 dtype: float64 &gt;&gt;&gt; xs = [0.8, 1.1, 1.9, 2.2, 3.3] # we make a list with a few indexes of interest &gt;&gt;&gt; s[xs] # try to list Series-values for those indices, but for some we see only NaN! 0.8 0.996011 1.1 0.699921 1.9 NaN 2.2 0.919059 3.3 NaN dtype: float64 R:\WinPython\python-3.4.3.amd64\lib\site-packages\pandas\core\format.py:2012: RuntimeWarning: invalid value encountered in greater has_large_values = (abs_vals &gt; 1e8).any() R:\WinPython\python-3.4.3.amd64\lib\site-packages\pandas\core\format.py:2013: RuntimeWarning: invalid value encountered in less has_small_values = ((abs_vals &lt; 10 ** (-self.digits+1)) &amp; R:\WinPython\python-3.4.3.amd64\lib\site-packages\pandas\core\format.py:2014: RuntimeWarning: invalid value encountered in greater (abs_vals &gt; 0)).any() &gt;&gt;&gt; s[1:2] # we can see, that the values are really there, also at index 1.9 1.0 0.905714 1.1 0.699921 1.2 0.105968 1.3 0.809368 1.4 0.227002 1.5 0.825698 1.6 0.911150 1.7 0.027182 1.8 0.046001 1.9 0.456927 2.0 0.592820 dtype: float64 &gt;&gt;&gt; "><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>, <span class="pl-c1">10</span>, <span class="pl-c1">101</span>) <span class="pl-c"># create a floating-point (i)ndex-range</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>(<span class="pl-c1">101</span>) <span class="pl-c"># add some random numbers as (d)ata</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">d</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">i</span>) <span class="pl-c"># create a Series from the generated data</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-en">type</span>(<span class="pl-s1">s</span>) <span class="pl-c1">&lt;</span><span class="pl-k">class</span> <span class="pl-s">'pandas.core.series.Series'</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">s</span>.<span class="pl-en">head</span>() <span class="pl-c1">0.0</span> <span class="pl-c1">0.969683</span> <span class="pl-c1">0.1</span> <span class="pl-c1">0.463655</span> <span class="pl-c1">0.2</span> <span class="pl-c1">0.879788</span> <span class="pl-c1">0.3</span> <span class="pl-c1">0.122202</span> <span class="pl-c1">0.4</span> <span class="pl-c1">0.466166</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">float64</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">xs</span> <span class="pl-c1">=</span> [<span class="pl-c1">0.8</span>, <span class="pl-c1">1.1</span>, <span class="pl-c1">1.9</span>, <span class="pl-c1">2.2</span>, <span class="pl-c1">3.3</span>] <span class="pl-c"># we make a list with a few indexes of interest</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">s</span>[<span class="pl-s1">xs</span>] <span class="pl-c"># try to list Series-values for those indices, but for some we see only NaN!</span> <span class="pl-c1">0.8</span> <span class="pl-c1">0.996011</span> <span class="pl-c1">1.1</span> <span class="pl-c1">0.699921</span> <span class="pl-c1">1.9</span> <span class="pl-v">NaN</span> <span class="pl-c1">2.2</span> <span class="pl-c1">0.919059</span> <span class="pl-c1">3.3</span> <span class="pl-v">NaN</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">float64</span> <span class="pl-v">R</span>:\W<span class="pl-s1">inPython</span>\p<span class="pl-s1">ython</span><span class="pl-c1">-</span><span class="pl-c1">3.4</span>.<span class="pl-c1">3.</span><span class="pl-s1">amd64</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\p<span class="pl-s1">andas</span>\c<span class="pl-s1">ore</span>\f<span class="pl-s1">ormat</span>.<span class="pl-s1">py</span>:<span class="pl-c1">2012</span>: <span class="pl-v">RuntimeWarning</span>: <span class="pl-s1">invalid</span> <span class="pl-s1">value</span> <span class="pl-s1">encountered</span> <span class="pl-c1">in</span> <span class="pl-s1">greater</span> <span class="pl-s1">has_large_values</span> <span class="pl-c1">=</span> (<span class="pl-s1">abs_vals</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">1e8</span>).<span class="pl-en">any</span>() <span class="pl-v">R</span>:\W<span class="pl-s1">inPython</span>\p<span class="pl-s1">ython</span><span class="pl-c1">-</span><span class="pl-c1">3.4</span>.<span class="pl-c1">3.</span><span class="pl-s1">amd64</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\p<span class="pl-s1">andas</span>\c<span class="pl-s1">ore</span>\f<span class="pl-s1">ormat</span>.<span class="pl-s1">py</span>:<span class="pl-c1">2013</span>: <span class="pl-v">RuntimeWarning</span>: <span class="pl-s1">invalid</span> <span class="pl-s1">value</span> <span class="pl-s1">encountered</span> <span class="pl-c1">in</span> <span class="pl-s1">less</span> <span class="pl-s1">has_small_values</span> <span class="pl-c1">=</span> ((<span class="pl-s1">abs_vals</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">10</span> <span class="pl-c1">**</span> (<span class="pl-c1">-</span><span class="pl-s1">self</span>.<span class="pl-s1">digits</span><span class="pl-c1">+</span><span class="pl-c1">1</span>)) <span class="pl-c1">&amp;</span> <span class="pl-v">R</span>:\W<span class="pl-s1">inPython</span>\p<span class="pl-s1">ython</span><span class="pl-c1">-</span><span class="pl-c1">3.4</span>.<span class="pl-c1">3.</span><span class="pl-s1">amd64</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\p<span class="pl-s1">andas</span>\c<span class="pl-s1">ore</span>\f<span class="pl-s1">ormat</span>.<span class="pl-s1">py</span>:<span class="pl-c1">2014</span>: <span class="pl-v">RuntimeWarning</span>: <span class="pl-s1">invalid</span> <span class="pl-s1">value</span> <span class="pl-s1">encountered</span> <span class="pl-c1">in</span> <span class="pl-en">greater</span> (<span class="pl-s1">abs_vals</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span>)).<span class="pl-en">any</span>() <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">s</span>[<span class="pl-c1">1</span>:<span class="pl-c1">2</span>] <span class="pl-c"># we can see, that the values are really there, also at index 1.9</span> <span class="pl-c1">1.0</span> <span class="pl-c1">0.905714</span> <span class="pl-c1">1.1</span> <span class="pl-c1">0.699921</span> <span class="pl-c1">1.2</span> <span class="pl-c1">0.105968</span> <span class="pl-c1">1.3</span> <span class="pl-c1">0.809368</span> <span class="pl-c1">1.4</span> <span class="pl-c1">0.227002</span> <span class="pl-c1">1.5</span> <span class="pl-c1">0.825698</span> <span class="pl-c1">1.6</span> <span class="pl-c1">0.911150</span> <span class="pl-c1">1.7</span> <span class="pl-c1">0.027182</span> <span class="pl-c1">1.8</span> <span class="pl-c1">0.046001</span> <span class="pl-c1">1.9</span> <span class="pl-c1">0.456927</span> <span class="pl-c1">2.0</span> <span class="pl-c1">0.592820</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">float64</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> </pre></div> <p dir="auto">The warnings are actually came from the console, the IPython Notebook that I normally use does not even issue them. Same result using e.g. <em>s.loc[xs]</em>. The problem also exists for DataFrames, which can be reproduced in the same manner.</p> <p dir="auto">I'm using the latest 64-bit WinPython with Python 3.4.3 and Pandas 0.16.1:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.4.3.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: hu_HU pandas: 0.16.1 nose: 1.3.6 Cython: 0.22 numpy: 1.9.2 scipy: 0.15.1 statsmodels: 0.6.1 IPython: 3.1.0 sphinx: 1.3.1 patsy: 0.3.0 dateutil: 2.4.2 pytz: 2015.2 bottleneck: None tables: 3.2.0 numexpr: 2.4.3 matplotlib: 1.4.3 openpyxl: None xlrd: 0.9.3 xlwt: None xlsxwriter: 0.7.2 lxml: None bs4: 4.3.2 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.4 pymysql: None psycopg2: None"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">show_versions</span>() <span class="pl-v">INSTALLED</span> <span class="pl-v">VERSIONS</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-s1">commit</span>: <span class="pl-c1">None</span> <span class="pl-s1">python</span>: <span class="pl-c1">3.4</span>.<span class="pl-c1">3.</span><span class="pl-s1">final</span>.<span class="pl-c1">0</span> <span class="pl-s1">python</span><span class="pl-c1">-</span><span class="pl-s1">bits</span>: <span class="pl-c1">64</span> <span class="pl-v">OS</span>: <span class="pl-v">Windows</span> <span class="pl-v">OS</span><span class="pl-c1">-</span><span class="pl-s1">release</span>: <span class="pl-c1">7</span> <span class="pl-s1">machine</span>: <span class="pl-v">AMD64</span> <span class="pl-s1">processor</span>: <span class="pl-v">Intel64</span> <span class="pl-v">Family</span> <span class="pl-c1">6</span> <span class="pl-v">Model</span> <span class="pl-c1">42</span> <span class="pl-v">Stepping</span> <span class="pl-c1">7</span>, <span class="pl-v">GenuineIntel</span> <span class="pl-s1">byteorder</span>: <span class="pl-s1">little</span> <span class="pl-v">LC_ALL</span>: <span class="pl-c1">None</span> <span class="pl-v">LANG</span>: <span class="pl-s1">hu_HU</span> <span class="pl-s1">pandas</span>: <span class="pl-c1">0.16</span>.<span class="pl-c1">1</span> <span class="pl-s1">nose</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">6</span> <span class="pl-v">Cython</span>: <span class="pl-c1">0.22</span> <span class="pl-s1">numpy</span>: <span class="pl-c1">1.9</span>.<span class="pl-c1">2</span> <span class="pl-s1">scipy</span>: <span class="pl-c1">0.15</span>.<span class="pl-c1">1</span> <span class="pl-s1">statsmodels</span>: <span class="pl-c1">0.6</span>.<span class="pl-c1">1</span> <span class="pl-v">IPython</span>: <span class="pl-c1">3.1</span>.<span class="pl-c1">0</span> <span class="pl-s1">sphinx</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">1</span> <span class="pl-s1">patsy</span>: <span class="pl-c1">0.3</span>.<span class="pl-c1">0</span> <span class="pl-s1">dateutil</span>: <span class="pl-c1">2.4</span>.<span class="pl-c1">2</span> <span class="pl-s1">pytz</span>: <span class="pl-c1">2015.2</span> <span class="pl-s1">bottleneck</span>: <span class="pl-c1">None</span> <span class="pl-s1">tables</span>: <span class="pl-c1">3.2</span>.<span class="pl-c1">0</span> <span class="pl-s1">numexpr</span>: <span class="pl-c1">2.4</span>.<span class="pl-c1">3</span> <span class="pl-s1">matplotlib</span>: <span class="pl-c1">1.4</span>.<span class="pl-c1">3</span> <span class="pl-s1">openpyxl</span>: <span class="pl-c1">None</span> <span class="pl-s1">xlrd</span>: <span class="pl-c1">0.9</span>.<span class="pl-c1">3</span> <span class="pl-s1">xlwt</span>: <span class="pl-c1">None</span> <span class="pl-s1">xlsxwriter</span>: <span class="pl-c1">0.7</span>.<span class="pl-c1">2</span> <span class="pl-s1">lxml</span>: <span class="pl-c1">None</span> <span class="pl-s1">bs4</span>: <span class="pl-c1">4.3</span>.<span class="pl-c1">2</span> <span class="pl-s1">html5lib</span>: <span class="pl-c1">None</span> <span class="pl-s1">httplib2</span>: <span class="pl-c1">None</span> <span class="pl-s1">apiclient</span>: <span class="pl-c1">None</span> <span class="pl-s1">sqlalchemy</span>: <span class="pl-c1">1.0</span>.<span class="pl-c1">4</span> <span class="pl-s1">pymysql</span>: <span class="pl-c1">None</span> <span class="pl-s1">psycopg2</span>: <span class="pl-c1">None</span></pre></div>
<p dir="auto">When trying to intersect two Index objects containing floats I get the following unexpected behavior:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; new_index = pd.Index(np.arange(0.0,1.0,0.1),dtype='float64') &gt;&gt;&gt; new_index2 = pd.Index(np.arange(0.5,1.0,0.1),dtype='float64') &gt;&gt;&gt; intersection = new_index.intersection(new_index2) Float64Index([0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9], dtype='float64') Float64Index([0.5, 0.6, 0.7, 0.8, 0.9], dtype='float64') Float64Index([0.5], dtype='float64')"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">new_index</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Index</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0.0</span>,<span class="pl-c1">1.0</span>,<span class="pl-c1">0.1</span>),<span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float64'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">new_index2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Index</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0.5</span>,<span class="pl-c1">1.0</span>,<span class="pl-c1">0.1</span>),<span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float64'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">intersection</span> <span class="pl-c1">=</span> <span class="pl-s1">new_index</span>.<span class="pl-en">intersection</span>(<span class="pl-s1">new_index2</span>) <span class="pl-v">Float64Index</span>([<span class="pl-c1">0.0</span>, <span class="pl-c1">0.1</span>, <span class="pl-c1">0.2</span>, <span class="pl-c1">0.3</span>, <span class="pl-c1">0.4</span>, <span class="pl-c1">0.5</span>, <span class="pl-c1">0.6</span>, <span class="pl-c1">0.7</span>, <span class="pl-c1">0.8</span>, <span class="pl-c1">0.9</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float64'</span>) <span class="pl-v">Float64Index</span>([<span class="pl-c1">0.5</span>, <span class="pl-c1">0.6</span>, <span class="pl-c1">0.7</span>, <span class="pl-c1">0.8</span>, <span class="pl-c1">0.9</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float64'</span>) <span class="pl-v">Float64Index</span>([<span class="pl-c1">0.5</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float64'</span>)</pre></div> <p dir="auto">Where I would expect the intersection to equal index2.</p> <p dir="auto">Pandas version string below:</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.9.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 3.13.0-45-generic<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8</p> <p dir="auto">pandas: 0.16.0<br> nose: 1.3.4<br> Cython: 0.21.2<br> numpy: 1.9.2<br> scipy: 0.15.1<br> statsmodels: None<br> IPython: 2.4.1<br> sphinx: None<br> patsy: None<br> dateutil: 2.4.2<br> pytz: 2015.2<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 1.4.3<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None</p>
1
<ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version: Windows 10 Pro</li> </ul> <p dir="auto">In Visual Studio (full version), I tend to turn off the Ctrl+LeftMouseClick go to definition feature. I personally prefer to have Ctrl+LeftMouseClick select the entire word under my mouse cursor.</p> <p dir="auto">From what I can see, mouse events are not configurable at the moment, and they are also not possible to override with extensions (to the best of my knowledge). It would be really nice to have a mouse mapping configuration file. Sublime Text has this (although it is sort of a hidden feature that is not exposed through the UI). Just as an example, my sublime text mousemap file looks like this:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[ { &quot;button&quot;: &quot;button1&quot;, &quot;count&quot;: 1, &quot;modifiers&quot;: [&quot;ctrl&quot;], &quot;press_command&quot;: &quot;drag_select&quot;, &quot;press_args&quot;: {&quot;by&quot;: &quot;words&quot;} } ]"><pre class="notranslate">[ { <span class="pl-ent">"button"</span>: <span class="pl-s"><span class="pl-pds">"</span>button1<span class="pl-pds">"</span></span>, <span class="pl-ent">"count"</span>: <span class="pl-c1">1</span>, <span class="pl-ent">"modifiers"</span>: [<span class="pl-s"><span class="pl-pds">"</span>ctrl<span class="pl-pds">"</span></span>], <span class="pl-ent">"press_command"</span>: <span class="pl-s"><span class="pl-pds">"</span>drag_select<span class="pl-pds">"</span></span>, <span class="pl-ent">"press_args"</span>: {<span class="pl-ent">"by"</span>: <span class="pl-s"><span class="pl-pds">"</span>words<span class="pl-pds">"</span></span>} } ]</pre></div>
<p dir="auto">Some users would like to be able to customize not just pure keyboard shortcuts but also mouse + modifier ones. These are currently hard coded, for example <kbd>alt</kbd>+click to add a selection.</p> <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134327714" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3091" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3091/hovercard" href="https://github.com/microsoft/vscode/issues/3091">#3091</a> for some more context.</p>
1
<p dir="auto">For now, the build result always comes into <code class="notranslate">dist/</code>. It would be nice if the build path can be configured.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bower install bootstrap bower bootstrap#* cached git://github.com/twbs/bootstrap.git#3.1.1 bower bootstrap#* validate 3.1.1 against git://github.com/twbs/bootstrap.git#* bower bootstrap#* new version for git://github.com/twbs/bootstrap.git#* bower bootstrap#* resolve git://github.com/twbs/bootstrap.git#* bower bootstrap#* download https://github.com/twbs/bootstrap/archive/v3.2.0.tar.gz bower bootstrap#* extract archive.tar.gz bower bootstrap#* resolved git://github.com/twbs/bootstrap.git#3.2.0 bower jquery#&gt;= 1.9.0 cached git://github.com/jquery/jquery.git#2.1.0 bower jquery#&gt;= 1.9.0 validate 2.1.0 against git://github.com/jquery/jquery.git#&gt;= 1.9.0 bower jquery#&gt;= 1.9.0 new version for git://github.com/jquery/jquery.git#&gt;= 1.9.0 bower jquery#&gt;= 1.9.0 resolve git://github.com/jquery/jquery.git#&gt;= 1.9.0 bower jquery#&gt;= 1.9.0 download https://github.com/jquery/jquery/archive/2.1.1.tar.gz bower jquery#&gt;= 1.9.0 extract archive.tar.gz bower jquery#&gt;= 1.9.0 resolved git://github.com/jquery/jquery.git#2.1.1 bower bootstrap#~3.2.0 install bootstrap#3.2.0 bower jquery#&gt;= 1.9.0 install jquery#2.1.1 bootstrap#3.2.0 bower_components/bootstrap └── jquery#2.1.1 jquery#2.1.1 bower_components/jquery $ cd bower_components/bootstrap $ npm install &lt;snipped&gt; $ grunt dist Running &quot;clean:dist&quot; (clean) task Cleaning dist...OK Running &quot;less:compileCore&quot; (less) task File dist/css/bootstrap.css.map created. File dist/css/bootstrap.css created: 131.45 kB β†’ 131.5 kB Running &quot;less:compileTheme&quot; (less) task File dist/css/bootstrap-theme.css.map created. File dist/css/bootstrap-theme.css created: 17.85 kB β†’ 17.89 kB Running &quot;autoprefixer:core&quot; (autoprefixer) task File dist/css/bootstrap.css created. File dist/css/bootstrap.css.map created (source map). Running &quot;autoprefixer:theme&quot; (autoprefixer) task File dist/css/bootstrap-theme.css created. File dist/css/bootstrap-theme.css.map created (source map). Running &quot;autoprefixer:docs&quot; (autoprefixer) task Warning: No source files were found. Use --force to continue. Aborted due to warnings. &lt;snipped&gt;"><pre class="notranslate"><code class="notranslate">$ bower install bootstrap bower bootstrap#* cached git://github.com/twbs/bootstrap.git#3.1.1 bower bootstrap#* validate 3.1.1 against git://github.com/twbs/bootstrap.git#* bower bootstrap#* new version for git://github.com/twbs/bootstrap.git#* bower bootstrap#* resolve git://github.com/twbs/bootstrap.git#* bower bootstrap#* download https://github.com/twbs/bootstrap/archive/v3.2.0.tar.gz bower bootstrap#* extract archive.tar.gz bower bootstrap#* resolved git://github.com/twbs/bootstrap.git#3.2.0 bower jquery#&gt;= 1.9.0 cached git://github.com/jquery/jquery.git#2.1.0 bower jquery#&gt;= 1.9.0 validate 2.1.0 against git://github.com/jquery/jquery.git#&gt;= 1.9.0 bower jquery#&gt;= 1.9.0 new version for git://github.com/jquery/jquery.git#&gt;= 1.9.0 bower jquery#&gt;= 1.9.0 resolve git://github.com/jquery/jquery.git#&gt;= 1.9.0 bower jquery#&gt;= 1.9.0 download https://github.com/jquery/jquery/archive/2.1.1.tar.gz bower jquery#&gt;= 1.9.0 extract archive.tar.gz bower jquery#&gt;= 1.9.0 resolved git://github.com/jquery/jquery.git#2.1.1 bower bootstrap#~3.2.0 install bootstrap#3.2.0 bower jquery#&gt;= 1.9.0 install jquery#2.1.1 bootstrap#3.2.0 bower_components/bootstrap └── jquery#2.1.1 jquery#2.1.1 bower_components/jquery $ cd bower_components/bootstrap $ npm install &lt;snipped&gt; $ grunt dist Running "clean:dist" (clean) task Cleaning dist...OK Running "less:compileCore" (less) task File dist/css/bootstrap.css.map created. File dist/css/bootstrap.css created: 131.45 kB β†’ 131.5 kB Running "less:compileTheme" (less) task File dist/css/bootstrap-theme.css.map created. File dist/css/bootstrap-theme.css created: 17.85 kB β†’ 17.89 kB Running "autoprefixer:core" (autoprefixer) task File dist/css/bootstrap.css created. File dist/css/bootstrap.css.map created (source map). Running "autoprefixer:theme" (autoprefixer) task File dist/css/bootstrap-theme.css created. File dist/css/bootstrap-theme.css.map created (source map). Running "autoprefixer:docs" (autoprefixer) task Warning: No source files were found. Use --force to continue. Aborted due to warnings. &lt;snipped&gt; </code></pre></div>
1
<p dir="auto">Summary.</p> <p dir="auto">Since off the grid I manually installed IDNA 2.8 as a dependant. When installing requests via the .whl file v2.20.1 version. It manually tried to download the IDNA 2.7 version. I manually installed IDNA 2.7 and the install completed correctly.</p> <p dir="auto">What you expected.</p> <p dir="auto">To install correctly with IDNA 2.8</p> <p dir="auto">What happened instead.</p> <p dir="auto">When installing Requests version IDNA 2.7 will be downloaded.</p> <h2 dir="auto">System Information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;chardet&quot;: { &quot;version&quot;: &quot;3.0.4&quot; }, &quot;cryptography&quot;: { &quot;version&quot;: &quot;&quot; }, &quot;idna&quot;: { &quot;version&quot;: &quot;2.7&quot; }, &quot;implementation&quot;: { &quot;name&quot;: &quot;CPython&quot;, &quot;version&quot;: &quot;3.7.1&quot; }, &quot;platform&quot;: { &quot;release&quot;: &quot;2008ServerR2&quot;, &quot;system&quot;: &quot;Windows&quot; }, &quot;pyOpenSSL&quot;: { &quot;openssl_version&quot;: &quot;&quot;, &quot;version&quot;: null }, &quot;requests&quot;: { &quot;version&quot;: &quot;2.20.1&quot; }, &quot;system_ssl&quot;: { &quot;version&quot;: &quot;1010009f&quot; }, &quot;urllib3&quot;: { &quot;version&quot;: &quot;1.24.1&quot; }, &quot;using_pyopenssl&quot;: false }"><pre class="notranslate"><code class="notranslate">{ "chardet": { "version": "3.0.4" }, "cryptography": { "version": "" }, "idna": { "version": "2.7" }, "implementation": { "name": "CPython", "version": "3.7.1" }, "platform": { "release": "2008ServerR2", "system": "Windows" }, "pyOpenSSL": { "openssl_version": "", "version": null }, "requests": { "version": "2.20.1" }, "system_ssl": { "version": "1010009f" }, "urllib3": { "version": "1.24.1" }, "using_pyopenssl": false } </code></pre></div> <p dir="auto">This command is only available on Requests v2.16.4 and greater. Otherwise,<br> please provide some basic information about your system (Python version,<br> operating system, &amp;c).</p>
<p dir="auto">This error appears since last version (my code works with 2.11, 2.9 etc...)</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" File &quot;C:\Users\vqmg0203\Desktop\app\core\models\database.py&quot;, line 211, in update_infos r = self.request_get(self.user_url) File &quot;C:\Users\vqmg0203\Desktop\app\core\handlers\http.py&quot;, line 30, in wrapped return f(self, *args, **kwargs) File &quot;C:\Users\vqmg0203\Desktop\app\core\handlers\http.py&quot;, line 130, in request_get allow_redirects=False) File &quot;C:\Python27\lib\site-packages\requests\sessions.py&quot;, line 501, in get return self.request('GET', url, **kwargs) File &quot;C:\Python27\lib\site-packages\requests\sessions.py&quot;, line 474, in request prep = self.prepare_request(req) File &quot;C:\Python27\lib\site-packages\requests\sessions.py&quot;, line 407, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File &quot;C:\Python27\lib\site-packages\requests\models.py&quot;, line 306, in prepare self.prepare_auth(auth, url) File &quot;C:\Python27\lib\site-packages\requests\models.py&quot;, line 527, in prepare_auth r = auth(self) File &quot;C:\Python27\lib\site-packages\requests\auth.py&quot;, line 68, in __call__ r.headers['Authorization'] = _basic_auth_str(self.username, self.password) File &quot;C:\Python27\lib\site-packages\requests\auth.py&quot;, line 38, in _basic_auth_str b64encode(b':'.join((username, password))).strip() TypeError: sequence item 1: expected string, NoneType found"><pre class="notranslate"> <span class="pl-v">File</span> <span class="pl-s">"C:\Users<span class="pl-cce">\v</span>qmg0203\Desktop<span class="pl-cce">\a</span>pp\core\models\database.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">211</span>, <span class="pl-s1">in</span> <span class="pl-s1">update_infos</span> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">request_get</span>(<span class="pl-s1">self</span>.<span class="pl-s1">user_url</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Users<span class="pl-cce">\v</span>qmg0203\Desktop<span class="pl-cce">\a</span>pp\core\handlers\http.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">30</span>, <span class="pl-s1">in</span> <span class="pl-s1">wrapped</span> <span class="pl-k">return</span> <span class="pl-en">f</span>(<span class="pl-s1">self</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Users<span class="pl-cce">\v</span>qmg0203\Desktop<span class="pl-cce">\a</span>pp\core\handlers\http.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">130</span>, <span class="pl-s1">in</span> <span class="pl-s1">request_get</span> <span class="pl-s1">allow_redirects</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">501</span>, <span class="pl-s1">in</span> <span class="pl-s1">get</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">request</span>(<span class="pl-s">'GET'</span>, <span class="pl-s1">url</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">474</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span> <span class="pl-s1">prep</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">prepare_request</span>(<span class="pl-s1">req</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">407</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare_request</span> <span class="pl-s1">hooks</span><span class="pl-c1">=</span><span class="pl-en">merge_hooks</span>(<span class="pl-s1">request</span>.<span class="pl-s1">hooks</span>, <span class="pl-s1">self</span>.<span class="pl-s1">hooks</span>), <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">306</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare</span> <span class="pl-s1">self</span>.<span class="pl-en">prepare_auth</span>(<span class="pl-s1">auth</span>, <span class="pl-s1">url</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests\models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">527</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare_auth</span> <span class="pl-s1">r</span> <span class="pl-c1">=</span> <span class="pl-en">auth</span>(<span class="pl-s1">self</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests<span class="pl-cce">\a</span>uth.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">68</span>, <span class="pl-s1">in</span> <span class="pl-s1">__call__</span> <span class="pl-s1">r</span>.<span class="pl-s1">headers</span>[<span class="pl-s">'Authorization'</span>] <span class="pl-c1">=</span> <span class="pl-en">_basic_auth_str</span>(<span class="pl-s1">self</span>.<span class="pl-s1">username</span>, <span class="pl-s1">self</span>.<span class="pl-s1">password</span>) <span class="pl-v">File</span> <span class="pl-s">"C:\Python27\lib\site-packages<span class="pl-cce">\r</span>equests<span class="pl-cce">\a</span>uth.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">38</span>, <span class="pl-s1">in</span> <span class="pl-s1">_basic_auth_str</span> <span class="pl-en">b64encode</span>(<span class="pl-s">b':'</span>.<span class="pl-en">join</span>((<span class="pl-s1">username</span>, <span class="pl-s1">password</span>))).<span class="pl-en">strip</span>() <span class="pl-v">TypeError</span>: <span class="pl-s1">sequence</span> <span class="pl-s1">item</span> <span class="pl-c1">1</span>: <span class="pl-s1">expected</span> <span class="pl-s1">string</span>, <span class="pl-v">NoneType</span> <span class="pl-s1">found</span></pre></div>
0
<h4 dir="auto">Description</h4> <p dir="auto">I've been unable to perform a grid-search on a pipeline that changes sample numbers. The pipeline itself works fine, since I use a FunctionTransformer() that feeds into the classifier with the fewer number of samples.</p> <p dir="auto">The idea here is that I need to train a topic model embedding of a large corpus, and since this is unsupervised, I use the entire corpus I have to learn these topics (or alternatively use w2v). Then, only a subset of these are <em>labeled</em>, so I extract the labeled docs and train a LinearSVC to predict some label based on the topic vectors. I cobbled this pipe together using Textacy (based on SpaCy) and SKLearn, but it does work, taking a corpus object as input and getting a classification as output.</p> <p dir="auto">I would like to grid search the topic number <em>using the cross-validation score of the classifier</em>. This seems perfectly reasonable to me, since the parameters I'm picking are in the large-sample space and the CV score I get is in the small-sample space, but neither affect the ordering of the other, in principal.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <p dir="auto">Here's <a href="https://gist.github.com/tbsexton/88c5a6a3cebd98311244c065378892e0">a notebook gist</a>, but note that there are a few extra classes I've defined externally to process the text corpus and return topic vectors. Still, the pipe works just <em>not in the grid-search</em>.</p> <h4 dir="auto">Expected Results</h4> <p dir="auto">CV score of a classifier fed topic vectors (trained from more samples than the classifier has labels for) for varying numbers of topics/model types.</p> <h4 dir="auto">Actual Results</h4> <p dir="auto">See gist.</p> <h4 dir="auto">Versions</h4> <p dir="auto">Windows-7-6.1.7601-SP1<br> ('Python', '2.7.13 |Anaconda custom (64-bit)| (default, Dec 19 2016, 13:29:36) [MSC v.1500 64 bit (AMD64)]')<br> ('NumPy', '1.11.3')<br> ('SciPy', '0.18.1')<br> ('Scikit-Learn', '0.18.1')</p>
<p dir="auto">Some data transformations -- including over/under-sampling (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9116662" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/1454" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/1454/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/1454">#1454</a>), outlier removal, instance reduction, and other forms of dataset compression, like that used in BIRCH (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46758226" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/3802" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/3802/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/3802">#3802</a>) -- entail altering a dataset at training time, but leaving it unaltered at prediction time. (In some cases, such as outlier removal, it makes sense to reapply a fitted model to new data, while in others model reuse after fitting seems less applicable. )</p> <p dir="auto">As noted <a href="https://github.com/scikit-learn/scikit-learn/pull/1454#issuecomment-11313359" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/1454/hovercard">elsewhere</a>, transformers that change the number of samples are not currently supported, certainly in the context of <code class="notranslate">Pipeline</code>s where a transformation is applied both at <code class="notranslate">fit</code> and <code class="notranslate">predict</code> time (although a hack might abuse <code class="notranslate">fit_transform</code> to make this not so). <code class="notranslate">Pipeline</code>s of <code class="notranslate">Transformer</code>s also would not cope with changes in the sample size at fit time for supervised problems because <code class="notranslate">Transformer</code>s do not return a modified <code class="notranslate">y</code>, only <code class="notranslate">X</code>.</p> <p dir="auto">To handle this class of problems, I propose introducing a new category of estimator, called a <code class="notranslate">Resampler</code>. It must define at least a <code class="notranslate">fit_resample</code> method, which <code class="notranslate">Pipeline</code> will call at <code class="notranslate">fit</code> time, passing the data unchanged at other times. (For this reason, a <code class="notranslate">Resampler</code> cannot also be a <code class="notranslate">Transformer</code>, or else we need to define their precedence.)</p> <p dir="auto">For many models, <code class="notranslate">fit_resample</code> needs only return <code class="notranslate">sample_weight</code>. For sample compression approaches (e.g. that in BIRCH), this is not sufficient as the representative centroids are modified from the input samples. Hence I think <code class="notranslate">fit_resample</code> should return altered data directly, in the form of a dict with keys <code class="notranslate">X</code>, <code class="notranslate">y</code>, <code class="notranslate">sample_weight</code> as required. (It still might be appropriate for many <code class="notranslate">Resampler</code>s to only modify <code class="notranslate">sample_weight</code>; if necessary, another <code class="notranslate">Resampler</code> can be chained that realises the weights as replicated or deleted entries in <code class="notranslate">X</code> and <code class="notranslate">y</code>.)</p>
1
<ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version: win 10 pro, version 1511, os build 10586.318</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Start visual studio</li> <li>open folder</li> <li>wait</li> </ol> <p dir="auto">Get an error msg, window has crashed We are sorry..... You can reopen...</p>
<ul dir="auto"> <li>VSCode Version: 1.0.0</li> <li>OS Version: Windows 10 Pro</li> </ul> <p dir="auto">Hi,</p> <p dir="auto">I want to post an issues about git extension performance.<br> I suspect git extension in the sidebar is blocking the memory that VS Code using. I experience some lag when I try to type my code.</p> <p dir="auto">This is occur when git refresh it status because it become laggy when loading icon appear on git sidebar, after I edit some of my code.</p> <p dir="auto">This is not always happening when I edit my code but very often.</p> <p dir="auto">Thank you</p>
1
<p dir="auto">I've used the 15.4.1 version of the react and react-dom together. I get the following errors:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12233474/21084429/0ee3ab0a-bfc9-11e6-9aa9-2edd7b8bf4ff.png"><img src="https://cloud.githubusercontent.com/assets/12233474/21084429/0ee3ab0a-bfc9-11e6-9aa9-2edd7b8bf4ff.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12233474/21084427/048eda9e-bfc9-11e6-9fae-873d93762d1a.png"><img src="https://cloud.githubusercontent.com/assets/12233474/21084427/048eda9e-bfc9-11e6-9fae-873d93762d1a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">This is my set-up:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12233474/21084418/e695190e-bfc8-11e6-8cd0-ff3b3fdb5fb5.png"><img src="https://cloud.githubusercontent.com/assets/12233474/21084418/e695190e-bfc8-11e6-8cd0-ff3b3fdb5fb5.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12233474/21084422/f2ca4046-bfc8-11e6-9597-e4ffa0078d86.png"><img src="https://cloud.githubusercontent.com/assets/12233474/21084422/f2ca4046-bfc8-11e6-9597-e4ffa0078d86.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I don't have the problem if I use the same code, but the 15.1.0 version instead of 15.4.1.</p>
<p dir="auto">I use <code class="notranslate">react-with-addons</code> in a RequireJS enviroment. If I try to use <code class="notranslate">React.addons.Perf</code>, I get a <code class="notranslate">ReferenceError: ReactDOM is not defined</code> from <a href="https://github.com/facebook/react/blob/15-dev/src/umd/shims/ReactAddonsDOMDependenciesUMDShim.js#L26">https://github.com/facebook/react/blob/15-dev/src/umd/shims/ReactAddonsDOMDependenciesUMDShim.js#L26</a>.<br> This is a regression from 15.3.x.</p>
1
<p dir="auto">The separation of string to text and keyword is awesome. The only remaining item in my opinion is the not-tokenized-but-lowercased case - it is common enough but will still require some rigorous configuration. It probably makes sense now to allow specifying "token-filters" to execute on "keyword" fields directly in that field's mapping (because different approaches to normalization can be taken - ascii folding, etc). I'm aware of tokenizing tokenfilters (e.g. word-delimiter) but think we can ignore that edge-case for this purpose. WDYT?</p>
<p dir="auto">Sometimes you want to analyze text to make it consistent when running aggregations on top of it.</p> <p dir="auto">For example, let's say I have a <code class="notranslate">city</code> field mapped as a <code class="notranslate">keyword</code>.</p> <p dir="auto">This field can contain <code class="notranslate">San Francisco</code>, <code class="notranslate">SAN FRANCISCO</code>, <code class="notranslate">San francisco</code>...</p> <p dir="auto">If I build a terms aggregation on top of it, I will end up with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="San Francisco: 1 SAN FRANCISCO: 1 San francisco: 1"><pre class="notranslate"><code class="notranslate">San Francisco: 1 SAN FRANCISCO: 1 San francisco: 1 </code></pre></div> <p dir="auto">I'd like to be able to analyze this text before it gets indexed. Of course I could use a <code class="notranslate">text</code> field instead and set <code class="notranslate">fielddata: true</code> but that would not create doc values for this field.</p> <p dir="auto">I can imagine that we allow an analyzer at index time for this field.</p> <p dir="auto">We can restrict its usage if we wish and only allows analyzers which are using tokenizers like <code class="notranslate">lowercase</code>, <code class="notranslate">keyword</code>, <code class="notranslate">path</code> but I would let the user decide.</p> <p dir="auto">If we allow setting <code class="notranslate">analyzer: simple</code> for example, my aggregation will become:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="san francisco: 3"><pre class="notranslate"><code class="notranslate">san francisco: 3 </code></pre></div> <p dir="auto">Same applies for path tokenizer.</p> <p dir="auto">Let say I'm building a dir tree like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/tmp/dir1/file1.txt /tmp/dir1/file2.txt /tmp/dir2/file3.txt /tmp/dir2/file4.txt"><pre class="notranslate"><code class="notranslate">/tmp/dir1/file1.txt /tmp/dir1/file2.txt /tmp/dir2/file3.txt /tmp/dir2/file4.txt </code></pre></div> <p dir="auto">Applying a path tokenizer would help me to generate an aggregation like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/tmp/dir1: 2 /tmp/dir2: 2 /tmp: 4"><pre class="notranslate"><code class="notranslate">/tmp/dir1: 2 /tmp/dir2: 2 /tmp: 4 </code></pre></div>
1
<p dir="auto">When running <code class="notranslate">deno compile --allow-read --allow-env --allow-sys .src/feces-cli.ts</code><br> I can provide config files upon request.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Compile file:///home/akpi/git/feces-cli/src/feces-cli.ts to feces-cli ============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: linux x86_64 Version: 1.34.0 Args: [&quot;deno&quot;, &quot;compile&quot;, &quot;--allow-read&quot;, &quot;--allow-env&quot;, &quot;--allow-sys&quot;, &quot;./src/feces-cli.ts&quot;] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: StripPrefixError(())', cli/standalone/virtual_fs.rs:154:53 stack backtrace: 0: 0x5a97c18d380a - std::backtrace_rs::backtrace::libunwind::trace::ha271a8a7e1f3d4ef at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x5a97c18d380a - std::backtrace_rs::backtrace::trace_unsynchronized::h85739da0352c791a at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x5a97c18d380a - std::sys_common::backtrace::_print_fmt::hbc6ebcfb2910b329 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:65:5 3: 0x5a97c18d380a - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::he1c117e52d53614f at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:44:22 4: 0x5a97c190008e - core::fmt::write::h25eb51b9526b8e0c at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/fmt/mod.rs:1213:17 5: 0x5a97c18ca595 - std::io::Write::write_fmt::ha9edec5fb1621933 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/io/mod.rs:1682:15 6: 0x5a97c18d35d5 - std::sys_common::backtrace::_print::hf8657cd429fc3452 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:47:5 7: 0x5a97c18d35d5 - std::sys_common::backtrace::print::h41b9b18ed86f86bd at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:34:9 8: 0x5a97c18d53cf - std::panicking::default_hook::{{closure}}::h22a91871f4454152 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:267:22 9: 0x5a97c18d510b - std::panicking::default_hook::h21ddc36de0cd4ae7 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:286:9 10: 0x5a97c1cc9041 - deno::setup_panic_hook::{{closure}}::h6b637d0223f22f3d 11: 0x5a97c18d5b5a - &lt;alloc::boxed::Box&lt;F,A&gt; as core::ops::function::Fn&lt;Args&gt;&gt;::call::h6f7e3c94ecc52e2f at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/alloc/src/boxed.rs:2002:9 12: 0x5a97c18d5b5a - std::panicking::rust_panic_with_hook::h5059419d6d59b3d0 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:692:13 13: 0x5a97c18d58d9 - std::panicking::begin_panic_handler::{{closure}}::h0f383c291cd78343 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:579:13 14: 0x5a97c18d3cbc - std::sys_common::backtrace::__rust_end_short_backtrace::h70ab22f2ad318cdd at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:137:18 15: 0x5a97c18d55e2 - rust_begin_unwind at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:575:5 16: 0x5a97c18fd543 - core::panicking::panic_fmt::hd1d46bcde3c61d72 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/panicking.rs:64:14 17: 0x5a97c18fda73 - core::result::unwrap_failed::h456a23f68607268c at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/result.rs:1790:5 18: 0x5a97c19d0052 - core::result::Result&lt;T,E&gt;::unwrap::h5aeea41338c282af 19: 0x5a97c1c4f7fb - deno::standalone::virtual_fs::VfsBuilder::add_dir_recursive::h88f460a7c0e31303 20: 0x5a97c1c4f4d1 - deno::standalone::virtual_fs::VfsBuilder::add_dir_recursive::h88f460a7c0e31303 21: 0x5a97c1c4bfd7 - deno::standalone::binary::DenoCompileBinaryWriter::write_standalone_binary::{{closure}}::h9627bed3428a47ad 22: 0x5a97c1c62eac - deno::tools::compile::compile::{{closure}}::h87e9f59d35bb32fa 23: 0x5a97c1ae171c - &lt;deno_core::task::MaskFutureAsSend&lt;F&gt; as core::future::future::Future&gt;::poll::h7c1a8655040411bf 24: 0x5a97c1a1e77c - tokio::runtime::task::raw::poll::h68723962e8ad1764 25: 0x5a97c1cc9e94 - deno::main::ha8754a53c91c576c 26: 0x5a97c1962002 - std::sys_common::backtrace::__rust_begin_short_backtrace::haf7b0912d908212d 27: 0x5a97c1966624 - std::rt::lang_start::{{closure}}::h97f201e2df6e2f77 28: 0x5a97c18bf96c - core::ops::function::impls::&lt;impl core::ops::function::FnOnce&lt;A&gt; for &amp;F&gt;::call_once::h203afb3af230319a at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/ops/function.rs:287:13 29: 0x5a97c18bf96c - std::panicking::try::do_call::hf68e87013b70f3c5 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:483:40 30: 0x5a97c18bf96c - std::panicking::try::h040ea8f298390ba2 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:447:19 31: 0x5a97c18bf96c - std::panic::catch_unwind::h1e17b198887a05fa at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panic.rs:140:14 32: 0x5a97c18bf96c - std::rt::lang_start_internal::{{closure}}::hfb902d8927e51b86 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/rt.rs:148:48 33: 0x5a97c18bf96c - std::panicking::try::do_call::h354e6eb41f2e7d42 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:483:40 34: 0x5a97c18bf96c - std::panicking::try::h4a39749cd018228c at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:447:19 35: 0x5a97c18bf96c - std::panic::catch_unwind::h30bce83b8de61cca at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panic.rs:140:14 36: 0x5a97c18bf96c - std::rt::lang_start_internal::h8f7e70b1a2558118 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/rt.rs:148:20 37: 0x5a97c1d632a5 - main 38: 0x7f1eb70e7d0a - __libc_start_main 39: 0x5a97c087d029 - _start 40: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">Compile file:///home/akpi/git/feces-cli/src/feces-cli.ts to feces-cli ============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: linux x86_64 Version: 1.34.0 Args: ["deno", "compile", "--allow-read", "--allow-env", "--allow-sys", "./src/feces-cli.ts"] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: StripPrefixError(())', cli/standalone/virtual_fs.rs:154:53 stack backtrace: 0: 0x5a97c18d380a - std::backtrace_rs::backtrace::libunwind::trace::ha271a8a7e1f3d4ef at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x5a97c18d380a - std::backtrace_rs::backtrace::trace_unsynchronized::h85739da0352c791a at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x5a97c18d380a - std::sys_common::backtrace::_print_fmt::hbc6ebcfb2910b329 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:65:5 3: 0x5a97c18d380a - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::he1c117e52d53614f at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:44:22 4: 0x5a97c190008e - core::fmt::write::h25eb51b9526b8e0c at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/fmt/mod.rs:1213:17 5: 0x5a97c18ca595 - std::io::Write::write_fmt::ha9edec5fb1621933 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/io/mod.rs:1682:15 6: 0x5a97c18d35d5 - std::sys_common::backtrace::_print::hf8657cd429fc3452 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:47:5 7: 0x5a97c18d35d5 - std::sys_common::backtrace::print::h41b9b18ed86f86bd at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:34:9 8: 0x5a97c18d53cf - std::panicking::default_hook::{{closure}}::h22a91871f4454152 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:267:22 9: 0x5a97c18d510b - std::panicking::default_hook::h21ddc36de0cd4ae7 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:286:9 10: 0x5a97c1cc9041 - deno::setup_panic_hook::{{closure}}::h6b637d0223f22f3d 11: 0x5a97c18d5b5a - &lt;alloc::boxed::Box&lt;F,A&gt; as core::ops::function::Fn&lt;Args&gt;&gt;::call::h6f7e3c94ecc52e2f at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/alloc/src/boxed.rs:2002:9 12: 0x5a97c18d5b5a - std::panicking::rust_panic_with_hook::h5059419d6d59b3d0 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:692:13 13: 0x5a97c18d58d9 - std::panicking::begin_panic_handler::{{closure}}::h0f383c291cd78343 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:579:13 14: 0x5a97c18d3cbc - std::sys_common::backtrace::__rust_end_short_backtrace::h70ab22f2ad318cdd at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/sys_common/backtrace.rs:137:18 15: 0x5a97c18d55e2 - rust_begin_unwind at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:575:5 16: 0x5a97c18fd543 - core::panicking::panic_fmt::hd1d46bcde3c61d72 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/panicking.rs:64:14 17: 0x5a97c18fda73 - core::result::unwrap_failed::h456a23f68607268c at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/result.rs:1790:5 18: 0x5a97c19d0052 - core::result::Result&lt;T,E&gt;::unwrap::h5aeea41338c282af 19: 0x5a97c1c4f7fb - deno::standalone::virtual_fs::VfsBuilder::add_dir_recursive::h88f460a7c0e31303 20: 0x5a97c1c4f4d1 - deno::standalone::virtual_fs::VfsBuilder::add_dir_recursive::h88f460a7c0e31303 21: 0x5a97c1c4bfd7 - deno::standalone::binary::DenoCompileBinaryWriter::write_standalone_binary::{{closure}}::h9627bed3428a47ad 22: 0x5a97c1c62eac - deno::tools::compile::compile::{{closure}}::h87e9f59d35bb32fa 23: 0x5a97c1ae171c - &lt;deno_core::task::MaskFutureAsSend&lt;F&gt; as core::future::future::Future&gt;::poll::h7c1a8655040411bf 24: 0x5a97c1a1e77c - tokio::runtime::task::raw::poll::h68723962e8ad1764 25: 0x5a97c1cc9e94 - deno::main::ha8754a53c91c576c 26: 0x5a97c1962002 - std::sys_common::backtrace::__rust_begin_short_backtrace::haf7b0912d908212d 27: 0x5a97c1966624 - std::rt::lang_start::{{closure}}::h97f201e2df6e2f77 28: 0x5a97c18bf96c - core::ops::function::impls::&lt;impl core::ops::function::FnOnce&lt;A&gt; for &amp;F&gt;::call_once::h203afb3af230319a at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/core/src/ops/function.rs:287:13 29: 0x5a97c18bf96c - std::panicking::try::do_call::hf68e87013b70f3c5 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:483:40 30: 0x5a97c18bf96c - std::panicking::try::h040ea8f298390ba2 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:447:19 31: 0x5a97c18bf96c - std::panic::catch_unwind::h1e17b198887a05fa at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panic.rs:140:14 32: 0x5a97c18bf96c - std::rt::lang_start_internal::{{closure}}::hfb902d8927e51b86 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/rt.rs:148:48 33: 0x5a97c18bf96c - std::panicking::try::do_call::h354e6eb41f2e7d42 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:483:40 34: 0x5a97c18bf96c - std::panicking::try::h4a39749cd018228c at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panicking.rs:447:19 35: 0x5a97c18bf96c - std::panic::catch_unwind::h30bce83b8de61cca at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/panic.rs:140:14 36: 0x5a97c18bf96c - std::rt::lang_start_internal::h8f7e70b1a2558118 at /rustc/9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0/library/std/src/rt.rs:148:20 37: 0x5a97c1d632a5 - main 38: 0x7f1eb70e7d0a - __libc_start_main 39: 0x5a97c087d029 - _start 40: 0x0 - &lt;unknown&gt; </code></pre></div> <p dir="auto">Steps to reproduce:</p> <ol dir="auto"> <li>Run the command at the top.<br> Error is reliably reproduced after deleting the created executable and re-running the command.</li> </ol> <p dir="auto"><strong>Update:</strong> The executable created is empty.</p>
<p dir="auto">Deno 1.34 has been released and deno compile now supports npm packages.</p> <p dir="auto"><a href="https://deno.com/blog/v1.34" rel="nofollow">Deno 1.34 Updates</a> I am doing the following based on the example in this document.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat main.ts import { say } from &quot;npm:[email protected]&quot;; console.log(say({ text: &quot;Hello from Deno!&quot; })); $ deno compile --allow-read main.ts $ ./main.ts"><pre class="notranslate"><code class="notranslate">$ cat main.ts import { say } from "npm:[email protected]"; console.log(say({ text: "Hello from Deno!" })); $ deno compile --allow-read main.ts $ ./main.ts </code></pre></div> <p dir="auto">But I am getting an error as below.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: macos x86_64 Version: 1.34.0 Args: [&quot;deno&quot;, &quot;compile&quot;, &quot;--allow-read&quot;, &quot;main.ts&quot;] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: StripPrefixError(())', cli/standalone/virtual_fs.rs:154:53 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"><pre class="notranslate"><code class="notranslate">============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: macos x86_64 Version: 1.34.0 Args: ["deno", "compile", "--allow-read", "main.ts"] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: StripPrefixError(())', cli/standalone/virtual_fs.rs:154:53 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace </code></pre></div> <p dir="auto">What is the reason of this ? What should we do ?</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">My laptop vendor didn't included simple media keys on keyboard. I use PT to create shortcuts to virtual keys like Media Play/Pause, Volume Up/Down.</p> <p dir="auto">In Keyboard Manager there are two options: Remap Keyboard (key to key) and Remap Shortcuts (key combination to key combination). But when I try to create shortcut like this:</p> <blockquote> <p dir="auto">Ctrl + Alt + Up =&gt; Volume Up<br> Ctrl + Alt + Down =&gt; Volume Down<br> Ctrl + Alt + Right =&gt; Media Play/Pause</p> </blockquote> <p dir="auto">I always get an error <code class="notranslate">Shortcut must start with a modifier key</code> over target shortcut key. But in this case, there's no modifier key needed. So I end up with same combinations with Ctrl, as they work ok:</p> <blockquote> <p dir="auto">Ctrl + Alt + Up =&gt; <strong>Ctrl</strong> + Volume Up<br> Ctrl + Alt + Down =&gt; <strong>Ctrl</strong> + Volume Down<br> Ctrl + Alt + Right =&gt; <strong>Ctrl</strong> + Media Play/Pause</p> </blockquote> <p dir="auto">I would like to define shortcuts (especially for media keys) without needing to fake shortcut with Ctrl.</p> <h1 dir="auto">Proposed technical implementation details</h1> <p dir="auto">I think the right side of shortcut shouldn't require modifier key. Even standard keys can be mapped as destination without modifier - if someone want to type <code class="notranslate">X</code> by pressing Ctrl + Alt + Shift + z, this should be allowed.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Ability to remap a single key (Β² for example, sleeping in the top left corner of my KB), and assign it for example to alt+space, in order to open powertoys run, or to "open a new terminal", or whatever</p>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Assigning <code class="notranslate">.skinning = true</code> doesn't work when the material is assigned to <code class="notranslate">scene.overrideMaterial</code>:</p> <p dir="auto"><code class="notranslate">scene.overrideMaterial = new THREE.MeshPhysicalMaterial({skinning: true})</code></p> <p dir="auto">The material and rendered image behave identically to as if <code class="notranslate">.skinning === false</code>.</p> <h5 dir="auto">Three.js version</h5> <ul dir="auto"> <li>[ x ] r118</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Webkit</li> </ul>
<p dir="auto">When setting the override material for a scene the maps and other settings on the original material are not used -- this applies to animations, mesh instances, and other uniforms and defines, as well. This jsfiddle shows that the normal map is not applied when rendering the scene with a <code class="notranslate">MeshNormalMaterial</code> applied:</p> <p dir="auto"><a href="http://jsfiddle.net/wbhrd58c/" rel="nofollow">http://jsfiddle.net/wbhrd58c/</a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/734200/43370791-4d63d1de-933a-11e8-80d2-7d1073bc2715.png"><img src="https://user-images.githubusercontent.com/734200/43370791-4d63d1de-933a-11e8-80d2-7d1073bc2715.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">This makes it a difficult to render things like normal and depth buffers for screen effects. So when an overrideMaterial is used the defines and uniforms of the original should be used (if they exist on the override material). This would let an override material us the color, displacementMap, normalMap, textures, skinning settings, etc available.</p> <p dir="auto">This mechanic could be used make post processing passes more robust and correct, afford a depth prepass with correct vertex transformations, a deferred renderer that uses the original material properties without having to manually copy everything, and shadows that support displacement maps out of the box.</p> <p dir="auto">This is closer to how Unity's <a href="https://docs.unity3d.com/Manual/SL-ShaderReplacement.html" rel="nofollow">Shader Replacement</a> works to afford this functionality:</p> <blockquote> <p dir="auto">the camera renders the scene as it normally would. the objects still use their materials, but the actual shader that ends up being used is changed</p> </blockquote> <p dir="auto">In Unity if the objects material doesn't define a specific uniform then the default shader uniform value is used. To allow for backwards compatibility this could be included as an opt-in feature:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Scene.setOverrideMaterial( material : Material, overrideUniforms : Boolean );"><pre class="notranslate"><span class="pl-v">Scene</span><span class="pl-kos">.</span><span class="pl-en">setOverrideMaterial</span><span class="pl-kos">(</span> <span class="pl-s1">material</span> : <span class="pl-v">Material</span><span class="pl-kos">,</span> <span class="pl-s1">overrideUniforms</span> : <span class="pl-v">Boolean</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
1
<p dir="auto">Just out of curiosity, is TypeScript going to have a conditional member access operator similar to C#'s <code class="notranslate">?.</code>?</p> <p dir="auto">Instead of writing</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo &amp;&amp; foo.bar &amp;&amp; foo.bar.baz();"><pre class="notranslate"><code class="notranslate">foo &amp;&amp; foo.bar &amp;&amp; foo.bar.baz(); </code></pre></div> <p dir="auto">We can write:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo?.bar?.baz();"><pre class="notranslate"><code class="notranslate">foo?.bar?.baz(); </code></pre></div> <p dir="auto">Or is something like this already possible?</p>
<h1 dir="auto">Current Status</h1> <ul dir="auto"> <li>The TC39 proposal is now at stage 3 (<g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">πŸŽ‰</g-emoji><g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">πŸŽ‰</g-emoji><g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">πŸŽ‰</g-emoji><g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">πŸŽ‰</g-emoji><g-emoji class="g-emoji" alias="tada" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f389.png">πŸŽ‰</g-emoji>)</li> <li>Implementation is in progress</li> <li>You can expect this feature in TypeScript 3.7</li> <li>We'll update here when it's available in a nightly build</li> <li>Holding off on Optional Call until its semantics are clarified at committee</li> </ul> <p dir="auto">Open questions</p> <ul dir="auto"> <li>What special-casing, if any, should <code class="notranslate">document.all</code> get?</li> </ul> <hr> <p dir="auto">C# and other languages have syntax sugar for accessing property chains where <code class="notranslate">null</code> (or in our case, <code class="notranslate">undefined</code>) might be encountered at any point in the object hierarchy.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x = { y: { z: null, q: undefined } }; console.log(x?.y?.z?.foo); // Should print 'null' console.log(x?.baz); // Still an error console.log(x.y.q?.bar); // Should print 'undefined'"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">y</span>: <span class="pl-kos">{</span> <span class="pl-c1">z</span>: <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-c1">q</span>: <span class="pl-c1">undefined</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">?.</span><span class="pl-c1">y</span><span class="pl-kos">?.</span><span class="pl-c1">z</span><span class="pl-kos">?.</span><span class="pl-c1">foo</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Should print 'null'</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">x</span><span class="pl-kos">?.</span><span class="pl-c1">baz</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Still an error</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">x</span><span class="pl-kos">.</span><span class="pl-c1">y</span><span class="pl-kos">.</span><span class="pl-c1">q</span><span class="pl-kos">?.</span><span class="pl-c1">bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Should print 'undefined'</span></pre></div> <p dir="auto">Need proposal on what exactly we should codegen, keeping in mind side effects of accessors.</p> <hr> <p dir="auto"><em><strong>Edit by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DanielRosenwasser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DanielRosenwasser">@DanielRosenwasser</a> February 27, 2018:</strong> This proposal is also called the "null propagation" operator.</em></p>
1
<p dir="auto">I want to use Hierarchical Navigable Small Worlds (HNSW) and LSH for data classification. How can I modify their fit and train functions???</p> <p dir="auto">For example if you want to use them like ball tree or kd tree from the scikit learn library for classifying data.</p>
<p dir="auto">There have been some discussion about adding a balanced accuracy metrics (see this <a href="http://en.wikipedia.org/wiki/Accuracy_and_precision" rel="nofollow">article for the definition</a>) on the mailing list. This is a good opportunity for a first contribution.</p> <p dir="auto">This implies coding the function, checking correctness through tests and highlight your work with documentations. In order to be easily used by many, a balanced accuracy scorer is a good idea. As a bonus, it could also support <code class="notranslate">sample_weight</code>.</p>
0
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/172399/13945230/ec5e3b0a-f00b-11e5-853c-676856fed4d5.png"><img src="https://cloud.githubusercontent.com/assets/172399/13945230/ec5e3b0a-f00b-11e5-853c-676856fed4d5.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Remove</p> <ul dir="auto"> <li>locale (VS only currently)</li> <li>diagnostics (only for down-level compiling)</li> <li>maproot (only used for down-level compiling, and if we add maproot then we would have to add sourceMap, inlineSourceMap, etc)</li> </ul>
<p dir="auto">Would be nice to have portable version of VS Code like sublime. I always don't have install permissions.</p>
0
<h3 dir="auto">Describe the bug</h3> <p dir="auto">KeyError when two classes contain inner classes with the same name. If i rename one of the inner classes, app runs good.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Steps to reproduce the behavior with a minimum self-contained file.</p> <p dir="auto">Replace each part with your own scenario:</p> <ol dir="auto"> <li>Create a file with:</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from __future__ import annotations from typing import Union import uvicorn from fastapi import FastAPI from pydantic import BaseModel class X(BaseModel): class A(BaseModel): pass a: X.A X.update_forward_refs() class Y(BaseModel): class A(BaseModel): pass y: Y.A Y.update_forward_refs() app = FastAPI() @app.get(&quot;/&quot;) def route(request: Union[X, Y]): return str(request)"><pre class="notranslate"><span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">annotations</span> <span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Union</span> <span class="pl-k">import</span> <span class="pl-s1">uvicorn</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-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">class</span> <span class="pl-v">X</span>(<span class="pl-v">BaseModel</span>): <span class="pl-k">class</span> <span class="pl-v">A</span>(<span class="pl-v">BaseModel</span>): <span class="pl-k">pass</span> <span class="pl-s1">a</span>: <span class="pl-v">X</span>.<span class="pl-v">A</span> <span class="pl-v">X</span>.<span class="pl-en">update_forward_refs</span>() <span class="pl-k">class</span> <span class="pl-v">Y</span>(<span class="pl-v">BaseModel</span>): <span class="pl-k">class</span> <span class="pl-v">A</span>(<span class="pl-v">BaseModel</span>): <span class="pl-k">pass</span> <span class="pl-s1">y</span>: <span class="pl-v">Y</span>.<span class="pl-v">A</span> <span class="pl-v">Y</span>.<span class="pl-en">update_forward_refs</span>() <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>() <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">route</span>(<span class="pl-s1">request</span>: <span class="pl-v">Union</span>[<span class="pl-v">X</span>, <span class="pl-v">Y</span>]): <span class="pl-k">return</span> <span class="pl-en">str</span>(<span class="pl-s1">request</span>)</pre></div> <ol start="3" dir="auto"> <li>Open the browser and call the endpoint <code class="notranslate">/docs</code>.</li> <li>It show <code class="notranslate">Fetch error Internal Server Error /openapi.json</code> and the app raise an error</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" File &quot;/usr/local/lib/python3.7/site-packages/fastapi/utils.py&quot;, line 64, in get_model_definitions model_name = model_name_map[model] KeyError: &lt;class '__main__.X.A'&gt;"><pre class="notranslate"> <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.7/site-packages/fastapi/utils.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">64</span>, <span class="pl-s1">in</span> <span class="pl-s1">get_model_definitions</span> <span class="pl-s1">model_name</span> <span class="pl-c1">=</span> <span class="pl-s1">model_name_map</span>[<span class="pl-s1">model</span>] <span class="pl-v">KeyError</span>:<span class="pl-s1"></span> <span class="pl-c1">&lt;</span><span class="pl-s1">class</span> <span class="pl-s">'__main__.X.A'</span><span class="pl-c1">&gt;</span></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: MacOS</li> <li>FastAPI Version : 0.55.1</li> <li>Python: 3.8.2</li> </ul>
<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> </ul> <h3 dir="auto">Commit to Help</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">πŸ‘†</g-emoji></li> </ul> <h3 dir="auto">Example Code</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import Depends, FastAPI, Request from fastapi.security import OAuth2PasswordBearer from pydantic import BaseSettings class Settings(BaseSettings): token_url: str def get_settings() -&gt; Settings: return Settings() app = FastAPI() def get_oauth2_scheme(settings=Depends(get_settings)): return OAuth2PasswordBearer(tokenUrl=settings.token_url) async def use_token(request: Request, oauth2_scheme=Depends(get_oauth2_scheme)): return await oauth2_scheme(request) @app.get(&quot;/items/&quot;) async def read_items(token: str = Depends(use_token)): return {&quot;token&quot;: token}"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">Depends</span>, <span class="pl-v">FastAPI</span>, <span class="pl-v">Request</span> <span class="pl-k">from</span> <span class="pl-s1">fastapi</span>.<span class="pl-s1">security</span> <span class="pl-k">import</span> <span class="pl-v">OAuth2PasswordBearer</span> <span class="pl-k">from</span> <span class="pl-s1">pydantic</span> <span class="pl-k">import</span> <span class="pl-v">BaseSettings</span> <span class="pl-k">class</span> <span class="pl-v">Settings</span>(<span class="pl-v">BaseSettings</span>): <span class="pl-s1">token_url</span>: <span class="pl-s1">str</span> <span class="pl-k">def</span> <span class="pl-en">get_settings</span>() <span class="pl-c1">-&gt;</span> <span class="pl-v">Settings</span>: <span class="pl-k">return</span> <span class="pl-v">Settings</span>() <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>() <span class="pl-k">def</span> <span class="pl-en">get_oauth2_scheme</span>(<span class="pl-s1">settings</span><span class="pl-c1">=</span><span class="pl-v">Depends</span>(<span class="pl-s1">get_settings</span>)): <span class="pl-k">return</span> <span class="pl-v">OAuth2PasswordBearer</span>(<span class="pl-s1">tokenUrl</span><span class="pl-c1">=</span><span class="pl-s1">settings</span>.<span class="pl-s1">token_url</span>) <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">use_token</span>(<span class="pl-s1">request</span>: <span class="pl-v">Request</span>, <span class="pl-s1">oauth2_scheme</span><span class="pl-c1">=</span><span class="pl-v">Depends</span>(<span class="pl-s1">get_oauth2_scheme</span>)): <span class="pl-k">return</span> <span class="pl-k">await</span> <span class="pl-en">oauth2_scheme</span>(<span class="pl-s1">request</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/items/"</span>)</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">read_items</span>(<span class="pl-s1">token</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-v">Depends</span>(<span class="pl-s1">use_token</span>)): <span class="pl-k">return</span> {<span class="pl-s">"token"</span>: <span class="pl-s1">token</span>}</pre></div> <h3 dir="auto">Description</h3> <ol dir="auto"> <li>Run saved script, for example: <code class="notranslate">TOKEN_URL="token" uvicorn tmp:app</code></li> <li>Navigate to <a href="http://127.0.0.1:8000/docs" rel="nofollow">http://127.0.0.1:8000/docs</a></li> <li>Notice there is no "Authorize" button in docs</li> <li>Endpoint is protected, a request fails with a 401 error</li> </ol> <h3 dir="auto">Wanted Solution</h3> <p dir="auto">The Dependency Injection system doesn't seem to be fully resolving these dependencies so it can auto-detect the authentication mechanism. It seems to only resolve first surface level dependencies. This seems to apply to any Depends()<br> objects for authorization, either in route definitions or route signatures.</p> <h3 dir="auto">Wanted Code</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(The example/reproduction code working would be great, no extra syntax needed)"><pre class="notranslate">(<span class="pl-v">The</span> <span class="pl-s1">example</span><span class="pl-c1">/</span><span class="pl-s1">reproduction</span> <span class="pl-s1">code</span> <span class="pl-s1">working</span> <span class="pl-s1">would</span> <span class="pl-s1">be</span> <span class="pl-s1">great</span>, <span class="pl-s1">no</span> <span class="pl-s1">extra</span> <span class="pl-s1">syntax</span> <span class="pl-s1">needed</span>)</pre></div> <h3 dir="auto">Alternatives</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating System</h3> <p dir="auto">Linux</p> <h3 dir="auto">Operating System Details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">FastAPI Version</h3> <p dir="auto">0.37.0</p> <h3 dir="auto">Python Version</h3> <p dir="auto">3.9</p> <h3 dir="auto">Additional Context</h3> <p dir="auto">Discussion in Discord here: <a href="https://discord.com/channels/772607987558252564/772631203689922562/942107142859673732" rel="nofollow">https://discord.com/channels/772607987558252564/772631203689922562/942107142859673732</a></p> <p dir="auto"><a href="https://cdn.discordapp.com/attachments/772631203689922562/942107232315777094/unknown.png" rel="nofollow">https://cdn.discordapp.com/attachments/772631203689922562/942107232315777094/unknown.png</a></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.2</li> <li>Operating System version: linux</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>dubbo.provider.token=${random.uuid}</li> <li>launch two providers</li> <li>invoke failed and retry the other provider</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">token should be valid</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">token is invalid</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="com.alibaba.dubbo.rpc.RpcException: Invalid token! Forbid invoke remote service interface com.darcytech.hera.api.service.SmsService method sendSms() from consumer 192.168.24.81 to provider 192.168.24.82 at com.alibaba.dubbo.rpc.filter.TokenFilter.invoke(TokenFilter.java:46) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.darcytech.hera.server.dubbo.ErrorHandleFilter.invoke(ErrorHandleFilter.java:28) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:72) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:131) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)"><pre class="notranslate"><code class="notranslate">com.alibaba.dubbo.rpc.RpcException: Invalid token! Forbid invoke remote service interface com.darcytech.hera.api.service.SmsService method sendSms() from consumer 192.168.24.81 to provider 192.168.24.82 at com.alibaba.dubbo.rpc.filter.TokenFilter.invoke(TokenFilter.java:46) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.darcytech.hera.server.dubbo.ErrorHandleFilter.invoke(ErrorHandleFilter.java:28) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:72) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:131) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.7</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">There're some discussions about dependency management. I think when we people started to use deno to build complex programs, a dependency manager is desired. Removing node_modules from the project folder is a brilliant revolutionary design, but I'm not sure whether the package.json file also should be deprecated. Currently, people use a <code class="notranslate">deps.ts</code> file or <code class="notranslate">import_map.json</code> to manage the external modules, it seems like a central specification file is necessary, and module versioning is another important thing in production environment. In my opinion, manage these modules manually is definitely a terrible development experience, so I built this stuff <a href="https://github.com/denodep/dep">dep</a>, a simple cli to manage project dependencies, but unfortunately, I used a file called <code class="notranslate">pkg.json</code> (maybe will change to <code class="notranslate">spec.json</code>) to describe the information of the project, and a dependencies map like <code class="notranslate">package.json</code> do, the program will automatically generate or update a import map after adding external modules, so you can import any module with a relative URL. Also I kept all the features below:</p> <ul dir="auto"> <li>keep no packages</li> <li>keep ES modules semantics</li> <li>keep file extension</li> <li>keep remote URL imports (Source URLs in import map, relative URLs in scripts)</li> </ul> <p dir="auto">I just want to know if this is an acceptable solution? What are your opinions on this?</p>
<p dir="auto">Import from url is very hard to use. I think is not a good idea.<br> If so,</p> <ol dir="auto"> <li>We must manage more js files not our own development.</li> <li>Heavily dependent on the network, because the third package also can import another packages.</li> </ol> <p dir="auto">Like C#\Java, the nuget and maven is good for use. Maybe use that mode can help us manage the packages.</p>
1
<p dir="auto">Hi,</p> <p dir="auto"><strong>TypeScript Version:</strong> 1.8.5<br> <strong>Visual Studio</strong> 2013</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Foo { a: string } interface Bar { b: string } getData&lt;T&gt;(): T { return null; } var funcArray = [this.getData&lt;Foo&gt;(), this.getData&lt;Bar&gt;()]; //Inferred as (Foo | Bar)[]"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">Bar</span> <span class="pl-kos">{</span> <span class="pl-c1">b</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span> <span class="pl-s1">getData</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">funcArray</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">getData</span><span class="pl-kos">&lt;</span><span class="pl-smi">Foo</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-smi">this</span><span class="pl-kos">.</span><span class="pl-en">getData</span><span class="pl-kos">&lt;</span><span class="pl-smi">Bar</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">//Inferred as (Foo | Bar)[]</span></pre></div> <p dir="auto">Shouldn't this be inferred as <code class="notranslate">[Foo, Bar]</code>?<br> Is this intended behavior? Looks reasonable since <code class="notranslate">funcArray</code> can be explicitly typed to <code class="notranslate">[Foo, Bar]</code></p> <p dir="auto">PS: This could be a duplicate of other issues for contextual typing, which is/are already fixed (fix included in milestone 2.0?)</p>
<p dir="auto">I have been looking at dependency injection and a few issues with refactoring in regards to <code class="notranslate">_.pluck</code>. One of the primary things I run into is that I want these things to enforce the interface for refactoring.</p> <p dir="auto">A few examples</p> <p dir="auto">Interface used as a symbol for dependency injection</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IExampleInterface { interfaceProperty: string; } function angularInjection(...fields: string[]) { return (target: Function) { target.$inject = fields; } } @angularInjection(nameof(IExampleInterface)); class Controller { constructor(injectedExample: IExampleInterface) { } }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">IExampleInterface</span> <span class="pl-kos">{</span> <span class="pl-c1">interfaceProperty</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">angularInjection</span><span class="pl-kos">(</span>...<span class="pl-s1">fields</span>: <span class="pl-smi">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">Function</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span> <span class="pl-s1">target</span><span class="pl-kos">.</span><span class="pl-c1">$inject</span> <span class="pl-c1">=</span> <span class="pl-s1">fields</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> @<span class="pl-en">angularInjection</span><span class="pl-kos">(</span><span class="pl-en">nameof</span><span class="pl-kos">(</span><span class="pl-smi">IExampleInterface</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-smi">Controller</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">injectedExample</span>: <span class="pl-smi">IExampleInterface</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">would compile to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function angularInjection() { var fields = []; for (var _i = 0; _i &lt; arguments.length; _i++) { fields[_i - 0] = arguments[_i]; } return function (target) { target.$inject = fields; }; } var Controller = (function () { function Controller(injectedExample) { } Controller = __decorate([ angularInjection('IExampleInterface') ], Controller); return Controller; })();"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">angularInjection</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">fields</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">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-smi">arguments</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-s1">fields</span><span class="pl-kos">[</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-c1">=</span> <span class="pl-smi">arguments</span><span class="pl-kos">[</span><span class="pl-s1">_i</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">target</span><span class="pl-kos">.</span><span class="pl-c1">$inject</span> <span class="pl-c1">=</span> <span class="pl-s1">fields</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-v">Controller</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-v">Controller</span><span class="pl-kos">(</span><span class="pl-s1">injectedExample</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-v">Controller</span> <span class="pl-c1">=</span> <span class="pl-en">__decorate</span><span class="pl-kos">(</span><span class="pl-kos">[</span> <span class="pl-en">angularInjection</span><span class="pl-kos">(</span><span class="pl-s">'IExampleInterface'</span><span class="pl-kos">)</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-v">Controller</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-v">Controller</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">In the case of an interface like pluck we could do something like this</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IExampleInterface { prop: string; } var items: IExampleInterface[] = [{prop: 'test1'},{prop: 'test1'}]; var props: string[] = _.pluck(items, nameof(IExampleInterface.prop));"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">IExampleInterface</span> <span class="pl-kos">{</span> <span class="pl-c1">prop</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">items</span>: <span class="pl-smi">IExampleInterface</span><span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-c1">prop</span>: <span class="pl-s">'test1'</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">{</span><span class="pl-c1">prop</span>: <span class="pl-s">'test1'</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">props</span>: <span class="pl-smi">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">_</span><span class="pl-kos">.</span><span class="pl-en">pluck</span><span class="pl-kos">(</span><span class="pl-s1">items</span><span class="pl-kos">,</span> <span class="pl-en">nameof</span><span class="pl-kos">(</span><span class="pl-smi">IExampleInterface</span><span class="pl-kos">.</span><span class="pl-c1">prop</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">would compile to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var items = [{prop: 'test1'}, {prop: 'test1'}]; var props = _.pluck(items, 'prop');"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">items</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">{</span><span class="pl-c1">prop</span>: <span class="pl-s">'test1'</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">prop</span>: <span class="pl-s">'test1'</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">props</span> <span class="pl-c1">=</span> <span class="pl-s1">_</span><span class="pl-kos">.</span><span class="pl-en">pluck</span><span class="pl-kos">(</span><span class="pl-s1">items</span><span class="pl-kos">,</span> <span class="pl-s">'prop'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">In this way we could enforce some level of type safety in common javascript reflection use cases.</p>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto">When using logarithmic scaling of the data with 2D plots, the ticks for the colorbar are not written in scientific notation. Prior to Matplotlib 3.5.0 (e.g. 3.4.3), scientific notation was used, as one would expect. The problem persists in 3.6.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Sample code for 2D plotting with log scaling, # with the log scaling implemented # using two different methods. import numpy as np import matplotlib import matplotlib.pyplot as plt n = 100 np.random.seed(42) x = np.random.random(n) y = np.random.random(n) z = np.logspace(np.log10(1e-7), np.log10(1e+7), n) fig, axes = plt.subplots(2, 1) tcs = axes[0].tricontourf( x, y, z, norm=matplotlib.colors.LogNorm(vmin=z.min(), vmax=z.max()), ) cbar = fig.colorbar(tcs, ax=axes[0]) tcs = axes[1].tricontourf( x, y, z, locator=matplotlib.ticker.LogLocator(), ) cbar = fig.colorbar(tcs, ax=axes[1]) plt.savefig('test.png')"><pre class="notranslate"><span class="pl-c"># Sample code for 2D plotting with log scaling,</span> <span class="pl-c"># with the log scaling implemented</span> <span class="pl-c"># using two different methods.</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-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">100</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">42</span>) <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>(<span class="pl-s1">n</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>(<span class="pl-s1">n</span>) <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">logspace</span>(<span class="pl-s1">np</span>.<span class="pl-en">log10</span>(<span class="pl-c1">1e-7</span>), <span class="pl-s1">np</span>.<span class="pl-en">log10</span>(<span class="pl-c1">1e+7</span>), <span class="pl-s1">n</span>) <span class="pl-s1">fig</span>, <span class="pl-s1">axes</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">2</span>, <span class="pl-c1">1</span>) <span class="pl-s1">tcs</span> <span class="pl-c1">=</span> <span class="pl-s1">axes</span>[<span class="pl-c1">0</span>].<span class="pl-en">tricontourf</span>( <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span>, <span class="pl-s1">norm</span><span class="pl-c1">=</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">colors</span>.<span class="pl-v">LogNorm</span>(<span class="pl-s1">vmin</span><span class="pl-c1">=</span><span class="pl-s1">z</span>.<span class="pl-en">min</span>(), <span class="pl-s1">vmax</span><span class="pl-c1">=</span><span class="pl-s1">z</span>.<span class="pl-en">max</span>()), ) <span class="pl-s1">cbar</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">tcs</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">axes</span>[<span class="pl-c1">0</span>]) <span class="pl-s1">tcs</span> <span class="pl-c1">=</span> <span class="pl-s1">axes</span>[<span class="pl-c1">1</span>].<span class="pl-en">tricontourf</span>( <span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span>, <span class="pl-s1">locator</span><span class="pl-c1">=</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">ticker</span>.<span class="pl-v">LogLocator</span>(), ) <span class="pl-s1">cbar</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">tcs</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">axes</span>[<span class="pl-c1">1</span>]) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'test.png'</span>)</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">Here is the outcome of the above in Matplotlib 3.5.0 or 3.6.0 (the results are identical). The image properly shows logarithmic values, and the colorbar ticks are in log scale as well, but the colorbar tick labels are not written using scientific notation. One major drawback is that all tics but the highest two gets written as <code class="notranslate">0.00</code>, while they are really <code class="notranslate">0.001</code>, <code class="notranslate">0.0001</code>, etc.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9202794/192121946-0932593b-aabc-427e-825e-fb1cb6573669.png"><img src="https://user-images.githubusercontent.com/9202794/192121946-0932593b-aabc-427e-825e-fb1cb6573669.png" alt="test_3 5 0" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">Same as above but run with Matplotlib 3.4.3. Both methods work to produce scientific notation, as desired.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9202794/192121978-ce61c8fd-0af6-49b2-acc9-03d4ac4b49b0.png"><img src="https://user-images.githubusercontent.com/9202794/192121978-ce61c8fd-0af6-49b2-acc9-03d4ac4b49b0.png" alt="test_3 4 3" style="max-width: 100%;"></a></p> <h3 dir="auto">Operating system</h3> <p dir="auto">Linux Mint 20</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">As described above</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">Agg and Qt5Agg</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.8.5 and 3.9.9</p> <h3 dir="auto">Installation</h3> <p dir="auto">from source (.tar.gz)</p>
<h3 dir="auto">Bug summary</h3> <p dir="auto">The colour bar ticks are weirdly formatted when using a logarithmic scale when using version 3.5.0 or later.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Taken from https://matplotlib.org/stable/gallery/images_contours_and_fields/contourf_log.html import matplotlib.pyplot as plt import numpy as np from numpy import ma from matplotlib import ticker, cm N = 100 x = np.linspace(-3.0, 3.0, N) y = np.linspace(-2.0, 2.0, N) X, Y = np.meshgrid(x, y) # A low hump with a spike coming out. # Needs to have z/colour axis on a log scale so we see both hump and spike. # linear scale only shows the spike. Z1 = np.exp(-X**2 - Y**2) Z2 = np.exp(-(X * 10)**2 - (Y * 10)**2) z = Z1 + 50 * Z2 # Put in some negative values (lower left corner) to cause trouble with logs: z[:5, :5] = -1 # The following is not strictly essential, but it will eliminate # a warning. Comment it out to see the warning. z = ma.masked_where(z &lt;= 0, z) # Automatic selection of levels works; setting the # log locator tells contourf to use a log scale: fig, ax = plt.subplots() cs = ax.contourf(X, Y, z, locator=ticker.LogLocator(), cmap=cm.PuBu_r) cbar = fig.colorbar(cs) plt.show()"><pre class="notranslate"><span class="pl-v">Taken</span> <span class="pl-s1">from</span> <span class="pl-s1">https</span>:<span class="pl-c1">//</span><span class="pl-s1">matplotlib</span>.<span class="pl-s1">org</span><span class="pl-c1">/</span><span class="pl-s1">stable</span><span class="pl-c1">/</span><span class="pl-s1">gallery</span><span class="pl-c1">/</span><span class="pl-s1">images_contours_and_fields</span><span class="pl-c1">/</span><span class="pl-s1">contourf_log</span>.<span class="pl-s1">html</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">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">from</span> <span class="pl-s1">numpy</span> <span class="pl-k">import</span> <span class="pl-s1">ma</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">ticker</span>, <span class="pl-s1">cm</span> <span class="pl-v">N</span> <span class="pl-c1">=</span> <span class="pl-c1">100</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">3.0</span>, <span class="pl-c1">3.0</span>, <span class="pl-v">N</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">2.0</span>, <span class="pl-c1">2.0</span>, <span class="pl-v">N</span>) <span class="pl-v">X</span>, <span class="pl-v">Y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>) <span class="pl-c"># A low hump with a spike coming out.</span> <span class="pl-c"># Needs to have z/colour axis on a log scale so we see both hump and spike.</span> <span class="pl-c"># linear scale only shows the spike.</span> <span class="pl-v">Z1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-c1">-</span><span class="pl-v">X</span><span class="pl-c1">**</span><span class="pl-c1">2</span> <span class="pl-c1">-</span> <span class="pl-v">Y</span><span class="pl-c1">**</span><span class="pl-c1">2</span>) <span class="pl-v">Z2</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(<span class="pl-c1">-</span>(<span class="pl-v">X</span> <span class="pl-c1">*</span> <span class="pl-c1">10</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span> <span class="pl-c1">-</span> (<span class="pl-v">Y</span> <span class="pl-c1">*</span> <span class="pl-c1">10</span>)<span class="pl-c1">**</span><span class="pl-c1">2</span>) <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-v">Z1</span> <span class="pl-c1">+</span> <span class="pl-c1">50</span> <span class="pl-c1">*</span> <span class="pl-v">Z2</span> <span class="pl-c"># Put in some negative values (lower left corner) to cause trouble with logs:</span> <span class="pl-s1">z</span>[:<span class="pl-c1">5</span>, :<span class="pl-c1">5</span>] <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span> <span class="pl-c"># The following is not strictly essential, but it will eliminate</span> <span class="pl-c"># a warning. Comment it out to see the warning.</span> <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">ma</span>.<span class="pl-en">masked_where</span>(<span class="pl-s1">z</span> <span class="pl-c1">&lt;=</span> <span class="pl-c1">0</span>, <span class="pl-s1">z</span>) <span class="pl-c"># Automatic selection of levels works; setting the</span> <span class="pl-c"># log locator tells contourf to use a log scale:</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">cs</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">contourf</span>(<span class="pl-v">X</span>, <span class="pl-v">Y</span>, <span class="pl-s1">z</span>, <span class="pl-s1">locator</span><span class="pl-c1">=</span><span class="pl-s1">ticker</span>.<span class="pl-v">LogLocator</span>(), <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s1">cm</span>.<span class="pl-v">PuBu_r</span>) <span class="pl-s1">cbar</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">cs</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40028739/177347713-40db322e-65a3-4763-af66-8c8bb3daab0c.png"><img src="https://user-images.githubusercontent.com/40028739/177347713-40db322e-65a3-4763-af66-8c8bb3daab0c.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">Running the exact same code on 3.4.2 produces the expected behaviour<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40028739/177347830-9550a81c-7340-49f8-903e-6d39637493f4.png"><img src="https://user-images.githubusercontent.com/40028739/177347830-9550a81c-7340-49f8-903e-6d39637493f4.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional information</h3> <p dir="auto">This worked perfectly on version 3.4.2</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Windows</p> <h3 dir="auto">Matplotlib Version</h3> <blockquote> <p dir="auto">3.5.0</p> </blockquote> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Python version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto">pip</p>
1
<p dir="auto">It's duplicated at both:<br> <a href="https://flutter.io/get-started/codelab/" rel="nofollow">flutter.io codelabs</a></p> <p dir="auto">..and at:<br> <a href="https://codelabs.developers.google.com/codelabs/first-flutter-app-pt1/#0" rel="nofollow">google developers codelabs</a></p> <p dir="auto">Perhaps best to reference same source.</p>
<ol dir="auto"> <li>git clone the plugins repo</li> <li>open <code class="notranslate">packages/google_maps_flutter/example</code> in editor</li> <li>create a new maps API key</li> <li>add key in <code class="notranslate">AndroidManifest.xml</code></li> <li>run app</li> </ol> <p dir="auto">=&gt; map appears with no content in it</p> <p dir="auto">It was working a few days ago, but doesn't seem to work anymore</p>
0
<p dir="auto">From <a href="https://github.com/flutter/tools/issues/157">https://github.com/flutter/tools/issues/157</a>:</p> <p dir="auto">The run_mojo command takes a flag --app to specify a filepath to run a flutter app from.<br> This should also allow a URL.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alhaad/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alhaad">@alhaad</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jamesr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jamesr">@jamesr</a></p>
<p dir="auto">Now. i can run the project in ios platform .<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32920112/37582296-48613d4a-2b87-11e8-99dd-050b91cf5b6e.jpg"><img src="https://user-images.githubusercontent.com/32920112/37582296-48613d4a-2b87-11e8-99dd-050b91cf5b6e.jpg" alt="381769910918220178" style="max-width: 100%;"></a></p> <p dir="auto">when i change the url to m3u8 the player no thing to see......<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32920112/37582300-4b2c10ae-2b87-11e8-88da-55f6a7740943.jpg"><img src="https://user-images.githubusercontent.com/32920112/37582300-4b2c10ae-2b87-11e8-88da-55f6a7740943.jpg" alt="244668706005149902" style="max-width: 100%;"></a></p> <p dir="auto">In android platform. it can run m3u8 ....<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32920112/37582308-551ff102-2b87-11e8-8de6-e8e515be94d6.jpg"><img src="https://user-images.githubusercontent.com/32920112/37582308-551ff102-2b87-11e8-8de6-e8e515be94d6.jpg" alt="x5mh74c nyivp9 v43sxr2r" style="max-width: 100%;"></a></p> <p dir="auto">all platform are real devices.</p> <p dir="auto">Thanks</p>
0
<p dir="auto">Hello,</p> <p dir="auto">Would be interested to port <code class="notranslate">RectifiedAdam</code> from <strong>tensorflow/addon</strong> with addding exclude_from_weight_decay extension?</p> <p dir="auto">For more details <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1161977617" data-permission-text="Title is private" data-url="https://github.com/tensorflow/addons/issues/2681" data-hovercard-type="issue" data-hovercard-url="/tensorflow/addons/issues/2681/hovercard" href="https://github.com/tensorflow/addons/issues/2681">tensorflow/addons#2681</a></p> <p dir="auto">Thanks a lot.<br> Have a nice day.</p>
<p dir="auto">I'm trying to learn a regression problem. The data is mostly one-hot encoded categorical variables, one continuous. The target output is a probability (0-1). Here is the code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def read_lines(filename): lines = [] with open(filename) as file: for line in file: line = line.strip() lines.append(line) return lines # read target survival probabilities and patient IDs targets = np.loadtxt(&quot;../survival/target_probs.txt&quot;, delimiter=&quot;,&quot;) all_patient_ids = read_lines(&quot;../survival/target_patient_ids.txt&quot;) # read available patient IDs and variable names patient_ids = read_lines(&quot;clinical_patient_ids.txt&quot;) var_names = read_lines(&quot;clinical_var_names.txt&quot;) # only use available cases pt_idxs = [all_patient_ids.index(x) for x in patient_ids] targets = targets[pt_idxs] # determine number of cases for 60/10/30 train/val/test split n_cases = len(patient_ids) n_train = int(round(n_cases*.6)) n_val = int(round(n_cases*.1)) n_test = int(round(n_cases*.3)) # extract training, val, and test patient IDs train_patient_ids = patient_ids[:n_train] val_patient_ids = patient_ids[n_train:n_train+n_val] test_patient_ids = patient_ids[n_train+n_val:] Y_train = targets[:n_train] Y_val = targets[n_train:n_train+n_val] Y_test = targets[n_train+n_val:n_cases] # load data data = np.loadtxt(&quot;clinical_data.txt&quot;, delimiter=&quot;,&quot;) # preprocess min_max_scaler = preprocessing.MinMaxScaler() min_max_scaler.fit(data) data = min_max_scaler.transform(data) # set up model architecture model = Sequential() model.add(Dense(32, activation=&quot;relu&quot;, input_dim=len(var_names), kernel_regularizer=regularizers.l2(0.01))) model.add(Dropout(0.2)) model.add(Dense(20, activation=&quot;relu&quot;, kernel_regularizer=regularizers.l2(0.01))) model.add(Dropout(0.2)) model.add(Dense(16, activation=&quot;relu&quot;, kernel_regularizer=regularizers.l2(0.01))) model.add(Dropout(0.2)) model.add(Dense(16, activation=&quot;relu&quot;, kernel_regularizer=regularizers.l2(0.01))) model.add(Dropout(0.2)) model.add(Dense(1, activation=&quot;sigmoid&quot;, kernel_regularizer=regularizers.l2(0.01))) X_train = data[:n_train] X_val = data[n_train:n_train+n_val] X_test = data[n_train+n_val:n_cases] # train on clinical data early_stop = EarlyStopping(monitor=&quot;val_loss&quot;, patience=5) reduce_lr = ReduceLROnPlateau(monitor=&quot;val_loss&quot;, factor=0.2, patience=2, min_lr=0.001) sgd = SGD(lr=0.1, decay=1e-6, momentum=0.9, nesterov=True) model.compile(loss=&quot;mse&quot;, optimizer=&quot;sgd&quot;, metrics=[&quot;mse&quot;]) hist = model.fit(X_train, Y_train, validation_data=(X_val, Y_val), epochs=1000, batch_size=32, callbacks=[reduce_lr, early_stop]) preds = model.predict(X_test) evals = model.evaluate(X_test, Y_test) print(evals) print(preds[0:10]) # summarize history for loss plt.plot(hist.history[&quot;loss&quot;]) plt.plot(hist.history[&quot;val_loss&quot;]) plt.title(&quot;model loss&quot;) plt.ylabel(&quot;loss&quot;) plt.xlabel(&quot;epoch&quot;) plt.legend([&quot;train&quot;, &quot;val&quot;], loc=&quot;upper left&quot;) plt.show()"><pre class="notranslate"><code class="notranslate">def read_lines(filename): lines = [] with open(filename) as file: for line in file: line = line.strip() lines.append(line) return lines # read target survival probabilities and patient IDs targets = np.loadtxt("../survival/target_probs.txt", delimiter=",") all_patient_ids = read_lines("../survival/target_patient_ids.txt") # read available patient IDs and variable names patient_ids = read_lines("clinical_patient_ids.txt") var_names = read_lines("clinical_var_names.txt") # only use available cases pt_idxs = [all_patient_ids.index(x) for x in patient_ids] targets = targets[pt_idxs] # determine number of cases for 60/10/30 train/val/test split n_cases = len(patient_ids) n_train = int(round(n_cases*.6)) n_val = int(round(n_cases*.1)) n_test = int(round(n_cases*.3)) # extract training, val, and test patient IDs train_patient_ids = patient_ids[:n_train] val_patient_ids = patient_ids[n_train:n_train+n_val] test_patient_ids = patient_ids[n_train+n_val:] Y_train = targets[:n_train] Y_val = targets[n_train:n_train+n_val] Y_test = targets[n_train+n_val:n_cases] # load data data = np.loadtxt("clinical_data.txt", delimiter=",") # preprocess min_max_scaler = preprocessing.MinMaxScaler() min_max_scaler.fit(data) data = min_max_scaler.transform(data) # set up model architecture model = Sequential() model.add(Dense(32, activation="relu", input_dim=len(var_names), kernel_regularizer=regularizers.l2(0.01))) model.add(Dropout(0.2)) model.add(Dense(20, activation="relu", kernel_regularizer=regularizers.l2(0.01))) model.add(Dropout(0.2)) model.add(Dense(16, activation="relu", kernel_regularizer=regularizers.l2(0.01))) model.add(Dropout(0.2)) model.add(Dense(16, activation="relu", kernel_regularizer=regularizers.l2(0.01))) model.add(Dropout(0.2)) model.add(Dense(1, activation="sigmoid", kernel_regularizer=regularizers.l2(0.01))) X_train = data[:n_train] X_val = data[n_train:n_train+n_val] X_test = data[n_train+n_val:n_cases] # train on clinical data early_stop = EarlyStopping(monitor="val_loss", patience=5) reduce_lr = ReduceLROnPlateau(monitor="val_loss", factor=0.2, patience=2, min_lr=0.001) sgd = SGD(lr=0.1, decay=1e-6, momentum=0.9, nesterov=True) model.compile(loss="mse", optimizer="sgd", metrics=["mse"]) hist = model.fit(X_train, Y_train, validation_data=(X_val, Y_val), epochs=1000, batch_size=32, callbacks=[reduce_lr, early_stop]) preds = model.predict(X_test) evals = model.evaluate(X_test, Y_test) print(evals) print(preds[0:10]) # summarize history for loss plt.plot(hist.history["loss"]) plt.plot(hist.history["val_loss"]) plt.title("model loss") plt.ylabel("loss") plt.xlabel("epoch") plt.legend(["train", "val"], loc="upper left") plt.show() </code></pre></div> <p dir="auto">It sure seems to be learning <em>something</em>:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3537118/25560256/935f61a0-2d04-11e7-8406-14281273edb4.png"><img src="https://cloud.githubusercontent.com/assets/3537118/25560256/935f61a0-2d04-11e7-8406-14281273edb4.png" alt="hist" style="max-width: 100%;"></a></p> <p dir="auto">But print(preds[0:10]) gives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[[ 0.87765867] [ 0.87765765] [ 0.87766296] [ 0.87765878] [ 0.87765783] [ 0.87765902] [ 0.87765855] [ 0.87765938] [ 0.87766141] [ 0.87766016]]"><pre class="notranslate"><code class="notranslate">[[ 0.87765867] [ 0.87765765] [ 0.87766296] [ 0.87765878] [ 0.87765783] [ 0.87765902] [ 0.87765855] [ 0.87765938] [ 0.87766141] [ 0.87766016]] </code></pre></div> <p dir="auto">Even though print(evals) gives a loss and mse of:<br> <code class="notranslate">[0.012566652174742577, 0.0076035054909729212]</code></p> <p dir="auto">It even does that when I call <code class="notranslate">model.predict()</code> on training data.</p> <p dir="auto">I've tried no regularization, more regularization, different optimizers, different learning rates, mean/std normalization, less depth, more depth, all with the same result.</p> <p dir="auto">Any ideas?</p>
0
<p dir="auto">I know that there are several previously created issues regarding this. However, I still don't understand why warm_start is not supported for liblinear solver? Whether this feature is going to be added in future? Based on my experience (of liblinear in C++), using warm_start can speedup training 2-4x times.</p>
<p dir="auto">NCA checks its parameters to have a specific type, which can easily fail in a GridSearch due to how param grid is made.</p> <p dir="auto">Here is an example:</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.pipeline import Pipeline from sklearn.model_selection import GridSearchCV from sklearn.neighbors import NeighborhoodComponentsAnalysis from sklearn.neighbors import KNeighborsClassifier X = np.random.random_sample((100, 10)) y = np.random.randint(2, size=100) nca = NeighborhoodComponentsAnalysis() knn = KNeighborsClassifier() pipe = Pipeline([('nca', nca), ('knn', knn)]) params = {'nca__tol': [0.1, 0.5, 1], 'nca__n_components': np.arange(1, 10)} gs = GridSearchCV(estimator=pipe, param_grid=params, error_score='raise') gs.fit(X,y)"><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">pipeline</span> <span class="pl-k">import</span> <span class="pl-v">Pipeline</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">model_selection</span> <span class="pl-k">import</span> <span class="pl-v">GridSearchCV</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">neighbors</span> <span class="pl-k">import</span> <span class="pl-v">NeighborhoodComponentsAnalysis</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">neighbors</span> <span class="pl-k">import</span> <span class="pl-v">KNeighborsClassifier</span> <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random_sample</span>((<span class="pl-c1">100</span>, <span class="pl-c1">10</span>)) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">2</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">100</span>) <span class="pl-s1">nca</span> <span class="pl-c1">=</span> <span class="pl-v">NeighborhoodComponentsAnalysis</span>() <span class="pl-s1">knn</span> <span class="pl-c1">=</span> <span class="pl-v">KNeighborsClassifier</span>() <span class="pl-s1">pipe</span> <span class="pl-c1">=</span> <span class="pl-v">Pipeline</span>([(<span class="pl-s">'nca'</span>, <span class="pl-s1">nca</span>), (<span class="pl-s">'knn'</span>, <span class="pl-s1">knn</span>)]) <span class="pl-s1">params</span> <span class="pl-c1">=</span> {<span class="pl-s">'nca__tol'</span>: [<span class="pl-c1">0.1</span>, <span class="pl-c1">0.5</span>, <span class="pl-c1">1</span>], <span class="pl-s">'nca__n_components'</span>: <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">1</span>, <span class="pl-c1">10</span>)} <span class="pl-s1">gs</span> <span class="pl-c1">=</span> <span class="pl-v">GridSearchCV</span>(<span class="pl-s1">estimator</span><span class="pl-c1">=</span><span class="pl-s1">pipe</span>, <span class="pl-s1">param_grid</span><span class="pl-c1">=</span><span class="pl-s1">params</span>, <span class="pl-s1">error_score</span><span class="pl-c1">=</span><span class="pl-s">'raise'</span>) <span class="pl-s1">gs</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>,<span class="pl-s1">y</span>)</pre></div> <p dir="auto">The issue is that for <code class="notranslate">tol</code>: 1 is not a float, and for <code class="notranslate">n_components</code>: np.int64 is not int</p> <p dir="auto">Before proposing a fix for this specific situation, I'd like to have your general opinion about parameter checking.<br> I like this idea of common parameter checking tool introduced with the NCA PR. What do you think about extending it across the code-base (or at least for new or recent estimators) ?</p> <p dir="auto">Currently parameter checking is not always done or often partially done, and is quite redundant. For instance, here is the input validation of lda:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def _check_params(self): &quot;&quot;&quot;Check model parameters.&quot;&quot;&quot; if self.n_components &lt;= 0: raise ValueError(&quot;Invalid 'n_components' parameter: %r&quot; % self.n_components) if self.total_samples &lt;= 0: raise ValueError(&quot;Invalid 'total_samples' parameter: %r&quot; % self.total_samples) if self.learning_offset &lt; 0: raise ValueError(&quot;Invalid 'learning_offset' parameter: %r&quot; % self.learning_offset) if self.learning_method not in (&quot;batch&quot;, &quot;online&quot;): raise ValueError(&quot;Invalid 'learning_method' parameter: %r&quot; % self.learning_method)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">_check_params</span>(<span class="pl-s1">self</span>): <span class="pl-s">"""Check model parameters."""</span> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">n_components</span> <span class="pl-c1">&lt;=</span> <span class="pl-c1">0</span>: <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">"Invalid 'n_components' parameter: %r"</span> <span class="pl-c1">%</span> <span class="pl-s1">self</span>.<span class="pl-s1">n_components</span>) <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">total_samples</span> <span class="pl-c1">&lt;=</span> <span class="pl-c1">0</span>: <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">"Invalid 'total_samples' parameter: %r"</span> <span class="pl-c1">%</span> <span class="pl-s1">self</span>.<span class="pl-s1">total_samples</span>) <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">learning_offset</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">0</span>: <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">"Invalid 'learning_offset' parameter: %r"</span> <span class="pl-c1">%</span> <span class="pl-s1">self</span>.<span class="pl-s1">learning_offset</span>) <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">learning_method</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> (<span class="pl-s">"batch"</span>, <span class="pl-s">"online"</span>): <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">"Invalid 'learning_method' parameter: %r"</span> <span class="pl-c1">%</span> <span class="pl-s1">self</span>.<span class="pl-s1">learning_method</span>)</pre></div> <p dir="auto">most params aren't checked and for those who are there's a lot of duplicated code.</p> <p dir="auto">A propose to be upgrade the new tool to be able to check open/closed intervals (currently only closed) and list membership.</p> <p dir="auto">The api would be something like that:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="check_param(param, name, valid_options)"><pre class="notranslate"><code class="notranslate">check_param(param, name, valid_options) </code></pre></div> <p dir="auto">where valid_options would be a dict of <code class="notranslate">type: constraint</code>. e.g for the <code class="notranslate">beta_loss</code> param of <code class="notranslate">NMF</code>, it can be either a float or a string in a list, which would give</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="valid_options = {numbers.Real: None, # None for no constraint str: ['frobenius', 'kullback-leibler', 'itakura-saito']}"><pre class="notranslate"><code class="notranslate">valid_options = {numbers.Real: None, # None for no constraint str: ['frobenius', 'kullback-leibler', 'itakura-saito']} </code></pre></div> <p dir="auto">Sometimes a parameter can only be positive or within a given interval, e.g. <code class="notranslate">l1_ratio</code> of <code class="notranslate">LogisticRegression</code> must be between 0 and 1, which would give</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="valid_options = {numbers.Real: Interval(0, 1, closed='both')}"><pre class="notranslate"><code class="notranslate">valid_options = {numbers.Real: Interval(0, 1, closed='both')} </code></pre></div> <p dir="auto">positivity of e.g. <code class="notranslate">max_iter</code> would be <code class="notranslate">numbers.Integral: Interval(left=1)</code>.</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> using vs code the type of <code class="notranslate">ElementRef.nativeElement</code> is <code class="notranslate">any</code>.<br> <strong>Expected behavior</strong><br> shouldn't the type be <code class="notranslate">Element</code> so we can get code completion and type checking?</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> plnkr won't work because it doesn't do type checking (to my knowledge)</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> so we can get code completion and type checking</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> windows 10 vs code</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.4.1</p> </li> <li> <p dir="auto"><strong>Browser:</strong> not a browser issue</p> </li> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> typescript 2.1.5</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p> </li> </ul>
<p dir="auto">The current DI system, when compared to something like <a href="https://github.com/google/guice">Guice</a>, has some limitations that large internal clients are finding lacking. Below, when I use the term <code class="notranslate">module</code>, I mean, for Dart at least, a <code class="notranslate">const</code> <code class="notranslate">List</code> of <code class="notranslate">&lt;Binding | Type | List&lt;...&gt;&gt;</code></p> <p dir="auto">Requests from internal clients:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> If two or more modules would resolve bindings differently, have an option to warn or throw.</li> </ul> <p dir="auto">This would be used to help detect when you may not intend for a binding to be overriden.</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const serviceBindings = const [ const Binding(MapsService, toClass: DefaultMapsService) ]; const debugBindings = const [ const Binding(MapsService, toClass: DebugMapsService) ]; // We will (accidentally?) override DefaultMapsService with DebugMapsService. // In some mode (debug?) we may want to print to console or throw something. void main() { bootstrap(..., [serviceBindings, debugBindings]) }"><pre class="notranslate"><span class="pl-k">const</span> serviceBindings <span class="pl-k">=</span> <span class="pl-k">const</span> [ <span class="pl-k">const</span> <span class="pl-c1">Binding</span>(<span class="pl-c1">MapsService</span>, toClass<span class="pl-k">:</span> <span class="pl-c1">DefaultMapsService</span>) ]; <span class="pl-k">const</span> debugBindings <span class="pl-k">=</span> <span class="pl-k">const</span> [ <span class="pl-k">const</span> <span class="pl-c1">Binding</span>(<span class="pl-c1">MapsService</span>, toClass<span class="pl-k">:</span> <span class="pl-c1">DebugMapsService</span>) ]; <span class="pl-c">// We will (accidentally?) override DefaultMapsService with DebugMapsService.</span> <span class="pl-c">// In some mode (debug?) we may want to print to console or throw something.</span> <span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-en">bootstrap</span>(..., [serviceBindings, debugBindings]) }</pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Have a required binding "marker" to remind developers to fill-in implementations or flags.</li> </ul> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const mapsServicePrefixToken = const OpaqueToken('mapsServicePrefix'); const serviceBindings = const [ const Binding(MapsService, toClass: DefaultMapsService), const RequireBinding(mapsServicePrefixToken, reason: 'Define an API prefix to use MapsService') ];"><pre class="notranslate"><span class="pl-k">const</span> mapsServicePrefixToken <span class="pl-k">=</span> <span class="pl-k">const</span> <span class="pl-c1">OpaqueToken</span>(<span class="pl-s">'mapsServicePrefix'</span>); <span class="pl-k">const</span> serviceBindings <span class="pl-k">=</span> <span class="pl-k">const</span> [ <span class="pl-k">const</span> <span class="pl-c1">Binding</span>(<span class="pl-c1">MapsService</span>, toClass<span class="pl-k">:</span> <span class="pl-c1">DefaultMapsService</span>), <span class="pl-k">const</span> <span class="pl-c1">RequireBinding</span>(mapsServicePrefixToken, reason<span class="pl-k">:</span> <span class="pl-s">'Define an API prefix to use MapsService'</span>) ];</pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Allow optional typing of <code class="notranslate">token</code>-type bindings to throw earlier</li> </ul> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const mapsServicePrefixToken = const OpaqueToken&lt;String&gt;('mapsServicePrefix'); const serviceBindings = const [ const Binding(mapsServicePrefixToken, 5); // Should throw fast in dev-mode ];"><pre class="notranslate"><span class="pl-k">const</span> mapsServicePrefixToken <span class="pl-k">=</span> <span class="pl-k">const</span> <span class="pl-c1">OpaqueToken</span>&lt;<span class="pl-c1">String</span>&gt;(<span class="pl-s">'mapsServicePrefix'</span>); <span class="pl-k">const</span> serviceBindings <span class="pl-k">=</span> <span class="pl-k">const</span> [ <span class="pl-k">const</span> <span class="pl-c1">Binding</span>(mapsServicePrefixToken, <span class="pl-c1">5</span>); <span class="pl-c">// Should throw fast in dev-mode</span> ];</pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>Reduce the cost of duplicate/re-binding by resolving bindings, when possible, at build time</del></li> </ul> <p dir="auto"><em>This is already done.</em></p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const serviceBindings = const [ const Binding(MapsService, toClass: DefaultMapsService) ]; const mapsRenderingBindings = const [ serviceBindings, otherBindings ]; // We are binding two identical `const Binding(MapsService)` at runtime, even though they will resolve // exactly the same. We could detect this at build time. void main() { bootstrap(..., [serviceBindings, mapsRenderingBindings]) }"><pre class="notranslate"><span class="pl-k">const</span> serviceBindings <span class="pl-k">=</span> <span class="pl-k">const</span> [ <span class="pl-k">const</span> <span class="pl-c1">Binding</span>(<span class="pl-c1">MapsService</span>, toClass<span class="pl-k">:</span> <span class="pl-c1">DefaultMapsService</span>) ]; <span class="pl-k">const</span> mapsRenderingBindings <span class="pl-k">=</span> <span class="pl-k">const</span> [ serviceBindings, otherBindings ]; <span class="pl-c">// We are binding two identical `const Binding(MapsService)` at runtime, even though they will resolve</span> <span class="pl-c">// exactly the same. We could detect this at build time.</span> <span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-en">bootstrap</span>(..., [serviceBindings, mapsRenderingBindings]) }</pre></div> <p dir="auto">Other related issues (will add to if I create sub-issues):</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="96917191" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/3251" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/3251/hovercard" href="https://github.com/angular/angular/issues/3251">#3251</a> (Makes the current system easier to digest)</li> </ul> <p dir="auto">Requires some input by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TedSander/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TedSander">@TedSander</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yjbanov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yjbanov">@yjbanov</a> if possible before pushing to Misko and Victor :)</p>
0
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:no</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:Ubuntu 16.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>:Source</li> <li><strong>TensorFlow version (use command below)</strong>:1.8.0rc0</li> <li><strong>Python version</strong>:2.7.12</li> <li><strong>Bazel version (if compiling from source)</strong>:0.12.0</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:5.4.0</li> <li><strong>CUDA/cuDNN version</strong>:cuda-9.0/7.0</li> <li><strong>GPU model and memory</strong>:GeForce GTX 1080/8105MiB</li> <li><strong>Phone</strong>:xiaomi5 (Snapdragon 820)</li> <li><strong>Exact command to reproduce</strong>:<br> bazel run --config=opt //tensorflow/contrib/lite/toco:toco --<br> --input_file=/external_home/data/model/deeplabv3_mnv2_pascal_train_aug/frozen_inference_graph.pb<br> --output_file=/external_home/data/model/deeplabv3_mnv2_pascal_train_aug/kanul.tflite<br> --inference_type=QUANTIZED_UINT8<br> --input_shape=1,513,513,3<br> --input_array=sub_7<br> --output_array=logits/semantic/BiasAdd</li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> I have tried to quantize MobileNetV2 for deeplabV3+ with TFlite. But I fail to convert the model.<br> From the following issue, I saw that the operations were not supported for the option of quantization.</p> <p dir="auto"><a href="https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md">https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md</a><br> Checkpoint name: mobilenetv2_coco_voc_trainaug</p> <p dir="auto">Who can explain and support to resolve the issue?</p> <p dir="auto"><strong>Source code / logs</strong><br> bazel run --config=opt //tensorflow/contrib/lite/toco:toco --<br> --input_file=/external_home/data/model/deeplabv3_mnv2_pascal_train_aug/frozen_inference_graph.pb<br> --output_file=/external_home/data/model/deeplabv3_mnv2_pascal_train_aug/kanul.tflite<br> --inference_type=QUANTIZED_UINT8<br> --input_shape=1,513,513,3<br> --input_array=sub_7<br> --output_array=logits/semantic/BiasAdd</p> <p dir="auto">Unimplemented: this graph contains an operator of type SpaceToBatchND for which the quantized form is not yet implemented. Sorry, and patches welcome (that's a relatively fun patch to write, mostly providing the actual quantized arithmetic code for this op).</p>
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:no</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:Ubuntu 16.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>:Source</li> <li><strong>TensorFlow version (use command below)</strong>:1.9.0</li> <li><strong>Python version</strong>:2.7.12</li> <li><strong>Bazel version (if compiling from source)</strong>:0.12.0</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:5.4.0</li> <li><strong>CUDA/cuDNN version</strong>:cuda-9.0/7.0</li> <li><strong>GPU model and memory</strong>:GeForce GTX 1080/8105MiB</li> <li><strong>Phone</strong>:xiaomi5 (Snapdragon 820)</li> <li><strong>Exact command to reproduce</strong>:<br> bazel run --config=opt //tensorflow/contrib/lite/toco:toco --<br> --input_file=/external_home/data/model/deeplabv3_mnv2_pascal_train_aug/frozen_inference_graph.pb<br> --output_file=/external_home/data/model/deeplabv3_mnv2_pascal_train_aug/kanul.tflite<br> --inference_type=QUANTIZED_UINT8<br> --input_shape=1,513,513,3<br> --input_array=sub_7<br> --output_array=ResizeBilinear_3</li> </ul> <p dir="auto"><strong>Describe the problem</strong><br> I have tried to quantize MobileNetV2 for deeplabV3+ with TFlite. But I fail to convert the model.<br> From the following issue, I saw that the operations were not supported for the option of quantization.</p> <p dir="auto"><a href="https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md">https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md</a><br> Checkpoint name: mobilenetv2_coco_voc_trainaug</p> <p dir="auto">As we can see graphs from the tensorboard, there is one big problem.</p> <p dir="auto">In "import/MobilenetV2/expanded_conv_7/depthwise/depthwise",</p> <p dir="auto">the operation of depthwise consists of the subgraph with 3 nodes: (depthwise) and BatchToSpaceND, SpaceToBatchND.</p> <p dir="auto">But, in "import/MobilenetV2/expanded_conv_6/depthwise/depthwise",</p> <p dir="auto">the operation of depthwise is DepthwiseConv2dNative itself.</p> <p dir="auto">From the difference, we can not quantize deeplabv3 based on mobilenetv2.</p> <p dir="auto">The one thing is that MobilenetV2/expanded_conv_7~16 does not have min/max value to be needed for quantization with tflite.</p> <p dir="auto">Although I implement the needed min/max value in hardcode_min_max.cc,</p> <p dir="auto">This model does not run well in mobile environments.</p> <p dir="auto">The ultimate problem is caused by the fact that depthwise_conv_7~16 consist of 3 nodes with BatchToSpaceND and SpaceToBatchND.</p> <p dir="auto">I request you to notify the method to resolve above issues.</p> <p dir="auto"><strong>Source code / logs</strong></p> <p dir="auto">bazel run --config=opt //tensorflow/contrib/lite/toco:toco --<br> --input_file=/external_home/data/model/deeplabv3_mnv2_pascal_train_aug/frozen_inference_graph.pb<br> --output_file=/external_home/data/model/deeplabv3_mnv2_pascal_train_aug/kanul.tflite<br> --inference_type=QUANTIZED_UINT8<br> --input_shape=1,513,513,3<br> --input_array=sub_7<br> --output_array=ResizeBilinear_3</p> <p dir="auto">2018-07-11 04:40:01.330069: I tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc:39] Before pre-quantization graph transformations: 166 operators, 340 arrays (1 quantized)<br> 2018-07-11 04:40:01.330711: W tensorflow/contrib/lite/toco/graph_transformations/hardcode_min_max.cc:339] Tweaking the MinMax of array ResizeBilinear_1, which is an input to {Concatenation operator with output concat}, because we want all inputs and outputs of a Concatenation operator to have the same MinMax so that it can be implemented as a pure byte-copy, no arithmetic.<br> 2018-07-11 04:40:01.332983: I tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc:39] After pre-quantization graph transformations pass 1: 111 operators, 285 arrays (1 quantized)<br> 2018-07-11 04:40:01.335731: I tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc:39] Before quantization graph transformations: 111 operators, 285 arrays (1 quantized)<br> 2018-07-11 04:40:01.337575: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_7/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.337670: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_7/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.337695: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_7/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.338553: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_8/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.338711: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_8/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.338786: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_8/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.339777: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_9/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.339918: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_9/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.339985: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_9/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.340933: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_10/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.341034: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_10/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.341059: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_10/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.342497: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_11/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.342593: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_11/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.342620: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_11/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.344311: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_12/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.344422: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_12/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.344452: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_12/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.345978: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_13/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.346094: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_13/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.346122: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_13/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.349163: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_14/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.349318: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_14/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.349351: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_14/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.353356: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_15/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.353511: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_15/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.353545: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_15/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.357264: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_16/depthwise/depthwise_weights lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.357400: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_16/depthwise/BatchNorm/FusedBatchNorm_mul_0_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.<br> 2018-07-11 04:40:01.357432: W tensorflow/contrib/lite/toco/graph_transformations/quantize.cc:92] Constant array MobilenetV2/expanded_conv_16/depthwise/BatchNorm/FusedBatchNorm_add_param lacks MinMax information. To make up for that, we will now compute the MinMax from actual array elements. That will result in quantization parameters that probably do not match whichever arithmetic was used during training, and thus will probably be a cause of poor inference accuracy.</p>
1
<p dir="auto">The following code snippet takes coordinates for a hand, and clips it to a rectangular window. Of the returned polygon, the endpoints are duplicated.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from matplotlib import path, transforms import matplotlib.pyplot as plt import numpy as np hand = np.array( [[ 1.64516129, 1.16145833 ], [ 1.64516129, 1.59375 ], [ 1.35080645, 1.921875 ], [ 1.375 , 2.18229167 ], [ 1.68548387, 1.9375 ], [ 1.60887097, 2.55208333 ], [ 1.68548387, 2.69791667 ], [ 1.76209677, 2.56770833 ], [ 1.83064516, 1.97395833 ], [ 1.89516129, 2.75 ], [ 1.9516129 , 2.84895833 ], [ 2.01209677, 2.76041667 ], [ 1.99193548, 1.99479167 ], [ 2.11290323, 2.63020833 ], [ 2.2016129 , 2.734375 ], [ 2.25403226, 2.60416667 ], [ 2.14919355, 1.953125 ], [ 2.30645161, 2.36979167 ], [ 2.39112903, 2.36979167 ], [ 2.41532258, 2.1875 ], [ 2.1733871 , 1.703125 ], [ 2.07782258, 1.16666667 ]]) (r0, c0, r1, c1) = (1.0, 1.5, 2.1, 2.5) poly = path.Path(np.vstack((hand[:, 1], hand[:, 0])).T, closed=True) clip_rect = transforms.Bbox([[r0, c0], [r1, c1]]) poly_clipped = poly.clip_to_bbox(clip_rect).to_polygons()[0] print(len(poly_clipped[:, 0]), len(poly_clipped[:, 1])) plt.plot(hand[:, 0], hand[:, 1], 'r-') plt.plot(poly_clipped[:, 1], poly_clipped[:, 0], 'go-') plt.show() print(poly_clipped[-2:, :])"><pre class="notranslate"><code class="notranslate">from matplotlib import path, transforms import matplotlib.pyplot as plt import numpy as np hand = np.array( [[ 1.64516129, 1.16145833 ], [ 1.64516129, 1.59375 ], [ 1.35080645, 1.921875 ], [ 1.375 , 2.18229167 ], [ 1.68548387, 1.9375 ], [ 1.60887097, 2.55208333 ], [ 1.68548387, 2.69791667 ], [ 1.76209677, 2.56770833 ], [ 1.83064516, 1.97395833 ], [ 1.89516129, 2.75 ], [ 1.9516129 , 2.84895833 ], [ 2.01209677, 2.76041667 ], [ 1.99193548, 1.99479167 ], [ 2.11290323, 2.63020833 ], [ 2.2016129 , 2.734375 ], [ 2.25403226, 2.60416667 ], [ 2.14919355, 1.953125 ], [ 2.30645161, 2.36979167 ], [ 2.39112903, 2.36979167 ], [ 2.41532258, 2.1875 ], [ 2.1733871 , 1.703125 ], [ 2.07782258, 1.16666667 ]]) (r0, c0, r1, c1) = (1.0, 1.5, 2.1, 2.5) poly = path.Path(np.vstack((hand[:, 1], hand[:, 0])).T, closed=True) clip_rect = transforms.Bbox([[r0, c0], [r1, c1]]) poly_clipped = poly.clip_to_bbox(clip_rect).to_polygons()[0] print(len(poly_clipped[:, 0]), len(poly_clipped[:, 1])) plt.plot(hand[:, 0], hand[:, 1], 'r-') plt.plot(poly_clipped[:, 1], poly_clipped[:, 0], 'go-') plt.show() print(poly_clipped[-2:, :]) </code></pre></div>
<h3 dir="auto">Problem</h3> <p dir="auto">Trying to combine subplot_mosaic with axes using various different projections (e.g. one rectilinear axes and one polar axes and one 3d axes) has been requested a few times (once in the original subplot_mosaic thread IIRC, and in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="915354311" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/20392" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/20392/hovercard" href="https://github.com/matplotlib/matplotlib/issues/20392">#20392</a> too), and it's something I would recently have been happy to have, too.</p> <p dir="auto">Pushing projections directly into subplot_mosaic seems ripe for API bloat, but perhaps another solution would be to add <code class="notranslate">figure.gridspec_mosaic(...)</code> which takes the same arguments as subplot_mosaic, but returns a dict of <em>subplotspecs</em>, such that one can do something like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="specs = fig.gridspec_mosaic(...) d = { &quot;foo&quot;: fig.add_subplot(specs[&quot;foo&quot;], projection=...), &quot;bar&quot;: fig.add_subplot(specs[&quot;bar&quot;], projection=...), ... }"><pre class="notranslate"><code class="notranslate">specs = fig.gridspec_mosaic(...) d = { "foo": fig.add_subplot(specs["foo"], projection=...), "bar": fig.add_subplot(specs["bar"], projection=...), ... } </code></pre></div> <p dir="auto">As a side point, I do find the repetition of <code class="notranslate">fig</code> in each call to add_subplot a bit jarring (as the underlying gridspec is bound to the figure, so that information is actually redundant). Back in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="402870906" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/13280" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/13280/hovercard" href="https://github.com/matplotlib/matplotlib/pull/13280">#13280</a> I had proposed to add SubplotSpec.add_subplot() (adding to the figure to which the gridspec is bound), which would allow one to write, here,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="specs = fig.gridspec_mosaic(...) d = { &quot;foo&quot;: specs[&quot;foo&quot;].add_subplot(projection=...), &quot;bar&quot;: specs[&quot;bar&quot;].add_subplot(projection=...), ... }"><pre class="notranslate"><code class="notranslate">specs = fig.gridspec_mosaic(...) d = { "foo": specs["foo"].add_subplot(projection=...), "bar": specs["bar"].add_subplot(projection=...), ... } </code></pre></div> <p dir="auto">but that idea got shot down back then and even if we decide not to revisit it, even the first form would be nice to have.</p> <p dir="auto">Thoughts?</p> <h3 dir="auto">Proposed solution</h3> <p dir="auto"><em>No response</em></p>
0
<p dir="auto">Hello,</p> <p dir="auto">similar to caffe, keras should have model zoo so that people can replicate results of others. does anyone agree on that?</p>
<p dir="auto">Mentioned in the "mega-issue" <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="73734035" data-permission-text="Title is private" data-url="https://github.com/keras-team/keras/issues/100" data-hovercard-type="issue" data-hovercard-url="/keras-team/keras/issues/100/hovercard" href="https://github.com/keras-team/keras/issues/100">#100</a>, though it would be worth having a separate one.</p> <p dir="auto">The simplest model zoo is a github wiki page, another option it to have it as a page in the documentation and receive updates via push requests.</p> <p dir="auto">I think model zoo matters most for models that take "more 6 hours to train" (i.e. a large fraction of 24h).</p>
1
<p dir="auto">As discussed with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JeffBezanson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JeffBezanson">@JeffBezanson</a> in the Slack, <code class="notranslate">@threads</code> still uses a static schedule. However, there are some cases where we are using it as a simple way to express a lot of similar computations to be done on threads, each of which is actually quite expensive and not the same size. Thus for our purposes it would make sense to utilize <code class="notranslate">@par</code> to get the dynamic scheduling, but it makes sense "aesthetics-wise" to just put <code class="notranslate">@threads</code> on the loop. Thus it would make sense to have something like <code class="notranslate">@threads dynamic for i in ...</code> where</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="macro par(expr) thunk = esc(:(()-&gt;($expr))) quote local task = Task($thunk) task.sticky = false schedule(task) task end end"><pre class="notranslate"><span class="pl-k">macro</span> <span class="pl-en">par</span>(expr) thunk <span class="pl-k">=</span> <span class="pl-c1">esc</span>(:(()<span class="pl-k">-&gt;</span>(<span class="pl-k">$</span>expr))) <span class="pl-k">quote</span> <span class="pl-k">local</span> task <span class="pl-k">=</span> <span class="pl-c1">Task</span>(<span class="pl-k">$</span>thunk) task<span class="pl-k">.</span>sticky <span class="pl-k">=</span> <span class="pl-c1">false</span> <span class="pl-c1">schedule</span>(task) task <span class="pl-k">end</span> <span class="pl-k">end</span></pre></div> <p dir="auto">it turns the loop</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="_f = (i) -&gt; # inner expression of the loop for i in 1:100 @par _f(i) end"><pre class="notranslate">_f <span class="pl-k">=</span> (i) <span class="pl-k">-&gt;</span> <span class="pl-c"><span class="pl-c">#</span> inner expression of the loop</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">100</span> <span class="pl-c1">@par</span> <span class="pl-c1">_f</span>(i) <span class="pl-k">end</span></pre></div> <p dir="auto">If I'm not mistaken that's all that's necessary?</p>
<p dir="auto">Apologies if this is a duplicate - did a quick search, couldn't find any issues related to this. Just started learning Julia. When learning a language I prefer to download documentation and read it off-line during commutes.</p> <p dir="auto">There is a minor annoyance with the downloadable html version of the documentation as is: the in-document hyperlinks end with a forward slash (for example "julia-latest/manual/parallel-computing/") but to be valid they should end with the "index.html" document ("julia-latest/manual/parallel-computing/index.html").</p>
0
<p dir="auto">I am trying to use a decorator with an anonymous class (class expression) on TypeScript 1.8.9 and am receiving the error: "error TS1206: Decorators are not valid here."</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const decorator: MethodDecorator = function (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor&lt;any&gt;): TypedPropertyDescriptor&lt;any&gt; { return descriptor; }; const C = class { @decorator method() {} };"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">decorator</span>: <span class="pl-smi">MethodDecorator</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">Object</span><span class="pl-kos">,</span> <span class="pl-s1">propertyKey</span>: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-s1">descriptor</span>: <span class="pl-smi">TypedPropertyDescriptor</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-smi">TypedPropertyDescriptor</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-k">return</span> <span class="pl-s1">descriptor</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-smi">C</span> <span class="pl-c1">=</span> <span class="pl-k">class</span> <span class="pl-kos">{</span> @<span class="pl-s1">decorator</span> <span class="pl-en">method</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I didn't see anything addressing decorating anonymous classes in the roadmap, so I am filing this issue to either provide clarification to other people in my situation or to mark a bug.</p>
<p dir="auto">Not sure if this is by design or not, but the following gives a compile error of "Decorators are not valid here" with TypeScript 1.8:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let testClass = new class { testMethod(@myDecorator date: Date): any { return date; } }();"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">testClass</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-k">class</span> <span class="pl-kos">{</span> <span class="pl-en">testMethod</span><span class="pl-kos">(</span>@<span class="pl-s1">myDecorator</span> <span class="pl-s1">date</span>: <span class="pl-smi">Date</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">date</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>
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">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">This is a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="802261813" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/2632" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/2632/hovercard" href="https://github.com/npm/cli/issues/2632">#2632</a>. This has been closed, but I still encounter it using the latest version of npm.</p> <p dir="auto">When running <code class="notranslate">npm install</code> in a project that references a <code class="notranslate">bin</code> script that doesn’t exist, the command fails with the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /home/remco/Projects/appsemble/node_modules/@appsemble/server/dist/index.js npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, chmod '/home/remco/Projects/appsemble/node_modules/@appsemble/server/dist/index.js' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent"><pre class="notranslate"><code class="notranslate">npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /home/remco/Projects/appsemble/node_modules/@appsemble/server/dist/index.js npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, chmod '/home/remco/Projects/appsemble/node_modules/@appsemble/server/dist/index.js' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent </code></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">npm install</code> is succesful</p> <h3 dir="auto">Steps To Reproduce</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone [email protected]:appsemble/appsemble.git cd appsemble rm yarn.lock npm install"><pre class="notranslate">git clone [email protected]:appsemble/appsemble.git <span class="pl-c1">cd</span> appsemble rm yarn.lock npm install</pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: 8.5.5</li> <li>Node.js: 16.14.2</li> <li>OS Name: Pop!_OS</li> <li>System Model Name:</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; &quot;global&quot; config from /home/remco/.local/etc/npmrc fund = false ; node bin location = /usr/bin/node ; cwd = /home/remco/Projects/appsemble ; HOME = /home/remco ; Run `npm config ls -l` to show all defaults"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "global" config from /home/remco/.local/etc/npmrc</span> <span class="pl-k">fund</span> = false <span class="pl-c"><span class="pl-c">;</span> node bin location = /usr/bin/node</span> <span class="pl-c"><span class="pl-c">;</span> cwd = /home/remco/Projects/appsemble</span> <span class="pl-c"><span class="pl-c">;</span> HOME = /home/remco</span> <span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults</span></pre></div>
<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">Currently all of our open source projects and many of our non-open source projects are unable to build because <code class="notranslate">npm</code> 7+ is reifying different file trees based on the publish event of an unrelated module. This meant that all of our builds that were working suddenly stopped working even though no dependencies changed on our side.</p> <p dir="auto">Here's a reduced test case repo with detailed explanation and steps to repro: <a href="https://github.com/ryanblock/npm-time-based-dependency-graph">https://github.com/ryanblock/npm-time-based-dependency-graph</a></p> <p dir="auto">Summary:</p> <ul dir="auto"> <li>This project has two dependencies: <code class="notranslate">eslint@7</code> (which has many subdependencies) + <code class="notranslate">@architect/eslint-config</code>, which has 3 subdependencies: <ul dir="auto"> <li><code class="notranslate">eslint-plugin-filenames</code></li> <li><code class="notranslate">eslint-plugin-fp</code></li> <li><code class="notranslate">eslint-plugin-import</code></li> </ul> </li> <li>When deps before <code class="notranslate">2021-10-09T20:46:00.000Z</code> are installed: <ul dir="auto"> <li>The 3 <code class="notranslate">eslint-plugin-$name</code> dependencies above are installed flatly into <code class="notranslate">node_modules/</code> (e.g. <code class="notranslate">node_modules/eslint-plugin/filenames</code>)</li> </ul> </li> <li>When deps before <code class="notranslate">2021-10-09T20:47:00.000Z</code> are installed (one minute later): <ul dir="auto"> <li>The 2 of 3 plugins are installed into <code class="notranslate">node_modules/@architect/eslint-config/node_modules/</code> (specifically <code class="notranslate">eslint-plugin-filenames</code>, <code class="notranslate">eslint-plugin-fp</code>)</li> <li>The 3rd plugin is still installed flatly into <code class="notranslate">node_modules/</code></li> </ul> </li> <li>eslint then runs, and cannot find <code class="notranslate">eslint-plugin-filenames</code> (nor <code class="notranslate">eslint-plugin-fp</code>, but it fails on the first plugin) because they are both installed in <code class="notranslate">node_modules/@architect/eslint-config/node_modules/</code>, away from the reach of Node's module resolution</li> <li><strong>Note:</strong> <code class="notranslate">eslint@8</code> DOES NOT appear in this dependency tree anywhere, however it was published at <code class="notranslate">2021-10-09T20:46:13.874Z</code> <ul dir="auto"> <li>This implies that Arborist / npm is reifying module locations based on the existence of a package that is not even in use in this project</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">No matter when <code class="notranslate">npm i</code> is run in a project with identical dependencies, the filesystem results should be the same.</p> <h3 dir="auto">Steps To Reproduce</h3> <p dir="auto">Steps to reproduce can be found at the following reduced test case repo: <a href="https://github.com/ryanblock/npm-time-based-dependency-graph">https://github.com/ryanblock/npm-time-based-dependency-graph</a></p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: macOS 11.6</li> <li>Node: 16.10, 16.11</li> <li>npm: 7, 8 (does not reproduce in npm 6)</li> </ul>
0
<p dir="auto">Hi, has the .divider-vertical for navbars been dropped from bootstrap 3, or is it just a feature overlook? I don't see it in neither docs nor code.</p>
<p dir="auto">In Bootstrap, all components are defined using classes.</p> <p dir="auto">But if someone wants to use BS with less, without any classes in markup, it is possible, but the classes will still be defined in the CSS file, adding useless cluter to the CSS file.</p> <p dir="auto">Another problem caused by this is in the case we just want to quickly override a component. Since they all are classes, we have to either make a copy of the component less file, change it, and include it instead of the original one, or negate already defined properties.</p> <p dir="auto">If components were defined as mixins, and then in a separate file affected to a class, we could just use the mixin and not import the file in which the class is defined.</p> <p dir="auto">For example, one might want to use panel for its own markup :</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div id=&quot;my-panel&quot;&gt;...&lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">my-panel</span>"<span class="pl-kos">&gt;</span>...<span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@import &quot;panels.less&quot;; #my-panel { .panel; }"><pre class="notranslate"><span class="pl-k">@import</span> <span class="pl-s">"panels.less"</span>; <span class="pl-kos">#</span><span class="pl-c1">my-panel</span> { .<span class="pl-c1">panel</span>; }</pre></div> <p dir="auto">That works, but in the final CSS, we would end with 2 rule sets, one for .panel, and one for #my-panel.</p> <p dir="auto">The less file for the panel component, "panels.less" contains :</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".panel { margin-bottom: @line-height-computed; background-color: @panel-bg; border: 1px solid transparent; border-radius: @panel-border-radius; .box-shadow(0 1px 1px rgba(0,0,0,.05)); }"><pre class="notranslate">.<span class="pl-c1">panel</span> { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-k">@line-height-computed</span>; <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-k">@panel-bg</span>; <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">1<span class="pl-smi">px</span></span> solid transparent; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-k">@panel-border-radius</span>; .<span class="pl-c1">box-shadow</span>(0 1px 1px <span class="pl-ent">rgba</span>(0<span class="pl-kos">,</span>0<span class="pl-kos">,</span>0<span class="pl-kos">,</span>.05)); }</pre></div> <p dir="auto">To make this possible, we could split components in 2 files. One containing the mixin, named e.g. "panels.mixins.less" :</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".panel() { margin-bottom: @line-height-computed; background-color: @panel-bg; border: 1px solid transparent; border-radius: @panel-border-radius; .box-shadow(0 1px 1px rgba(0,0,0,.05)); }"><pre class="notranslate">.<span class="pl-c1">panel</span>() { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-k">@line-height-computed</span>; <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-k">@panel-bg</span>; <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">1<span class="pl-smi">px</span></span> solid transparent; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-k">@panel-border-radius</span>; .<span class="pl-c1">box-shadow</span>(0 1px 1px <span class="pl-ent">rgba</span>(0<span class="pl-kos">,</span>0<span class="pl-kos">,</span>0<span class="pl-kos">,</span>.05)); }</pre></div> <p dir="auto">And another one, "panels.less", affecting the mixin to the default class assumed by bootstrap :</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".panel { .panel; }"><pre class="notranslate">.<span class="pl-c1">panel</span> { .<span class="pl-c1">panel</span>; }</pre></div> <p dir="auto">That would make the whole thing more modular and flexible.</p> <p dir="auto">Makes sense ?</p>
0
<p dir="auto">Hi, sometimes the shortcuts for PowerToys do not work - I doubt this is because we close the 'Settings' window of PowerToys. So instead of closing the app, I think it would be good if the app minimizes itself to the System Tray. I think this minor tweak will be a value addition to PowerToys. Thanks!</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [19041.330] PowerToys version: v0.19.1 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: [19041.330] PowerToys version: v0.19.1 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">The cursor is not placed on the search box if there is some text.<br> For example, after using PT Run once, the search box will be filled of the text that was entered last time if you open it again.<br> Meanwhile the cursor will not be placed on the search box.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The cursor would be placed on the search box automatically whenever it opened.</p>
0
<p dir="auto">Not sure if this behavior is expected, there is an easy workaround. After I press to clear a form, bound model is not updated with new/reset values, while form resets as expected. Using angular 2 beta 0</p>
<p dir="auto">When click the reset button, the form's value is still unchanged. See <a href="http://plnkr.co/edit/oBpDZRRUH7mmZct2hmDH?p=preview" rel="nofollow">http://plnkr.co/edit/oBpDZRRUH7mmZct2hmDH?p=preview</a>.</p>
1
<p dir="auto">Not challenge specific, but when you start a new challenge, where you click in the text interpreter doesn't align where the cursor appears. You may click in one spot to begin typing, but end up a few rows down and mess up your code until you click again.</p>
<p dir="auto">In all the exercises, we the users are forced to press the enter key before writing any code.</p> <hr> <h4 dir="auto">Update:</h4> <p dir="auto">We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.</p> <p dir="auto">The fix can be confirmed on the beta website.</p> <p dir="auto">The workaround currently on production website is:<br> Press the <kbd>Enter</kbd> key on the challenge editor and then proceed with the challenge.</p> <p dir="auto">Apologies for the inconvenience meanwhile.</p> <p dir="auto">Reach us in the chat room if you need any assistance.</p>
1
<p dir="auto">Summary of the bug is in the title</p> <p dir="auto">I tried with this code :</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum Event { ENTRY, EXIT, } struct Data; struct State&lt;'a&gt; { f: Fn(&amp;mut Data, &amp;Event) -&gt; &amp;'a Signal&lt;'a&gt;, } enum Signal&lt;'a&gt; { UNHANDLED, HANDLED, TRAN(Fn(&amp;mut Data, &amp;Event) -&gt; &amp;'a Signal&lt;'a&gt;), } struct FSM&lt;'a&gt; { current : Option&lt;&amp;'a State&lt;'a&gt;&gt;, data : Data, } impl &lt;'a&gt; FSM&lt;'a&gt; { pub fn start(&amp;mut self) { match self.current { None =&gt; panic!(&quot;Ola !&quot;), Some(current) =&gt; {(current.f)(&amp;mut self.data, &amp;Event::ENTRY);}, } } pub fn event(&amp;mut self,event : Event) { let signal = (self.current.unwrap().f)(&amp;mut self.data, &amp;event); } }"><pre class="notranslate"><span class="pl-k">enum</span> <span class="pl-smi">Event</span> <span class="pl-kos">{</span> <span class="pl-v">ENTRY</span><span class="pl-kos">,</span> <span class="pl-v">EXIT</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">struct</span> <span class="pl-smi">Data</span><span class="pl-kos">;</span> <span class="pl-k">struct</span> <span class="pl-smi">State</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">f</span><span class="pl-kos">:</span> <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">Data</span><span class="pl-kos">,</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Event</span><span class="pl-kos">)</span> -&gt; <span class="pl-c1">&amp;</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-smi">Signal</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-k">enum</span> <span class="pl-smi">Signal</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-v">UNHANDLED</span><span class="pl-kos">,</span> <span class="pl-v">HANDLED</span><span class="pl-kos">,</span> <span class="pl-v">TRAN</span><span class="pl-kos">(</span><span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">Data</span><span class="pl-kos">,</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Event</span><span class="pl-kos">)</span> -&gt; <span class="pl-c1">&amp;</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-smi">Signal</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</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">struct</span> <span class="pl-smi">FSM</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">current</span> <span class="pl-kos">:</span> <span class="pl-smi">Option</span><span class="pl-kos">&lt;</span><span class="pl-c1">&amp;</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-smi">State</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-c1">data</span> <span class="pl-kos">:</span> <span class="pl-smi">Data</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">&gt;</span> <span class="pl-smi">FSM</span><span class="pl-kos">&lt;</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">start</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-kos">{</span> <span class="pl-k">match</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">current</span> <span class="pl-kos">{</span> <span class="pl-v">None</span> =&gt; <span class="pl-en">panic</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"Ola !"</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">Some</span><span class="pl-kos">(</span>current<span class="pl-kos">)</span> =&gt; <span class="pl-kos">{</span><span class="pl-kos">(</span>current<span class="pl-kos">.</span><span class="pl-c1">f</span><span class="pl-kos">)</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">data</span><span class="pl-kos">,</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Event</span><span class="pl-kos">::</span><span class="pl-v">ENTRY</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">event</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">event</span> <span class="pl-kos">:</span> <span class="pl-smi">Event</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> signal = <span class="pl-kos">(</span><span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">current</span><span class="pl-kos">.</span><span class="pl-en">unwrap</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">f</span><span class="pl-kos">)</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">data</span><span class="pl-kos">,</span> <span class="pl-c1">&amp;</span>event<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I expected rustc would have kept yelling at me about errors in my code :)<br> Instead, I get the following output</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[miK@i5760-miK bug]$ cargo build --verbose Compiling hello_world v0.0.1 (file:///home/miK/workspaces/Rust/bug) Running `rustc src/lib.rs --crate-name hello_world --crate-type lib -g --out-dir /home/miK/workspaces/Rust/bug/target/debug --emit=dep-info,link -L dependency=/home/miK/workspaces/Rust/bug/target/debug -L dependency=/home/miK/workspaces/Rust/bug/target/debug/deps` src/lib.rs:2:1: 5:2 warning: enum is never used: `Event`, #[warn(dead_code)] on by default src/lib.rs:2 enum Event { src/lib.rs:3 ENTRY, src/lib.rs:4 EXIT, src/lib.rs:5 } src/lib.rs:7:1: 7:13 warning: struct is never used: `Data`, #[warn(dead_code)] on by default src/lib.rs:7 struct Data; ^~~~~~~~~~~~ src/lib.rs:9:1: 11:2 warning: struct is never used: `State`, #[warn(dead_code)] on by default src/lib.rs:9 struct State&lt;'a&gt; { src/lib.rs:10 f: Fn(&amp;mut Data, &amp;Event) -&gt; &amp;'a Signal&lt;'a&gt;, src/lib.rs:11 } src/lib.rs:13:1: 17:2 warning: enum is never used: `Signal`, #[warn(dead_code)] on by default src/lib.rs:13 enum Signal&lt;'a&gt; { src/lib.rs:14 UNHANDLED, src/lib.rs:15 HANDLED, src/lib.rs:16 TRAN(Fn(&amp;mut Data, &amp;Event) -&gt; &amp;'a Signal&lt;'a&gt;), src/lib.rs:17 } src/lib.rs:19:1: 22:2 warning: struct is never used: `FSM`, #[warn(dead_code)] on by default src/lib.rs:19 struct FSM&lt;'a&gt; { src/lib.rs:20 current : Option&lt;&amp;'a State&lt;'a&gt;&gt;, src/lib.rs:21 data : Data, src/lib.rs:22 } src/lib.rs:20:5: 20:36 warning: struct field is never used: `current`, #[warn(dead_code)] on by default src/lib.rs:20 current : Option&lt;&amp;'a State&lt;'a&gt;&gt;, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lib.rs:21:5: 21:16 warning: struct field is never used: `data`, #[warn(dead_code)] on by default src/lib.rs:21 data : Data, ^~~~~~~~~~~ src/lib.rs:26:5: 32:6 warning: method is never used: `start`, #[warn(dead_code)] on by default src/lib.rs:26 pub fn start(&amp;mut self) { src/lib.rs:27 match self.current { src/lib.rs:28 None =&gt; panic!(&quot;Ola !&quot;), src/lib.rs:29 Some(current) =&gt; {(current.f)(&amp;mut self.data, &amp;Event::ENTRY);}, src/lib.rs:30 } src/lib.rs:31 ... src/lib.rs:34:5: 36:6 warning: method is never used: `event`, #[warn(dead_code)] on by default src/lib.rs:34 pub fn event(&amp;mut self,event : Event) { src/lib.rs:35 let signal = (self.current.unwrap().f)(&amp;mut self.data, &amp;event); src/lib.rs:36 } src/lib.rs:35:13: 35:19 warning: unused variable: `signal`, #[warn(unused_variables)] on by default src/lib.rs:35 let signal = (self.current.unwrap().f)(&amp;mut self.data, &amp;event); ^~~~~~ 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 'Unexpected type returned from struct_tail: Signal for ty=Signal', /home/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-linux/build/src/librustc_trans/trans/type_of.rs:366 stack backtrace: 1: 0x7f4a6dfdf529 - sys::backtrace::write::ha3b8868b13c6f5b594r 2: 0x7f4a6dfe7449 - panicking::on_panic::h0d4f0a7bb69824a9iJw 3: 0x7f4a6dfa8242 - rt::unwind::begin_unwind_inner::h6eae1ff9ccde81e1sow 4: 0x7f4a6dfa8fd7 - rt::unwind::begin_unwind_fmt::h1b64aa0dc7f97d91ynw 5: 0x7f4a6cd84041 - trans::type_of::in_memory_type_of::h8394fa8ab4d78a04xNL 6: 0x7f4a6ce4c42f - trans::type_of::type_of_rust_fn::hd912a43908d09915gBL 7: 0x7f4a6cd9092b - trans::declare::declare_rust_fn::h9be6db25c327fe6dRNz 8: 0x7f4a6cea5442 - trans::meth::trans_object_shim::hb599a1c833cfc4e8BwJ 9: 0x7f4a6cdee7a8 - trans::meth::trans_method_callee::hccc5b8b91d6ac958o2I 10: 0x7f4a6ce6f845 - trans::callee::trans_call_inner::h3335664676729396018 11: 0x7f4a6ce4fc13 - trans::expr::trans_rvalue_dps_unadjusted::h6f98c3ba8230a493FkB 12: 0x7f4a6ce245dc - trans::expr::trans_into::h5caadbac159cf74aXaA 13: 0x7f4a6ce2414a - trans::controlflow::trans_stmt_semi::h1d1c29c8dbdd3907D2u 14: 0x7f4a6cda84ba - trans::controlflow::trans_block::he9bca081d3f8c1c7z3u 15: 0x7f4a6ce4e45d - trans::expr::trans_rvalue_dps_unadjusted::h6f98c3ba8230a493FkB 16: 0x7f4a6ce245dc - trans::expr::trans_into::h5caadbac159cf74aXaA 17: 0x7f4a6ce8b007 - trans::_match::trans_match_inner::h57034bb4c897c3296uI 18: 0x7f4a6ce4e425 - trans::expr::trans_rvalue_dps_unadjusted::h6f98c3ba8230a493FkB 19: 0x7f4a6ce245dc - trans::expr::trans_into::h5caadbac159cf74aXaA 20: 0x7f4a6cda8806 - trans::controlflow::trans_block::he9bca081d3f8c1c7z3u 21: 0x7f4a6cda7121 - trans::base::trans_closure::h502004b16ea01ff9jHh 22: 0x7f4a6cda8dfa - trans::base::trans_fn::h5f2be6a1df79e5691Rh 23: 0x7f4a6cdac652 - trans::base::trans_item::hfa0f4f4b559a2855dgi 24: 0x7f4a6cdb9a32 - trans::base::trans_crate::hf005d8f63d50ea8004i 25: 0x7f4a6e537466 - driver::phase_4_translate_to_llvm::h86819ae7902c932bnOa 26: 0x7f4a6e513266 - driver::compile_input::h6e596544d26b4394Qba 27: 0x7f4a6e5c9041 - run_compiler::haa6c0289fab7415475b 28: 0x7f4a6e5c6892 - boxed::F.FnBox&lt;A&gt;::call_box::h10721825727138786690 29: 0x7f4a6e5c5e59 - rt::unwind::try::try_fn::h6014602198652783625 30: 0x7f4a6e05fb58 - rust_try_inner 31: 0x7f4a6e05fb45 - rust_try 32: 0x7f4a6e5c60f4 - boxed::F.FnBox&lt;A&gt;::call_box::h5510246712457526188 33: 0x7f4a6dfe61e1 - sys::thread::Thread::new::thread_start::h11fbc90f6ba541f9zvv 34: 0x7f4a68877ee4 - start_thread 35: 0x7f4a6dc29d1c - clone 36: 0x0 - &lt;unknown&gt; Could not compile `hello_world`. Caused by: Process didn't exit successfully: `rustc src/lib.rs --crate-name hello_world --crate-type lib -g --out-dir /home/miK/workspaces/Rust/bug/target/debug --emit=dep-info,link -L dependency=/home/miK/workspaces/Rust/bug/target/debug -L dependency=/home/miK/workspaces/Rust/bug/target/debug/deps` (exit code: 101)"><pre class="notranslate"><span class="pl-e">[miK@i5760-miK bug]</span>$ <span class="pl-s1">cargo build --verbose</span> <span class="pl-c1"> Compiling hello_world v0.0.1 (file:///home/miK/workspaces/Rust/bug)</span> <span class="pl-c1"> Running `rustc src/lib.rs --crate-name hello_world --crate-type lib -g --out-dir /home/miK/workspaces/Rust/bug/target/debug --emit=dep-info,link -L dependency=/home/miK/workspaces/Rust/bug/target/debug -L dependency=/home/miK/workspaces/Rust/bug/target/debug/deps`</span> <span class="pl-c1">src/lib.rs:2:1: 5:2 warning: enum is never used: `Event`, #[warn(dead_code)] on by default</span> <span class="pl-c1">src/lib.rs:2 enum Event {</span> <span class="pl-c1">src/lib.rs:3 ENTRY,</span> <span class="pl-c1">src/lib.rs:4 EXIT,</span> <span class="pl-c1">src/lib.rs:5 }</span> <span class="pl-c1">src/lib.rs:7:1: 7:13 warning: struct is never used: `Data`, #[warn(dead_code)] on by default</span> <span class="pl-c1">src/lib.rs:7 struct Data;</span> <span class="pl-c1"> ^~~~~~~~~~~~</span> <span class="pl-c1">src/lib.rs:9:1: 11:2 warning: struct is never used: `State`, #[warn(dead_code)] on by default</span> <span class="pl-c1">src/lib.rs:9 struct State&lt;'a&gt; {</span> <span class="pl-c1">src/lib.rs:10 f: Fn(&amp;mut Data, &amp;Event) -&gt; &amp;'a Signal&lt;'a&gt;,</span> <span class="pl-c1">src/lib.rs:11 }</span> <span class="pl-c1">src/lib.rs:13:1: 17:2 warning: enum is never used: `Signal`, #[warn(dead_code)] on by default</span> <span class="pl-c1">src/lib.rs:13 enum Signal&lt;'a&gt; {</span> <span class="pl-c1">src/lib.rs:14 UNHANDLED,</span> <span class="pl-c1">src/lib.rs:15 HANDLED,</span> <span class="pl-c1">src/lib.rs:16 TRAN(Fn(&amp;mut Data, &amp;Event) -&gt; &amp;'a Signal&lt;'a&gt;),</span> <span class="pl-c1">src/lib.rs:17 }</span> <span class="pl-c1">src/lib.rs:19:1: 22:2 warning: struct is never used: `FSM`, #[warn(dead_code)] on by default</span> <span class="pl-c1">src/lib.rs:19 struct FSM&lt;'a&gt; {</span> <span class="pl-c1">src/lib.rs:20 current : Option&lt;&amp;'a State&lt;'a&gt;&gt;,</span> <span class="pl-c1">src/lib.rs:21 data : Data,</span> <span class="pl-c1">src/lib.rs:22 }</span> <span class="pl-c1">src/lib.rs:20:5: 20:36 warning: struct field is never used: `current`, #[warn(dead_code)] on by default</span> <span class="pl-c1">src/lib.rs:20 current : Option&lt;&amp;'a State&lt;'a&gt;&gt;,</span> <span class="pl-c1"> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span> <span class="pl-c1">src/lib.rs:21:5: 21:16 warning: struct field is never used: `data`, #[warn(dead_code)] on by default</span> <span class="pl-c1">src/lib.rs:21 data : Data,</span> <span class="pl-c1"> ^~~~~~~~~~~</span> <span class="pl-c1">src/lib.rs:26:5: 32:6 warning: method is never used: `start`, #[warn(dead_code)] on by default</span> <span class="pl-c1">src/lib.rs:26 pub fn start(&amp;mut self) {</span> <span class="pl-c1">src/lib.rs:27 match self.current {</span> <span class="pl-c1">src/lib.rs:28 None =&gt; panic!("Ola !"),</span> <span class="pl-c1">src/lib.rs:29 Some(current) =&gt; {(current.f)(&amp;mut self.data, &amp;Event::ENTRY);},</span> <span class="pl-c1">src/lib.rs:30 }</span> <span class="pl-c1">src/lib.rs:31 </span> <span class="pl-c1"> ...</span> <span class="pl-c1">src/lib.rs:34:5: 36:6 warning: method is never used: `event`, #[warn(dead_code)] on by default</span> <span class="pl-c1">src/lib.rs:34 pub fn event(&amp;mut self,event : Event) {</span> <span class="pl-c1">src/lib.rs:35 let signal = (self.current.unwrap().f)(&amp;mut self.data, &amp;event);</span> <span class="pl-c1">src/lib.rs:36 }</span> <span class="pl-c1">src/lib.rs:35:13: 35:19 warning: unused variable: `signal`, #[warn(unused_variables)] on by default</span> <span class="pl-c1">src/lib.rs:35 let signal = (self.current.unwrap().f)(&amp;mut self.data, &amp;event);</span> <span class="pl-c1"> ^~~~~~</span> <span class="pl-c1">error: internal compiler error: unexpected panic</span> <span class="pl-c1">note: the compiler unexpectedly panicked. this is a bug.</span> <span class="pl-c1">note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports</span> <span class="pl-c1">note: run with `RUST_BACKTRACE=1` for a backtrace</span> <span class="pl-c1">thread 'rustc' panicked at 'Unexpected type returned from struct_tail: Signal for ty=Signal', /home/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-linux/build/src/librustc_trans/trans/type_of.rs:366</span> <span class="pl-c1">stack backtrace:</span> <span class="pl-c1"> 1: 0x7f4a6dfdf529 - sys::backtrace::write::ha3b8868b13c6f5b594r</span> <span class="pl-c1"> 2: 0x7f4a6dfe7449 - panicking::on_panic::h0d4f0a7bb69824a9iJw</span> <span class="pl-c1"> 3: 0x7f4a6dfa8242 - rt::unwind::begin_unwind_inner::h6eae1ff9ccde81e1sow</span> <span class="pl-c1"> 4: 0x7f4a6dfa8fd7 - rt::unwind::begin_unwind_fmt::h1b64aa0dc7f97d91ynw</span> <span class="pl-c1"> 5: 0x7f4a6cd84041 - trans::type_of::in_memory_type_of::h8394fa8ab4d78a04xNL</span> <span class="pl-c1"> 6: 0x7f4a6ce4c42f - trans::type_of::type_of_rust_fn::hd912a43908d09915gBL</span> <span class="pl-c1"> 7: 0x7f4a6cd9092b - trans::declare::declare_rust_fn::h9be6db25c327fe6dRNz</span> <span class="pl-c1"> 8: 0x7f4a6cea5442 - trans::meth::trans_object_shim::hb599a1c833cfc4e8BwJ</span> <span class="pl-c1"> 9: 0x7f4a6cdee7a8 - trans::meth::trans_method_callee::hccc5b8b91d6ac958o2I</span> <span class="pl-c1"> 10: 0x7f4a6ce6f845 - trans::callee::trans_call_inner::h3335664676729396018</span> <span class="pl-c1"> 11: 0x7f4a6ce4fc13 - trans::expr::trans_rvalue_dps_unadjusted::h6f98c3ba8230a493FkB</span> <span class="pl-c1"> 12: 0x7f4a6ce245dc - trans::expr::trans_into::h5caadbac159cf74aXaA</span> <span class="pl-c1"> 13: 0x7f4a6ce2414a - trans::controlflow::trans_stmt_semi::h1d1c29c8dbdd3907D2u</span> <span class="pl-c1"> 14: 0x7f4a6cda84ba - trans::controlflow::trans_block::he9bca081d3f8c1c7z3u</span> <span class="pl-c1"> 15: 0x7f4a6ce4e45d - trans::expr::trans_rvalue_dps_unadjusted::h6f98c3ba8230a493FkB</span> <span class="pl-c1"> 16: 0x7f4a6ce245dc - trans::expr::trans_into::h5caadbac159cf74aXaA</span> <span class="pl-c1"> 17: 0x7f4a6ce8b007 - trans::_match::trans_match_inner::h57034bb4c897c3296uI</span> <span class="pl-c1"> 18: 0x7f4a6ce4e425 - trans::expr::trans_rvalue_dps_unadjusted::h6f98c3ba8230a493FkB</span> <span class="pl-c1"> 19: 0x7f4a6ce245dc - trans::expr::trans_into::h5caadbac159cf74aXaA</span> <span class="pl-c1"> 20: 0x7f4a6cda8806 - trans::controlflow::trans_block::he9bca081d3f8c1c7z3u</span> <span class="pl-c1"> 21: 0x7f4a6cda7121 - trans::base::trans_closure::h502004b16ea01ff9jHh</span> <span class="pl-c1"> 22: 0x7f4a6cda8dfa - trans::base::trans_fn::h5f2be6a1df79e5691Rh</span> <span class="pl-c1"> 23: 0x7f4a6cdac652 - trans::base::trans_item::hfa0f4f4b559a2855dgi</span> <span class="pl-c1"> 24: 0x7f4a6cdb9a32 - trans::base::trans_crate::hf005d8f63d50ea8004i</span> <span class="pl-c1"> 25: 0x7f4a6e537466 - driver::phase_4_translate_to_llvm::h86819ae7902c932bnOa</span> <span class="pl-c1"> 26: 0x7f4a6e513266 - driver::compile_input::h6e596544d26b4394Qba</span> <span class="pl-c1"> 27: 0x7f4a6e5c9041 - run_compiler::haa6c0289fab7415475b</span> <span class="pl-c1"> 28: 0x7f4a6e5c6892 - boxed::F.FnBox&lt;A&gt;::call_box::h10721825727138786690</span> <span class="pl-c1"> 29: 0x7f4a6e5c5e59 - rt::unwind::try::try_fn::h6014602198652783625</span> <span class="pl-c1"> 30: 0x7f4a6e05fb58 - rust_try_inner</span> <span class="pl-c1"> 31: 0x7f4a6e05fb45 - rust_try</span> <span class="pl-c1"> 32: 0x7f4a6e5c60f4 - boxed::F.FnBox&lt;A&gt;::call_box::h5510246712457526188</span> <span class="pl-c1"> 33: 0x7f4a6dfe61e1 - sys::thread::Thread::new::thread_start::h11fbc90f6ba541f9zvv</span> <span class="pl-c1"> 34: 0x7f4a68877ee4 - start_thread</span> <span class="pl-c1"> 35: 0x7f4a6dc29d1c - clone</span> <span class="pl-c1"> 36: 0x0 - &lt;unknown&gt;</span> <span class="pl-c1">Could not compile `hello_world`.</span> <span class="pl-c1">Caused by:</span> <span class="pl-c1"> Process didn't exit successfully: `rustc src/lib.rs --crate-name hello_world --crate-type lib -g --out-dir /home/miK/workspaces/Rust/bug/target/debug --emit=dep-info,link -L dependency=/home/miK/workspaces/Rust/bug/target/debug -L dependency=/home/miK/workspaces/Rust/bug/target/debug/deps` (exit code: 101)</span></pre></div> <p dir="auto">Metadata</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[miK@i5760-miK bug]$ rustc --verbose --version rustc 1.1.0 (35ceea399 2015-06-19) binary: rustc commit-hash: 35ceea3997c79a3b7562e89b462ab76af5b86b22 commit-date: 2015-06-19 host: x86_64-unknown-linux-gnu release: 1.1.0"><pre class="notranslate"><span class="pl-e">[miK@i5760-miK bug]</span>$ <span class="pl-s1">rustc --verbose --version</span> <span class="pl-c1">rustc 1.1.0 (35ceea399 2015-06-19)</span> <span class="pl-c1">binary: rustc</span> <span class="pl-c1">commit-hash: 35ceea3997c79a3b7562e89b462ab76af5b86b22</span> <span class="pl-c1">commit-date: 2015-06-19</span> <span class="pl-c1">host: x86_64-unknown-linux-gnu</span> <span class="pl-c1">release: 1.1.0</span></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum Foo { Bar(int, [int]), } fn main() { // Either of these lines can cause the ICE let _x: &amp;(int, [int]); let _y: &amp;Foo; }"><pre class="notranslate"><span class="pl-k">enum</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-v">Bar</span><span class="pl-kos">(</span><span class="pl-smi">int</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-smi">int</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-c">// Either of these lines can cause the ICE</span> <span class="pl-k">let</span> _x<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-kos">(</span><span class="pl-smi">int</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-smi">int</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> _y<span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-smi">Foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Backtrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1: 0x7f2a127e8580 - rt::backtrace::imp::write::h0180e7ded76a3ff2c0q 2: 0x7f2a127eb770 - failure::on_fail::h3f169393c89b5f90Tlr 3: 0x7f2a12fd24f0 - unwind::begin_unwind_inner::haeb9517b5061bc86Zie 4: 0x7f2a133ad670 - unwind::begin_unwind::h17017358962417336117 5: 0x7f2a13803a20 - middle::ty::unsized_part_of_type::h8eae6d239e9b7af3tnG 6: 0x7f2a138037c0 - middle::trans::type_of::type_of::type_of_unsize_info::h67819f63aa2acfb5Xh9 7: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 8: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 9: 0x7f2a137b0860 - middle::trans::base::alloc_ty::h5485998eeb61d023mTd 10: 0x7f2a13859870 - middle::trans::_match::mk_binding_alloca::h11628361498234501597 11: 0x7f2a1385bdf0 - middle::trans::_match::store_local::create_dummy_locals::closure.119283 12: 0x7f2a13681560 - middle::pat_util::pat_bindings::closure.112016 13: 0x7f2a0ea1ccb0 - ast_util::walk_pat::hc858153057fb5965oRB 14: 0x7f2a138205f0 - middle::trans::_match::store_local::h9195017fe21b4124A2h 15: 0x7f2a13772d10 - middle::trans::base::init_local::h5e8a493dc2ae05b1WFd 16: 0x7f2a13772220 - middle::trans::controlflow::trans_stmt::hf26d5cee55a6056blhY 17: 0x7f2a13773c40 - middle::trans::controlflow::trans_block::h004dea36138a75c8wmY 18: 0x7f2a13829560 - middle::trans::base::trans_closure::h655acfc433ac13fevye 19: 0x7f2a13764670 - middle::trans::base::trans_fn::hf0a444fa9ff43aebiKe 20: 0x7f2a1375f9b0 - middle::trans::base::trans_item::hda4d4160cb2b58dfi2e 21: 0x7f2a138341f0 - middle::trans::base::trans_crate::hff0f87c98e6356c8JWf 22: 0x7f2a13c058d0 - driver::driver::phase_4_translate_to_llvm::h8223ee9d7ab4951cpzy 23: 0x7f2a13bfd280 - driver::driver::compile_input::hfa4fd95c9e6a2ceeQby 24: 0x7f2a13c8f0a0 - driver::run_compiler::h32bdccca6ed9465cJIB 25: 0x7f2a13c8efb0 - driver::main_args::closure.138206 26: 0x7f2a13ca1240 - task::TaskBuilder&lt;S&gt;::try_future::closure.139324 27: 0x7f2a13ca1040 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.139301 28: 0x7f2a146dcf10 - task::spawn_opts::closure.8369 29: 0x7f2a1302af90 - rust_try_inner 30: 0x7f2a1302af80 - rust_try 31: 0x7f2a12fcfb20 - unwind::try::h03d8d1d4cb0de0c1f7d 32: 0x7f2a12fcf8e0 - task::Task::run::hafab6bcab45e61e5zdd 33: 0x7f2a146dcc70 - task::spawn_opts::closure.8315 34: 0x7f2a12fd16e0 - thread::thread_start::hba588af1f803bb5blCd 35: 0x7f2a1227f0c0 - start_thread 36: 0x7f2a12c99359 - __clone 37: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate"> 1: 0x7f2a127e8580 - rt::backtrace::imp::write::h0180e7ded76a3ff2c0q 2: 0x7f2a127eb770 - failure::on_fail::h3f169393c89b5f90Tlr 3: 0x7f2a12fd24f0 - unwind::begin_unwind_inner::haeb9517b5061bc86Zie 4: 0x7f2a133ad670 - unwind::begin_unwind::h17017358962417336117 5: 0x7f2a13803a20 - middle::ty::unsized_part_of_type::h8eae6d239e9b7af3tnG 6: 0x7f2a138037c0 - middle::trans::type_of::type_of::type_of_unsize_info::h67819f63aa2acfb5Xh9 7: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 8: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9 9: 0x7f2a137b0860 - middle::trans::base::alloc_ty::h5485998eeb61d023mTd 10: 0x7f2a13859870 - middle::trans::_match::mk_binding_alloca::h11628361498234501597 11: 0x7f2a1385bdf0 - middle::trans::_match::store_local::create_dummy_locals::closure.119283 12: 0x7f2a13681560 - middle::pat_util::pat_bindings::closure.112016 13: 0x7f2a0ea1ccb0 - ast_util::walk_pat::hc858153057fb5965oRB 14: 0x7f2a138205f0 - middle::trans::_match::store_local::h9195017fe21b4124A2h 15: 0x7f2a13772d10 - middle::trans::base::init_local::h5e8a493dc2ae05b1WFd 16: 0x7f2a13772220 - middle::trans::controlflow::trans_stmt::hf26d5cee55a6056blhY 17: 0x7f2a13773c40 - middle::trans::controlflow::trans_block::h004dea36138a75c8wmY 18: 0x7f2a13829560 - middle::trans::base::trans_closure::h655acfc433ac13fevye 19: 0x7f2a13764670 - middle::trans::base::trans_fn::hf0a444fa9ff43aebiKe 20: 0x7f2a1375f9b0 - middle::trans::base::trans_item::hda4d4160cb2b58dfi2e 21: 0x7f2a138341f0 - middle::trans::base::trans_crate::hff0f87c98e6356c8JWf 22: 0x7f2a13c058d0 - driver::driver::phase_4_translate_to_llvm::h8223ee9d7ab4951cpzy 23: 0x7f2a13bfd280 - driver::driver::compile_input::hfa4fd95c9e6a2ceeQby 24: 0x7f2a13c8f0a0 - driver::run_compiler::h32bdccca6ed9465cJIB 25: 0x7f2a13c8efb0 - driver::main_args::closure.138206 26: 0x7f2a13ca1240 - task::TaskBuilder&lt;S&gt;::try_future::closure.139324 27: 0x7f2a13ca1040 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.139301 28: 0x7f2a146dcf10 - task::spawn_opts::closure.8369 29: 0x7f2a1302af90 - rust_try_inner 30: 0x7f2a1302af80 - rust_try 31: 0x7f2a12fcfb20 - unwind::try::h03d8d1d4cb0de0c1f7d 32: 0x7f2a12fcf8e0 - task::Task::run::hafab6bcab45e61e5zdd 33: 0x7f2a146dcc70 - task::spawn_opts::closure.8315 34: 0x7f2a12fd16e0 - thread::thread_start::hba588af1f803bb5blCd 35: 0x7f2a1227f0c0 - start_thread 36: 0x7f2a12c99359 - __clone 37: 0x0 - &lt;unknown&gt; </code></pre></div> <p dir="auto">This seems to occur when using a non-struct type that contains an unsized type. This is probably because <a href="https://github.com/rust-lang/rust/blob/7932b719ec2b65acfa8c3e74aad29346d47ee992/src/librustc/middle/ty.rs#L2938-L2956"><code class="notranslate">unsized_part_of_type</code></a> only handles <code class="notranslate">ty_struct</code> and the base unsized types. This should be extended to handle enums and tuples as well.</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/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: windows7</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>Register services into two different groups<br> &lt;dubbo:registry address="nacos://localhost:8848" group="group-dev-1"/&gt;<br> &lt;dubbo:registry address="nacos://localhost:8848" group="group-dev-2"/&gt;</li> <li>Groups are invalid and services are transferred to each other.</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">I want the same service to be registered in different groupings, and service invocations are isolated, rather than invoking each other.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Different groupings, Dubbo consumption call or the same service, did not achieve service grouping isolation</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/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.4-SNAPSHOT</li> <li>Operating System version: MacOS</li> <li>Java version: java11</li> </ul> <h3 dir="auto">Problems</h3> <p dir="auto">1.When we create a application level condition router, we must set the application with the <strong>provider application</strong>'s name, because dubbo-admin will query if the application have exported service.</p> <p dir="auto">2.But the router is used by <strong>consumer application</strong>, so the consumer application will use its application name to query router rules. So the rules will not be queried and executed.</p> <p dir="auto">I think the solution can be:<br> When we configure config-center in consumer application, can add a parameter called '<strong>router.apps</strong>' or any other.<br> the value of router.apps should be <strong>several provider application names</strong>. When get different provider application router rules, we need to <strong>split the router.apps value</strong> add query each other's router rules.</p>
0
<p dir="auto"><strong>Overview</strong></p> <p dir="auto">At this time, there is no mechanism for socket types outside of the standard library to access the runtime network poller. This proposal, if accepted, would enable a resolution to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="70575026" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/10565" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/10565/hovercard" href="https://github.com/golang/go/issues/10565">#10565</a>. This would enable packages outside of the standard library to take advantage of the runtime network poller, instead of implementing their own network polling mechanism.</p> <p dir="auto"><strong>Proposed Change</strong></p> <p dir="auto">I propose adding a new API to package <code class="notranslate">net</code> which enables registration of arbitrary sockets for use with the runtime network poller. The design of this API is based upon a comment from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rsc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rsc">@rsc</a> found here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="92230176" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/11492" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/11492/hovercard?comment_id=117855313&amp;comment_type=issue_comment" href="https://github.com/golang/go/issues/11492#issuecomment-117855313">#11492 (comment)</a>.</p> <blockquote> <p dir="auto">It seems to me that the net package should just keep using (and providing) only FileConn but perhaps we can put a registration mechanism in package syscall to let clients register converters between sockaddrs and net.Addr for non-standard sockaddr types.</p> </blockquote> <p dir="auto">This is what I was able to come up with after a little bit of experimentation. Parameter list is to be determined, but this is what I was able to get working with my prototype on a Linux system. Efforts will be made to make this mechanism as generic and cross-platform friendly as possible, but it may not be implemented immediately on non-UNIX platforms. From what I can tell, <code class="notranslate">syscall.Sockaddr</code> does appear to be available on all platforms.</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package net // Registration mechanism, perhaps called in init() or main() when a // socket is first initalized. func RegisterSocket( family int, sockaddr syscall.Sockaddr, addr Addr, convertSockaddr func(syscall.Sockaddr) Addr, convertNetAddr func(Addr) syscall.Sockaddr, ) // Generic net.Conn and net.PacketConn implementation which embeds the // internal net.conn type. Checks for registered socket hooks to determine // validity of sent and received net.Addr implementations. type SocketConn struct { conn }"><pre class="notranslate"><span class="pl-k">package</span> net <span class="pl-c">// Registration mechanism, perhaps called in init() or main() when a</span> <span class="pl-c">// socket is first initalized.</span> <span class="pl-k">func</span> <span class="pl-en">RegisterSocket</span>( <span class="pl-s1">family</span> <span class="pl-smi">int</span>, <span class="pl-s1">sockaddr</span> syscall.<span class="pl-smi">Sockaddr</span>, <span class="pl-s1">addr</span> <span class="pl-smi">Addr</span>, <span class="pl-s1">convertSockaddr</span> <span class="pl-k">func</span>(syscall.<span class="pl-smi">Sockaddr</span>) <span class="pl-smi">Addr</span>, <span class="pl-s1">convertNetAddr</span> <span class="pl-k">func</span>(<span class="pl-smi">Addr</span>) syscall.<span class="pl-smi">Sockaddr</span>, ) <span class="pl-c">// Generic net.Conn and net.PacketConn implementation which embeds the</span> <span class="pl-c">// internal net.conn type. Checks for registered socket hooks to determine</span> <span class="pl-c">// validity of sent and received net.Addr implementations.</span> <span class="pl-k">type</span> <span class="pl-smi">SocketConn</span> <span class="pl-k">struct</span> { <span class="pl-smi">conn</span> }</pre></div> <p dir="auto"><strong>Example</strong></p> <p dir="auto">Using a modified version of package <code class="notranslate">net</code>, I was able to gain access to the runtime network poller and<br> simplify my <a href="https://github.com/mdlayher/raw">raw sockets package</a> code to something like the following:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Called in init() in package raw net.RegisterSocket( syscall.AF_PACKET, &amp;syscall.SockaddrLinklayer{}, &amp;Addr{}, // internal conversion functions for syscall.SockaddrLinklayer &lt;-&gt; raw.Addr convertSockaddr, convertNetAddr, ) sock, _ := syscall.Socket(syscall.AF_PACKET, syscall.SOCK_RAW, proto) _ = syscall.Bind(sock, &amp;syscall.SockaddrLinklayer{ Protocol: pbe, Ifindex: ifi.Index, }) f := os.NewFile(uintptr(sock), &quot;linklayer&quot;) // c is type net.SocketConn, backed by raw socket (uses raw.Addr for addressing) c := net.FilePacketConn(f)"><pre class="notranslate"><span class="pl-c">// Called in init() in package raw</span> <span class="pl-s1">net</span>.<span class="pl-en">RegisterSocket</span>( <span class="pl-s1">syscall</span>.<span class="pl-c1">AF_PACKET</span>, <span class="pl-c1">&amp;</span>syscall.<span class="pl-smi">SockaddrLinklayer</span>{}, <span class="pl-c1">&amp;</span><span class="pl-smi">Addr</span>{}, <span class="pl-c">// internal conversion functions for syscall.SockaddrLinklayer &lt;-&gt; raw.Addr</span> <span class="pl-s1">convertSockaddr</span>, <span class="pl-s1">convertNetAddr</span>, ) <span class="pl-s1">sock</span>, <span class="pl-s1">_</span> <span class="pl-c1">:=</span> <span class="pl-s1">syscall</span>.<span class="pl-en">Socket</span>(<span class="pl-s1">syscall</span>.<span class="pl-c1">AF_PACKET</span>, <span class="pl-s1">syscall</span>.<span class="pl-c1">SOCK_RAW</span>, <span class="pl-s1">proto</span>) <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">syscall</span>.<span class="pl-en">Bind</span>(<span class="pl-s1">sock</span>, <span class="pl-c1">&amp;</span>syscall.<span class="pl-smi">SockaddrLinklayer</span>{ <span class="pl-c1">Protocol</span>: <span class="pl-s1">pbe</span>, <span class="pl-c1">Ifindex</span>: <span class="pl-s1">ifi</span>.<span class="pl-c1">Index</span>, }) <span class="pl-s1">f</span> <span class="pl-c1">:=</span> <span class="pl-s1">os</span>.<span class="pl-en">NewFile</span>(<span class="pl-en">uintptr</span>(<span class="pl-s1">sock</span>), <span class="pl-s">"linklayer"</span>) <span class="pl-c">// c is type net.SocketConn, backed by raw socket (uses raw.Addr for addressing)</span> <span class="pl-s1">c</span> <span class="pl-c1">:=</span> <span class="pl-s1">net</span>.<span class="pl-en">FilePacketConn</span>(<span class="pl-s1">f</span>)</pre></div> <p dir="auto"><strong>Summary</strong></p> <p dir="auto">The runtime network poller is an excellent mechanism, and enabling access to it will allow the future development of packages for raw ethernet sockets, netlink sockets, and other platform-specific socket types.</p> <p dir="auto">If this proposal is accepted, I'd happily seek guidance from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikioh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikioh">@mikioh</a> regarding creating the best possible API for this feature. In addition, this would enable me to contribute code from my raw ethernet socket package as a resolution to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51288188" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/8432" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/8432/hovercard" href="https://github.com/golang/go/issues/8432">#8432</a>.</p> <p dir="auto">Questions and comments appreciated, and thanks for your time.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rsc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rsc">@rsc</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikioh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikioh">@mikioh</a></p>
<pre class="notranslate">Even though the 386 has a 4-byte word size, some instructions move data in larger chunks. In particular float64 loads move 8 bytes and some SSE2 operations (as yet unused) move even larger amounts. A float64 load from an only-4-byte-aligned address is significantly more expensive than one from a 8-byte-aligned address. The same is probably true of SSE2 too. We should make sure that data symbols &gt;32 bits (e.g., float64 constants) are aligned on 8-byte boundaries in the data segment. (Fairly easy.) We should also make sure that the stack pointer can be relied upon to be 8-byte aligned (harder), by making stack frame sizes = -4 mod 8 (the caller PC will add 4 more) and starting new goroutines with a properly aligned stack pointer. It might be worth using 16 bytes for the stack alignment. OS X requires that for their own ABI, presumably because it matters for SSE2.</pre>
0
<p dir="auto">still cant write any "@"</p> <p dir="auto">what is so dificult to change that? i know 2 types of keyboards... the ones with the @ on the number key "2" and the one with the "@" on the "Q"</p> <p dir="auto">you just have to remove the shortcut on alt(right) + "Q"</p> <p dir="auto">you CANT work with atom in EUROPE!!! the keyboards in europe have the @ on the "Q"-key</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">The browserplugin object width expands as expected when is used within a flexbox layout, but the height stays fixed at 150px - the height of the browserplugin object should also expand to the height of the parent .</p> <ul dir="auto"> <li>Electron version: 0.36.9</li> <li>Operating system: Windows 7 x64, Windows 10 x64</li> </ul>
<p dir="auto">A webview's object node doesn't get stretched vertically when the webview is part of a flexbox.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f16a21e8d1725050af0d281f09891b23459085ca12b514ad3a37fc13b346e130/687474703a2f2f7075752e73682f6d63784d6a2f623466326533633064332e706e67"><img src="https://camo.githubusercontent.com/f16a21e8d1725050af0d281f09891b23459085ca12b514ad3a37fc13b346e130/687474703a2f2f7075752e73682f6d63784d6a2f623466326533633064332e706e67" alt="Webview is full size" data-canonical-src="http://puu.sh/mcxMj/b4f2e3c0d3.png" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/aac6eae6bc302e3d21d5353591f831e560db18014b40d73cc5de89cdfa806a8e/687474703a2f2f7075752e73682f6d637858342f653232303832383830322e706e67"><img src="https://camo.githubusercontent.com/aac6eae6bc302e3d21d5353591f831e560db18014b40d73cc5de89cdfa806a8e/687474703a2f2f7075752e73682f6d637858342f653232303832383830322e706e67" alt="Object node isn't full size of webview" data-canonical-src="http://puu.sh/mcxX4/e220828802.png" style="max-width: 100%;"></a><br> (the images show a different bug also: the webview is obviously being cut off at the bottom. this fixes itself upon resizing the window.)</p> <p dir="auto">I was able to fix this by adding <code class="notranslate">display: flex</code> to the webview and disabling the <code class="notranslate">height: 100%;</code> of the object node, except that was using dev tools. I can't find a way to style the object node (neither JS nor CSS seem to be ways to get to it) so this isn't a real solution.</p> <p dir="auto">That given, the only solution I can think of is being able to access the object node via JS. Even if it is annoying to have to set styling w/ JS, it'd still be a fair workaround.</p> <p dir="auto">I'm using v0.36.1 on WIndows 7, for any help that could (somehow) be.</p> <p dir="auto">It's not hard to replicate, and nothing else affects it outside of the html document and styling, so here's a document (just setup the quick start app using this for the page) that showcases this.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;style&gt; html, body { margin: 0; width: 100%; height: 100%; } .container { height: 100%; display: flex; flex-flow: column; } webview { flex: 1 1 auto; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class='container'&gt; &lt;webview src='https://www.google.com/'&gt;&lt;/webview&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; "><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">html</span><span class="pl-kos">,</span> <span class="pl-ent">body</span> { <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">0</span>; <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">%</span></span>; <span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">%</span></span>; } .<span class="pl-c1">container</span> { <span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">%</span></span>; <span class="pl-c1">display</span><span class="pl-kos">:</span> flex; <span class="pl-c1">flex-flow</span><span class="pl-kos">:</span> column; } <span class="pl-ent">webview</span> { <span class="pl-c1">flex</span><span class="pl-kos">:</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> auto; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>='<span class="pl-s">container</span>'<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>='<span class="pl-s">https://www.google.com/</span>'<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">Given the typescript:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let impl: I = { a: 12, explicitVoid2: () =&gt; this.a, // ok, this: any because it refers to some outer object (window?) explicitVoid1() { return 12; }, explicitStructural() { return this.a; }, explicitInterface() { return this.a; }, explicitThis() { return this.a; }, }"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">impl</span>: <span class="pl-smi">I</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-c1">12</span><span class="pl-kos">,</span> <span class="pl-en">explicitVoid2</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">,</span> <span class="pl-c">// ok, this: any because it refers to some outer object (window?)</span> <span class="pl-en">explicitVoid1</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">12</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitStructural</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-c1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitInterface</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-c1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitThis</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-c1">a</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">Expected:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var impl = { a: 12, explicitVoid2: function () { return _this.a; }, explicitVoid1: function () { return 12; }, explicitStructural: function () { return this.a; }, explicitInterface: function () { return this.a; }, explicitThis: function () { return this.a; } };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">impl</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-c1">12</span><span class="pl-kos">,</span> <span class="pl-en">explicitVoid2</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">_this</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitVoid1</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-c1">12</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitStructural</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-c1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitInterface</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-c1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitThis</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-c1">a</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">Actual:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var impl = { a: 12, explicitVoid2: function () { return _this.a; }, explicitVoid1: // ok, this: any because it refers to some outer object (window?) function () { return 12; }, explicitStructural: function () { return this.a; }, explicitInterface: function () { return this.a; }, explicitThis: function () { return this.a; } };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">impl</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">a</span>: <span class="pl-c1">12</span><span class="pl-kos">,</span> <span class="pl-en">explicitVoid2</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">_this</span><span class="pl-kos">.</span><span class="pl-c1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitVoid1</span>: <span class="pl-c">// ok, this: any because it refers to some outer object (window?)</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-c1">12</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitStructural</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-c1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitInterface</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-c1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">explicitThis</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-c1">a</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">Test failures:</p> <ol dir="auto"> <li>thisTypeInFunctions</li> <li>others?</li> </ol>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.0</p> <p dir="auto"><strong>Code</strong></p> <p dir="auto">create project. create ASP.NET Web Application. create asp.net 5 empty website. create scripts folder in solution. create app folder in wwwroot. create typescript file. create tsconfig.json in scripts folder and build:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;noImplicitAny&quot;: false, &quot;noEmitOnError&quot;: true, &quot;removeComments&quot;: false, &quot;sourceMap&quot;: true, &quot;target&quot;: &quot;es5&quot;, &quot;module&quot;: &quot;commonjs&quot;, &quot;outDir&quot;: &quot;../wwwroot/app/&quot;, &quot;experimentalDecorators&quot;: true, &quot;emitDecoratorMetadata&quot;: true }, &quot;exclude&quot;: [ &quot;node_modules&quot;, &quot;wwwroot&quot; ] }"><pre class="notranslate">{ <span class="pl-ent">"compilerOptions"</span>: { <span class="pl-ent">"noImplicitAny"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"noEmitOnError"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"removeComments"</span>: <span class="pl-c1">false</span>, <span class="pl-ent">"sourceMap"</span>: <span class="pl-c1">true</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>commonjs<span class="pl-pds">"</span></span>, <span class="pl-ent">"outDir"</span>: <span class="pl-s"><span class="pl-pds">"</span>../wwwroot/app/<span class="pl-pds">"</span></span>, <span class="pl-ent">"experimentalDecorators"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"emitDecoratorMetadata"</span>: <span class="pl-c1">true</span> }, <span class="pl-ent">"exclude"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>wwwroot<span class="pl-pds">"</span></span> ] }</pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> I expect this to build with no errors. What is strange is that this works in Windows 10 but not on my Windows 7 machine with the same set up (Visual studio 2015, update 1, update 2 rc). When you look at the error it is displaying an incorrect path: tsconfig.json/tsconfig.json. It seems to think there is a folder tsconfig.json when there is not. I have ran the tsconfig contents through a json validator to make sure it is correct.</p> <p dir="auto"><strong>Actual behavior:</strong></p> <blockquote> <p dir="auto">Error TS5014 Build: Failed to parse file 'C:/Users/Documents/Visual Studio 2015/Projects/CNAClient/src/CNAClient/scripts/tsconfig.json/tsconfig.json': Invalid character. CNAClient C:\Users\Documents\Visual Studio 2015\Projects\CNAClient\src\CNAClient\VSTSC 1</p> </blockquote>
0
<p dir="auto">Hi all,</p> <p dir="auto">I'm trying to add a RaisedButton in the container, however I'm getting below exception.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[{&quot;event&quot;:&quot;app.progress&quot;,&quot;params&quot;:{&quot;appId&quot;:&quot;9d38bcd5-7d0a-4cfe-a121-20c0dff4c237&quot;,&quot;id&quot;:&quot;10&quot;,&quot;progressId&quot;:&quot;hot.reload&quot;,&quot;message&quot;:&quot;Performing hot reload...&quot;}}]Performing hot reload... Syncing files to device Android SDK built for x86... I/flutter ( 5093): ══║ EXCEPTION CAUGHT BY WIDGETS LIBRARY β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• I/flutter ( 5093): The following _CompileTimeError was thrown building MyApp(dirty): I/flutter ( 5093): 'file:///D:/LearningMaterials/Flutter/udemy_learningapp/lib/main.dart': error: Unexpected tag 128 I/flutter ( 5093): (SpecializedVariableGet) in ?, expected a procedure, a constructor or a function node I/flutter ( 5093): When the exception was thrown, this was the stack: I/flutter ( 5093): #0 StatelessElement.build (package:flutter/src/widgets/framework.dart:3731:28) I/flutter ( 5093): #1 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3678:15) I/flutter ( 5093): #2 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter ( 5093): #3 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2273:33) I/flutter ( 5093): #4 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:673:20) I/flutter ( 5093): #5 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter ( 5093): #6 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter ( 5093): #7 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter ( 5093): #8 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) I/flutter ( 5093): #10 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) I/flutter ( 5093): #11 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) I/flutter ( 5093): #12 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) I/flutter ( 5093): (elided one frame from package dart:async) I/flutter ( 5093): ════════════════════════════════════════════════════════════════════════════════════════════════════ Reloaded 1 of 412 libraries in 969ms."><pre class="notranslate"><code class="notranslate">[{"event":"app.progress","params":{"appId":"9d38bcd5-7d0a-4cfe-a121-20c0dff4c237","id":"10","progressId":"hot.reload","message":"Performing hot reload..."}}]Performing hot reload... Syncing files to device Android SDK built for x86... I/flutter ( 5093): ══║ EXCEPTION CAUGHT BY WIDGETS LIBRARY β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• I/flutter ( 5093): The following _CompileTimeError was thrown building MyApp(dirty): I/flutter ( 5093): 'file:///D:/LearningMaterials/Flutter/udemy_learningapp/lib/main.dart': error: Unexpected tag 128 I/flutter ( 5093): (SpecializedVariableGet) in ?, expected a procedure, a constructor or a function node I/flutter ( 5093): When the exception was thrown, this was the stack: I/flutter ( 5093): #0 StatelessElement.build (package:flutter/src/widgets/framework.dart:3731:28) I/flutter ( 5093): #1 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3678:15) I/flutter ( 5093): #2 Element.rebuild (package:flutter/src/widgets/framework.dart:3531:5) I/flutter ( 5093): #3 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2273:33) I/flutter ( 5093): #4 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:673:20) I/flutter ( 5093): #5 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5) I/flutter ( 5093): #6 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) I/flutter ( 5093): #7 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) I/flutter ( 5093): #8 _WidgetsFlutterBinding&amp;BindingBase&amp;GestureBinding&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) I/flutter ( 5093): #10 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) I/flutter ( 5093): #11 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) I/flutter ( 5093): #12 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) I/flutter ( 5093): (elided one frame from package dart:async) I/flutter ( 5093): ════════════════════════════════════════════════════════════════════════════════════════════════════ Reloaded 1 of 412 libraries in 969ms. </code></pre></div>
<p dir="auto">Low priority</p> <h2 dir="auto">Environment</h2> <p dir="auto">Flutter (Channel master, v0.2.5-pre.396, on Microsoft Windows [Version 10.0.17134.48], locale en-US)<br> Android things 8.1.0<br> Board: NXP i.MX7D</p> <h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">When building a release build for Android Things Dart will crash due to an incompatible VM configuration error. Debug builds work fine but are extremely slow.</p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="05-18 10:20:21.906 1928-1928/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'Things/iot_imx7d_pico/imx7d_pico:8.1.0/OIM1.180327.036/4760714:userdebug/dev-keys' 05-18 10:20:21.907 1928-1928/? A/DEBUG: Revision: '0' ABI: 'arm' pid: 1902, tid: 1902, name: [omitted] &gt;&gt;&gt; [omitted] &lt;&lt;&lt; signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 05-18 10:20:21.912 1928-1928/? A/DEBUG: Abort message: '[FATAL:flutter/runtime/dart_vm.cc(413)] Error while initializing the Dart VM: Snapshot not compatible with the current VM configuration: the snapshot requires 'product no-type_checks no-asserts no-error_on_bad_type no-error_on_bad_override arm-eabi hardfp' but the VM has 'product no-type_checks no-asserts no-error_on_bad_type no-error_on_bad_override arm-eabi softfp' ' r0 00000000 r1 0000076e r2 00000006 r3 00000008 r4 0000076e r5 0000076e r6 be984cdc r7 0000010c r8 00000000 r9 be984e24 sl a47be310 fp a47be300 ip 8e088239 sp be984cc8 lr a51b29f7 pc a51ac428 cpsr 200f0030 05-18 10:20:21.924 1928-1928/? A/DEBUG: backtrace: #00 pc 0001a428 /system/lib/libc.so (abort+63) #01 pc 0014efab /data/app/[omitted]--SMXeEezHwIfOxBFVkjgmw==/lib/arm/libflutter.so &lt;lots more of those&gt; #15 pc 000022f1 /data/app/[omitted]--SMXeEezHwIfOxBFVkjgmw==/oat/arm/base.odex (offset 0x2000)"><pre class="notranslate"><code class="notranslate">05-18 10:20:21.906 1928-1928/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'Things/iot_imx7d_pico/imx7d_pico:8.1.0/OIM1.180327.036/4760714:userdebug/dev-keys' 05-18 10:20:21.907 1928-1928/? A/DEBUG: Revision: '0' ABI: 'arm' pid: 1902, tid: 1902, name: [omitted] &gt;&gt;&gt; [omitted] &lt;&lt;&lt; signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 05-18 10:20:21.912 1928-1928/? A/DEBUG: Abort message: '[FATAL:flutter/runtime/dart_vm.cc(413)] Error while initializing the Dart VM: Snapshot not compatible with the current VM configuration: the snapshot requires 'product no-type_checks no-asserts no-error_on_bad_type no-error_on_bad_override arm-eabi hardfp' but the VM has 'product no-type_checks no-asserts no-error_on_bad_type no-error_on_bad_override arm-eabi softfp' ' r0 00000000 r1 0000076e r2 00000006 r3 00000008 r4 0000076e r5 0000076e r6 be984cdc r7 0000010c r8 00000000 r9 be984e24 sl a47be310 fp a47be300 ip 8e088239 sp be984cc8 lr a51b29f7 pc a51ac428 cpsr 200f0030 05-18 10:20:21.924 1928-1928/? A/DEBUG: backtrace: #00 pc 0001a428 /system/lib/libc.so (abort+63) #01 pc 0014efab /data/app/[omitted]--SMXeEezHwIfOxBFVkjgmw==/lib/arm/libflutter.so &lt;lots more of those&gt; #15 pc 000022f1 /data/app/[omitted]--SMXeEezHwIfOxBFVkjgmw==/oat/arm/base.odex (offset 0x2000) </code></pre></div>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=chapman" rel="nofollow">Chapman</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9454?redirect=false" rel="nofollow">SPR-9454</a></strong> and commented</p> <p dir="auto">Spring version 3.1.0.RELEASE.</p> <p dir="auto">A page display 2 dropdown boxes, each of them contained over 100 values. There are two problems:</p> <ol dir="auto"> <li>Render JSP is slow, over 2 seconds to display a simple page.</li> <li>After running for a few days, the response time is slower, over 5 seconds to display the same page.</li> </ol> <p dir="auto">Verify GC log in Tomcat, there is no memory leak.<br> Is there any problem in OptionTag.renderOption method?</p> <p dir="auto">From other forumn, it also mentioned form:select has performance issue.<br> <a href="http://stackoverflow.com/questions/5246685/spring-web-mvc-huge-performance-issues-when-rendering-view" rel="nofollow">http://stackoverflow.com/questions/5246685/spring-web-mvc-huge-performance-issues-when-rendering-view</a></p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 GA</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="398174074" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/17078" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/17078/hovercard" href="https://github.com/spring-projects/spring-framework/issues/17078">#17078</a> SelectedValueComparator triggering a lot of database lookups with DomainClassConverter (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dbeauregard" rel="nofollow">Derek Beauregard</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9602?redirect=false" rel="nofollow">SPR-9602</a></strong> and commented</p> <p dir="auto">The javadoc for BeanFactory.getType(&lt;bean_name&gt;) specifies that it will "Determine the type of the bean with the given name. More specifically, determine the type of object that getBean(java.lang.String) would return for the given name."</p> <p dir="auto">However, when using AOP, there are cases where this will not hold true. We have demonstrated two cases: 1) when using the lazy-init="true" attribute on a bean which will have an AOP proxy, and 2) when a bean using ApplicationContextAware calls getType(), for a bean which will have an AOP proxy, in it's init-method.</p> <p dir="auto">In both cases getType(&lt;name&gt;) can return a different type than getBean(&lt;name&gt;).class(). More specifically getType() will return the base class of the bean and not the proxy, which getBean().class() will return. After calling getBean(), future calls to getType() will return the correct type, the proxy.</p> <p dir="auto">We have ran into issues with the second case when using Mule + Spring.</p> <p dir="auto">I have attached a sample Maven project demonstrating the first case, with lazy-init.</p> <p dir="auto">-Derek</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 GA</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/20111/SpringLifecycle.zip" rel="nofollow">SpringLifecycle.zip</a> (<em>9.18 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="398152115" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14272" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14272/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14272">#14272</a> BeanFactory.getType(String) may not return a Proxy class depending on the order of bean declarations (<em><strong>"duplicates"</strong></em>)</li> </ul>
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/request</code> package and had problems.</li> </ul> <p dir="auto">Latest release seems to have added a duplicate 'time' identifier to the CoreOptions interface</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules/@types/request/index.d.ts(146,9): error TS2300: Duplicate identifier 'time'. node_modules/@types/request/index.d.ts(157,9): error TS2300: Duplicate identifier 'time'."><pre class="notranslate"><code class="notranslate">node_modules/@types/request/index.d.ts(146,9): error TS2300: Duplicate identifier 'time'. node_modules/@types/request/index.d.ts(157,9): error TS2300: Duplicate identifier 'time'. </code></pre></div> <ul class="contains-task-list"> <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/soywiz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/soywiz">@soywiz</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Bartvds/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Bartvds">@Bartvds</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/joeskeen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joeskeen">@joeskeen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ccurrens/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ccurrens">@ccurrens</a></li> </ul> </li> </ul>
<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/xxxx</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/gaspard/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaspard">@gaspard</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vbfox/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vbfox">@vbfox</a></li> </ul> </li> </ul> <p dir="auto">As mentioned in <a href="https://facebook.github.io/react/docs/conditional-rendering.html#inline-if-with-logical--operator" rel="nofollow">React documentation</a>, a stateless component can return <code class="notranslate">false</code> for empty content. Currently <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L312-L313">StatelessComponent</a> is defined as:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface StatelessComponent&lt;P = {}&gt; { (props: P &amp; { children?: ReactNode }, context?: any): ReactElement&lt;any&gt; | null;"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">StatelessComponent</span><span class="pl-c1">&lt;</span><span class="pl-smi">P</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-s1">props</span>: <span class="pl-smi">P</span> <span class="pl-c1">&amp;</span> <span class="pl-kos">{</span> <span class="pl-c1">children</span>?: <span class="pl-smi">ReactNode</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">context</span>?: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-smi">ReactElement</span><span class="pl-kos">&lt;</span><span class="pl-smi">any</span><span class="pl-kos">&gt;</span> <span class="pl-c1">|</span> <span class="pl-c1">null</span><span class="pl-kos">;</span><span class="pl-kos"></span></pre></div> <p dir="auto">whereas <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L270-L280">Component</a> has</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Component&lt;P, S&gt; { constructor(props?: P, context?: any); // ...snip... render(): JSX.Element | null | false;"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Component</span><span class="pl-c1">&lt;</span><span class="pl-smi">P</span><span class="pl-kos">,</span> <span class="pl-smi">S</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">constructor</span><span class="pl-kos">(</span><span class="pl-s1">props</span>?: <span class="pl-smi">P</span><span class="pl-kos">,</span> <span class="pl-s1">context</span>?: <span class="pl-smi">any</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ...snip...</span> <span class="pl-c1">render</span><span class="pl-kos">(</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-c1">|</span> <span class="pl-c1">null</span> <span class="pl-c1">|</span> <span class="pl-c1">false</span><span class="pl-kos">;</span><span class="pl-kos"></span></pre></div> <p dir="auto">Shouldn't these types be the same (including eliminating the ReactElement vs JSX.Element difference)? And to avoid future such issues (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="201343233" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14064" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/14064/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14064">#14064</a>, this one) it should probably be a named type, e.g. RenderResult.</p> <p dir="auto">A search for <code class="notranslate">| null</code> also comes up with <code class="notranslate">ComponentSpec.render</code> which probably should also have the same result type.</p>
0
<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.239] Windows Terminal version (if applicable): (built from latest source as of July 17th, 2019, morning)"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.239] Windows Terminal version (if applicable): (built from latest source as of July 17th, 2019, morning) </code></pre></div> <p dir="auto">I am working on implementing some new VT escape sequences (PR <a href="https://github.com/microsoft/terminal/pull/1978" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/1978/hovercard">here</a>), but I've run into a strange problem. What the sequences do (or are supposed to do) is not important here. The problem is that in certain circumstances, something is <em>reordering</em> VT escape sequences in my content (which is very surprising to me).</p> <p dir="auto">The control sequences in question are XTPUSHSGR and XTPOPSGR: <code class="notranslate">[CSI]#p</code> and <code class="notranslate">[CSI]#q</code>, respectively. Note in the string below, how there is an XTPUSHSGR sequence, then a normal SGR sequence to set the color to red, then an XTPOPSGR sequence (and then a normal SGR sequence to reset the color).</p> <p dir="auto">When I open OpenConsole.sln in Visual Studio 2019, with the CascadiaPackage set as the default project to debug, and then <kbd>F5</kbd> to start debugging it, it launches a terminal running Windows PowerShell. When I send my string to the console, something is <em>moving</em> the XTPUSHSGR and XTPOPSGR sequences to the very beginning of the string!</p> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Start OpenConsole.sln in Visual Studio 2019. Make sure CascadiaPackage is the default project, and platform is set to x64, and build the solution if necessary.</li> <li><kbd>F5</kbd> to start debugging a new instance. You should now have a PowerShell instance in the terminal.</li> <li>In the PowerShell instance in the terminal, run the following commands:</li> </ol> <div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" $esc = [char] 0x1b $s = &quot;Hello. Push:${esc}[#p ${esc}[91m this text is RED Pop:${esc}[#q FG should &quot; + &quot;no longer be red (unless it was red before) courtesy reset: ${esc}[0m&quot;"><pre class="notranslate"> <span class="pl-smi">$esc</span> <span class="pl-k">=</span> [<span class="pl-k">char</span>] <span class="pl-c1">0x1b</span> <span class="pl-smi">$s</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">"</span>Hello. Push:<span class="pl-smi">${esc}</span>[#p <span class="pl-smi">${esc}</span>[91m this text is RED Pop:<span class="pl-smi">${esc}</span>[#q FG should <span class="pl-pds">"</span></span> <span class="pl-k">+</span> <span class="pl-s"><span class="pl-pds">"</span>no longer be red (unless it was red before) courtesy reset: <span class="pl-smi">${esc}</span>[0m<span class="pl-pds">"</span></span></pre></div> <ol start="4" dir="auto"> <li>Set a breakpoint at <code class="notranslate">TerminalControl.dll!Microsoft::Console::VirtualTerminal::StateMachine::ProcessString</code> (the two-parameter one).</li> <li>In the PowerShell instance in the terminal, run the command <code class="notranslate">$s</code> to output the string.</li> <li>When you hit the breakpoint, observe the value of <code class="notranslate">rgwch</code>.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The content of the string should be just as it was set in PowerShell.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The XTPUSHSGR and XTPOPSGR sequences have been moved to the beginning of the string!</p> <p dir="auto">My first thought was that PowerShell must be doing something funny, but I attached windbg to the PowerShell and set a breakpoint on kernel32!WriteConsoleW, and the string passed in there is correct. So something is happening after the string has left PowerShell's hands.</p>
<h1 dir="auto">Steps to reproduce</h1> <p dir="auto">build OpenConsole.sln</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">conpty.dll should be output</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">conpty is built as a static lib</p>
0
<p dir="auto">I think that cloning a scene and using the original scene in one renderer and the cloned scene in another renderer should be possible. Currently there is a conflict where the two renderers think they are sharing resources.</p> <p dir="auto">I have created a fiddle <a href="http://jsfiddle.net/vAxYx/" rel="nofollow">http://jsfiddle.net/vAxYx/</a> to demonstrate. At the bottom, if both renderers are enabled you get in the console a lot of warning messages which boil down to sharing resources between the renderers. If either renderer is used then everything is fine.</p>
<p dir="auto">Hey --</p> <p dir="auto">Trying to render the same scene to two different (WebGL) renderers with two different cameras. The effect is such that only the first renderer to be asked to render the scene within my draw loop is actually drawn.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function draw() { debugRenderer.render(scene, debugCamera); renderer.render(scene, camera); }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">draw</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">debugRenderer</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">scene</span><span class="pl-kos">,</span> <span class="pl-s1">debugCamera</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">scene</span><span class="pl-kos">,</span> <span class="pl-s1">camera</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Have you encountered this before?</p>
1
<p dir="auto">With IoT, WebRTC and VoIP <a href="https://tools.ietf.org/html/rfc6347" rel="nofollow">DTLS</a> (Datagram Transport Layer Security) is becoming more and more important.</p> <p dir="auto">It would be great if the Go standard libray has support for it like it has for TLS.<br> It would allow to implement secure versions of protocols using UDP as the underlying protocol like <a href="http://tools.ietf.org/html/rfc7252" rel="nofollow">CoAP</a> for example.</p>
<p dir="auto">by <strong>kzjeef</strong>:</p> <pre class="notranslate">Before filing a bug, please check whether it has been fixed since the latest release. Search the issue tracker and check that you're running the latest version of Go: Run "go version" and compare against <a href="http://golang.org/doc/devel/release.html" rel="nofollow">http://golang.org/doc/devel/release.html</a> If a newer version of Go exists, install it and retry what you did to reproduce the problem. Thanks. What does 'go version' print? go version go1.3 darwin/amd64 Testing: Testing require setup and tearDown function in test case file wide, like the test framework like rspec(<a href="http://old.rspec.info/documentation/before_and_after.html)" rel="nofollow">http://old.rspec.info/documentation/before_and_after.html)</a> Each test case can have a setup method to allow do some setup stuff, like create a DB connection or start a HTTP server etc. After the test case, can have a function clear some up, so a lot of duplication setup in each test case can be avoid. I think rspec is really have a good point, but Golang can at least add some function like, TestSetup () and TestEnd() function in each test file to archive same propose.</pre>
0