text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">Would like to request support for the following image format (loading, saving). Support for image <em>data, metadata (Exif/XMP)</em>, and all other features.</p>
<p dir="auto">High Efficiency Image File Format (HEIF) - [Based on H.265 video codec]</p> | <p dir="auto">This is a feature request, not a bug.</p>
<h5 dir="auto">Detailed description</h5>
<p dir="auto"><a href="https://github.com/strukturag/libheif">https://github.com/strukturag/libheif</a></p>
<p dir="auto">I'd like to access HEIF files directly without conversion. Is it possible to add a build flag by using libheif?</p> | 1 |
<p dir="auto">There's a pretty obscure coding language out there called Sourcepawn, and I've recently released a <a href="https://atom.io/packages/language-sourcepawn" rel="nofollow">language package</a> for it. The only problem now is that both Sourcepawn and PHP use the <code class="notranslate">.inc</code> file type. I didn't include a <code class="notranslate">firstLineMatch</code> for the Sourcepawn package because there's really no telling what someone will decide to put for the first line (they could immediately start with the code, or maybe a comment, or maybe a preprocessor...). Since neither PHP nor Sourcepawn can definitively claim the file as its own, it seems like PHP then takes precedence simply because it comes before Sourcepawn in the alphabet (I haven't tested this, but it seems pretty plausible).</p>
<p dir="auto">So, is there any way that the auto-detection of grammar could be improved by, say, looking at the regex in each language and seeing which one lines up better?</p> | <p dir="auto">I will explain this issue referring to a third–party package, although the problem <em>might</em> be realted to atom's grammar auto detection feature:</p>
<p dir="auto">Cucumber package for Gherkin syntax and step definitons (<a href="https://github.com/edda/cucumber-atom/">https://github.com/edda/cucumber-atom/</a>) defines two grammars:</p>
<ol dir="auto">
<li>Gherkin (file types: <code class="notranslate">feature</code>)</li>
<li>Cucumber Steps (file type: <code class="notranslate">steps.rb</code>)</li>
</ol>
<p dir="auto">Whilst the first grammar is set correctly on files with the extension <code class="notranslate">*.feature</code>, the second grammar is not detected and instead will set grammar to "Ruby" for files <code class="notranslate">*_steps.rb</code>.</p>
<p dir="auto">Any ideas please?</p>
<h2 dir="auto"></h2>
<p dir="auto">/cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/izuzak/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/izuzak">@izuzak</a></p> | 1 |
<p dir="auto">(Reported by internal user)</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">I'm observing some weird behaviors with the sparse mode of nn.Embedding. For instance, with the following code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="m = nn.Embedding(10, 3, sparse=True)
m.zero_grad()
m(torch.LongTensor([7, 1, 3])).sum().backward()
print(m.weight.grad)"><pre class="notranslate"><span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Embedding</span>(<span class="pl-c1">10</span>, <span class="pl-c1">3</span>, <span class="pl-s1">sparse</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">m</span>.<span class="pl-en">zero_grad</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">print</span>(<span class="pl-s1">m</span>.<span class="pl-s1">weight</span>.<span class="pl-s1">grad</span>)</pre></div>
<p dir="auto">I'll get</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="torch.sparse.FloatTensor of size (10,3) with indices:
tensor([[7, 1, 3]])
and values:
tensor([[1., 1., 1.],
[1., 1., 1.],
[1., 1., 1.]])"><pre class="notranslate"><span class="pl-s1">torch</span>.<span class="pl-s1">sparse</span>.<span class="pl-v">FloatTensor</span> <span class="pl-s1">of</span> <span class="pl-s1">size</span> (<span class="pl-c1">10</span>,<span class="pl-c1">3</span>) <span class="pl-k">with</span> <span class="pl-s1">indices</span>:
<span class="pl-en">tensor</span>([[<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>]])
<span class="pl-s1">and</span> <span class="pl-s1">values</span>:
<span class="pl-en">tensor</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">1.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">1.</span>]])</pre></div>
<p dir="auto">as expected. But if I repeat the fwd/bwd line twice:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="m = nn.Embedding(10, 3, sparse=True)
m.zero_grad()
m(torch.LongTensor([7, 1, 3])).sum().backward()
m(torch.LongTensor([7, 1, 3])).sum().backward()
print(m.weight.grad)"><pre class="notranslate"><span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Embedding</span>(<span class="pl-c1">10</span>, <span class="pl-c1">3</span>, <span class="pl-s1">sparse</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">m</span>.<span class="pl-en">zero_grad</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">print</span>(<span class="pl-s1">m</span>.<span class="pl-s1">weight</span>.<span class="pl-s1">grad</span>)</pre></div>
<p dir="auto">I get random outputs, such as:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="torch.sparse.FloatTensor of size (10,3) with indices:
tensor([[7, 1, 3]])
and values:
tensor([[ 2.0000, 1.0000, 1.0000],
[ 1.0000, 1.0000, 1.0000],
[ 1.0000, 1.0000, 793.1436]])"><pre class="notranslate"><span class="pl-s1">torch</span>.<span class="pl-s1">sparse</span>.<span class="pl-v">FloatTensor</span> <span class="pl-s1">of</span> <span class="pl-s1">size</span> (<span class="pl-c1">10</span>,<span class="pl-c1">3</span>) <span class="pl-k">with</span> <span class="pl-s1">indices</span>:
<span class="pl-en">tensor</span>([[<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>]])
<span class="pl-s1">and</span> <span class="pl-s1">values</span>:
<span class="pl-en">tensor</span>([[ <span class="pl-c1">2.0000</span>, <span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>],
[ <span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>],
[ <span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>, <span class="pl-c1">793.1436</span>]])</pre></div>
<p dir="auto">I guess this is not expected?<br>
Also I noticed that if the input is different, it behaves very differently:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="m = nn.Embedding(10, 3, sparse=True)
m.zero_grad()
m(torch.LongTensor([7, 1, 3])).sum().backward()
m(torch.LongTensor([8, 1, 3])).sum().backward()
print(m.weight.grad)"><pre class="notranslate"><span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Embedding</span>(<span class="pl-c1">10</span>, <span class="pl-c1">3</span>, <span class="pl-s1">sparse</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">m</span>.<span class="pl-en">zero_grad</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">8</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">print</span>(<span class="pl-s1">m</span>.<span class="pl-s1">weight</span>.<span class="pl-s1">grad</span>)</pre></div>
<p dir="auto">Returns:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="torch.sparse.FloatTensor of size (10,3) with indices:
tensor([[7, 1, 3, 8, 1, 3]])
and values:
tensor([[1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000],
[1.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000]])"><pre class="notranslate"><span class="pl-s1">torch</span>.<span class="pl-s1">sparse</span>.<span class="pl-v">FloatTensor</span> <span class="pl-s1">of</span> <span class="pl-s1">size</span> (<span class="pl-c1">10</span>,<span class="pl-c1">3</span>) <span class="pl-k">with</span> <span class="pl-s1">indices</span>:
<span class="pl-en">tensor</span>([[<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">8</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>]])
<span class="pl-s1">and</span> <span class="pl-s1">values</span>:
<span class="pl-en">tensor</span>([[<span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>],
[<span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>],
[<span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>, <span class="pl-c1">1.0000</span>],
[<span class="pl-c1">1.0000</span>, <span class="pl-c1">0.0000</span>, <span class="pl-c1">0.0000</span>],
[<span class="pl-c1">0.0000</span>, <span class="pl-c1">0.0000</span>, <span class="pl-c1">0.0000</span>],
[<span class="pl-c1">0.0000</span>, <span class="pl-c1">0.0000</span>, <span class="pl-c1">0.0000</span>]])</pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">It should behave the same as the dense version of nn.Embedding (aka. <code class="notranslate">nn.Embedding(10, 3, sparse=False)</code>.</p>
<h2 dir="auto">Additional Context</h2>
<p dir="auto">This is reproducible on nightly builds as of 3/12/2019.</p> | <p dir="auto">I'm observing some weird behaviors with the sparse mode of nn.Embedding (both in PyTorch 0.4 and 1.0). For instance, with the following code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="m = nn.Embedding(10, 3, sparse=True)
m.zero_grad()
m(torch.LongTensor([7, 1, 3])).sum().backward()
print(m.weight.grad)"><pre class="notranslate"><span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Embedding</span>(<span class="pl-c1">10</span>, <span class="pl-c1">3</span>, <span class="pl-s1">sparse</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">m</span>.<span class="pl-en">zero_grad</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">print</span>(<span class="pl-s1">m</span>.<span class="pl-s1">weight</span>.<span class="pl-s1">grad</span>)</pre></div>
<p dir="auto">I'll get</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="torch.sparse.FloatTensor of size (10,3) with indices:
tensor([[7, 1, 3]])
and values:
tensor([[1., 1., 1.],
[1., 1., 1.],
[1., 1., 1.]])"><pre class="notranslate"><code class="notranslate">torch.sparse.FloatTensor of size (10,3) with indices:
tensor([[7, 1, 3]])
and values:
tensor([[1., 1., 1.],
[1., 1., 1.],
[1., 1., 1.]])
</code></pre></div>
<p dir="auto">as expected. But if I repeat the fwd/bwd line twice:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="m = nn.Embedding(10, 3, sparse=True)
m.zero_grad()
m(torch.LongTensor([7, 1, 3])).sum().backward()
m(torch.LongTensor([7, 1, 3])).sum().backward()
print(m.weight.grad)"><pre class="notranslate"><span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Embedding</span>(<span class="pl-c1">10</span>, <span class="pl-c1">3</span>, <span class="pl-s1">sparse</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">m</span>.<span class="pl-en">zero_grad</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">print</span>(<span class="pl-s1">m</span>.<span class="pl-s1">weight</span>.<span class="pl-s1">grad</span>)</pre></div>
<p dir="auto">I get random outputs, such as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="torch.sparse.FloatTensor of size (10,3) with indices:
tensor([[7, 1, 3]])
and values:
tensor([[ 2.0000, 1.0000, 1.0000],
[ 1.0000, 1.0000, 1.0000],
[ 1.0000, 1.0000, 793.1436]])"><pre class="notranslate"><code class="notranslate">torch.sparse.FloatTensor of size (10,3) with indices:
tensor([[7, 1, 3]])
and values:
tensor([[ 2.0000, 1.0000, 1.0000],
[ 1.0000, 1.0000, 1.0000],
[ 1.0000, 1.0000, 793.1436]])
</code></pre></div>
<p dir="auto">I guess this is not expected?</p>
<p dir="auto">Also I noticed that if the input is different, it behaves very differently:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="m = nn.Embedding(10, 3, sparse=True)
m.zero_grad()
m(torch.LongTensor([7, 1, 3])).sum().backward()
m(torch.LongTensor([8, 1, 3])).sum().backward()
print(m.weight.grad)"><pre class="notranslate"><span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Embedding</span>(<span class="pl-c1">10</span>, <span class="pl-c1">3</span>, <span class="pl-s1">sparse</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">m</span>.<span class="pl-en">zero_grad</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">7</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">m</span>(<span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>([<span class="pl-c1">8</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>])).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()
<span class="pl-en">print</span>(<span class="pl-s1">m</span>.<span class="pl-s1">weight</span>.<span class="pl-s1">grad</span>)</pre></div>
<p dir="auto">Returns:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="torch.sparse.FloatTensor of size (10,3) with indices:
tensor([[7, 1, 3, 8, 1, 3]])
and values:
tensor([[1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000],
[1.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000]])"><pre class="notranslate"><code class="notranslate">torch.sparse.FloatTensor of size (10,3) with indices:
tensor([[7, 1, 3, 8, 1, 3]])
and values:
tensor([[1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000],
[1.0000, 1.0000, 1.0000],
[1.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000],
[0.0000, 0.0000, 0.0000]])
</code></pre></div> | 1 |
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">Can not reproduce problem myself, however I'm having multiple crashes reported in Google Play console from several users. The problem is only happens on Android 4.4</p>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
libhoudini.so
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.appname.app <<<
backtrace:
#00 pc 00000000000c2582 /system/lib/libhoudini.so
#01 pc 0000000000015edf /system/lib/arm/libc.so
#02 pc 00000000000ae6b6 /system/lib/libhoudini.so
#03 pc 0000000000062f8b <unknown>
#04 pc 00000000000ab3c5 /system/lib/libhoudini.so
#05 pc 0000000000015edf /system/lib/arm/libc.so
#06 pc 00000000000aadcc /system/lib/libhoudini.so
#07 pc 00000000ffffffff <unknown>
#08 pc 00000000000f454c /system/lib/libhoudini.so
#09 pc 00000000ffffffff <unknown>
#10 pc 000000000000dfff [stack:24824]
#11 pc 000000000018488a /system/lib/libhoudini.so
"><pre class="notranslate"><code class="notranslate">signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
libhoudini.so
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.appname.app <<<
backtrace:
#00 pc 00000000000c2582 /system/lib/libhoudini.so
#01 pc 0000000000015edf /system/lib/arm/libc.so
#02 pc 00000000000ae6b6 /system/lib/libhoudini.so
#03 pc 0000000000062f8b <unknown>
#04 pc 00000000000ab3c5 /system/lib/libhoudini.so
#05 pc 0000000000015edf /system/lib/arm/libc.so
#06 pc 00000000000aadcc /system/lib/libhoudini.so
#07 pc 00000000ffffffff <unknown>
#08 pc 00000000000f454c /system/lib/libhoudini.so
#09 pc 00000000ffffffff <unknown>
#10 pc 000000000000dfff [stack:24824]
#11 pc 000000000018488a /system/lib/libhoudini.so
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_US.UTF-8)
• Flutter version 0.9.4 at /home/flutter/flutter_v0.9.4-beta
• Framework revision f37c235c32 (5 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /home/android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /home/android/sdk
• Java binary at: /home/android/src/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] Android Studio (version 3.1)
• Android Studio at /home/android/src/android-studio
• Flutter plugin version 24.2.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[!] Connected devices
! No devices available
"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.9.4, on Linux, locale en_US.UTF-8)
• Flutter version 0.9.4 at /home/flutter/flutter_v0.9.4-beta
• Framework revision f37c235c32 (5 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /home/android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /home/android/sdk
• Java binary at: /home/android/src/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] Android Studio (version 3.1)
• Android Studio at /home/android/src/android-studio
• Flutter plugin version 24.2.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[!] Connected devices
! No devices available
</code></pre></div> | <h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">1.use simplest demo,set ndk in build.gradle,designated cpu to <code class="notranslate">armeabi-v7a</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ndk {
abiFilters "armeabi-v7a"
}"><pre class="notranslate"><code class="notranslate"> ndk {
abiFilters "armeabi-v7a"
}
</code></pre></div>
<ol start="2" dir="auto">
<li>run the app on yeshen simulator(夜神模拟器),which one is arm cpu type</li>
<li>the app is crash</li>
</ol>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="01-27 10:57:03.817 4018-4035/com.tencent.lgs A/libc: Fatal signal 4 (SIGILL) at 0x00000fb2 (code=0), thread 4035 (1.ui)
01-27 10:57:03.917 157-157/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-27 10:57:03.917 157-157/? I/DEBUG: Build fingerprint: 'samsung/SM-G955F/SM-G955F:4.4.2/JLS36C/381190110:user/release-keys'
01-27 10:57:03.917 157-157/? I/DEBUG: Revision: '0'
01-27 10:57:03.917 157-157/? I/DEBUG: pid: 4018, tid: 4035, name: 1.ui >>> com.tencent.lgs <<<
01-27 10:57:03.917 157-157/? I/DEBUG: signal 6 (SIGABRT), code 0 (SI_USER), fault addr --------
01-27 10:57:03.947 157-157/? I/DEBUG: eax 00000000 ebx 00000fc3 ecx 00000006 edx 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: esi 00000008 edi 1a215030
01-27 10:57:03.947 157-157/? I/DEBUG: xcs 00000073 xds 0000007b xes 0000007b xfs 00000043 xss 0000007b
01-27 10:57:03.947 157-157/? I/DEBUG: eip 7ebd1700 ebp 7e53b6ac esp 7e53b694 flags 00200246
01-27 10:57:03.947 157-157/? I/DEBUG: backtrace:
01-27 10:57:03.947 157-157/? I/DEBUG: #00 pc 00194700 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: stack:
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b654 7ed20de4 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b658 7ed20de4 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b65c 7e53b6ec [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b660 7eb01dd7 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b664 00000002
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b668 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b66c 7ec8db30 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b670 0000036c
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b674 7e53b724 [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b678 00000001
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b67c 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b680 7e63aba0
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b684 7ec8bf4c /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b688 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b68c 7e53b6ac [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b690 7ebd1682 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: #00 7e53b694 7e53b6a4 [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b698 00000006
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b69c 0000029c
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6a0 00000001
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6a4 00000028
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6a8 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6ac 7e53b6cc [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6b0 7ebcb351 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6b4 1a215030 [stack:4034]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6b8 00000b01
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6bc 000002f5
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6c0 1a215030 [stack:4034]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6c4 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6c8 00000001
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6cc 7e53b6ec [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6d0 7eb01848 /system/lib/libhoudini.so
01-27 10:57:03.967 308-4044/? W/ActivityManager: Force finishing activity com.tencent.lgs/shequ.qqx5.tencent.com.x5shequmain.MainActivity
01-27 10:57:03.967 308-331/? I/BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
01-27 10:57:03.977 161-161/? D/Zygote: Process 4018 exited cleanly (255)
01-27 10:57:04.267 308-4044/? I/WindowManager: Screenshot max retries 4 of Token{4a972288 ActivityRecord{4a9acd9c u0 com.tencent.lgs/shequ.qqx5.tencent.com.x5shequmain.MainActivity t22 f}} appWin=Window{4a80b7a0 u0 Starting com.tencent.lgs} drawState=4
01-27 10:57:04.267 308-4044/? W/WindowManager: Screenshot failure taking screenshot for (1280x720) to layer 21015
01-27 10:57:04.267 308-4044/? W/ActivityManager: Exception thrown during pause
android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:660)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:761)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2456)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2330)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2035)
at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:9573)
at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:9466)
at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:10119)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:9662)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)"><pre class="notranslate"><code class="notranslate">01-27 10:57:03.817 4018-4035/com.tencent.lgs A/libc: Fatal signal 4 (SIGILL) at 0x00000fb2 (code=0), thread 4035 (1.ui)
01-27 10:57:03.917 157-157/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-27 10:57:03.917 157-157/? I/DEBUG: Build fingerprint: 'samsung/SM-G955F/SM-G955F:4.4.2/JLS36C/381190110:user/release-keys'
01-27 10:57:03.917 157-157/? I/DEBUG: Revision: '0'
01-27 10:57:03.917 157-157/? I/DEBUG: pid: 4018, tid: 4035, name: 1.ui >>> com.tencent.lgs <<<
01-27 10:57:03.917 157-157/? I/DEBUG: signal 6 (SIGABRT), code 0 (SI_USER), fault addr --------
01-27 10:57:03.947 157-157/? I/DEBUG: eax 00000000 ebx 00000fc3 ecx 00000006 edx 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: esi 00000008 edi 1a215030
01-27 10:57:03.947 157-157/? I/DEBUG: xcs 00000073 xds 0000007b xes 0000007b xfs 00000043 xss 0000007b
01-27 10:57:03.947 157-157/? I/DEBUG: eip 7ebd1700 ebp 7e53b6ac esp 7e53b694 flags 00200246
01-27 10:57:03.947 157-157/? I/DEBUG: backtrace:
01-27 10:57:03.947 157-157/? I/DEBUG: #00 pc 00194700 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: stack:
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b654 7ed20de4 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b658 7ed20de4 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b65c 7e53b6ec [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b660 7eb01dd7 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b664 00000002
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b668 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b66c 7ec8db30 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b670 0000036c
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b674 7e53b724 [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b678 00000001
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b67c 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b680 7e63aba0
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b684 7ec8bf4c /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b688 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b68c 7e53b6ac [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b690 7ebd1682 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: #00 7e53b694 7e53b6a4 [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b698 00000006
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b69c 0000029c
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6a0 00000001
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6a4 00000028
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6a8 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6ac 7e53b6cc [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6b0 7ebcb351 /system/lib/libhoudini.so
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6b4 1a215030 [stack:4034]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6b8 00000b01
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6bc 000002f5
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6c0 1a215030 [stack:4034]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6c4 00000000
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6c8 00000001
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6cc 7e53b6ec [stack:4035]
01-27 10:57:03.947 157-157/? I/DEBUG: 7e53b6d0 7eb01848 /system/lib/libhoudini.so
01-27 10:57:03.967 308-4044/? W/ActivityManager: Force finishing activity com.tencent.lgs/shequ.qqx5.tencent.com.x5shequmain.MainActivity
01-27 10:57:03.967 308-331/? I/BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
01-27 10:57:03.977 161-161/? D/Zygote: Process 4018 exited cleanly (255)
01-27 10:57:04.267 308-4044/? I/WindowManager: Screenshot max retries 4 of Token{4a972288 ActivityRecord{4a9acd9c u0 com.tencent.lgs/shequ.qqx5.tencent.com.x5shequmain.MainActivity t22 f}} appWin=Window{4a80b7a0 u0 Starting com.tencent.lgs} drawState=4
01-27 10:57:04.267 308-4044/? W/WindowManager: Screenshot failure taking screenshot for (1280x720) to layer 21015
01-27 10:57:04.267 308-4044/? W/ActivityManager: Exception thrown during pause
android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:660)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:761)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2456)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2330)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2035)
at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:9573)
at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:9466)
at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:10119)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:9662)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="D:\Program Files\Nox\bin>flutter doctor -v
[√] Flutter (Channel beta, v1.0.0, on Microsoft Windows [Version 6.1.7601],
locale zh-CN)
• Flutter version 1.0.0 at D:\flutter
• Framework revision 5391447fae (8 weeks ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at E:\Users\Administrator\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = E:\Users\Administrator\AppData\Local\Android\sdk
• Java binary at: E:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Android Studio (version 3.2)
• Android Studio at E:\Program Files\Android\Android Studio
• Flutter plugin version 29.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)"><pre class="notranslate"><code class="notranslate">D:\Program Files\Nox\bin>flutter doctor -v
[√] Flutter (Channel beta, v1.0.0, on Microsoft Windows [Version 6.1.7601],
locale zh-CN)
• Flutter version 1.0.0 at D:\flutter
• Framework revision 5391447fae (8 weeks ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at E:\Users\Administrator\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = E:\Users\Administrator\AppData\Local\Android\sdk
• Java binary at: E:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Android Studio (version 3.2)
• Android Studio at E:\Program Files\Android\Android Studio
• Flutter plugin version 29.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
</code></pre></div> | 1 |
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let i: u8 = -1"><pre class="notranslate"><span class="pl-k">let</span> i<span class="pl-kos">:</span> <span class="pl-smi">u8</span> = -<span class="pl-c1">1</span></pre></div>
<p dir="auto">Replacing -1 by 256 gives the following warning:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" literal out of range for its type"><pre class="notranslate"><code class="notranslate"> literal out of range for its type
</code></pre></div>
<p dir="auto">This could also apply to the code above. Unfortunately even an explicit cast to u8 doesn't remove the second warning.</p>
<p dir="auto">Note that clang has a related warning:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
unsigned int i = -1;
~ ^~"><pre class="notranslate"><code class="notranslate">warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
unsigned int i = -1;
~ ^~
</code></pre></div> | <p dir="auto">Generic code should produce the same code as their monomorphic counterparts. However, a lot of additional <code class="notranslate">nop</code> are produced on generic code. For example:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#[inline(never)]
fn doit_not_generic(a: f32) -> f32 {
let mut a = a;
do 1000000000.times {
a = a * a;
}
a
}
#[inline(never)]
fn doit<N: Mul<N, N>>(a: N) -> N {
let mut a = a;
do 1000000000.times {
a = a * a;
}
a
}"><pre class="notranslate"><span class="pl-c1">#<span class="pl-kos">[</span>inline<span class="pl-kos">(</span>never<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">fn</span> <span class="pl-en">doit_not_generic</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">:</span> <span class="pl-smi">f32</span><span class="pl-kos">)</span> -> <span class="pl-smi">f32</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-k">mut</span> a = a<span class="pl-kos">;</span>
do <span class="pl-c1">1000000000</span><span class="pl-kos">.</span><span class="pl-c1">times</span><span class="pl-kos"></span> <span class="pl-kos">{</span>
a = a <span class="pl-c1">*</span> a<span class="pl-kos">;</span>
<span class="pl-kos">}</span>
a
<span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>inline<span class="pl-kos">(</span>never<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">fn</span> <span class="pl-en">doit</span><span class="pl-kos"><</span><span class="pl-smi">N</span><span class="pl-kos">:</span> <span class="pl-smi">Mul</span><span class="pl-kos"><</span><span class="pl-smi">N</span><span class="pl-kos">,</span> <span class="pl-smi">N</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">:</span> <span class="pl-smi">N</span><span class="pl-kos">)</span> -> <span class="pl-smi">N</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-k">mut</span> a = a<span class="pl-kos">;</span>
do <span class="pl-c1">1000000000</span><span class="pl-kos">.</span><span class="pl-c1">times</span><span class="pl-kos"></span> <span class="pl-kos">{</span>
a = a <span class="pl-c1">*</span> a<span class="pl-kos">;</span>
<span class="pl-kos">}</span>
a
<span class="pl-kos">}</span></pre></div>
<p dir="auto">When called with an <code class="notranslate">f32</code>, produced asm for <code class="notranslate">doit</code> has a lot of <code class="notranslate">nop</code> before the multiplication:</p>
<div class="highlight highlight-source-assembly notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="00000000004025e0 <_ZN9doit_437216_38a5b7ada5228707_0$x2e0E>:
4025e0: 64 48 3b 24 25 70 00 cmp %fs:0x70,%rsp
4025e7: 00 00
4025e9: 77 1a ja 402605 <_ZN9doit_437216_38a5b7ada5228707_0$x2e0E+0x25>
4025eb: 49 ba 08 00 00 00 00 movabs $0x8,%r10
4025f2: 00 00 00
4025f5: 49 bb 00 00 00 00 00 movabs $0x0,%r11
4025fc: 00 00 00
4025ff: e8 28 00 00 00 callq 40262c <__morestack>
402604: c3 retq
402605: 55 push %rbp
402606: 48 89 e5 mov %rsp,%rbp
402609: f3 0f 10 05 23 01 00 movss 0x123(%rip),%xmm0 # 402734 <_IO_stdin_used+0x14>
402610: 00
402611: 48 c7 c0 00 36 65 c4 mov $0xffffffffc4653600,%rax
402618: 90 nop
402619: 90 nop
40261a: 90 nop
40261b: 90 nop
40261c: 90 nop
40261d: 90 nop
40261e: 90 nop
40261f: 90 nop
402620: f3 0f 59 c0 mulss %xmm0,%xmm0
402624: 48 ff c0 inc %rax
402627: 75 f7 jne 402620 <_ZN9doit_437216_38a5b7ada5228707_0$x2e0E+0x40>
402629: 5d pop %rbp
40262a: c3 retq
40262b: 90 nop "><pre class="notranslate"><span class="pl-en">00000000004025e0 <_ZN9doit_437216_38a5b7ada5228707_0</span><span class="pl-c1">$</span><span class="pl-en">x2e0E>:</span>
<span class="pl-en"> 4025e0: </span><span class="pl-c1">64</span><span class="pl-en"> </span><span class="pl-c1">48</span><span class="pl-en"> 3b </span><span class="pl-c1">24</span><span class="pl-en"> </span><span class="pl-c1">25</span><span class="pl-en"> </span><span class="pl-c1">70</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-k">cmp</span><span class="pl-en"> %</span><span class="pl-v">fs</span><span class="pl-en">:</span><span class="pl-c1">0x70</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">rsp</span>
<span class="pl-en"> 4025e7: </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span>
<span class="pl-en"> 4025e9: </span><span class="pl-c1">77</span><span class="pl-en"> 1a </span><span class="pl-k">ja</span><span class="pl-en"> </span><span class="pl-c1">402605</span><span class="pl-en"> <_ZN9doit_437216_38a5b7ada5228707_0</span><span class="pl-c1">$</span><span class="pl-en">x2e0E</span><span class="pl-s1">+</span><span class="pl-c1">0x25</span><span class="pl-en">></span>
<span class="pl-en"> 4025eb: </span><span class="pl-c1">49</span><span class="pl-en"> ba </span><span class="pl-c1">08</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> movabs</span> <span class="pl-c1">$</span><span class="pl-c1">0x8</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">r10</span>
<span class="pl-en"> 4025f2: </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span>
<span class="pl-en"> 4025f5: </span><span class="pl-c1">49</span><span class="pl-en"> bb </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> movabs</span> <span class="pl-c1">$</span><span class="pl-c1">0x0</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">r11</span>
<span class="pl-en"> 4025fc: </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span>
<span class="pl-en"> 4025ff: e8 </span><span class="pl-c1">28</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> callq 40262c <__morestack></span>
<span class="pl-en"> </span><span class="pl-c1">402604</span><span class="pl-en">: c3 retq</span>
<span class="pl-en"> </span><span class="pl-c1">402605</span><span class="pl-en">: </span><span class="pl-c1">55</span><span class="pl-en"> </span><span class="pl-k">push</span><span class="pl-en"> %</span><span class="pl-v">rbp</span>
<span class="pl-en"> </span><span class="pl-c1">402606</span><span class="pl-en">: </span><span class="pl-c1">48</span><span class="pl-en"> </span><span class="pl-c1">89</span><span class="pl-en"> e5 </span><span class="pl-k">mov</span><span class="pl-en"> %</span><span class="pl-v">rsp</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">rbp</span>
<span class="pl-en"> </span><span class="pl-c1">402609</span><span class="pl-en">: f3 0f </span><span class="pl-c1">10</span><span class="pl-en"> </span><span class="pl-c1">05</span><span class="pl-en"> </span><span class="pl-c1">23</span><span class="pl-en"> </span><span class="pl-c1">01</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-k">movss</span><span class="pl-en"> </span><span class="pl-c1">0x123</span><span class="pl-en">(%</span><span class="pl-v">rip</span><span class="pl-en">)</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">xmm0</span><span class="pl-en"> # </span><span class="pl-c1">402734</span><span class="pl-en"> <_IO_stdin_used</span><span class="pl-s1">+</span><span class="pl-c1">0x14</span><span class="pl-en">></span>
<span class="pl-en"> </span><span class="pl-c1">402610</span><span class="pl-en">: </span><span class="pl-c1">00</span>
<span class="pl-en"> </span><span class="pl-c1">402611</span><span class="pl-en">: </span><span class="pl-c1">48</span><span class="pl-en"> c7 c0 </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">36</span><span class="pl-en"> </span><span class="pl-c1">65</span><span class="pl-en"> c4 </span><span class="pl-k">mov</span> <span class="pl-c1">$</span><span class="pl-c1">0xffffffffc4653600</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">rax</span>
<span class="pl-en"> </span><span class="pl-c1">402618</span><span class="pl-en">: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> </span><span class="pl-c1">402619</span><span class="pl-en">: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 40261a: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 40261b: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 40261c: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 40261d: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 40261e: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 40261f: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> </span><span class="pl-c1">402620</span><span class="pl-en">: f3 0f </span><span class="pl-c1">59</span><span class="pl-en"> c0 </span><span class="pl-k">mulss</span><span class="pl-en"> %</span><span class="pl-v">xmm0</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">xmm0</span>
<span class="pl-en"> </span><span class="pl-c1">402624</span><span class="pl-en">: </span><span class="pl-c1">48</span><span class="pl-en"> ff c0 </span><span class="pl-k">inc</span><span class="pl-en"> %</span><span class="pl-v">rax</span>
<span class="pl-en"> </span><span class="pl-c1">402627</span><span class="pl-en">: </span><span class="pl-c1">75</span><span class="pl-en"> f7 </span><span class="pl-k">jne</span><span class="pl-en"> </span><span class="pl-c1">402620</span><span class="pl-en"> <_ZN9doit_437216_38a5b7ada5228707_0</span><span class="pl-c1">$</span><span class="pl-en">x2e0E</span><span class="pl-s1">+</span><span class="pl-c1">0x40</span><span class="pl-en">></span>
<span class="pl-en"> </span><span class="pl-c1">402629</span><span class="pl-en">: 5d </span><span class="pl-k">pop</span><span class="pl-en"> %</span><span class="pl-v">rbp</span>
<span class="pl-en"> 40262a: c3 retq</span>
<span class="pl-en"> 40262b: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span><span class="pl-en"> </span></pre></div>
<p dir="auto">Produced asm for <code class="notranslate">doit_not_generic</code> is nop-free before the multiplication:</p>
<div class="highlight highlight-source-assembly notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="0000000000401380 <_ZN16doit_not_generic16_38a5b7ada5228707_0$x2e0E>:
401380: 64 48 3b 24 25 70 00 cmp %fs:0x70,%rsp
401387: 00 00
401389: 77 1a ja 4013a5 <_ZN16doit_not_generic16_38a5b7ada5228707_0$x2e0E+0x25>
40138b: 49 ba 08 00 00 00 00 movabs $0x8,%r10
401392: 00 00 00
401395: 49 bb 00 00 00 00 00 movabs $0x0,%r11
40139c: 00 00 00
40139f: e8 88 12 00 00 callq 40262c <__morestack>
4013a4: c3 retq
4013a5: 55 push %rbp
4013a6: 48 89 e5 mov %rsp,%rbp
4013a9: 48 c7 c0 00 36 65 c4 mov $0xffffffffc4653600,%rax
4013b0: f3 0f 59 c0 mulss %xmm0,%xmm0
4013b4: 48 ff c0 inc %rax
4013b7: 75 f7 jne 4013b0 <_ZN16doit_not_generic16_38a5b7ada5228707_0$x2e0E+0x30>
4013b9: 5d pop %rbp
4013ba: c3 retq
4013bb: 90 nop
4013bc: 90 nop
4013bd: 90 nop
4013be: 90 nop
4013bf: 90 nop"><pre class="notranslate"><span class="pl-c1">0000000000401380</span><span class="pl-en"> <_ZN16doit_not_generic16_38a5b7ada5228707_0</span><span class="pl-c1">$</span><span class="pl-en">x2e0E>:</span>
<span class="pl-en"> </span><span class="pl-c1">401380</span><span class="pl-en">: </span><span class="pl-c1">64</span><span class="pl-en"> </span><span class="pl-c1">48</span><span class="pl-en"> 3b </span><span class="pl-c1">24</span><span class="pl-en"> </span><span class="pl-c1">25</span><span class="pl-en"> </span><span class="pl-c1">70</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-k">cmp</span><span class="pl-en"> %</span><span class="pl-v">fs</span><span class="pl-en">:</span><span class="pl-c1">0x70</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">rsp</span>
<span class="pl-en"> </span><span class="pl-c1">401387</span><span class="pl-en">: </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span>
<span class="pl-en"> </span><span class="pl-c1">401389</span><span class="pl-en">: </span><span class="pl-c1">77</span><span class="pl-en"> 1a </span><span class="pl-k">ja</span><span class="pl-en"> 4013a5 <_ZN16doit_not_generic16_38a5b7ada5228707_0</span><span class="pl-c1">$</span><span class="pl-en">x2e0E</span><span class="pl-s1">+</span><span class="pl-c1">0x25</span><span class="pl-en">></span>
<span class="pl-en"> 40138b: </span><span class="pl-c1">49</span><span class="pl-en"> ba </span><span class="pl-c1">08</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> movabs</span> <span class="pl-c1">$</span><span class="pl-c1">0x8</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">r10</span>
<span class="pl-en"> </span><span class="pl-c1">401392</span><span class="pl-en">: </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span>
<span class="pl-en"> </span><span class="pl-c1">401395</span><span class="pl-en">: </span><span class="pl-c1">49</span><span class="pl-en"> bb </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> movabs</span> <span class="pl-c1">$</span><span class="pl-c1">0x0</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">r11</span>
<span class="pl-en"> 40139c: </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span>
<span class="pl-en"> 40139f: e8 </span><span class="pl-c1">88</span><span class="pl-en"> </span><span class="pl-c1">12</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">00</span><span class="pl-en"> callq 40262c <__morestack></span>
<span class="pl-en"> 4013a4: c3 retq</span>
<span class="pl-en"> 4013a5: </span><span class="pl-c1">55</span><span class="pl-en"> </span><span class="pl-k">push</span><span class="pl-en"> %</span><span class="pl-v">rbp</span>
<span class="pl-en"> 4013a6: </span><span class="pl-c1">48</span><span class="pl-en"> </span><span class="pl-c1">89</span><span class="pl-en"> e5 </span><span class="pl-k">mov</span><span class="pl-en"> %</span><span class="pl-v">rsp</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">rbp</span>
<span class="pl-en"> 4013a9: </span><span class="pl-c1">48</span><span class="pl-en"> c7 c0 </span><span class="pl-c1">00</span><span class="pl-en"> </span><span class="pl-c1">36</span><span class="pl-en"> </span><span class="pl-c1">65</span><span class="pl-en"> c4 </span><span class="pl-k">mov</span> <span class="pl-c1">$</span><span class="pl-c1">0xffffffffc4653600</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">rax</span>
<span class="pl-en"> 4013b0: f3 0f </span><span class="pl-c1">59</span><span class="pl-en"> c0 </span><span class="pl-k">mulss</span><span class="pl-en"> %</span><span class="pl-v">xmm0</span><span class="pl-s1">,</span><span class="pl-en">%</span><span class="pl-v">xmm0</span>
<span class="pl-en"> 4013b4: </span><span class="pl-c1">48</span><span class="pl-en"> ff c0 </span><span class="pl-k">inc</span><span class="pl-en"> %</span><span class="pl-v">rax</span>
<span class="pl-en"> 4013b7: </span><span class="pl-c1">75</span><span class="pl-en"> f7 </span><span class="pl-k">jne</span><span class="pl-en"> 4013b0 <_ZN16doit_not_generic16_38a5b7ada5228707_0</span><span class="pl-c1">$</span><span class="pl-en">x2e0E</span><span class="pl-s1">+</span><span class="pl-c1">0x30</span><span class="pl-en">></span>
<span class="pl-en"> 4013b9: 5d </span><span class="pl-k">pop</span><span class="pl-en"> %</span><span class="pl-v">rbp</span>
<span class="pl-en"> 4013ba: c3 retq</span>
<span class="pl-en"> 4013bb: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 4013bc: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 4013bd: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 4013be: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span>
<span class="pl-en"> 4013bf: </span><span class="pl-c1">90</span><span class="pl-en"> </span><span class="pl-k">nop</span></pre></div> | 0 |
<p dir="auto">I'm setting up what (I think) should be a straightforward image loading pipeline:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="decoded_image = tf.image.decode_jpeg(value)
resized_image = tf.image.resize_image_with_crop_or_pad(decoded_image, width, height)"><pre class="notranslate"><span class="pl-s1">decoded_image</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">image</span>.<span class="pl-en">decode_jpeg</span>(<span class="pl-s1">value</span>)
<span class="pl-s1">resized_image</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">image</span>.<span class="pl-en">resize_image_with_crop_or_pad</span>(<span class="pl-s1">decoded_image</span>, <span class="pl-s1">width</span>, <span class="pl-s1">height</span>)</pre></div>
<p dir="auto">However, I get an error <code class="notranslate">'image' must be fully defined.</code> - the image not being fully defined because the size of the JPEG is variable. When using the <code class="notranslate">tf.image.resize_images()</code> function, it seems that this constraint is not enforced. Is it necessary to have fixed image dimensions to use the <code class="notranslate">resize_image_with_crop_or_pad()</code> function? That would seem to somewhat defeat the point of an auto-crop/resizing function, no?</p> | <p dir="auto">Because <code class="notranslate">tf.image.resize_image_with_crop_or_pad()</code> requires its input to have a fully defined shape, it's not useful as part of an input pipeline since the size of images loaded will not be known in advance.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" queue = tf.train.string_input_producer(filenames)
reader = tf.WholeFileReader()
_, contents = reader.read(queue)
image = tf.image.decode_jpeg(contents, channels=3)
cropped = tf.image.resize_image_with_crop_or_pad(image, 224, 224)"><pre class="notranslate"> <span class="pl-s1">queue</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-en">string_input_producer</span>(<span class="pl-s1">filenames</span>)
<span class="pl-s1">reader</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">WholeFileReader</span>()
<span class="pl-s1">_</span>, <span class="pl-s1">contents</span> <span class="pl-c1">=</span> <span class="pl-s1">reader</span>.<span class="pl-en">read</span>(<span class="pl-s1">queue</span>)
<span class="pl-s1">image</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">image</span>.<span class="pl-en">decode_jpeg</span>(<span class="pl-s1">contents</span>, <span class="pl-s1">channels</span><span class="pl-c1">=</span><span class="pl-c1">3</span>)
<span class="pl-s1">cropped</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">image</span>.<span class="pl-en">resize_image_with_crop_or_pad</span>(<span class="pl-s1">image</span>, <span class="pl-c1">224</span>, <span class="pl-c1">224</span>)</pre></div>
<p dir="auto">Ideally the above would work...</p> | 1 |
<p dir="auto">This is with devel as of <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/61d283e2ad58916d640b129cdd0b1ef866bcb332/hovercard" href="https://github.com/ansible/ansible/commit/61d283e2ad58916d640b129cdd0b1ef866bcb332"><tt>61d283e</tt></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat test.yaml
- name: derp
hosts: localhost
gather_facts: no
connection: local
tasks:
- name: derp
command: echo
$ ansible-playbook -i foo.com, test.yaml -vv
PLAY [derp] *******************************************************************
ERROR: host not found: localhost
$ ansible-playbook -i foo.com, test.yaml -vv --list-hosts
playbook: test.yaml
play #1 (derp): host count=1
localhost"><pre class="notranslate"><code class="notranslate">$ cat test.yaml
- name: derp
hosts: localhost
gather_facts: no
connection: local
tasks:
- name: derp
command: echo
$ ansible-playbook -i foo.com, test.yaml -vv
PLAY [derp] *******************************************************************
ERROR: host not found: localhost
$ ansible-playbook -i foo.com, test.yaml -vv --list-hosts
playbook: test.yaml
play #1 (derp): host count=1
localhost
</code></pre></div>
<p dir="auto">When I did some quick digging it appears to be a problem somewhere in attempting to insert variable data. I will do some more digging, but wanted to get the simple reproducer logged here.</p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">docker_container</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0
config file = /home/marcel/Projects/foo/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
config file = /home/marcel/Projects/foo/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.3.0
config file = None
configured module search path = [u'/Users/marcel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/marcel/Projects/bugrq/ansibleDockerContainerHasChanged/lib/python2.7/site-packages/ansible
executable location = /Users/marcel/Projects/bugrq/ansibleDockerContainerHasChanged/bin/ansible
python version = 2.7.14 (default, Feb 15 2018, 23:05:14) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.3.0
config file = None
configured module search path = [u'/Users/marcel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /Users/marcel/Projects/bugrq/ansibleDockerContainerHasChanged/lib/python2.7/site-packages/ansible
executable location = /Users/marcel/Projects/bugrq/ansibleDockerContainerHasChanged/bin/ansible
python version = 2.7.14 (default, Feb 15 2018, 23:05:14) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
</code></pre></div>
<p dir="auto">but as I see the code in doubt is the same for ansible 2.4 and 2.5</p>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
hash_behaviour = merge
display_skipped_hosts = False
display_args_to_stdout = False
retry_files_enabled = False # Do not create them
record_host_keys = False
host_key_checking = False
callback_whitelist = profile_tasks
## ansible 2.1 https://github.com/ansible/ansible/blob/7f30324/docsite/rst/faq.rst#how-do-i-disable-cowsay
nocows=1"><pre class="notranslate"><code class="notranslate">[defaults]
hash_behaviour = merge
display_skipped_hosts = False
display_args_to_stdout = False
retry_files_enabled = False # Do not create them
record_host_keys = False
host_key_checking = False
callback_whitelist = profile_tasks
## ansible 2.1 https://github.com/ansible/ansible/blob/7f30324/docsite/rst/faq.rst#how-do-i-disable-cowsay
nocows=1
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">using the docker_container playbook, it ignores changes in ENV if only a ENV has been deleted from the list.<br>
It re-creates the container, if an env has been added.<br>
It doesn't touch the container, if an env has been deleted.</p>
<p dir="auto">reproducable with even present or started</p>
<p dir="auto">I doubt, there is an error in<br>
<a href="https://github.com/ansible/ansible/blob/stable-2.3/lib/ansible/modules/cloud/docker/docker_container.py#L1189">https://github.com/ansible/ansible/blob/stable-2.3/lib/ansible/modules/cloud/docker/docker_container.py#L1189</a></p>
<p dir="auto">and it's inner <code class="notranslate">compare_dict</code><br>
<a href="https://github.com/ansible/ansible/blob/stable-2.3/lib/ansible/modules/cloud/docker/docker_container.py#L1327">https://github.com/ansible/ansible/blob/stable-2.3/lib/ansible/modules/cloud/docker/docker_container.py#L1327</a></p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto"><a href="https://gist.github.com/childnode/50295370e2fc79a10847411826210de2">https://gist.github.com/childnode/50295370e2fc79a10847411826210de2</a></p>
<p dir="auto">./build.sh<br>
./start.sh</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">docker container is "changed" even just a ENV has been deleted</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">docker container stays as it is, configuration is not evaluated as being changed for deleted envs</p> | 0 |
<p dir="auto">I know the protected vs. private debate has been coming up several times already, yet my question: is there a reason not to make the <code class="notranslate">Filesystem</code> components <code class="notranslate">toIterator()</code> method <code class="notranslate">protected</code>? I'd like to extend the class in one project and keep the concept of allowing strings, arrays or any Traversables to be passed.</p> | <p dir="auto">There are quite a number of dependencies in symfony/framework-bundle that should be optional.</p>
<ol dir="auto">
<li>symfony/asset</li>
</ol>
<p dir="auto">Don't need it when building an app without GUI.</p>
<ol start="2" dir="auto">
<li>symfony/security-core</li>
</ol>
<p dir="auto">Don't need when I don't want to include any sort of access control</p>
<ol start="3" dir="auto">
<li>symfony/security-csrf</li>
</ol>
<p dir="auto">Don't need it unless I have forms. Which is an optional requirement in the form (pardon the pun) of symfony/form. Even if you keep security-core, this should go unless you have symfony-form.</p>
<ol start="4" dir="auto">
<li>doctrine/annotations</li>
</ol>
<p dir="auto">I may not want to use annotations.</p>
<ol start="5" dir="auto">
<li>symfony/translation</li>
</ol>
<p dir="auto">I might not care about translations</p>
<ol start="6" dir="auto">
<li>symfony/stopwatch</li>
</ol>
<p dir="auto">Why is this not in require-dev?</p>
<ol start="7" dir="auto">
<li>symfony/templating</li>
</ol>
<p dir="auto">Again, without a GUI I don't really need this.</p>
<p dir="auto">Anyone sharing this opinion or should I create my own symfony-minimal-framework-bundle if I want something less 'standard distribution'-like?</p>
<p dir="auto">Possible solution would be extracting the other deps into something like symfony/core-framework-bundle and have symfony/framework-bundle depend on that. Then packages depending on framework-bundle would not suddenly have to deal with missing deps.</p> | 0 |
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.6.10</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Running: OS X<br>
Managing: Ubuntu 13.10</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Running the <code class="notranslate">GATHERING FACTS</code> command can cause an exception and print a traceback if the managed server is out of disk space.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Set up a server and exhaust the disk space. Run a playbook to gather facts. The traceback generated was:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/Users/maspwr/venv/bin/ansible-playbook", line 317, in <module>
sys.exit(main(sys.argv[1:]))
File "/Users/maspwr/venv/bin/ansible-playbook", line 257, in main
pb.run()
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 323, in run
if not self._run_play(play):
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 624, in _run_play
self._do_setup_step(play)
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 569, in _do_setup_step
accelerate_port=play.accelerate_port,
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1286, in run
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/runner/__init__.py", line 576, in _executor
return ReturnData(host=host, comm_ok=False, result=dict(failed=True, msg=msg))
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/callbacks.py", line 464, in on_unreachable
msg = "fatal: [%s] => %s" % (host, results)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 514: ordinal not in range(128)"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/Users/maspwr/venv/bin/ansible-playbook", line 317, in <module>
sys.exit(main(sys.argv[1:]))
File "/Users/maspwr/venv/bin/ansible-playbook", line 257, in main
pb.run()
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 323, in run
if not self._run_play(play):
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 624, in _run_play
self._do_setup_step(play)
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 569, in _do_setup_step
accelerate_port=play.accelerate_port,
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1286, in run
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/runner/__init__.py", line 576, in _executor
return ReturnData(host=host, comm_ok=False, result=dict(failed=True, msg=msg))
File "/Users/maspwr/venv/lib/python2.7/site-packages/ansible/callbacks.py", line 464, in on_unreachable
msg = "fatal: [%s] => %s" % (host, results)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 514: ordinal not in range(128)
</code></pre></div>
<p dir="auto">Setting a breakpoint on line 576 in <code class="notranslate">/Users/maspwr/venv/lib/python2.7/site-packages/ansible/runner/__init__.py</code> and doing a <code class="notranslate">p msg</code> shows this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command was: mkdir -p $HOME/.ansible/tmp/ansible-tmp-1406922950.16-11753546351226 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1406922950.16-11753546351226 && echo $HOME/.ansible/tmp/ansible-tmp-1406922950.16-11753546351226, exited with result 1: mkdir: cannot create directory \xe2\x80\x98/home/comprehend/.ansible/tmp/ansible-tmp-1406922950.16-11753546351226\xe2\x80\x99: No space left on device\r\n'"><pre class="notranslate"><code class="notranslate">'Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command was: mkdir -p $HOME/.ansible/tmp/ansible-tmp-1406922950.16-11753546351226 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1406922950.16-11753546351226 && echo $HOME/.ansible/tmp/ansible-tmp-1406922950.16-11753546351226, exited with result 1: mkdir: cannot create directory \xe2\x80\x98/home/comprehend/.ansible/tmp/ansible-tmp-1406922950.16-11753546351226\xe2\x80\x99: No space left on device\r\n'
</code></pre></div>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">If there was no space left on the target machine, I'd expect any error generated to be displayed as such instead of ansible crashing due to a <code class="notranslate">UnicodeDecodeError</code>.</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">Ansible crashes with the above traceback.</p> | <h5 dir="auto">Issue Type: Bug Report</h5>
<h5 dir="auto">Ansible Version: ansible 1.8.4</h5>
<h5 dir="auto">Ansible Configuration: Nothing</h5>
<h5 dir="auto">Environment: Darwin redacted 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64</h5>
<h5 dir="auto">Summary:</h5>
<p dir="auto">When resolving a variable from <code class="notranslate">another_host</code> via <code class="notranslate">hostvars</code> - if that variable is built up from other variables, those are resolved in the content of the <code class="notranslate">current_host</code> instead of <code class="notranslate">another_host</code></p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Please see <a href="https://github.com/dwt/ansible-reproduction-variable-resolution">https://github.com/dwt/ansible-reproduction-variable-resolution</a> for a reduction.</p>
<p dir="auto">Calling that playbook will demonstrate the problem in the output.</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">Using <code class="notranslate">hostvars</code> should not change the way variables are evaluated, as that means you can't really get the variables from another host as he would see them, which makes this feature rather dangerous. Instead it should allow to access variables as if another host would access them.</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">If a variable is a composition of other variables, accessing it through <code class="notranslate">hostvars</code> will resolve those other variables in the context of the current host, thus giving unexpected (and sometimes dangerous) results.</p> | 0 |
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mdo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mdo">@mdo</a> Two suggestions for the upcoming version:</p>
<ol dir="auto">
<li>A page similar to <a href="http://html5up.net/twenty" rel="nofollow">http://html5up.net/twenty</a> (click to slide within page)</li>
<li><del>A Gmaps page. (this actually is more important as many people have to figure out how to combine the libraries together)</del></li>
</ol>
<p dir="auto">Thanks! :)</p> | <p dir="auto">Template based off of example here: <a href="http://twitter.github.com/bootstrap/examples/fluid.html">http://twitter.github.com/bootstrap/examples/fluid.html</a></p>
<p dir="auto">If a <code class="notranslate">href</code> attribute is added to the anchor tag in the <code class="notranslate">.hero-unit</code>, the button text color ends up being <code class="notranslate">#666</code> instead of white.</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/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.2</li>
<li>Operating System version: mac</li>
<li>Java version: JDK8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ConfigCenterConfig.java
@Parameter(key = CONFIG_NAMESPACE_KEY, useKeyAsProperty = false)
public String getNamespace() {
return namespace;
}"><pre class="notranslate"><span class="pl-smi">ConfigCenterConfig</span>.<span class="pl-smi">java</span>
<span class="pl-c1">@</span><span class="pl-c1">Parameter</span>(<span class="pl-s1">key</span> = <span class="pl-c1">CONFIG_NAMESPACE_KEY</span>, <span class="pl-s1">useKeyAsProperty</span> = <span class="pl-c1">false</span>)
<span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-s1">getNamespace</span>() {
<span class="pl-k">return</span> <span class="pl-s1">namespace</span>;
}</pre></div>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="AbstractConfig.java
Parameter parameter = method.getAnnotation(Parameter.class);
if (parameter != null && parameter.key().length() > 0 && parameter.useKeyAsProperty()) {
key = parameter.key();
} else {
key = prop;
}"><pre class="notranslate"><span class="pl-smi">AbstractConfig</span>.<span class="pl-smi">java</span>
<span class="pl-s1">Parameter</span> <span class="pl-s1">parameter</span> = <span class="pl-s1">method</span>.<span class="pl-en">getAnnotation</span>(<span class="pl-smi">Parameter</span>.<span class="pl-k">class</span>);
<span class="pl-k">if</span> (<span class="pl-s1">parameter</span> != <span class="pl-c1">null</span> && <span class="pl-s1">parameter</span>.<span class="pl-en">key</span>().<span class="pl-en">length</span>() > <span class="pl-c1">0</span> && <span class="pl-s1">parameter</span>.<span class="pl-en">useKeyAsProperty</span>()) {
<span class="pl-s1">key</span> = <span class="pl-s1">parameter</span>.<span class="pl-en">key</span>();
} <span class="pl-k">else</span> {
<span class="pl-s1">key</span> = <span class="pl-s1">prop</span>;
}</pre></div>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ZookeeperDynamicConfiguration.java
rootPath = "/" + url.getParameter(CONFIG_NAMESPACE_KEY, DEFAULT_GROUP) + "/config";"><pre class="notranslate"><span class="pl-smi">ZookeeperDynamicConfiguration</span>.<span class="pl-smi">java</span>
<span class="pl-s1">rootPath</span> = <span class="pl-s">"/"</span> + <span class="pl-s1">url</span>.<span class="pl-en">getParameter</span>(<span class="pl-c1">CONFIG_NAMESPACE_KEY</span>, <span class="pl-c1">DEFAULT_GROUP</span>) + <span class="pl-s">"/config"</span>;</pre></div>
<h4 dir="auto">问题</h4>
<blockquote>
<p dir="auto">在dubbo-admin中定义了黑白名单,设置了分组<code class="notranslate">admin.registry.group=henry1</code>,保存到zk<code class="notranslate">/root/henry1/config</code>下</p>
</blockquote>
<blockquote>
<p dir="auto">设置属性<code class="notranslate">dubbo.config-center.group=henry1 dubbo.config-center.namespace=henry1</code> consumer端启动,但是在<code class="notranslate">ZookeeperDynamicConfiguration</code>取出来的值发现是<code class="notranslate">dubbo</code>,导致规则获取失败。</p>
</blockquote>
<h4 dir="auto">原因</h4>
<blockquote>
<p dir="auto">因为<code class="notranslate">getNamespace</code>的<code class="notranslate">useKeyAsProperty</code>为false,在<code class="notranslate">AbstractConfig</code>解析时取的key为<code class="notranslate">namespace</code>不是<code class="notranslate">config.namespace</code>。在<code class="notranslate">ZookeeperDynamicConfiguration</code>取<code class="notranslate">CONFIG_NAMESPACE_KEY</code>为NULL</p>
</blockquote>
<blockquote>
<p dir="auto">是否需要把<code class="notranslate">getNamespace</code>的<code class="notranslate">useKeyAsProperty</code>改为true,或者是修改<code class="notranslate">ZookeeperDynamicConfiguration</code>的取值key</p>
</blockquote>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<blockquote>
<p dir="auto">希望在<code class="notranslate">ZookeeperDynamicConfiguration</code>可以获取到值,而不是默认值</p>
</blockquote> | <h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.1</li>
<li>Dubbo Admin version: 0.2.0</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">在dubbo-admin中添加权重设置和负载均衡设置<br>
在zookeeper里面能看到设置的结果在config下面<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26532831/56106546-4b8eb700-5f74-11e9-8108-ffde0fb8128b.png"><img width="1342" alt="a000" src="https://user-images.githubusercontent.com/26532831/56106546-4b8eb700-5f74-11e9-8108-ffde0fb8128b.png" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26532831/56106550-51849800-5f74-11e9-8ec6-a866f850206f.png"><img width="965" alt="a1111" src="https://user-images.githubusercontent.com/26532831/56106550-51849800-5f74-11e9-8ec6-a866f850206f.png" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26532831/56106559-577a7900-5f74-11e9-9ece-441442a42814.png"><img width="1617" alt="a2222" src="https://user-images.githubusercontent.com/26532831/56106559-577a7900-5f74-11e9-9ece-441442a42814.png" style="max-width: 100%;"></a></p>
<p dir="auto">但是实际dubbo在调用时,并没有从config下面获取配置,仍然从服务接口下面的配置中获取,到账新的配置不生效,而且从服务接口拿配置,也没有应用级一说,仍是服务级</p> | 1 |
<p dir="auto">I'm in the process of trying to get <code class="notranslate">jl_init</code> to work without having to provide an argument for the general embedding case.</p>
<p dir="auto">My current patch works on windows because <code class="notranslate">libjulia.dll</code> (whose path I'm using to set julia_home) lives in the bin directory there, but breaks on *nix because there it lives in a <code class="notranslate">lib</code> directory.</p>
<p dir="auto">Of course, it's easy enough to patch the <code class="notranslate">lib</code> path to get the <code class="notranslate">bin</code> path, but it begs the question as to whether <code class="notranslate">julia_home</code> should just point to a level higher.</p>
<p dir="auto">One fact in favor of redefining <code class="notranslate">julia_home</code> to point a level higher: the majority of references to it begin by appending "..".</p> | <p dir="auto">It would be great if there are methods to get <code class="notranslate">CFLAGS</code> and <code class="notranslate">LDFLAGS</code> to link against <code class="notranslate">libjulia</code>. In R, there are<br>
<code class="notranslate">R CMD config</code> to get <code class="notranslate">CPPFLAGS</code> and <code class="notranslate">LDFLAGS</code>. So far, I can only find <code class="notranslate">JULIA_HOME</code>.</p> | 1 |
<p dir="auto">FYI. we should add a secret manager to store the pull secrets for different namespaces. Thus for duplicate secrets, we have no need to talk to api server. Actually I am working on this manager, but I have no idea about when to remove a secret.</p> | <p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
v1.4.0</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: GCE + custome kubernetes</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): "CoreOS 1068.8.0 (MoreOS)"</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 4.6.3-coreos</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
kube-scheduler entered keeps entering restarting due to nil pointer exception. It seems like it happens when a node or pod gets removed from the cluster.<br>
Here is the journal output for the kube-scheduler</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="event.go:217] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"service1-4068773324-24s7s", UID:"1268223f-864d-11e6-80e7-42010a140003", APIVersion:"v1", ResourceVersion:"47435", FieldPath:""}): type: 'Normal' reason: 'Scheduled' Successfully assigned service1-4068773324-24s7s to h-stg-wk1-3jvo
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
event.go:217] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"service2-3685785901-549bk", UID:"12b068d6-864d-11e6-80e7-42010a140003", APIVersion:"v1", ResourceVersion:"47449", FieldPath:""}): type: 'Normal' reason: 'Scheduled' Successfully assigned service2-3685785901-549bk to h-stg-wk1-vkym
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
event.go:217] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"service3-1539738932-4zdq2", UID:"8ffd5a12-864d-11e6-80e7-42010a140003", APIVersion:"v1", ResourceVersion:"50531", FieldPath:""}): type: 'Normal' reason: 'Scheduled' Successfully assigned service3-1539738932-4zdq2 to h-stg-wk1-y8gt
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
runtime.go:64] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:70
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:63
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:49
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/asm_amd64.s:479
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/panic.go:458
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/panic.go:62
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/sigpanic_unix.go:24
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/node_info.go:192
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:229
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:252
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:196
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:134
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:182
Sep 29 14:04:15 node-123 docker[15022]: <autogenerated>:52
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:318
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/delta_fifo.go:420
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:126
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:102
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:84
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:85
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:47
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:102
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/asm_amd64.s:2086
Sep 29 14:04:15 node-123 docker[15022]: panic: runtime error: invalid memory address or nil pointer dereference [recovered]
Sep 29 14:04:15 node-123 docker[15022]: panic: runtime error: invalid memory address or nil pointer dereference
Sep 29 14:04:15 node-123 docker[15022]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x1aa376c]
Sep 29 14:04:15 node-123 docker[15022]: goroutine 16 [running]:
Sep 29 14:04:15 node-123 docker[15022]: panic(0x2ccdf20, 0xc420016050)
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/panic.go:500 +0x1a1
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:56 +0x126
Sep 29 14:04:15 node-123 docker[15022]: panic(0x2ccdf20, 0xc420016050)
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/panic.go:458 +0x243
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache.(*NodeInfo).removePod(0x0, 0xc420eacc80, 0x0, 0x0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/node_info.go:192 +0x7c
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache.(*schedulerCache).removePod(0xc420ce3d40, 0xc420eacc80, 0xc4210509a0, 0x1d)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:229 +0x88
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache.(*schedulerCache).RemovePod(0xc420ce3d40, 0xc420eacc80, 0x0, 0x0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:252 +0x22d
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/factory.(*ConfigFactory).deletePodFromCache(0xc42009ebb0, 0x31e0340, 0xc420eacc80)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:196 +0xa9
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/factory.(*ConfigFactory).(k8s.io/kubernetes/plugin/pkg/scheduler/factory.deletePodFromCache)-fm(0x31e0340, 0xc420eacc80)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:134 +0x3e
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.ResourceEventHandlerFuncs.OnDelete(0xc4203f31d0, 0xc4203f31f0, 0xc4203f3200, 0x31e0340, 0xc420eacc80)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:182 +0x49
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*ResourceEventHandlerFuncs).OnDelete(0xc420d5cb20, 0x31e0340, 0xc420eacc80)
Sep 29 14:04:15 node-123 docker[15022]: <autogenerated>:52 +0x78
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.NewIndexerInformer.func1(0x2d35cc0, 0xc421050960, 0xc421050960, 0x2d35cc0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:318 +0x4ee
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*DeltaFIFO).Pop(0xc42009ec60, 0xc4200152c0, 0x0, 0x0, 0x0, 0x0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/delta_fifo.go:420 +0x22a
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*Controller).processLoop(0xc420150150)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:126 +0x3c
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*Controller).(k8s.io/kubernetes/pkg/client/cache.processLoop)-fm()
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:102 +0x2a
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/util/wait.JitterUntil.func1(0xc4210d7f70)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:84 +0x19
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/util/wait.JitterUntil(0xc4210d7f70, 0x3b9aca00, 0x0, 0x2b48701, 0xc420d58780)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:85 +0xad
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/util/wait.Until(0xc4210d7f70, 0x3b9aca00, 0xc420d58780)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:47 +0x4d
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*Controller).Run(0xc420150150, 0xc420d58780)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:102 +0x1af
Sep 29 14:04:15 node-123 docker[15022]: created by k8s.io/kubernetes/plugin/pkg/scheduler/factory.(*ConfigFactory).Run
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:391 +0x12f
Sep 29 14:04:15 node-123 systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 29 14:04:15 node-123 systemd[1]: [email protected]: Unit entered failed state.
Sep 29 14:04:15 node-123 systemd[1]: [email protected]: Failed with result 'exit-code'."><pre class="notranslate"><code class="notranslate">event.go:217] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"service1-4068773324-24s7s", UID:"1268223f-864d-11e6-80e7-42010a140003", APIVersion:"v1", ResourceVersion:"47435", FieldPath:""}): type: 'Normal' reason: 'Scheduled' Successfully assigned service1-4068773324-24s7s to h-stg-wk1-3jvo
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
event.go:217] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"service2-3685785901-549bk", UID:"12b068d6-864d-11e6-80e7-42010a140003", APIVersion:"v1", ResourceVersion:"47449", FieldPath:""}): type: 'Normal' reason: 'Scheduled' Successfully assigned service2-3685785901-549bk to h-stg-wk1-vkym
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
event.go:217] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"service3-1539738932-4zdq2", UID:"8ffd5a12-864d-11e6-80e7-42010a140003", APIVersion:"v1", ResourceVersion:"50531", FieldPath:""}): type: 'Normal' reason: 'Scheduled' Successfully assigned service3-1539738932-4zdq2 to h-stg-wk1-y8gt
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
listers.go:68] can not retrieve list of objects using index : object has no meta: object does not implement the Object interfaces
runtime.go:64] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:70
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:63
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:49
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/asm_amd64.s:479
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/panic.go:458
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/panic.go:62
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/sigpanic_unix.go:24
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/node_info.go:192
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:229
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:252
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:196
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:134
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:182
Sep 29 14:04:15 node-123 docker[15022]: <autogenerated>:52
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:318
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/delta_fifo.go:420
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:126
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:102
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:84
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:85
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:47
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:102
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/asm_amd64.s:2086
Sep 29 14:04:15 node-123 docker[15022]: panic: runtime error: invalid memory address or nil pointer dereference [recovered]
Sep 29 14:04:15 node-123 docker[15022]: panic: runtime error: invalid memory address or nil pointer dereference
Sep 29 14:04:15 node-123 docker[15022]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x1aa376c]
Sep 29 14:04:15 node-123 docker[15022]: goroutine 16 [running]:
Sep 29 14:04:15 node-123 docker[15022]: panic(0x2ccdf20, 0xc420016050)
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/panic.go:500 +0x1a1
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:56 +0x126
Sep 29 14:04:15 node-123 docker[15022]: panic(0x2ccdf20, 0xc420016050)
Sep 29 14:04:15 node-123 docker[15022]: /usr/lib/go/src/runtime/panic.go:458 +0x243
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache.(*NodeInfo).removePod(0x0, 0xc420eacc80, 0x0, 0x0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/node_info.go:192 +0x7c
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache.(*schedulerCache).removePod(0xc420ce3d40, 0xc420eacc80, 0xc4210509a0, 0x1d)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:229 +0x88
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache.(*schedulerCache).RemovePod(0xc420ce3d40, 0xc420eacc80, 0x0, 0x0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache/cache.go:252 +0x22d
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/factory.(*ConfigFactory).deletePodFromCache(0xc42009ebb0, 0x31e0340, 0xc420eacc80)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:196 +0xa9
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/plugin/pkg/scheduler/factory.(*ConfigFactory).(k8s.io/kubernetes/plugin/pkg/scheduler/factory.deletePodFromCache)-fm(0x31e0340, 0xc420eacc80)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:134 +0x3e
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.ResourceEventHandlerFuncs.OnDelete(0xc4203f31d0, 0xc4203f31f0, 0xc4203f3200, 0x31e0340, 0xc420eacc80)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:182 +0x49
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*ResourceEventHandlerFuncs).OnDelete(0xc420d5cb20, 0x31e0340, 0xc420eacc80)
Sep 29 14:04:15 node-123 docker[15022]: <autogenerated>:52 +0x78
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.NewIndexerInformer.func1(0x2d35cc0, 0xc421050960, 0xc421050960, 0x2d35cc0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:318 +0x4ee
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*DeltaFIFO).Pop(0xc42009ec60, 0xc4200152c0, 0x0, 0x0, 0x0, 0x0)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/delta_fifo.go:420 +0x22a
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*Controller).processLoop(0xc420150150)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:126 +0x3c
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*Controller).(k8s.io/kubernetes/pkg/client/cache.processLoop)-fm()
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:102 +0x2a
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/util/wait.JitterUntil.func1(0xc4210d7f70)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:84 +0x19
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/util/wait.JitterUntil(0xc4210d7f70, 0x3b9aca00, 0x0, 0x2b48701, 0xc420d58780)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:85 +0xad
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/util/wait.Until(0xc4210d7f70, 0x3b9aca00, 0xc420d58780)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/util/wait/wait.go:47 +0x4d
Sep 29 14:04:15 node-123 docker[15022]: k8s.io/kubernetes/pkg/client/cache.(*Controller).Run(0xc420150150, 0xc420d58780)
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/pkg/client/cache/controller.go:102 +0x1af
Sep 29 14:04:15 node-123 docker[15022]: created by k8s.io/kubernetes/plugin/pkg/scheduler/factory.(*ConfigFactory).Run
Sep 29 14:04:15 node-123 docker[15022]: /home/dima/Private/Work/k8s/src/k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:391 +0x12f
Sep 29 14:04:15 node-123 systemd[1]: [email protected]: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 29 14:04:15 node-123 systemd[1]: [email protected]: Unit entered failed state.
Sep 29 14:04:15 node-123 systemd[1]: [email protected]: Failed with result 'exit-code'.
</code></pre></div>
<p dir="auto">Based on the source code it looks like here:<br>
<a href="https://github.com/kubernetes/kubernetes/blob/release-1.4/plugin/pkg/scheduler/schedulercache/cache.go#L228">https://github.com/kubernetes/kubernetes/blob/release-1.4/plugin/pkg/scheduler/schedulercache/cache.go#L228</a></p>
<p dir="auto">we get pod from cache without checking if it actually exists there. Since it is a pointer we can call <code class="notranslate">removePod</code> on it. But once inside <a href="https://github.com/kubernetes/kubernetes/blob/release-1.4/plugin/pkg/scheduler/schedulercache/node_info.go#L192">https://github.com/kubernetes/kubernetes/blob/release-1.4/plugin/pkg/scheduler/schedulercache/node_info.go#L192</a> we try to get filed of a nil pointer and so it crashes.</p>
<p dir="auto"><strong>What you expected to happen</strong>: Expected not to get a nil pointer exception.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
This is also related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174743861" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/31968" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/31968/hovercard" href="https://github.com/kubernetes/kubernetes/issues/31968">#31968</a> but this time exception is in a different place. Also it looks like this might cause some of our pods stay in <code class="notranslate">pending</code> state indefinitely but I am not sure.</p> | 0 |
<p dir="auto">I ran into a bug today where including angular2.min.js would result in my code failing but using angular2.js would run fine.</p>
<p dir="auto">Example plunkr here: <a href="http://plnkr.co/edit/599t9vXIoDWvERnvCTWu?p=preview" rel="nofollow">http://plnkr.co/edit/599t9vXIoDWvERnvCTWu?p=preview</a></p>
<p dir="auto">In it's current state the [(ngModel)] bind fails so the text box gets no data, but if you switch the page to load angular2.js instead of angular2.min.js the text box will load just fine.</p> | <p dir="auto">When using minified bundles with SystemJS, and a simple snippet like this</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <template ngFor #item [ngForOf]="items" #i="index">
<li>{{i}}</li>
<li *ngIf="i % 2 == 0">number is even</li>
</template>"><pre class="notranslate"><code class="notranslate"> <template ngFor #item [ngForOf]="items" #i="index">
<li>{{i}}</li>
<li *ngIf="i % 2 == 0">number is even</li>
</template>
</code></pre></div>
<p dir="auto">Will throw</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: this.directive_0_0.ngDoCheck is not a function"><pre class="notranslate"><code class="notranslate">TypeError: this.directive_0_0.ngDoCheck is not a function
</code></pre></div>
<p dir="auto">This is only reproducible with minified bundles, non-minified work correctly.</p>
<p dir="auto">As an example check this <a href="http://plnkr.co/edit/ZWiQqw3nR8xS1MRrpTry?p=preview" rel="nofollow">plnkr</a> (took it from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125250401" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/6304" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/6304/hovercard?comment_id=170200989&comment_type=issue_comment" href="https://github.com/angular/angular/issues/6304#issuecomment-170200989">#6304 (comment)</a>). To reproduce switch between minified and unminified bundles.</p>
<p dir="auto">This is also reproducible with Webpack using this line in the config</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" plugins : [
new webpack.optimize.UglifyJsPlugin()
],"><pre class="notranslate"><code class="notranslate"> plugins : [
new webpack.optimize.UglifyJsPlugin()
],
</code></pre></div>
<p dir="auto">Am I missing something?</p> | 1 |
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.3</p>
<p dir="auto"><strong>Description</strong><br>
URL parsing fails. For example:<br>
<code class="notranslate">https://nova.laravel.com/password/reset</code><br>
This resolves correctly.<br>
However <code class="notranslate">https://nova.laravel.com//password/reset</code> this results in a 404. Which could be seen as a user error.<br>
But <code class="notranslate">https://nova.laravel.com//foobar/password/reset</code> also resolves, however incorrectly. Clearly signaling it as a bug.</p>
<p dir="auto"><strong>How to reproduce</strong><br>
Go to <code class="notranslate">https://nova.laravel.com//foobar/password/reset</code>. Or in any Laravel/Symfony project add an extra <code class="notranslate">/</code> after the host.</p>
<p dir="auto"><strong>Possible Solution</strong><br>
I added a possible solution in this PR.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="391730932" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/29631" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/29631/hovercard" href="https://github.com/symfony/symfony/pull/29631">#29631</a></p> | <table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>yes?</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>all</td>
</tr>
</tbody>
</table>
<p dir="auto">I am working on application which define different route parameters depending on subdomain (for simplicity lets call them languages)</p>
<p dir="auto">For example there are <code class="notranslate">en</code>, <code class="notranslate">pl</code>, <code class="notranslate">gb</code> sub domains. Which may override some global routes (defined in domain routing)</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#routing.yml
_domain:
resource: routing_domain.yml
_subdomain:
resource: routing_subdomain.yml"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>routing.yml</span>
<span class="pl-ent">_domain</span>:
<span class="pl-ent">resource</span>: <span class="pl-s">routing_domain.yml</span>
<span class="pl-ent">_subdomain</span>:
<span class="pl-ent">resource</span>: <span class="pl-s">routing_subdomain.yml</span></pre></div>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#routing_domain.yml
app_default_index:
path: /{language}/index
defaults: { _controller: AppBundle:Default:index }
methods: ['GET']
requirements:
language: 'en'
app_default_catch_all:
path: /{language}/{slug}
defaults: { _controller: AppBundle:Default:catchAll }
methods: ['GET']
"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>routing_domain.yml</span>
<span class="pl-ent">app_default_index</span>:
<span class="pl-ent">path</span>: <span class="pl-s">/{language}/index</span>
<span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AppBundle:Default:index }</span>
<span class="pl-ent">methods</span>: <span class="pl-s">['GET']</span>
<span class="pl-ent">requirements</span>:
<span class="pl-ent">language</span>: <span class="pl-s"><span class="pl-pds">'</span>en<span class="pl-pds">'</span></span>
<span class="pl-ent">app_default_catch_all</span>:
<span class="pl-ent">path</span>: <span class="pl-s">/{language}/{slug}</span>
<span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AppBundle:Default:catchAll }</span>
<span class="pl-ent">methods</span>: <span class="pl-s">['GET']</span>
</pre></div>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#routing_subdomain.yml
app_default_index:
path: /{language}/index
defaults: { _controller: AppBundle:Default:index }
methods: ['GET']
requirements:
language: 'en|gb'
"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>routing_subdomain.yml</span>
<span class="pl-ent">app_default_index</span>:
<span class="pl-ent">path</span>: <span class="pl-s">/{language}/index</span>
<span class="pl-ent">defaults</span>: <span class="pl-s">{ _controller: AppBundle:Default:index }</span>
<span class="pl-ent">methods</span>: <span class="pl-s">['GET']</span>
<span class="pl-ent">requirements</span>:
<span class="pl-ent">language</span>: <span class="pl-s"><span class="pl-pds">'</span>en|gb<span class="pl-pds">'</span></span>
</pre></div>
<p dir="auto">Because of priority of sub domain routes it has to be imported last (To override <code class="notranslate">app_default_index</code> from <code class="notranslate">routing_domain.yaml</code>)</p>
<p dir="auto">Problem with this approach is that it puts <code class="notranslate">app_default_index</code> on the bottom of routes priority, causing that <code class="notranslate">app_default_catch_all</code> is before <code class="notranslate">app_default_index</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ----------------------- -------- -------- ------ --------------------
Name Method Scheme Host Path
----------------------- -------- -------- ------ --------------------
app_default_catch_all GET ANY ANY /{language}/{slug}
app_default_index GET ANY ANY /{language}/index
----------------------- -------- -------- ------ -------------------- "><pre class="notranslate"><code class="notranslate"> ----------------------- -------- -------- ------ --------------------
Name Method Scheme Host Path
----------------------- -------- -------- ------ --------------------
app_default_catch_all GET ANY ANY /{language}/{slug}
app_default_index GET ANY ANY /{language}/index
----------------------- -------- -------- ------ --------------------
</code></pre></div>
<p dir="auto">It there any way that I am able to override <code class="notranslate">app_default_index</code> route, but keep its initial position?<br>
I've found an place where this logic is set <code class="notranslate">https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/RouteCollection.php#L125</code></p>
<blockquote>
<p dir="auto">// we need to remove all routes with the same names first because just replacing them<br>
// would not place the new route at the end of the merged array.</p>
</blockquote>
<p dir="auto">What is an reason that route should be put on end of array? How can I solve this problem, without using dynamic route loader and keep everything as simple as possible?</p> | 0 |
<p dir="auto">I have two GPUs installed, with the same script, if I select to run on RTX 2080 Ti, the error occurs, and if I run on GTX 1080 Ti, it works right.</p>
<p dir="auto">`~/Molecule_Optimizer.py in forward(self, atom_list, bond_list, atom_degree_list, bond_degree_list, atom_mask)<br>
33 atom_mask = atom_mask.unsqueeze(2)<br>
34 batch_size,mol_length,num_atom_feat = atom_list.size()<br>
---> 35 atom_feature = self.dropout(self.atom_fc(atom_list))<br>
36<br>
37 bond_neighbor = [bond_list[i][bond_degree_list[i]] for i in range(batch_size)]</p>
<p dir="auto">~/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py in <strong>call</strong>(self, *input, **kwargs)<br>
475 result = self._slow_forward(*input, **kwargs)<br>
476 else:<br>
--> 477 result = self.forward(*input, **kwargs)<br>
478 for hook in self._forward_hooks.values():<br>
479 hook_result = hook(self, input, result)</p>
<p dir="auto">~/anaconda3/lib/python3.6/site-packages/torch/nn/modules/linear.py in forward(self, input)<br>
53<br>
54 def forward(self, input):<br>
---> 55 return F.linear(input, self.weight, self.bias)<br>
56<br>
57 def extra_repr(self):</p>
<p dir="auto">~/anaconda3/lib/python3.6/site-packages/torch/nn/functional.py in linear(input, weight, bias)<br>
1024 return torch.addmm(bias, input, weight.t())<br>
1025<br>
-> 1026 output = input.matmul(weight.t())<br>
1027 if bias is not None:<br>
1028 output += bias</p>
<p dir="auto">RuntimeError: cublas runtime error : the GPU program failed to execute at /opt/conda/conda-bld/pytorch_1533672544752/work/aten/src/THC/THCBlas.cu:249`</p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2>
<p dir="auto">Now the Pytorch cannot support cuda10 directly, so it cannot be run on RTX series GPUs</p>
<h2 dir="auto">Motivation</h2>
<p dir="auto">Just wanna get the Pytorch run on my RTX 2080ti asap, thx</p> | 1 |
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Request a feature</p>
<p dir="auto">Per some discussion today with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tomocchino/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tomocchino">@tomocchino</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thejameskyle/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thejameskyle">@thejameskyle</a>, I'd like a non-Flow mechanism to annotate what type(s) of elements a component expects to render.</p>
<p dir="auto">Here's some examples, with Flow types for comparison (that I realize may not be currently checked in Flow, yet):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function Foo({ yes }){
return yes ? <Bar /> : <div />;
}
Foo.renderTypes = [Bar, 'div'];
class Bar extends React.Component {
static renderTypes = [Button];
render() {
return <Button />;
}
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-kos">{</span> yes <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">yes</span> ? <span class="pl-c1"><</span><span class="pl-ent">Bar</span> <span class="pl-c1">/</span><span class="pl-c1">></span> : <span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-v">Foo</span><span class="pl-kos">.</span><span class="pl-c1">renderTypes</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-v">Bar</span><span class="pl-kos">,</span> <span class="pl-s">'div'</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">class</span> <span class="pl-v">Bar</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span>
<span class="pl-k">static</span> <span class="pl-c1">renderTypes</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-v">Button</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1"><</span><span class="pl-ent">Button</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function Foo({ yes }): React.Element<Bar | 'div'> {
return yes ? <Bar /> : <div />;
}
class Bar extends React.Component {
render(): React.Element<Button> {
return <Button />;
}
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">Foo</span><span class="pl-kos">(</span><span class="pl-kos">{</span> yes <span class="pl-kos">}</span><span class="pl-kos">)</span>: <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-v">Element</span><span class="pl-c1"><</span><span class="pl-v">Bar</span> <span class="pl-c1">|</span> <span class="pl-s">'div'</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-s1">return</span> <span class="pl-s1">yes</span> ? <span class="pl-c1"><</span><span class="pl-ent">Bar</span> <span class="pl-c1">/</span><span class="pl-c1">></span> : <span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-v">Bar</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span>
<span class="pl-c1">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-v">Element</span><span class="pl-c1"><</span><span class="pl-ent">Button</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-s1">return</span> <span class="pl-c1"><</span><span class="pl-v">Button</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Inside <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/airbnb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/airbnb">@airbnb</a>, we have lots of use cases where we have container components in a separate package - say, a <code class="notranslate"><ButtonRow></code>, and we have intentionally restrictive propTypes on its <code class="notranslate">children</code> prop, to only allow a <code class="notranslate">Button</code> (also in the same package). However, in an app that consumes this component library package, a dev may want to create a <code class="notranslate"><SpecialProductButton /></code> that in turn renders a <code class="notranslate"><Button></code> - however, they're unable to pass it into <code class="notranslate">ButtonRow</code> (our propType warnings fail tests), even though conceptually it should be permitted.</p>
<p dir="auto">Having <code class="notranslate">.renderTypes</code> would allow us to widen our <code class="notranslate">children</code> propType to allow for either a <code class="notranslate"><Button></code>, or <em>anything that renders a <code class="notranslate"><Button></code></em>, which helps us maintain separation of concerns (the package doesn't have to know about <code class="notranslate"><SpecialProductButton></code> to accept it) as well as maintain strictness (the package doesn't have to allow any wacky element inside <code class="notranslate"><ButtonRow></code>).</p>
<p dir="auto">I imagine the implementation to be:</p>
<ol dir="auto">
<li>when render() is called or an SFC is invoked, (in async rendering, it'd be when the component resolves, i suppose)</li>
<li>in development only and if <code class="notranslate">.renderTypes</code> exists on the component</li>
<li>evaluate the equivalent of <a href="https://www.npmjs.com/package/airbnb-prop-types" rel="nofollow"><code class="notranslate">elementType</code></a><code class="notranslate">(...Component.renderTypes)({ children: renderedValue }, 'children', ...)</code>,</li>
<li>just like propTypes, log the error if one is returned</li>
</ol>
<p dir="auto">(cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spicyj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spicyj">@spicyj</a>)</p> | <p dir="auto"><em>feature</em></p>
<blockquote>
<p dir="auto">Warning: A component is <code class="notranslate">contentEditable</code> and contains <code class="notranslate">children</code> managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.</p>
</blockquote>
<p dir="auto">It would help heaps if I would know <em>which</em> component is causing this.</p> | 0 |
<p dir="auto">Hi, we've prepared ourselves for angular2 a while, and decided to use the RC1 version for our new projects. But RC1 is loading hundreds of javascript files. Is this a feature mean to be? Or it will be solved soon? About when?</p>
<p dir="auto">Thank you for your attention.</p> | <p dir="auto"><strong>Steps to reproduce and a minimal demo of the problem</strong></p>
<p dir="auto">create a new A2RC1 app with angular-cli:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ng new blah
cd blah
npm start"><pre class="notranslate"><code class="notranslate">ng new blah
cd blah
npm start
</code></pre></div>
<p dir="auto">load the page with your dev tools open and observe that it submits over 290 xhr requests at startup. beta-14 (from which we just upgraded) loads about 40.</p>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">more than 290 requests. (>600 once our 20-30 client-side classes are added)</p>
<p dir="auto">Many of these requests are duplicated, e.g. exception_handler.js, base_wrapped_exception.js, and collection.js.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto"><em>Far</em> fewer requests.</p>
<p dir="auto"><strong>Other information</strong></p>
<p dir="auto">This many requests is going to KILL us at roll-out time.</p> | 1 |
<pre class="notranslate">The xml package embeds the fields of an anonymous field type onto the outer structure's
XML element. Currently this isn't supported for pointer types though. This should be
fixed.</pre> | <pre class="notranslate"><a href="http://blog.golang.org/2011/06/profiling-go-programs.html" rel="nofollow">http://blog.golang.org/2011/06/profiling-go-programs.html</a> doesn't use the Go 1 'go' tool.
Update this blog post?
Noted from <a href="http://bpowers.github.com/weblog/2013/01/05/optimizing-real-world-go/">http://bpowers.github.com/weblog/2013/01/05/optimizing-real-world-go/</a></pre> | 0 |
<p dir="auto">Where did <code class="notranslate">col-*-push-12</code> classes go? Is there a new way to swap <code class="notranslate">col-*-12</code> elements?</p>
<p dir="auto">I vaguely remember this used to work at some point:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="col-sm-12.col-sm-push-12">a</div>
<div class="col-sm-12.col-sm-pull-12">b</div>"><pre class="notranslate"><code class="notranslate"><div class="col-sm-12.col-sm-push-12">a</div>
<div class="col-sm-12.col-sm-pull-12">b</div>
</code></pre></div>
<p dir="auto">rendered</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="b
a"><pre class="notranslate"><code class="notranslate">b
a
</code></pre></div> | <p dir="auto">I have am using an accordion to display a series of images in carousels, The accordions seem to be working but when I try and open a carousel in one of the accordions they don't size to the area of the carousel. I tried to specify sizes looking at them with firebug and have been unsuccessful. Any suggestions on how to handle this.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" | v class="accordion-group"
.accordion-heading
a.accordion-toggle(data-toggle='collapse', data-parent='#accordion2', href='#collapseThree')
| Collapsible Group Item #3
#collapseThree.accordion-body.collapse
.accordion-inner
#myCarousel.carousel
//
Carousel items
.carousel-inner
.item(some.png')
.item"><pre class="notranslate"><code class="notranslate"> | v class="accordion-group"
.accordion-heading
a.accordion-toggle(data-toggle='collapse', data-parent='#accordion2', href='#collapseThree')
| Collapsible Group Item #3
#collapseThree.accordion-body.collapse
.accordion-inner
#myCarousel.carousel
//
Carousel items
.carousel-inner
.item(some.png')
.item
</code></pre></div>
<p dir="auto">.......</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" //
Carousel nav
a.carousel-control.left(href='#myCarousel', data-slide='prev') ‹
a.carousel-control.right(href='#myCarousel', data-slide='next') ›"><pre class="notranslate"><code class="notranslate"> //
Carousel nav
a.carousel-control.left(href='#myCarousel', data-slide='prev') ‹
a.carousel-control.right(href='#myCarousel', data-slide='next') ›
</code></pre></div> | 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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">elements should be aligned horizontally with homogenous margins/paddings by default in all browsers.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">It's pretty hard to align intput elements horizontally because they have varying margins/paddings by default.<br>
It get's obvious if you have a TextField and Select Field or Switch element side by side and want to have the same behaviour in IE11.<br>
Here is a demo:<br>
<a href="https://codesandbox.io/s/9lwnw4j9ow" rel="nofollow">https://codesandbox.io/s/9lwnw4j9ow</a><br>
Remove comment to see it aligned.<br>
/* remove comment to see it aligned in IE11 + Chrome + FF*/<br>
Margins also depend on margin="normal" of TextField elements.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">It takes a lot of time fixing layout/alignment issus in all browsers.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>^1.0.0-beta.22</td>
</tr>
<tr>
<td>React</td>
<td>^16.0.0</td>
</tr>
<tr>
<td>browser</td>
<td>IE11</td>
</tr>
</tbody>
</table> | <p dir="auto">In the olde version Button had a fullWidth. The textFields have also a fullWidth.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">The Button needs to have a fullWidth option.<br>
Example: <code class="notranslate"><Button fullWidth>Logion</Button></code></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">does not apply</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">does not apply</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.17</td>
</tr>
<tr>
<td>React</td>
<td>15.5.4</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">A common way to strip double-quotes from a variable in Windows Batch Language:<br>
set my_var=%my_var:"=%</p>
<p dir="auto">But, VS code syntax highlighter thinks that the double-quote in the line above is starting a string, and so, it highlights all code in the file beyond that double-quote until it finds another double-quote in the file, as if it were part of a string, which is isn't.</p> | <p dir="auto">After upgrading to version 0.10.1 Syntax highlighting within windows .bat files has become reduced.</p>
<p dir="auto">Previous versions would syntax highlight variables (%VARIABLENAME%) and comments(REM-COMMENT TEXT" now these both appear as normal text:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/594681/11335412/f2e5a0c6-91d3-11e5-84d7-51d17cc69b0c.png"><img src="https://cloud.githubusercontent.com/assets/594681/11335412/f2e5a0c6-91d3-11e5-84d7-51d17cc69b0c.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/594681/11335426/06c101c6-91d4-11e5-9789-d016f364fa4b.png"><img src="https://cloud.githubusercontent.com/assets/594681/11335426/06c101c6-91d4-11e5-9789-d016f364fa4b.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">When i'm trying to compile this file:<br>
<a href="https://github.com/saati/skiplist-rs/blob/master/src/skiplist.rs">https://github.com/saati/skiplist-rs/blob/master/src/skiplist.rs</a></p>
<p dir="auto">with <code class="notranslate">rustc -O -g --test</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bjb@b:~/code/skiplist-rs$ rustc -O -g --test src/skiplist.rs
rustc: /home/bjb/src/rust/src/llvm/lib/CodeGen/LexicalScopes.cpp:179: llvm::LexicalScope* llvm::LexicalScopes::getOrCreateRegularScope(llvm::MDNode*): Assertion `DISubprogram(Scope).describes(MF->getFunction())' failed.
Aborted"><pre class="notranslate"><code class="notranslate">bjb@b:~/code/skiplist-rs$ rustc -O -g --test src/skiplist.rs
rustc: /home/bjb/src/rust/src/llvm/lib/CodeGen/LexicalScopes.cpp:179: llvm::LexicalScope* llvm::LexicalScopes::getOrCreateRegularScope(llvm::MDNode*): Assertion `DISubprogram(Scope).describes(MF->getFunction())' failed.
Aborted
</code></pre></div> | <p dir="auto">As of the last LLVM update RUSTFLAGS="-g" is once again broken:</p>
<p dir="auto">I bisected LLVM and traced it down to this commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/llvm/commit/503af43f3cc16be6b37d1d9b17d01f1e78c12a1a/hovercard" href="https://github.com/rust-lang/llvm/commit/503af43f3cc16be6b37d1d9b17d01f1e78c12a1a">rust-lang/llvm@<tt>503af43</tt></a></p>
<p dir="auto">Here is a backtrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-> % gdb --args x86_64-unknown-linux-gnu/stage1/bin/rustc --cfg stage1 -g -O --cfg rtopt --cfg debug -C prefer-dynamic --target=x86_64-unknown-linux-gnu -D warnings -L "x86_64-unknown-linux-gnu/rt" -L "/scratch/laden/rust/build/x86_64-unknown-linux-gnu/llvm/Debug+Asserts/lib" -L "" --out-dir x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib /scratch/laden/rust/src/libcore/lib.rs
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc...done.
(gdb) r
Starting program: /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc --cfg stage1 -g -O --cfg rtopt --cfg debug -C prefer-dynamic --target=x86_64-unknown-linux-gnu -D warnings -L x86_64-unknown-linux-gnu/rt -L /scratch/laden/rust/build/x86_64-unknown-linux-gnu/llvm/Debug+Asserts/lib -L '' --out-dir x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib /scratch/laden/rust/src/libcore/lib.rs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff1bff480 (LWP 5578)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff1bff480 (LWP 5578)]
0x00007ffff572d772 in llvm::PointerIntPair<llvm::Value*, 2u, unsigned int, llvm::PointerLikeTypeTraits<llvm::Value*> >::getPointer (this=0xb8) at /scratch/laden/rust/src/llvm/include/llvm/ADT/PointerIntPair.h:76
76 reinterpret_cast<void*>(Value & PointerBitMask));
(gdb) bt
#0 0x00007ffff572d772 in llvm::PointerIntPair<llvm::Value*, 2u, unsigned int, llvm::PointerLikeTypeTraits<llvm::Value*> >::getPointer (this=0xb8) at /scratch/laden/rust/src/llvm/include/llvm/ADT/PointerIntPair.h:76
#1 0x00007ffff571fe0c in llvm::ValueHandleBase::getValPtr (this=0xa8) at /scratch/laden/rust/src/llvm/include/llvm/IR/ValueHandle.h:103
#2 0x00007ffff5f515b0 in llvm::AssertingVH<llvm::MDNode const>::getValPtr (this=0xa8) at /scratch/laden/rust/src/llvm/include/llvm/IR/ValueHandle.h:195
#3 0x00007ffff5f49874 in llvm::AssertingVH<llvm::MDNode const>::operator llvm::MDNode const* (this=0xa8) at /scratch/laden/rust/src/llvm/include/llvm/IR/ValueHandle.h:222
#4 0x00007ffff5f3a0b0 in llvm::LexicalScope::getScopeNode (this=0xa0) at /scratch/laden/rust/src/llvm/include/llvm/CodeGen/LexicalScopes.h:59
#5 0x00007ffff5f43af5 in llvm::DwarfDebug::endFunction (this=0x3eb1840, MF=0x2572620) at /scratch/laden/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1528
#6 0x00007ffff5f264a4 in llvm::AsmPrinter::EmitFunctionBody (this=0x2401390) at /scratch/laden/rust/src/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:864
#7 0x00007ffff5bf8547 in llvm::X86AsmPrinter::runOnMachineFunction (this=0x2401390, MF=...) at /scratch/laden/rust/src/llvm/lib/Target/X86/X86AsmPrinter.cpp:64
#8 0x00007ffff609e1eb in llvm::MachineFunctionPass::runOnFunction (this=0x2401390, F=...) at /scratch/laden/rust/src/llvm/lib/CodeGen/MachineFunctionPass.cpp:33
#9 0x00007ffff6784eab in llvm::FPPassManager::runOnFunction (this=0x1378560, F=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1545
#10 0x00007ffff678509c in llvm::FPPassManager::runOnModule (this=0x1378560, M=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1565
#11 0x00007ffff67853f9 in (anonymous namespace)::MPPassManager::runOnModule (this=0x372e0e0, M=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1623
#12 0x00007ffff6785aaf in llvm::legacy::PassManagerImpl::run (this=0x24230f0, M=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1730
#13 0x00007ffff6785cd5 in llvm::legacy::PassManager::run (this=0x32fc3b0, M=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1767
#14 0x00007ffff571b397 in LLVMRustWriteOutputFile (Target=0x45197d0, PMR=0x32fc3b0, M=0x539ec0, path=<optimized out>, FileType=llvm::TargetMachine::CGFT_ObjectFile) at /scratch/laden/rust/src/rustllvm/PassWrapper.cpp:202
#15 0x00007ffff55756ed in rustc::back::link::write_output_file (sess=0x7ffff1bf4be8, target=0x45197d0, pm=0x32fc3b0, m=0x539ec0, output=<optimized out>, file_type=ObjectFile) at /scratch/laden/rust/src/librustc/back/link.rs:78
#16 0x00007ffff557d170 in fn105947 (cpm=0x32fc3b0) at /scratch/laden/rust/src/librustc/back/link.rs:341
#17 with_codegen (tm=0x45197d0, llmod=0x539ec0, no_builtins=<optimized out>, f=<optimized out>) at /scratch/laden/rust/src/librustc/back/link.rs:288
#18 fn105943 () at /scratch/laden/rust/src/librustc/back/link.rs:340
#19 0x00007ffff5577b89 in rustc::back::link::write::run_passes (sess=0x25db070, trans=<optimized out>, output=<optimized out>, output_types=...) at /scratch/laden/rust/src/librustc/back/link.rs:337
#20 0x00007ffff56c3751 in fn117831 () at /scratch/laden/rust/src/librustc/driver/driver.rs:436
#21 0x00007ffff562aeb1 in rustc::driver::driver::phase_5_run_llvm_passes (sess=<optimized out>, trans=<optimized out>, outputs=<optimized out>) at /scratch/laden/rust/src/librustc/driver/driver.rs:435
#22 0x00007ffff561f9f0 in rustc::driver::driver::compile_input (sess=..., cfg=..., input=<optimized out>, outdir=<optimized out>, output=<optimized out>) at /scratch/laden/rust/src/librustc/driver/driver.rs:100
#23 0x00007ffff56e5b29 in rustc::driver::run_compiler (args=...) at /scratch/laden/rust/src/librustc/driver/mod.rs:104
#24 0x00007ffff56e3446 in fn118655 () at /scratch/laden/rust/src/librustc/driver/mod.rs:40
#25 0x00007ffff56f875b in task::TaskBuilder$LT$S$GT$::try_future::closure.119840 () from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustc-d252d482-0.11.0-pre.so
#26 0x00007ffff56f8603 in task::TaskBuilder$LT$S$GT$::spawn_internal::closure.119821 () from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustc-d252d482-0.11.0-pre.so
#27 0x00007ffff7fc5c6c in fn7705 () at /scratch/laden/rust/src/libnative/task.rs:95
#28 0x00007ffff4235948 in task::Task::run::closure.5378 () from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustrt-d8560cb2-0.11.0-pre.so
#29 0x00007ffff429beac in rust_try () from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustrt-d8560cb2-0.11.0-pre.so
#30 0x00007ffff423838a in rustrt::unwind::try (f=<optimized out>) at /scratch/laden/rust/src/librustrt/unwind.rs:151
#31 0x00007ffff42357fa in rustrt::task::Task::run (self=0x7ffff1c1d1e0, f=<optimized out>) at /scratch/laden/rust/src/librustrt/local.rs:32
#32 0x00007ffff7fc5ae3 in fn7679 () at /scratch/laden/rust/src/libnative/task.rs:95
#33 0x00007ffff42379c7 in thread::thread_start::h1f70d5c4c9ce8948kdd::v0.11.0.pre () at /scratch/laden/rust/src/librustrt/thread.rs:49
#34 0x00007ffff39d0b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#35 0x00007ffff3f0f0ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#36 0x0000000000000000 in ?? ()
(gdb)"><pre class="notranslate"><code class="notranslate">-> % gdb --args x86_64-unknown-linux-gnu/stage1/bin/rustc --cfg stage1 -g -O --cfg rtopt --cfg debug -C prefer-dynamic --target=x86_64-unknown-linux-gnu -D warnings -L "x86_64-unknown-linux-gnu/rt" -L "/scratch/laden/rust/build/x86_64-unknown-linux-gnu/llvm/Debug+Asserts/lib" -L "" --out-dir x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib /scratch/laden/rust/src/libcore/lib.rs
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc...done.
(gdb) r
Starting program: /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc --cfg stage1 -g -O --cfg rtopt --cfg debug -C prefer-dynamic --target=x86_64-unknown-linux-gnu -D warnings -L x86_64-unknown-linux-gnu/rt -L /scratch/laden/rust/build/x86_64-unknown-linux-gnu/llvm/Debug+Asserts/lib -L '' --out-dir x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib /scratch/laden/rust/src/libcore/lib.rs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff1bff480 (LWP 5578)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff1bff480 (LWP 5578)]
0x00007ffff572d772 in llvm::PointerIntPair<llvm::Value*, 2u, unsigned int, llvm::PointerLikeTypeTraits<llvm::Value*> >::getPointer (this=0xb8) at /scratch/laden/rust/src/llvm/include/llvm/ADT/PointerIntPair.h:76
76 reinterpret_cast<void*>(Value & PointerBitMask));
(gdb) bt
#0 0x00007ffff572d772 in llvm::PointerIntPair<llvm::Value*, 2u, unsigned int, llvm::PointerLikeTypeTraits<llvm::Value*> >::getPointer (this=0xb8) at /scratch/laden/rust/src/llvm/include/llvm/ADT/PointerIntPair.h:76
#1 0x00007ffff571fe0c in llvm::ValueHandleBase::getValPtr (this=0xa8) at /scratch/laden/rust/src/llvm/include/llvm/IR/ValueHandle.h:103
#2 0x00007ffff5f515b0 in llvm::AssertingVH<llvm::MDNode const>::getValPtr (this=0xa8) at /scratch/laden/rust/src/llvm/include/llvm/IR/ValueHandle.h:195
#3 0x00007ffff5f49874 in llvm::AssertingVH<llvm::MDNode const>::operator llvm::MDNode const* (this=0xa8) at /scratch/laden/rust/src/llvm/include/llvm/IR/ValueHandle.h:222
#4 0x00007ffff5f3a0b0 in llvm::LexicalScope::getScopeNode (this=0xa0) at /scratch/laden/rust/src/llvm/include/llvm/CodeGen/LexicalScopes.h:59
#5 0x00007ffff5f43af5 in llvm::DwarfDebug::endFunction (this=0x3eb1840, MF=0x2572620) at /scratch/laden/rust/src/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1528
#6 0x00007ffff5f264a4 in llvm::AsmPrinter::EmitFunctionBody (this=0x2401390) at /scratch/laden/rust/src/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:864
#7 0x00007ffff5bf8547 in llvm::X86AsmPrinter::runOnMachineFunction (this=0x2401390, MF=...) at /scratch/laden/rust/src/llvm/lib/Target/X86/X86AsmPrinter.cpp:64
#8 0x00007ffff609e1eb in llvm::MachineFunctionPass::runOnFunction (this=0x2401390, F=...) at /scratch/laden/rust/src/llvm/lib/CodeGen/MachineFunctionPass.cpp:33
#9 0x00007ffff6784eab in llvm::FPPassManager::runOnFunction (this=0x1378560, F=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1545
#10 0x00007ffff678509c in llvm::FPPassManager::runOnModule (this=0x1378560, M=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1565
#11 0x00007ffff67853f9 in (anonymous namespace)::MPPassManager::runOnModule (this=0x372e0e0, M=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1623
#12 0x00007ffff6785aaf in llvm::legacy::PassManagerImpl::run (this=0x24230f0, M=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1730
#13 0x00007ffff6785cd5 in llvm::legacy::PassManager::run (this=0x32fc3b0, M=...) at /scratch/laden/rust/src/llvm/lib/IR/LegacyPassManager.cpp:1767
#14 0x00007ffff571b397 in LLVMRustWriteOutputFile (Target=0x45197d0, PMR=0x32fc3b0, M=0x539ec0, path=<optimized out>, FileType=llvm::TargetMachine::CGFT_ObjectFile) at /scratch/laden/rust/src/rustllvm/PassWrapper.cpp:202
#15 0x00007ffff55756ed in rustc::back::link::write_output_file (sess=0x7ffff1bf4be8, target=0x45197d0, pm=0x32fc3b0, m=0x539ec0, output=<optimized out>, file_type=ObjectFile) at /scratch/laden/rust/src/librustc/back/link.rs:78
#16 0x00007ffff557d170 in fn105947 (cpm=0x32fc3b0) at /scratch/laden/rust/src/librustc/back/link.rs:341
#17 with_codegen (tm=0x45197d0, llmod=0x539ec0, no_builtins=<optimized out>, f=<optimized out>) at /scratch/laden/rust/src/librustc/back/link.rs:288
#18 fn105943 () at /scratch/laden/rust/src/librustc/back/link.rs:340
#19 0x00007ffff5577b89 in rustc::back::link::write::run_passes (sess=0x25db070, trans=<optimized out>, output=<optimized out>, output_types=...) at /scratch/laden/rust/src/librustc/back/link.rs:337
#20 0x00007ffff56c3751 in fn117831 () at /scratch/laden/rust/src/librustc/driver/driver.rs:436
#21 0x00007ffff562aeb1 in rustc::driver::driver::phase_5_run_llvm_passes (sess=<optimized out>, trans=<optimized out>, outputs=<optimized out>) at /scratch/laden/rust/src/librustc/driver/driver.rs:435
#22 0x00007ffff561f9f0 in rustc::driver::driver::compile_input (sess=..., cfg=..., input=<optimized out>, outdir=<optimized out>, output=<optimized out>) at /scratch/laden/rust/src/librustc/driver/driver.rs:100
#23 0x00007ffff56e5b29 in rustc::driver::run_compiler (args=...) at /scratch/laden/rust/src/librustc/driver/mod.rs:104
#24 0x00007ffff56e3446 in fn118655 () at /scratch/laden/rust/src/librustc/driver/mod.rs:40
#25 0x00007ffff56f875b in task::TaskBuilder$LT$S$GT$::try_future::closure.119840 () from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustc-d252d482-0.11.0-pre.so
#26 0x00007ffff56f8603 in task::TaskBuilder$LT$S$GT$::spawn_internal::closure.119821 () from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustc-d252d482-0.11.0-pre.so
#27 0x00007ffff7fc5c6c in fn7705 () at /scratch/laden/rust/src/libnative/task.rs:95
#28 0x00007ffff4235948 in task::Task::run::closure.5378 () from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustrt-d8560cb2-0.11.0-pre.so
#29 0x00007ffff429beac in rust_try () from /scratch/laden/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustrt-d8560cb2-0.11.0-pre.so
#30 0x00007ffff423838a in rustrt::unwind::try (f=<optimized out>) at /scratch/laden/rust/src/librustrt/unwind.rs:151
#31 0x00007ffff42357fa in rustrt::task::Task::run (self=0x7ffff1c1d1e0, f=<optimized out>) at /scratch/laden/rust/src/librustrt/local.rs:32
#32 0x00007ffff7fc5ae3 in fn7679 () at /scratch/laden/rust/src/libnative/task.rs:95
#33 0x00007ffff42379c7 in thread::thread_start::h1f70d5c4c9ce8948kdd::v0.11.0.pre () at /scratch/laden/rust/src/librustrt/thread.rs:49
#34 0x00007ffff39d0b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#35 0x00007ffff3f0f0ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#36 0x0000000000000000 in ?? ()
(gdb)
</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michaelwoerister/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michaelwoerister">@michaelwoerister</a></p> | 1 |
<p dir="auto">Hi reactjs Team, I suggest that, team should add a new prop for every component that purly used to show or hide component conditionally.<br>
i.e<br>
Instead of writing code like this in JSX.<br>
{show && }<br>
we simply use like this and that's it.</p> | <ul dir="auto">
<li>Toggle Component</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="render(){
var Child = something? A : B;
return (
<Child />
)
}"><pre class="notranslate"><code class="notranslate">render(){
var Child = something? A : B;
return (
<Child />
)
}
</code></pre></div>
<ul dir="auto">
<li>Toggle CSS Display is simple</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="className={this.props.shouldHide ? 'hidden' : ''} "><pre class="notranslate"><code class="notranslate">className={this.props.shouldHide ? 'hidden' : ''}
</code></pre></div> | 1 |
<h3 dir="auto">Problem description</h3>
<p dir="auto">I'm getting the followinig warning when I use the closeIcon property on a CardTitle:</p>
<blockquote>
<p dir="auto">Warning: Unknown prop <code class="notranslate">closeIcon</code> on </p><div dir="auto"> tag. Remove this prop from the element. For details, see <a href="https://fb.me/react-unknown-prop" rel="nofollow">https://fb.me/react-unknown-prop</a><p dir="auto"></p>
</div></blockquote>
<p dir="auto">However, the element is working just fine, the icon is being displayed and everything works fine.</p>
<h3 dir="auto">Link to minimal working code that reproduces the issue</h3>
<p dir="auto">Hope this link is correct:</p>
<p dir="auto"><a href="https://www.webpackbin.com/bins/-KjUqpCIvL3w31h-YqlI" rel="nofollow">https://www.webpackbin.com/bins/-KjUqpCIvL3w31h-YqlI</a></p>
<p dir="auto">Here is the code in any case. Just open the browsers console.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react';
import { AppBar } from 'material-ui';
import FlatButton from "material-ui/FlatButton";
import SvgIconAddShoppingCart from "material-ui/svg-icons/action/add-shopping-cart";
import Add from "material-ui/svg-icons/content/add";
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
const HelloWorld = () => (
<Card expandable>
<CardTitle title="Users" closeIcon={<Add/>} actAsExpander showExpandableButton />
<CardText expandable>
<FlatButton label="add" icon={<SvgIconAddShoppingCart />} />
</CardText>
</Card>
);
export default HelloWorld;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">AppBar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">FlatButton</span> <span class="pl-k">from</span> <span class="pl-s">"material-ui/FlatButton"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">SvgIconAddShoppingCart</span> <span class="pl-k">from</span> <span class="pl-s">"material-ui/svg-icons/action/add-shopping-cart"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">Add</span> <span class="pl-k">from</span> <span class="pl-s">"material-ui/svg-icons/content/add"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">Card</span><span class="pl-kos">,</span> <span class="pl-v">CardActions</span><span class="pl-kos">,</span> <span class="pl-v">CardHeader</span><span class="pl-kos">,</span> <span class="pl-v">CardMedia</span><span class="pl-kos">,</span> <span class="pl-v">CardTitle</span><span class="pl-kos">,</span> <span class="pl-v">CardText</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui/Card'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">HelloWorld</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">Card</span> <span class="pl-c1">expandable</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">CardTitle</span> <span class="pl-c1">title</span><span class="pl-c1">=</span><span class="pl-s">"Users"</span> <span class="pl-c1">closeIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1"><</span><span class="pl-ent">Add</span><span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">}</span> <span class="pl-c1">actAsExpander</span> <span class="pl-c1">showExpandableButton</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">CardText</span> <span class="pl-c1">expandable</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">FlatButton</span> <span class="pl-c1">label</span><span class="pl-c1">=</span><span class="pl-s">"add"</span> <span class="pl-c1">icon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1"><</span><span class="pl-ent">SvgIconAddShoppingCart</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">CardText</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Card</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">HelloWorld</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.18</li>
<li>React: 15</li>
<li>Browser: Chrome</li>
</ul>
<h3 dir="auto">Description</h3>
<h3 dir="auto">Images & references</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2270425/25776319/8d140244-32bb-11e7-9955-f18ac6773ec1.png"><img src="https://cloud.githubusercontent.com/assets/2270425/25776319/8d140244-32bb-11e7-9955-f18ac6773ec1.png" alt="image" style="max-width: 100%;"></a></p> | <h3 dir="auto">Problem description</h3>
<p dir="auto">When using the <code class="notranslate">closeIcon</code> prop on CardTitle, the selected icon is displayed but a warning that the prop is passed to a <code class="notranslate">div</code> is displayed in the console.</p>
<h3 dir="auto">Link to minimal working code that reproduces the issue</h3>
<p dir="auto"><a href="https://www.webpackbin.com/bins/-Kjal6iMWuKp0Lg-1DB9" rel="nofollow">https://www.webpackbin.com/bins/-Kjal6iMWuKp0Lg-1DB9</a></p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.17.1</li>
<li>React: 15.4.2</li>
<li>Browser: Chrome</li>
</ul> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">Running the example, using a custom Document <a href="https://github.com/zeit/next.js/tree/master/examples/with-styled-components">(with-styled-components)</a> I noticed that the stylesheets are being added in duplicate to the page.</p>
<p dir="auto">Apparently flushing the stylesheets like we're doing <a href="https://github.com/zeit/next.js/blob/master/examples/with-styled-components/pages/_document.js#L6">here</a> avoids this issue but raises a total different one (FOUC).</p>
<p dir="auto">Any idea why the stylesheets are being added more than once and any tip how to avoid this?</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">A method in router API that allows aborting upcoming route change.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Right now router exposes <code class="notranslate">abortComponentLoad</code> method but it seems to be designed only for internal use and it doesn't work if it's called in <code class="notranslate">routeChangeStart</code> handler. It works only after this piece of code was executed:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="async fetchComponent (route, as) {
let cancelled = false
const cancel = this.componentLoadCancel = function () {
cancelled = true
}"><pre class="notranslate"><span class="pl-en">async</span> <span class="pl-s1">fetchComponent</span> <span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">,</span> <span class="pl-s1">as</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">cancelled</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span>
<span class="pl-k">const</span> <span class="pl-s1">cancel</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">componentLoadCancel</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">cancelled</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Workaround:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Router.ready(() => {
Router.router.on('routeChangeStart', () => {
setTimeout(() => {
Router.router.abortComponentLoad();
});
});
});"><pre class="notranslate"><span class="pl-v">Router</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-v">Router</span><span class="pl-kos">.</span><span class="pl-c1">router</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'routeChangeStart'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></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">=></span> <span class="pl-kos">{</span>
<span class="pl-v">Router</span><span class="pl-kos">.</span><span class="pl-c1">router</span><span class="pl-kos">.</span><span class="pl-en">abortComponentLoad</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">This is useful for example when building complex forms and we want to warn a user before he leaves the page without submitting.</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">ANY</p> | 0 |
<p dir="auto">Hello,</p>
<p dir="auto">I did</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import pandas as pd
from matplotlib.pyplot as plt
idx = pd.date_range('20140101', '20140201')
df = pd.DataFrame(index=idx)
df['col0'] = np.random.randn(len(idx))
s_idx = pd.Series(idx, index=idx) # need to do this because we can't shift index
diff_idx = (s_idx-s_idx.shift(1)).fillna(pd.Timedelta(0))
df['diff_dt'] = diff_idx
df['diff_dt'].plot()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">from</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">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-s1">date_range</span>(<span class="pl-s">'20140101'</span>, <span class="pl-s">'20140201'</span>)
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">idx</span>)
<span class="pl-s1">df</span>[<span class="pl-s">'col0'</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-en">len</span>(<span class="pl-s1">idx</span>))
<span class="pl-s1">s_idx</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">idx</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">idx</span>) <span class="pl-c"># need to do this because we can't shift index</span>
<span class="pl-s1">diff_idx</span> <span class="pl-c1">=</span> (<span class="pl-s1">s_idx</span><span class="pl-c1">-</span><span class="pl-s1">s_idx</span>.<span class="pl-en">shift</span>(<span class="pl-c1">1</span>)).<span class="pl-en">fillna</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Timedelta</span>(<span class="pl-c1">0</span>))
<span class="pl-s1">df</span>[<span class="pl-s">'diff_dt'</span>] <span class="pl-c1">=</span> <span class="pl-s1">diff_idx</span>
<span class="pl-s1">df</span>[<span class="pl-s">'diff_dt'</span>].<span class="pl-en">plot</span>()</pre></div>
<p dir="auto">but it raises <code class="notranslate">Empty 'Series': no numeric data to plot</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [78]: df.dtypes
Out[78]:
col0 float64
diff_dt timedelta64[ns]
dtype: object
In [79]: type(df['diff_dt'][1])
Out[79]: pandas.tslib.Timedelta"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">78</span>]: <span class="pl-s1">df</span>.<span class="pl-s1">dtypes</span>
<span class="pl-v">Out</span>[<span class="pl-c1">78</span>]:
<span class="pl-s1">col0</span> <span class="pl-s1">float64</span>
<span class="pl-s1">diff_dt</span> <span class="pl-s1">timedelta64</span>[<span class="pl-s1">ns</span>]
<span class="pl-s1">dtype</span>: <span class="pl-s1">object</span>
<span class="pl-v">In</span> [<span class="pl-c1">79</span>]: <span class="pl-en">type</span>(<span class="pl-s1">df</span>[<span class="pl-s">'diff_dt'</span>][<span class="pl-c1">1</span>])
<span class="pl-v">Out</span>[<span class="pl-c1">79</span>]: <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-v">Timedelta</span></pre></div>
<p dir="auto">I don't understand if data inside <code class="notranslate">diff_dt</code> columns are <code class="notranslate">numpy.timedelta64</code> or <code class="notranslate">pd.Timedelta</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df['diff_dt'].map(lambda x: x.value)"><pre class="notranslate"><span class="pl-s1">df</span>[<span class="pl-s">'diff_dt'</span>].<span class="pl-en">map</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">x</span>.<span class="pl-s1">value</span>)</pre></div>
<p dir="auto">raises <code class="notranslate">AttributeError: 'numpy.timedelta64' object has no attribute 'value'</code></p>
<p dir="auto">but it seems that I can get <code class="notranslate">value</code>for a given data (let's say row 10)</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [97]: df['diff_dt'][10].value
Out[97]: 86400000000000"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">97</span>]: <span class="pl-s1">df</span>[<span class="pl-s">'diff_dt'</span>][<span class="pl-c1">10</span>].<span class="pl-s1">value</span>
<span class="pl-v">Out</span>[<span class="pl-c1">97</span>]: <span class="pl-c1">86400000000000</span></pre></div>
<p dir="auto">I don't understand why...</p>
<p dir="auto">But I also don't understand how I could plot diff_dt column without doing an uggly:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df['diff_dt'].map(lambda x: x/np.timedelta64(1, 'ns')).plot()"><pre class="notranslate"><code class="notranslate">df['diff_dt'].map(lambda x: x/np.timedelta64(1, 'ns')).plot()
</code></pre></div>
<p dir="auto">But I don't know how I could automatically get this <code class="notranslate">np.timedelta64(1, 'ns')</code></p>
<p dir="auto">Maybe Pandas could plot Timedelta (or <code class="notranslate">np.timedelta64</code>) out of the box ?<br>
because that's interesting to know for example if sampling period is constant.</p>
<p dir="auto">Kind regards</p> | <h4 dir="auto">Code Sample</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
from pandas.compat import StringIO
import matplotlib.pyplot as plt
dat = """c1,c2,c3
1000,2000,1500
9000,8000,1600"""
df = pd.read_csv(StringIO(dat))
print(df)
df.plot.bar()
plt.show()
df = df.apply(lambda x: pd.to_timedelta(x, unit='ms'))
print(df)
df.plot.bar()
plt.show()
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">compat</span> <span class="pl-k">import</span> <span class="pl-v">StringIO</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">dat</span> <span class="pl-c1">=</span> <span class="pl-s">"""c1,c2,c3</span>
<span class="pl-s">1000,2000,1500</span>
<span class="pl-s">9000,8000,1600"""</span>
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s1">dat</span>))
<span class="pl-en">print</span>(<span class="pl-s1">df</span>)
<span class="pl-s1">df</span>.<span class="pl-s1">plot</span>.<span class="pl-en">bar</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">pd</span>.<span class="pl-en">to_timedelta</span>(<span class="pl-s1">x</span>, <span class="pl-s1">unit</span><span class="pl-c1">=</span><span class="pl-s">'ms'</span>))
<span class="pl-en">print</span>(<span class="pl-s1">df</span>)
<span class="pl-s1">df</span>.<span class="pl-s1">plot</span>.<span class="pl-en">bar</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto"><code class="notranslate">plot.bar()</code> works with numerical values (<code class="notranslate">int</code>, <code class="notranslate">float</code>).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" c1 c2 c3
0 1000 2000 1500
1 9000 8000 1600"><pre class="notranslate"><code class="notranslate"> c1 c2 c3
0 1000 2000 1500
1 9000 8000 1600
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/109167/28241986-6b0fb8e8-69a0-11e7-88d0-2c32de28af90.png"><img src="https://user-images.githubusercontent.com/109167/28241986-6b0fb8e8-69a0-11e7-88d0-2c32de28af90.png" alt="capture d ecran 2017-07-15 a 20 20 30" style="max-width: 100%;"></a></p>
<p dir="auto">not with <code class="notranslate">Timedelta</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" c1 c2 c3
0 00:00:01 00:00:02 00:00:01.500000
1 00:00:09 00:00:08 00:00:01.600000"><pre class="notranslate"><code class="notranslate"> c1 c2 c3
0 00:00:01 00:00:02 00:00:01.500000
1 00:00:09 00:00:08 00:00:01.600000
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" df.plot.bar()
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 2659, in bar
return self(kind='bar', x=x, y=y, **kwds)
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 2620, in __call__
sort_columns=sort_columns, **kwds)
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 1857, in plot_frame
**kwds)
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 1682, in _plot
plot_obj.generate()
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 236, in generate
self._compute_plot_data()
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 345, in _compute_plot_data
'plot'.format(numeric_data.__class__.__name__))
TypeError: Empty 'DataFrame': no numeric data to plot"><pre class="notranslate"><code class="notranslate"> df.plot.bar()
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 2659, in bar
return self(kind='bar', x=x, y=y, **kwds)
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 2620, in __call__
sort_columns=sort_columns, **kwds)
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 1857, in plot_frame
**kwds)
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 1682, in _plot
plot_obj.generate()
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 236, in generate
self._compute_plot_data()
File "/Users/scls/anaconda/lib/python3.6/site-packages/pandas/plotting/_core.py", line 345, in _compute_plot_data
'plot'.format(numeric_data.__class__.__name__))
TypeError: Empty 'DataFrame': no numeric data to plot
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Timedelta on y axis should be displayed</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
/Users/scls/anaconda/lib/python3.6/site-packages/xarray/core/formatting.py:16: FutureWarning: The pandas.tslib module is deprecated and will be removed in a future version.
from pandas.tslib import OutOfBoundsDatetime
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.6.1.final.0<br>
python-bits: 64<br>
OS: Darwin<br>
OS-release: 16.6.0<br>
machine: x86_64<br>
processor: i386<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: fr_FR.UTF-8<br>
LOCALE: fr_FR.UTF-8</p>
<p dir="auto">pandas: 0.20.1<br>
pytest: 3.1.2<br>
pip: 9.0.1<br>
setuptools: 27.2.0<br>
Cython: 0.25.2<br>
numpy: 1.12.1<br>
scipy: 0.19.0<br>
xarray: 0.9.5<br>
IPython: 5.3.0<br>
sphinx: 1.5.6<br>
patsy: 0.4.1<br>
dateutil: 2.6.0<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: 1.2.1<br>
tables: 3.3.0<br>
numexpr: 2.6.2<br>
feather: None<br>
matplotlib: 2.0.2<br>
openpyxl: 2.4.7<br>
xlrd: 1.0.0<br>
xlwt: 1.2.0<br>
xlsxwriter: 0.9.6<br>
lxml: 3.7.3<br>
bs4: 4.6.0<br>
html5lib: 0.999<br>
sqlalchemy: 1.1.9<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.9.6<br>
s3fs: None<br>
pandas_gbq: None<br>
pandas_datareader: 0.4.0</p>
</details> | 1 |
<p dir="auto">I am aware try-catch is emitted in 'for of' for some compatibility reason; however, it can be a surprising performance-hit on eg V8. Is there a way to suppress its emission (at the cost of some compatibility)?</p> | <h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Would you like to work on a fix?</li>
</ul>
<h3 dir="auto">How are you using Babel?</h3>
<p dir="auto">Programmatic API (<code class="notranslate">babel.transform</code>, <code class="notranslate">babel.parse</code>)</p>
<h3 dir="auto">Input code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="({
__proto__: a,
__proto__: a,
a: a = 1
})"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">__proto__</span>: <span class="pl-s1">a</span><span class="pl-kos">,</span>
<span class="pl-c1">__proto__</span>: <span class="pl-s1">a</span><span class="pl-kos">,</span>
<span class="pl-c1">a</span>: <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><a href="https://babel.dev/repl#?browsers=firefox%2091&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=BQbwUABBD60A4CcD2AXJsBcECGAaSM8yamO-U2W2EAvBAIxgC-AlEA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=stage-1&prettier=false&targets=&version=7.16.2&externalPlugins=&assumptions=%7B%7D" rel="nofollow">REPL</a></p>
<h3 dir="auto">Configuration file name</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Configuration</h3>
<p dir="auto">N. A.</p>
<h3 dir="auto">Current and expected behavior</h3>
<p dir="auto">Currently Babel parses it without errors.</p>
<p dir="auto">It should throw</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Redefinition of __proto__ property."><pre class="notranslate"><code class="notranslate">Redefinition of __proto__ property.
</code></pre></div>
<p dir="auto">just like Babel correctly throws in the following example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="({
__proto__: a,
__proto__: a,
})"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">__proto__</span>: <span class="pl-s1">a</span><span class="pl-kos">,</span>
<span class="pl-c1">__proto__</span>: <span class="pl-s1">a</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<h3 dir="auto">Environment</h3>
<p dir="auto">REPL</p>
<h3 dir="auto">Possible solution</h3>
<p dir="auto">This issue is very similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="472093115" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/10262" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/10262/hovercard" href="https://github.com/babel/babel/issues/10262">#10262</a>.</p>
<p dir="auto">Like how we handle <code class="notranslate">shorthandAssign</code></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/babel/babel/blob/7250d2562be881f9cdc24c6646468e0f3afcaf9d/packages/babel-parser/src/parser/expression.js#L317-L319">babel/packages/babel-parser/src/parser/expression.js</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 317 to 319
in
<a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/7250d2562be881f9cdc24c6646468e0f3afcaf9d">7250d25</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="L317" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="317"></td>
<td id="LC317" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">refExpressionErrors</span><span class="pl-kos">.</span><span class="pl-c1">shorthandAssign</span> <span class="pl-c1">>=</span> <span class="pl-s1">node</span><span class="pl-kos">.</span><span class="pl-c1">left</span><span class="pl-kos">.</span><span class="pl-c1">start</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td>
</tr>
<tr class="border-0">
<td id="L318" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="318"></td>
<td id="LC318" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">refExpressionErrors</span><span class="pl-kos">.</span><span class="pl-c1">shorthandAssign</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// reset because shorthand default was used correctly</span> </td>
</tr>
<tr class="border-0">
<td id="L319" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="319"></td>
<td id="LC319" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">we should reset <code class="notranslate">doubleProto</code> only when it is used correctly.</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/babel/babel/blob/7250d2562be881f9cdc24c6646468e0f3afcaf9d/packages/babel-parser/src/parser/expression.js#L312">babel/packages/babel-parser/src/parser/expression.js</a>
</p>
<p class="mb-0 color-fg-muted">
Line 312
in
<a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/7250d2562be881f9cdc24c6646468e0f3afcaf9d">7250d25</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="L312" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="312"></td>
<td id="LC312" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">refExpressionErrors</span><span class="pl-kos">.</span><span class="pl-c1">doubleProto</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// reset because double __proto__ is valid in assignment expression</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p> | 0 |
<h1 dir="auto">Dynamic Routes</h1>
<h2 dir="auto">Background</h2>
<p dir="auto">Dynamic routing (also known as URL Slugs or Pretty/Clean URLs) <a href="https://github.com/zeit/next.js/issues/25" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/25/hovercard">has</a> <a href="https://github.com/zeit/next.js/issues/59" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/59/hovercard">been a</a> <a href="https://github.com/zeit/next.js/issues/4989" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/4989/hovercard">long-time</a> <a href="https://github.com/zeit/next.js/issues?page=1&q=is%3Aissue+dynamic+routing">requested feature</a> of Next.js.</p>
<p dir="auto">Current solutions involve placing a <a href="https://zeit.co/docs/v2/deployments/routes" rel="nofollow">L7 proxy</a>, <a href="https://github.com/zeit/next.js#custom-server-and-routing">custom server</a>, or <a href="https://www.npmjs.com/package/next-routes" rel="nofollow">user-land middleware</a> in-front of your application. None of these solutions offer a sufficiently <em>ergonomic</em> developer experience.</p>
<p dir="auto">Additionally, users reaching for a custom server inadvertently opt-out of advanced framework-level features like per-page serverless functions.</p>
<h2 dir="auto">Goals</h2>
<ol dir="auto">
<li>Leverage convention to provide URL Slug support that is easy to reason about</li>
<li>Cover a majority of use-cases observed in the wild</li>
<li>Eliminate the need of a custom server to support <code class="notranslate">/blog/:post</code></li>
<li>Validate <code class="notranslate"><Link /></code> route transitions when possible</li>
<li>Avoid an implementation that requires a route manifest</li>
<li>Routes must be expressible through the filesystem</li>
</ol>
<h2 dir="auto">Proposal</h2>
<p dir="auto">Next.js should support named URL parameters that match an <a href="https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Definition" rel="nofollow"><strong>entire</strong> URL segment</a>. These routes would be expressed via the filesystem:</p>
<ol dir="auto">
<li>A filename or directory name that is <strong>wrapped with <code class="notranslate">[]</code></strong> would be considered a named parameter</li>
<li>Explicit route segments would take priority over dynamic segments, matched from left-to-right</li>
<li>Route parameters would be <strong>required</strong>, never optional</li>
<li>Route parameters will be merged into the <code class="notranslate">query</code> object (accessible from <code class="notranslate">getInitialProps</code> or <code class="notranslate">router</code> via <code class="notranslate">withRouter</code>) — these parameters can not be overridden by a query parameter</li>
</ol>
<p dir="auto">To help understand this proposal, let's examine the following file tree:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pages/
├── [root].js
├── blog/
│ └── [id].js
├── customers/
│ ├── [customer]/
│ │ ├── [post].js
│ │ ├── index.js
│ │ └── profile.js
│ ├── index.js
│ └── new.js
├── index.js
└── terms.js"><pre class="notranslate"><code class="notranslate">pages/
├── [root].js
├── blog/
│ └── [id].js
├── customers/
│ ├── [customer]/
│ │ ├── [post].js
│ │ ├── index.js
│ │ └── profile.js
│ ├── index.js
│ └── new.js
├── index.js
└── terms.js
</code></pre></div>
<p dir="auto">Next.js would produce the following routes, registered in the following order:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=";[
{ path: '/', page: '/index.js' },
{ path: '/blog/:id', page: '/blog/[id].js' },
{ path: '/customers', page: '/customers/index.js' },
{ path: '/customers/new', page: '/customers/new.js' },
{ path: '/customers/:customer', page: '/customers/[customer]/index.js' },
{
path: '/customers/:customer/profile',
page: '/customers/[customer]/profile.js',
},
{ path: '/customers/:customer/:post', page: '/customers/[customer]/[post].js' },
{ path: '/terms', page: '/terms.js' },
{ path: '/:root', page: '/[root].js' },
]"><pre class="notranslate"><span class="pl-kos">;</span><span class="pl-kos">[</span>
<span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/'</span><span class="pl-kos">,</span> <span class="pl-c1">page</span>: <span class="pl-s">'/index.js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/blog/:id'</span><span class="pl-kos">,</span> <span class="pl-c1">page</span>: <span class="pl-s">'/blog/[id].js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/customers'</span><span class="pl-kos">,</span> <span class="pl-c1">page</span>: <span class="pl-s">'/customers/index.js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/customers/new'</span><span class="pl-kos">,</span> <span class="pl-c1">page</span>: <span class="pl-s">'/customers/new.js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/customers/:customer'</span><span class="pl-kos">,</span> <span class="pl-c1">page</span>: <span class="pl-s">'/customers/[customer]/index.js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">path</span>: <span class="pl-s">'/customers/:customer/profile'</span><span class="pl-kos">,</span>
<span class="pl-c1">page</span>: <span class="pl-s">'/customers/[customer]/profile.js'</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">path</span>: <span class="pl-s">'/customers/:customer/:post'</span><span class="pl-kos">,</span> <span class="pl-c1">page</span>: <span class="pl-s">'/customers/[customer]/[post].js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/terms'</span><span class="pl-kos">,</span> <span class="pl-c1">page</span>: <span class="pl-s">'/terms.js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/:root'</span><span class="pl-kos">,</span> <span class="pl-c1">page</span>: <span class="pl-s">'/[root].js'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span></pre></div>
<h2 dir="auto">Usage Examples</h2>
<p dir="auto">These examples all assume a page with the filename <code class="notranslate">pages/blog/[id].js</code>:</p>
<h3 dir="auto">Navigating to the Page with <code class="notranslate"><Link /></code></h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<Link href="/blog/[id]" as="/blog/how-to-use-dynamic-routes">
<a>
Next.js: Dynamic Routing{' '}
<span role="img" aria-label="Party Popper">
🎉
</span>
</a>
</Link>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">Link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"/blog/[id]"</span> <span class="pl-c1">as</span><span class="pl-c1">=</span><span class="pl-s">"/blog/how-to-use-dynamic-routes"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">a</span><span class="pl-c1">></span>
Next.js: Dynamic Routing<span class="pl-kos">{</span><span class="pl-s">' '</span><span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-ent">span</span> <span class="pl-c1">role</span><span class="pl-c1">=</span><span class="pl-s">"img"</span> <span class="pl-c1">aria-label</span><span class="pl-c1">=</span><span class="pl-s">"Party Popper"</span><span class="pl-c1">></span>
🎉
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">span</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Link</span><span class="pl-c1">></span></pre></div>
<p dir="auto">The above example will transition to the <code class="notranslate">/blog/[id].js</code> page and provide the following <code class="notranslate">query</code> object to the <em>Router</em>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
id: 'how-to-use-dynamic-routes'
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-c1">id</span>: <span class="pl-s">'how-to-use-dynamic-routes'</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Reading Named Parameters from <em>Router</em></h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { useRouter } from 'next/router'
function BlogPost() {
const router = useRouter()
// `blogId` will be `'how-to-use-dynamic-routes'` when rendering
// `/blog/how-to-use-dynamic-routes`
const blogId = router.query.id
return <main>This is blog post {blogId}.</main>
}
export default BlogPost"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">useRouter</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'next/router'</span>
<span class="pl-k">function</span> <span class="pl-v">BlogPost</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">router</span> <span class="pl-c1">=</span> <span class="pl-en">useRouter</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-c">// `blogId` will be `'how-to-use-dynamic-routes'` when rendering</span>
<span class="pl-c">// `/blog/how-to-use-dynamic-routes`</span>
<span class="pl-k">const</span> <span class="pl-s1">blogId</span> <span class="pl-c1">=</span> <span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-c1">query</span><span class="pl-kos">.</span><span class="pl-c1">id</span>
<span class="pl-k">return</span> <span class="pl-c1"><</span><span class="pl-ent">main</span><span class="pl-c1">></span>This is blog post <span class="pl-kos">{</span><span class="pl-s1">blogId</span><span class="pl-kos">}</span>.<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">main</span><span class="pl-c1">></span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">BlogPost</span></pre></div>
<p dir="auto">Note: you can also use <code class="notranslate">withRouter</code>.</p>
<h3 dir="auto">Reading Named Parameters in <code class="notranslate">getInitialProps</code></h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function BlogPost({ blogText }) {
return <main>{blogText}</main>
}
BlogPost.getInitialProps = async function({ query }) {
// `blogId` will be `'how-to-use-dynamic-routes'` when rendering
// `/blog/how-to-use-dynamic-routes`
const blogId = query.id
const { text } = await fetch(
'/api/blog/content?id=' + encodeURIComponent(blogId)
).then(res => res.json())
return { blogText: text }
}
export default BlogPost"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">BlogPost</span><span class="pl-kos">(</span><span class="pl-kos">{</span> blogText <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"><</span><span class="pl-ent">main</span><span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-s1">blogText</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">main</span><span class="pl-c1">></span>
<span class="pl-kos">}</span>
<span class="pl-v">BlogPost</span><span class="pl-kos">.</span><span class="pl-en">getInitialProps</span> <span class="pl-c1">=</span> <span class="pl-k">async</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">{</span> query <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// `blogId` will be `'how-to-use-dynamic-routes'` when rendering</span>
<span class="pl-c">// `/blog/how-to-use-dynamic-routes`</span>
<span class="pl-k">const</span> <span class="pl-s1">blogId</span> <span class="pl-c1">=</span> <span class="pl-s1">query</span><span class="pl-kos">.</span><span class="pl-c1">id</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> text <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span>
<span class="pl-s">'/api/blog/content?id='</span> <span class="pl-c1">+</span> <span class="pl-en">encodeURIComponent</span><span class="pl-kos">(</span><span class="pl-s1">blogId</span><span class="pl-kos">)</span>
<span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">res</span> <span class="pl-c1">=></span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">json</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">blogText</span>: <span class="pl-s1">text</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">BlogPost</span></pre></div>
<h2 dir="auto">Caveats</h2>
<h3 dir="auto">Optional route parameters are not expressible through the filesystem.</h3>
<p dir="auto">You can emulate an optional route parameter by creating a stub page that exports the parameter version (or vice versa). This increases the visibility of your application's routes when inspecting the filesystem.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// pages/blog/comments.js
// (the optional version of `pages/blog/[id]/comments.js`)
export { default } from './[id]/comments.js'"><pre class="notranslate"><span class="pl-c">// pages/blog/comments.js</span>
<span class="pl-c">// (the optional version of `pages/blog/[id]/comments.js`)</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./[id]/comments.js'</span></pre></div>
<h3 dir="auto">Named parameters cannot appear in the middle of a route name.</h3>
<p dir="auto">This means a page named <code class="notranslate">blog-[id].js</code> would be interpreted <em>literally</em> and not matched by <code class="notranslate">/blog-1</code>. You can either restructure your page to be <code class="notranslate">/blog/[id].js</code> or turn the entire URL Segment into a named parameter and handle stripping <code class="notranslate">blog-</code> in your application's code.</p>
<h2 dir="auto">Alternatives</h2>
<h3 dir="auto">Denote URL Slugs with <em>insert symbol here</em> instead of <code class="notranslate">[]</code></h3>
<p dir="auto">There are <a href="https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words" rel="nofollow">very few symbols</a> available for use to represent a named parameter on the filesystem. Unfortunately, the most recognized way of defining a named parameter (<code class="notranslate">:name</code>) is <a href="https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words" rel="nofollow">not a valid filename</a>.</p>
<p dir="auto">While surveying prior art, the most common symbols used to denote a parameter were <code class="notranslate">_</code>, <code class="notranslate">$</code> and <code class="notranslate">[]</code>.</p>
<p dir="auto">We ruled out <code class="notranslate">_</code> because <code class="notranslate">_</code> is typically indicative of an <strong>internal route</strong> that is not publicly routable (e.g. <code class="notranslate">_app</code>, <code class="notranslate">_document</code>, <code class="notranslate">/_src</code>, <code class="notranslate">/_logs</code>).<br>
We also ruled out <code class="notranslate">$</code> because it is a sigil in bash for parameter expansion.</p>
<h3 dir="auto">Leverage <code class="notranslate">path-to-regexp</code> for comprehensive support</h3>
<p dir="auto">Most of the symbols required to express regex are <a href="https://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words" rel="nofollow">not valid filenames</a>. Additionally, complex regexes are sensitive to route ordering for prioritization. The filesystem cannot express order nor contain regex symbols.</p>
<p dir="auto">In the future, we may allow <code class="notranslate">path-to-regexp</code> routes defined in <code class="notranslate">next.config.js</code> or similar. This is currently out of scope for this proposal.</p>
<h2 dir="auto">Future Exploration</h2>
<h3 dir="auto">Catch-All Parameters</h3>
<p dir="auto">In the future, we may consider adding catch-all parameters. With what we know thus far, these parameters must be at the <strong>end of the URL</strong> and would potentially use <code class="notranslate">%</code> to denote a catch-all route (e.g. <code class="notranslate">pages/website-builder/[customerName]/%.tsx</code>).</p> | <p dir="auto">Currently I am working on an i18n solution with my nextjs app. In general I don't want to include all the text strings with the initial page load. Especially with huge pages (think of wikipedia or a terms and condition page). All those text strings are already part of the server side rendered document. Why include it again in <code class="notranslate">__NEXT_DATA__</code> and add it into the initial page load, when it is not needed for the initial display of the page?</p>
<p dir="auto">I am not very familiar with all the internals but this goes for a lot of data. Lots of us are using redux. The initial redux store doesn't have to be part of the first load.</p>
<p dir="auto">This might not be a huge performance improvement for many websites but for some of them it is. And I don't see any benefit in serving this data with the first load.</p>
<p dir="auto">What do you think?</p> | 0 |
<p dir="auto">I started to give error "writebarrierptr_nostore1" without any stack after compilation of my app "<a href="https://github.com/vsdutka/iplsgo">https://github.com/vsdutka/iplsgo</a>" with Go 1.5 and stress it by 400 concurent requests.</p>
<p dir="auto">OS: Windows Server 2008 R2 Standart 64bit</p> | <p dir="auto">This looks a lot like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="97186238" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/11863" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/11863/hovercard" href="https://github.com/golang/go/issues/11863">#11863</a></p>
<p dir="auto">Stack trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="found next stack barrier at 0xc857445a00; expected [*0xc8427059f0=0x869015 *0xc842705e38=0x61b1de]
fatal error: missed stack barrier
goroutine 0 [idle]:
runtime.throw(0xcb8fc0, 0x14)
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:527 +0x90
runtime.gentraceback(0x413929, 0x7fea597f9b48, 0x0, 0xc8206ca300, 0x0, 0xc8207a7738, 0x40, 0x0, 0x0, 0x6, ...)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:261 +0x1053
runtime.sigprof(0x413929, 0x7fea597f9b48, 0x0, 0xc8206ca300, 0xc82079c000)
/root/.gvm/gos/go1.5.1/src/runtime/proc1.go:2585 +0x50b
runtime.sighandler(0xc80000001b, 0xc8207a7bb0, 0xc8207a7a80, 0xc8206ca300)
/root/.gvm/gos/go1.5.1/src/runtime/signal_amd64x.go:47 +0xbe
runtime.sigtrampgo(0x1b, 0xc8207a7bb0, 0xc8207a7a80)
/root/.gvm/gos/go1.5.1/src/runtime/signal_linux.go:94 +0x95
runtime.sigtramp(0x1, 0x0, 0xc8207a0000, 0x0, 0x7fa0, 0x4000000, 0xc859cb1c80, 0x0, 0x0, 0x3, ...)
/root/.gvm/gos/go1.5.1/src/runtime/sys_linux_amd64.s:234 +0x1b
runtime.sigreturn(0x0, 0xc8207a0000, 0x0, 0x7fa0, 0x4000000, 0xc859cb1c80, 0x0, 0x0, 0x3, 0xd817e3, ...)
/root/.gvm/gos/go1.5.1/src/runtime/sys_linux_amd64.s:238
goroutine 870933 [copystack]:
runtime.callers(0x4, 0xc842705298, 0x20, 0x20, 0xd)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:562 fp=0xc857445268 sp=0xc857445260
runtime.mProf_Malloc(0xc82e414580, 0x40)
/root/.gvm/gos/go1.5.1/src/runtime/mprof.go:235 +0x7f fp=0xc8574453e8 sp=0xc857445268
runtime.profilealloc(0xc82079c000, 0xc82e414580, 0x40)
/root/.gvm/gos/go1.5.1/src/runtime/malloc.go:811 +0x98 fp=0xc857445410 sp=0xc8574453e8
runtime.mallocgc(0x40, 0x0, 0x3, 0x412bd5)
/root/.gvm/gos/go1.5.1/src/runtime/malloc.go:699 +0x5d3 fp=0xc8574454e0 sp=0xc857445410
runtime.rawstring(0x31, 0x0, 0x0, 0x0, 0x0, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/string.go:264 +0x70 fp=0xc857445528 sp=0xc8574454e0
runtime.rawstringtmp(0x0, 0x31, 0x0, 0x0, 0x0, 0x0, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/string.go:107 +0xb7 fp=0xc857445560 sp=0xc857445528
runtime.concatstrings(0x0, 0xc8427056e0, 0x3, 0x3, 0x0, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/string.go:48 +0x1c2 fp=0xc857445698 sp=0xc857445560
runtime.concatstring3(0x0, 0xc82e412420, 0x28, 0xc2d0e8, 0x4, 0xc841aaf3d0, 0x5, 0x0, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/string.go:62 +0x6a fp=0xc8574456e8 sp=0xc857445698
found next stack barrier at 0xc857445a00; expected [*0xc8427059f0=0x869015 *0xc842705e38=0x61b1de]
fatal error: missed stack barrier
panic during panic
goroutine 0 [idle]:
runtime.startpanic_m()
/root/.gvm/gos/go1.5.1/src/runtime/panic1.go:67 +0x141
runtime.systemstack(0xd862e0)
/root/.gvm/gos/go1.5.1/src/runtime/asm_amd64.s:278 +0xab
runtime.startpanic()
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:505 +0x14
runtime.throw(0xcb8fc0, 0x14)
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:526 +0x83
runtime.gentraceback(0x452670, 0xc857445260, 0x0, 0xc859cb1c80, 0x0, 0x0, 0x64, 0x0, 0x0, 0x0, ...)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:261 +0x1053
runtime.traceback1(0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xc859cb1c80, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:552 +0xc8
runtime.traceback(0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xc859cb1c80)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:529 +0x48
runtime.tracebackothers(0xc8206ca180)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:666 +0xda
runtime.dopanic_m(0xc8206ca180, 0x42e9a0, 0xc8207a7588)
/root/.gvm/gos/go1.5.1/src/runtime/panic1.go:104 +0x1f9
runtime.dopanic.func1()
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:514 +0x32
runtime.systemstack(0xc8207a7560)
/root/.gvm/gos/go1.5.1/src/runtime/asm_amd64.s:278 +0xab
runtime.dopanic(0x0)
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:515 +0x61
runtime.throw(0xcb8fc0, 0x14)
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:527 +0x90
runtime.gentraceback(0x413929, 0x7fea597f9b48, 0x0, 0xc8206ca300, 0x0, 0xc8207a7738, 0x40, 0x0, 0x0, 0x6, ...)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:261 +0x1053
runtime.sigprof(0x413929, 0x7fea597f9b48, 0x0, 0xc8206ca300, 0xc82079c000)
/root/.gvm/gos/go1.5.1/src/runtime/proc1.go:2585 +0x50b
runtime.sighandler(0xc80000001b, 0xc8207a7bb0, 0xc8207a7a80, 0xc8206ca300)
/root/.gvm/gos/go1.5.1/src/runtime/signal_amd64x.go:47 +0xbe
runtime.sigtrampgo(0x1b, 0xc8207a7bb0, 0xc8207a7a80)
/root/.gvm/gos/go1.5.1/src/runtime/signal_linux.go:94 +0x95
runtime.sigtramp(0x1, 0x0, 0xc8207a0000, 0x0, 0x7fa0, 0x4000000, 0xc859cb1c80, 0x0, 0x0, 0x3, ...)
/root/.gvm/gos/go1.5.1/src/runtime/sys_linux_amd64.s:234 +0x1b
runtime.sigreturn(0x0, 0xc8207a0000, 0x0, 0x7fa0, 0x4000000, 0xc859cb1c80, 0x0, 0x0, 0x3, 0xd817e3, ...)
/root/.gvm/gos/go1.5.1/src/runtime/sys_linux_amd64.s:238"><pre class="notranslate"><code class="notranslate">found next stack barrier at 0xc857445a00; expected [*0xc8427059f0=0x869015 *0xc842705e38=0x61b1de]
fatal error: missed stack barrier
goroutine 0 [idle]:
runtime.throw(0xcb8fc0, 0x14)
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:527 +0x90
runtime.gentraceback(0x413929, 0x7fea597f9b48, 0x0, 0xc8206ca300, 0x0, 0xc8207a7738, 0x40, 0x0, 0x0, 0x6, ...)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:261 +0x1053
runtime.sigprof(0x413929, 0x7fea597f9b48, 0x0, 0xc8206ca300, 0xc82079c000)
/root/.gvm/gos/go1.5.1/src/runtime/proc1.go:2585 +0x50b
runtime.sighandler(0xc80000001b, 0xc8207a7bb0, 0xc8207a7a80, 0xc8206ca300)
/root/.gvm/gos/go1.5.1/src/runtime/signal_amd64x.go:47 +0xbe
runtime.sigtrampgo(0x1b, 0xc8207a7bb0, 0xc8207a7a80)
/root/.gvm/gos/go1.5.1/src/runtime/signal_linux.go:94 +0x95
runtime.sigtramp(0x1, 0x0, 0xc8207a0000, 0x0, 0x7fa0, 0x4000000, 0xc859cb1c80, 0x0, 0x0, 0x3, ...)
/root/.gvm/gos/go1.5.1/src/runtime/sys_linux_amd64.s:234 +0x1b
runtime.sigreturn(0x0, 0xc8207a0000, 0x0, 0x7fa0, 0x4000000, 0xc859cb1c80, 0x0, 0x0, 0x3, 0xd817e3, ...)
/root/.gvm/gos/go1.5.1/src/runtime/sys_linux_amd64.s:238
goroutine 870933 [copystack]:
runtime.callers(0x4, 0xc842705298, 0x20, 0x20, 0xd)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:562 fp=0xc857445268 sp=0xc857445260
runtime.mProf_Malloc(0xc82e414580, 0x40)
/root/.gvm/gos/go1.5.1/src/runtime/mprof.go:235 +0x7f fp=0xc8574453e8 sp=0xc857445268
runtime.profilealloc(0xc82079c000, 0xc82e414580, 0x40)
/root/.gvm/gos/go1.5.1/src/runtime/malloc.go:811 +0x98 fp=0xc857445410 sp=0xc8574453e8
runtime.mallocgc(0x40, 0x0, 0x3, 0x412bd5)
/root/.gvm/gos/go1.5.1/src/runtime/malloc.go:699 +0x5d3 fp=0xc8574454e0 sp=0xc857445410
runtime.rawstring(0x31, 0x0, 0x0, 0x0, 0x0, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/string.go:264 +0x70 fp=0xc857445528 sp=0xc8574454e0
runtime.rawstringtmp(0x0, 0x31, 0x0, 0x0, 0x0, 0x0, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/string.go:107 +0xb7 fp=0xc857445560 sp=0xc857445528
runtime.concatstrings(0x0, 0xc8427056e0, 0x3, 0x3, 0x0, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/string.go:48 +0x1c2 fp=0xc857445698 sp=0xc857445560
runtime.concatstring3(0x0, 0xc82e412420, 0x28, 0xc2d0e8, 0x4, 0xc841aaf3d0, 0x5, 0x0, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/string.go:62 +0x6a fp=0xc8574456e8 sp=0xc857445698
found next stack barrier at 0xc857445a00; expected [*0xc8427059f0=0x869015 *0xc842705e38=0x61b1de]
fatal error: missed stack barrier
panic during panic
goroutine 0 [idle]:
runtime.startpanic_m()
/root/.gvm/gos/go1.5.1/src/runtime/panic1.go:67 +0x141
runtime.systemstack(0xd862e0)
/root/.gvm/gos/go1.5.1/src/runtime/asm_amd64.s:278 +0xab
runtime.startpanic()
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:505 +0x14
runtime.throw(0xcb8fc0, 0x14)
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:526 +0x83
runtime.gentraceback(0x452670, 0xc857445260, 0x0, 0xc859cb1c80, 0x0, 0x0, 0x64, 0x0, 0x0, 0x0, ...)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:261 +0x1053
runtime.traceback1(0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xc859cb1c80, 0x0)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:552 +0xc8
runtime.traceback(0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xc859cb1c80)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:529 +0x48
runtime.tracebackothers(0xc8206ca180)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:666 +0xda
runtime.dopanic_m(0xc8206ca180, 0x42e9a0, 0xc8207a7588)
/root/.gvm/gos/go1.5.1/src/runtime/panic1.go:104 +0x1f9
runtime.dopanic.func1()
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:514 +0x32
runtime.systemstack(0xc8207a7560)
/root/.gvm/gos/go1.5.1/src/runtime/asm_amd64.s:278 +0xab
runtime.dopanic(0x0)
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:515 +0x61
runtime.throw(0xcb8fc0, 0x14)
/root/.gvm/gos/go1.5.1/src/runtime/panic.go:527 +0x90
runtime.gentraceback(0x413929, 0x7fea597f9b48, 0x0, 0xc8206ca300, 0x0, 0xc8207a7738, 0x40, 0x0, 0x0, 0x6, ...)
/root/.gvm/gos/go1.5.1/src/runtime/traceback.go:261 +0x1053
runtime.sigprof(0x413929, 0x7fea597f9b48, 0x0, 0xc8206ca300, 0xc82079c000)
/root/.gvm/gos/go1.5.1/src/runtime/proc1.go:2585 +0x50b
runtime.sighandler(0xc80000001b, 0xc8207a7bb0, 0xc8207a7a80, 0xc8206ca300)
/root/.gvm/gos/go1.5.1/src/runtime/signal_amd64x.go:47 +0xbe
runtime.sigtrampgo(0x1b, 0xc8207a7bb0, 0xc8207a7a80)
/root/.gvm/gos/go1.5.1/src/runtime/signal_linux.go:94 +0x95
runtime.sigtramp(0x1, 0x0, 0xc8207a0000, 0x0, 0x7fa0, 0x4000000, 0xc859cb1c80, 0x0, 0x0, 0x3, ...)
/root/.gvm/gos/go1.5.1/src/runtime/sys_linux_amd64.s:234 +0x1b
runtime.sigreturn(0x0, 0xc8207a0000, 0x0, 0x7fa0, 0x4000000, 0xc859cb1c80, 0x0, 0x0, 0x3, 0xd817e3, ...)
/root/.gvm/gos/go1.5.1/src/runtime/sys_linux_amd64.s:238
</code></pre></div> | 1 |
<p dir="auto">With Julia 0.4.0-dev, the input <code class="notranslate">"a" "b"</code> in the REPL leads to the output <code class="notranslate">"a"</code> instead of a string concatenation or an error. The second string <code class="notranslate">"b"</code> is silently discarded.</p> | <p dir="auto">I would suggest that new syntax "a..b" represents "[a, a+1, a+2, ... , b]".<br>
The followings should then become true:<br>
"1..5" represents "[1, 2, 3, 4, 5]".<br>
"reverse(1..5)" represents "[5, 4, 3, 2, 1]".<br>
"1..99[1:2:end]" represents "[1, 3, 5, 7, ..., 99]".</p>
<p dir="auto">Related issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16831688" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/3737" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/3737/hovercard" href="https://github.com/JuliaLang/julia/issues/3737">#3737</a></p> | 0 |
<p dir="auto">I have been attempting to switch my Future / Stream lib to use associated types, however I have been hitting snags. Even though all the types (as far as I can tell) are bound by Send (and some by 'static too), I have been getting a lot of error messages:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:43: 90:26 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:43: 90:26 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:43: 90:26 note: ...so that captured variable `c` does not outlive the enclosing closure
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:30: 90:27 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:30: 90:27 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:30: 90:27 note: ...so that the declared lifetime parameter bounds are satisfied
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:31: 94:14 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:31: 94:14 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:31: 94:14 note: ...so that captured variable `c` does not outlive the enclosing closure
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 note: ...so that the declared lifetime parameter bounds are satisfied
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 note: ...so that the declared lifetime parameter bounds are satisfied
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 note: ...so that the declared lifetime parameter bounds are satisfied
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),"><pre class="notranslate"><code class="notranslate">/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:43: 90:26 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:43: 90:26 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:43: 90:26 note: ...so that captured variable `c` does not outlive the enclosing closure
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:30: 90:27 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:30: 90:27 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85:30: 90:27 note: ...so that the declared lifetime parameter bounds are satisfied
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:88 Err(_) => unimplemented!(),
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:89 }
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:90 });
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:31: 94:14 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:31: 94:14 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:31: 94:14 note: ...so that captured variable `c` does not outlive the enclosing closure
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 note: ...so that the declared lifetime parameter bounds are satisfied
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 note: ...so that the declared lifetime parameter bounds are satisfied
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 error: the associated type `<U as util::async::Async>::Value` may not live long enough
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 help: consider adding an explicit lifetime bound `<U as util::async::Async>::Value: 'static`...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
...
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82:18: 94:15 note: ...so that the declared lifetime parameter bounds are satisfied
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:82 self.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:83 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:84 Ok(_) => {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:85 next.receive(move |res| {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:86 match res {
/Users/carllerche/Code/mine/syncbox/src/util/async/future.rs:87 Ok(u) => c.complete(u),
</code></pre></div>
<p dir="auto">The repro is trying to compile syncbox on the async-associated-type branch. Sorry for not reducing more <g-emoji class="g-emoji" alias="cry" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f622.png">😢</g-emoji></p>
<p dir="auto"><a href="https://github.com/carllerche/syncbox/tree/async-associated-type">https://github.com/carllerche/syncbox/tree/async-associated-type</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></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<T: 'static>() {}
fn takes_foo<F: Foo>() {
require_static::<F::Value>()
}"><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"><</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">></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"><</span><span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Foo</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">require_static</span><span class="pl-kos">::</span><span class="pl-kos"><</span><span class="pl-smi">F</span><span class="pl-kos">::</span><span class="pl-smi">Value</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">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="<anon>:6:3: 6:29 error: the associated type `<F as Foo>::Value` may not live long enough
<anon>:6 require_static::<F::Value>()
^~~~~~~~~~~~~~~~~~~~~~~~~~
<anon>:6:3: 6:29 help: consider adding an explicit lifetime bound `<F as Foo>::Value: 'static`...
<anon>:6 require_static::<F::Value>()
^~~~~~~~~~~~~~~~~~~~~~~~~~
<anon>:6:3: 6:29 note: ...so that the declared lifetime parameter bounds are satisfied
<anon>:6 require_static::<F::Value>()
^~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error"><pre class="notranslate"><code class="notranslate"><anon>:6:3: 6:29 error: the associated type `<F as Foo>::Value` may not live long enough
<anon>:6 require_static::<F::Value>()
^~~~~~~~~~~~~~~~~~~~~~~~~~
<anon>:6:3: 6:29 help: consider adding an explicit lifetime bound `<F as Foo>::Value: 'static`...
<anon>:6 require_static::<F::Value>()
^~~~~~~~~~~~~~~~~~~~~~~~~~
<anon>:6:3: 6:29 note: ...so that the declared lifetime parameter bounds are satisfied
<anon>:6 require_static::<F::Value>()
^~~~~~~~~~~~~~~~~~~~~~~~~~
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> | 1 |
<h2 dir="auto">Feature</h2>
<p dir="auto">As the subject says it will be great if <code class="notranslate">np.fill_diagonal</code> had a k-ith diagonal argument as <code class="notranslate">np.diag</code> does. The behavior expected (and a hack for the solution) is better explained in the <a href="https://stackoverflow.com/questions/65299295/assign-shifted-diagonal-values-with-np-diag/65299483" rel="nofollow">following StackOverflow question</a> by me</p>
<h2 dir="auto">Expected behaviour</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> u = np.zeros(25).reshape(5, 5)
>>> u
array([[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.]])
>>> np.fill_diagonal(u, 1, k=1)
>>> u
array([[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.],
[0., 0., 0., 0., 0.]])"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">u</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">25</span>).<span class="pl-en">reshape</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-s1">u</span>
<span class="pl-en">array</span>([[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>]])
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">np</span>.<span class="pl-en">fill_diagonal</span>(<span class="pl-s1">u</span>, <span class="pl-c1">1</span>, <span class="pl-s1">k</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">u</span>
<span class="pl-en">array</span>([[<span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>]])</pre></div>
<h2 dir="auto">Current solution</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> u = np.zeros(25).reshape(5, 5)
>>> u
array([[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0.]])
>>> u[np.eye(len(u), k=1, dtype='bool')] = 1
>>> u
array([[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.],
[0., 0., 0., 0., 0.]])"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">u</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">25</span>).<span class="pl-en">reshape</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-s1">u</span>
<span class="pl-en">array</span>([[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>]])
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">u</span>[<span class="pl-s1">np</span>.<span class="pl-en">eye</span>(<span class="pl-en">len</span>(<span class="pl-s1">u</span>), <span class="pl-s1">k</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'bool'</span>)] <span class="pl-c1">=</span> <span class="pl-c1">1</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">u</span>
<span class="pl-en">array</span>([[<span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>]])</pre></div>
<h2 dir="auto">Why this syntax?</h2>
<p dir="auto">This is already intuitive as <code class="notranslate">np.diag</code> use the same syntax. For example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> u
array([[0., 1., 0., 0., 0.],
[0., 0., 1., 0., 0.],
[0., 0., 0., 1., 0.],
[0., 0., 0., 0., 1.],
[0., 0., 0., 0., 0.]])
>>> np.diag(u, k=1)
array([1., 1., 1., 1.])"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">u</span>
<span class="pl-en">array</span>([[<span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">0.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>],
[<span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>, <span class="pl-c1">0.</span>]])
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">np</span>.<span class="pl-en">diag</span>(<span class="pl-s1">u</span>, <span class="pl-s1">k</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-en">array</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>])</pre></div>
<p dir="auto">Unfortunately, as <code class="notranslate">np.diag</code> is a function, one cannot assign a value like <code class="notranslate">np.diag(u, k=1) = 1</code>. That's why implementing the <code class="notranslate">k</code> argument on <code class="notranslate">np.fill_diagonal</code> should be desired.</p>
<p dir="auto">I want to take this issue and make a PR. Just want to discuss it before to better implement it and document it.</p> | <p dir="auto">It would be really nice if <code class="notranslate">np.fill_diagonal</code> could fill other diagonals besides the main diagonal. This would match the <code class="notranslate">offset</code> argument of <code class="notranslate">np.diagonal.</code></p>
<p dir="auto">Shouldn't require much code to allow this.</p> | 1 |
<p dir="auto">I tried to solve the eigenvalues and eigenvectors of a Hermitian matrix, the code used to work nicely and still works in Cocalc, but not on my windows 10 (the system got some updates) now, and the error is very confusing, I can not figure out what is happening now, maybe someone also has a similar issue.</p>
<p dir="auto">Python version: 3.7.2<br>
NumPy version: 1.16<br>
windows version: Windows Pro 19041.508<br>
Intel: i7-3930K, 64 GB memory.</p>
<h3 dir="auto">Reproducing code example:</h3>
<p dir="auto">I am not sure if this can be reproduced on another system, but it can be reproduced in my computer, I recorded a video showing how that happens:</p>
<p dir="auto"><a href="https://www.youtube.com/watch?v=ZA_0kyXiXco" rel="nofollow">https://www.youtube.com/watch?v=ZA_0kyXiXco</a></p>
<p dir="auto">The matrix is 2048 by 2048, and if I call the <code class="notranslate">linalg.eigh </code>twice, it works. That is funny!</p> | <p dir="auto">Add support for the <a href="http://en.wikipedia.org/wiki/Cholesky#LDL_decomposition_2" rel="nofollow">LDL decomposition</a>, which is a variant of the Cholesky decomposition that doesn't take any square roots (faster). LAPACK has a function for this called DPTTRF, so I'm guessing that supporting this is just a matter of adding a wrapper for this function. Also, if this is something that would fit better in Scipy, let me know.</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gdfloyd" rel="nofollow">Floyd</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9266?redirect=false" rel="nofollow">SPR-9266</a></strong> and commented</p>
<p dir="auto">I am not sure if any one has raised this concern before.</p>
<p dir="auto">I saw this in StackOverflow : <a href="http://stackoverflow.com/questions/8417232/spring-delegatingfilterproxy-multi-threading-concerns" rel="nofollow">http://stackoverflow.com/questions/8417232/spring-delegatingfilterproxy-multi-threading-concerns</a></p>
<p dir="auto">Running in high load, the "synchronized (this.delegateMonitor)" in the "doFilter" method may be a bottleneck. it could be better synchronization is placed in the double null check.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398158138" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15046" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15046/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15046">#15046</a> Unnecessary blocking in DelegatingFilterProxy (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kompot2k" rel="nofollow">Yury Lapko</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-10413?redirect=false" rel="nofollow">SPR-10413</a></strong> and commented</p>
<p dir="auto">Unnecessary thread blocking occurs every time when the method doFilter is called. Can be used double check locking to avoid unnecessary thread blocking.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.2.2</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="https://github.com/SpringSource/spring-framework/blob/3.2.x/spring-web/src/main/java/org/springframework/web/filter/DelegatingFilterProxy.java">https://github.com/SpringSource/spring-framework/blob/3.2.x/spring-web/src/main/java/org/springframework/web/filter/DelegatingFilterProxy.java</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118266" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13904" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13904/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13904">#13904</a> Spring DelegatingFilterProxy synchronization in multi-threading (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/c26272cef62b1e6f3bb982d7f71b2f47c685b014/hovercard" href="https://github.com/spring-projects/spring-framework/commit/c26272cef62b1e6f3bb982d7f71b2f47c685b014"><tt>c26272c</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/20ddd3254b2378862b821f66cdbb101a6a8c6942/hovercard" href="https://github.com/spring-projects/spring-framework/commit/20ddd3254b2378862b821f66cdbb101a6a8c6942"><tt>20ddd32</tt></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 => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => 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 => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => 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>
There is no simple solution or workaround to add a new named <code class="notranslate">router-outlet</code> at runtime.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
We have a use case where we need to dinamically display modules ( which needs a router ) at runtime.<br>
We have no clue how many modules need to be added. Imagine something like a pluggable framework.</p>
<p dir="auto">We found a solution to 'inject' a <code class="notranslate">router-outlet</code> tag using a <code class="notranslate">ng-template</code> and a <code class="notranslate">ViewContainerRef</code>. But we have issues with the <code class="notranslate">name</code> attribute. Managed to fix this by making our own <code class="notranslate">router-outlet</code> directive, but this is not a good long-term solution.</p>
<p dir="auto">We do not need binding on it, but some way to programatically set the <code class="notranslate">router-outlet</code> name only when it is created. Would be lovely if maybe instead of the <code class="notranslate">@Attribute</code> we could have something that can take a string property instead of a string literal.</p>
<p dir="auto">Note: Not sure if this is a duplicate of : <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="185183664" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/12522" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/12522/hovercard" href="https://github.com/angular/angular/issues/12522">#12522</a>. We need to only set it when created insted of having it as an <code class="notranslate">@Input</code> ( that would imply binding would work on it )</p> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => 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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">creating a messages.xlf using Angular CLI: <code class="notranslate">ng xi18n</code><br>
As i don't need to translate English to English I use the generated file to build the English version<br>
<code class="notranslate">ng serve --aot --locale en --i18n-file src/messages.xlf</code><br>
=> All strings are missing<br>
(i think this comes from empty <code class="notranslate"><target /></code> in the xfl file)<br>
Same for all other languages. Documentation suggests to copy the messages.xlf to /locale/messages.??.xlf. If I now build the localized version with a incomplete translation, all not translated strings are missing.</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">I would expect that missing translations show the original string instead of nothing.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto">see Current behavior</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">Keeping all translation files up to date in time is a complicated workflow and then a not translated string is better than a missing string.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 4.0.1</li>
</ul>
<ul dir="auto">
<li><strong>Browser:</strong> Firefox/Chrome</li>
</ul>
<ul dir="auto">
<li>
<p dir="auto"><strong>Language:</strong> N/A</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> v6.10.1</p>
</li>
</ul> | 0 |
<p dir="auto">Executing same code in 2 machines</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.6.5
numpy==1.14.4"><pre class="notranslate"><code class="notranslate">Python 3.6.5
numpy==1.14.4
</code></pre></div>
<p dir="auto">and</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.7.6
numpy==1.17.3"><pre class="notranslate"><code class="notranslate">Python 3.7.6
numpy==1.17.3
</code></pre></div>
<p dir="auto">the time it takes in 1.14 is near 3 times faster. Downgrading to 1.14 from 1.17 confirms it:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/895596/75329664-4bdc2c00-5880-11ea-85a2-36e8bcc0a688.jpg"><img src="https://user-images.githubusercontent.com/895596/75329664-4bdc2c00-5880-11ea-85a2-36e8bcc0a688.jpg" alt="IMAGE 2020-02-26 10:10:51" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/895596/75329673-50a0e000-5880-11ea-8efa-3111a9091229.jpg"><img src="https://user-images.githubusercontent.com/895596/75329673-50a0e000-5880-11ea-8efa-3111a9091229.jpg" alt="IMAGE 2020-02-26 10:10:54" style="max-width: 100%;"></a></p> | <p dir="auto">Hi, I am seeing a performance regression when migrating from numpy 1.11.0 to 1.16.4. The performance decrease seems to be spread across multiple numpy functions, but here is a simple example which shows a consistent performance difference:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from __future__ import absolute_import
from __future__ import division
import numpy as np
import cProfile
def mean_test(array):
return np.mean(array)
def mean_benchmark():
my_array = np.ones((3, 3), dtype=np.float32)
for _ in range(7600):
mean_test(my_array)
if __name__ == "__main__":
cProfile.run('mean_benchmark()', sort='cumtime')"><pre lang="from" class="notranslate"><code class="notranslate">from __future__ import absolute_import
from __future__ import division
import numpy as np
import cProfile
def mean_test(array):
return np.mean(array)
def mean_benchmark():
my_array = np.ones((3, 3), dtype=np.float32)
for _ in range(7600):
mean_test(my_array)
if __name__ == "__main__":
cProfile.run('mean_benchmark()', sort='cumtime')
</code></pre></div>
<p dir="auto">If I run this 3 times, and pick the best run out of the 3, I get:</p>
<p dir="auto">For numpy 1.11.0:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" 91207 function calls in 0.125 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.125 0.125 <string>:1(<module>)
1 0.003 0.003 0.125 0.125 numpy_benchmark.py:113(mean_benchmark)
7600 0.004 0.000 0.121 0.000 numpy_benchmark.py:9(mean_test)
7600 0.007 0.000 0.118 0.000 fromnumeric.py:2796(mean)
7600 0.055 0.000 0.110 0.000 _methods.py:53(_mean)
7600 0.017 0.000 0.020 0.000 _methods.py:43(_count_reduce_items)
7600 0.020 0.000 0.020 0.000 {method 'reduce' of 'numpy.ufunc' objects}
7600 0.005 0.000 0.006 0.000 numeric.py:484(asanyarray)
15200 0.004 0.000 0.004 0.000 {isinstance}
7600 0.003 0.000 0.003 0.000 {issubclass}
7601 0.003 0.000 0.003 0.000 {range}
7600 0.002 0.000 0.002 0.000 {hasattr}
7600 0.002 0.000 0.002 0.000 {numpy.core.multiarray.array}
1 0.000 0.000 0.000 0.000 numeric.py:148(ones)
1 0.000 0.000 0.000 0.000 {numpy.core.multiarray.copyto}
1 0.000 0.000 0.000 0.000 {numpy.core.multiarray.empty}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}"><pre class="notranslate"> <span class="pl-c1">91207</span> <span class="pl-s1">function</span> <span class="pl-s1">calls</span> <span class="pl-c1">in</span> <span class="pl-c1">0.125</span> <span class="pl-s1">seconds</span>
<span class="pl-v">Ordered</span> <span class="pl-s1">by</span>: <span class="pl-s1">cumulative</span> <span class="pl-s1">time</span>
<span class="pl-s1">ncalls</span> <span class="pl-s1">tottime</span> <span class="pl-s1">percall</span> <span class="pl-s1">cumtime</span> <span class="pl-s1">percall</span> <span class="pl-s1">filename</span>:<span class="pl-en">lineno</span>(<span class="pl-s1">function</span>)
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.125</span> <span class="pl-c1">0.125</span> <span class="pl-c1"><</span><span class="pl-s1">string</span><span class="pl-c1">></span>:<span class="pl-c1">1</span>(<span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>)
<span class="pl-c1">1</span> <span class="pl-c1">0.003</span> <span class="pl-c1">0.003</span> <span class="pl-c1">0.125</span> <span class="pl-c1">0.125</span> <span class="pl-s1">numpy_benchmark</span>.<span class="pl-s1">py</span>:<span class="pl-c1">113</span>(<span class="pl-s1">mean_benchmark</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.004</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.121</span> <span class="pl-c1">0.000</span> <span class="pl-s1">numpy_benchmark</span>.<span class="pl-s1">py</span>:<span class="pl-c1">9</span>(<span class="pl-s1">mean_test</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.007</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.118</span> <span class="pl-c1">0.000</span> <span class="pl-s1">fromnumeric</span>.<span class="pl-s1">py</span>:<span class="pl-c1">2796</span>(<span class="pl-s1">mean</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.055</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.110</span> <span class="pl-c1">0.000</span> <span class="pl-s1">_methods</span>.<span class="pl-s1">py</span>:<span class="pl-c1">53</span>(<span class="pl-s1">_mean</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.017</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.020</span> <span class="pl-c1">0.000</span> <span class="pl-s1">_methods</span>.<span class="pl-s1">py</span>:<span class="pl-c1">43</span>(<span class="pl-s1">_count_reduce_items</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.020</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.020</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">method</span> <span class="pl-s">'reduce'</span> <span class="pl-s1">of</span> <span class="pl-s">'numpy.ufunc'</span> <span class="pl-s1">objects</span>}
<span class="pl-c1">7600</span> <span class="pl-c1">0.005</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.006</span> <span class="pl-c1">0.000</span> <span class="pl-s1">numeric</span>.<span class="pl-s1">py</span>:<span class="pl-c1">484</span>(<span class="pl-s1">asanyarray</span>)
<span class="pl-c1">15200</span> <span class="pl-c1">0.004</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.004</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">isinstance</span>}
<span class="pl-c1">7600</span> <span class="pl-c1">0.003</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.003</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">issubclass</span>}
<span class="pl-c1">7601</span> <span class="pl-c1">0.003</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.003</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">range</span>}
<span class="pl-c1">7600</span> <span class="pl-c1">0.002</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.002</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">hasattr</span>}
<span class="pl-c1">7600</span> <span class="pl-c1">0.002</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.002</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">numpy</span>.<span class="pl-s1">core</span>.<span class="pl-s1">multiarray</span>.<span class="pl-s1">array</span>}
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-s1">numeric</span>.<span class="pl-s1">py</span>:<span class="pl-c1">148</span>(<span class="pl-s1">ones</span>)
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">numpy</span>.<span class="pl-s1">core</span>.<span class="pl-s1">multiarray</span>.<span class="pl-s1">copyto</span>}
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">numpy</span>.<span class="pl-s1">core</span>.<span class="pl-s1">multiarray</span>.<span class="pl-s1">empty</span>}
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">method</span> <span class="pl-s">'disable'</span> <span class="pl-s1">of</span> <span class="pl-s">'_lsprof.Profiler'</span> <span class="pl-s1">objects</span>}</pre></div>
<p dir="auto">and for numpy 1.16.4:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" 98807 function calls in 0.135 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.135 0.135 <string>:1(<module>)
1 0.004 0.004 0.135 0.135 numpy_benchmark.py:113(mean_benchmark)
7600 0.004 0.000 0.131 0.000 numpy_benchmark.py:9(mean_test)
7600 0.010 0.000 0.127 0.000 fromnumeric.py:3014(mean)
7600 0.062 0.000 0.117 0.000 _methods.py:58(_mean)
7600 0.020 0.000 0.020 0.000 {method 'reduce' of 'numpy.ufunc' objects}
7600 0.016 0.000 0.020 0.000 _methods.py:48(_count_reduce_items)
7600 0.005 0.000 0.006 0.000 numeric.py:541(asanyarray)
15200 0.005 0.000 0.005 0.000 {issubclass}
15200 0.004 0.000 0.004 0.000 {isinstance}
7601 0.003 0.000 0.003 0.000 {range}
7600 0.002 0.000 0.002 0.000 {hasattr}
7600 0.002 0.000 0.002 0.000 {numpy.array}
1 0.000 0.000 0.000 0.000 numeric.py:175(ones)
1 0.000 0.000 0.000 0.000 {numpy.copyto}
1 0.000 0.000 0.000 0.000 {numpy.empty}
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}"><pre class="notranslate"> <span class="pl-c1">98807</span> <span class="pl-s1">function</span> <span class="pl-s1">calls</span> <span class="pl-c1">in</span> <span class="pl-c1">0.135</span> <span class="pl-s1">seconds</span>
<span class="pl-v">Ordered</span> <span class="pl-s1">by</span>: <span class="pl-s1">cumulative</span> <span class="pl-s1">time</span>
<span class="pl-s1">ncalls</span> <span class="pl-s1">tottime</span> <span class="pl-s1">percall</span> <span class="pl-s1">cumtime</span> <span class="pl-s1">percall</span> <span class="pl-s1">filename</span>:<span class="pl-en">lineno</span>(<span class="pl-s1">function</span>)
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.135</span> <span class="pl-c1">0.135</span> <span class="pl-c1"><</span><span class="pl-s1">string</span><span class="pl-c1">></span>:<span class="pl-c1">1</span>(<span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>)
<span class="pl-c1">1</span> <span class="pl-c1">0.004</span> <span class="pl-c1">0.004</span> <span class="pl-c1">0.135</span> <span class="pl-c1">0.135</span> <span class="pl-s1">numpy_benchmark</span>.<span class="pl-s1">py</span>:<span class="pl-c1">113</span>(<span class="pl-s1">mean_benchmark</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.004</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.131</span> <span class="pl-c1">0.000</span> <span class="pl-s1">numpy_benchmark</span>.<span class="pl-s1">py</span>:<span class="pl-c1">9</span>(<span class="pl-s1">mean_test</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.010</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.127</span> <span class="pl-c1">0.000</span> <span class="pl-s1">fromnumeric</span>.<span class="pl-s1">py</span>:<span class="pl-c1">3014</span>(<span class="pl-s1">mean</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.062</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.117</span> <span class="pl-c1">0.000</span> <span class="pl-s1">_methods</span>.<span class="pl-s1">py</span>:<span class="pl-c1">58</span>(<span class="pl-s1">_mean</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.020</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.020</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">method</span> <span class="pl-s">'reduce'</span> <span class="pl-s1">of</span> <span class="pl-s">'numpy.ufunc'</span> <span class="pl-s1">objects</span>}
<span class="pl-c1">7600</span> <span class="pl-c1">0.016</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.020</span> <span class="pl-c1">0.000</span> <span class="pl-s1">_methods</span>.<span class="pl-s1">py</span>:<span class="pl-c1">48</span>(<span class="pl-s1">_count_reduce_items</span>)
<span class="pl-c1">7600</span> <span class="pl-c1">0.005</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.006</span> <span class="pl-c1">0.000</span> <span class="pl-s1">numeric</span>.<span class="pl-s1">py</span>:<span class="pl-c1">541</span>(<span class="pl-s1">asanyarray</span>)
<span class="pl-c1">15200</span> <span class="pl-c1">0.005</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.005</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">issubclass</span>}
<span class="pl-c1">15200</span> <span class="pl-c1">0.004</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.004</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">isinstance</span>}
<span class="pl-c1">7601</span> <span class="pl-c1">0.003</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.003</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">range</span>}
<span class="pl-c1">7600</span> <span class="pl-c1">0.002</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.002</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">hasattr</span>}
<span class="pl-c1">7600</span> <span class="pl-c1">0.002</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.002</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">numpy</span>.<span class="pl-s1">array</span>}
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-s1">numeric</span>.<span class="pl-s1">py</span>:<span class="pl-c1">175</span>(<span class="pl-s1">ones</span>)
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">numpy</span>.<span class="pl-s1">copyto</span>}
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">numpy</span>.<span class="pl-s1">empty</span>}
<span class="pl-c1">1</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> <span class="pl-c1">0.000</span> {<span class="pl-s1">method</span> <span class="pl-s">'disable'</span> <span class="pl-s1">of</span> <span class="pl-s">'_lsprof.Profiler'</span> <span class="pl-s1">objects</span>}</pre></div>
<p dir="auto">The numpy/python version information printouts are:<br>
For numpy 1.11.0:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="('1.11.0', '2.7.12 (default, Nov 12 2018, 14:36:49) \n[GCC 5.4.0 20160609]')"><pre lang=">>>" class="notranslate"><code class="notranslate">('1.11.0', '2.7.12 (default, Nov 12 2018, 14:36:49) \n[GCC 5.4.0 20160609]')
</code></pre></div>
<p dir="auto">For numpy 1.16.4:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="('1.16.4', '2.7.12 (default, Nov 12 2018, 14:36:49) \n[GCC 5.4.0 20160609]')"><pre lang=">>>" class="notranslate"><code class="notranslate">('1.16.4', '2.7.12 (default, Nov 12 2018, 14:36:49) \n[GCC 5.4.0 20160609]')
</code></pre></div>
<p dir="auto">I'm using pip install to install these different versions of numpy, and I'm running these tests on a machine with Ubuntu 16.04 with a i7-8650U CPU.</p>
<p dir="auto">It's not a huge difference, but it seems to be consistent and also seems to affect other numpy operations as well. I am seeing a ~5 % decrease in run time for my overall code. I've also tested a few different versions of numpy (1.12.1, 1.13.3, 1.14.5, 1.15.4), and all seem to be slower than 1.11.0.</p> | 1 |
<p dir="auto">Hi!</p>
<p dir="auto">My entry module uses a dynamic require, which forces Webpack to try to build every file under the context directory into one gigantic bundle. Is there a way to restrict which files webpack tries to bundle in this case? For example, ignoring any files underneath various test directories? Is there also a way to force webpack to split these files out into several bundles?</p>
<p dir="auto">I think, because the dynamic require is so ambiguous, Webpack determines that every file within the context directory should be bundled with the entry file so that they're all available should the dynamic require need them. That makes plenty of sense, but at some point I'd like <code class="notranslate">require</code> to send off an ajax request for the next bundle. How can I force that?</p>
<p dir="auto">Thanks!</p> | <p dir="auto"><strong>What is the current behavior?</strong><br>
When using public/private field declarations in an es6 class. Webpack fails to bundle with the below error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in ./index.js 2:9
Module parse failed: Unexpected token (2:9)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| class Rectangle {
> height = 0;
| width;
|
ERROR in ./index.js 10:2
Module parse failed: Unexpected character '#' (10:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| class RectangleP {
> #height = 0;
| #width;
| constructor(height, width) {"><pre class="notranslate"><code class="notranslate">ERROR in ./index.js 2:9
Module parse failed: Unexpected token (2:9)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| class Rectangle {
> height = 0;
| width;
|
ERROR in ./index.js 10:2
Module parse failed: Unexpected character '#' (10:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| class RectangleP {
> #height = 0;
| #width;
| constructor(height, width) {
</code></pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto"><strong>index.js</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Rectangle {
height = 0;
width;
constructor(height, width) {
this.height = height;
this.width = width;
}
}
class RectangleP {
#height = 0;
#width;
constructor(height, width) {
this.#height = height;
this.#width = width;
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Rectangle</span> <span class="pl-kos">{</span>
<span class="pl-c1">height</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-c1">width</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">height</span><span class="pl-kos">,</span> <span class="pl-s1">width</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">height</span> <span class="pl-c1">=</span> <span class="pl-s1">height</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">width</span> <span class="pl-c1">=</span> <span class="pl-s1">width</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-v">RectangleP</span> <span class="pl-kos">{</span>
#<span class="pl-c1">height</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
#<span class="pl-c1">width</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">height</span><span class="pl-kos">,</span> <span class="pl-s1">width</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">height</span> <span class="pl-c1">=</span> <span class="pl-s1">height</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span>#<span class="pl-c1">width</span> <span class="pl-c1">=</span> <span class="pl-s1">width</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>webpack.config.js</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { resolve } = require('path');
module.exports = {
entry: './index.js',
output: {
path: resolve(__dirname, 'dist'),
filename: '[name].js'
},
resolve: {
extensions: [ '.js' ]
}
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> resolve <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">entry</span>: <span class="pl-s">'./index.js'</span><span class="pl-kos">,</span>
<span class="pl-c1">output</span>: <span class="pl-kos">{</span>
<span class="pl-c1">path</span>: <span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'dist'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">filename</span>: <span class="pl-s">'[name].js'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">resolve</span>: <span class="pl-kos">{</span>
<span class="pl-c1">extensions</span>: <span class="pl-kos">[</span> <span class="pl-s">'.js'</span> <span class="pl-kos">]</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Code gets bundled.</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 4.41.5<br>
Node.js version: v12.12.0<br>
Operating System: macOS Catalina<br>
Additional tools:</p> | 0 |
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary):</li>
<li>TensorFlow version (use command below):</li>
<li>Python version:</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture<br>
<a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with: 1. TF 1.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</code> 2. TF 2.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"</code></p>
<p dir="auto"><strong>Describe the current behavior</strong></p>
<p dir="auto"><strong>Describe the expected behavior</strong></p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<p dir="auto"><strong>Other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | <p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary):</li>
<li>TensorFlow version (use command below):</li>
<li>Python version:</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture<br>
<a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with: 1. TF 1.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</code> 2. TF 2.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"</code></p>
<p dir="auto"><strong>Describe the current behavior</strong></p>
<p dir="auto"><strong>Describe the expected behavior</strong></p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<p dir="auto"><strong>Other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | 1 |
<h3 dir="auto">Input Code</h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let a: string = 'a';
(<any>a) = null;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">a</span>: <span class="pl-smi">string</span> <span class="pl-c1">=</span> <span class="pl-s">'a'</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-kos"><</span><span class="pl-smi">any</span><span class="pl-kos">></span><span class="pl-s1">a</span><span class="pl-kos">)</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
sourceType: 'module',
plugins: [
'typescript',
],
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-c1">sourceType</span>: <span class="pl-s">'module'</span><span class="pl-kos">,</span>
<span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
<span class="pl-s">'typescript'</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">no error</p>
<h3 dir="auto">Current Behavior</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ERR ../main.ts Transformation error
SyntaxError: Invalid left-hand side in assignment expression (2:2)"><pre class="notranslate"><code class="notranslate"> ERR ../main.ts Transformation error
SyntaxError: Invalid left-hand side in assignment expression (2:2)
</code></pre></div>
<h3 dir="auto">Possible Solution</h3>
<p dir="auto">?</p>
<h3 dir="auto">Context</h3>
<p dir="auto">i need to parse typescript to codemod it using <a href="https://github.com/facebook/jscodeshift">jscodeshift</a> and <a href="https://github.com/benjamn/ast-types">ast-types</a>. it is already working, except for this error.</p>
<h3 dir="auto">Your Environment</h3>
<table role="table">
<thead>
<tr>
<th>software</th>
<th>version(s)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Babel</td>
<td>-</td>
</tr>
<tr>
<td>Babylon</td>
<td>7.0.0-beta.40</td>
</tr>
<tr>
<td>node</td>
<td>9.5.0</td>
</tr>
<tr>
<td>npm</td>
<td>5.7.1</td>
</tr>
<tr>
<td>Operating System</td>
<td>macOS 10.12.6</td>
</tr>
</tbody>
</table> | <h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Would you like to work on a fix?</li>
</ul>
<h3 dir="auto">How are you using Babel?</h3>
<p dir="auto">Other (Next.js, Gatsby, vue-cli, ...)</p>
<h3 dir="auto">Input code</h3>
<p dir="auto"><a href="https://codesandbox.io/s/bold-pond-g5nzv" rel="nofollow">https://codesandbox.io/s/bold-pond-g5nzv</a></p>
<h3 dir="auto">Configuration file name</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Configuration</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Current and expected behavior</h3>
<p dir="auto">If you will try to check example - you will notice that submenu items have collision with key names, however, if you will check what are expected assignment to this keys - they are no issue supposed to be. Moreover this code is working right now, but with different packages, mostly with 7.12.13, after I tried to re-generate my lock.yarn file - application gets broken.</p>
<p dir="auto">Expected behavior:<br>
Submenus in that particular case shouldn't have key's collision/duplication and as single-players.</p>
<p dir="auto">Current behavior:<br>
If you will expand any submenu - you will see warnings about duplicated keys also, if you will hover any sub-menu's item - they all will be highlighted, because of the same key value.</p>
<h3 dir="auto">Environment</h3>
<p dir="auto">Node 12</p>
<h3 dir="auto">Possible solution</h3>
<p dir="auto">Possibly it might be caused somewhere in between 7.12.13 and latest one</p>
<h3 dir="auto">Additional context</h3>
<p dir="auto">Tried this on on manual config and with react-scripts, after new installations (yarn re-generation as well) - code works with issue. If i compile my code with old yarn.lock file for manual config (based on 7.12.13) - everything works as expected.</p> | 0 |
<p dir="auto">I setup my laptop so that my day to day work is not in an admin account. For most software, when comes upgrade time, all I have to do is enter the admin account login and password when prompted and I can proceed. This is not the case with Atom. Everytime I want to upgrade, I have to manually download Atom and replace the executable.</p>
<p dir="auto">I have tried completely unsintalling Atom and everything related to Atom in ~, ~/Library, /Library, etc, then rebooting my machine (twice) and then installing Atom to solve. That did not change the situation.</p> | <p dir="auto">I've never been able to get the autoupdate to work. It detects a new version, happily downloads, but when I click restart and update, it quits the app, presumably fails to update, and then relaunches, and starts redownloading the update. Usually then I have to get into a hit-quit-a-bunch-war to get it to stop relaunching on quit.</p>
<p dir="auto">I've pasted the error output from OS X console below:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="7/8/14 8:04:09.265 AM Atom[39769]: App load time: 201ms
7/8/14 8:04:35.014 AM Atom[39769]: Download completed to: file:///Volumes/Secondary/Users/pbhogan/Library/Application%20Support/com.github.atom.ShipIt/update.ja3pAYF/download
7/8/14 8:04:42.995 AM com.apple.launchd.peruser.569031419[209]: (com.github.atom.ShipIt[39791]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
7/8/14 8:04:44.875 AM ShipIt[39791]: Beginning installation
7/8/14 8:04:44.893 AM ShipIt[39791]: Couldn't abort install and restore owned bundle to previous location file:///Applications/Atom.app, error NSError { domain: NSPOSIXErrorDomain, code: 2, description: "No such file or directory" }
7/8/14 8:04:56.125 AM ShipIt[39791]: Application launched at file:///Applications/Atom.app
7/8/14 8:04:56.125 AM ShipIt[39791]: Installation error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo=0x7fefdc41a260 {NSLocalizedDescription=Permission denied}
7/8/14 8:04:56.125 AM ShipIt[39791]: ShipIt quitting
7/8/14 8:04:56.131 AM com.apple.launchd.peruser.569031419[209]: (com.github.atom.ShipIt[39791]) Exited with code: 1
7/8/14 8:04:56.132 AM com.apple.launchd.peruser.569031419[209]: (com.github.atom.ShipIt[39794]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
7/8/14 8:04:56.435 AM Atom[39792]: App load time: 190ms"><pre class="notranslate"><code class="notranslate">7/8/14 8:04:09.265 AM Atom[39769]: App load time: 201ms
7/8/14 8:04:35.014 AM Atom[39769]: Download completed to: file:///Volumes/Secondary/Users/pbhogan/Library/Application%20Support/com.github.atom.ShipIt/update.ja3pAYF/download
7/8/14 8:04:42.995 AM com.apple.launchd.peruser.569031419[209]: (com.github.atom.ShipIt[39791]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
7/8/14 8:04:44.875 AM ShipIt[39791]: Beginning installation
7/8/14 8:04:44.893 AM ShipIt[39791]: Couldn't abort install and restore owned bundle to previous location file:///Applications/Atom.app, error NSError { domain: NSPOSIXErrorDomain, code: 2, description: "No such file or directory" }
7/8/14 8:04:56.125 AM ShipIt[39791]: Application launched at file:///Applications/Atom.app
7/8/14 8:04:56.125 AM ShipIt[39791]: Installation error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo=0x7fefdc41a260 {NSLocalizedDescription=Permission denied}
7/8/14 8:04:56.125 AM ShipIt[39791]: ShipIt quitting
7/8/14 8:04:56.131 AM com.apple.launchd.peruser.569031419[209]: (com.github.atom.ShipIt[39791]) Exited with code: 1
7/8/14 8:04:56.132 AM com.apple.launchd.peruser.569031419[209]: (com.github.atom.ShipIt[39794]) assertion failed: 13E28: launchd + 105865 [364E35A7-9FA7-3950-8494-40B49A2E7250]: 0xd
7/8/14 8:04:56.435 AM Atom[39792]: App load time: 190ms
</code></pre></div> | 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> after pytorch Stable(1.5) installation on macOS Catalina</h2>
<ul dir="auto">
<li>python 3.8</li>
<li>pytorch Stable(1.5)</li>
</ul>
<h2 dir="auto">error</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/torch/_C.cpython-38-darwin.so, 2): Library not loaded: @rpath/libc++.1.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/torch/_C.cpython-38-darwin.so
Reason: image not found"><pre class="notranslate"><code class="notranslate">ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/torch/_C.cpython-38-darwin.so, 2): Library not loaded: @rpath/libc++.1.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/torch/_C.cpython-38-darwin.so
Reason: image not found
</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seemethere/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seemethere">@seemethere</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malfet/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malfet">@malfet</a></p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">Install on MacOS fails with pip.</p>
<h2 dir="auto">To Reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(venv) ➜ whatlies git:(master) ✗ python -m pip install torch
(venv) ➜ whatlies git:(master) ✗ python
Python 3.7.7 (v3.7.7:d7c567b08f, Mar 10 2020, 02:56:16)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/vincent/Development/whatlies/venv/lib/python3.7/site-packages/torch/__init__.py", line 81, in <module>
from torch._C import *
ImportError: dlopen(/Users/vincent/Development/whatlies/venv/lib/python3.7/site-packages/torch/_C.cpython-37m-darwin.so, 9): Library not loaded: @rpath/libc++.1.dylib
Referenced from: /Users/vincent/Development/whatlies/venv/lib/python3.7/site-packages/torch/_C.cpython-37m-darwin.so
Reason: image not found"><pre class="notranslate"><code class="notranslate">(venv) ➜ whatlies git:(master) ✗ python -m pip install torch
(venv) ➜ whatlies git:(master) ✗ python
Python 3.7.7 (v3.7.7:d7c567b08f, Mar 10 2020, 02:56:16)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/vincent/Development/whatlies/venv/lib/python3.7/site-packages/torch/__init__.py", line 81, in <module>
from torch._C import *
ImportError: dlopen(/Users/vincent/Development/whatlies/venv/lib/python3.7/site-packages/torch/_C.cpython-37m-darwin.so, 9): Library not loaded: @rpath/libc++.1.dylib
Referenced from: /Users/vincent/Development/whatlies/venv/lib/python3.7/site-packages/torch/_C.cpython-37m-darwin.so
Reason: image not found
</code></pre></div>
<p dir="auto">Google suggested doing this;</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(venv) ➜ whatlies git:(master) ✗ brew install libomp "><pre class="notranslate"><code class="notranslate">(venv) ➜ whatlies git:(master) ✗ brew install libomp
</code></pre></div>
<p dir="auto">That unfortunately did not work.</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">No error.</p>
<h2 dir="auto">Environment</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(venv) ➜ whatlies git:(master) ✗ python collect_env.py
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
OS: Mac OSX 10.15.3
GCC version: Could not collect
CMake version: Could not collect
Python version: 3.7
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] numpy==1.18.3
[pip3] torch==1.3.1
[pip3] torchvision==0.5.0
[conda] Could not collect"><pre class="notranslate"><code class="notranslate">(venv) ➜ whatlies git:(master) ✗ python collect_env.py
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
OS: Mac OSX 10.15.3
GCC version: Could not collect
CMake version: Could not collect
Python version: 3.7
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] numpy==1.18.3
[pip3] torch==1.3.1
[pip3] torchvision==0.5.0
[conda] Could not collect
</code></pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bdhirsh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bdhirsh">@bdhirsh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/seemethere/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seemethere">@seemethere</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malfet/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malfet">@malfet</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/walterddr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/walterddr">@walterddr</a></p> | 1 |
<p dir="auto">This code worked before:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function A () { let a }
function B () { let a }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">A</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">a</span> <span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-v">B</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">a</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">Now I get a TypeError:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: foo.js: Line 2: Duplicate declaration "a"
1 | function A () { let a }
> 2 | function B () { let a }
| ^
3 |
at File.errorWithNode (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:436:15)
at Scope.checkBlockScopedCollisions (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/scope.js:287:23)
at Scope.registerBinding (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/scope.js:424:12)
at Scope.registerDeclaration (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/scope.js:384:14)
at TraversalPath.enter (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/scope.js:79:13)
at TraversalPath.call (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/path/index.js:443:26)
at TraversalPath.visit (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/path/index.js:455:10)
at TraversalContext.visitMultiple (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/context.js:50:16)
at TraversalContext.visit (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/context.js:71:19)
at Function.traverse.node (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/index.js:44:17)
"><pre class="notranslate"><code class="notranslate">TypeError: foo.js: Line 2: Duplicate declaration "a"
1 | function A () { let a }
> 2 | function B () { let a }
| ^
3 |
at File.errorWithNode (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/transformation/file/index.js:436:15)
at Scope.checkBlockScopedCollisions (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/scope.js:287:23)
at Scope.registerBinding (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/scope.js:424:12)
at Scope.registerDeclaration (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/scope.js:384:14)
at TraversalPath.enter (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/scope.js:79:13)
at TraversalPath.call (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/path/index.js:443:26)
at TraversalPath.visit (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/path/index.js:455:10)
at TraversalContext.visitMultiple (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/context.js:50:16)
at TraversalContext.visit (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/context.js:71:19)
at Function.traverse.node (/usr/lib/node_modules/babel/node_modules/babel-core/lib/babel/traversal/index.js:44:17)
</code></pre></div>
<p dir="auto">Is this a bug, or did block scoping change, or am I going crazy?</p> | <p dir="auto">So to test <code class="notranslate">babel</code>, I ran a bunch of commands:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mkdir babel-test
cd babel-test
echo "export async function foo(){}" > src.js
echo "{ \"presets\": [ \"es2015\", \"stage-0\" ] }" > .babelrc
npm i babel-cli@latest -g
npm i babel-preset-es2015@latest
npm i babel-preset-stage-0@latest"><pre class="notranslate"><code class="notranslate">mkdir babel-test
cd babel-test
echo "export async function foo(){}" > src.js
echo "{ \"presets\": [ \"es2015\", \"stage-0\" ] }" > .babelrc
npm i babel-cli@latest -g
npm i babel-preset-es2015@latest
npm i babel-preset-stage-0@latest
</code></pre></div>
<p dir="auto">When I ran <code class="notranslate">babel src.js</code> now, I got the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: src.js: Expected type "Identifier" with option {}
at Object.t.(anonymous function) [as assertIdentifier] (C:\Sandbox\babel-test\node_modules\babel-types\lib\index.js:80:13)
at PluginPass.exports.visitor.Function.exit (C:\Sandbox\babel-test\node_modules\babel-plugin-transform-regenerator\lib\visit.js:78:9)
at c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\visitors.js:271:19
at NodePath._call (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:72:18)
at NodePath.call (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:44:17)
at NodePath.visit (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:108:8)
at TraversalContext.visitQueue (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\context.js:151:16)
at TraversalContext.visitMultiple (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\context.js:106:17)
at TraversalContext.visit (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\context.js:193:19)
at Function.traverse.node (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\index.js:139:17)"><pre class="notranslate"><code class="notranslate">Error: src.js: Expected type "Identifier" with option {}
at Object.t.(anonymous function) [as assertIdentifier] (C:\Sandbox\babel-test\node_modules\babel-types\lib\index.js:80:13)
at PluginPass.exports.visitor.Function.exit (C:\Sandbox\babel-test\node_modules\babel-plugin-transform-regenerator\lib\visit.js:78:9)
at c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\visitors.js:271:19
at NodePath._call (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:72:18)
at NodePath.call (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:44:17)
at NodePath.visit (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:108:8)
at TraversalContext.visitQueue (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\context.js:151:16)
at TraversalContext.visitMultiple (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\context.js:106:17)
at TraversalContext.visit (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\context.js:193:19)
at Function.traverse.node (c:\Program Files\nodejs\node_modules\babel-cli\node_modules\babel-traverse\lib\index.js:139:17)
</code></pre></div>
<p dir="auto">Since I wasn't sure what had caused the error, I ran <code class="notranslate">babel-doctor</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Babel Doctor
Running sanity checks on your system. This may take a few minutes...
√ Found config at C:\Sandbox\babel-test\.babelrc
√ No duplicate babel packages found
× We found some outdated packages:
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
√ You're on npm >=3.3.0
Found potential issues on your machine :("><pre class="notranslate"><code class="notranslate">Babel Doctor
Running sanity checks on your system. This may take a few minutes...
√ Found config at C:\Sandbox\babel-test\.babelrc
√ No duplicate babel packages found
× We found some outdated packages:
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
√ You're on npm >=3.3.0
Found potential issues on your machine :(
</code></pre></div>
<p dir="auto">To fix this, I ran <code class="notranslate">npm i babel-runtime@latest</code>. However, running <code class="notranslate">babel-doctor</code> again produced this output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Babel Doctor
Running sanity checks on your system. This may take a few minutes...
√ Found config at c:\Sandbox\babel-test\.babelrc
× Found these duplicate packages:
- babel-runtime x 61
Recommend running `npm dedupe`
× We found some outdated packages:
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
/* REMOVED 59 LINES HERE */
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
√ You're on npm >=3.3.0
Found potential issues on your machine :("><pre class="notranslate"><code class="notranslate">Babel Doctor
Running sanity checks on your system. This may take a few minutes...
√ Found config at c:\Sandbox\babel-test\.babelrc
× Found these duplicate packages:
- babel-runtime x 61
Recommend running `npm dedupe`
× We found some outdated packages:
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
/* REMOVED 59 LINES HERE */
- babel-runtime - Latest is 6.0.14. Local version is 5.8.29
√ You're on npm >=3.3.0
Found potential issues on your machine :(
</code></pre></div>
<p dir="auto">So I ran <code class="notranslate">npm dedupe babel-runtime</code> and <code class="notranslate">babel-doctor</code> again, but nothing changed.</p>
<p dir="auto">I figured, perhaps I had to update the global module. Before doing this, I first reset the local modules by running <code class="notranslate">rm -rf node_modules</code>, <code class="notranslate">npm i babel-preset-es2015@latest</code> and <code class="notranslate">npm i babel-preset-stage-0@latest</code>. I then ran <code class="notranslate">npm i babel-runtime -g</code> and <code class="notranslate">babel-doctor</code> again, but it still said that <code class="notranslate">babel-runtime</code> was outdated.</p>
<p dir="auto">Now, I don't know what else to do to fix this. Any help is much appreciated. :)</p> | 0 |
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/data-visualization-with-d3/change-styles-based-on-data" rel="nofollow">change-styles-based-on-data</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">It isn't the particular challenge but more so with how these challenges' tests evaluate the solutions. If you change the name of the variable, in this case dataset, to anything else (that you haven't already used in previous d3 challenges) the solution works.</p>
<p dir="auto">Even if you go back to the previous challenge (that passed), and submit again, it will respond that the variable has already been declared. I had the same issue with mobile on android 6.0 using chrome 56.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<body>
<script>
const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];
d3.select("body").selectAll("h2")
.data(dataset)
.enter()
.append("h2")
.text((d) => (d + " USD"))
// Add your code below this line
// Add your code above this line
</script>
</body>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-k">const</span> <span class="pl-s1">dataset</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">12</span><span class="pl-kos">,</span> <span class="pl-c1">31</span><span class="pl-kos">,</span> <span class="pl-c1">22</span><span class="pl-kos">,</span> <span class="pl-c1">17</span><span class="pl-kos">,</span> <span class="pl-c1">25</span><span class="pl-kos">,</span> <span class="pl-c1">18</span><span class="pl-kos">,</span> <span class="pl-c1">29</span><span class="pl-kos">,</span> <span class="pl-c1">14</span><span class="pl-kos">,</span> <span class="pl-c1">9</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-s1">d3</span><span class="pl-kos">.</span><span class="pl-en">select</span><span class="pl-kos">(</span><span class="pl-s">"body"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">selectAll</span><span class="pl-kos">(</span><span class="pl-s">"h2"</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">(</span><span class="pl-s1">dataset</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">enter</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">append</span><span class="pl-kos">(</span><span class="pl-s">"h2"</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">text</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span><span class="pl-s1">d</span> <span class="pl-c1">+</span> <span class="pl-s">" USD"</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-c">// Add your code below this line</span>
<span class="pl-c">// Add your code above this line</span>
<span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">body</span><span class="pl-kos">></span></pre></div> | <p dir="auto">The last 2-3 days my activity calendar is blank. It shows no activity although it says i have completed 217 items so far.<br>
When i open chrome's console it has an error that might help in solving the problem which says "Uncaught TypeError: Cannot read property 'getTime' of undefined".</p>
<p dir="auto">I tried to open the page with firefox which i rarely used but never with freeCodeCamp in case it was a cache problem but still didn't work.</p>
<p dir="auto">I attached the screenshot below for your convenience.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15311969/11171275/e29f156a-8bf4-11e5-8569-ea913bd3fbec.jpg"><img src="https://cloud.githubusercontent.com/assets/15311969/11171275/e29f156a-8bf4-11e5-8569-ea913bd3fbec.jpg" alt="freecodecamp screenshot" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">I want add an element to the top of the LeftNav which contains the user's picture and name, but it seems like all that I can specify are menu items. I don't see how I can have complicated content inside MenuItems from the examples.</p>
<p dir="auto">Any guidance of what I should do?</p> | <p dir="auto">Is there a way to make the LeftNav component composable? I need to add a custom component into the LeftNav. Is there a way to add another MenuItemType or pass in children into the render function on the LeftNav?</p> | 1 |
<p dir="auto">Describe what you were doing when the bug occurred:<br>
1.<br>
2.<br>
3.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.2.0-a8b8ffb89</p>
<p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:162685)<br>
at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:332158)<br>
at sc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:332375)<br>
at fi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59263)<br>
at Hi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:66573)<br>
at lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:104884)<br>
at kc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89467)<br>
at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89392)<br>
at pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:86341)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:45721</p>
<p dir="auto">Component stack: in sc<br>
in div<br>
in div<br>
in _o<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in zi<br>
in Ge<br>
in un<br>
in ba<br>
in Rc</p> | <p dir="auto"><strong>In React 15</strong>, <code class="notranslate">ComponentWillUnmount</code> called first before the rendering of next component in DOM. <strong>In the current version (v16)</strong>, <code class="notranslate">ComponentWillUnmount</code> was called after the mounting of next component.</p>
<p dir="auto">It creates an issue with my existing code, since I reuse the same component after the history changes so it invokes the <code class="notranslate">componentWillMount</code> with new props and change in URL and thereafter, it invokes the <code class="notranslate">ComponentWillUnmount</code> of same component.</p>
<p dir="auto">Is there still a way to do this in a <strong><em>synchronous</em></strong> way?</p> | 0 |
<p dir="auto">Ambient class declarations implementing an interface require the user to repeat the type members declared in the interface.</p>
<p dir="auto">For example with the interface</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IFoo {
bar: string;
qux(): number;
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">IFoo</span> <span class="pl-kos">{</span>
<span class="pl-c1">bar</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">qux</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">an ambient declaration of <code class="notranslate">Foo</code> as</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare class Foo implements IFoo {}"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-k">implements</span> <span class="pl-smi">IFoo</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">fails with <code class="notranslate">Class 'Foo' incorrectly implements interface 'IFoo'. Property 'bar' is missing in type 'Foo'</code>, while the following works as expected, but duplicates all declarations:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare class Foo implements IFoo {
bar: string;
qux(): number;
}"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-k">implements</span> <span class="pl-smi">IFoo</span> <span class="pl-kos">{</span>
<span class="pl-c1">bar</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">qux</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">While it should be possible to specialise when declaring an ambient class, it would be very convenient if unchanged type members would not need to be redeclared.</p> | <p dir="auto"><a href="http://typescript.codeplex.com/workitem/1125" rel="nofollow">http://typescript.codeplex.com/workitem/1125</a></p>
<p dir="auto">Following should be allowed:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IFoo {
foo();
}
declare class Foo implements IFoo {}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">IFoo</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-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">declare</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-k">implements</span> <span class="pl-smi">IFoo</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">If abstract classes are added in the future, they would inherit all interface methods as abstract (like in Java).</p> | 1 |
<p dir="auto">I added some input textboxes and buttons with a very long dropdonw menus.<br>
Then I put them into a div that is in a narrow Collapse or Togglable tabs.<br>
But the dropdown menus cannot display whole menus. The menus was cut off by the region of div.<br>
How to let the dropdown menu display out of the parent div?</p>
<p dir="auto">Because I want to use Collapse group (accordion-group) to make up our UI. So please don't suggest to use other components.<br>
Any suggestions on how to handle this?</p> | <p dir="auto">I'm running the latest version of bootstrap (2.0.3) and there appears to be a clipping problem when I place a dropdown into tabbed content. I see that this was resolved in version 2.0.2 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3285298" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/2079" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/2079/hovercard" href="https://github.com/twbs/bootstrap/issues/2079">#2079</a>) where the overflow:hidden was changed to display: table.</p>
<p dir="auto">.tab-content {<br>
display: table; // prevent content from running below tabs<br>
width: 100%;<br>
}</p>
<p dir="auto">Now, in 2.0.3 the scrolling and cut is back, is it possible because the navs.less reads:</p>
<p dir="auto">.tab-content {<br>
overflow: auto; // prevent content from running below tabs<br>
}</p>
<p dir="auto">At any rate, this problem appears to be back. I rolled back the tab-content to display: table and that seems to work for now.</p> | 1 |
<p dir="auto">When tapping a image (i.e. hero) that is below the app bar, the hero animation immediately places it on top (this particular animation is not so bad). When pressing the back button, the moment when the app bar comes back on top is late an noticeable, making the animation look janky.</p> | <p dir="auto">Open Gallery, open pesto, scroll up enough to minimize the app bar. Tap a recipe.</p>
<p dir="auto">Notice how the app bar immediately disappears, before the recipe begins its motion up. This is a jarring effect that the user could notice.</p>
<p dir="auto">We could try something more subtle, like animating or fading the app bar away as the recipe opens?</p> | 1 |
<p dir="auto">It would be very convenient to have <code class="notranslate">SAME</code> padding supported for convolutional layers</p> | <p dir="auto">The implementation would be easy, but could help many people suffered from the headache of calculating how many padding they need.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bdhirsh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bdhirsh">@bdhirsh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jbschlosser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbschlosser">@jbschlosser</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/walterddr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/walterddr">@walterddr</a></p> | 1 |
<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">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">WinOS</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>In this environment...</li>
<li>With this config...</li>
<li>Run '...'</li>
<li>See error...</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm:</li>
<li>Node.js:</li>
<li>OS Name:</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="; copy and paste output from `npm config ls` here"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> copy and paste output from `npm config ls` here</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">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">OS name: WinOS<br>
OS version: Microsoft Windows [Version 10.0.19044.2486]<br>
node v18.6.0<br>
npm v9.3.0</p>
<p dir="auto">I ran into an <em>ugly</em> bug when trying to publish some packages over the weekend. With a horribly vague error message, it was quite a task to determine the actual problem. After much churn, here's the simple reproducible case I was able to generate:</p>
<ul dir="auto">
<li><em>package.json</em></li>
</ul>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "@rivy-labs/-x-8ff8f63d-6ef9-44ee-999b-fc9edf489c98-basic",
"version": "2.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "require('fs').writeFileSync()"
},
"author": "Roy Ivy III <[email protected]> (https://rivy.dev/)",
"license": "MIT"
}"><pre class="notranslate">{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>@rivy-labs/-x-8ff8f63d-6ef9-44ee-999b-fc9edf489c98-basic<span class="pl-pds">"</span></span>,
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"description"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"main"</span>: <span class="pl-s"><span class="pl-pds">"</span>index.js<span class="pl-pds">"</span></span>,
<span class="pl-ent">"scripts"</span>: {
<span class="pl-ent">"test"</span>: <span class="pl-s"><span class="pl-pds">"</span>require('fs').writeFileSync()<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"author"</span>: <span class="pl-s"><span class="pl-pds">"</span>Roy Ivy III <[email protected]> (https://rivy.dev/)<span class="pl-pds">"</span></span>,
<span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>MIT<span class="pl-pds">"</span></span>
}</pre></div>
<p dir="auto"><code class="notranslate">npm publish</code> fails with this vaguely horrifying message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/@rivy-labs%2f-x-npm_***-basic
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to."><pre lang="text" class="notranslate"><code class="notranslate">npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/@rivy-labs%2f-x-npm_***-basic
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy, or
npm ERR! 403 on a server you do not have access to.
</code></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">npm publish</code> succeeds.</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ul dir="auto">
<li>Create a new package with <code class="notranslate">npm init</code>
<ul dir="auto">
<li><code class="notranslate">npm publish</code> will succeed (ie, <a href="https://www.npmjs.com/package/@rivy-labs/-x-8ff8f63d-6ef9-44ee-999b-fc9edf489c98-basic" rel="nofollow">https://www.npmjs.com/package/@rivy-labs/-x-8ff8f63d-6ef9-44ee-999b-fc9edf489c98-basic</a>)</li>
</ul>
</li>
<li>Change the "test" script text to "require('fs').writeFileSync()"
<ul dir="auto">
<li><code class="notranslate">npm publish</code> fails with <code class="notranslate">E403...</code></li>
</ul>
</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS Name: Windows</li>
</ul> | 1 |
<p dir="auto">The first time I build an app, <code class="notranslate">flutter run</code> just seems to hang after giving some obscure error message (something from FlutterDynamicsServiceLoader.mm). Eventually though (after I have up waiting) it completes and everything is fine.</p>
<p dir="auto">We should make it faster.</p>
<p dir="auto">We should also give progress while it's doing whatever it's doing so that you don't time out while waiting.</p>
<p dir="auto">Steps:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter create testapp
cd testapp
flutter run"><pre class="notranslate"><code class="notranslate">flutter create testapp
cd testapp
flutter run
</code></pre></div> | <h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">On the iOS simulator...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter create new-project
cd new-project/
flutter run"><pre class="notranslate"><code class="notranslate">flutter create new-project
cd new-project/
flutter run
</code></pre></div>
<p dir="auto">Wait 1 minute and nothing has occurred. The app icon is not present on the simulator.</p>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Mac OS, channel master)
• Flutter at /Users/drewwarren/flutter
• Framework revision abeb5c7363 (10 minutes ago), engine revision fe509b0d96
[x] Android toolchain - develop for Android devices
x Android Studio / Android SDK not found. Download from https://developer.android.com/sdk/
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
[✓] iOS toolchain - develop for iOS devices (Xcode 7.3.1)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 7.3.1, Build version 7D1014
[✓] Atom - a lightweight development environment for Flutter
• flutter plugin version 0.2.4
• dartlang plugin version 0.6.34"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS, channel master)
• Flutter at /Users/drewwarren/flutter
• Framework revision abeb5c7363 (10 minutes ago), engine revision fe509b0d96
[x] Android toolchain - develop for Android devices
x Android Studio / Android SDK not found. Download from https://developer.android.com/sdk/
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
[✓] iOS toolchain - develop for iOS devices (Xcode 7.3.1)
• XCode at /Applications/Xcode.app/Contents/Developer
• Xcode 7.3.1, Build version 7D1014
[✓] Atom - a lightweight development environment for Flutter
• flutter plugin version 0.2.4
• dartlang plugin version 0.6.34
</code></pre></div>
<h2 dir="auto">Logs and Crash Reports</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="new-project$ flutter run
Running lib/main.dart on iPhone 5s..."><pre class="notranslate"><code class="notranslate">new-project$ flutter run
Running lib/main.dart on iPhone 5s...
</code></pre></div>
<p dir="auto">No additional output after a minute</p> | 1 |
<p dir="auto">I'm trying to parametrize mlab tests (which cuts out many many lines of classes), but there are a few differences between similar tests which makes it really difficult to parametrize things (e.g., real vs. complex). Here are some differences:</p>
<ul dir="auto">
<li>Between real and complex:
<ul dir="auto">
<li><code class="notranslate">len_x</code> differs in:
<ul dir="auto">
<li><code class="notranslate">nosig_defaultsided_trim</code> (1024 vs 256)</li>
</ul>
</li>
<li><code class="notranslate">NFFT_density</code> differs in:
<ul dir="auto">
<li><code class="notranslate">nosig_*_defaultsided_nopad_to</code> (-1 vs None)</li>
<li><code class="notranslate">nosig_*_defaultsided_oddlen</code> (33 vs 128)</li>
<li><code class="notranslate">nosig_*_defaultsided_trim</code> (512 vs 128)</li>
<li><code class="notranslate">nosig_*_twosided_nopad_to</code> (-1 vs None)</li>
</ul>
</li>
</ul>
</li>
<li>Between onesided and twosided:
<ul dir="auto">
<li><code class="notranslate">NFFT_density</code> differs in:
<ul dir="auto">
<li><code class="notranslate">nosig_complex_*_nopad_to</code> (-1 vs None)</li>
</ul>
</li>
</ul>
</li>
<li>Between onesided/twosided and defaultsided:
<ul dir="auto">
<li><code class="notranslate">len_x</code> differs in:
<ul dir="auto">
<li><code class="notranslate">nosig_complex_*_trim</code> (1024 vs 256)</li>
</ul>
</li>
<li><code class="notranslate">NFFT_density</code> differs in:
<ul dir="auto">
<li><code class="notranslate">nosig_complex_*_nopad_to</code> (-1 vs None)</li>
<li><code class="notranslate">nosig_complex_*_oddlen</code> (33 vs 128)</li>
<li><code class="notranslate">nosig_complex_*_trim</code> (512 vs 128)</li>
</ul>
</li>
</ul>
</li>
</ul>
<p dir="auto">Does anyone know why these differ in this way? @vollbier?<br>
Can I replace some of the values by the others (and which by which?)</p> | <h3 dir="auto">Bug summary</h3>
<p dir="auto">THIS IS NOT A POST FOR COMMUNITY HELP.</p>
<p dir="auto">THIS IS A BUG REPORT.</p>
<p dir="auto">PLEASE DO NOT CLOSE BEFORE REPLICATION.</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="%matplotlib ipympl
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import time
fig, ax = plt.subplots()
XX=[1,2,3]
YY=[2,4,6]
line, = ax.plot(XX,YY)
ax.set_xlim(-2,100)
ax.set_ylim(-2,100)
num=0
def init():
line.set_ydata(YY)
line.set_xdata(XX)
return line,
def animate(i):
ii=0
while ii!=3:
XX[ii]+=1
ii+=1
'''for ii in XX:
ii+=1'''
line.set_ydata(YY)
line.set_xdata(XX)
return line,
ani = animation.FuncAnimation(
fig, animate,init_func=init,interval=50, blit=True, save_count=50) #interval is millisecond
plt.show()"><pre class="notranslate"><span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">ipympl</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">animation</span> <span class="pl-k">as</span> <span class="pl-s1">animation</span>
<span class="pl-k">import</span> <span class="pl-s1">time</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-v">XX</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]
<span class="pl-v">YY</span><span class="pl-c1">=</span>[<span class="pl-c1">2</span>,<span class="pl-c1">4</span>,<span class="pl-c1">6</span>]
<span class="pl-s1">line</span>, <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-v">XX</span>,<span class="pl-v">YY</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_xlim</span>(<span class="pl-c1">-</span><span class="pl-c1">2</span>,<span class="pl-c1">100</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_ylim</span>(<span class="pl-c1">-</span><span class="pl-c1">2</span>,<span class="pl-c1">100</span>)
<span class="pl-s1">num</span><span class="pl-c1">=</span><span class="pl-c1">0</span>
<span class="pl-k">def</span> <span class="pl-en">init</span>():
<span class="pl-s1">line</span>.<span class="pl-en">set_ydata</span>(<span class="pl-v">YY</span>)
<span class="pl-s1">line</span>.<span class="pl-en">set_xdata</span>(<span class="pl-v">XX</span>)
<span class="pl-k">return</span> <span class="pl-s1">line</span>,
<span class="pl-k">def</span> <span class="pl-en">animate</span>(<span class="pl-s1">i</span>):
<span class="pl-s1">ii</span><span class="pl-c1">=</span><span class="pl-c1">0</span>
<span class="pl-k">while</span> <span class="pl-s1">ii</span><span class="pl-c1">!=</span><span class="pl-c1">3</span>:
<span class="pl-v">XX</span>[<span class="pl-s1">ii</span>]<span class="pl-c1">+=</span><span class="pl-c1">1</span>
<span class="pl-s1">ii</span><span class="pl-c1">+=</span><span class="pl-c1">1</span>
<span class="pl-s">'''for ii in XX:</span>
<span class="pl-s"> ii+=1'''</span>
<span class="pl-s1">line</span>.<span class="pl-en">set_ydata</span>(<span class="pl-v">YY</span>)
<span class="pl-s1">line</span>.<span class="pl-en">set_xdata</span>(<span class="pl-v">XX</span>)
<span class="pl-k">return</span> <span class="pl-s1">line</span>,
<span class="pl-s1">ani</span> <span class="pl-c1">=</span> <span class="pl-s1">animation</span>.<span class="pl-v">FuncAnimation</span>(
<span class="pl-s1">fig</span>, <span class="pl-s1">animate</span>,<span class="pl-s1">init_func</span><span class="pl-c1">=</span><span class="pl-s1">init</span>,<span class="pl-s1">interval</span><span class="pl-c1">=</span><span class="pl-c1">50</span>, <span class="pl-s1">blit</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">save_count</span><span class="pl-c1">=</span><span class="pl-c1">50</span>) <span class="pl-c">#interval is millisecond</span>
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto">the pic do not move.</p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">the pic should move.</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto">use while instead of for can solve this problem.</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">windows 10</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.5.1</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">ipympl</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">3.8.1</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto">3.0.16</p>
<h3 dir="auto">Installation</h3>
<p dir="auto">pip</p> | 0 |
<p dir="auto">When using globs in ES6 template strings, VSCode's syntax highlighting thinks there is a unclosed comment. Example: <code class="notranslate">${settings.tests}**/*.js</code></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/356204/11419620/f0e23332-9428-11e5-8f69-7c5d1bd67c1d.PNG"><img src="https://cloud.githubusercontent.com/assets/356204/11419620/f0e23332-9428-11e5-8f69-7c5d1bd67c1d.PNG" alt="capture" style="max-width: 100%;"></a></p>
<p dir="auto">Notice that after the /* all coloring is green, until the next start / end of a comment.</p>
<p dir="auto">Issue found on <a href="https://github.com/elgervb/skeletonSPA">https://github.com/elgervb/skeletonSPA</a><br>
gulpfile.babel.js line 297, task scripts-tests</p> | <p dir="auto">Right now, those keywords like <code class="notranslate">import</code> <code class="notranslate">class</code> <code class="notranslate">from</code> are all plain white.</p> | 1 |
<p dir="auto">A call to <code class="notranslate">mapslices</code> that takes a <code class="notranslate">dims</code> argument is type unstable. This is the case in all recent versions of Julia (1.1.1, 1.2.0, 1.3.1, 1.4.2).</p>
<p dir="auto">For example:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="d = rand(10)
mapslices(identity, d; dims=1)"><pre class="notranslate">d <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">10</span>)
<span class="pl-c1">mapslices</span>(identity, d; dims<span class="pl-k">=</span><span class="pl-c1">1</span>)</pre></div>
<p dir="auto">Shows the following with <code class="notranslate">@code_warntype</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Variables
#unused#::Core.Compiler.Const(getfield(Base, Symbol("#kw##mapslices"))(), false)
@_2::NamedTuple{(:dims,),Tuple{Int64}}
@_3::Core.Compiler.Const(mapslices, false)
f::Core.Compiler.Const(identity, false)
A::Array{Float64,1}
dims::Int64
@_7::Int64
Body::Any
1 ─ %1 = Base.haskey(@_2, :dims)::Core.Compiler.Const(true, false)
│ %1
│ (@_7 = Base.getindex(@_2, :dims))
└── goto #3
2 ─ Core.Compiler.Const(:(Core.UndefKeywordError(:dims)), false)
└── Core.Compiler.Const(:(@_7 = Core.throw(%5)), false)
3 ┄ (dims = @_7)
│ %8 = (:dims,)::Core.Compiler.Const((:dims,), false)
│ %9 = Core.apply_type(Core.NamedTuple, %8)::Core.Compiler.Const(NamedTuple{(:dims,),T} where T<:Tuple, false)
│ %10 = Base.structdiff(@_2, %9)::Core.Compiler.Const(NamedTuple(), false)
│ %11 = Base.pairs(%10)::Core.Compiler.Const(Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}(), false)
│ %12 = Base.isempty(%11)::Core.Compiler.Const(true, false)
│ %12
└── goto #5
4 ─ Core.Compiler.Const(:(Base.kwerr(@_2, @_3, f, A)), false)
5 ┄ %16 = Base.:(#mapslices#111)(dims, @_3, f, A)::Any
└── return %16
"><pre class="notranslate"><code class="notranslate">Variables
#unused#::Core.Compiler.Const(getfield(Base, Symbol("#kw##mapslices"))(), false)
@_2::NamedTuple{(:dims,),Tuple{Int64}}
@_3::Core.Compiler.Const(mapslices, false)
f::Core.Compiler.Const(identity, false)
A::Array{Float64,1}
dims::Int64
@_7::Int64
Body::Any
1 ─ %1 = Base.haskey(@_2, :dims)::Core.Compiler.Const(true, false)
│ %1
│ (@_7 = Base.getindex(@_2, :dims))
└── goto #3
2 ─ Core.Compiler.Const(:(Core.UndefKeywordError(:dims)), false)
└── Core.Compiler.Const(:(@_7 = Core.throw(%5)), false)
3 ┄ (dims = @_7)
│ %8 = (:dims,)::Core.Compiler.Const((:dims,), false)
│ %9 = Core.apply_type(Core.NamedTuple, %8)::Core.Compiler.Const(NamedTuple{(:dims,),T} where T<:Tuple, false)
│ %10 = Base.structdiff(@_2, %9)::Core.Compiler.Const(NamedTuple(), false)
│ %11 = Base.pairs(%10)::Core.Compiler.Const(Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}(), false)
│ %12 = Base.isempty(%11)::Core.Compiler.Const(true, false)
│ %12
└── goto #5
4 ─ Core.Compiler.Const(:(Base.kwerr(@_2, @_3, f, A)), false)
5 ┄ %16 = Base.:(#mapslices#111)(dims, @_3, f, A)::Any
└── return %16
</code></pre></div>
<p dir="auto">Due to this type instability, things like <a href="https://github.com/JuliaLang/Statistics.jl/issues/39"><code class="notranslate">Statistics.median(d; dims=n)</code> are also type unstable</a>.</p> | <p dir="auto">Consider the following piece of code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="n=10^6;
X = randn(1,n);
V(x) = 0.5 * dot(x,x);
f(V, X) = [ V((@view X[:,n])) for n = 1:size(X,2) ]"><pre class="notranslate"><code class="notranslate">n=10^6;
X = randn(1,n);
V(x) = 0.5 * dot(x,x);
f(V, X) = [ V((@view X[:,n])) for n = 1:size(X,2) ]
</code></pre></div>
<p dir="auto">Timing on this reveals:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> @time mapslices(V, X, 1);
1.177690 seconds (12.00 M allocations: 267.024 MiB, 6.91% gc time)
julia> @time f(V,X);
0.047745 seconds (1.00 M allocations: 53.406 MiB, 5.58% gc time)"><pre class="notranslate"><code class="notranslate">julia> @time mapslices(V, X, 1);
1.177690 seconds (12.00 M allocations: 267.024 MiB, 6.91% gc time)
julia> @time f(V,X);
0.047745 seconds (1.00 M allocations: 53.406 MiB, 5.58% gc time)
</code></pre></div>
<p dir="auto">which is substantially different.</p>
<p dir="auto">Note that in this simple example, my data could be a column vector; however, this is a surrogate for problems where I have time series data and <code class="notranslate">X</code> is d x n with 1< d << n.</p> | 1 |
<p dir="auto">I started seeing a few weeks ago a spurious (~25-50% of the time) CI failure in GithubActions on MacOs runners.<br>
I have been unable to reproduce it on my local (Mac) computer.</p>
<p dir="auto">I have been able to pinpoint this to <code class="notranslate">jaxlib==0.1.68</code>. Downgrading to <code class="notranslate">jaxlib==0.1.67</code> with current jax==0.2.16` makes the issue disappear.</p>
<p dir="auto">I have been able to produce the following MWE:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="bash-3.2$ cat tests/prova.py
import jax
a = jax.random.PRNGKey(123)
bash-3.2$ pytest tests/prova.py
=============================================================================================== test session starts ================================================================================================
platform darwin -- Python 3.9.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /Users/runner/work/mpi4jax/mpi4jax
collecting ... Fatal Python error: Segmentation fault
Current thread 0x0000000107dbfdc0 (most recent call first):
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jaxlib/xla_client.py", line 67 in make_cpu_client
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/lib/xla_bridge.py", line 206 in backends
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/lib/xla_bridge.py", line 242 in get_backend
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/lib/xla_bridge.py", line 263 in get_device_backend
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/interpreters/xla.py", line 138 in _device_put_array
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/interpreters/xla.py", line 133 in device_put
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/_src/lax/lax.py", line 1596 in _device_put_raw
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/_src/numpy/lax_numpy.py", line 3025 in array
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/_src/numpy/lax_numpy.py", line 3064 in asarray
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/_src/random.py", line 66 in PRNGKey
File "/Users/runner/work/mpi4jax/mpi4jax/tests/prova.py", line 3 in <module>
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py", line 170 in exec_module
File "<frozen importlib._bootstrap>", line 680 in _load_unlocked
File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007 in _find_and_load
File "<frozen importlib._bootstrap>", line 1030 in _gcd_import
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/importlib/__init__.py", line 127 in import_module
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/pathlib.py", line 524 in import_path
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py", line 578 in _importtestmodule
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py", line 500 in _getobj
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py", line 291 in obj
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py", line 516 in _inject_setup_module_fixture
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py", line 503 in collect
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/runner.py", line 341 in <lambda>
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/runner.py", line 311 in from_call
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/runner.py", line 341 in pytest_make_collect_report
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/runner.py", line 458 in collect_one_node
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py", line 808 in genitems
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py", line 634 in perform_collect
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py", line 333 in pytest_collection
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py", line 322 in _main
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py", line 269 in wrap_session
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/callers.py", line 187 in _multicall
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/hooks.py", line 286 in __call__
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/config/__init__.py", line 162 in main
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185 in console_main
File "/Users/runner/hostedtoolcache/Python/3.9.5/x64/bin/pytest", line 8 in <module>
Segmentation fault: 11"><pre class="notranslate"><span class="pl-s1">bash</span><span class="pl-c1">-</span><span class="pl-c1">3.2</span>$ <span class="pl-s1">cat</span> <span class="pl-s1">tests</span><span class="pl-c1">/</span><span class="pl-s1">prova</span>.<span class="pl-s1">py</span>
<span class="pl-k">import</span> <span class="pl-s1">jax</span>
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">jax</span>.<span class="pl-s1">random</span>.<span class="pl-v">PRNGKey</span>(<span class="pl-c1">123</span>)
<span class="pl-s1">bash</span><span class="pl-c1">-</span><span class="pl-c1">3.2</span>$ <span class="pl-s1">pytest</span> <span class="pl-s1">tests</span><span class="pl-c1">/</span><span class="pl-s1">prova</span>.<span class="pl-s1">py</span>
<span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">=</span> <span class="pl-s1">test</span> <span class="pl-s1">session</span> <span class="pl-s1">starts</span> <span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span><span class="pl-c1">==</span>
<span class="pl-s1">platform</span> <span class="pl-s1">darwin</span> <span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">Python</span> <span class="pl-c1">3.9</span><span class="pl-c1">.5</span>, <span class="pl-s1">pytest</span><span class="pl-c1">-</span><span class="pl-c1">6.2</span>.<span class="pl-c1">4</span>, <span class="pl-s1">py</span><span class="pl-c1">-</span><span class="pl-c1">1.10</span>.<span class="pl-c1">0</span>, <span class="pl-s1">pluggy</span><span class="pl-c1">-</span><span class="pl-c1">0.13</span>.<span class="pl-c1">1</span>
<span class="pl-s1">rootdir</span>: <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">runner</span><span class="pl-c1">/</span><span class="pl-s1">work</span><span class="pl-c1">/</span><span class="pl-s1">mpi4jax</span><span class="pl-c1">/</span><span class="pl-s1">mpi4jax</span>
<span class="pl-s1">collecting</span> ... <span class="pl-v">Fatal</span> <span class="pl-v">Python</span> <span class="pl-s1">error</span>: <span class="pl-v">Segmentation</span> <span class="pl-s1">fault</span>
<span class="pl-v">Current</span> <span class="pl-s1">thread</span> <span class="pl-c1">0x0000000107dbfdc0</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">first</span>):
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jaxlib/xla_client.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">67</span> <span class="pl-c1">in</span> <span class="pl-s1">make_cpu_client</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/lib/xla_bridge.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">206</span> <span class="pl-c1">in</span> <span class="pl-s1">backends</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/lib/xla_bridge.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">242</span> <span class="pl-c1">in</span> <span class="pl-s1">get_backend</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/lib/xla_bridge.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">263</span> <span class="pl-c1">in</span> <span class="pl-s1">get_device_backend</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/interpreters/xla.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">138</span> <span class="pl-c1">in</span> <span class="pl-s1">_device_put_array</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/interpreters/xla.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">133</span> <span class="pl-c1">in</span> <span class="pl-s1">device_put</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/_src/lax/lax.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1596</span> <span class="pl-c1">in</span> <span class="pl-s1">_device_put_raw</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/_src/numpy/lax_numpy.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3025</span> <span class="pl-c1">in</span> <span class="pl-s1">array</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/_src/numpy/lax_numpy.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3064</span> <span class="pl-c1">in</span> <span class="pl-s1">asarray</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/jax/_src/random.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">66</span> <span class="pl-c1">in</span> <span class="pl-v">PRNGKey</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/work/mpi4jax/mpi4jax/tests/prova.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3</span> <span class="pl-c1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">170</span> <span class="pl-c1">in</span> <span class="pl-s1">exec_module</span>
<span class="pl-v">File</span> <span class="pl-s">"<frozen importlib._bootstrap>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">680</span> <span class="pl-c1">in</span> <span class="pl-s1">_load_unlocked</span>
<span class="pl-v">File</span> <span class="pl-s">"<frozen importlib._bootstrap>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">986</span> <span class="pl-c1">in</span> <span class="pl-s1">_find_and_load_unlocked</span>
<span class="pl-v">File</span> <span class="pl-s">"<frozen importlib._bootstrap>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1007</span> <span class="pl-c1">in</span> <span class="pl-s1">_find_and_load</span>
<span class="pl-v">File</span> <span class="pl-s">"<frozen importlib._bootstrap>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1030</span> <span class="pl-c1">in</span> <span class="pl-s1">_gcd_import</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/importlib/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">127</span> <span class="pl-c1">in</span> <span class="pl-s1">import_module</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/pathlib.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">524</span> <span class="pl-c1">in</span> <span class="pl-s1">import_path</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">578</span> <span class="pl-c1">in</span> <span class="pl-s1">_importtestmodule</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">500</span> <span class="pl-c1">in</span> <span class="pl-s1">_getobj</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">291</span> <span class="pl-c1">in</span> <span class="pl-s1">obj</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">516</span> <span class="pl-c1">in</span> <span class="pl-s1">_inject_setup_module_fixture</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/python.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">503</span> <span class="pl-c1">in</span> <span class="pl-s1">collect</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/runner.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">341</span> <span class="pl-c1">in</span> <span class="pl-c1"><</span><span class="pl-s1">lambda</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/runner.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">311</span> <span class="pl-c1">in</span> <span class="pl-s1">from_call</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/runner.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">341</span> <span class="pl-c1">in</span> <span class="pl-s1">pytest_make_collect_report</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/callers.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">187</span> <span class="pl-c1">in</span> <span class="pl-s1">_multicall</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">84</span> <span class="pl-c1">in</span> <span class="pl-c1"><</span><span class="pl-s1">lambda</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">93</span> <span class="pl-c1">in</span> <span class="pl-s1">_hookexec</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/hooks.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">286</span> <span class="pl-c1">in</span> <span class="pl-s1">__call__</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/runner.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">458</span> <span class="pl-c1">in</span> <span class="pl-s1">collect_one_node</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">808</span> <span class="pl-c1">in</span> <span class="pl-s1">genitems</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">634</span> <span class="pl-c1">in</span> <span class="pl-s1">perform_collect</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">333</span> <span class="pl-c1">in</span> <span class="pl-s1">pytest_collection</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/callers.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">187</span> <span class="pl-c1">in</span> <span class="pl-s1">_multicall</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">84</span> <span class="pl-c1">in</span> <span class="pl-c1"><</span><span class="pl-s1">lambda</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">93</span> <span class="pl-c1">in</span> <span class="pl-s1">_hookexec</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/hooks.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">286</span> <span class="pl-c1">in</span> <span class="pl-s1">__call__</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">322</span> <span class="pl-c1">in</span> <span class="pl-s1">_main</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">269</span> <span class="pl-c1">in</span> <span class="pl-s1">wrap_session</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/main.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">316</span> <span class="pl-c1">in</span> <span class="pl-s1">pytest_cmdline_main</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/callers.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">187</span> <span class="pl-c1">in</span> <span class="pl-s1">_multicall</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">84</span> <span class="pl-c1">in</span> <span class="pl-c1"><</span><span class="pl-s1">lambda</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/manager.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">93</span> <span class="pl-c1">in</span> <span class="pl-s1">_hookexec</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/pluggy/hooks.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">286</span> <span class="pl-c1">in</span> <span class="pl-s1">__call__</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/config/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">162</span> <span class="pl-c1">in</span> <span class="pl-s1">main</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/site-packages/_pytest/config/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">185</span> <span class="pl-c1">in</span> <span class="pl-s1">console_main</span>
<span class="pl-v">File</span> <span class="pl-s">"/Users/runner/hostedtoolcache/Python/3.9.5/x64/bin/pytest"</span>, <span class="pl-s1">line</span> <span class="pl-c1">8</span> <span class="pl-c1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-v">Segmentation</span> <span class="pl-s1">fault</span>: <span class="pl-c1">11</span></pre></div>
<p dir="auto">though in interactive mode it segfaults even less often.</p>
<p dir="auto">Noticed here: <a href="https://github.com/mpi4jax/mpi4jax/runs/2997837419?check_suite_focus=true#step:8:31">https://github.com/mpi4jax/mpi4jax/runs/2997837419?check_suite_focus=true#step:8:31</a> and then I debugged by using a ssh shell into github actions.</p> | <p dir="auto">Hi. This is a bit of a strange (possible) bug report that we've held off on a for a few days until we could try to get better reporting information. Both <a href="https://github.com/scikit-hep/pyhf"><code class="notranslate">pyhf</code></a> and <a href="https://github.com/scikit-hep/awkward-1.0"><code class="notranslate">awkward</code></a> have been seeing segfaults on GitHub Actions jobs (for <code class="notranslate">pyhf</code>) and Azure Pipelines jobs (for <code class="notranslate">awkward</code>) since the release of <code class="notranslate">jaxlib</code> <code class="notranslate">v0.1.68</code> that happen <em>only</em> for <code class="notranslate">v0.1.68</code> (c.f. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="929870483" data-permission-text="Title is private" data-url="https://github.com/scikit-hep/pyhf/issues/1501" data-hovercard-type="issue" data-hovercard-url="/scikit-hep/pyhf/issues/1501/hovercard" href="https://github.com/scikit-hep/pyhf/issues/1501">scikit-hep/pyhf#1501</a>)</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ pip list | grep jax
jax 0.2.16
jaxlib 0.1.68"><pre class="notranslate">$ <span class="pl-s1">pip list <span class="pl-k">|</span> grep jax</span>
<span class="pl-c1">jax 0.2.16</span>
<span class="pl-c1">jaxlib 0.1.68</span></pre></div>
<p dir="auto">and go away if we downgrade to <code class="notranslate">jaxlib<0.1.68</code> (c.f. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="930339846" data-permission-text="Title is private" data-url="https://github.com/scikit-hep/awkward/issues/963" data-hovercard-type="pull_request" data-hovercard-url="/scikit-hep/awkward/pull/963/hovercard" href="https://github.com/scikit-hep/awkward/pull/963">scikit-hep/awkward#963</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="931291183" data-permission-text="Title is private" data-url="https://github.com/scikit-hep/pyhf/issues/1502" data-hovercard-type="pull_request" data-hovercard-url="/scikit-hep/pyhf/pull/1502/hovercard" href="https://github.com/scikit-hep/pyhf/pull/1502">scikit-hep/pyhf#1502</a>).</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ pip list | grep jax
jax 0.2.16
jaxlib 0.1.67"><pre class="notranslate">$ <span class="pl-s1">pip list <span class="pl-k">|</span> grep jax</span>
<span class="pl-c1">jax 0.2.16</span>
<span class="pl-c1">jaxlib 0.1.67</span></pre></div>
<p dir="auto">The bizarre part is that I am unable to replicate these segfaults on a <a href="https://github.com/scikit-hep/pyhf/issues/1501#issuecomment-869244245" data-hovercard-type="issue" data-hovercard-url="/scikit-hep/pyhf/issues/1501/hovercard">MacBook Air that I've borrowed to debug this</a>.</p>
<h2 dir="auto">Minimal Failing Examples on GitHub Actions</h2>
<p dir="auto">The <code class="notranslate">pyhf</code> test suite has been segfaulting during runs as documented in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="929870483" data-permission-text="Title is private" data-url="https://github.com/scikit-hep/pyhf/issues/1501" data-hovercard-type="issue" data-hovercard-url="/scikit-hep/pyhf/issues/1501/hovercard" href="https://github.com/scikit-hep/pyhf/issues/1501">scikit-hep/pyhf#1501</a>. To look at the environment in which this was happening I connected to a <a href="https://tmate.io/" rel="nofollow"><code class="notranslate">tmate</code></a> session on the GHA servers using the <a href="https://github.com/marketplace/actions/debugging-with-tmate"><code class="notranslate">mxschmitt/action-tmate@v3</code> GHA</a> and I was able to replicate the segfault behavior on GHA with the following examples using just pure JAX</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# debug_32b.py
import jax # noqa: F401
import jax.numpy as jnp
print(jnp.asarray([-2, -1], dtype=jnp.float32))
print(jnp.asarray([-2, -1], dtype=jnp.float64))"><pre class="notranslate"><span class="pl-c"># debug_32b.py</span>
<span class="pl-k">import</span> <span class="pl-s1">jax</span> <span class="pl-c"># noqa: F401</span>
<span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-en">print</span>(<span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>([<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">float32</span>))
<span class="pl-en">print</span>(<span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>([<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">float64</span>))</pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# debug_64.py
import jax # noqa: F401
from jax.config import config
config.update('jax_enable_x64', True)
import jax.numpy as jnp
# 32b first
jnp.asarray([-2, -1])
# then switch to 64b
jnp.asarray([-2, -1], dtype=jnp.float64)"><pre class="notranslate"><span class="pl-c"># debug_64.py</span>
<span class="pl-k">import</span> <span class="pl-s1">jax</span> <span class="pl-c"># noqa: F401</span>
<span class="pl-k">from</span> <span class="pl-s1">jax</span>.<span class="pl-s1">config</span> <span class="pl-k">import</span> <span class="pl-s1">config</span>
<span class="pl-s1">config</span>.<span class="pl-en">update</span>(<span class="pl-s">'jax_enable_x64'</span>, <span class="pl-c1">True</span>)
<span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-c"># 32b first</span>
<span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>([<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>])
<span class="pl-c"># then switch to 64b</span>
<span class="pl-s1">jnp</span>.<span class="pl-en">asarray</span>([<span class="pl-c1">-</span><span class="pl-c1">2</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">jnp</span>.<span class="pl-s1">float64</span>)</pre></div>
<p dir="auto">and the following commands (with the <code class="notranslate">bash-3.2</code> removed from before the <code class="notranslate">$</code> for formatting) using both the <code class="notranslate">deubg_32b.py</code></p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python debug_32b.py
Segmentation fault: 11
$ python debug_32b.py
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
[-2. -1.]
/Users/runner/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py:3062: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.float64'> requested in asarray is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
lax._check_user_dtype_supported(dtype, "asarray")
[-2. -1.]
$ python debug_32b.py
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
[-2. -1.]
/Users/runner/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py:3062: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.float64'> requested in asarray is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
lax._check_user_dtype_supported(dtype, "asarray")
[-2. -1.]
$ python debug_32b.py
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
[-2. -1.]
/Users/runner/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py:3062: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.float64'> requested in asarray is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.
lax._check_user_dtype_supported(dtype, "asarray")
[-2. -1.]
$ python debug_32b.py
Segmentation fault: 11"><pre class="notranslate">$ <span class="pl-s1">python debug_32b.py</span>
<span class="pl-c1">Segmentation fault: 11</span>
$ <span class="pl-s1">python debug_32b.py</span>
<span class="pl-c1">WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)</span>
<span class="pl-c1">[-2. -1.]</span>
<span class="pl-c1">/Users/runner/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py:3062: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.float64'> requested in asarray is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.</span>
<span class="pl-c1"> lax._check_user_dtype_supported(dtype, "asarray")</span>
<span class="pl-c1">[-2. -1.]</span>
$ <span class="pl-s1">python debug_32b.py</span>
<span class="pl-c1">WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)</span>
<span class="pl-c1">[-2. -1.]</span>
<span class="pl-c1">/Users/runner/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py:3062: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.float64'> requested in asarray is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.</span>
<span class="pl-c1"> lax._check_user_dtype_supported(dtype, "asarray")</span>
<span class="pl-c1">[-2. -1.]</span>
$ <span class="pl-s1">python debug_32b.py</span>
<span class="pl-c1">WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)</span>
<span class="pl-c1">[-2. -1.]</span>
<span class="pl-c1">/Users/runner/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py:3062: UserWarning: Explicitly requested dtype <class 'jax._src.numpy.lax_numpy.float64'> requested in asarray is not available, and will be truncated to dtype float32. To enable more dtypes, set the jax_enable_x64 configuration option or the JAX_ENABLE_X64 shell environment variable. See https://github.com/google/jax#current-gotchas for more.</span>
<span class="pl-c1"> lax._check_user_dtype_supported(dtype, "asarray")</span>
<span class="pl-c1">[-2. -1.]</span>
$ <span class="pl-s1">python debug_32b.py</span>
<span class="pl-c1">Segmentation fault: 11</span></pre></div>
<p dir="auto">and the <code class="notranslate">debug_64b.py</code></p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python debug_64b.py
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
$ python debug_64b.py
WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
$ python debug_64b.py
Segmentation fault: 11"><pre class="notranslate">$ <span class="pl-s1">python debug_64b.py</span>
<span class="pl-c1">WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)</span>
$ <span class="pl-s1">python debug_64b.py</span>
<span class="pl-c1">WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)</span>
$ <span class="pl-s1">python debug_64b.py</span>
<span class="pl-c1">Segmentation fault: 11</span></pre></div>
<p dir="auto">For the GHA sever the env is (the same happens on the Python 3.8 jobs)</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python --version --version
Python 3.7.10 (default, Feb 16 2021, 11:44:40)
[Clang 11.0.0 (clang-1100.0.33.17)]
$ printenv
GITHUB_JOB=test
GITHUB_EVENT_PATH=/Users/runner/work/_temp/_github_workflow/event.json
RUNNER_OS=macOS
XCODE_12_DEVELOPER_DIR=/Applications/Xcode_12.4.app/Contents/Developer
ANDROID_HOME=/Users/runner/Library/Android/sdk
GITHUB_BASE_REF=
NVM_CD_FLAGS=
CHROMEWEBDRIVER=/usr/local/Caskroom/chromedriver/91.0.4472.101
SHELL=/bin/bash
TERM=screen-256color
PIPX_BIN_DIR=/usr/local/opt/pipx_bin
GITHUB_REPOSITORY_OWNER=scikit-hep
INPUT_SUDO=true
TMPDIR=/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/
GITHUB_ACTIONS=true
GITHUB_RUN_NUMBER=7368
ANDROID_SDK_ROOT=/Users/runner/Library/Android/sdk
JAVA_HOME_8_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/8.0.292-10/x64/Contents/Home
RCT_NO_LAUNCH_PACKAGER=1
RUNNER_WORKSPACE=/Users/runner/work/pyhf
NUNIT_BASE_PATH=/Library/Developer/nunit
RUNNER_PERFLOG=/usr/local/opt/runner/perflog
GITHUB_REF=refs/heads/fix/test-jax-version-that-breaks-ci
GITHUB_WORKFLOW=CI/CD
LC_ALL=en_US.UTF-8
NUNIT3_PATH=/Library/Developer/nunit/3.6.0
JAVA_HOME_11_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/11.0.11-9/x64/Contents/Home
RUNNER_TOOL_CACHE=/Users/runner/hostedtoolcache
GITHUB_ACTION_REPOSITORY=mxschmitt/action-tmate
JAVA_HOME_14_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/14.0.2-12/x64/Contents/Home
NVM_DIR=/Users/runner/.nvm
USER=runner
GITHUB_API_URL=https://api.github.com
GITHUB_EVENT_NAME=push
GITHUB_SHA=2e371805064fc961c95106c4098702b3696827c3
XCODE_10_DEVELOPER_DIR=/Applications/Xcode_10.3.app/Contents/Developer
RUNNER_TEMP=/Users/runner/work/_temp
pythonLocation=/Users/runner/hostedtoolcache/Python/3.7.10/x64
ANDROID_NDK_ROOT=/Users/runner/Library/Android/sdk/ndk-bundle
ANDROID_NDK_LATEST_HOME=/Users/runner/Library/Android/sdk/ndk/22.1.7171670
ImageVersion=20210620.1
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.I24a5PqIL3/Listeners
GITHUB_SERVER_URL=https://github.com
HOMEBREW_NO_AUTO_UPDATE=1
__CF_USER_TEXT_ENCODING=0x1F5:0:0
AGENT_TOOLSDIRECTORY=/Users/runner/hostedtoolcache
GITHUB_HEAD_REF=
GITHUB_GRAPHQL_URL=https://api.github.com/graphql
TMUX=/tmp/tmate.sock,1968,0
PATH=/Users/runner/hostedtoolcache/Python/3.7.10/x64/bin:/Users/runner/hostedtoolcache/Python/3.7.10/x64:/usr/local/opt/pipx_bin:/Users/runner/.cargo/bin:/usr/local/lib/ruby/gems/2.7.0/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Users/runner/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools:/Users/runner/.ghcup/bin:/Users/runner/hostedtoolcache/stack/2.7.1/x64
INPUT_LIMIT-ACCESS-TO-ACTOR=false
GITHUB_RETENTION_DAYS=90
PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG
CONDA=/usr/local/miniconda
DOTNET_ROOT=/Users/runner/.dotnet
EDGEWEBDRIVER=/usr/local/share/edge_driver
PWD=/Users/runner/work/pyhf/pyhf
VM_ASSETS=/usr/local/opt/runner/scripts
JAVA_HOME=/Users/runner/hostedtoolcache/Java_Adopt_jdk/8.0.292-10/x64/Contents/Home
JAVA_HOME_12_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/12.0.2-10.3/x64/Contents/Home
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
LANG=en_US.UTF-8
ImageOS=macos1015
TMUX_PANE=%0
XPC_FLAGS=0x0
PIPX_HOME=/usr/local/opt/pipx
GECKOWEBDRIVER=/usr/local/opt/geckodriver/bin
GITHUB_ACTOR=matthewfeickert
XPC_SERVICE_NAME=0
HOME=/Users/runner
SHLVL=4
ACTIONS_RUNTIME_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik9ta3lYbmJnM05RTE1nMGZMaTBSNnJxdzlxdyJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNS
ZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8yMzU5MSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5
kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8yMzU5MSIsIklkZW50aXR5VHlwZUNsYWltIjoiU3lzdGVtOlNlcnZpY2VJZGVudGl0eSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLz
IwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6IkRERERERERELUREREQtRERERC1ERERELURERERERERERERERCIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZ
GRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImF1aSI6ImE1YTFiNzdhLWFhYTktNDFiNi05ZTRjLWQ2OWI4NzRiMmRkNCIsInNpZCI6IjU0OGJjZjNlLWU3MWYtNDI2YS1iYTY0LTNkNmZjNjVhM2JkYSIsImFjIjoiW3tcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL2ZpeC90ZXN0
LWpheC12ZXJzaW9uLXRoYXQtYnJlYWtzLWNpXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFzdGVyXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwib3JjaGlkIjoiMDhhMmQ1NDEtNTU5NC00NjBlLWFlOGQtMjM3YjUyZTYyYjY1LnRlc3Q
ubWFjb3MtbGF0ZXN0XzNfNyIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo1YmY5NjQ5Zi01MjlhLTRhYmMtODAwYS1iNThhMDNjZDNlM2IiLC
JuYmYiOjE2MjQ5MTIzOTEsImV4cCI6MTYyNDkzNTE5MX0.o0oeOn2M2Dbx8-K3yhe4JGA7k9KmR9KBoVAujCk29uptx7HOPfB1kba1l4Ofylm1DeKuB0xfMF5Y8ttibvDTgH2HitCC3BMdL64LZ99IUNnjngkuUsGuQsFI3E3uwT3SF6OpQcaeLjtCV3Qx2iUGkPsWM8Tpt
XD0TH4IXw5NJsbx3rKHHC2aSM6384Im-Nu965w_7539XkaIyLkg8MFK9MTIBr0O0HfRxJqvvareP7ufdqDnvY9EVupoVCdSEs3Xe5fuYW_GJvsKHImbsGoRTOgTFgiwOFxYIiMvcjyU1PDjg3ttjBF0JiMmReypLgSsQqUD-BrPIvjKuHYuzQplTg
RUNNER_TRACKING_ID=github_f9075cf8-002b-4c98-a7e2-61bcc0d94891
ANDROID_NDK_18R_PATH=/Users/runner/Library/Android/sdk/ndk/18.1.5063045
GITHUB_WORKSPACE=/Users/runner/work/pyhf/pyhf
CI=true
GITHUB_ACTION_REF=v3
GITHUB_RUN_ID=980389940
ACTIONS_RUNTIME_URL=https://pipelines.actions.githubusercontent.com/7egiF0eguRHanWqGVl5G5J1mX1k4YmsTgFLGKvP1guMOJIVNqS/
LOGNAME=runner
ACTIONS_CACHE_URL=https://artifactcache.actions.githubusercontent.com/7egiF0eguRHanWqGVl5G5J1mX1k4YmsTgFLGKvP1guMOJIVNqS/
GITHUB_ENV=/Users/runner/work/_temp/_runner_file_commands/set_env_af7b2b08-a369-43cf-87cc-23e9c7f65cbc
LC_CTYPE=en_US.UTF-8
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650
JAVA_HOME_13_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/13.0.2-8.1/x64/Contents/Home
HOMEBREW_CASK_OPTS=--no-quarantine
POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-macos1015
ANDROID_NDK_HOME=/Users/runner/Library/Android/sdk/ndk-bundle
BOOTSTRAP_HASKELL_NONINTERACTIVE=1
XCODE_11_DEVELOPER_DIR=/Applications/Xcode_11.7.app/Contents/Developer
GITHUB_REPOSITORY=scikit-hep/pyhf
GITHUB_PATH=/Users/runner/work/_temp/_runner_file_commands/add_path_af7b2b08-a369-43cf-87cc-23e9c7f65cbc
GITHUB_ACTION=mxschmittaction-tmate
DOTNET_MULTILEVEL_LOOKUP=0
_=/usr/bin/printenv"><pre class="notranslate">$ <span class="pl-s1">python --version --version</span>
<span class="pl-c1">Python 3.7.10 (default, Feb 16 2021, 11:44:40)</span>
<span class="pl-c1">[Clang 11.0.0 (clang-1100.0.33.17)]</span>
$ <span class="pl-s1">printenv</span>
<span class="pl-c1">GITHUB_JOB=test</span>
<span class="pl-c1">GITHUB_EVENT_PATH=/Users/runner/work/_temp/_github_workflow/event.json</span>
<span class="pl-c1">RUNNER_OS=macOS</span>
<span class="pl-c1">XCODE_12_DEVELOPER_DIR=/Applications/Xcode_12.4.app/Contents/Developer</span>
<span class="pl-c1">ANDROID_HOME=/Users/runner/Library/Android/sdk</span>
<span class="pl-c1">GITHUB_BASE_REF=</span>
<span class="pl-c1">NVM_CD_FLAGS=</span>
<span class="pl-c1">CHROMEWEBDRIVER=/usr/local/Caskroom/chromedriver/91.0.4472.101</span>
<span class="pl-c1">SHELL=/bin/bash</span>
<span class="pl-c1">TERM=screen-256color</span>
<span class="pl-c1">PIPX_BIN_DIR=/usr/local/opt/pipx_bin</span>
<span class="pl-c1">GITHUB_REPOSITORY_OWNER=scikit-hep</span>
<span class="pl-c1">INPUT_SUDO=true</span>
<span class="pl-c1">TMPDIR=/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/</span>
<span class="pl-c1">GITHUB_ACTIONS=true</span>
<span class="pl-c1">GITHUB_RUN_NUMBER=7368</span>
<span class="pl-c1">ANDROID_SDK_ROOT=/Users/runner/Library/Android/sdk</span>
<span class="pl-c1">JAVA_HOME_8_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/8.0.292-10/x64/Contents/Home</span>
<span class="pl-c1">RCT_NO_LAUNCH_PACKAGER=1</span>
<span class="pl-c1">RUNNER_WORKSPACE=/Users/runner/work/pyhf</span>
<span class="pl-c1">NUNIT_BASE_PATH=/Library/Developer/nunit</span>
<span class="pl-c1">RUNNER_PERFLOG=/usr/local/opt/runner/perflog</span>
<span class="pl-c1">GITHUB_REF=refs/heads/fix/test-jax-version-that-breaks-ci</span>
<span class="pl-c1">GITHUB_WORKFLOW=CI/CD</span>
<span class="pl-c1">LC_ALL=en_US.UTF-8</span>
<span class="pl-c1">NUNIT3_PATH=/Library/Developer/nunit/3.6.0</span>
<span class="pl-c1">JAVA_HOME_11_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/11.0.11-9/x64/Contents/Home</span>
<span class="pl-c1">RUNNER_TOOL_CACHE=/Users/runner/hostedtoolcache</span>
<span class="pl-c1">GITHUB_ACTION_REPOSITORY=mxschmitt/action-tmate</span>
<span class="pl-c1">JAVA_HOME_14_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/14.0.2-12/x64/Contents/Home</span>
<span class="pl-c1">NVM_DIR=/Users/runner/.nvm</span>
<span class="pl-c1">USER=runner</span>
<span class="pl-c1">GITHUB_API_URL=https://api.github.com</span>
<span class="pl-c1">GITHUB_EVENT_NAME=push</span>
<span class="pl-c1">GITHUB_SHA=2e371805064fc961c95106c4098702b3696827c3</span>
<span class="pl-c1">XCODE_10_DEVELOPER_DIR=/Applications/Xcode_10.3.app/Contents/Developer</span>
<span class="pl-c1">RUNNER_TEMP=/Users/runner/work/_temp</span>
<span class="pl-c1">pythonLocation=/Users/runner/hostedtoolcache/Python/3.7.10/x64</span>
<span class="pl-c1">ANDROID_NDK_ROOT=/Users/runner/Library/Android/sdk/ndk-bundle</span>
<span class="pl-c1">ANDROID_NDK_LATEST_HOME=/Users/runner/Library/Android/sdk/ndk/22.1.7171670</span>
<span class="pl-c1">ImageVersion=20210620.1</span>
<span class="pl-c1">SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.I24a5PqIL3/Listeners</span>
<span class="pl-c1">GITHUB_SERVER_URL=https://github.com</span>
<span class="pl-c1">HOMEBREW_NO_AUTO_UPDATE=1</span>
<span class="pl-c1">__CF_USER_TEXT_ENCODING=0x1F5:0:0</span>
<span class="pl-c1">AGENT_TOOLSDIRECTORY=/Users/runner/hostedtoolcache</span>
<span class="pl-c1">GITHUB_HEAD_REF=</span>
<span class="pl-c1">GITHUB_GRAPHQL_URL=https://api.github.com/graphql</span>
<span class="pl-c1">TMUX=/tmp/tmate.sock,1968,0</span>
<span class="pl-c1">PATH=/Users/runner/hostedtoolcache/Python/3.7.10/x64/bin:/Users/runner/hostedtoolcache/Python/3.7.10/x64:/usr/local/opt/pipx_bin:/Users/runner/.cargo/bin:/usr/local/lib/ruby/gems/2.7.0/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/Users/runner/.yarn/bin:/Users/runner/Library/Android/sdk/tools:/Users/runner/Library/Android/sdk/platform-tools:/Users/runner/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/runner/.dotnet/tools:/Users/runner/.ghcup/bin:/Users/runner/hostedtoolcache/stack/2.7.1/x64</span>
<span class="pl-c1">INPUT_LIMIT-ACCESS-TO-ACTOR=false</span>
<span class="pl-c1">GITHUB_RETENTION_DAYS=90</span>
<span class="pl-c1">PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG</span>
<span class="pl-c1">CONDA=/usr/local/miniconda</span>
<span class="pl-c1">DOTNET_ROOT=/Users/runner/.dotnet</span>
<span class="pl-c1">EDGEWEBDRIVER=/usr/local/share/edge_driver</span>
<span class="pl-c1">PWD=/Users/runner/work/pyhf/pyhf</span>
<span class="pl-c1">VM_ASSETS=/usr/local/opt/runner/scripts</span>
<span class="pl-c1">JAVA_HOME=/Users/runner/hostedtoolcache/Java_Adopt_jdk/8.0.292-10/x64/Contents/Home</span>
<span class="pl-c1">JAVA_HOME_12_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/12.0.2-10.3/x64/Contents/Home</span>
<span class="pl-c1">VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg</span>
<span class="pl-c1">LANG=en_US.UTF-8</span>
<span class="pl-c1">ImageOS=macos1015</span>
<span class="pl-c1">TMUX_PANE=%0</span>
<span class="pl-c1">XPC_FLAGS=0x0</span>
<span class="pl-c1">PIPX_HOME=/usr/local/opt/pipx</span>
<span class="pl-c1">GECKOWEBDRIVER=/usr/local/opt/geckodriver/bin</span>
<span class="pl-c1">GITHUB_ACTOR=matthewfeickert</span>
<span class="pl-c1">XPC_SERVICE_NAME=0</span>
<span class="pl-c1">HOME=/Users/runner</span>
<span class="pl-c1">SHLVL=4</span>
<span class="pl-c1">ACTIONS_RUNTIME_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ik9ta3lYbmJnM05RTE1nMGZMaTBSNnJxdzlxdyJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNS</span>
<span class="pl-c1">ZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8yMzU5MSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5</span>
<span class="pl-c1">kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8yMzU5MSIsIklkZW50aXR5VHlwZUNsYWltIjoiU3lzdGVtOlNlcnZpY2VJZGVudGl0eSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLz</span>
<span class="pl-c1">IwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6IkRERERERERELUREREQtRERERC1ERERELURERERERERERERERCIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcHJpbWFyeXNpZCI6ImRkZGRkZGRkLWRkZGQtZ</span>
<span class="pl-c1">GRkZC1kZGRkLWRkZGRkZGRkZGRkZCIsImF1aSI6ImE1YTFiNzdhLWFhYTktNDFiNi05ZTRjLWQ2OWI4NzRiMmRkNCIsInNpZCI6IjU0OGJjZjNlLWU3MWYtNDI2YS1iYTY0LTNkNmZjNjVhM2JkYSIsImFjIjoiW3tcIlNjb3BlXCI6XCJyZWZzL2hlYWRzL2ZpeC90ZXN0</span>
<span class="pl-c1">LWpheC12ZXJzaW9uLXRoYXQtYnJlYWtzLWNpXCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFzdGVyXCIsXCJQZXJtaXNzaW9uXCI6MX1dIiwib3JjaGlkIjoiMDhhMmQ1NDEtNTU5NC00NjBlLWFlOGQtMjM3YjUyZTYyYjY1LnRlc3Q</span>
<span class="pl-c1">ubWFjb3MtbGF0ZXN0XzNfNyIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo1YmY5NjQ5Zi01MjlhLTRhYmMtODAwYS1iNThhMDNjZDNlM2IiLC</span>
<span class="pl-c1">JuYmYiOjE2MjQ5MTIzOTEsImV4cCI6MTYyNDkzNTE5MX0.o0oeOn2M2Dbx8-K3yhe4JGA7k9KmR9KBoVAujCk29uptx7HOPfB1kba1l4Ofylm1DeKuB0xfMF5Y8ttibvDTgH2HitCC3BMdL64LZ99IUNnjngkuUsGuQsFI3E3uwT3SF6OpQcaeLjtCV3Qx2iUGkPsWM8Tpt</span>
<span class="pl-c1">XD0TH4IXw5NJsbx3rKHHC2aSM6384Im-Nu965w_7539XkaIyLkg8MFK9MTIBr0O0HfRxJqvvareP7ufdqDnvY9EVupoVCdSEs3Xe5fuYW_GJvsKHImbsGoRTOgTFgiwOFxYIiMvcjyU1PDjg3ttjBF0JiMmReypLgSsQqUD-BrPIvjKuHYuzQplTg</span>
<span class="pl-c1">RUNNER_TRACKING_ID=github_f9075cf8-002b-4c98-a7e2-61bcc0d94891</span>
<span class="pl-c1">ANDROID_NDK_18R_PATH=/Users/runner/Library/Android/sdk/ndk/18.1.5063045</span>
<span class="pl-c1">GITHUB_WORKSPACE=/Users/runner/work/pyhf/pyhf</span>
<span class="pl-c1">CI=true</span>
<span class="pl-c1">GITHUB_ACTION_REF=v3</span>
<span class="pl-c1">GITHUB_RUN_ID=980389940</span>
<span class="pl-c1">ACTIONS_RUNTIME_URL=https://pipelines.actions.githubusercontent.com/7egiF0eguRHanWqGVl5G5J1mX1k4YmsTgFLGKvP1guMOJIVNqS/</span>
<span class="pl-c1">LOGNAME=runner</span>
<span class="pl-c1">ACTIONS_CACHE_URL=https://artifactcache.actions.githubusercontent.com/7egiF0eguRHanWqGVl5G5J1mX1k4YmsTgFLGKvP1guMOJIVNqS/</span>
<span class="pl-c1">GITHUB_ENV=/Users/runner/work/_temp/_runner_file_commands/set_env_af7b2b08-a369-43cf-87cc-23e9c7f65cbc</span>
<span class="pl-c1">LC_CTYPE=en_US.UTF-8</span>
<span class="pl-c1">HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650</span>
<span class="pl-c1">JAVA_HOME_13_X64=/Users/runner/hostedtoolcache/Java_Adopt_jdk/13.0.2-8.1/x64/Contents/Home</span>
<span class="pl-c1">HOMEBREW_CASK_OPTS=--no-quarantine</span>
<span class="pl-c1">POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-macos1015</span>
<span class="pl-c1">ANDROID_NDK_HOME=/Users/runner/Library/Android/sdk/ndk-bundle</span>
<span class="pl-c1">BOOTSTRAP_HASKELL_NONINTERACTIVE=1</span>
<span class="pl-c1">XCODE_11_DEVELOPER_DIR=/Applications/Xcode_11.7.app/Contents/Developer</span>
<span class="pl-c1">GITHUB_REPOSITORY=scikit-hep/pyhf</span>
<span class="pl-c1">GITHUB_PATH=/Users/runner/work/_temp/_runner_file_commands/add_path_af7b2b08-a369-43cf-87cc-23e9c7f65cbc</span>
<span class="pl-c1">GITHUB_ACTION=mxschmittaction-tmate</span>
<span class="pl-c1">DOTNET_MULTILEVEL_LOOKUP=0</span>
<span class="pl-c1">_=/usr/bin/printenv</span></pre></div>
<p dir="auto">However, I am <em>unable</em> to replicate this at all on the Macbook Air</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G14042
$ python --version --version
Python 3.8.10 (default, Jun 27 2021, 18:38:01)
[Clang 10.0.0 (clang-1000.10.44.4)]
$ printenv
SSH_AGENT_PID=533
TERM_PROGRAM=iTerm.app
PYENV_ROOT=/Users/cerylinae/.pyenv
TERM=xterm-256color
SHELL=/bin/bash
TMPDIR=/var/folders/rx/t5jm47z56bxfxmbp2qs6fsj80000gn/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.dWj7SOkSaA/Render
TERM_PROGRAM_VERSION=3.3.12
OLDPWD=/Users/cerylinae/Code
TERM_SESSION_ID=w0t0p0:FEA1A898-9304-451B-9F5E-765940B67423
PYENV_VERSION=pyhf-debug
USER=cerylinae
SSH_AUTH_SOCK=/var/folders/rx/t5jm47z56bxfxmbp2qs6fsj80000gn/T//ssh-g3V3yN8vZC0o/agent.532
__CF_USER_TEXT_ENCODING=0x0:0:0
PYENV_VIRTUALENV_INIT=1
VIRTUAL_ENV=/Users/cerylinae/.pyenv/versions/3.8.10/envs/pyhf-debug
PYENV_VIRTUAL_ENV=/Users/cerylinae/.pyenv/versions/3.8.10/envs/pyhf-debug
PATH=/Users/cerylinae/.pyenv/plugins/pyenv-virtualenv/shims:/Users/cerylinae/.pyenv/shims:/Users/cerylinae/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
PWD=/Users/cerylinae/Code/pyhf
LANG=en_US.UTF-8
ITERM_PROFILE=Default
_OLD_VIRTUAL_PS1=\h:\W \u\$
XPC_FLAGS=0x0
PS1=(pyhf-debug) \h:\W \u\$
XPC_SERVICE_NAME=0
PYENV_SHELL=bash
SHLVL=1
HOME=/Users/cerylinae
COLORFGBG=7;0
LC_TERMINAL_VERSION=3.3.12
ITERM_SESSION_ID=w0t0p0:FEA1A898-9304-451B-9F5E-765940B67423
LOGNAME=cerylinae
LC_TERMINAL=iTerm2
DISPLAY=/private/tmp/com.apple.launchd.39ujEqef0g/org.macosforge.xquartz:0
PYENV_ACTIVATE_SHELL=1
COLORTERM=truecolor
_=/usr/bin/printenv"><pre class="notranslate">$ <span class="pl-s1">sw_vers</span>
<span class="pl-c1">ProductName: Mac OS X</span>
<span class="pl-c1">ProductVersion: 10.13.6</span>
<span class="pl-c1">BuildVersion: 17G14042</span>
$ <span class="pl-s1">python --version --version</span>
<span class="pl-c1">Python 3.8.10 (default, Jun 27 2021, 18:38:01)</span>
<span class="pl-c1">[Clang 10.0.0 (clang-1000.10.44.4)]</span>
$ <span class="pl-s1">printenv</span>
<span class="pl-c1">SSH_AGENT_PID=533</span>
<span class="pl-c1">TERM_PROGRAM=iTerm.app</span>
<span class="pl-c1">PYENV_ROOT=/Users/cerylinae/.pyenv</span>
<span class="pl-c1">TERM=xterm-256color</span>
<span class="pl-c1">SHELL=/bin/bash</span>
<span class="pl-c1">TMPDIR=/var/folders/rx/t5jm47z56bxfxmbp2qs6fsj80000gn/T/</span>
<span class="pl-c1">Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.dWj7SOkSaA/Render</span>
<span class="pl-c1">TERM_PROGRAM_VERSION=3.3.12</span>
<span class="pl-c1">OLDPWD=/Users/cerylinae/Code</span>
<span class="pl-c1">TERM_SESSION_ID=w0t0p0:FEA1A898-9304-451B-9F5E-765940B67423</span>
<span class="pl-c1">PYENV_VERSION=pyhf-debug</span>
<span class="pl-c1">USER=cerylinae</span>
<span class="pl-c1">SSH_AUTH_SOCK=/var/folders/rx/t5jm47z56bxfxmbp2qs6fsj80000gn/T//ssh-g3V3yN8vZC0o/agent.532</span>
<span class="pl-c1">__CF_USER_TEXT_ENCODING=0x0:0:0</span>
<span class="pl-c1">PYENV_VIRTUALENV_INIT=1</span>
<span class="pl-c1">VIRTUAL_ENV=/Users/cerylinae/.pyenv/versions/3.8.10/envs/pyhf-debug</span>
<span class="pl-c1">PYENV_VIRTUAL_ENV=/Users/cerylinae/.pyenv/versions/3.8.10/envs/pyhf-debug</span>
<span class="pl-c1">PATH=/Users/cerylinae/.pyenv/plugins/pyenv-virtualenv/shims:/Users/cerylinae/.pyenv/shims:/Users/cerylinae/.pyenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin</span>
<span class="pl-c1">PWD=/Users/cerylinae/Code/pyhf</span>
<span class="pl-c1">LANG=en_US.UTF-8</span>
<span class="pl-c1">ITERM_PROFILE=Default</span>
<span class="pl-e">_OLD_VIRTUAL_PS1=\h:\W \u\</span>$
<span class="pl-c1">XPC_FLAGS=0x0</span>
<span class="pl-c1">PS1=(pyhf-debug) \h:\W \u\$</span>
<span class="pl-c1">XPC_SERVICE_NAME=0</span>
<span class="pl-c1">PYENV_SHELL=bash</span>
<span class="pl-c1">SHLVL=1</span>
<span class="pl-c1">HOME=/Users/cerylinae</span>
<span class="pl-c1">COLORFGBG=7;0</span>
<span class="pl-c1">LC_TERMINAL_VERSION=3.3.12</span>
<span class="pl-c1">ITERM_SESSION_ID=w0t0p0:FEA1A898-9304-451B-9F5E-765940B67423</span>
<span class="pl-c1">LOGNAME=cerylinae</span>
<span class="pl-c1">LC_TERMINAL=iTerm2</span>
<span class="pl-c1">DISPLAY=/private/tmp/com.apple.launchd.39ujEqef0g/org.macosforge.xquartz:0</span>
<span class="pl-c1">PYENV_ACTIVATE_SHELL=1</span>
<span class="pl-c1">COLORTERM=truecolor</span>
<span class="pl-c1">_=/usr/bin/printenv</span></pre></div>
<p dir="auto">We thought that we would report this to the JAX team as we are unable to replicate this behavior with older versions of <code class="notranslate">jaxlib</code>, but as we're unable to replicate this locally for <code class="notranslate">jaxlib</code> <code class="notranslate">v0.1.68</code> if you'd like us to open complimentary issues with the <a href="https://github.com/actions/virtual-environments">GitHub Actions virtual environments</a> team we're happy to do so as well.</p>
<p dir="auto">We're happy to do whatever we can to try to help debug this, and if it is of any help there is a branch of the <code class="notranslate">pyhf</code> repo (<code class="notranslate">fix/test-jax-version-that-breaks-ci</code>) that has the examples shown here on it.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lukasheinrich/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lukasheinrich">@lukasheinrich</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kratsg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kratsg">@kratsg</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jpivarski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jpivarski">@jpivarski</a></p> | 1 |
<p dir="auto">A (personal) user experience:</p>
<p dir="auto">While looking for matching functionality on <code class="notranslate">str</code>, I went to the following link:</p>
<ul dir="auto">
<li><code class="notranslate">mod str</code>: <a href="https://doc.rust-lang.org/std/str/index.html" rel="nofollow">https://doc.rust-lang.org/std/str/index.html</a></li>
<li>note that this is distinct from primitive <code class="notranslate">str</code>: <a href="https://doc.rust-lang.org/std/primitive.str.html" rel="nofollow">https://doc.rust-lang.org/std/primitive.str.html</a>
<ul dir="auto">
<li>you may not realize that at first glance; see further commentary below</li>
</ul>
</li>
<li>note also that the mod str link occurs first in the search results (primitive second): <a href="https://doc.rust-lang.org/std/str/?search=str" rel="nofollow">https://doc.rust-lang.org/std/str/?search=str</a></li>
</ul>
<p dir="auto">The mod str documentation, at first blush, seems promising; it describes the <code class="notranslate">str</code> type quickly, shows examples of <code class="notranslate">&str</code> and discusses its representation. It then lists a bunch of structs that seem promising. Things like <code class="notranslate">struct Matches</code> "created with the method <code class="notranslate">.matches()</code>"</p>
<p dir="auto">But then I see no method list. And the text "created with the method <code class="notranslate">.matches()</code>" does not have a hyperlink to that method. Following the link to the page for <code class="notranslate">struct Matches</code> does not help. (I can imagine reasons why we would not want to flood the embedded identifiers with hyperlinks; I'm just pointing out that one reasonable guess at how to find this method does not work out.)</p>
<p dir="auto">Anyway, perhaps a lot of this confusion would be reduced if, at the very beginning of the documentation for <code class="notranslate">mod str</code>, we included a prominent link to the primitive <code class="notranslate">str</code> documentation page, which <em>does</em> have all of these methods.</p>
<hr>
<p dir="auto">But, there is a twist (which perhaps should be a different bug).</p>
<ul dir="auto">
<li><code class="notranslate">mod str</code>: <a href="https://doc.rust-lang.org/std/str/index.html" rel="nofollow">https://doc.rust-lang.org/std/str/index.html</a></li>
<li>note that this is distinct from primitive <code class="notranslate">str</code>: <a href="https://doc.rust-lang.org/std/primitive.str.html" rel="nofollow">https://doc.rust-lang.org/std/primitive.str.html</a></li>
</ul>
<p dir="auto">Both of these pages start off with the exact same text. Apart from the respective titles ("Module std::str" versus "Primitive Type str"), there is no visible difference in my web browser which is filling its vertical space on my laptop, because the differences only start after the "Representation" section, and I need to scroll to see that.</p>
<p dir="auto">This is not great, because someone who is following links trying to find the right page after starting from the <code class="notranslate">mod str</code> docs might reasonably think that this link took them <em>back to</em> the <code class="notranslate">mod str</code> docs.</p> | <p dir="auto">There are a number of problems with our current quote_expr!, quote_tokens!, etc. macros. The first one is that they're cloaking/unhygienic. Fixing this is easy--just change the macro definition so that you have to supply an identifier as the first argument.</p>
<p dir="auto">The second problem is that they really shouldn't work in the way that they do.</p>
<p dir="auto">Specifically, these macros currently expand into ASTs that represent calls to the parser, thereby generating an AST. This discards all context/hygiene information, and is also inefficient, since you already <em>have</em> the AST that you're trying to protect.</p>
<p dir="auto">Languages such as Racket just provide a language primitive called "quote-syntax" whose evaluation rule is <em>literally</em> the trivial one--a use of quote-syntax simply evaluates to the AST on the right hand side of the call.</p>
<p dir="auto">What would it take to add this to Rust?</p>
<ol dir="auto">
<li>You'd need a new AST node called (say) quote_expr.</li>
<li>The typechecker would have to know that any quote_ast node trivially has the type ast::expr -- no checking required.</li>
</ol>
<p dir="auto">This should be less than a day of work for someone who really understands the system well. One question is whether you want to duplicate this work for each of the quote_... thingies, or make one that covers them all, with some kind of simple enum.</p>
<p dir="auto">It appears to me that it would also allow us to throw out a huge amount of code--all of the quoting stuff that's in there currently.</p> | 0 |
<p dir="auto">I've just tried using the customised download facility to create me a Bootstrap v2.0 stylesheet by specifying only the colours I required to be different from the core Bootstrap definitions. However, this is how my app's coming out looking like when using the bundled <strong>bootstrap.min.css</strong> file:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/48d5db1617c098b337a10814c48cf3e6314a0a62d8a252a8cfa90125d94593a3/687474703a2f2f692e696d6775722e636f6d2f586f43387a2e6a7067"><img src="https://camo.githubusercontent.com/48d5db1617c098b337a10814c48cf3e6314a0a62d8a252a8cfa90125d94593a3/687474703a2f2f692e696d6775722e636f6d2f586f43387a2e6a7067" alt="Screen-shot" data-canonical-src="http://i.imgur.com/XoC8z.jpg" style="max-width: 100%;"></a></p> | <p dir="auto">Hey guys,</p>
<p dir="auto">I download the custom bootstrap from the site with all options, but in min.css don't have the body{} element...</p> | 1 |
<p dir="auto">By example, the issue is that NumPy scalars are formatted to strings differently:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
x = np.float32(101.1)
print(f"unexpected: {x}") # unexpected: 101.0999984741211
print(f"expected str: {x!s}") # expected str: 101.1
print(f"expected repr: {x!r}") # expected repr: 101.1
print(f"expected ascii: {x!a}") # expected ascii: 101.1"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">float32</span>(<span class="pl-c1">101.1</span>)
<span class="pl-en">print</span>(<span class="pl-s">f"unexpected: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">x</span><span class="pl-kos">}</span></span>"</span>) <span class="pl-c"># unexpected: 101.0999984741211</span>
<span class="pl-en">print</span>(<span class="pl-s">f"expected str: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">x</span>!s<span class="pl-kos">}</span></span>"</span>) <span class="pl-c"># expected str: 101.1</span>
<span class="pl-en">print</span>(<span class="pl-s">f"expected repr: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">x</span>!r<span class="pl-kos">}</span></span>"</span>) <span class="pl-c"># expected repr: 101.1</span>
<span class="pl-en">print</span>(<span class="pl-s">f"expected ascii: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">x</span>!a<span class="pl-kos">}</span></span>"</span>) <span class="pl-c"># expected ascii: 101.1</span></pre></div>
<p dir="auto">The unexpected outcome is because the 32-bit float value is converted to native Python double precision, and then formatted as a string type. The last three examples with expected outputs use a <a href="https://docs.python.org/3/library/string.html#format-string-syntax" rel="nofollow">format conversion field</a>, which call (e.g.) <code class="notranslate">__repr__</code>.</p>
<p dir="auto">A suggested fix would be to implement a <a href="https://docs.python.org/3/reference/datamodel.html#object.__format__" rel="nofollow"><code class="notranslate">__format__</code> method</a> for (some?) numpy scalar types.</p> | <h3 dir="auto">Describe the issue:</h3>
<p dir="auto">This could be related:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1180405378" data-permission-text="Title is private" data-url="https://github.com/pypa/setuptools/issues/3197" data-hovercard-type="issue" data-hovercard-url="/pypa/setuptools/issues/3197/hovercard?comment_id=1086858941&comment_type=issue_comment" href="https://github.com/pypa/setuptools/issues/3197#issuecomment-1086858941">pypa/setuptools#3197 (comment)</a></p>
<p dir="auto">Latest numpy release (1.22.3) cannot build from source when using latest setuptools.</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python3 -m pip install -Uv setuptools==61.3.1
python3 -m pip install -Uv git+https://github.com/numpy/[email protected]"><pre class="notranslate"><span class="pl-s1">python3</span> <span class="pl-c1">-</span><span class="pl-s1">m</span> <span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-c1">-</span><span class="pl-v">Uv</span> <span class="pl-s1">setuptools</span><span class="pl-c1">==</span><span class="pl-c1">61.3</span>.<span class="pl-c1">1</span>
<span class="pl-s1">python3</span> <span class="pl-c1">-</span><span class="pl-s1">m</span> <span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-c1">-</span><span class="pl-v">Uv</span> <span class="pl-s1">git</span><span class="pl-c1">+</span><span class="pl-s1">https</span>:<span class="pl-c1">//</span><span class="pl-s1">github</span>.<span class="pl-s1">com</span><span class="pl-c1">/</span><span class="pl-s1">numpy</span><span class="pl-c1">/</span><span class="pl-s1">numpy</span>.<span class="pl-s1">git</span>@<span class="pl-s1">v1</span>.<span class="pl-c1">22.3</span></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#9 529.2 Using pip 22.0.4 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)
#9 529.3 Looking in indexes: https://mirrors.aliyun.com/pypi/simple
#9 529.3 Processing ./mirrored-pip-GRCQUK/numpy
#9 529.5 Installing build dependencies: started
#9 529.5 Running command pip subprocess to install build dependencies
#9 531.1 Looking in indexes: https://mirrors.aliyun.com/pypi/simple
#9 531.1 Ignoring packaging: markers 'platform_machine == "arm64"' don't match your environment
#9 531.7 Collecting setuptools==59.2.0
#9 531.8 Downloading https://mirrors.aliyun.com/pypi/packages/18/ad/ec41343a49a0371ea40daf37b1ba2c11333cdd121cb378161635d14b9750/setuptools-59.2.0-py3-none-any.whl (952 kB)
#9 533.1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 952.0/952.0 KB 734.9 kB/s eta 0:00:00
#9 533.2 Collecting wheel==0.37.0
#9 533.2 Downloading https://mirrors.aliyun.com/pypi/packages/04/80/cad93b40262f5d09f6de82adbee452fd43cdff60830b56a74c5930f7e277/wheel-0.37.0-py2.py3-none-any.whl (35 kB)
#9 534.0 Collecting Cython<3.0,>=0.29.24
#9 534.0 Downloading https://mirrors.aliyun.com/pypi/packages/9a/26/d2b6bc4cb7d716c82ebc89690cbd5ba0f547db364809cd42dad34d593182/Cython-0.29.28-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
#9 536.6 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 761.3 kB/s eta 0:00:00
#9 536.9 Installing collected packages: wheel, setuptools, Cython
#9 537.8 Successfully installed Cython-0.29.28 setuptools-59.2.0 wheel-0.37.0
#9 537.8 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#9 537.9 Installing build dependencies: finished with status 'done'
#9 537.9 Getting requirements to build wheel: started
#9 537.9 Running command Getting requirements to build wheel
#9 538.3 Running from numpy source directory.
#9 539.2 error: Multiple top-level packages discovered in a flat-layout: ['numpy', 'branding'].
#9 539.2
#9 539.2 To avoid accidental inclusion of unwanted files or directories,
#9 539.2 setuptools will not proceed with this build.
#9 539.2
#9 539.2 If you are trying to create a single distribution with multiple packages
#9 539.2 on purpose, you should not rely on automatic discovery.
#9 539.2 Instead, consider the following options:
#9 539.2
#9 539.2 1. set up custom discovery (`find` directive with `include` or `exclude`)
#9 539.2 2. use a `src-layout`
#9 539.2 3. explicitly set `py_modules` or `packages` with a list of names
#9 539.2
#9 539.2 To find more information, look for "package discovery" on setuptools docs.
#9 539.3 error: subprocess-exited-with-error
#9 539.3
#9 539.3 × Getting requirements to build wheel did not run successfully.
#9 539.3 │ exit code: 1
#9 539.3 ╰─> See above for output.
#9 539.3
#9 539.3 note: This error originates from a subprocess, and is likely not a problem with pip.
#9 539.3 full command: /usr/bin/python3 /usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpis1s8vl8
#9 539.3 cwd: /tmp/scratch/mirrored-pip-GRCQUK/numpy
#9 539.3 Getting requirements to build wheel: finished with status 'error'
#9 539.3 error: subprocess-exited-with-error
#9 539.3
#9 539.3 × Getting requirements to build wheel did not run successfully.
#9 539.3 │ exit code: 1
#9 539.3 ╰─> See above for output.
#9 539.3
#9 539.3 note: This error originates from a subprocess, and is likely not a problem with pip."><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>9 529.2 Using pip 22.0.4 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9) </span>
<span class="pl-c"><span class="pl-c">#</span>9 529.3 Looking in indexes: https://mirrors.aliyun.com/pypi/simple </span>
<span class="pl-c"><span class="pl-c">#</span>9 529.3 Processing ./mirrored-pip-GRCQUK/numpy </span>
<span class="pl-c"><span class="pl-c">#</span>9 529.5 Installing build dependencies: started </span>
<span class="pl-c"><span class="pl-c">#</span>9 529.5 Running command pip subprocess to install build dependencies </span>
<span class="pl-c"><span class="pl-c">#</span>9 531.1 Looking in indexes: https://mirrors.aliyun.com/pypi/simple </span>
<span class="pl-c"><span class="pl-c">#</span>9 531.1 Ignoring packaging: markers 'platform_machine == "arm64"' don't match your environment </span>
<span class="pl-c"><span class="pl-c">#</span>9 531.7 Collecting setuptools==59.2.0 </span>
<span class="pl-c"><span class="pl-c">#</span>9 531.8 Downloading https://mirrors.aliyun.com/pypi/packages/18/ad/ec41343a49a0371ea40daf37b1ba2c11333cdd121cb378161635d14b9750/setuptools-59.2.0-py3-none-any.whl (952 kB) </span>
<span class="pl-c"><span class="pl-c">#</span>9 533.1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 952.0/952.0 KB 734.9 kB/s eta 0:00:00 </span>
<span class="pl-c"><span class="pl-c">#</span>9 533.2 Collecting wheel==0.37.0 </span>
<span class="pl-c"><span class="pl-c">#</span>9 533.2 Downloading https://mirrors.aliyun.com/pypi/packages/04/80/cad93b40262f5d09f6de82adbee452fd43cdff60830b56a74c5930f7e277/wheel-0.37.0-py2.py3-none-any.whl (35 kB) </span>
<span class="pl-c"><span class="pl-c">#</span>9 534.0 Collecting Cython<3.0,>=0.29.24 </span>
<span class="pl-c"><span class="pl-c">#</span>9 534.0 Downloading https://mirrors.aliyun.com/pypi/packages/9a/26/d2b6bc4cb7d716c82ebc89690cbd5ba0f547db364809cd42dad34d593182/Cython-0.29.28-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB) </span>
<span class="pl-c"><span class="pl-c">#</span>9 536.6 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 761.3 kB/s eta 0:00:00 </span>
<span class="pl-c"><span class="pl-c">#</span>9 536.9 Installing collected packages: wheel, setuptools, Cython </span>
<span class="pl-c"><span class="pl-c">#</span>9 537.8 Successfully installed Cython-0.29.28 setuptools-59.2.0 wheel-0.37.0 </span>
<span class="pl-c"><span class="pl-c">#</span>9 537.8 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv </span>
<span class="pl-c"><span class="pl-c">#</span>9 537.9 Installing build dependencies: finished with status 'done' </span>
<span class="pl-c"><span class="pl-c">#</span>9 537.9 Getting requirements to build wheel: started </span>
<span class="pl-c"><span class="pl-c">#</span>9 537.9 Running command Getting requirements to build wheel </span>
<span class="pl-c"><span class="pl-c">#</span>9 538.3 Running from numpy source directory. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 error: Multiple top-level packages discovered in a flat-layout: ['numpy', 'branding']. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 To avoid accidental inclusion of unwanted files or directories, </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 setuptools will not proceed with this build. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 If you are trying to create a single distribution with multiple packages </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 on purpose, you should not rely on automatic discovery. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 Instead, consider the following options: </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 1. set up custom discovery (`find` directive with `include` or `exclude`) </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 2. use a `src-layout` </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 3. explicitly set `py_modules` or `packages` with a list of names </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.2 To find more information, look for "package discovery" on setuptools docs. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 error: subprocess-exited-with-error </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 × Getting requirements to build wheel did not run successfully. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 │ exit code: 1 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 ╰─> See above for output. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 note: This error originates from a subprocess, and is likely not a problem with pip. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 full command: /usr/bin/python3 /usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpis1s8vl8 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 cwd: /tmp/scratch/mirrored-pip-GRCQUK/numpy </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 Getting requirements to build wheel: finished with status 'error' </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 error: subprocess-exited-with-error </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 × Getting requirements to build wheel did not run successfully. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 │ exit code: 1 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 ╰─> See above for output. </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 </span>
<span class="pl-c"><span class="pl-c">#</span>9 539.3 note: This error originates from a subprocess, and is likely not a problem with pip.</span></pre></div>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">Numpy 1.22.3<br>
Python 3.9<br>
Debian 11<br>
Setuptools 61.3.1</p> | 0 |
<p dir="auto"><strong>Note:</strong> I know this issue already exists in raised issue but I found it unresolved. Please don't close it as I included troubleshooting suggested by other threads too along with all outputs and snapshots. so its not a duplicate issue.</p>
<p dir="auto">I am using Windows 8.1 64bit<br>
having 7z and git installed on my system<br>
environment set properly</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4740668/36932355-bfd62a08-1eed-11e8-9faa-2e7954c4db54.png"><img src="https://user-images.githubusercontent.com/4740668/36932355-bfd62a08-1eed-11e8-9faa-2e7954c4db54.png" alt="4" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4740668/36932370-f0b3a768-1eed-11e8-9fb1-169a55692704.png"><img src="https://user-images.githubusercontent.com/4740668/36932370-f0b3a768-1eed-11e8-9fb1-169a55692704.png" alt="5" style="max-width: 100%;"></a></p>
<p dir="auto">As per <a href="https://flutter.io/setup-windows/" rel="nofollow">getting started instructions to install flutter on windows</a>, I cloned flutter using the following command in <em>c:\android</em> directory and get a <em>c:\android\flutter</em> directory</p>
<p dir="auto"><code class="notranslate">git clone -b beta https://github.com/flutter/flutter.git</code></p>
<p dir="auto">set environment <code class="notranslate">c:\android\flutter\bin</code></p>
<p dir="auto">then I make a folder on the desktop called test and open PowerShell and CD to that folder and run following command</p>
<p dir="auto"><code class="notranslate">flutter doctor</code></p>
<p dir="auto">It says <code class="notranslate">Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...</code> repeatedly as following</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4740668/36932408-71111e7c-1eee-11e8-9c4a-d4437e465db3.png"><img src="https://user-images.githubusercontent.com/4740668/36932408-71111e7c-1eee-11e8-9c4a-d4437e465db3.png" alt="2" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Checking Dart SDK version...
Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8a...
Unzipping Dart SDK...
Updating flutter tool...
The system cannot find the path specified.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
Waiting for 0 seconds, press CTRL+C to quit ...
The system cannot find the path specified.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds..."><pre class="notranslate"><code class="notranslate">Checking Dart SDK version...
Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8a...
Unzipping Dart SDK...
Updating flutter tool...
The system cannot find the path specified.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
Waiting for 0 seconds, press CTRL+C to quit ...
The system cannot find the path specified.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
</code></pre></div>
<p dir="auto">I searched on google leading different issue pages and forums to resolve the issue. tried deleting cache directory and repeating <code class="notranslate">flutter doctor</code> command also didn't find any <em>$cachePath</em> folder anywhere in my system.</p>
<p dir="auto">tries a solution suggested on the issue <a href="https://github.com/flutter/flutter/issues/12666" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/12666/hovercard">#12666</a> to <code class="notranslate">cd into flutter\packages\flutter_tools</code> and in there execute <code class="notranslate">..\..\bin\cache\dart-sdk\bin\pub.bat upgrade --verbosity=error --no-packages-dir</code></p>
<p dir="auto">but I guess it didn't work as there is nothing in my <em>C:\android\flutter\bin\cache\dart-sdk</em> directory and gives following errors</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4740668/36932379-19c2af0a-1eee-11e8-8314-7f1e34cf9bac.png"><img src="https://user-images.githubusercontent.com/4740668/36932379-19c2af0a-1eee-11e8-8314-7f1e34cf9bac.png" alt="6" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="..\..\bin\cache\dart-sdk\bin\pub.bat : The term '..\..\bin\cache\dart-sdk\bin\pub.bat' is not recognized as the name
of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ ..\..\bin\cache\dart-sdk\bin\pub.bat upgrade --verbosity=error --no-p ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (..\..\bin\cache\dart-sdk\bin\pub.bat:String) [], CommandNotFoundExcepti
on
+ FullyQualifiedErrorId : CommandNotFoundException"><pre class="notranslate"><code class="notranslate">..\..\bin\cache\dart-sdk\bin\pub.bat : The term '..\..\bin\cache\dart-sdk\bin\pub.bat' is not recognized as the name
of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ ..\..\bin\cache\dart-sdk\bin\pub.bat upgrade --verbosity=error --no-p ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (..\..\bin\cache\dart-sdk\bin\pub.bat:String) [], CommandNotFoundExcepti
on
+ FullyQualifiedErrorId : CommandNotFoundException
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4740668/36932382-2afa18a8-1eee-11e8-995c-dc62ccebd22a.png"><img src="https://user-images.githubusercontent.com/4740668/36932382-2afa18a8-1eee-11e8-995c-dc62ccebd22a.png" alt="3" style="max-width: 100%;"></a></p>
<p dir="auto">I tried to manually download dart-sdk and extract it inside <em>C:\android\flutter\bin\cache\dart-sdk</em> directory but it starts giving dependency error as following</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Updating flutter tool...
Incompatible version constraints on async:
- flutter_tools depends on version 2.0.4
- pub itself depends on version >=1.8.0 <2.0.0
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
Waiting for 0 seconds, press CTRL+C to quit ...
^CTerminate batch job (Y/N)? y"><pre class="notranslate"><code class="notranslate">Updating flutter tool...
Incompatible version constraints on async:
- flutter_tools depends on version 2.0.4
- pub itself depends on version >=1.8.0 <2.0.0
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
Waiting for 0 seconds, press CTRL+C to quit ...
^CTerminate batch job (Y/N)? y
</code></pre></div>
<p dir="auto">I tried uninstalling and re-installing everything again but nothing works.</p>
<p dir="auto">I noticed on executing <code class="notranslate">flutter doctor</code> command I do see a <strong>dart-sdk-windows-x64.zip</strong> file get downloaded inside <em>flutter\bin\cache</em> directory but it gets deletes itself soon after downloading and didn't get extracted.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4740668/36932388-3daca8bc-1eee-11e8-8895-f72158d96d88.png"><img src="https://user-images.githubusercontent.com/4740668/36932388-3daca8bc-1eee-11e8-8895-f72158d96d88.png" alt="1" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Results of <code class="notranslate">flutter run</code>, <code class="notranslate">flutter analyze</code> and <code class="notranslate">flutter doctor -v</code> are same</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Updating flutter tool...
The system cannot find the path specified.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
Waiting for 3 seconds, press CTRL+C to quit ...
Terminate batch job (Y/N)? y"><pre class="notranslate"><code class="notranslate">Updating flutter tool...
The system cannot find the path specified.
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
Waiting for 3 seconds, press CTRL+C to quit ...
Terminate batch job (Y/N)? y
</code></pre></div>
<p dir="auto"><strong>in case dart-sdk added manually following are the outputs of all the above commands i.e. <code class="notranslate">flutter run</code>, <code class="notranslate">flutter analyze</code> and <code class="notranslate">flutter doctor -v</code></strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Updating flutter tool...
Incompatible version constraints on async:
- flutter_tools depends on version 2.0.4
- pub itself depends on version >=1.8.0 <2.0.0
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
Waiting for 0 seconds, press CTRL+C to quit ...
^CTerminate batch job (Y/N)?"><pre class="notranslate"><code class="notranslate">Updating flutter tool...
Incompatible version constraints on async:
- flutter_tools depends on version 2.0.4
- pub itself depends on version >=1.8.0 <2.0.0
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...
Waiting for 0 seconds, press CTRL+C to quit ...
^CTerminate batch job (Y/N)?
</code></pre></div>
<p dir="auto">Do anyone find any prominent solution to this issue? If yes please share it.</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown building ExpansionPanelList:
flutter: 'package:flutter/src/material/mergeable_material.dart': Failed assertion: line 443 pos 18:
flutter: '_children[j] is MaterialGap': is not true.
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter: https://github.com/flutter/flutter/issues/new
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2 _MergeableMaterialState.didUpdateWidget (package:flutter/src/material/mergeable_material.dart)
flutter: #3 StatefulElement.update (package:flutter/src/widgets/framework.dart:3784:58)
flutter: #4 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #5 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #6 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #7 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
flutter: #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #9 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #11 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #14 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #15 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
flutter: #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #19 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #21 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #22 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #23 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #24 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #25 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:744:36)
flutter: #26 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:702:34)
flutter: #27 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:671:7)
flutter: #28 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #29 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #30 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #31 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #33 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #35 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4379:32)
flutter: #36 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4769:17)
flutter: #37 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:192:11)
flutter: #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #41 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #43 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #44 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #45 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #46 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #47 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #49 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #51 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #52 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #53 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #55 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #56 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #57 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #58 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #59 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #60 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #61 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #62 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #63 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #64 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #65 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #66 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #67 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
flutter: #68 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #69 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #70 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #71 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #72 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #73 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4379:32)
flutter: #74 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4769:17)
flutter: #75 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #76 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #77 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #78 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #79 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #80 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #81 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #82 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #83 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #84 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4379:32)
flutter: #85 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4769:17)
flutter: #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #89 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #90 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #91 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #92 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #93 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #94 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #95 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #96 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #97 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #98 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #99 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #100 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #101 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #102 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #103 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
flutter: #104 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #105 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #107 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #108 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #109 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #110 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #111 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #112 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #113 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #114 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #115 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #116 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #117 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #118 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #119 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #120 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #121 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #122 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #123 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #124 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #125 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #126 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #127 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #128 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #129 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2242:33)
flutter: #130 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:626:20)
flutter: #131 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
flutter: #132 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
flutter: #133 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
flutter: #134 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
flutter: #135 _invoke (dart:ui/hooks.dart:120:13)
flutter: #136 _drawFrame (dart:ui/hooks.dart:109:3)
flutter: (elided 2 frames from class _AssertionError)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════"><pre class="notranslate"><code class="notranslate">flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown building ExpansionPanelList:
flutter: 'package:flutter/src/material/mergeable_material.dart': Failed assertion: line 443 pos 18:
flutter: '_children[j] is MaterialGap': is not true.
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter: https://github.com/flutter/flutter/issues/new
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2 _MergeableMaterialState.didUpdateWidget (package:flutter/src/material/mergeable_material.dart)
flutter: #3 StatefulElement.update (package:flutter/src/widgets/framework.dart:3784:58)
flutter: #4 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #5 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #6 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #7 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
flutter: #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #9 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #11 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #14 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #15 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
flutter: #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #19 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #21 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #22 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #23 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #24 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #25 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:744:36)
flutter: #26 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:702:34)
flutter: #27 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:671:7)
flutter: #28 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #29 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #30 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #31 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #32 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #33 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #34 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #35 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4379:32)
flutter: #36 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4769:17)
flutter: #37 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:192:11)
flutter: #38 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #39 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #40 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #41 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #42 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #43 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #44 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #45 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #46 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #47 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #48 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #49 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #50 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #51 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #52 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #53 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #54 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #55 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #56 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #57 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #58 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #59 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #60 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #61 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #62 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #63 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #64 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #65 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #66 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #67 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
flutter: #68 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #69 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #70 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #71 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #72 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #73 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4379:32)
flutter: #74 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4769:17)
flutter: #75 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #76 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #77 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #78 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #79 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #80 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #81 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #82 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #83 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #84 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4379:32)
flutter: #85 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4769:17)
flutter: #86 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #88 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #89 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #90 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #91 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #92 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #93 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #94 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #95 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #96 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #97 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #98 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #99 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #100 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #101 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #102 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #103 StatelessElement.update (package:flutter/src/widgets/framework.dart:3702:5)
flutter: #104 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #105 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4661:14)
flutter: #106 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #107 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #108 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #109 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #110 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #111 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #112 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #113 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #114 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #115 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #116 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #117 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #118 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #119 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #120 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #121 ProxyElement.update (package:flutter/src/widgets/framework.dart:3909:5)
flutter: #122 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #123 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #124 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #125 StatefulElement.update (package:flutter/src/widgets/framework.dart:3799:5)
flutter: #126 Element.updateChild (package:flutter/src/widgets/framework.dart:2699:15)
flutter: #127 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3653:16)
flutter: #128 Element.rebuild (package:flutter/src/widgets/framework.dart:3495:5)
flutter: #129 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2242:33)
flutter: #130 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:626:20)
flutter: #131 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
flutter: #132 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
flutter: #133 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
flutter: #134 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
flutter: #135 _invoke (dart:ui/hooks.dart:120:13)
flutter: #136 _drawFrame (dart:ui/hooks.dart:109:3)
flutter: (elided 2 frames from class _AssertionError)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
</code></pre></div> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.2.0</li>
<li>Operating System / Platform => Windows 7 64 Bit</li>
<li>Compiler => Visual Studio 2017</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">1.I use VS2017, C ++/MFC/Win32 project。When I quit the program, I found a memory leak。<br>
Detected memory leaks!<br>
Dumping objects -><br>
{377} normal block at 0x041259A8, 56 bytes long.<br>
Data: < > 01 00 CD CD 00 00 00 00 00 00 00 00 00 00 00 00<br>
{311} normal block at 0x04122DE8, 12 bytes long.<br>
Data: 4F 70 65 6E 43 56 54 72 61 63 65 00<br>
{310} normal block at 0x04131F48, 24 bytes long.<br>
Data: < - > 01 00 00 00 E8 2D 12 04 00 00 00 00 00 00 00 00<br>
{305} normal block at 0x040DE428, 128 bytes long.<br>
Data: < > CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD CD<br>
{304} normal block at 0x040DEC68, 128 bytes long.<br>
Data: < > 00 00 00 00 CD CD CD CD CD CD CD CD CD CD CD CD<br>
{303} normal block at 0x04123268, 8 bytes long.<br>
Data: <,4 > 2C 34 12 04 00 00 00 00<br>
{302} normal block at 0x04123100, 8 bytes long.<br>
Data: < 4 > 1C 34 12 04 00 00 00 00<br>
{301} normal block at 0x041233E8, 84 bytes long.<br>
Data: < qb > 02 01 00 00 A8 85 71 62 00 00 00 00 CD CD CD CD<br>
{300} normal block at 0x04120F90, 48 bytes long.<br>
Data: < qb > 02 01 00 00 A8 85 71 62 00 00 00 00 CD CD CD CD</p>
<p dir="auto">2.Then I used windbg.exe to debug and found the following information:<br>
0:000> !heap -p -a 0x041259A8<br>
address 041259a8 found in<br>
_HEAP @ 40b0000<br>
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state<br>
04125970 000f 0000 [00] 04125988 0005c - (busy)<br>
77e93484 ntdll!RtlpCallInterceptRoutine+0x00000026<br>
77e50a8a ntdll!RtlpAllocateHeapInternal+0x00055c8a<br>
77dfadee ntdll!RtlAllocateHeap+0x0000003e<br>
622ab4a5 ucrtbased!heap_alloc_dbg_internal+0x00000195<br>
622ab2c6 ucrtbased!heap_alloc_dbg+0x00000036<br>
622ada3a ucrtbased!_malloc_dbg+0x0000001a<br>
622ae354 ucrtbased!malloc+0x00000014<br>
*** WARNING: Unable to verify checksum for D:\My Resources\2-PartTime\SmartDispenser\SmartDispenser 2020.02.02\Debug\opencv_core420d.dll<br>
*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\My Resources\2-PartTime\SmartDispenser\SmartDispenser 2020.02.02\Debug\opencv_core420d.dll -<br>
5dbf7ed opencv_core420d!cv::SparseMat::ptr+0x00a38123<br>
5cee65a opencv_core420d!cv::SparseMat::ptr+0x00966f90<br>
5cee918 opencv_core420d!cv::SparseMat::ptr+0x0096724e<br>
*** WARNING: Unable to verify checksum for D:\My Resources\2-PartTime\SmartDispenser\SmartDispenser 2020.02.02\Debug\opencv_imgproc420d.dll<br>
*** ERROR: Symbol file could not be found. Defaulted to export symbols for D:\My Resources\2-PartTime\SmartDispenser\SmartDispenser 2020.02.02\Debug\opencv_imgproc420d.dll -<br>
79e14fb3 opencv_imgproc420d!cvDrawContours+0x00f9eb8b<br>
79b138bd opencv_imgproc420d!cvDrawContours+0x00c9d495<br>
622c59df ucrtbased!_initterm+0x0000003f<br>
7a0e90f7 opencv_imgproc420d!cvDrawContours+0x01272ccf<br>
7a0e8fb9 opencv_imgproc420d!cvDrawContours+0x01272b91<br>
7a0e93a3 opencv_imgproc420d!cvDrawContours+0x01272f7b<br>
7a0e958f opencv_imgproc420d!cvDrawContours+0x01273167<br>
77e31d36 ntdll!LdrxCallInitRoutine+0x00000016<br>
77df5558 ntdll!LdrpCallInitRoutine+0x00000051<br>
77e03edf ntdll!LdrpInitializeNode+0x00000133<br>
77e04786 ntdll!LdrpInitializeGraphRecurse+0x0000005d<br>
77e0479d ntdll!LdrpInitializeGraphRecurse+0x00000074<br>
77e0479d ntdll!LdrpInitializeGraphRecurse+0x00000074<br>
77e0479d ntdll!LdrpInitializeGraphRecurse+0x00000074<br>
77e0479d ntdll!LdrpInitializeGraphRecurse+0x00000074<br>
77e69472 ntdll!LdrpInitializeGraph+0x00000013<br>
77e692b2 ntdll!LdrpInitializeProcess+0x00001cc2<br>
77e11d21 ntdll!_LdrpInitialize+0x000000ba<br>
77e11c11 ntdll!LdrInitializeThunk+0x00000011</p>
<p dir="auto">0:000> !heap -p -a 0x041233E8<br>
address 041233e8 found in<br>
_HEAP @ 40b0000<br>
HEAP_ENTRY Size Prev Flags UserPtr UserSize - state<br>
041233b0 0012 0000 [00] 041233c8 00078 - (busy)<br>
77e93484 ntdll!RtlpCallInterceptRoutine+0x00000026<br>
77e50a8a ntdll!RtlpAllocateHeapInternal+0x00055c8a<br>
77dfadee ntdll!RtlAllocateHeap+0x0000003e<br>
622ab4a5 ucrtbased!heap_alloc_dbg_internal+0x00000195<br>
622ab2c6 ucrtbased!heap_alloc_dbg+0x00000036<br>
622ada3a ucrtbased!_malloc_dbg+0x0000001a<br>
622ae354 ucrtbased!malloc+0x00000014<br>
5dbf7ed opencv_core420d!cv::SparseMat::ptr+0x00a38123<br>
5cef0ba opencv_core420d!cv::SparseMat::ptr+0x009679f0<br>
5ce6570 opencv_core420d!cv::SparseMat::ptr+0x0095eea6<br>
5cf53d5 opencv_core420d!cv::SparseMat::ptr+0x0096dd0b<br>
5cf5465 opencv_core420d!cv::SparseMat::ptr+0x0096dd9b<br>
5cf6eae opencv_core420d!cv::SparseMat::ptr+0x0096f7e4<br>
5cfd155 opencv_core420d!cv::SparseMat::ptr+0x00975a8b<br>
5cfd056 opencv_core420d!cv::SparseMat::ptr+0x0097598c<br>
5cfd661 opencv_core420d!cv::SparseMat::ptr+0x00975f97<br>
5cf603b opencv_core420d!cv::SparseMat::ptr+0x0096e971<br>
5d2ca80 opencv_core420d!cv::SparseMat::ptr+0x009a53b6<br>
5d259a2 opencv_core420d!cv::SparseMat::ptr+0x0099e2d8<br>
5afe90b opencv_core420d!cv::SparseMat::ptr+0x00777241<br>
5afecb5 opencv_core420d!cv::SparseMat::ptr+0x007775eb<br>
5afe8b3 opencv_core420d!cv::SparseMat::ptr+0x007771e9<br>
5986f2d opencv_core420d!cv::SparseMat::ptr+0x005ff863<br>
622c59df ucrtbased!_initterm+0x0000003f<br>
5dc17c7 opencv_core420d!cv::SparseMat::ptr+0x00a3a0fd<br>
5dc1689 opencv_core420d!cv::SparseMat::ptr+0x00a39fbf<br>
5dc1a73 opencv_core420d!cv::SparseMat::ptr+0x00a3a3a9<br>
5dc1c5f opencv_core420d!cv::SparseMat::ptr+0x00a3a595<br>
77e31d36 ntdll!LdrxCallInitRoutine+0x00000016<br>
77df5558 ntdll!LdrpCallInitRoutine+0x00000051<br>
77e03edf ntdll!LdrpInitializeNode+0x00000133<br>
77e04786 ntdll!LdrpInitializeGraphRecurse+0x0000005d</p>
<p dir="auto">3.What is the problem? How to deal with it?</p> | <h5 dir="auto">System information (version)</h5>
<p dir="auto">OS: Ubuntu 18.04 bionic<br>
Kernel: x86_64 Linux 4.18.8-041808-generic<br>
Uptime: 26m<br>
Packages: 3341<br>
Shell: bash 4.4.19<br>
Resolution: 3840x1080<br>
DE: Budgie<br>
WM: BudgieWM<br>
WM Theme: Adwaita<br>
GTK Theme: Adwaita [GTK2/3]<br>
Icon Theme: Adwaita<br>
Font: Ubuntu 11<br>
CPU: Intel Core i7-8750H @ 12x 4.1GHz [41.0°C]<br>
GPU: GeForce GTX 1070 with Max-Q Design<br>
RAM: 3785MiB / 32021MiB</p>
<p dir="auto">currently installed opencv 4.0.0 alpha i want to upgrade to 4.0.1<br>
dev tools eclipse</p>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">befor proceding to</p>
<p dir="auto">make</p>
<p dir="auto">i did the folowing:</p>
<details>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tc@tcx:/datadisk/tcx_dev/opencv/opencv/build$ sudo cmake -D CMAKE_BUILD_TYPE=RELEASE \
> -D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-master \
> -D INSTALL_C_EXAMPLES=ON \
> -D INSTALL_PYTHON_EXAMPLES=ON \
> -D WITH_TBB=ON \
> -D WITH_V4L=ON \
> -D OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.5/site-packages \
> -D WITH_QT=ON \
> -D WITH_OPENGL=ON \
> -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
> -D BUILD_EXAMPLES=ON ..
-- Looking for ccache - not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.2.3")
-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR)
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/icv
-- found Intel IPP Integration Wrappers sources: 2019.0.0
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/iw
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR)
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Found apache ant: /usr/bin/ant (1.10.3)
-- Could NOT find Flake8 (missing: FLAKE8_EXECUTABLE)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- OpenCV Python: during development append to PYTHONPATH: /datadisk/tcx_dev/opencv/opencv/build/python_loader
-- Caffe: NO
-- Protobuf: NO
-- Glog: NO
-- freetype2: YES
-- harfbuzz: YES
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Module opencv_ovis disabled because OGRE3D was not found
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
-- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- freetype2: YES
-- harfbuzz: YES
-- Checking for modules 'tesseract;lept'
-- No package 'tesseract' found
-- No package 'lept' found
-- Tesseract: NO
-- Pylint: registered 168 targets. Build 'check_pylint' target to run checks ("cmake --build . --target check_pylint" or "make check_pylint")
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
directory
Call Stack (most recent call first):
CMakeLists.txt:1056 (include)
--
-- General configuration for OpenCV 4.0.1-dev =====================================
-- Version control: 4.0.1-248-g8bde6aea4
--
-- Extra modules:
-- Location (extra): /datadisk/tcx_dev/opencv/opencv_contrib/modules
-- Version control (extra): 4.0.1-35-gca7cb77a
--
-- Platform:
-- Timestamp: 2019-02-25T09:46:43Z
-- Host: Linux 4.18.8-041808-generic x86_64
-- CMake: 3.10.2
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: RELEASE
--
-- CPU/HW features:
-- Baseline: SSE SSE2 SSE3
-- requested: SSE3
-- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
-- SSE4_1 (7 files): + SSSE3 SSE4_1
-- SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2
-- FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
-- AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
-- AVX2 (18 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
-- AVX512_SKX (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ Compiler: /usr/bin/c++ (ver 7.3.0)
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /usr/bin/cc
-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO
-- Precompiled headers: YES
-- Extra dependencies: dl m pthread rt /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: aruco bgsegm bioinspired calib3d ccalib core cvv datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc java java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 python_bindings_generator quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev js matlab ovis python2 sfm viz
-- Applications: tests perf_tests examples apps
-- Documentation: NO
-- Non-free algorithms: NO
--
-- GUI:
-- QT: YES (ver 5.9.6)
-- QT OpenGL support: YES (Qt5::OpenGL 5.9.6)
-- GTK+: NO
-- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so)
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)
-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80)
-- WEBP: build (ver encoder: 0x020e)
-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.34)
-- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.9)
-- JPEG 2000: build (ver 1.900.1)
-- OpenEXR: build (ver 1.7.1)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES
-- PFM: YES
--
-- Video I/O:
-- DC1394: NO
-- FFMPEG: YES
-- avcodec: YES (57.107.100)
-- avformat: YES (57.83.100)
-- avutil: YES (55.78.100)
-- swscale: YES (4.8.100)
-- avresample: NO
-- GStreamer: NO
-- v4l/v4l2: YES (linux/videodev2.h)
--
-- Parallel framework: pthreads
--
-- Trace: YES (with Intel ITT)
--
-- Other third-party libraries:
-- Intel IPP: 2019.0.0 Gold [2019.0.0]
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/icv
-- Intel IPP IW: sources (2019.0.0)
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/iw
-- Lapack: NO
-- Eigen: NO
-- Custom HAL: NO
-- Protobuf: build (3.5.1)
--
-- OpenCL: YES (no extra features)
-- Include path: /datadisk/tcx_dev/opencv/opencv/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load
--
-- Python 3:
-- Interpreter: /datadisk/tcx_dev/anaconda/[/datadisk/tcx_dev/anaconda/install_dir]/bin/python3 (ver 3.6.6)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (ver 3.6.6)
-- numpy: /datadisk/tcx_dev/anaconda/[/datadisk/tcx_dev/anaconda/install_dir]/lib/python3.6/site-packages/numpy/core/include (ver 1.15.4)
-- install path: /datadisk/tcx_dev/opencv/OpenCV--py3/lib/python3.5/site-packages
--
-- Python (for build): /usr/bin/python2.7
-- Pylint: /datadisk/tcx_dev/anaconda/[/datadisk/tcx_dev/anaconda/install_dir]/bin/pylint (ver: 3.6.6, checks: 168)
--
-- Java:
-- ant: /usr/bin/ant (ver 1.10.3)
-- JNI: /usr/lib/jvm/java-8-openjdk-amd64/include /usr/lib/jvm/java-8-openjdk-amd64/include/linux /usr/lib/jvm/java-8-openjdk-amd64/include
-- Java wrappers: YES
-- Java tests: YES
--
-- Install to: /datadisk/tcx_dev/opencv/installation/OpenCV-master
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /datadisk/tcx_dev/opencv/opencv/build
when i procede with make i get the folowing error:
tc@tcx:/datadisk/tcx_dev/opencv/opencv/build$ make -j10
[ 41%] Built target ittnotify
[ 41%] Built target quirc
[ 41%] Built target opencv_core_pch_dephelp
[ 41%] Built target opencv_test_core_pch_dephelp
[ 41%] Built target ippiw
[ 41%] Built target ade
[ 41%] Built target libjasper
[ 41%] Built target libwebp
[ 41%] Built target IlmImf
[ 41%] Built target opencv_imgcodecs_pch_dephelp
[ 41%] Built target opencv_videoio_pch_dephelp
[ 41%] Built target opencv_imgproc_pch_dephelp
[ 41%] Built target opencv_highgui_pch_dephelp
[ 41%] Built target opencv_ts_pch_dephelp
[ 41%] Built target pch_Generate_opencv_test_core
[ 41%] Built target opencv_perf_core_pch_dephelp
[ 41%] Built target libprotobuf
[ 41%] Built target opencv_flann_pch_dephelp
[ 41%] Built target opencv_test_flann_pch_dephelp
[ 41%] Built target opencv_hdf_pch_dephelp
[ 41%] Built target opencv_test_hdf_pch_dephelp
[ 41%] Built target opencv_test_imgproc_pch_dephelp
[ 41%] Built target opencv_perf_imgproc_pch_dephelp
[ 41%] Built target opencv_test_ml_pch_dephelp
[ 41%] Built target opencv_ml_pch_dephelp
[ 41%] Built target opencv_test_phase_unwrapping_pch_dephelp
[ 41%] Built target opencv_phase_unwrapping_pch_dephelp
[ 41%] Built target opencv_test_photo_pch_dephelp
[ 41%] Built target opencv_quality_pch_dephelp
[ 41%] Built target opencv_perf_photo_pch_dephelp
[ 41%] Built target opencv_photo_pch_dephelp
[ 41%] Built target opencv_test_quality_pch_dephelp
[ 41%] Built target opencv_plot_pch_dephelp
[ 41%] Built target opencv_test_reg_pch_dephelp
[ 41%] Built target opencv_reg_pch_dephelp
[ 41%] Built target opencv_perf_reg_pch_dephelp
[ 41%] Built target opencv_surface_matching_pch_dephelp
[ 41%] Built target opencv_perf_xphoto_pch_dephelp
[ 41%] Built target opencv_test_dnn_pch_dephelp
[ 41%] Built target opencv_dnn_pch_dephelp
[ 41%] Built target opencv_test_xphoto_pch_dephelp
[ 41%] Built target opencv_perf_dnn_pch_dephelp
[ 41%] Built target opencv_freetype_pch_dephelp
[ 41%] Built target opencv_gapi_pch_dephelp
[ 41%] Built target opencv_fuzzy_pch_dephelp
[ 41%] Built target opencv_test_fuzzy_pch_dephelp
[ 41%] Built target opencv_test_gapi_pch_dephelp
[ 41%] Built target opencv_perf_gapi_pch_dephelp
[ 41%] Built target opencv_img_hash_pch_dephelp
[ 41%] Built target opencv_test_img_hash_pch_dephelp
[ 41%] Built target opencv_test_imgcodecs_pch_dephelp
[ 41%] Built target opencv_hfs_pch_dephelp
[ 41%] Built target opencv_perf_imgcodecs_pch_dephelp
[ 41%] Built target opencv_perf_videoio_pch_dephelp
[ 41%] Built target opencv_test_videoio_pch_dephelp
[ 41%] Built target opencv_test_highgui_pch_dephelp
[ 41%] Built target opencv_bioinspired_pch_dephelp
[ 41%] Built target opencv_perf_bioinspired_pch_dephelp
[ 41%] Built target opencv_test_features2d_pch_dephelp
[ 41%] Built target opencv_dnn_objdetect_pch_dephelp
[ 41%] Built target opencv_test_bioinspired_pch_dephelp
[ 41%] Built target opencv_features2d_pch_dephelp
[ 41%] Built target opencv_perf_features2d_pch_dephelp
[ 41%] Built target opencv_test_line_descriptor_pch_dephelp
[ 41%] Built target opencv_perf_line_descriptor_pch_dephelp
[ 41%] Built target opencv_line_descriptor_pch_dephelp
[ 41%] Built target opencv_saliency_pch_dephelp
[ 41%] Built target opencv_test_saliency_pch_dephelp
[ 41%] Built target opencv_test_text_pch_dephelp
[ 41%] Built target opencv_text_pch_dephelp
[ 41%] Built target opencv_calib3d_pch_dephelp
[ 41%] Built target opencv_perf_calib3d_pch_dephelp
[ 41%] Built target opencv_test_calib3d_pch_dephelp
[ 41%] Automatic MOC for target opencv_test_cvv_pch_dephelp
[ 41%] Built target opencv_ccalib_pch_dephelp
[ 41%] Built target opencv_test_objdetect_pch_dephelp
[ 41%] Built target opencv_objdetect_pch_dephelp
[ 41%] Built target opencv_test_rgbd_pch_dephelp
[ 41%] Built target opencv_perf_objdetect_pch_dephelp
[ 41%] Built target opencv_rgbd_pch_dephelp
[ 41%] Built target opencv_test_shape_pch_dephelp
[ 41%] Built target opencv_shape_pch_dephelp
[ 41%] Built target opencv_structured_light_pch_dephelp
[ 41%] Built target opencv_test_cvv_pch_dephelp_autogen
[ 41%] Built target opencv_test_structured_light_pch_dephelp
[ 41%] Built target opencv_test_video_pch_dephelp
[ 41%] Built target opencv_video_pch_dephelp
[ 41%] Built target opencv_perf_video_pch_dephelp
[ 41%] Built target opencv_test_videostab_pch_dephelp
[ 41%] Built target opencv_videostab_pch_dephelp
[ 41%] Built target opencv_xfeatures2d_pch_dephelp
[ 41%] Built target opencv_test_xfeatures2d_pch_dephelp
[ 41%] Built target opencv_ximgproc_pch_dephelp
[ 41%] Built target opencv_perf_xfeatures2d_pch_dephelp
[ 41%] Built target opencv_test_ximgproc_pch_dephelp
[ 41%] Built target opencv_perf_ximgproc_pch_dephelp
[ 41%] Built target opencv_xobjdetect_pch_dephelp
[ 41%] Built target opencv_test_bgsegm_pch_dephelp
[ 41%] Built target opencv_aruco_pch_dephelp
[ 41%] Built target opencv_test_aruco_pch_dephelp
[ 41%] Built target opencv_dpm_pch_dephelp
[ 41%] Built target opencv_test_face_pch_dephelp
[ 41%] Built target opencv_bgsegm_pch_dephelp
[ 41%] Built target opencv_face_pch_dephelp
[ 41%] Built target opencv_test_optflow_pch_dephelp
[ 41%] Built target opencv_optflow_pch_dephelp
[ 41%] Built target opencv_perf_optflow_pch_dephelp
[ 41%] Built target opencv_test_stitching_pch_dephelp
[ 41%] Built target opencv_perf_stitching_pch_dephelp
[ 41%] Built target opencv_stitching_pch_dephelp
[ 41%] Built target opencv_test_superres_pch_dephelp
[ 41%] Built target opencv_perf_superres_pch_dephelp
[ 41%] Built target opencv_tracking_pch_dephelp
[ 41%] Built target opencv_superres_pch_dephelp
[ 41%] Built target opencv_perf_tracking_pch_dephelp
[ 41%] Built target opencv_test_tracking_pch_dephelp
[ 41%] Built target opencv_stereo_pch_dephelp
[ 41%] Generate files for Java bindings
[ 41%] Built target pch_Generate_opencv_ts
[ 41%] Built target opencv_test_stereo_pch_dephelp
[ 41%] Built target opencv_perf_stereo_pch_dephelp
[ 41%] Built target pch_Generate_opencv_videoio
[ 41%] Built target pch_Generate_opencv_core
[ 41%] Built target gen_opencv_python_source
[ 41%] Built target pch_Generate_opencv_imgproc
[ 41%] Built target pch_Generate_opencv_imgcodecs
[ 41%] Built target pch_Generate_opencv_highgui
[ 41%] Built target pch_Generate_opencv_test_flann
[ 41%] Built target pch_Generate_opencv_flann
[ 41%] Built target pch_Generate_opencv_perf_core
JAVA: Processing OpenCV modules: 25
[ 41%] Built target pch_Generate_opencv_perf_imgproc
[ 41%] Built target pch_Generate_opencv_hdf
[ 41%] Built target pch_Generate_opencv_test_hdf
[ 41%] Built target pch_Generate_opencv_test_imgproc
[ 41%] Built target pch_Generate_opencv_ml
[ 41%] Built target pch_Generate_opencv_test_ml
[ 41%] Built target pch_Generate_opencv_test_phase_unwrapping
[ 41%] Built target pch_Generate_opencv_test_photo
[ 41%] Built target pch_Generate_opencv_phase_unwrapping
[ 41%] Built target pch_Generate_opencv_quality
[ 41%] Built target pch_Generate_opencv_plot
[ 41%] Built target pch_Generate_opencv_photo
[ 41%] Built target pch_Generate_opencv_perf_photo
[ 41%] Built target pch_Generate_opencv_test_reg
[ 41%] Built target pch_Generate_opencv_test_quality
[ 41%] Built target pch_Generate_opencv_perf_reg
[ 41%] Built target pch_Generate_opencv_perf_xphoto
[ 41%] Built target pch_Generate_opencv_test_dnn
[ 41%] Built target pch_Generate_opencv_reg
[ 41%] Built target pch_Generate_opencv_dnn
[ 41%] Built target pch_Generate_opencv_test_xphoto
[ 41%] Built target pch_Generate_opencv_surface_matching
[ 41%] Built target pch_Generate_opencv_perf_dnn
[ 41%] Built target pch_Generate_opencv_freetype
[ 41%] Built target pch_Generate_opencv_fuzzy
[ 41%] Built target pch_Generate_opencv_test_gapi
[ 41%] Built target pch_Generate_opencv_gapi
[ 41%] Built target pch_Generate_opencv_test_img_hash
[ 41%] Built target pch_Generate_opencv_test_fuzzy
[ 41%] Built target pch_Generate_opencv_perf_gapi
[ 41%] Built target pch_Generate_opencv_hfs
[ 41%] Built target pch_Generate_opencv_img_hash
[ 41%] Built target pch_Generate_opencv_test_imgcodecs
[ 41%] Built target pch_Generate_opencv_perf_imgcodecs
duplicated: CLASS cv::.Algorithm :
[ 41%] Built target pch_Generate_opencv_bioinspired
[ 41%] Built target pch_Generate_opencv_test_videoio
[ 41%] Built target pch_Generate_opencv_perf_videoio
[ 41%] Built target pch_Generate_opencv_test_highgui
[ 41%] Built target pch_Generate_opencv_test_bioinspired
[ 41%] Built target pch_Generate_opencv_perf_bioinspired
[ 41%] Built target pch_Generate_opencv_dnn_objdetect
[ 41%] Built target pch_Generate_opencv_features2d
[ 41%] Built target pch_Generate_opencv_perf_features2d
[ 41%] Built target pch_Generate_opencv_perf_line_descriptor
[ 41%] Built target pch_Generate_opencv_test_features2d
[ 41%] Built target pch_Generate_opencv_test_line_descriptor
[ 41%] Built target pch_Generate_opencv_line_descriptor
[ 41%] Built target pch_Generate_opencv_saliency
[ 41%] Built target pch_Generate_opencv_test_saliency
[ 41%] Built target pch_Generate_opencv_text
[ 41%] Built target pch_Generate_opencv_test_text
[ 41%] Built target pch_Generate_opencv_calib3d
[ 41%] Built target pch_Generate_opencv_perf_calib3d
[ 41%] Built target pch_Generate_opencv_test_calib3d
[ 41%] Built target opencv_test_cvv_pch_dephelp
[ 41%] Built target pch_Generate_opencv_ccalib
[ 41%] Built target pch_Generate_opencv_objdetect
[ 41%] Built target pch_Generate_opencv_test_objdetect
[ 41%] Built target pch_Generate_opencv_perf_objdetect
[ 41%] Built target pch_Generate_opencv_test_rgbd
[ 41%] Built target pch_Generate_opencv_rgbd
[ 41%] Built target pch_Generate_opencv_test_shape
[ 41%] Built target pch_Generate_opencv_shape
[ 41%] Built target pch_Generate_opencv_structured_light
[ 41%] Built target pch_Generate_opencv_test_video
[ 41%] Built target pch_Generate_opencv_test_structured_light
[ 41%] Built target pch_Generate_opencv_video
[ 41%] Built target pch_Generate_opencv_perf_video
[ 41%] Built target pch_Generate_opencv_videostab
[ 41%] Built target pch_Generate_opencv_test_videostab
[ 41%] Built target pch_Generate_opencv_test_xfeatures2d
[ 41%] Built target pch_Generate_opencv_test_ximgproc
[ 41%] Built target pch_Generate_opencv_perf_xfeatures2d
[ 41%] Built target pch_Generate_opencv_xfeatures2d
[ 41%] Built target pch_Generate_opencv_ximgproc
[ 41%] Built target pch_Generate_opencv_perf_ximgproc
[ 41%] Built target pch_Generate_opencv_xobjdetect
[ 41%] Built target pch_Generate_opencv_aruco
[ 41%] Built target pch_Generate_opencv_test_aruco
[ 41%] Built target pch_Generate_opencv_bgsegm
[ 41%] Built target pch_Generate_opencv_test_bgsegm
[ 41%] Built target pch_Generate_opencv_face
[ 41%] Built target pch_Generate_opencv_test_face
[ 41%] Built target pch_Generate_opencv_dpm
[ 41%] Built target pch_Generate_opencv_optflow
[ 41%] Built target pch_Generate_opencv_test_optflow
[ 41%] Built target pch_Generate_opencv_perf_optflow
[ 41%] Built target pch_Generate_opencv_test_stitching
[ 41%] Built target pch_Generate_opencv_stitching
[ 41%] Built target pch_Generate_opencv_perf_stitching
[ 41%] Built target pch_Generate_opencv_perf_superres
[ 41%] Built target pch_Generate_opencv_superres
[ 41%] Built target pch_Generate_opencv_test_tracking
[ 41%] Built target pch_Generate_opencv_perf_tracking
[ 41%] Built target pch_Generate_opencv_test_superres
[ 41%] Built target pch_Generate_opencv_tracking
[ 41%] Built target pch_Generate_opencv_stereo
[ 41%] Built target pch_Generate_opencv_test_stereo
[ 41%] Built target pch_Generate_opencv_perf_stereo
[ 41%] Built target pch_Generate_opencv_test_cvv
SKIP:void cv::Algorithm::read(FileNode fn) due to ARG type FileNode/I
SKIP:void cv::Algorithm::write(Ptr_FileStorage fs, String name = String()) due to ARG type Ptr_FileStorage/I
Scanning dependencies of target opencv_core
[ 41%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o
[ 41%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/datafile.cpp.o
SKIP:void cv::dnn::Net::forward(vector_vector_Mat& outputBlobs, vector_String outBlobNames) due to ARG type vector_vector_Mat/O
SKIP:void cv::dnn::Net::getLayersShapes(MatShape netInputShape, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes) due to ARG type vector_vector_MatShape/O
SKIP:void cv::dnn::Net::getLayersShapes(vector_MatShape netInputShapes, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes) due to ARG type vector_vector_MatShape/O
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getBackends() due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getCameraBackends() due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getStreamBackends() due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getWriterBackends() due to RET type vector_VideoCaptureAPIs
SKIP:cv::BOWImgDescriptorExtractor::BOWImgDescriptorExtractor(Ptr_DescriptorExtractor dextractor, Ptr_DescriptorMatcher dmatcher) due to ARG type Ptr_DescriptorExtractor/I
SKIP:void cv::Feature2D::read(FileNode arg1) due to ARG type FileNode/I
SKIP:void cv::Feature2D::write(Ptr_FileStorage fs, String name = String()) due to ARG type Ptr_FileStorage/I
SKIP:void cv::DescriptorMatcher::read(FileNode arg1) due to ARG type FileNode/I
SKIP:void cv::DescriptorMatcher::write(Ptr_FileStorage fs, String name = String()) due to ARG type Ptr_FileStorage/I
SKIP:uchar Params::blobColor due to RET type uchar
SKIP:void Params::blobColor due to ARG type uchar/I
duplicated: CLASS cv.text::OCRBeamSearchDecoder.ClassifierCallback :
SKIP:Ptr_ERFilter cv::text::createERFilterNM1(Ptr_ERFilter_Callback cb, int thresholdDelta = 1, float minArea = (float)0.00025, float maxArea = (float)0.13, float minProbability = (float)0.4, bool nonMaxSuppression = true, float minProbabilityDiff = (float)0.1) due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter cv::text::createERFilterNM2(Ptr_ERFilter_Callback cb, float minProbability = (float)0.3) due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM1(String filename) due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM2(String filename) due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_OCRBeamSearchDecoder_ClassifierCallback cv::text::loadOCRBeamSearchClassifierCNN(String filename) due to RET type Ptr_OCRBeamSearchDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifier(String filename, int classifier) due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierCNN(String filename) due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierNM(String filename) due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:static Ptr_OCRBeamSearchDecoder cv::text::OCRBeamSearchDecoder::create(Ptr_OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI, int beam_size = 500) due to ARG type Ptr_OCRBeamSearchDecoder_ClassifierCallback/I
SKIP:static Ptr_OCRHMMDecoder cv::text::OCRHMMDecoder::create(Ptr_OCRHMMDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI) due to ARG type Ptr_OCRHMMDecoder_ClassifierCallback/I
duplicated: CONST CvLevMarq_DONE=0
duplicated: CONST CvLevMarq_STARTED=1
duplicated: CONST CvLevMarq_CALC_J=2
duplicated: CONST CvLevMarq_CHECK_ERR=3
SKIP:bool cv::findCirclesGrid(Mat image, Size patternSize, Mat& centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters parameters) due to ARG type Ptr_FeatureDetector/I
SKIP:string cv::QRCodeDetector::decode(Mat img, Mat points, Mat& straight_qrcode = Mat()) due to RET type string
SKIP:string cv::QRCodeDetector::detectAndDecode(Mat img, Mat& points = Mat(), Mat& straight_qrcode = Mat()) due to RET type string
SKIP:bool cv::CascadeClassifier::read(FileNode node) due to ARG type FileNode/I
duplicated: CLASS cv.structured_light::SinusoidalPattern.Params :
SKIP:bool cv::structured_light::StructuredLightPattern::decode(vector_vector_Mat patternImages, Mat& disparityMap, vector_Mat blackImages = vector_Mat(), vector_Mat whiteImages = vector_Mat(), int flags = DECODE_3D_UNDERWORLD) due to ARG type vector_vector_Mat/I
SKIP:Vec4i cv::ximgproc::HoughPoint2Line(Point houghPoint, Mat srcImgInfo, int angleRange = ARO_315_135, int makeSkew = HDO_DESKEW, int rules = RO_IGNORE_BORDERS) due to RET type Vec4i
[ 41%] Linking CXX shared library ../../lib/libopencv_core.so
SKIP:vector_vector_int CharucoBoard::nearestMarkerIdx due to RET type vector_vector_int
SKIP:vector_vector_int CharucoBoard::nearestMarkerCorners due to RET type vector_vector_int
SKIP:vector_pair_int_and_double cv::face::StandardCollector::getResults(bool sorted = false) due to RET type vector_pair_int_and_double
Generated files: 357 (updated 357)
[ 41%] Built target gen_opencv_java_source
[ 41%] Copy Java(JAR) source files
[ 41%] Copying res/drawable/icon.png
[ 41%] Copying res/drawable/chessboard.jpg
[ 41%] Copying res/drawable/lena.png
[ 41%] Copying res/values/strings.xml
[ 41%] Copying res/raw/lbpcascade_frontalface.xml
[ 41%] Copying res/layout/main.xml
[ 41%] Copying src/org/opencv/test/utils/ConvertersTest.java
COPYFILES: ... 1 entries (JAVA_SRC_COPY)
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/drawable/lena.png" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/drawable/lena.png".
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/values/strings.xml" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/values/strings.xml".
COPYFILES: ... directory '.../gen/java' with 239 files
COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/aruco/Aruco.java' ...
CMake Error at /datadisk/tcx_dev/opencv/opencv/cmake/copy_files.cmake:42 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/datadisk/tcx_dev/opencv/opencv/cmake/copy_files.cmake:88 (copy_file_)
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:87: recipe for target 'java_test/res/drawable/lena.png' failed
make[2]: *** [java_test/res/drawable/lena.png] Error 1
make[2]: *** Waiting for unfinished jobs....
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:99: recipe for target 'java_test/res/values/strings.xml' failed
make[2]: *** [java_test/res/values/strings.xml] Error 1
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/drawable/icon.png" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/drawable/icon.png".
modules/java/jar/CMakeFiles/opencv_java_jar_source_copy.dir/build.make:61: recipe for target 'CMakeFiles/dephelper/opencv_java_jar_source_copy' failed
make[2]: *** [CMakeFiles/dephelper/opencv_java_jar_source_copy] Error 1
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:83: recipe for target 'java_test/res/drawable/icon.png' failed
make[2]: *** [java_test/res/drawable/icon.png] Error 1
CMakeFiles/Makefile2:25471: recipe for target 'modules/java/jar/CMakeFiles/opencv_java_jar_source_copy.dir/all' failed
make[1]: *** [modules/java/jar/CMakeFiles/opencv_java_jar_source_copy.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/drawable/chessboard.jpg" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/drawable/chessboard.jpg".
Error copying file (if different) from "Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/raw/lbpcascade_frontalface.xml/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/layout/main.xml" to "" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/raw/lbpcascade_frontalface.xml/datadisk/tcx_dev/opencv/opencv/build/java_test/res/layout/main.xml".
".
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:79: recipe for target 'java_test/res/drawable/chessboard.jpg' failed
make[2]: *** [java_test/res/drawable/chessboard.jpg] Error 1
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:95: recipe for target 'java_test/res/raw/lbpcascade_frontalface.xml' failed
make[2]: *** [java_test/res/raw/lbpcascade_frontalface.xml] Error 1
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:91: recipe for target 'java_test/res/layout/main.xml' failed
make[2]: *** [java_test/res/layout/main.xml] Error 1
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/src/org/opencv/test/utils/ConvertersTest.java" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/src/org/opencv/test/utils/ConvertersTest.java".
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:103: recipe for target 'java_test/src/org/opencv/test/utils/ConvertersTest.java' failed
make[2]: *** [java_test/src/org/opencv/test/utils/ConvertersTest.java] Error 1
CMakeFiles/Makefile2:25594: recipe for target 'modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/all' failed
make[1]: *** [modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/all] Error 2
[ 41%] Built target opencv_core
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2"><pre class="notranslate"><code class="notranslate">tc@tcx:/datadisk/tcx_dev/opencv/opencv/build$ sudo cmake -D CMAKE_BUILD_TYPE=RELEASE \
> -D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-master \
> -D INSTALL_C_EXAMPLES=ON \
> -D INSTALL_PYTHON_EXAMPLES=ON \
> -D WITH_TBB=ON \
> -D WITH_V4L=ON \
> -D OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.5/site-packages \
> -D WITH_QT=ON \
> -D WITH_OPENGL=ON \
> -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
> -D BUILD_EXAMPLES=ON ..
-- Looking for ccache - not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.2.3")
-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR)
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/icv
-- found Intel IPP Integration Wrappers sources: 2019.0.0
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/iw
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR)
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Found apache ant: /usr/bin/ant (1.10.3)
-- Could NOT find Flake8 (missing: FLAKE8_EXECUTABLE)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- OpenCV Python: during development append to PYTHONPATH: /datadisk/tcx_dev/opencv/opencv/build/python_loader
-- Caffe: NO
-- Protobuf: NO
-- Glog: NO
-- freetype2: YES
-- harfbuzz: YES
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Module opencv_ovis disabled because OGRE3D was not found
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
-- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- freetype2: YES
-- harfbuzz: YES
-- Checking for modules 'tesseract;lept'
-- No package 'tesseract' found
-- No package 'lept' found
-- Tesseract: NO
-- Pylint: registered 168 targets. Build 'check_pylint' target to run checks ("cmake --build . --target check_pylint" or "make check_pylint")
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
directory
Call Stack (most recent call first):
CMakeLists.txt:1056 (include)
--
-- General configuration for OpenCV 4.0.1-dev =====================================
-- Version control: 4.0.1-248-g8bde6aea4
--
-- Extra modules:
-- Location (extra): /datadisk/tcx_dev/opencv/opencv_contrib/modules
-- Version control (extra): 4.0.1-35-gca7cb77a
--
-- Platform:
-- Timestamp: 2019-02-25T09:46:43Z
-- Host: Linux 4.18.8-041808-generic x86_64
-- CMake: 3.10.2
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: RELEASE
--
-- CPU/HW features:
-- Baseline: SSE SSE2 SSE3
-- requested: SSE3
-- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
-- SSE4_1 (7 files): + SSSE3 SSE4_1
-- SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2
-- FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
-- AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
-- AVX2 (18 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
-- AVX512_SKX (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ Compiler: /usr/bin/c++ (ver 7.3.0)
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /usr/bin/cc
-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- ccache: NO
-- Precompiled headers: YES
-- Extra dependencies: dl m pthread rt /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: aruco bgsegm bioinspired calib3d ccalib core cvv datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc java java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 python_bindings_generator quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev js matlab ovis python2 sfm viz
-- Applications: tests perf_tests examples apps
-- Documentation: NO
-- Non-free algorithms: NO
--
-- GUI:
-- QT: YES (ver 5.9.6)
-- QT OpenGL support: YES (Qt5::OpenGL 5.9.6)
-- GTK+: NO
-- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so)
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)
-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80)
-- WEBP: build (ver encoder: 0x020e)
-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.34)
-- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.9)
-- JPEG 2000: build (ver 1.900.1)
-- OpenEXR: build (ver 1.7.1)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES
-- PFM: YES
--
-- Video I/O:
-- DC1394: NO
-- FFMPEG: YES
-- avcodec: YES (57.107.100)
-- avformat: YES (57.83.100)
-- avutil: YES (55.78.100)
-- swscale: YES (4.8.100)
-- avresample: NO
-- GStreamer: NO
-- v4l/v4l2: YES (linux/videodev2.h)
--
-- Parallel framework: pthreads
--
-- Trace: YES (with Intel ITT)
--
-- Other third-party libraries:
-- Intel IPP: 2019.0.0 Gold [2019.0.0]
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/icv
-- Intel IPP IW: sources (2019.0.0)
-- at: /datadisk/tcx_dev/opencv/opencv/build/3rdparty/ippicv/ippicv_lnx/iw
-- Lapack: NO
-- Eigen: NO
-- Custom HAL: NO
-- Protobuf: build (3.5.1)
--
-- OpenCL: YES (no extra features)
-- Include path: /datadisk/tcx_dev/opencv/opencv/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load
--
-- Python 3:
-- Interpreter: /datadisk/tcx_dev/anaconda/[/datadisk/tcx_dev/anaconda/install_dir]/bin/python3 (ver 3.6.6)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.6m.so (ver 3.6.6)
-- numpy: /datadisk/tcx_dev/anaconda/[/datadisk/tcx_dev/anaconda/install_dir]/lib/python3.6/site-packages/numpy/core/include (ver 1.15.4)
-- install path: /datadisk/tcx_dev/opencv/OpenCV--py3/lib/python3.5/site-packages
--
-- Python (for build): /usr/bin/python2.7
-- Pylint: /datadisk/tcx_dev/anaconda/[/datadisk/tcx_dev/anaconda/install_dir]/bin/pylint (ver: 3.6.6, checks: 168)
--
-- Java:
-- ant: /usr/bin/ant (ver 1.10.3)
-- JNI: /usr/lib/jvm/java-8-openjdk-amd64/include /usr/lib/jvm/java-8-openjdk-amd64/include/linux /usr/lib/jvm/java-8-openjdk-amd64/include
-- Java wrappers: YES
-- Java tests: YES
--
-- Install to: /datadisk/tcx_dev/opencv/installation/OpenCV-master
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /datadisk/tcx_dev/opencv/opencv/build
when i procede with make i get the folowing error:
tc@tcx:/datadisk/tcx_dev/opencv/opencv/build$ make -j10
[ 41%] Built target ittnotify
[ 41%] Built target quirc
[ 41%] Built target opencv_core_pch_dephelp
[ 41%] Built target opencv_test_core_pch_dephelp
[ 41%] Built target ippiw
[ 41%] Built target ade
[ 41%] Built target libjasper
[ 41%] Built target libwebp
[ 41%] Built target IlmImf
[ 41%] Built target opencv_imgcodecs_pch_dephelp
[ 41%] Built target opencv_videoio_pch_dephelp
[ 41%] Built target opencv_imgproc_pch_dephelp
[ 41%] Built target opencv_highgui_pch_dephelp
[ 41%] Built target opencv_ts_pch_dephelp
[ 41%] Built target pch_Generate_opencv_test_core
[ 41%] Built target opencv_perf_core_pch_dephelp
[ 41%] Built target libprotobuf
[ 41%] Built target opencv_flann_pch_dephelp
[ 41%] Built target opencv_test_flann_pch_dephelp
[ 41%] Built target opencv_hdf_pch_dephelp
[ 41%] Built target opencv_test_hdf_pch_dephelp
[ 41%] Built target opencv_test_imgproc_pch_dephelp
[ 41%] Built target opencv_perf_imgproc_pch_dephelp
[ 41%] Built target opencv_test_ml_pch_dephelp
[ 41%] Built target opencv_ml_pch_dephelp
[ 41%] Built target opencv_test_phase_unwrapping_pch_dephelp
[ 41%] Built target opencv_phase_unwrapping_pch_dephelp
[ 41%] Built target opencv_test_photo_pch_dephelp
[ 41%] Built target opencv_quality_pch_dephelp
[ 41%] Built target opencv_perf_photo_pch_dephelp
[ 41%] Built target opencv_photo_pch_dephelp
[ 41%] Built target opencv_test_quality_pch_dephelp
[ 41%] Built target opencv_plot_pch_dephelp
[ 41%] Built target opencv_test_reg_pch_dephelp
[ 41%] Built target opencv_reg_pch_dephelp
[ 41%] Built target opencv_perf_reg_pch_dephelp
[ 41%] Built target opencv_surface_matching_pch_dephelp
[ 41%] Built target opencv_perf_xphoto_pch_dephelp
[ 41%] Built target opencv_test_dnn_pch_dephelp
[ 41%] Built target opencv_dnn_pch_dephelp
[ 41%] Built target opencv_test_xphoto_pch_dephelp
[ 41%] Built target opencv_perf_dnn_pch_dephelp
[ 41%] Built target opencv_freetype_pch_dephelp
[ 41%] Built target opencv_gapi_pch_dephelp
[ 41%] Built target opencv_fuzzy_pch_dephelp
[ 41%] Built target opencv_test_fuzzy_pch_dephelp
[ 41%] Built target opencv_test_gapi_pch_dephelp
[ 41%] Built target opencv_perf_gapi_pch_dephelp
[ 41%] Built target opencv_img_hash_pch_dephelp
[ 41%] Built target opencv_test_img_hash_pch_dephelp
[ 41%] Built target opencv_test_imgcodecs_pch_dephelp
[ 41%] Built target opencv_hfs_pch_dephelp
[ 41%] Built target opencv_perf_imgcodecs_pch_dephelp
[ 41%] Built target opencv_perf_videoio_pch_dephelp
[ 41%] Built target opencv_test_videoio_pch_dephelp
[ 41%] Built target opencv_test_highgui_pch_dephelp
[ 41%] Built target opencv_bioinspired_pch_dephelp
[ 41%] Built target opencv_perf_bioinspired_pch_dephelp
[ 41%] Built target opencv_test_features2d_pch_dephelp
[ 41%] Built target opencv_dnn_objdetect_pch_dephelp
[ 41%] Built target opencv_test_bioinspired_pch_dephelp
[ 41%] Built target opencv_features2d_pch_dephelp
[ 41%] Built target opencv_perf_features2d_pch_dephelp
[ 41%] Built target opencv_test_line_descriptor_pch_dephelp
[ 41%] Built target opencv_perf_line_descriptor_pch_dephelp
[ 41%] Built target opencv_line_descriptor_pch_dephelp
[ 41%] Built target opencv_saliency_pch_dephelp
[ 41%] Built target opencv_test_saliency_pch_dephelp
[ 41%] Built target opencv_test_text_pch_dephelp
[ 41%] Built target opencv_text_pch_dephelp
[ 41%] Built target opencv_calib3d_pch_dephelp
[ 41%] Built target opencv_perf_calib3d_pch_dephelp
[ 41%] Built target opencv_test_calib3d_pch_dephelp
[ 41%] Automatic MOC for target opencv_test_cvv_pch_dephelp
[ 41%] Built target opencv_ccalib_pch_dephelp
[ 41%] Built target opencv_test_objdetect_pch_dephelp
[ 41%] Built target opencv_objdetect_pch_dephelp
[ 41%] Built target opencv_test_rgbd_pch_dephelp
[ 41%] Built target opencv_perf_objdetect_pch_dephelp
[ 41%] Built target opencv_rgbd_pch_dephelp
[ 41%] Built target opencv_test_shape_pch_dephelp
[ 41%] Built target opencv_shape_pch_dephelp
[ 41%] Built target opencv_structured_light_pch_dephelp
[ 41%] Built target opencv_test_cvv_pch_dephelp_autogen
[ 41%] Built target opencv_test_structured_light_pch_dephelp
[ 41%] Built target opencv_test_video_pch_dephelp
[ 41%] Built target opencv_video_pch_dephelp
[ 41%] Built target opencv_perf_video_pch_dephelp
[ 41%] Built target opencv_test_videostab_pch_dephelp
[ 41%] Built target opencv_videostab_pch_dephelp
[ 41%] Built target opencv_xfeatures2d_pch_dephelp
[ 41%] Built target opencv_test_xfeatures2d_pch_dephelp
[ 41%] Built target opencv_ximgproc_pch_dephelp
[ 41%] Built target opencv_perf_xfeatures2d_pch_dephelp
[ 41%] Built target opencv_test_ximgproc_pch_dephelp
[ 41%] Built target opencv_perf_ximgproc_pch_dephelp
[ 41%] Built target opencv_xobjdetect_pch_dephelp
[ 41%] Built target opencv_test_bgsegm_pch_dephelp
[ 41%] Built target opencv_aruco_pch_dephelp
[ 41%] Built target opencv_test_aruco_pch_dephelp
[ 41%] Built target opencv_dpm_pch_dephelp
[ 41%] Built target opencv_test_face_pch_dephelp
[ 41%] Built target opencv_bgsegm_pch_dephelp
[ 41%] Built target opencv_face_pch_dephelp
[ 41%] Built target opencv_test_optflow_pch_dephelp
[ 41%] Built target opencv_optflow_pch_dephelp
[ 41%] Built target opencv_perf_optflow_pch_dephelp
[ 41%] Built target opencv_test_stitching_pch_dephelp
[ 41%] Built target opencv_perf_stitching_pch_dephelp
[ 41%] Built target opencv_stitching_pch_dephelp
[ 41%] Built target opencv_test_superres_pch_dephelp
[ 41%] Built target opencv_perf_superres_pch_dephelp
[ 41%] Built target opencv_tracking_pch_dephelp
[ 41%] Built target opencv_superres_pch_dephelp
[ 41%] Built target opencv_perf_tracking_pch_dephelp
[ 41%] Built target opencv_test_tracking_pch_dephelp
[ 41%] Built target opencv_stereo_pch_dephelp
[ 41%] Generate files for Java bindings
[ 41%] Built target pch_Generate_opencv_ts
[ 41%] Built target opencv_test_stereo_pch_dephelp
[ 41%] Built target opencv_perf_stereo_pch_dephelp
[ 41%] Built target pch_Generate_opencv_videoio
[ 41%] Built target pch_Generate_opencv_core
[ 41%] Built target gen_opencv_python_source
[ 41%] Built target pch_Generate_opencv_imgproc
[ 41%] Built target pch_Generate_opencv_imgcodecs
[ 41%] Built target pch_Generate_opencv_highgui
[ 41%] Built target pch_Generate_opencv_test_flann
[ 41%] Built target pch_Generate_opencv_flann
[ 41%] Built target pch_Generate_opencv_perf_core
JAVA: Processing OpenCV modules: 25
[ 41%] Built target pch_Generate_opencv_perf_imgproc
[ 41%] Built target pch_Generate_opencv_hdf
[ 41%] Built target pch_Generate_opencv_test_hdf
[ 41%] Built target pch_Generate_opencv_test_imgproc
[ 41%] Built target pch_Generate_opencv_ml
[ 41%] Built target pch_Generate_opencv_test_ml
[ 41%] Built target pch_Generate_opencv_test_phase_unwrapping
[ 41%] Built target pch_Generate_opencv_test_photo
[ 41%] Built target pch_Generate_opencv_phase_unwrapping
[ 41%] Built target pch_Generate_opencv_quality
[ 41%] Built target pch_Generate_opencv_plot
[ 41%] Built target pch_Generate_opencv_photo
[ 41%] Built target pch_Generate_opencv_perf_photo
[ 41%] Built target pch_Generate_opencv_test_reg
[ 41%] Built target pch_Generate_opencv_test_quality
[ 41%] Built target pch_Generate_opencv_perf_reg
[ 41%] Built target pch_Generate_opencv_perf_xphoto
[ 41%] Built target pch_Generate_opencv_test_dnn
[ 41%] Built target pch_Generate_opencv_reg
[ 41%] Built target pch_Generate_opencv_dnn
[ 41%] Built target pch_Generate_opencv_test_xphoto
[ 41%] Built target pch_Generate_opencv_surface_matching
[ 41%] Built target pch_Generate_opencv_perf_dnn
[ 41%] Built target pch_Generate_opencv_freetype
[ 41%] Built target pch_Generate_opencv_fuzzy
[ 41%] Built target pch_Generate_opencv_test_gapi
[ 41%] Built target pch_Generate_opencv_gapi
[ 41%] Built target pch_Generate_opencv_test_img_hash
[ 41%] Built target pch_Generate_opencv_test_fuzzy
[ 41%] Built target pch_Generate_opencv_perf_gapi
[ 41%] Built target pch_Generate_opencv_hfs
[ 41%] Built target pch_Generate_opencv_img_hash
[ 41%] Built target pch_Generate_opencv_test_imgcodecs
[ 41%] Built target pch_Generate_opencv_perf_imgcodecs
duplicated: CLASS cv::.Algorithm :
[ 41%] Built target pch_Generate_opencv_bioinspired
[ 41%] Built target pch_Generate_opencv_test_videoio
[ 41%] Built target pch_Generate_opencv_perf_videoio
[ 41%] Built target pch_Generate_opencv_test_highgui
[ 41%] Built target pch_Generate_opencv_test_bioinspired
[ 41%] Built target pch_Generate_opencv_perf_bioinspired
[ 41%] Built target pch_Generate_opencv_dnn_objdetect
[ 41%] Built target pch_Generate_opencv_features2d
[ 41%] Built target pch_Generate_opencv_perf_features2d
[ 41%] Built target pch_Generate_opencv_perf_line_descriptor
[ 41%] Built target pch_Generate_opencv_test_features2d
[ 41%] Built target pch_Generate_opencv_test_line_descriptor
[ 41%] Built target pch_Generate_opencv_line_descriptor
[ 41%] Built target pch_Generate_opencv_saliency
[ 41%] Built target pch_Generate_opencv_test_saliency
[ 41%] Built target pch_Generate_opencv_text
[ 41%] Built target pch_Generate_opencv_test_text
[ 41%] Built target pch_Generate_opencv_calib3d
[ 41%] Built target pch_Generate_opencv_perf_calib3d
[ 41%] Built target pch_Generate_opencv_test_calib3d
[ 41%] Built target opencv_test_cvv_pch_dephelp
[ 41%] Built target pch_Generate_opencv_ccalib
[ 41%] Built target pch_Generate_opencv_objdetect
[ 41%] Built target pch_Generate_opencv_test_objdetect
[ 41%] Built target pch_Generate_opencv_perf_objdetect
[ 41%] Built target pch_Generate_opencv_test_rgbd
[ 41%] Built target pch_Generate_opencv_rgbd
[ 41%] Built target pch_Generate_opencv_test_shape
[ 41%] Built target pch_Generate_opencv_shape
[ 41%] Built target pch_Generate_opencv_structured_light
[ 41%] Built target pch_Generate_opencv_test_video
[ 41%] Built target pch_Generate_opencv_test_structured_light
[ 41%] Built target pch_Generate_opencv_video
[ 41%] Built target pch_Generate_opencv_perf_video
[ 41%] Built target pch_Generate_opencv_videostab
[ 41%] Built target pch_Generate_opencv_test_videostab
[ 41%] Built target pch_Generate_opencv_test_xfeatures2d
[ 41%] Built target pch_Generate_opencv_test_ximgproc
[ 41%] Built target pch_Generate_opencv_perf_xfeatures2d
[ 41%] Built target pch_Generate_opencv_xfeatures2d
[ 41%] Built target pch_Generate_opencv_ximgproc
[ 41%] Built target pch_Generate_opencv_perf_ximgproc
[ 41%] Built target pch_Generate_opencv_xobjdetect
[ 41%] Built target pch_Generate_opencv_aruco
[ 41%] Built target pch_Generate_opencv_test_aruco
[ 41%] Built target pch_Generate_opencv_bgsegm
[ 41%] Built target pch_Generate_opencv_test_bgsegm
[ 41%] Built target pch_Generate_opencv_face
[ 41%] Built target pch_Generate_opencv_test_face
[ 41%] Built target pch_Generate_opencv_dpm
[ 41%] Built target pch_Generate_opencv_optflow
[ 41%] Built target pch_Generate_opencv_test_optflow
[ 41%] Built target pch_Generate_opencv_perf_optflow
[ 41%] Built target pch_Generate_opencv_test_stitching
[ 41%] Built target pch_Generate_opencv_stitching
[ 41%] Built target pch_Generate_opencv_perf_stitching
[ 41%] Built target pch_Generate_opencv_perf_superres
[ 41%] Built target pch_Generate_opencv_superres
[ 41%] Built target pch_Generate_opencv_test_tracking
[ 41%] Built target pch_Generate_opencv_perf_tracking
[ 41%] Built target pch_Generate_opencv_test_superres
[ 41%] Built target pch_Generate_opencv_tracking
[ 41%] Built target pch_Generate_opencv_stereo
[ 41%] Built target pch_Generate_opencv_test_stereo
[ 41%] Built target pch_Generate_opencv_perf_stereo
[ 41%] Built target pch_Generate_opencv_test_cvv
SKIP:void cv::Algorithm::read(FileNode fn) due to ARG type FileNode/I
SKIP:void cv::Algorithm::write(Ptr_FileStorage fs, String name = String()) due to ARG type Ptr_FileStorage/I
Scanning dependencies of target opencv_core
[ 41%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o
[ 41%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/datafile.cpp.o
SKIP:void cv::dnn::Net::forward(vector_vector_Mat& outputBlobs, vector_String outBlobNames) due to ARG type vector_vector_Mat/O
SKIP:void cv::dnn::Net::getLayersShapes(MatShape netInputShape, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes) due to ARG type vector_vector_MatShape/O
SKIP:void cv::dnn::Net::getLayersShapes(vector_MatShape netInputShapes, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes) due to ARG type vector_vector_MatShape/O
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getBackends() due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getCameraBackends() due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getStreamBackends() due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getWriterBackends() due to RET type vector_VideoCaptureAPIs
SKIP:cv::BOWImgDescriptorExtractor::BOWImgDescriptorExtractor(Ptr_DescriptorExtractor dextractor, Ptr_DescriptorMatcher dmatcher) due to ARG type Ptr_DescriptorExtractor/I
SKIP:void cv::Feature2D::read(FileNode arg1) due to ARG type FileNode/I
SKIP:void cv::Feature2D::write(Ptr_FileStorage fs, String name = String()) due to ARG type Ptr_FileStorage/I
SKIP:void cv::DescriptorMatcher::read(FileNode arg1) due to ARG type FileNode/I
SKIP:void cv::DescriptorMatcher::write(Ptr_FileStorage fs, String name = String()) due to ARG type Ptr_FileStorage/I
SKIP:uchar Params::blobColor due to RET type uchar
SKIP:void Params::blobColor due to ARG type uchar/I
duplicated: CLASS cv.text::OCRBeamSearchDecoder.ClassifierCallback :
SKIP:Ptr_ERFilter cv::text::createERFilterNM1(Ptr_ERFilter_Callback cb, int thresholdDelta = 1, float minArea = (float)0.00025, float maxArea = (float)0.13, float minProbability = (float)0.4, bool nonMaxSuppression = true, float minProbabilityDiff = (float)0.1) due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter cv::text::createERFilterNM2(Ptr_ERFilter_Callback cb, float minProbability = (float)0.3) due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM1(String filename) due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM2(String filename) due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_OCRBeamSearchDecoder_ClassifierCallback cv::text::loadOCRBeamSearchClassifierCNN(String filename) due to RET type Ptr_OCRBeamSearchDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifier(String filename, int classifier) due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierCNN(String filename) due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierNM(String filename) due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:static Ptr_OCRBeamSearchDecoder cv::text::OCRBeamSearchDecoder::create(Ptr_OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI, int beam_size = 500) due to ARG type Ptr_OCRBeamSearchDecoder_ClassifierCallback/I
SKIP:static Ptr_OCRHMMDecoder cv::text::OCRHMMDecoder::create(Ptr_OCRHMMDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI) due to ARG type Ptr_OCRHMMDecoder_ClassifierCallback/I
duplicated: CONST CvLevMarq_DONE=0
duplicated: CONST CvLevMarq_STARTED=1
duplicated: CONST CvLevMarq_CALC_J=2
duplicated: CONST CvLevMarq_CHECK_ERR=3
SKIP:bool cv::findCirclesGrid(Mat image, Size patternSize, Mat& centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters parameters) due to ARG type Ptr_FeatureDetector/I
SKIP:string cv::QRCodeDetector::decode(Mat img, Mat points, Mat& straight_qrcode = Mat()) due to RET type string
SKIP:string cv::QRCodeDetector::detectAndDecode(Mat img, Mat& points = Mat(), Mat& straight_qrcode = Mat()) due to RET type string
SKIP:bool cv::CascadeClassifier::read(FileNode node) due to ARG type FileNode/I
duplicated: CLASS cv.structured_light::SinusoidalPattern.Params :
SKIP:bool cv::structured_light::StructuredLightPattern::decode(vector_vector_Mat patternImages, Mat& disparityMap, vector_Mat blackImages = vector_Mat(), vector_Mat whiteImages = vector_Mat(), int flags = DECODE_3D_UNDERWORLD) due to ARG type vector_vector_Mat/I
SKIP:Vec4i cv::ximgproc::HoughPoint2Line(Point houghPoint, Mat srcImgInfo, int angleRange = ARO_315_135, int makeSkew = HDO_DESKEW, int rules = RO_IGNORE_BORDERS) due to RET type Vec4i
[ 41%] Linking CXX shared library ../../lib/libopencv_core.so
SKIP:vector_vector_int CharucoBoard::nearestMarkerIdx due to RET type vector_vector_int
SKIP:vector_vector_int CharucoBoard::nearestMarkerCorners due to RET type vector_vector_int
SKIP:vector_pair_int_and_double cv::face::StandardCollector::getResults(bool sorted = false) due to RET type vector_pair_int_and_double
Generated files: 357 (updated 357)
[ 41%] Built target gen_opencv_java_source
[ 41%] Copy Java(JAR) source files
[ 41%] Copying res/drawable/icon.png
[ 41%] Copying res/drawable/chessboard.jpg
[ 41%] Copying res/drawable/lena.png
[ 41%] Copying res/values/strings.xml
[ 41%] Copying res/raw/lbpcascade_frontalface.xml
[ 41%] Copying res/layout/main.xml
[ 41%] Copying src/org/opencv/test/utils/ConvertersTest.java
COPYFILES: ... 1 entries (JAVA_SRC_COPY)
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/drawable/lena.png" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/drawable/lena.png".
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/values/strings.xml" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/values/strings.xml".
COPYFILES: ... directory '.../gen/java' with 239 files
COPYFILES: Copying: 'modules/java/jar/opencv/java/org/opencv/aruco/Aruco.java' ...
CMake Error at /datadisk/tcx_dev/opencv/opencv/cmake/copy_files.cmake:42 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/datadisk/tcx_dev/opencv/opencv/cmake/copy_files.cmake:88 (copy_file_)
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:87: recipe for target 'java_test/res/drawable/lena.png' failed
make[2]: *** [java_test/res/drawable/lena.png] Error 1
make[2]: *** Waiting for unfinished jobs....
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:99: recipe for target 'java_test/res/values/strings.xml' failed
make[2]: *** [java_test/res/values/strings.xml] Error 1
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/drawable/icon.png" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/drawable/icon.png".
modules/java/jar/CMakeFiles/opencv_java_jar_source_copy.dir/build.make:61: recipe for target 'CMakeFiles/dephelper/opencv_java_jar_source_copy' failed
make[2]: *** [CMakeFiles/dephelper/opencv_java_jar_source_copy] Error 1
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:83: recipe for target 'java_test/res/drawable/icon.png' failed
make[2]: *** [java_test/res/drawable/icon.png] Error 1
CMakeFiles/Makefile2:25471: recipe for target 'modules/java/jar/CMakeFiles/opencv_java_jar_source_copy.dir/all' failed
make[1]: *** [modules/java/jar/CMakeFiles/opencv_java_jar_source_copy.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/drawable/chessboard.jpg" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/drawable/chessboard.jpg".
Error copying file (if different) from "Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/raw/lbpcascade_frontalface.xml/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/res/layout/main.xml" to "" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/res/raw/lbpcascade_frontalface.xml/datadisk/tcx_dev/opencv/opencv/build/java_test/res/layout/main.xml".
".
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:79: recipe for target 'java_test/res/drawable/chessboard.jpg' failed
make[2]: *** [java_test/res/drawable/chessboard.jpg] Error 1
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:95: recipe for target 'java_test/res/raw/lbpcascade_frontalface.xml' failed
make[2]: *** [java_test/res/raw/lbpcascade_frontalface.xml] Error 1
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:91: recipe for target 'java_test/res/layout/main.xml' failed
make[2]: *** [java_test/res/layout/main.xml] Error 1
Error copying file (if different) from "/datadisk/tcx_dev/opencv/opencv/modules/java/test/pure_test/../common_test/src/org/opencv/test/utils/ConvertersTest.java" to "/datadisk/tcx_dev/opencv/opencv/build/java_test/src/org/opencv/test/utils/ConvertersTest.java".
modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/build.make:103: recipe for target 'java_test/src/org/opencv/test/utils/ConvertersTest.java' failed
make[2]: *** [java_test/src/org/opencv/test/utils/ConvertersTest.java] Error 1
CMakeFiles/Makefile2:25594: recipe for target 'modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/all' failed
make[1]: *** [modules/java/test/pure_test/CMakeFiles/opencv_java_test_source_copy.dir/all] Error 2
[ 41%] Built target opencv_core
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
</code></pre></div>
</details>
<p dir="auto">what part during the installation procedure did i missed or did wrong?</p>
<h5 dir="auto">Steps to reproduce</h5> | 0 |
<p dir="auto">On the Dashboard example there is a typo in the dashboard.css under the "Main Content" section.</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@media (min-width: 768px) {
.main {
padding-left: 40px;
pading-right: 40px; <---- Change to padding-right
}
}"><pre class="notranslate"><span class="pl-k">@media</span> (<span class="pl-c1">min-width</span><span class="pl-kos">:</span> <span class="pl-c1">768<span class="pl-smi">px</span></span>) {
.<span class="pl-c1">main</span> {
<span class="pl-c1">padding-left</span><span class="pl-kos">:</span> <span class="pl-c1">40<span class="pl-smi">px</span></span>;
<span class="pl-c1">pading-right</span><span class="pl-kos">:</span> <span class="pl-c1">40<span class="pl-smi">px</span></span>; <<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> Change <span class="pl-k">to</span> padding<span class="pl-c1">-</span>right
}
}</pre></div> | <p dir="auto">@@ File: examples/dashboard/dashboard.css<br>
@@ Line: 69 // pading- => padding-<br>
<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/media/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/media">@media</a> (min-width: 768px) {<br>
.main {<br>
padding-left: 40px;</p>
<ul dir="auto">
<li>pading-right: 40px;</li>
<li>padding-right: 40px;<br>
}<br>
}</li>
</ul> | 1 |
<h3 dir="auto">Background</h3>
<p dir="auto">The most important thing about specifying analyzers is the analyzer used at index time needs to be basically the same as the analyzer used at query time. If completely different analyzers were to be used, you would either produce terms that could never be found at query time, or query for terms that could never exist in the index. The API for specifying analyzers on fields does allow to set index and query analyzers separately. This is to allow things like synonyms where you may want to only add synonyms at index time (yields cheaper queries later), or just add them within the query (more flexible since synonyms can be changed dynamically).</p>
<h3 dir="auto"><code class="notranslate">_analyzer</code> today</h3>
<p dir="auto">Today we have multiple ways to specify which analyzer will be used on text fields. At indexing time, the order to check is as follows:</p>
<ol dir="auto">
<li>analyzer for the field</li>
<li><code class="notranslate">_analyzer</code> (proposed to remove here)</li>
<li>type level default analyzer (will be removed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51556074" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/8874" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/8874/hovercard" href="https://github.com/elastic/elasticsearch/issues/8874">#8874</a>)</li>
<li>index level default analyzer</li>
</ol>
<p dir="auto"><code class="notranslate">_analyzer</code> is a special field in the document which specifies the name of an analyzer to use as the default for that document. This means that the same field for one document can use a completely different analyzer than another document. The typical use case for this is working with documents in many languages, where each document contains a field specifying which language its main data is in (e.g. subject and body fields). Then at query time, either a single query is used with a “magic” analyzer over that field, or a conjunction of queries that use every analyzer the data may have been indexed with.</p>
<h3 dir="auto">Problems with <code class="notranslate">_analyzer</code></h3>
<p dir="auto">The typical use case for <code class="notranslate">_analyzer</code> has many problems:</p>
<ul dir="auto">
<li>If using the single analyzer at query time approach, the “magic” analyzer is never good enough. It cannot possibly cover all the terms that may have been produced by each languages' analyzer, so some terms are never matchable. For example, “die” in German would be a stop word, while the same word in English is simply a regular word. Either the magic analyzer removes “die” (in which case English documents about dying can not be found) or it includes it, and German documents that contained it can not match (since the indexing process removed that term).</li>
<li>Scoring will be skewed. Text relevance models rely on term statistics to weigh the importance of a term for a given document versus the importance of that term for the entire index. Because some words may analyze to the same term in different languages, the frequencies of terms can be skewed, which will distort where documents matching these words appear in query results.</li>
<li>Mappings code is already complicated, and this feature further complicates following the logic of where Analyzers are set in code.</li>
<li>Having multiple ways to set the analyzer used at index or query time is also confusing on users, as they have to decide which way is “better”.</li>
</ul>
<h3 dir="auto">Proposal</h3>
<p dir="auto">I propose to remove <code class="notranslate">_analyzer</code>, and the associated “analyzer” setting of the match query. Removing this, along with the type level default in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51556074" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/8874" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/8874/hovercard" href="https://github.com/elastic/elasticsearch/issues/8874">#8874</a> will simplify specifying analyzers considerably. There would be no loss of end functionality, since better results can be achieved with multiple fields.</p>
<h3 dir="auto">Alternatives to <code class="notranslate">_analyzer</code></h3>
<ul dir="auto">
<li>One alternative to dealing with multiple languages is to use n-grams. While this can itself be tricky to deal with, it is worth mentioning.</li>
<li>An alternative that is more directly in line with the current uses of _analyzer is having one field per language. This requires slight modifications to client code for indexing (copy data into the field for the appropriate language, instead of specifying the language in a field) and querying (query the appropriate language field, instead of selecting an analyzer for that language. This will produce better results since documents from other languages cannot accidentally appear in the results, and relevance results should be as expected for that language.</li>
</ul> | <h2 dir="auto">ES with Multi-Cluster Search Support</h2>
<p dir="auto">It'd be nice to be able to query across multiple clusters and get their aggregated results.</p>
<p dir="auto">Our initial motivation is to view Kibana results across multiple clusters. See: <a href="https://github.com/elasticsearch/kibana/issues/22" data-hovercard-type="issue" data-hovercard-url="/elastic/kibana/issues/22/hovercard">Enhancement: Allow conntections to multiple ES backends from a single Kibana instance</a>.</p>
<p dir="auto">However, since we also use/query ES directly, a proxy would work far better than changing Kibana.</p>
<p dir="auto">In the discussion above, it was decided (by Shay) that the place to do it would be at the ES level.</p>
<p dir="auto">The following is a proposal to achieve it at the ES level. This is some very early planning and I've decided to post it early to make sure I'm not duplicating work or am on a totally wrong path (which is totally possible). Any feedback/comments are appreciated.</p>
<h2 dir="auto">Proposal</h2>
<p dir="auto">The general plan is to make a query only node (termed 'search load balancer' in <code class="notranslate">elasticsearch.yml</code>) and have a list of cluster names that we want to query.</p>
<p dir="auto">During a search, the node will query from each of the shards in each of the clusters and aggregate the results.</p>
<h2 dir="auto">Details</h2>
<ul dir="auto">
<li>Make a query only node
<ul dir="auto">
<li>In <code class="notranslate">elasticsearch.yml</code>
<ul dir="auto">
<li><code class="notranslate">node.master: false</code></li>
<li><code class="notranslate">node.data: false</code></li>
</ul>
</li>
<li>I'm hoping this means that we can isolate code changes to only the search portion.</li>
</ul>
</li>
<li>Accommodate multiple clusters
<ul dir="auto">
<li>Have <code class="notranslate">ZenDiscover</code> reach out to all the listed clusters to get their state.</li>
<li><code class="notranslate">ClusterService</code> will contain a map of <code class="notranslate">ClusterName -> ClusterState</code>.
<ul dir="auto">
<li>To maintain the interface, <code class="notranslate">clusterService.state()</code> will just return the first cluster.</li>
<li>We can have another interface that will allow us to get the the cluster map.</li>
</ul>
</li>
<li><code class="notranslate">MulticastZenPing</code> will have to listen for changes in the listed clusters and update the corresponding cluster state.</li>
</ul>
</li>
<li>Searching across multiple clusters
<ul dir="auto">
<li>I've only looked at <code class="notranslate">TransportSearchTypeAction</code> and <code class="notranslate">TransportSearchQueryThenFetchAction</code> so far.</li>
<li>In the <code class="notranslate">BaseAsyncAction</code>, we'll need to get all the relevant shards across each cluster and query them (<code class="notranslate">sendExecuteFirstPhase</code>).</li>
<li>We change <code class="notranslate">expectedSuccessfulOps</code> and <code class="notranslate">expectedTotalOps</code> to the multi-cluster counts so that in <code class="notranslate">onFirstPhaseResult</code> we know when to move on (<code class="notranslate">innerMoveToSecondPhase</code>).</li>
<li>In <code class="notranslate">moveToSecondPhase</code>, we again use the metadata from each cluster and do the actual fetch of the documents.</li>
<li>Finally in <code class="notranslate">innerFinishHim</code>, we merge all the results with the <code class="notranslate">SearchPhaseController</code> and return the response via the normally.</li>
</ul>
</li>
</ul>
<p dir="auto">Thanks!</p> | 0 |
<p dir="auto">import tensorflow as tf<br>
Traceback (most recent call last):</p>
<p dir="auto">File "", line 1, in <br>
import tensorflow as tf</p>
<p dir="auto">File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_<em>init</em>_.py", line 22, in <br>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import</p>
<p dir="auto">File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python_<em>init</em>_.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow</p>
<p dir="auto">File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <br>
raise ImportError(msg)</p>
<p dir="auto">ImportError: Traceback (most recent call last):<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper<br>
return importlib.import_module(mname)<br>
File "C:\ProgramData\Anaconda3\lib\importlib_<em>init</em>_.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
File "", line 985, in _gcd_import<br>
File "", line 968, in _find_and_load<br>
File "", line 957, in _find_and_load_unlocked<br>
File "", line 666, in _load_unlocked<br>
File "", line 577, in module_from_spec<br>
File "", line 938, in create_module<br>
File "", line 222, in _call_with_frames_removed<br>
ImportError: DLL load failed with error code -1073741795</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper<br>
return importlib.import_module('<em>pywrap_tensorflow_internal')<br>
File "C:\ProgramData\Anaconda3\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
ImportError: No module named '_pywrap_tensorflow_internal'</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://www.tensorflow.org/install/install_sources#common_installation_problems" rel="nofollow">https://www.tensorflow.org/install/install_sources#common_installation_problems</a></p>
<p dir="auto">for some common reasons and solutions. Include the entire stack trace<br>
above this error message when asking for help.</p> | <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>: Linux Ubuntu 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.6.0-rc1</li>
<li><strong>Python version</strong>: 2.7</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.11.0</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: 5.4</li>
<li><strong>CUDA/cuDNN version</strong>: 9.1/7.0</li>
<li><strong>GPU model and memory</strong>: Tesla k80 (11441MiB)</li>
<li><strong>Exact command to reproduce</strong>: python cifar10_train.py</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I used timeline to profile the time taken by each operation of the standard cifar10 model available in tensorflow/models repo. After looking at the logfile, it looks like logs of some of the operations are duplicated i.e. it looks like some of the operations in the graph are ran multiple times over the single run of the complete graph. For example, Operation "gradients/conv2/Conv2D_grad/Conv2DBackpropFilter" (link to logfile : <a href="https://gist.github.com/xilenteyex/d54305e0448e1aa3d878872c45b8ed3a#file-timeline-1-json-L2270">https://gist.github.com/xilenteyex/d54305e0448e1aa3d878872c45b8ed3a#file-timeline-1-json-L2270</a>) is logged multiple times. Is this some sort of bug or am I missing something?</p>
<p dir="auto">Thanks a lot for looking into this issue!</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">cifar10 example : <a href="https://github.com/tensorflow/models/tree/master/tutorials/image/cifar10">https://github.com/tensorflow/models/tree/master/tutorials/image/cifar10</a><br>
here is a the link to my modified version of cifar10_train.py in which I added logging :<br>
<a href="https://gist.github.com/xilenteyex/b6fab3a5abdb65bf674aa7d0a4ec4b5c">https://gist.github.com/xilenteyex/b6fab3a5abdb65bf674aa7d0a4ec4b5c</a><br>
one of the sample log files is : <a href="https://gist.github.com/xilenteyex/d54305e0448e1aa3d878872c45b8ed3a">https://gist.github.com/xilenteyex/d54305e0448e1aa3d878872c45b8ed3a</a></p> | 0 |
<p dir="auto">It would be great when I want to perform a Quick Open on a file that VSCode would search as I type. Atom and Sublime do this and it makes finding files so much easier.</p> | <p dir="auto">Ubuntu 12.04, vscode 0.10.1</p>
<p dir="auto">I have found Go to file's indexing against a full Chromium workspace to be very slow. It took ~40 seconds to find "Tab.java" whereas a simple <code class="notranslate">find</code> command took less than a second:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ time find . -name "Tab.java"
./chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
real 0m0.559s
user 0m0.268s
sys 0m0.284s"><pre class="notranslate"><code class="notranslate">$ time find . -name "Tab.java"
./chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
real 0m0.559s
user 0m0.268s
sys 0m0.284s
</code></pre></div>
<p dir="auto">Note that the workspace is on an SSD.</p> | 1 |
<p dir="auto">The following code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub fn handle(_data: &[u8]) {}
pub fn handle_opt(iter: &mut Iterator<Item = &[u8]>) {
for data in *iter {
handle(data);
}
}"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">handle</span><span class="pl-kos">(</span><span class="pl-s1">_data</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">u8</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">handle_opt</span><span class="pl-kos">(</span><span class="pl-s1">iter</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">Iterator</span><span class="pl-kos"><</span><span class="pl-smi">Item</span> = <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">u8</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">for</span> data <span class="pl-k">in</span> <span class="pl-c1">*</span>iter <span class="pl-kos">{</span>
<span class="pl-en">handle</span><span class="pl-kos">(</span>data<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">give the following LLVM assert error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --crate-type lib lib.rs
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/Instructions.cpp:281: void llvm::CallInst::init(llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"' failed."><pre class="notranslate"><code class="notranslate">$ rustc --crate-type lib lib.rs
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/Instructions.cpp:281: void llvm::CallInst::init(llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"' failed.
</code></pre></div>
<p dir="auto">I really have no idea what's the LLVM IR code generated which cause this error, as I don't know how to disable LLVM IR checks at compile-time :/</p>
<p dir="auto">My Rust version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc -Vv
rustc 1.0.0-nightly (f4f10dba2 2015-01-17 20:31:08 +0000)
binary: rustc
commit-hash: f4f10dba2975b51c2d2c92157018db3ac13d4d4a
commit-date: 2015-01-17 20:31:08 +0000
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly"><pre class="notranslate"><code class="notranslate">$ rustc -Vv
rustc 1.0.0-nightly (f4f10dba2 2015-01-17 20:31:08 +0000)
binary: rustc
commit-hash: f4f10dba2975b51c2d2c92157018db3ac13d4d4a
commit-date: 2015-01-17 20:31:08 +0000
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly
</code></pre></div> | <h3 dir="auto">Code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn changer<'a>(mut things: Box<Iterator<Item=&'a mut u8>>) {
for item in *things { *item = 0 }
}
fn main() {
}"><pre class="notranslate"><code class="notranslate">fn changer<'a>(mut things: Box<Iterator<Item=&'a mut u8>>) {
for item in *things { *item = 0 }
}
fn main() {
}
</code></pre></div>
<h3 dir="auto">Error</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: trying to take the sizing type of <core::iter::Iterator + 'static as core::iter::Iterator>::Item, an unsized type
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/shep/Projects/rust/src/libsyntax/diagnostic.rs:182
stack backtrace:
1: 0x110a80d05 - sys::backtrace::write::h57cb71e45a6ad05bARs
2: 0x110aa667f - failure::on_fail::h1e60313e5a552ea32Ty
3: 0x110a0bb6a - rt::unwind::begin_unwind_inner::h591d6980cb1eb9bb2By
4: 0x10e753937 - rt::unwind::begin_unwind::h15926596774839260564
5: 0x10e7542a8 - diagnostic::Handler::bug::h4055c4ca2e17f0c6DLF
6: 0x10dd63cb8 - session::Session::bug::h5d1941c792f1e4caroq
7: 0x10d326a23 - trans::type_of::sizing_type_of::hded88082b54ddc4bgSo
8: 0x10d4422eb - trans::adt::represent_type_uncached::h5d90b81a92acc1b47xH
9: 0x10d320cd3 - trans::adt::represent_type::hdeb853742a302b7fHuH
10: 0x10d30c662 - trans::type_of::type_of::h0a1f71fc9850898aYYo
11: 0x10d30c34c - trans::type_of::type_of::h0a1f71fc9850898aYYo
12: 0x10d3b803f - trans::type_of::type_of_rust_fn::hf6b24d412c4c9582xOo
13: 0x10d41665c - trans::meth::trans_trait_callee_from_llval::h2aa4e324f7a786d6kwz
14: 0x10d413a56 - trans::meth::trans_object_shim::hfa24eaa4bec56008jBz
15: 0x10d31eb5f - trans::meth::trans_method_callee::hce96e8ac9be0c90eq6y
16: 0x10d385573 - trans::callee::trans_call_inner::h12246188759747685167
17: 0x10d354691 - trans::expr::trans_rvalue_stmt_unadjusted::hd58bf8791601bef4kQi
18: 0x10d306c8d - trans::expr::trans_into::h8bab20af1840b0a57xh
19: 0x10d307605 - trans::controlflow::trans_block::h051994b75eb2405cS1d
20: 0x10d3d0f44 - trans::base::trans_closure::hb694bfd51133ec9fMSt
21: 0x10d2f2a2b - trans::base::trans_fn::h816a9b6a32db67faj3t
22: 0x10d2ee086 - trans::base::trans_item::h223cbaffa1a561c6aqu
23: 0x10d3d8718 - trans::base::trans_crate::h7f75c26047f82847vlv
24: 0x10d19064e - driver::phase_4_translate_to_llvm::h17f0f28873e0c2d6uFa
25: 0x10d172501 - driver::compile_input::h059943f6c48c38c7vba
26: 0x10d239173 - thunk::F.Invoke<A, R>::invoke::h17305763774885229909
27: 0x10d2362d0 - rt::unwind::try::try_fn::h8419390306595151514
28: 0x110b0dba9 - rust_try_inner
29: 0x110b0db96 - rust_try
30: 0x10d236a16 - thunk::F.Invoke<A, R>::invoke::h8115208835806211442
31: 0x110a92154 - sys::thread::thread_start::hf32c2ee467ccc238CEv
32: 0x7fff9663c2fc - _pthread_body
33: 0x7fff9663c279 - _pthread_body"><pre class="notranslate"><code class="notranslate">error: internal compiler error: trying to take the sizing type of <core::iter::Iterator + 'static as core::iter::Iterator>::Item, an unsized type
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/shep/Projects/rust/src/libsyntax/diagnostic.rs:182
stack backtrace:
1: 0x110a80d05 - sys::backtrace::write::h57cb71e45a6ad05bARs
2: 0x110aa667f - failure::on_fail::h1e60313e5a552ea32Ty
3: 0x110a0bb6a - rt::unwind::begin_unwind_inner::h591d6980cb1eb9bb2By
4: 0x10e753937 - rt::unwind::begin_unwind::h15926596774839260564
5: 0x10e7542a8 - diagnostic::Handler::bug::h4055c4ca2e17f0c6DLF
6: 0x10dd63cb8 - session::Session::bug::h5d1941c792f1e4caroq
7: 0x10d326a23 - trans::type_of::sizing_type_of::hded88082b54ddc4bgSo
8: 0x10d4422eb - trans::adt::represent_type_uncached::h5d90b81a92acc1b47xH
9: 0x10d320cd3 - trans::adt::represent_type::hdeb853742a302b7fHuH
10: 0x10d30c662 - trans::type_of::type_of::h0a1f71fc9850898aYYo
11: 0x10d30c34c - trans::type_of::type_of::h0a1f71fc9850898aYYo
12: 0x10d3b803f - trans::type_of::type_of_rust_fn::hf6b24d412c4c9582xOo
13: 0x10d41665c - trans::meth::trans_trait_callee_from_llval::h2aa4e324f7a786d6kwz
14: 0x10d413a56 - trans::meth::trans_object_shim::hfa24eaa4bec56008jBz
15: 0x10d31eb5f - trans::meth::trans_method_callee::hce96e8ac9be0c90eq6y
16: 0x10d385573 - trans::callee::trans_call_inner::h12246188759747685167
17: 0x10d354691 - trans::expr::trans_rvalue_stmt_unadjusted::hd58bf8791601bef4kQi
18: 0x10d306c8d - trans::expr::trans_into::h8bab20af1840b0a57xh
19: 0x10d307605 - trans::controlflow::trans_block::h051994b75eb2405cS1d
20: 0x10d3d0f44 - trans::base::trans_closure::hb694bfd51133ec9fMSt
21: 0x10d2f2a2b - trans::base::trans_fn::h816a9b6a32db67faj3t
22: 0x10d2ee086 - trans::base::trans_item::h223cbaffa1a561c6aqu
23: 0x10d3d8718 - trans::base::trans_crate::h7f75c26047f82847vlv
24: 0x10d19064e - driver::phase_4_translate_to_llvm::h17f0f28873e0c2d6uFa
25: 0x10d172501 - driver::compile_input::h059943f6c48c38c7vba
26: 0x10d239173 - thunk::F.Invoke<A, R>::invoke::h17305763774885229909
27: 0x10d2362d0 - rt::unwind::try::try_fn::h8419390306595151514
28: 0x110b0dba9 - rust_try_inner
29: 0x110b0db96 - rust_try
30: 0x10d236a16 - thunk::F.Invoke<A, R>::invoke::h8115208835806211442
31: 0x110a92154 - sys::thread::thread_start::hf32c2ee467ccc238CEv
32: 0x7fff9663c2fc - _pthread_body
33: 0x7fff9663c279 - _pthread_body
</code></pre></div>
<h3 dir="auto">Version</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 0.13.0-dev (5773bdeff 2015-01-04 21:36:41 +0000)
binary: rustc
commit-hash: 5773bdefff2e47cc007f5cc2af3f80b30303d45a
commit-date: 2015-01-04 21:36:41 +0000
host: x86_64-apple-darwin
release: 0.13.0-dev"><pre class="notranslate"><code class="notranslate">rustc 0.13.0-dev (5773bdeff 2015-01-04 21:36:41 +0000)
binary: rustc
commit-hash: 5773bdefff2e47cc007f5cc2af3f80b30303d45a
commit-date: 2015-01-04 21:36:41 +0000
host: x86_64-apple-darwin
release: 0.13.0-dev
</code></pre></div> | 1 |
<ul dir="auto">
<li>Electron version:<br>
0.37.5.</li>
<li>Operating system:<br>
OSX 10.11.4</li>
</ul>
<p dir="auto">I'm using the X509 (<a href="https://www.npmjs.com/package/x509" rel="nofollow">https://www.npmjs.com/package/x509</a>)</p>
<p dir="auto">I followed the instructions here <a href="https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md">https://github.com/electron/electron/blob/master/docs/tutorial/using-native-node-modules.md</a> to but the module is still crashing electron.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install --save-dev electron-rebuild
# Every time you run "npm install", run this
./node_modules/.bin/electron-rebuild
# On Windows if you have trouble, try:
.\node_modules\.bin\electron-rebuild.cmd"><pre class="notranslate"><code class="notranslate">npm install --save-dev electron-rebuild
# Every time you run "npm install", run this
./node_modules/.bin/electron-rebuild
# On Windows if you have trouble, try:
.\node_modules\.bin\electron-rebuild.cmd
</code></pre></div> | <p dir="auto">Hello, my app uses the native ursa module. I just upgraded to atom-shell 0.23.0, rebuilt the ursa module and now my app is broken. Atom-Shell v0.22.3 was working properly.</p>
<p dir="auto">Debian Linux x64, [email protected], [email protected], [email protected]</p>
<p dir="auto">Here's the error I get when I launch my application:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/lib/node_modules/atom-shell/dist/atom .: symbol lookup error: /home/matt/noxious/node_modules/ursa/build/Release/ursaNative.node: undefined symbol: BN_new"><pre class="notranslate"><code class="notranslate">/usr/lib/node_modules/atom-shell/dist/atom .: symbol lookup error: /home/matt/noxious/node_modules/ursa/build/Release/ursaNative.node: undefined symbol: BN_new
</code></pre></div>
<p dir="auto">You can see my build script for the ursa module here: <a href="https://github.com/mattcollier/noxious/blob/master/build_x64.sh">https://github.com/mattcollier/noxious/blob/master/build_x64.sh</a></p>
<p dir="auto">Here is the output of the build: <a href="http://hastebin.com/asalunuxop.vhdl" rel="nofollow">http://hastebin.com/asalunuxop.vhdl</a></p>
<p dir="auto">Of course, I have changed the target to 0.23.0.</p> | 1 |
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: CentOS 6.7<br>
If installed from sources, provide the commit hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/eda89e930cfcbd992ecacafd40267d733e2153dc/hovercard" href="https://github.com/tensorflow/tensorflow/commit/eda89e930cfcbd992ecacafd40267d733e2153dc"><tt>eda89e9</tt></a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Configure for gcc 4.8.2</li>
<li>./configure</li>
<li>Edit third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc
<ul dir="auto">
<li>This is necessary; otherwise <code class="notranslate">gcc</code> can't find <code class="notranslate">as</code>.</li>
<li>In fact, there are notes about this:
<ul dir="auto">
<li><code class="notranslate"># TODO(zhengxq): for some reason, 'gcc' needs this help to find 'as'.</code></li>
<li><code class="notranslate"># Need to investigate and fix.</code></li>
</ul>
</li>
<li>I had to comment their fix to get gcc to find <code class="notranslate">as</code> on my system.</li>
<li>Specifically, <code class="notranslate"># cmd = 'PATH=' + PREFIX_DIR + ' ' + cmd</code></li>
</ul>
</li>
<li><code class="notranslate">bazel build -c opt --config=cuda --verbose_failures --genrule_strategy=standalone --spawn_strategy=standalone //tensorflow/tools/pip_package:build_pip_package</code></li>
</ol>
<h3 dir="auto">What have you tried?</h3>
<ol dir="auto">
<li>I don't know what else to try.</li>
</ol>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">Most of the build succeeds, but then I get</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO: Found 1 target...
ERROR: /home-4/[email protected]/install/tensorflow/tensorflow/core/kernels/BUILD:560:1: C++ compilation of rule '//tensorflow/core/kernels:matrix_solve_ls_op' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home-4/[email protected]/.cache/bazel/[email protected]/549db212089e33b4d213773753834e47/tensorflow && \
exec env - \
PATH=/home-4/[email protected]/install/bazel/output:/home-4/[email protected]/.usr/bin:/home-4/[email protected]/vc/scripts:/home-4/[email protected]/.local/bin:/cm/shared/apps/java/JDK_1.8.0_45/bin:/cm/shared/apps/cuda/7.0/bin:/cm/shared/apps/git/2.6.4/bin:/cm/shared/apps/anaconda/2.7.10/bin:/cm/shared/apps/slurm/current/sbin:/cm/shared/apps/slurm/current/bin:/cm/shared/apps/gcc/4.8.2/bin:/cm/shared/apps/Intel/openmpi/1.8.4/bin:/cm/shared/apps/binutils:/cm/shared/apps/binutils/2.25/src/bin:/cm/shared/apps/parallel_studio_xe_2015_update2/composer_xe_2015.2.164/bin/intel64:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/ibutils/bin:/sbin:/usr/sbin:/cm/local/apps/environment-modules/3.2.10/bin:/opt/dell/srvadmin/bin:/home-4/[email protected]/bin \
third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -iquote . -iquote bazel-out/local_linux-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -iquote external/jpeg_archive -iquote bazel-out/local_linux-opt/genfiles/external/jpeg_archive -iquote external/png_archive -iquote bazel-out/local_linux-opt/genfiles/external/png_archive -iquote external/re2 -iquote bazel-out/local_linux-opt/genfiles/external/re2 -iquote external/eigen_archive -iquote bazel-out/local_linux-opt/genfiles/external/eigen_archive -isystem google/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/google/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/local_linux-opt/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/local_linux-opt/genfiles/external/png_archive/libpng-1.2.53 -isystem external/re2 -isystem bazel-out/local_linux-opt/genfiles/external/re2 -isystem third_party/eigen3 -isystem bazel-out/local_linux-opt/genfiles/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-017cff30cf74 -isystem bazel-out/local_linux-opt/genfiles/external/eigen_archive/eigen-eigen-017cff30cf74 -isystem third_party/gpus/cuda -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda -isystem third_party/gpus/cuda/include -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda/include -fno-exceptions -DEIGEN_AVOID_STL_ARRAY '-DGOOGLE_CUDA=1' -pthread '-DGOOGLE_CUDA=1' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers '-frandom-seed=bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.o' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.d -fPIC -c tensorflow/core/kernels/matrix_solve_ls_op.cc -o bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1: crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home-4/[email protected]/.cache/bazel/[email protected]/549db212089e33b4d213773753834e47/tensorflow && \
exec env - \
PATH=/home-4/[email protected]/install/bazel/output:/home-4/[email protected]/.usr/bin:/home-4/[email protected]/vc/scripts:/home-4/[email protected]/.local/bin:/cm/shared/apps/java/JDK_1.8.0_45/bin:/cm/shared/apps/cuda/7.0/bin:/cm/shared/apps/git/2.6.4/bin:/cm/shared/apps/anaconda/2.7.10/bin:/cm/shared/apps/slurm/current/sbin:/cm/shared/apps/slurm/current/bin:/cm/shared/apps/gcc/4.8.2/bin:/cm/shared/apps/Intel/openmpi/1.8.4/bin:/cm/shared/apps/binutils:/cm/shared/apps/binutils/2.25/src/bin:/cm/shared/apps/parallel_studio_xe_2015_update2/composer_xe_2015.2.164/bin/intel64:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/ibutils/bin:/sbin:/usr/sbin:/cm/local/apps/environment-modules/3.2.10/bin:/opt/dell/srvadmin/bin:/home-4/[email protected]/bin \
third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -iquote . -iquote bazel-out/local_linux-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -iquote external/jpeg_archive -iquote bazel-out/local_linux-opt/genfiles/external/jpeg_archive -iquote external/png_archive -iquote bazel-out/local_linux-opt/genfiles/external/png_archive -iquote external/re2 -iquote bazel-out/local_linux-opt/genfiles/external/re2 -iquote external/eigen_archive -iquote bazel-out/local_linux-opt/genfiles/external/eigen_archive -isystem google/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/google/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/local_linux-opt/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/local_linux-opt/genfiles/external/png_archive/libpng-1.2.53 -isystem external/re2 -isystem bazel-out/local_linux-opt/genfiles/external/re2 -isystem third_party/eigen3 -isystem bazel-out/local_linux-opt/genfiles/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-017cff30cf74 -isystem bazel-out/local_linux-opt/genfiles/external/eigen_archive/eigen-eigen-017cff30cf74 -isystem third_party/gpus/cuda -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda -isystem third_party/gpus/cuda/include -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda/include -fno-exceptions -DEIGEN_AVOID_STL_ARRAY '-DGOOGLE_CUDA=1' -pthread '-DGOOGLE_CUDA=1' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers '-frandom-seed=bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.o' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.d -fPIC -c tensorflow/core/kernels/matrix_solve_ls_op.cc -o bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
tensorflow/core/kernels/matrix_solve_ls_op.cc: In member function 'void tensorflow::MatrixSolveLsOp<Scalar, SupportsBatchOperationT>::ComputeMatrix(tensorflow::OpKernelContext*, const typename tensorflow::BinaryLinearAlgebraOp<Scalar, SupportsBatchOperationT>::ConstMatrixMap&, const typename tensorflow::BinaryLinearAlgebraOp<Scalar, SupportsBatchOperationT>::ConstMatrixMap&, typename tensorflow::BinaryLinearAlgebraOp<Scalar, SupportsBatchOperationT>::MatrixMap*)':
tensorflow/core/kernels/matrix_solve_ls_op.cc:111:41: error: 'Matrix' is not a class, namespace, or enumeration
(Scalar(l2_regularizer) * Matrix::Ones(cols, 1)).asDiagonal();
^
tensorflow/core/kernels/matrix_solve_ls_op.cc:131:41: error: 'Matrix' is not a class, namespace, or enumeration
(Scalar(l2_regularizer) * Matrix::Ones(rows, 1)).asDiagonal();
^
In file included from ./tensorflow/core/framework/op_kernel.h:22:0,
from tensorflow/core/kernels/matrix_solve_ls_op.cc:23:
./tensorflow/core/framework/allocator.h: In member function 'virtual std::size_t tensorflow::Allocator::RequestedSize(void*)':
./tensorflow/core/framework/allocator.h:152:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from ./tensorflow/core/framework/op_kernel.h:25:0,
from tensorflow/core/kernels/matrix_solve_ls_op.cc:23:
./tensorflow/core/framework/device_base.h: In member function 'virtual tensorflow::Allocator* tensorflow::DeviceBase::GetAllocator(tensorflow::AllocatorAttributes)':
./tensorflow/core/framework/device_base.h:150:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
./tensorflow/core/framework/device_base.h: In member function 'virtual const tensorflow::DeviceAttributes& tensorflow::DeviceBase::attributes() const':
./tensorflow/core/framework/device_base.h:181:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 12.708s, Critical Path: 12.06s
"><pre class="notranslate"><code class="notranslate">INFO: Found 1 target...
ERROR: /home-4/[email protected]/install/tensorflow/tensorflow/core/kernels/BUILD:560:1: C++ compilation of rule '//tensorflow/core/kernels:matrix_solve_ls_op' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home-4/[email protected]/.cache/bazel/[email protected]/549db212089e33b4d213773753834e47/tensorflow && \
exec env - \
PATH=/home-4/[email protected]/install/bazel/output:/home-4/[email protected]/.usr/bin:/home-4/[email protected]/vc/scripts:/home-4/[email protected]/.local/bin:/cm/shared/apps/java/JDK_1.8.0_45/bin:/cm/shared/apps/cuda/7.0/bin:/cm/shared/apps/git/2.6.4/bin:/cm/shared/apps/anaconda/2.7.10/bin:/cm/shared/apps/slurm/current/sbin:/cm/shared/apps/slurm/current/bin:/cm/shared/apps/gcc/4.8.2/bin:/cm/shared/apps/Intel/openmpi/1.8.4/bin:/cm/shared/apps/binutils:/cm/shared/apps/binutils/2.25/src/bin:/cm/shared/apps/parallel_studio_xe_2015_update2/composer_xe_2015.2.164/bin/intel64:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/ibutils/bin:/sbin:/usr/sbin:/cm/local/apps/environment-modules/3.2.10/bin:/opt/dell/srvadmin/bin:/home-4/[email protected]/bin \
third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -iquote . -iquote bazel-out/local_linux-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -iquote external/jpeg_archive -iquote bazel-out/local_linux-opt/genfiles/external/jpeg_archive -iquote external/png_archive -iquote bazel-out/local_linux-opt/genfiles/external/png_archive -iquote external/re2 -iquote bazel-out/local_linux-opt/genfiles/external/re2 -iquote external/eigen_archive -iquote bazel-out/local_linux-opt/genfiles/external/eigen_archive -isystem google/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/google/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/local_linux-opt/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/local_linux-opt/genfiles/external/png_archive/libpng-1.2.53 -isystem external/re2 -isystem bazel-out/local_linux-opt/genfiles/external/re2 -isystem third_party/eigen3 -isystem bazel-out/local_linux-opt/genfiles/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-017cff30cf74 -isystem bazel-out/local_linux-opt/genfiles/external/eigen_archive/eigen-eigen-017cff30cf74 -isystem third_party/gpus/cuda -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda -isystem third_party/gpus/cuda/include -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda/include -fno-exceptions -DEIGEN_AVOID_STL_ARRAY '-DGOOGLE_CUDA=1' -pthread '-DGOOGLE_CUDA=1' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers '-frandom-seed=bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.o' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.d -fPIC -c tensorflow/core/kernels/matrix_solve_ls_op.cc -o bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1: crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home-4/[email protected]/.cache/bazel/[email protected]/549db212089e33b4d213773753834e47/tensorflow && \
exec env - \
PATH=/home-4/[email protected]/install/bazel/output:/home-4/[email protected]/.usr/bin:/home-4/[email protected]/vc/scripts:/home-4/[email protected]/.local/bin:/cm/shared/apps/java/JDK_1.8.0_45/bin:/cm/shared/apps/cuda/7.0/bin:/cm/shared/apps/git/2.6.4/bin:/cm/shared/apps/anaconda/2.7.10/bin:/cm/shared/apps/slurm/current/sbin:/cm/shared/apps/slurm/current/bin:/cm/shared/apps/gcc/4.8.2/bin:/cm/shared/apps/Intel/openmpi/1.8.4/bin:/cm/shared/apps/binutils:/cm/shared/apps/binutils/2.25/src/bin:/cm/shared/apps/parallel_studio_xe_2015_update2/composer_xe_2015.2.164/bin/intel64:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/ibutils/bin:/sbin:/usr/sbin:/cm/local/apps/environment-modules/3.2.10/bin:/opt/dell/srvadmin/bin:/home-4/[email protected]/bin \
third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -iquote . -iquote bazel-out/local_linux-opt/genfiles -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -iquote external/jpeg_archive -iquote bazel-out/local_linux-opt/genfiles/external/jpeg_archive -iquote external/png_archive -iquote bazel-out/local_linux-opt/genfiles/external/png_archive -iquote external/re2 -iquote bazel-out/local_linux-opt/genfiles/external/re2 -iquote external/eigen_archive -iquote bazel-out/local_linux-opt/genfiles/external/eigen_archive -isystem google/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/google/protobuf/src -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/jpeg_archive/jpeg-9a -isystem bazel-out/local_linux-opt/genfiles/external/jpeg_archive/jpeg-9a -isystem external/png_archive/libpng-1.2.53 -isystem bazel-out/local_linux-opt/genfiles/external/png_archive/libpng-1.2.53 -isystem external/re2 -isystem bazel-out/local_linux-opt/genfiles/external/re2 -isystem third_party/eigen3 -isystem bazel-out/local_linux-opt/genfiles/third_party/eigen3 -isystem external/eigen_archive/eigen-eigen-017cff30cf74 -isystem bazel-out/local_linux-opt/genfiles/external/eigen_archive/eigen-eigen-017cff30cf74 -isystem third_party/gpus/cuda -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda -isystem third_party/gpus/cuda/include -isystem bazel-out/local_linux-opt/genfiles/third_party/gpus/cuda/include -fno-exceptions -DEIGEN_AVOID_STL_ARRAY '-DGOOGLE_CUDA=1' -pthread '-DGOOGLE_CUDA=1' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers '-frandom-seed=bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.o' -MD -MF bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.d -fPIC -c tensorflow/core/kernels/matrix_solve_ls_op.cc -o bazel-out/local_linux-opt/bin/tensorflow/core/kernels/_objs/matrix_solve_ls_op/tensorflow/core/kernels/matrix_solve_ls_op.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
tensorflow/core/kernels/matrix_solve_ls_op.cc: In member function 'void tensorflow::MatrixSolveLsOp<Scalar, SupportsBatchOperationT>::ComputeMatrix(tensorflow::OpKernelContext*, const typename tensorflow::BinaryLinearAlgebraOp<Scalar, SupportsBatchOperationT>::ConstMatrixMap&, const typename tensorflow::BinaryLinearAlgebraOp<Scalar, SupportsBatchOperationT>::ConstMatrixMap&, typename tensorflow::BinaryLinearAlgebraOp<Scalar, SupportsBatchOperationT>::MatrixMap*)':
tensorflow/core/kernels/matrix_solve_ls_op.cc:111:41: error: 'Matrix' is not a class, namespace, or enumeration
(Scalar(l2_regularizer) * Matrix::Ones(cols, 1)).asDiagonal();
^
tensorflow/core/kernels/matrix_solve_ls_op.cc:131:41: error: 'Matrix' is not a class, namespace, or enumeration
(Scalar(l2_regularizer) * Matrix::Ones(rows, 1)).asDiagonal();
^
In file included from ./tensorflow/core/framework/op_kernel.h:22:0,
from tensorflow/core/kernels/matrix_solve_ls_op.cc:23:
./tensorflow/core/framework/allocator.h: In member function 'virtual std::size_t tensorflow::Allocator::RequestedSize(void*)':
./tensorflow/core/framework/allocator.h:152:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from ./tensorflow/core/framework/op_kernel.h:25:0,
from tensorflow/core/kernels/matrix_solve_ls_op.cc:23:
./tensorflow/core/framework/device_base.h: In member function 'virtual tensorflow::Allocator* tensorflow::DeviceBase::GetAllocator(tensorflow::AllocatorAttributes)':
./tensorflow/core/framework/device_base.h:150:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
./tensorflow/core/framework/device_base.h: In member function 'virtual const tensorflow::DeviceAttributes& tensorflow::DeviceBase::attributes() const':
./tensorflow/core/framework/device_base.h:181:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 12.708s, Critical Path: 12.06s
</code></pre></div>
<p dir="auto">I'm hoping very much to get this running on a CentOS cluster – any help will be very appreciated. Thanks.</p> | <p dir="auto">I have been trying to compile tensorflow from source without success.<br>
I could compile version 0.6.0 with no trouble, but trying to compile 0.7.1 produces the following error:</p>
<blockquote>
tensorflow/core/kernels/matrix_solve_ls_op.cc: In member function 'void tensorflow::MatrixSolveLsOp::ComputeMatrix(tensorflow::OpKernelContext*, const typename tensorflow::BinaryLinearAlgebraOp::ConstMatrixMap&, const typename tensorflow::BinaryLinearAlgebraOp::ConstMatrixMap&, typename tensorflow::BinaryLinearAlgebraOp::MatrixMap*)':
tensorflow/core/kernels/matrix_solve_ls_op.cc:111:41: error: 'Matrix' is not a class, namespace, or enumeration
(Scalar(l2_regularizer) * Matrix::Ones(cols, 1)).asDiagonal();
^
tensorflow/core/kernels/matrix_solve_ls_op.cc:131:41: error: 'Matrix' is not a class, namespace, or enumeration
(Scalar(l2_regularizer) * Matrix::Ones(rows, 1)).asDiagonal();
^
In file included from ./tensorflow/core/framework/op_kernel.h:22:0,
from tensorflow/core/kernels/matrix_solve_ls_op.cc:23:
./tensorflow/core/framework/allocator.h: In member function 'virtual std::size_t tensorflow::Allocator::RequestedSize(void*)':
./tensorflow/core/framework/allocator.h:128:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from ./tensorflow/core/framework/op_kernel.h:25:0,
from tensorflow/core/kernels/matrix_solve_ls_op.cc:23:
./tensorflow/core/framework/device_base.h: In member function 'virtual tensorflow::Allocator* tensorflow::DeviceBase::GetAllocator(tensorflow::AllocatorAttributes)':
./tensorflow/core/framework/device_base.h:149:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
./tensorflow/core/framework/device_base.h: In member function 'virtual const tensorflow::DeviceAttributes& tensorflow::DeviceBase::attributes() const':
./tensorflow/core/framework/device_base.h:179:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
</blockquote>
<p dir="auto">I tried to find the definition of Matrix::Ones in all folders, but couldn't find anything. In fact</p>
<blockquote>
<p dir="auto">grep "Ones" tensorflow/* -R</p>
</blockquote>
<p dir="auto">returns</p>
<blockquote>
core/kernels/matrix_solve_ls_op.cc: (Scalar(l2_regularizer) * Matrix::Ones(cols, 1)).asDiagonal();
core/kernels/matrix_solve_ls_op.cc: (Scalar(l2_regularizer) * Matrix::Ones(rows, 1)).asDiagonal();
python/kernel_tests/constant_op_test.py:class OnesTest(tf.test.TestCase):
python/kernel_tests/constant_op_test.py: def _Ones(self, shape):
python/kernel_tests/constant_op_test.py: self.assertTrue(np.array_equal(self._Ones([2, 3]), np.array([[1] * 3] * 2)))
python/kernel_tests/constant_op_test.py:class OnesLikeTest(tf.test.TestCase):
python/kernel_tests/constant_op_test.py: def testOnesLike(self):
python/kernel_tests/constant_op_test.py: def testOnesLikePartialShape(self):
python/kernel_tests/shape_ops_test.py: def testSqueezeAllOnes(self):
python/kernel_tests/shape_ops_test.py: def testSqueezeOnlyOnes(self):
</blockquote>
<h3 dir="auto">Environment info</h3>
<p dir="auto">OS : CentOS 6.6, but I have gcc 4.8.2 installed.</p>
<h3 dir="auto">Steps to reproduce</h3>
<blockquote>
<p dir="auto">./configure</p>
</blockquote>
<p dir="auto">say yes to GPU, cuda 7.5, cudnn 4</p>
<blockquote>
<p dir="auto">bazel build --config=cuda --jobs 6 --verbose_failures --linkopt="-lrt" --linkopt="-lm" --genrule_strategy=standalone --spawn_strategy=standalone -c opt //tensorflow/tools/pip_package:build_pip_package</p>
</blockquote> | 1 |
<p dir="auto">A nice to have feature would be Jest-like snapshot testing in the std/testing library.</p> | <p dir="auto">It will be easy to understand for contributors or new coming contributors while looking through the project history.</p>
<p dir="auto"><a href="https://www.conventionalcommits.org/en/v1.0.0-beta.4/" rel="nofollow">Conventional commit messages</a></p> | 0 |
<p dir="auto">Upgrading packages...<br>
Running "flutter packages upgrade" in flutter_update_packages_qQnlPY...<br>
! analyzer 0.31.2-alpha.0 from path /Users/xxx/Documents/GitHub/flutter/packages/flutter_tools/../../bin/cache/dart-sdk/lib/analyzer<br>
! front_end 0.1.0-alpha.10 from path /Users/xxx/Documents/GitHub/flutter/packages/flutter_tools/../../bin/cache/dart-sdk/lib/front_end<br>
! kernel 0.3.0-alpha.10 from path /Users/xxx/Documents/GitHub/flutter/packages/flutter_tools/../../bin/cache/dart-sdk/lib/kernel<br>
Running "flutter packages get" in bots... 0.6s<br>
Running "flutter packages get" in vitool... 0.6s<br>
Running "flutter packages get" in tools... 0.6s<br>
Running "flutter packages get" in ui... 0.6s<br>
Running "flutter packages get" in external_ui... 0.6s<br>
Running "flutter packages get" in flavors... 0.6s<br>
Running "flutter packages get" in platform_interaction... 0.6s<br>
Running "flutter packages get" in channels... 0.6s<br>
Running "flutter packages get" in manual_tests... 0.6s<br>
Running "flutter packages get" in devicelab... 0.6s<br>
Running "flutter packages get" in complex_layout... 0.7s<br>
Running "flutter packages get" in microbenchmarks...<br>
Package intl_translation has no versions that match 0.16.1 derived from:</p>
<ul dir="auto">
<li>microbenchmarks depends on version 0.16.1<br>
pub get failed (1)</li>
</ul> | <p dir="auto"><code class="notranslate">flutter update-packages --force-upgrade</code> fails because intl_translation package 0.16.1(latest) has upper bound on analyzer package</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies:
analyzer: '>=0.29.1 <0.31.0'"><pre class="notranslate"><code class="notranslate">dependencies:
analyzer: '>=0.29.1 <0.31.0'
</code></pre></div>
<p dir="auto">but analyzer that comes into flutter with sdk is <code class="notranslate">0.31.2-alpha.0</code></p> | 1 |
<p dir="auto">Hi.Is it possible to add a new light after the scene setup?I have a scene and i want the user to add light in a selected position by pressing a button.I have tried it and it's not working.</p> | <p dir="auto">HI,</p>
<p dir="auto">I'm having some difficulty while trying to add a light after some time to the scene. If the light is created in the init() function there is no issue, but as soon as you create it later it makes everything look black.</p>
<p dir="auto">Here is a sample script showing this issue: <a href="http://jsfiddle.net/GKCx6/1/" rel="nofollow">http://jsfiddle.net/GKCx6/1/</a></p>
<p dir="auto">there is a variable "dynamic_light" that you can set to false to show a working version (light created in init). If dynamic_light is set to true you will have to click "add light" to see the issue.</p>
<p dir="auto">I hope i'm not missing something obvious.</p> | 1 |
<p dir="auto">we are waiting for a long time to see feature like this <a href="http://geedmo.github.io/yamm/" rel="nofollow">http://geedmo.github.io/yamm/</a></p> | <p dir="auto">i think it will be useful...</p> | 1 |
<ul dir="auto">
<li>[X ] I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behaviour</h2>
<p dir="auto">No error in ESLint<br>
Alternatively: Clicking the icon -> expands the card</p>
<p dir="auto">handleExpandChange = (expanded) => {<br>
^<br>
this.setState({expanded: expanded});<br>
};</p>
<p dir="auto">Error: Unexpected Token, fatal error (on the word expanded)</p>
<h2 dir="auto">Current Behaviour</h2>
<p dir="auto">ES Lint provides fatal error.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/z3y0624rr3" rel="nofollow">https://codesandbox.io/s/z3y0624rr3</a></p>
<ol dir="auto">
<li>Take the above sandbox</li>
<li>Put it in Atom 1.22.1 with Linter-eslint 8.4.1</li>
<li>Get error<br>
However, the code works.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I managed to fix the esLinter error by using the commented out code in the sandbox.</p>
<p dir="auto">However: this creates a different bug: The icon is prevented from being able to expand the code. The Card Header is still able to expand the code. Uncomment the code to reproduce (and comment out handleExpandChange)</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>0.20.0"</td>
</tr>
<tr>
<td>React</td>
<td>16.2</td>
</tr>
<tr>
<td>browser</td>
<td>64.0.3282.167</td>
</tr>
<tr>
<td>etc</td>
<td>Atom 1.22.1 with Linter-eslint 8.4.1</td>
</tr>
</tbody>
</table>
<p dir="auto">Thanks</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I was expecting that <code class="notranslate">body2</code> type in Typography will use same element as <code class="notranslate">body1</code> which is a <code class="notranslate">p</code> element for body1.</p>
<h2 dir="auto">Current Behavior</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<Typography type="body1"> Lorem ipsum </Typography> // this uses a `p` element
<Typography type="body2"> Lorem ipsum </Typography> // this uses an `aside` element"><pre class="notranslate"><code class="notranslate"><Typography type="body1"> Lorem ipsum </Typography> // this uses a `p` element
<Typography type="body2"> Lorem ipsum </Typography> // this uses an `aside` element
</code></pre></div>
<p dir="auto">As a result, the <code class="notranslate">nowrap</code> attribute doesn't work on body2 types.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<Typography type="body2" nowrap> {bigString} </Typography> // Does not work"><pre class="notranslate"><code class="notranslate"><Typography type="body2" nowrap> {bigString} </Typography> // Does not work
</code></pre></div>
<p dir="auto">Following also does not work:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<Typography type="body2" component="p" nowrap> {bigString} </Typography>"><pre class="notranslate"><code class="notranslate"><Typography type="body2" component="p" nowrap> {bigString} </Typography>
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Add a typography component</li>
<li>Add property <code class="notranslate">nowrap</code> to the compnent</li>
<li>Set the type property of the component to <code class="notranslate">body2</code></li>
<li></li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0 beta 29</td>
</tr>
<tr>
<td>React</td>
<td></td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<h3 dir="auto">Problem description</h3>
<p dir="auto">When I use <code class="notranslate">onMouseEnter</code> and <code class="notranslate">onMouseLeave</code> to show a popup (tooltip behavior), the popup does not appear.</p>
<h3 dir="auto">Link to minimal working code that reproduces the issue</h3>
<p dir="auto"><a href="https://codesandbox.io/s/wpjvm86AM" rel="nofollow">https://codesandbox.io/s/wpjvm86AM</a></p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.18.2</li>
<li>React: 15.5.3</li>
<li>Browser: N/A</li>
</ul>
<p dir="auto">I suspect the issue is that when the popup is open it adds an overlay to the screen, so that the button is no longer on top, resulting in immediate <code class="notranslate">onMouseLeave</code>.</p>
<p dir="auto">Is there a way to overcome this? I thought that maybe setting a different <code class="notranslate">zIndex</code> to the popup might fix this, but I'm not sure.</p> | <p dir="auto">Hi there,<br>
According to your description of AppBar: "App bars are a collection of components placed as a static header for an application", I was thinking that the AppBar wouldn't scroll off the page when you put a long list below it, let's say. But it does. See this example if you'd like: <a href="http://www.donwoodlock.com/TextDon/index.html" rel="nofollow">http://www.donwoodlock.com/TextDon/index.html</a></p>
<p dir="auto">Is there a property I should set to keep it fixed on top? Or a particular wrapper I should use for everything else to create a designated scrolling area?</p>
<p dir="auto">Please advise. Thx.<br>
Don</p> | 0 |
<p dir="auto">Code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn foo(v: &[int]) {
match v {
[_] => {},
[_, ..] => {},
_ => {},
}
}"><pre class="notranslate"><code class="notranslate">fn foo(v: &[int]) {
match v {
[_] => {},
[_, ..] => {},
_ => {},
}
}
</code></pre></div>
<p dir="auto">Wrong error is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/vagrant/tmp2.rs:4:9: 4:16 error: unreachable pattern
/home/vagrant/tmp2.rs:4 [_, ..] => {},
^~~~~~~
error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">/home/vagrant/tmp2.rs:4:9: 4:16 error: unreachable pattern
/home/vagrant/tmp2.rs:4 [_, ..] => {},
^~~~~~~
error: aborting due to previous error
</code></pre></div> | <p dir="auto">Until friday (commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/3047614/hovercard" href="https://github.com/rust-lang/rust/commit/3047614"><tt>3047614</tt></a>) the following (very contrived) code compiled:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
println!("{}", count_members(&[1, 2, 3, 4]));
}
fn count_members(v: &[uint]) -> uint {
match v {
[] => 0,
[_] => 1,
[_x, ..xs] => 1 + count_members(xs)
}
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, count_members<span class="pl-kos">(</span>&<span class="pl-kos">[</span><span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">count_members</span><span class="pl-kos">(</span><span class="pl-s1">v</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">uint</span><span class="pl-kos">]</span><span class="pl-kos">)</span> -> <span class="pl-smi">uint</span> <span class="pl-kos">{</span>
<span class="pl-k">match</span> v <span class="pl-kos">{</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> => <span class="pl-c1">1</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>_x<span class="pl-kos">,</span> ..xs<span class="pl-kos">]</span> => <span class="pl-c1">1</span> + <span class="pl-en">count_members</span><span class="pl-kos">(</span>xs<span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">With <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/ca3e557/hovercard" href="https://github.com/rust-lang/rust/commit/ca3e557"><tt>ca3e557</tt></a>, it fails with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array_match.rs:9:5: 9:15 error: unreachable pattern
array_match.rs:9 [_x, ..xs] => 1 + count_members(xs)
^~~~~~~~~~
error: aborting due to previous error"><pre class="notranslate"><code class="notranslate">array_match.rs:9:5: 9:15 error: unreachable pattern
array_match.rs:9 [_x, ..xs] => 1 + count_members(xs)
^~~~~~~~~~
error: aborting due to previous error
</code></pre></div>
<p dir="auto">I'll try to bisect and get to a single commit</p> | 1 |
<pre class="notranslate">see <a href="https://golang.org/issue/6873" rel="nofollow">issue #6873</a>, and <a href="https://golang.org/cl/36810043/" rel="nofollow">https://golang.org/cl/36810043/</a>.
> We already have these in pkg/os, also with this TERRIBLE_CASE. Let's stop the
bleeding.
> In Go 2 we could move them and fix the case or maybe even change the signature to
not be so C-like.</pre> | <p dir="auto">When performing a clean build of our project with GO15VENDOREXPERIMENT=1 we need to run "go install" twice. The first time always fails in cgo-related compile or link steps. The second time always works fine.</p>
<p dir="auto">I'm running "go version go1.5beta2 linux/amd64".</p>
<p dir="auto">The error from cgo is usually different from run to run. I've also seen cgo crash with a nil pointer error. These are the environment variables we set when building:</p>
<p dir="auto">BUILD=//home/adgar/go/src//vendor/libgit2/build<br>
PCFILE=//home/adgar/go/src//vendor/libgit2/build/libgit2.pc<br>
PKG_CONFIG_PATH=//home/adgar/go/src//vendor/libgit2/build:<br>
FLAGS='-L//home/adgar/go/src//vendor/libgit2/install/lib -lgit2 -lcurl -lrt -lssl -lcrypto -ldl -lz '<br>
CGO_LDFLAGS='//home/adgar/go/src//vendor/libgit2/build/libgit2.a -L//home/adgar/go/src//vendor/libgit2/build -L//home/adgar/go/src//vendor/libgit2/install/lib -lgit2 -lcurl -lrt -lssl -lcrypto -ldl -lz '<br>
CGO_CFLAGS=-I//home/adgar/go/src//vendor/libgit2/include</p>
<p dir="auto">Here are 3 example errors I've seen in the past ~5 minutes of reproducing the issue.</p>
<p dir="auto">[run 1]<br>
cannot parse gcc output $WORK//vendor/github.com/libgit2/git2go/_obj//<em>cgo</em>.o as ELF, Mach-O, PE object</p>
<p dir="auto">[run 2]<br>
vendor/github.com/libgit2/git2go/diff.go:20:31: unable to find value of constant C.GIT_DIFF_FLAG_BINARY<br>
vendor/github.com/libgit2/git2go/diff.go:21:31: unable to find value of constant C.GIT_DIFF_FLAG_NOT_BINARY<br>
vendor/github.com/libgit2/git2go/diff.go:22:31: unable to find value of constant C.GIT_DIFF_FLAG_VALID_ID<br>
vendor/github.com/libgit2/git2go/diff.go:42:38: unable to find value of constant C.GIT_DIFF_LINE_CONTEXT<br>
vendor/github.com/libgit2/git2go/diff.go:43:38: unable to find value of constant C.GIT_DIFF_LINE_ADDITION<br>
vendor/github.com/libgit2/git2go/diff.go:44:38: unable to find value of constant C.GIT_DIFF_LINE_DELETION<br>
vendor/github.com/libgit2/git2go/diff.go:45:38: unable to find value of constant C.GIT_DIFF_LINE_CONTEXT_EOFNL<br>
vendor/github.com/libgit2/git2go/diff.go:46:38: unable to find value of constant C.GIT_DIFF_LINE_ADD_EOFNL<br>
vendor/github.com/libgit2/git2go/diff.go:47:38: unable to find value of constant C.GIT_DIFF_LINE_DEL_EOFNL<br>
vendor/github.com/libgit2/git2go/diff.go:49:33: unable to find value of constant C.GIT_DIFF_LINE_FILE_HDR<br>
vendor/github.com/libgit2/git2go/diff.go:50:33: unable to find value of constant C.GIT_DIFF_LINE_HUNK_HDR<br>
vendor/github.com/libgit2/git2go/diff.go:51:33: unable to find value of constant C.GIT_DIFF_LINE_BINARY<br>
vendor/github.com/libgit2/git2go/diff.go:62:26: type C.git_diff_file: undefined C type 'git_diff_file'<br>
vendor/github.com/libgit2/git2go/diff.go:64:10: call of non-function C.GoString<br>
vendor/github.com/libgit2/git2go/diff.go:80:28: type C.git_diff_delta: undefined C type 'git_diff_delta'<br>
vendor/github.com/libgit2/git2go/diff.go:98:26: type C.git_diff_hunk: undefined C type 'git_diff_hunk'<br>
vendor/github.com/libgit2/git2go/diff.go:104:13: call of non-function C.GoStringN<br>
panic: runtime error: invalid memory address or nil pointer dereference<br>
[signal 0xb code=0x1 addr=0x0 pc=0x40ec96]</p>
<p dir="auto">goroutine 1 [running]:<br>
main.(_Package).rewriteRef(0xc8200942a0, 0xc8202fc300)<br>
//home/adgar/go15/go/src/cmd/cgo/gcc.go:610 +0x1466<br>
main.(_Package).Translate(0xc8200942a0, 0xc8202fc300)<br>
//home/adgar/go15/go/src/cmd/cgo/gcc.go:170 +0x197<br>
main.main()<br>
//home/adgar/go15/go/src/cmd/cgo/main.go:269 +0x1059</p>
<p dir="auto">[run 3, mojibaked]</p>
<h1 dir="auto">/cmd/ws-daemon</h1>
<p dir="auto">//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.�): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a���): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.aþ �): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(ü ): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(�8<br>
): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(X<br>
): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(ex<br>
): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(�<br>
%p�<br>
): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(�°<br>
2): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a( <br>
¡): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(<br>
): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(E¬): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(W.<br>
): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(<br>
=�): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(£.<br>
): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(<br>
«�): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(0/<br>
): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(<br>
Ə): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(¤/<br>
): not an object file<br>
//home/adgar/go/pkg/linux_amd64//vendor/github.com/libgit2/git2go.a(<br>
��): not an object file<br>
//home/adgar/go15/go/pkg/tool/linux_amd64/link: too many errors</p> | 0 |
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">bug</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">My application consists of two parts. The main web application and a module which gets dynamically loaded into the web application.<br>
Both web application and the module uses React 16.9.0.<br>
The module is loaded into the web application using React.lazy() and dynamic import() statement.<br>
When the module is loaded the application crashes with the following message in the console.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5545438/64320589-39381700-d002-11e9-9026-33da5388496c.png"><img src="https://user-images.githubusercontent.com/5545438/64320589-39381700-d002-11e9-9026-33da5388496c.png" alt="Lazy loading demo" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (<a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>) or CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example below:</strong></p>
<p dir="auto">To reproduce the issue, we require an application and 2 modules each having their own build.<br>
Therefore a demo couldn't be created in codesandbox. I've attached a demo which can be used to reproduce the issue.<br>
<a href="https://github.com/facebook/react/files/3577981/lazy-loading.zip">lazy-loading.zip</a></p>
<ol dir="auto">
<li>Download the attached demo app.</li>
<li>Navigate to "\app\modules\module1" and "\app\modules\module1" folders and run "npm install" and "npm build" to build the modules.</li>
<li>Navigate to "\app" folder and run "npm install" and "npm start" to run the main app.</li>
<li>Open the dev tools and Browse to <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a>.</li>
<li>Application will try to load the module which uses react hooks and crashes. The error message in the above screenshot will be displayed in the console.</li>
<li>In app.jsx comment the line < LazyModule1 /> and un-comment the line < LazyModule2 />. Now the application will try to load the module which does not use react hooks.</li>
<li>The app will now load successfully.</li>
</ol>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">When both the app and the dynamically imported module is using the latest version of react the app should load without crashing.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p>
<p dir="auto">React - v16.9.0<br>
Browser - Chrome<br>
OS - Windows 10</p> | <h1 dir="auto">To people coming from search: please <a href="https://reactjs.org/warnings/invalid-hook-call-warning.html" rel="nofollow">read this page first</a>. It contains most common possible fixes!</h1>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">Enhancement</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">I had multiple instances of React by mistake.</p>
<p dir="auto">When trying to use hooks, got this error:<br>
<code class="notranslate">hooks can only be called inside the body of a function component</code></p>
<p dir="auto">Which is not correct since I was using function components. Took me a while to find the real cause of the issue.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Show the correct error message. Maybe detect that the app has multiple instances of React and say that it may be the reason of bugs.</p> | 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-make-images-mobile-responsive%60" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-make-images-mobile-responsive`</a> has an issue. Once completed, clicking <code class="notranslate">Go to my next challenge</code> takes you to <a href="http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-push" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-push</a> rather than the next challenge.</p> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions</a> has an issue.</p>
<p dir="auto">We have this regular expression:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/the+/gi;"><pre class="notranslate"><code class="notranslate">/the+/gi;
</code></pre></div>
<p dir="auto">And that's how it's explained:</p>
<blockquote>
<p dir="auto">Let's break this down a bit:</p>
<p dir="auto"><code class="notranslate">the</code> is the pattern we want to match.<br>
<code class="notranslate">+</code> means we want to find one or more occurrences of this pattern.</p>
</blockquote>
<p dir="auto">But it's incorrect. <code class="notranslate">+</code> in this expression is really says that we want to match one or more <code class="notranslate">e</code> after <code class="notranslate">th</code>.</p>
<p dir="auto">Also, i think there is mistype in this challenge title - there should be <code class="notranslate">Shift</code> word instead of <code class="notranslate">Sift</code>.</p> | 0 |
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mwarkentin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mwarkentin">@mwarkentin</a> on 2016-03-28T13:51:44Z</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">homebrew</p>
<h5 dir="auto">DESCRIPTION</h5>
<p dir="auto">It'd be nice if we could use the <code class="notranslate">brew bundle</code> command with ansible. Thoughts on if this should be a new module or included with the existing homebrew module?</p>
<p dir="auto"><code class="notranslate">brew bundle</code> options:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ brew bundle --help
brew bundle [-v|--verbose] [--file=<path>|--global]
brew bundle dump [--force] [--file=<path>|--global]
brew bundle cleanup [--force] [--file=<path>|--global]
brew bundle check [--file=<path>|--global]
brew bundle [--version]
brew bundle [-h|--help]
Usage:
Bundler for non-Ruby dependencies from Homebrew
brew bundle install or upgrade all dependencies in a Brewfile
brew bundle dump write all installed casks/formulae/taps into a Brewfile
brew bundle cleanup uninstall all dependencies not listed in a Brewfile
brew bundle check check if all dependencies are installed in a Brewfile
Options:
-v, --verbose print verbose output
--force uninstall dependencies or overwrite existing Brewfile
--file=<path> set Brewfile path
--global set Brewfile path to $HOME/.Brewfile
-h, --help show this help message and exit
--version show the version of homebrew-bundle"><pre class="notranslate"><code class="notranslate">$ brew bundle --help
brew bundle [-v|--verbose] [--file=<path>|--global]
brew bundle dump [--force] [--file=<path>|--global]
brew bundle cleanup [--force] [--file=<path>|--global]
brew bundle check [--file=<path>|--global]
brew bundle [--version]
brew bundle [-h|--help]
Usage:
Bundler for non-Ruby dependencies from Homebrew
brew bundle install or upgrade all dependencies in a Brewfile
brew bundle dump write all installed casks/formulae/taps into a Brewfile
brew bundle cleanup uninstall all dependencies not listed in a Brewfile
brew bundle check check if all dependencies are installed in a Brewfile
Options:
-v, --verbose print verbose output
--force uninstall dependencies or overwrite existing Brewfile
--file=<path> set Brewfile path
--global set Brewfile path to $HOME/.Brewfile
-h, --help show this help message and exit
--version show the version of homebrew-bundle
</code></pre></div>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143982474" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-extras/issues/1921" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-extras/issues/1921/hovercard" href="https://github.com/ansible/ansible-modules-extras/issues/1921">ansible/ansible-modules-extras#1921</a></p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">network/lldp.py</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.2.0
config file =
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.2.0
config file =
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">LLDP module fails with a 'str' object does not support item assignment in some cases. Occasionally when looping through the lldpctl output, it runs across duplicate variables. When it tries to assign the new variable a previously assigned name, it throws an exception. I was able to get around this by using a try except.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Full command output here for debugging:</p>
<p dir="auto"><a href="https://gist.github.com/antonym/01e1663c8790c65063ba2d3177fd9457">https://gist.github.com/antonym/01e1663c8790c65063ba2d3177fd9457</a></p>
<p dir="auto">Should be able to put that into a file, change up the module to cat that file out and you'll see the failure.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- name: Ensure LLDP started
service:
name: lldpd
state: started
- name: Gather LLDP facts about server
lldp:"><pre class="notranslate">---
- <span class="pl-ent">name</span>: <span class="pl-s">Ensure LLDP started</span>
<span class="pl-ent">service</span>:
<span class="pl-ent">name</span>: <span class="pl-s">lldpd</span>
<span class="pl-ent">state</span>: <span class="pl-s">started</span>
- <span class="pl-ent">name</span>: <span class="pl-s">Gather LLDP facts about server</span>
<span class="pl-ent">lldp</span>:</pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Expected LLDP info to be captured.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: 'str' object does not support item assignment<br>
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n File "/tmp/ansible_9j3yPm/ansible_module_lldp.py", line 94, in \n main()\n File "/tmp/ansible_9j3yPm/ansible_module_lldp.py", line 83, in main\n lldp_output = gather_lldp()\n File "/tmp/ansible_9j3yPm/ansible_module_lldp.py", line 76, in gather_lldp\n current_dict[final] = value\nTypeError: 'str' object does not support item assignment\n", "module_stdout": "", "msg": "MODULE FAILURE"}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@localhost:~# lldpctl -f keyvalue
lldp.eno1.via=LLDP
lldp.eno1.rid=2
lldp.eno1.age=0 day, 03:33:53
lldp.eno1.chassis.mac=54:7f:ee:a5:79:6c
lldp.eno1.chassis.name=servers-lab-1.sat6
lldp.eno1.chassis.descr=Cisco Nexus Operating System (NX-OS) Software 6.0(2)U5(1)
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2015, Cisco Systems, Inc. All rights reserved.
lldp.eno1.chassis.mgmt-ip=10.127.5.250
lldp.eno1.chassis.Bridge.enabled=on
lldp.eno1.chassis.Router.enabled=on
lldp.eno1.port.ifname=Ethernet1/5
lldp.eno1.port.descr=Ethernet1/5
lldp.eno1.vlan.vlan-id=906
lldp.eno1.vlan.pvid=yes
lldp.eno1.unknown-tlvs.unknown-tlv.oui=00,01,42
lldp.eno1.unknown-tlvs.unknown-tlv.subtype=1
lldp.eno1.unknown-tlvs.unknown-tlv.len=1
lldp.eno1.unknown-tlvs.unknown-tlv=01
lldp.eno1.unknown-tlvs.unknown-tlv.oui=00,01,42 <- fails parsing this line because four lines up, same variable
"><pre class="notranslate"><code class="notranslate">root@localhost:~# lldpctl -f keyvalue
lldp.eno1.via=LLDP
lldp.eno1.rid=2
lldp.eno1.age=0 day, 03:33:53
lldp.eno1.chassis.mac=54:7f:ee:a5:79:6c
lldp.eno1.chassis.name=servers-lab-1.sat6
lldp.eno1.chassis.descr=Cisco Nexus Operating System (NX-OS) Software 6.0(2)U5(1)
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2015, Cisco Systems, Inc. All rights reserved.
lldp.eno1.chassis.mgmt-ip=10.127.5.250
lldp.eno1.chassis.Bridge.enabled=on
lldp.eno1.chassis.Router.enabled=on
lldp.eno1.port.ifname=Ethernet1/5
lldp.eno1.port.descr=Ethernet1/5
lldp.eno1.vlan.vlan-id=906
lldp.eno1.vlan.pvid=yes
lldp.eno1.unknown-tlvs.unknown-tlv.oui=00,01,42
lldp.eno1.unknown-tlvs.unknown-tlv.subtype=1
lldp.eno1.unknown-tlvs.unknown-tlv.len=1
lldp.eno1.unknown-tlvs.unknown-tlv=01
lldp.eno1.unknown-tlvs.unknown-tlv.oui=00,01,42 <- fails parsing this line because four lines up, same variable
</code></pre></div> | 0 |
<p dir="auto"><a href="https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps">Add Flutter to existing apps</a> explains how to use <code class="notranslate">FlutterViewController</code> (in Swift/Objective-C) or <code class="notranslate">Flutter.createView</code> (in Kotlin/Java) to create a Flutter view from an existing native app codebase. When creating a new view/screen, rarely is the user's activity from that screen going to be completely isolated from the rest of the app. Normally I would want to pass data to that screen via something like dependency injection, and then receive the results as data back in the native app codebase.</p>
<p dir="auto">In Swift, when creating a new screen, I would normally provide it with the data it needs by passing an object into the initializer of a <code class="notranslate">UIViewController</code> subclass. <code class="notranslate">FlutterViewController</code> takes no arguments to replicate that pattern. To receive data back, I would set a <code class="notranslate">delegate</code> on the <code class="notranslate">UIViewController</code> subclass. The <code class="notranslate">delegate</code> would have one of its methods called when the screen is ready to be dismissed, and the results from that screen would be passed as arguments into the <code class="notranslate">delegate</code> method. The <code class="notranslate">delegate</code> would then be responsible for dismissing the screen.</p>
<p dir="auto">From what I've found online, the only way to pass data between Flutter and a native codebase is by <a href="https://flutter.io/docs/development/platform-integration/platform-channels" rel="nofollow">writing custom platform-specific code</a>. So for my Flutter screen to receive data and send it back upon dismissal, I would have to manage separate asynchronous calls between Swift/Kotlin and Dart before the Flutter view is created, and before it is dismissed. This seems relatively cumbersome. Is there a better way?</p> | <p dir="auto">[This is very similar to http://github.com/<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="307365660" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/15798" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/15798/hovercard" href="https://github.com/flutter/flutter/issues/15798">/issues/15798</a>]</p>
<p dir="auto">I wanted to open a new issue for this because the issue above is quite generic. Our clients have been complaining that ability to only send strings down is too limiting from API point of view. They would love to have initialRoute (or some similar mechanism) to support protocol buffers.</p> | 1 |
<p dir="auto">Some operations on recarray views of structured arrays leak memory.</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
import resource
# make a random structured array/recarray
arr = np.array(np.vstack(np.random.normal(size=10000000)), dtype=[("x", float), ("y", float)])
rarr = arr.view(np.recarray)
# selection on structured array (works as expected, no memory leak)
def select_arr(rarr):
arr_selection = arr[arr["x"]>0.0]
return
# selection on recarray (leaks memory)
def select_rarr(rarr):
rarr_selection = rarr[rarr.x>0.0]
return
while True:
#select_arr(rarr) # memory stays constant
select_rarr(rarr) # memory continuously increases
print resource.getrusage(resource.RUSAGE_SELF).ru_maxrss"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">resource</span>
<span class="pl-c"># make a random structured array/recarray</span>
<span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">np</span>.<span class="pl-en">vstack</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">10000000</span>)), <span class="pl-s1">dtype</span><span class="pl-c1">=</span>[(<span class="pl-s">"x"</span>, <span class="pl-s1">float</span>), (<span class="pl-s">"y"</span>, <span class="pl-s1">float</span>)])
<span class="pl-s1">rarr</span> <span class="pl-c1">=</span> <span class="pl-s1">arr</span>.<span class="pl-en">view</span>(<span class="pl-s1">np</span>.<span class="pl-s1">recarray</span>)
<span class="pl-c"># selection on structured array (works as expected, no memory leak)</span>
<span class="pl-k">def</span> <span class="pl-en">select_arr</span>(<span class="pl-s1">rarr</span>):
<span class="pl-s1">arr_selection</span> <span class="pl-c1">=</span> <span class="pl-s1">arr</span>[<span class="pl-s1">arr</span>[<span class="pl-s">"x"</span>]<span class="pl-c1">></span><span class="pl-c1">0.0</span>]
<span class="pl-k">return</span>
<span class="pl-c"># selection on recarray (leaks memory)</span>
<span class="pl-k">def</span> <span class="pl-en">select_rarr</span>(<span class="pl-s1">rarr</span>):
<span class="pl-s1">rarr_selection</span> <span class="pl-c1">=</span> <span class="pl-s1">rarr</span>[<span class="pl-s1">rarr</span>.<span class="pl-s1">x</span><span class="pl-c1">></span><span class="pl-c1">0.0</span>]
<span class="pl-k">return</span>
<span class="pl-k">while</span> <span class="pl-c1">True</span>:
<span class="pl-c">#select_arr(rarr) # memory stays constant</span>
<span class="pl-en">select_rarr</span>(<span class="pl-s1">rarr</span>) <span class="pl-c"># memory continuously increases</span>
<span class="pl-k">print</span> <span class="pl-s1">resource</span>.<span class="pl-en">getrusage</span>(<span class="pl-s1">resource</span>.<span class="pl-v">RUSAGE_SELF</span>).<span class="pl-s1">ru_maxrss</span></pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto">Memory usage increases until either the process is killed by OS or the system crashes.</p>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">This behaviour was observed in:<br>
numpy.<strong>version</strong> = 1.15.2<br>
sys.version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]</p>
<p dir="auto">I tested with an older version of numpy that is also installed on my system and did not see a memory leak:<br>
numpy version = 1.7.1 sys.version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1133" rel="nofollow">http://projects.scipy.org/numpy/ticket/1133</a> on 2009-06-08 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rc">@rc</a>, assigned to unknown.</em></p>
<p dir="auto">This ticket sumarizes the discussion in the numpy mailing list [1], concerning allowing non-unique arrays as function arguments, better naming conventions and documentation.</p>
<ol dir="auto">
<li>
<p dir="auto">the functions with _nu suffix should be merged with the versions expecting unique arrays as input, example:</p>
<p dir="auto">def intersect1d(ar1, ar2, assume_unique=False):<br>
if not assume_unique:<br>
return intersect1d_nu(ar1, ar2)<br>
else:<br>
... # the current code</p>
</li>
</ol>
<p dir="auto">The name of the keyword argument is yet to be resolved, other proposition so far were:</p>
<p dir="auto">isunique=False or just unique=False (Josef)<br>
ar1_unique=False, ar2_unique=False (rc)</p>
<ol dir="auto">
<li>
<p dir="auto">deprecate the *_nu functions</p>
</li>
<li>
<p dir="auto">alias setmember1d_nu as <code class="notranslate">in1d</code> or <code class="notranslate">isin1d</code>, because the function is a "in" and not a set operation</p>
</li>
<li>
<p dir="auto">guarantee that setdiff1d works for non-unique arrays (even when<br>
implementation changes), and change documentation</p>
</li>
<li>
<p dir="auto">union1d, ediff1d and unique1d are defined for non-unique arrays - document it properly</p>
</li>
<li>
<p dir="auto">define np.setxor1d(np.unique(a), np.unique(b)) to become<br>
np.setxor1d(a, b, assume_unique=False)</p>
</li>
<li>
<p dir="auto">module name</p>
<blockquote>
<blockquote>
<p dir="auto">rename arraysetops to something easier to read like setfun. I think it<br>
would only affect internal changes since all functions are exported to<br>
the main numpy name space<br>
+1e-4 (I got used to arrayse_tops)</p>
</blockquote>
</blockquote>
</li>
</ol>
<p dir="auto">+0 (internal change only). Other numpy/scipy submodules containing a bunch of functions are called *pack (fftpack, arpack, lapack), *alg (linalg), *utils. *fun is used comonly in the matlab world.</p>
<ol dir="auto">
<li>keep docs in sync with correct usage</li>
</ol>
<p dir="auto">[1] <a href="mailto:[email protected]">[email protected]</a>, thread "extract elements of an array that are contained in another array?"</p> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">actual version on <a href="http://www.typescriptlang.org/Playground" rel="nofollow">http://www.typescriptlang.org/Playground</a></p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// A self-contained demonstration of the problem follows...
interface Props {
options: {
name: string | boolean
}
}
let v: Props
if (typeof v.options.name === "string") {
v.options.name.indexOf("123")
}"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span>
<span class="pl-k">interface</span> <span class="pl-smi">Props</span> <span class="pl-kos">{</span>
<span class="pl-c1">options</span>: <span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-smi">boolean</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">v</span>: <span class="pl-smi">Props</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">v</span><span class="pl-kos">.</span><span class="pl-c1">options</span><span class="pl-kos">.</span><span class="pl-c1">name</span> <span class="pl-c1">===</span> <span class="pl-s">"string"</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">v</span><span class="pl-kos">.</span><span class="pl-c1">options</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">.</span><span class="pl-en">indexOf</span><span class="pl-kos">(</span><span class="pl-s">"123"</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong><br>
No error</p>
<p dir="auto"><strong>Actual behavior:</strong><br>
Error: Property "indexOf" does not exist on type "string | boolean"</p> | <p dir="auto">I just found out that property access expressions doesn't work on type predicate functions and <code class="notranslate">instanceof</code> type guards.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
class A {
propA: number;
}
class B {
propB: number;
}
class C {
propC: A;
}
declare function isA(p1: any): p1 is D;
interface D {
a: A | B
b: A | C;
}
let d: D;
if (isA(d.b)) {
d.b.propA; //error
}
function foo(d: D) {
if (d.b instanceof A) {
d.b.propA // error
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-c1">propA</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-c1">propB</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span>
<span class="pl-c1">propC</span>: <span class="pl-smi">A</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-s1">isA</span><span class="pl-kos">(</span><span class="pl-s1">p1</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-s1">p1</span> is <span class="pl-smi">D</span><span class="pl-kos">;</span>
<span class="pl-k">interface</span> <span class="pl-smi">D</span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span>: <span class="pl-smi">A</span> <span class="pl-c1">|</span> <span class="pl-smi">B</span>
<span class="pl-c1">b</span>: <span class="pl-smi">A</span> <span class="pl-c1">|</span> <span class="pl-smi">C</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">d</span>: <span class="pl-smi">D</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isA</span><span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">.</span><span class="pl-c1">propA</span><span class="pl-kos">;</span> <span class="pl-c">//error</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">d</span>: <span class="pl-smi">D</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">b</span> <span class="pl-k">instanceof</span> <span class="pl-smi">A</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">d</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">.</span><span class="pl-c1">propA</span> <span class="pl-c">// error</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">I'm not sure if there is an easy fix on this problem. We are provided just a symbol when narrowing. That symbol represent the left most expression and then we walk up the if statement. There is no easy way of controlling symbol by symbol on each namespace in a property access expression in the if-statement-body. Because there is no info about the property access expression provided in <code class="notranslate">getTypeOfSymbolAtLocation(symbol: Symbol, node: Node)</code>.</p>
<p dir="auto">I also found that type assertion expressions are also not working in type predicate functions. But I will land a fix on that.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (isA(<A>union)) {
a = union;
}
if (isA(union as A)) {
a = union;
}"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isA</span><span class="pl-kos">(</span><span class="pl-kos"><</span><span class="pl-smi">A</span><span class="pl-kos">></span><span class="pl-s1">union</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">union</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">isA</span><span class="pl-kos">(</span><span class="pl-s1">union</span> <span class="pl-k">as</span> <span class="pl-smi">A</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">union</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/41872440/216619913-99568f8c-8a82-42ab-ae7a-dd56846dd395.png"><img src="https://user-images.githubusercontent.com/41872440/216619913-99568f8c-8a82-42ab-ae7a-dd56846dd395.png" alt="image" style="max-width: 100%;"></a><br>
I have 8 gpu's in this machine.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/41872440/216619996-7af22496-7fb8-4b6d-90f2-3606846b3cdc.png"><img src="https://user-images.githubusercontent.com/41872440/216619996-7af22496-7fb8-4b6d-90f2-3606846b3cdc.png" alt="image" style="max-width: 100%;"></a><br>
I think its not taking all 8 gpu's. Already tried changing batch_sizes and with multiple of 8</p>
<p dir="auto"><em>Originally posted by @namanpundir in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1566659240" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/21407" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/21407/hovercard?comment_id=1415898415&comment_type=issue_comment" href="https://github.com/huggingface/transformers/issues/21407#issuecomment-1415898415">#21407 (comment)</a></em></p> | <h3 dir="auto">System Info</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- OS Platform and Distribution: Amazon Linux 2
- ONNX version 1.11.0
- Python version: 3.8
- Transformers 4.17"><pre class="notranslate">- OS Platform and Distribution: Amazon Linux 2
- ONNX version 1.11.0
- Python version: 3.8
- Transformers 4.17</pre></div>
<h3 dir="auto">Who can help?</h3>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/LysandreJik/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LysandreJik">@LysandreJik</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patil-suraj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patil-suraj">@patil-suraj</a></p>
<h3 dir="auto">Describe the bug</h3>
<p dir="auto">When I try and convert <code class="notranslate">microsoft/deberta-v3-large</code> to onnx format, the file size doubles to 1.8Gb while the pytorch file size is 800Mb.<br>
There was an issue <a href="https://github.com/onnx/onnx/issues/3278#issuecomment-781948998" data-hovercard-type="issue" data-hovercard-url="/onnx/onnx/issues/3278/hovercard">here</a> that was resolved by removing the duplication of weights. However, trying this code snippet in the deberta case only reduced the file size from 1.8Gb to 1.6Gb.</p>
<h3 dir="auto">Information</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The official example scripts</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li>
</ul>
<h3 dir="auto">Tasks</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li>
</ul>
<h3 dir="auto">Reproduction</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from collections import OrderedDict
from typing import Mapping
from pathlib import Path
from transformers.onnx import export
from transformers.onnx import OnnxConfig
from transformers import AutoTokenizer, AutoModel, AutoConfig
onnx_path = Path("deberta.onnx")
class DebertaConfig(OnnxConfig):
@property
def inputs(self) -> Mapping[str, Mapping[int, str]]:
return OrderedDict(
[
("input_ids", {0: "batch", 1: "sequence"}),
("attention_mask", {0: "batch", 1: "sequence"}),
("token_type_ids", {0: "batch", 1: "sequence"}),
]
)
config = AutoConfig.from_pretrained("microsoft/deberta-v3-large")
base_model = AutoModel.from_pretrained("microsoft/deberta-v3-large")
tokenizer = AutoTokenizer.from_pretrained("microsoft/deberta-v3-large")
onnx_config = DebertaConfig(config)
onnx_inputs, onnx_outputs = export(tokenizer, base_model, onnx_config, 15, onnx_path)"><pre class="notranslate"><code class="notranslate">from collections import OrderedDict
from typing import Mapping
from pathlib import Path
from transformers.onnx import export
from transformers.onnx import OnnxConfig
from transformers import AutoTokenizer, AutoModel, AutoConfig
onnx_path = Path("deberta.onnx")
class DebertaConfig(OnnxConfig):
@property
def inputs(self) -> Mapping[str, Mapping[int, str]]:
return OrderedDict(
[
("input_ids", {0: "batch", 1: "sequence"}),
("attention_mask", {0: "batch", 1: "sequence"}),
("token_type_ids", {0: "batch", 1: "sequence"}),
]
)
config = AutoConfig.from_pretrained("microsoft/deberta-v3-large")
base_model = AutoModel.from_pretrained("microsoft/deberta-v3-large")
tokenizer = AutoTokenizer.from_pretrained("microsoft/deberta-v3-large")
onnx_config = DebertaConfig(config)
onnx_inputs, onnx_outputs = export(tokenizer, base_model, onnx_config, 15, onnx_path)
</code></pre></div>
<h3 dir="auto">Expected behavior</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Expect the model.onnx file to be ~800Mb like the pytorch file."><pre class="notranslate">Expect the model.onnx file to be <span class="pl-k">~</span>800Mb like the pytorch file.</pre></div> | 0 |
<p dir="auto">As it uses the request attributes it still detects it as the controller set by the router, if you forward to another controller it only detected as a sub request and not visible at first glance on the web dev toolbar. It could/should show any forwarded controllers/sub requests or at least the final controller that renders a response in the expanded information (on the web developer toolbar).</p> | <p dir="auto">i keep stumbling over this use case:</p>
<p dir="auto"><a href="https://github.com/liip/LiipFunctionalTestBundle/pull/70/files#L7R25">https://github.com/liip/LiipFunctionalTestBundle/pull/70/files#L7R25</a><br>
<a href="https://github.com/liip/LiipFunctionalTestBundle/pull/70/files#L1R13">https://github.com/liip/LiipFunctionalTestBundle/pull/70/files#L1R13</a></p>
<p dir="auto">what is the best practice here? is there one? is there something that we could change to make this easier? specifically i would love to avoid duplicating the definition. guess we could clone the original <code class="notranslate">test.client</code> definition in the extension?</p> | 0 |
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">poc should allow us to consolidate <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384627265" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2670" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2670/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2670">#2670</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384629557" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2952" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2952/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2952">#2952</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384631430" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3149" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3149/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3149">#3149</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384630495" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3050" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3050/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3050">#3050</a>.</p>
<p dir="auto">the new descriptors include the ability to cache the result per class, or to do "cascade", guarantees that the callable fn is called only once per target class, as well as to name attributes that are set up after the mapping is complete, so that relationship and column_property declared_attrs have the whole mapping to work with when they are called. and the whole thing doesn't modify any existing functionality, only adds new things we can take time to stabilize. win win win win.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base, declared_attr, has_inherited_table
Base = declarative_base()
class VehicleModel(Base):
__tablename__ = "vehicle_model"
id = Column(Integer, primary_key=True)
name = Column(String(20))
class VehicleInfo(object):
vehicle_plate_region = Column(String(5))
vehicle_plate = Column(String(20))
@declared_attr.column
def vehicle_model_id(cls):
return Column(Integer, ForeignKey("vehicle_model.id"))
@declared_attr.property
def vehicle_model(cls):
# 1. called after the class is fully mapped
# 2. called only once for each class
assert cls.__table__ is not None and \
cls.__table__.c.vehicle_model_id.shares_lineage(
cls.vehicle_model_id.__clause_element__()
)
return relationship(VehicleModel, foreign_keys=[cls.vehicle_model_id])
@declared_attr.column.cascading
def id(cls):
if has_inherited_table(cls):
return Column(Integer, ForeignKey("vehicle.id"), primary_key=True)
else:
return Column(Integer, primary_key=True)
class Vehicle(VehicleInfo, Base):
__tablename__ = 'vehicle'
class SubVehicle(Vehicle):
__tablename__ = 'subveh'
@declared_attr.property
def some_other_thing(cls):
# called way at the end
assert cls.id.__clause_element__().references(Vehicle.__table__.c.id)
return column_property(cls.id)
configure_mappers()
"><pre class="notranslate"><code class="notranslate">from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base, declared_attr, has_inherited_table
Base = declarative_base()
class VehicleModel(Base):
__tablename__ = "vehicle_model"
id = Column(Integer, primary_key=True)
name = Column(String(20))
class VehicleInfo(object):
vehicle_plate_region = Column(String(5))
vehicle_plate = Column(String(20))
@declared_attr.column
def vehicle_model_id(cls):
return Column(Integer, ForeignKey("vehicle_model.id"))
@declared_attr.property
def vehicle_model(cls):
# 1. called after the class is fully mapped
# 2. called only once for each class
assert cls.__table__ is not None and \
cls.__table__.c.vehicle_model_id.shares_lineage(
cls.vehicle_model_id.__clause_element__()
)
return relationship(VehicleModel, foreign_keys=[cls.vehicle_model_id])
@declared_attr.column.cascading
def id(cls):
if has_inherited_table(cls):
return Column(Integer, ForeignKey("vehicle.id"), primary_key=True)
else:
return Column(Integer, primary_key=True)
class Vehicle(VehicleInfo, Base):
__tablename__ = 'vehicle'
class SubVehicle(Vehicle):
__tablename__ = 'subveh'
@declared_attr.property
def some_other_thing(cls):
# called way at the end
assert cls.id.__clause_element__().references(Vehicle.__table__.c.id)
return column_property(cls.id)
configure_mappers()
</code></pre></div>
<p dir="auto">poc patch, however still needs integration for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384627265" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2670" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2670/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2670">#2670</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/ext/declarative/api.py b/lib/sqlalchemy/ext/declarative/api.py
index daf8bff..251b06f 100644
--- a/lib/sqlalchemy/ext/declarative/api.py
+++ b/lib/sqlalchemy/ext/declarative/api.py
@@ -13,7 +13,7 @@ from ...orm import synonym as _orm_synonym, mapper,\
interfaces, properties
from ...orm.util import polymorphic_union
from ...orm.base import _mapper_or_none
-from ...util import OrderedDict
+from ...util import OrderedDict, classproperty
from ... import exc
import weakref
@@ -164,6 +164,45 @@ class declared_attr(interfaces._MappedAttribute, property):
def __get__(desc, self, cls):
return desc.fget(cls)
+ @classproperty
+ def column(cls):
+ return _declared_column
+
+ @classproperty
+ def property(cls):
+ return _declared_property
+
+ defer_defer_defer = False
+
+
+class _memoized_declared_attr(declared_attr):
+ def __init__(self, fget, cascading=False):
+ super(_memoized_declared_attr, self).__init__(fget)
+ self.reg = weakref.WeakKeyDictionary()
+ self._cascading = cascading
+
+ def __get__(desc, self, cls):
+ if desc.defer_defer_defer:
+ return desc
+ elif cls in desc.reg:
+ return desc.reg[cls]
+ else:
+ desc.reg[cls] = obj = desc.fget(cls)
+ return obj
+
+ @classproperty
+ def cascading(cls):
+ return lambda decorated: cls(decorated, cascading=True)
+
+
+class _declared_column(_memoized_declared_attr):
+ pass
+
+
+class _declared_property(_memoized_declared_attr):
+ defer_defer_defer = True
+
+
def declarative_base(bind=None, metadata=None, mapper=None, cls=object,
name='Base', constructor=_declarative_constructor,
diff --git a/lib/sqlalchemy/ext/declarative/base.py b/lib/sqlalchemy/ext/declarative/base.py
index 94baeeb..cee2263 100644
--- a/lib/sqlalchemy/ext/declarative/base.py
+++ b/lib/sqlalchemy/ext/declarative/base.py
@@ -33,7 +33,7 @@ def _declared_mapping_info(cls):
def _as_declarative(cls, classname, dict_):
- from .api import declared_attr
+ from .api import declared_attr, _memoized_declared_attr
# dict_ will be a dictproxy, which we can't write to, and we need to!
dict_ = dict(dict_)
@@ -132,6 +132,14 @@ def _as_declarative(cls, classname, dict_):
"column_property(), relationship(), etc.) must "
"be declared as @declared_attr callables "
"on declarative mixin classes.")
+ elif isinstance(obj, _memoized_declared_attr): # and \
+ if obj._cascading:
+ dict_[name] = ret = obj.__get__(obj, cls)
+ else:
+ dict_[name] = ret = getattr(cls, name)
+ if isinstance(ret, (Column, MapperProperty)) and \
+ ret.doc is None:
+ ret.doc = obj.__doc__
elif isinstance(obj, declarative_props):
dict_[name] = ret = \
column_copies[obj] = getattr(cls, name)
@@ -148,6 +156,7 @@ def _as_declarative(cls, classname, dict_):
clsregistry.add_class(classname, cls)
our_stuff = util.OrderedDict()
+ add_later = util.OrderedDict()
for k in list(dict_):
@@ -157,7 +166,10 @@ def _as_declarative(cls, classname, dict_):
value = dict_[k]
if isinstance(value, declarative_props):
- value = getattr(cls, k)
+ if value.defer_defer_defer:
+ add_later[k] = value
+ else:
+ value = getattr(cls, k)
elif isinstance(value, QueryableAttribute) and \
value.class_ is not cls and \
@@ -324,7 +336,8 @@ def _as_declarative(cls, classname, dict_):
declared_columns,
column_copies,
our_stuff,
- mapper_args_fn)
+ mapper_args_fn,
+ add_later)
if not defer_map:
mt.map()
@@ -339,7 +352,8 @@ class _MapperConfig(object):
inherits,
declared_columns,
column_copies,
- properties, mapper_args_fn):
+ properties, mapper_args_fn,
+ add_later):
self.mapper_cls = mapper_cls
self.cls = cls
self.local_table = table
@@ -348,6 +362,7 @@ class _MapperConfig(object):
self.mapper_args_fn = mapper_args_fn
self.declared_columns = declared_columns
self.column_copies = column_copies
+ self.add_later = add_later
def _prepare_mapper_arguments(self):
properties = self.properties
@@ -410,6 +425,8 @@ class _MapperConfig(object):
self.local_table,
**mapper_args
)
+ for k, v in self.add_later.items():
+ setattr(self.cls, k, v.fget(self.cls))
class _DeferredMapperConfig(_MapperConfig):
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py
index f3af46c..ea8c32f 100644
--- a/lib/sqlalchemy/sql/schema.py
+++ b/lib/sqlalchemy/sql/schema.py
@@ -1161,8 +1161,10 @@ class Column(SchemaItem, ColumnClause):
existing = getattr(self, 'table', None)
if existing is not None and existing is not table:
raise exc.ArgumentError(
- "Column object already assigned to Table '%s'" %
- existing.description)
+ "Column object '%s' already assigned to Table '%s'" % (
+ self.key,
+ existing.description
+ ))
if self.key in table._columns:
col = table._columns.get(self.key)"><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/ext/declarative/api.py b/lib/sqlalchemy/ext/declarative/api.py
index daf8bff..251b06f 100644
--- a/lib/sqlalchemy/ext/declarative/api.py
+++ b/lib/sqlalchemy/ext/declarative/api.py
@@ -13,7 +13,7 @@ from ...orm import synonym as _orm_synonym, mapper,\
interfaces, properties
from ...orm.util import polymorphic_union
from ...orm.base import _mapper_or_none
-from ...util import OrderedDict
+from ...util import OrderedDict, classproperty
from ... import exc
import weakref
@@ -164,6 +164,45 @@ class declared_attr(interfaces._MappedAttribute, property):
def __get__(desc, self, cls):
return desc.fget(cls)
+ @classproperty
+ def column(cls):
+ return _declared_column
+
+ @classproperty
+ def property(cls):
+ return _declared_property
+
+ defer_defer_defer = False
+
+
+class _memoized_declared_attr(declared_attr):
+ def __init__(self, fget, cascading=False):
+ super(_memoized_declared_attr, self).__init__(fget)
+ self.reg = weakref.WeakKeyDictionary()
+ self._cascading = cascading
+
+ def __get__(desc, self, cls):
+ if desc.defer_defer_defer:
+ return desc
+ elif cls in desc.reg:
+ return desc.reg[cls]
+ else:
+ desc.reg[cls] = obj = desc.fget(cls)
+ return obj
+
+ @classproperty
+ def cascading(cls):
+ return lambda decorated: cls(decorated, cascading=True)
+
+
+class _declared_column(_memoized_declared_attr):
+ pass
+
+
+class _declared_property(_memoized_declared_attr):
+ defer_defer_defer = True
+
+
def declarative_base(bind=None, metadata=None, mapper=None, cls=object,
name='Base', constructor=_declarative_constructor,
diff --git a/lib/sqlalchemy/ext/declarative/base.py b/lib/sqlalchemy/ext/declarative/base.py
index 94baeeb..cee2263 100644
--- a/lib/sqlalchemy/ext/declarative/base.py
+++ b/lib/sqlalchemy/ext/declarative/base.py
@@ -33,7 +33,7 @@ def _declared_mapping_info(cls):
def _as_declarative(cls, classname, dict_):
- from .api import declared_attr
+ from .api import declared_attr, _memoized_declared_attr
# dict_ will be a dictproxy, which we can't write to, and we need to!
dict_ = dict(dict_)
@@ -132,6 +132,14 @@ def _as_declarative(cls, classname, dict_):
"column_property(), relationship(), etc.) must "
"be declared as @declared_attr callables "
"on declarative mixin classes.")
+ elif isinstance(obj, _memoized_declared_attr): # and \
+ if obj._cascading:
+ dict_[name] = ret = obj.__get__(obj, cls)
+ else:
+ dict_[name] = ret = getattr(cls, name)
+ if isinstance(ret, (Column, MapperProperty)) and \
+ ret.doc is None:
+ ret.doc = obj.__doc__
elif isinstance(obj, declarative_props):
dict_[name] = ret = \
column_copies[obj] = getattr(cls, name)
@@ -148,6 +156,7 @@ def _as_declarative(cls, classname, dict_):
clsregistry.add_class(classname, cls)
our_stuff = util.OrderedDict()
+ add_later = util.OrderedDict()
for k in list(dict_):
@@ -157,7 +166,10 @@ def _as_declarative(cls, classname, dict_):
value = dict_[k]
if isinstance(value, declarative_props):
- value = getattr(cls, k)
+ if value.defer_defer_defer:
+ add_later[k] = value
+ else:
+ value = getattr(cls, k)
elif isinstance(value, QueryableAttribute) and \
value.class_ is not cls and \
@@ -324,7 +336,8 @@ def _as_declarative(cls, classname, dict_):
declared_columns,
column_copies,
our_stuff,
- mapper_args_fn)
+ mapper_args_fn,
+ add_later)
if not defer_map:
mt.map()
@@ -339,7 +352,8 @@ class _MapperConfig(object):
inherits,
declared_columns,
column_copies,
- properties, mapper_args_fn):
+ properties, mapper_args_fn,
+ add_later):
self.mapper_cls = mapper_cls
self.cls = cls
self.local_table = table
@@ -348,6 +362,7 @@ class _MapperConfig(object):
self.mapper_args_fn = mapper_args_fn
self.declared_columns = declared_columns
self.column_copies = column_copies
+ self.add_later = add_later
def _prepare_mapper_arguments(self):
properties = self.properties
@@ -410,6 +425,8 @@ class _MapperConfig(object):
self.local_table,
**mapper_args
)
+ for k, v in self.add_later.items():
+ setattr(self.cls, k, v.fget(self.cls))
class _DeferredMapperConfig(_MapperConfig):
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py
index f3af46c..ea8c32f 100644
--- a/lib/sqlalchemy/sql/schema.py
+++ b/lib/sqlalchemy/sql/schema.py
@@ -1161,8 +1161,10 @@ class Column(SchemaItem, ColumnClause):
existing = getattr(self, 'table', None)
if existing is not None and existing is not table:
raise exc.ArgumentError(
- "Column object already assigned to Table '%s'" %
- existing.description)
+ "Column object '%s' already assigned to Table '%s'" % (
+ self.key,
+ existing.description
+ ))
if self.key in table._columns:
col = table._columns.get(self.key)
</code></pre></div> | <p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">test:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class A(Base):
__tablename__ = 'a'
id = Column(Integer, primary_key=True)
class B(A):
__tablename__ = 'b'
id = Column(Integer, primary_key=True)
a_id = Column(Integer, ForeignKey('a.id'))
"><pre class="notranslate"><code class="notranslate">from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class A(Base):
__tablename__ = 'a'
id = Column(Integer, primary_key=True)
class B(A):
__tablename__ = 'b'
id = Column(Integer, primary_key=True)
a_id = Column(Integer, ForeignKey('a.id'))
</code></pre></div>
<p dir="auto">note that we don't get the "same named columns" warning for A.id and B.id because our test for this is too simplistic, assuming that in an inheritance scenario, a subtable with the same column should implicitly combine with that of a supertable. I'm not sure if I intended this to be this way for all implicitly combined columns that were in an inheritance situation or somehow thought these would always be tables in the sync condition, but these are separate columns and the "same named" error should still apply. We will make it a warning in 0.9 and an error in 1.0 as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
index 3e93840..1377945 100644
--- a/lib/sqlalchemy/orm/mapper.py
+++ b/lib/sqlalchemy/orm/mapper.py
@@ -1604,13 +1604,17 @@ class Mapper(_InspectionAttr):
prop = self._props.get(key, None)
if isinstance(prop, properties.ColumnProperty):
- if prop.parent is self:
- raise sa_exc.InvalidRequestError(
- "Implicitly combining column %s with column "
- "%s under attribute '%s'. Please configure one "
- "or more attributes for these same-named columns "
- "explicitly."
- % (prop.columns[-1], column, key))
+ if (prop.columns[0], column) not in self._inherits_equated_pairs and \
+ not prop.columns[0].shares_lineage(column):
+ warn_only = prop.parent is not self
+ msg = ("Implicitly combining column %s with column "
+ "%s under attribute '%s'. Please configure one "
+ "or more attributes for these same-named columns "
+ "explicitly." % (prop.columns[-1], column, key))
+ if warn_only:
+ util.warn(msg)
+ else:
+ raise sa_exc.InvalidRequestError(msg)
# existing properties.ColumnProperty from an inheriting
# mapper. make a copy and append our column to it
"><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
index 3e93840..1377945 100644
--- a/lib/sqlalchemy/orm/mapper.py
+++ b/lib/sqlalchemy/orm/mapper.py
@@ -1604,13 +1604,17 @@ class Mapper(_InspectionAttr):
prop = self._props.get(key, None)
if isinstance(prop, properties.ColumnProperty):
- if prop.parent is self:
- raise sa_exc.InvalidRequestError(
- "Implicitly combining column %s with column "
- "%s under attribute '%s'. Please configure one "
- "or more attributes for these same-named columns "
- "explicitly."
- % (prop.columns[-1], column, key))
+ if (prop.columns[0], column) not in self._inherits_equated_pairs and \
+ not prop.columns[0].shares_lineage(column):
+ warn_only = prop.parent is not self
+ msg = ("Implicitly combining column %s with column "
+ "%s under attribute '%s'. Please configure one "
+ "or more attributes for these same-named columns "
+ "explicitly." % (prop.columns[-1], column, key))
+ if warn_only:
+ util.warn(msg)
+ else:
+ raise sa_exc.InvalidRequestError(msg)
# existing properties.ColumnProperty from an inheriting
# mapper. make a copy and append our column to it
</code></pre></div>
<p dir="auto">this is extracted from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384630391" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3041" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3041/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3041">#3041</a>.</p>
<p dir="auto">needs tests for this specific case.</p>
<p dir="auto">patch is attached which modifies quite a <em>lot</em> of tests which suffer from this warning.</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/3042/3042.patch">3042.patch</a></p> | 0 |
<p dir="auto">The customize feature (<a href="http://twitter.github.io/bootstrap/customize.html" rel="nofollow">http://twitter.github.io/bootstrap/customize.html</a>) seems to be broken. I tried a few different configurations (even the default) and received the following in an error.txt:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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!
thanks!
{"type":"Parse","message":"Syntax Error on line 1","index":0,"filename":"bootstrap.css","line":1,"column":0,"extract":[null,"<!DOCTYPE html>","<!--"]}"><pre class="notranslate"><code class="notranslate">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!
thanks!
{"type":"Parse","message":"Syntax Error on line 1","index":0,"filename":"bootstrap.css","line":1,"column":0,"extract":[null,"<!DOCTYPE html>","<!--"]}
</code></pre></div> | <p dir="auto">Tried to download a customised setup but css files are empty once downloaded, the same is true for IE,Safari,FireFox and Chrome. Received a error file with the downloaded zip, message as follows:</p>
<p dir="auto">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!<br>
thanks!<br>
{"type":"Parse","message":"Syntax Error on line 1","index":0,"filename":"bootstrap.css","line":1,"column":0,"extract":[null,"","<!--"]}</p>
<p dir="auto">Thanks</p> | 1 |
<p dir="auto">Since I am tired of getting tons of emails because of Jenkins failing, I tried to look it up.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
ERROR: sklearn.metrics.tests.test_metrics.test_classification_report_multiclass_with_unicode_label
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/slave/virtualenvs/cpython-2.6/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/tests/test_metrics.py",> line 855, in test_classification_report_multiclass_with_unicode_label
report = classification_report(y_true, y_pred)
File "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py",> line 1768, in classification_report
average=None)
File "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py",> line 1515, in precision_recall_fscore_support
precision = precision[indices]
IndexError: index 3 out of bounds 0<=index<3"><pre class="notranslate"><code class="notranslate">======================================================================
ERROR: sklearn.metrics.tests.test_metrics.test_classification_report_multiclass_with_unicode_label
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/slave/virtualenvs/cpython-2.6/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/tests/test_metrics.py",> line 855, in test_classification_report_multiclass_with_unicode_label
report = classification_report(y_true, y_pred)
File "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py",> line 1768, in classification_report
average=None)
File "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py",> line 1515, in precision_recall_fscore_support
precision = precision[indices]
IndexError: index 3 out of bounds 0<=index<3
</code></pre></div>
<p dir="auto">If I am not wrong, this bug originates from <code class="notranslate">indices = np.searchsorted(labels, label_order)</code> in <code class="notranslate">metrics.py</code> when labels contains unicode strings. It seems related to the following known (and fixed) issue in Numpy: <a href="http://mail.scipy.org/pipermail/numpy-discussion/2012-March/061495.html" rel="nofollow">http://mail.scipy.org/pipermail/numpy-discussion/2012-March/061495.html</a></p>
<p dir="auto">What shall we do about this?</p> | <p dir="auto">A <a href="https://travis-ci.org/scikit-learn/scikit-learn/builds/340071949?utm_source=email&utm_medium=notification" rel="nofollow">Test failure on Travis</a> presumably due to changes in lbfgs:</p>
<div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="=================================== FAILURES ===================================
________________________________ test_max_iter _________________________________
@ignore_warnings
def test_max_iter():
# Test that the maximum number of iteration is reached
X, y_bin = iris.data, iris.target.copy()
y_bin[y_bin == 2] = 0
solvers = ['newton-cg', 'liblinear', 'sag', 'saga', 'lbfgs']
for max_iter in range(1, 5):
for solver in solvers:
for multi_class in ['ovr', 'multinomial']:
if solver == 'liblinear' and multi_class == 'multinomial':
continue
lr = LogisticRegression(max_iter=max_iter, tol=1e-15,
multi_class=multi_class,
random_state=0, solver=solver)
lr.fit(X, y_bin)
> assert_equal(lr.n_iter_[0], max_iter)
X = array([[ 5.1, 3.5, 1.4, 0.2],
[ 4.9, 3. , 1.4, 0.2],
[ 4.7, 3.2, 1.3, 0.2],
[ 4.6, 3.1,... 2.5, 5. , 1.9],
[ 6.5, 3. , 5.2, 2. ],
[ 6.2, 3.4, 5.4, 2.3],
[ 5.9, 3. , 5.1, 1.8]])
lr = LogisticRegression(C=1.0, class_weight=None, dual=False, fit_intercept=True,
intercept_scaling=1, max_iter=1...r', n_jobs=1,
penalty='l2', random_state=0, solver='lbfgs', tol=1e-15,
verbose=0, warm_start=False)
max_iter = 1
multi_class = 'ovr'
solver = 'lbfgs'
solvers = ['newton-cg', 'liblinear', 'sag', 'saga', 'lbfgs']
y_bin = array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/tests/test_logistic.py:1053:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/python/3.6.3/lib/python3.6/unittest/case.py:829: in assertEqual
assertion_func(first, second, msg=msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sklearn.utils._unittest_backport.TestCase testMethod=__init__>
first = 0, second = 1, msg = '0 != 1'
def _baseAssertEqual(self, first, second, msg=None):
"""The default assertEqual implementation, not type specific."""
if not first == second:
standardMsg = '%s != %s' % _common_shorten_repr(first, second)
msg = self._formatMessage(msg, standardMsg)
> raise self.failureException(msg)
E AssertionError: 0 != 1
first = 0
msg = '0 != 1'
second = 1
self = <sklearn.utils._unittest_backport.TestCase testMethod=__init__>
standardMsg = '0 != 1'
/opt/python/3.6.3/lib/python3.6/unittest/case.py:822: AssertionError"><pre class="notranslate">=================================== FAILURES ===================================
________________________________ test_max_iter _________________________________
<span class="pl-k">@</span>ignore_warnings
<span class="pl-k">def</span> <span class="pl-en">test_max_iter</span>():
<span class="pl-c"><span class="pl-c">#</span> Test that the maximum number of iteration is reached</span>
X, y_bin <span class="pl-k">=</span> iris.data, iris.target.copy()
y_bin[y_bin <span class="pl-k">==</span> <span class="pl-c1">2</span>] <span class="pl-k">=</span> <span class="pl-c1">0</span>
solvers <span class="pl-k">=</span> [<span class="pl-s"><span class="pl-pds">'</span>newton-cg<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>liblinear<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>sag<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>saga<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>lbfgs<span class="pl-pds">'</span></span>]
<span class="pl-k">for</span> max_iter <span class="pl-k">in</span> <span class="pl-c1">range</span>(<span class="pl-c1">1</span>, <span class="pl-c1">5</span>):
<span class="pl-k">for</span> solver <span class="pl-k">in</span> solvers:
<span class="pl-k">for</span> multi_class <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>ovr<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>multinomial<span class="pl-pds">'</span></span>]:
<span class="pl-k">if</span> solver <span class="pl-k">==</span> <span class="pl-s"><span class="pl-pds">'</span>liblinear<span class="pl-pds">'</span></span> <span class="pl-k">and</span> multi_class <span class="pl-k">==</span> <span class="pl-s"><span class="pl-pds">'</span>multinomial<span class="pl-pds">'</span></span>:
<span class="pl-k">continue</span>
lr <span class="pl-k">=</span> LogisticRegression(<span class="pl-v">max_iter</span><span class="pl-k">=</span>max_iter, <span class="pl-v">tol</span><span class="pl-k">=</span><span class="pl-c1">1e-15</span>,
multi_class<span class="pl-k">=</span>multi_class,
random_state<span class="pl-k">=</span><span class="pl-c1">0</span>, solver<span class="pl-k">=</span>solver)
lr.fit(X, y_bin)
> assert_equal(lr.n_iter_[0], max_iter)
X = array([[ 5.1, 3.5, 1.4, 0.2],
[ <span class="pl-c1">4.9</span>, <span class="pl-c1">3</span>. , <span class="pl-c1">1.4</span>, <span class="pl-c1">0.2</span>],
[ <span class="pl-c1">4.7</span>, <span class="pl-c1">3.2</span>, <span class="pl-c1">1.3</span>, <span class="pl-c1">0.2</span>],
[ <span class="pl-c1">4.6</span>, <span class="pl-c1">3.1</span>,<span class="pl-c1">...</span> <span class="pl-c1">2.5</span>, <span class="pl-c1">5</span>. , <span class="pl-c1">1.9</span>],
[ <span class="pl-c1">6.5</span>, <span class="pl-c1">3</span>. , <span class="pl-c1">5.2</span>, <span class="pl-c1">2</span>. ],
[ <span class="pl-c1">6.2</span>, <span class="pl-c1">3.4</span>, <span class="pl-c1">5.4</span>, <span class="pl-c1">2.3</span>],
[ <span class="pl-c1">5.9</span>, <span class="pl-c1">3</span>. , <span class="pl-c1">5.1</span>, <span class="pl-c1">1.8</span>]])
lr = LogisticRegression(C=1.0, class_weight=None, dual=False, fit_intercept=True,
intercept_scaling<span class="pl-k">=</span><span class="pl-c1">1</span>, max_iter<span class="pl-k">=</span><span class="pl-c1">1</span><span class="pl-c1">...</span><span class="pl-sr"><span class="pl-k">r</span><span class="pl-pds">'</span>, n_jobs=1,</span>
penalty<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>l2<span class="pl-pds">'</span></span>, random_state<span class="pl-k">=</span><span class="pl-c1">0</span>, solver<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>lbfgs<span class="pl-pds">'</span></span>, tol<span class="pl-k">=</span><span class="pl-c1">1e-15</span>,
verbose<span class="pl-k">=</span><span class="pl-c1">0</span>, warm_start<span class="pl-k">=</span><span class="pl-c1">False</span>)
max_iter = 1
multi_class = 'ovr'
solver = 'lbfgs'
solvers = ['newton-cg', 'liblinear', 'sag', 'saga', 'lbfgs']
y_bin = array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>,<span class="pl-c1">...</span> <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>,
<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>])
/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/tests/test_logistic.py:1053:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/opt/python/3.6.3/lib/python3.6/unittest/case.py:829: in assertEqual
assertion_func(first, second, <span class="pl-v">msg</span><span class="pl-k">=</span>msg)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sklearn.utils._unittest_backport.TestCase testMethod=__init__>
first = 0, second = 1, msg = '0 != 1'
<span class="pl-k">def</span> <span class="pl-en">_baseAssertEqual</span>(<span class="pl-smi"><span class="pl-smi">self</span></span>, <span class="pl-smi">first</span>, <span class="pl-smi">second</span>, <span class="pl-smi">msg</span><span class="pl-k">=</span><span class="pl-c1">None</span>):
<span class="pl-s"><span class="pl-pds">"""</span>The default assertEqual implementation, not type specific.<span class="pl-pds">"""</span></span>
<span class="pl-k">if</span> <span class="pl-k">not</span> first <span class="pl-k">==</span> second:
standardMsg <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-c1">%s</span> != <span class="pl-c1">%s</span><span class="pl-pds">'</span></span> <span class="pl-k">%</span> _common_shorten_repr(first, second)
msg <span class="pl-k">=</span> <span class="pl-c1">self</span>._formatMessage(msg, standardMsg)
> raise self.failureException(msg)
E AssertionError: 0 != 1
first = 0
msg = '0 != 1'
second = 1
self = <sklearn.utils._unittest_backport.TestCase testMethod=__init__>
standardMsg = '0 != 1'
/opt/python/3.6.3/lib/python3.6/unittest/case.py:822: AssertionError</pre></div> | 0 |
<p dir="auto">In our reference documentation, we currently specify what JVM versions are supported on the setup page:</p>
<p dir="auto"><a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html" rel="nofollow">https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html</a></p>
<p dir="auto">This is just duplicating the information in our support matrix here:</p>
<p dir="auto"><a href="https://www.elastic.co/subscriptions/matrix" rel="nofollow">https://www.elastic.co/subscriptions/matrix</a></p>
<p dir="auto">Are we worried about the reference and support matrix getting out of sync? Shouldn't we just refer users to the support matrix?</p> | <p dir="auto">In <code class="notranslate">/etc/default/elasticsearch</code> we have <code class="notranslate">MAX_OPEN_FILES=65535</code>. If you uncomment that, but don't edit it, and start ES you get this in the logs;</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2016-04-01 05:02:50,128][WARN ][env ] [Achebe] max file descriptors [65535] for elasticsearch process likely too low, consider increasing to at least [65536]"><pre class="notranslate"><code class="notranslate">[2016-04-01 05:02:50,128][WARN ][env ] [Achebe] max file descriptors [65535] for elasticsearch process likely too low, consider increasing to at least [65536]
</code></pre></div>
<p dir="auto">Can we just increase the default by one to ensure our checks align with our default settings?</p> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Application: devenv.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: System.AggregateException: One or more errors occurred. ---> System.Exception: Error while reading file: 'typescriptServices.js' from location: 'C:\Users\drosen\TypeScript3\built\local'. ---> System.IO.IOException: The process cannot access the file 'C:\Users\drosen\TypeScript3\built\local\typescriptServices.js' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)
--- End of inner exception stack trace ---
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.GetTypeScriptLanguageServiceScript()
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.ReinitializeEngineAndFactoryIfNeeded()
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.CreateOrUpdateShim(String createShimFunction, Object host, ShimAndServicesFileVersion& shimInfo)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.CreateOrUpdateShim(String caption, String createShimFunction, Object host, ShimAndServicesFileVersion& shimInfo)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.AbstractProxy`1.InvokeShimMethod[T](String methodName, Object[] arguments)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.LanguageServiceProxy.InvokeLanguageService(ProjectDataCache project, String methodName, CancellationToken cancellationToken, Object[] arguments)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.LanguageServiceProxy.GetBraceMatchingAtPosition(ProjectDataCache project, Document document, Int32 position, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.BraceMatching.TypeScriptBraceMatcher.<>c__DisplayClass0.<FindBracesAsync>b__1(LanguageServiceProxy proxy, ProjectDataCache cache, ScriptContext context)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.ComputeValue[T](ProjectDataCache cache, LanguageServiceOperation`1 operation)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.<>c__DisplayClass0`1.<PerformOperation>b__1()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.<PerformSyntacticFeatureOperationAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceMatchingService.<GetMatchingBracesAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer.<ProduceTagsForBracesAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer.<ProduceTagsAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Shared.Tagging.ProducerPopulatedTagSource`1.<RecomputeTagsAsync>d__32.MoveNext()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Exception: Error while reading file: 'typescriptServices.js' from location: 'C:\Users\drosen\TypeScript3\built\local'. ---> System.IO.IOException: The process cannot access the file 'C:\Users\drosen\TypeScript3\built\local\typescriptServices.js' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)
--- End of inner exception stack trace ---
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.GetTypeScriptLanguageServiceScript()
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.ReinitializeEngineAndFactoryIfNeeded()
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.CreateOrUpdateShim(String createShimFunction, Object host, ShimAndServicesFileVersion& shimInfo)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.CreateOrUpdateShim(String caption, String createShimFunction, Object host, ShimAndServicesFileVersion& shimInfo)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.AbstractProxy`1.InvokeShimMethod[T](String methodName, Object[] arguments)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.LanguageServiceProxy.InvokeLanguageService(ProjectDataCache project, String methodName, CancellationToken cancellationToken, Object[] arguments)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.LanguageServiceProxy.GetBraceMatchingAtPosition(ProjectDataCache project, Document document, Int32 position, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.BraceMatching.TypeScriptBraceMatcher.<>c__DisplayClass0.<FindBracesAsync>b__1(LanguageServiceProxy proxy, ProjectDataCache cache, ScriptContext context)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.ComputeValue[T](ProjectDataCache cache, LanguageServiceOperation`1 operation)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.<>c__DisplayClass0`1.<PerformOperation>b__1()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.<PerformSyntacticFeatureOperationAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceMatchingService.<GetMatchingBracesAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer.<ProduceTagsForBracesAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer.<ProduceTagsAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Shared.Tagging.ProducerPopulatedTagSource`1.<RecomputeTagsAsync>d__32.MoveNext()<---
Stack:
at System.Environment.FailFast(System.String, System.Exception)
at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Threading.Tasks.TaskExtensions+VoidResult, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Threading.Tasks.UnwrapPromise`1[[System.Threading.Tasks.TaskExtensions+VoidResult, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.UnwrapPromise`1[[System.Threading.Tasks.TaskExtensions+VoidResult, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
at System.Threading.Tasks.UnwrapPromise`1[[System.Threading.Tasks.TaskExtensions+VoidResult, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.Shared.Tagging.ProducerPopulatedTagSource`1+<RecomputeTagsAsync>d__32[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer+<ProduceTagsAsync>d__4.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer+<ProduceTagsForBracesAsync>d__5.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceMatchingService+<GetMatchingBracesAsync>d__2.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler+<PerformSyntacticFeatureOperationAsync>d__1`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()"><pre class="notranslate"><code class="notranslate">Application: devenv.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: System.AggregateException: One or more errors occurred. ---> System.Exception: Error while reading file: 'typescriptServices.js' from location: 'C:\Users\drosen\TypeScript3\built\local'. ---> System.IO.IOException: The process cannot access the file 'C:\Users\drosen\TypeScript3\built\local\typescriptServices.js' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)
--- End of inner exception stack trace ---
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.GetTypeScriptLanguageServiceScript()
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.ReinitializeEngineAndFactoryIfNeeded()
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.CreateOrUpdateShim(String createShimFunction, Object host, ShimAndServicesFileVersion& shimInfo)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.CreateOrUpdateShim(String caption, String createShimFunction, Object host, ShimAndServicesFileVersion& shimInfo)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.AbstractProxy`1.InvokeShimMethod[T](String methodName, Object[] arguments)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.LanguageServiceProxy.InvokeLanguageService(ProjectDataCache project, String methodName, CancellationToken cancellationToken, Object[] arguments)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.LanguageServiceProxy.GetBraceMatchingAtPosition(ProjectDataCache project, Document document, Int32 position, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.BraceMatching.TypeScriptBraceMatcher.<>c__DisplayClass0.<FindBracesAsync>b__1(LanguageServiceProxy proxy, ProjectDataCache cache, ScriptContext context)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.ComputeValue[T](ProjectDataCache cache, LanguageServiceOperation`1 operation)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.<>c__DisplayClass0`1.<PerformOperation>b__1()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.<PerformSyntacticFeatureOperationAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceMatchingService.<GetMatchingBracesAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer.<ProduceTagsForBracesAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer.<ProduceTagsAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Shared.Tagging.ProducerPopulatedTagSource`1.<RecomputeTagsAsync>d__32.MoveNext()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Exception: Error while reading file: 'typescriptServices.js' from location: 'C:\Users\drosen\TypeScript3\built\local'. ---> System.IO.IOException: The process cannot access the file 'C:\Users\drosen\TypeScript3\built\local\typescriptServices.js' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)
--- End of inner exception stack trace ---
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.FileHelpers.ReadFile(String filePath)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.GetTypeScriptLanguageServiceScript()
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.ReinitializeEngineAndFactoryIfNeeded()
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.Factory.CreateOrUpdateShim(String createShimFunction, Object host, ShimAndServicesFileVersion& shimInfo)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.ShimFactory.ShimFactory.CreateOrUpdateShim(String caption, String createShimFunction, Object host, ShimAndServicesFileVersion& shimInfo)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.AbstractProxy`1.InvokeShimMethod[T](String methodName, Object[] arguments)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.LanguageServiceProxy.InvokeLanguageService(ProjectDataCache project, String methodName, CancellationToken cancellationToken, Object[] arguments)
at Microsoft.CodeAnalysis.Editor.TypeScript.ScriptServices.Proxies.LanguageServiceProxy.GetBraceMatchingAtPosition(ProjectDataCache project, Document document, Int32 position, CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.BraceMatching.TypeScriptBraceMatcher.<>c__DisplayClass0.<FindBracesAsync>b__1(LanguageServiceProxy proxy, ProjectDataCache cache, ScriptContext context)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.ComputeValue[T](ProjectDataCache cache, LanguageServiceOperation`1 operation)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.<>c__DisplayClass0`1.<PerformOperation>b__1()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler.<PerformSyntacticFeatureOperationAsync>d__1`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceMatchingService.<GetMatchingBracesAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer.<ProduceTagsForBracesAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer.<ProduceTagsAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Editor.Shared.Tagging.ProducerPopulatedTagSource`1.<RecomputeTagsAsync>d__32.MoveNext()<---
Stack:
at System.Environment.FailFast(System.String, System.Exception)
at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception)
at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>)
at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception)
at Roslyn.Utilities.TaskExtensions.ReportFatalErrorWorker(System.Threading.Tasks.Task, System.Object)
at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.TaskScheduler.TryRunInline(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.StandardTaskContinuation.Run(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Threading.Tasks.TaskExtensions+VoidResult, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Threading.Tasks.UnwrapPromise`1[[System.Threading.Tasks.TaskExtensions+VoidResult, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetFromTask(System.Threading.Tasks.Task, Boolean)
at System.Threading.Tasks.UnwrapPromise`1[[System.Threading.Tasks.TaskExtensions+VoidResult, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InvokeCore(System.Threading.Tasks.Task)
at System.Threading.Tasks.UnwrapPromise`1[[System.Threading.Tasks.TaskExtensions+VoidResult, System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Threading.Tasks.Task)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.Shared.Tagging.ProducerPopulatedTagSource`1+<RecomputeTagsAsync>d__32[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer+<ProduceTagsAsync>d__4.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceHighlightingTagProducer+<ProduceTagsForBracesAsync>d__5.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.Implementation.BraceMatching.BraceMatchingService+<GetMatchingBracesAsync>d__2.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Action, Boolean, System.Threading.Tasks.Task ByRef)
at System.Threading.Tasks.Task.FinishContinuations()
at System.Threading.Tasks.Task.FinishStageThree()
at System.Threading.Tasks.Task.FinishStageTwo()
at System.Threading.Tasks.Task.Finish(Boolean)
at System.Threading.Tasks.Task`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].TrySetException(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetException(System.Exception)
at Microsoft.CodeAnalysis.Editor.TypeScript.Features.TaskHandler+<PerformSyntacticFeatureOperationAsync>d__1`1[[System.Nullable`1[[Microsoft.CodeAnalysis.Editor.BraceMatchingResult, Microsoft.CodeAnalysis.EditorFeatures, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run()
at System.Threading.Tasks.AwaitTaskContinuation.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
</code></pre></div> | <p dir="auto">in <code class="notranslate">sys.ts</code> , there are the code</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if (typeof WScript !== "undefined" && typeof ActiveXObject === "function") {
return getWScriptSystem();
}
else if (typeof process !== "undefined" && process.nextTick && !process.browser && typeof require !== "undefined") {
// process and process.nextTick checks if current environment is node-like
// process.browser check excludes webpack and browserify
return getNodeSystem();
}
else {
return undefined; // Unsupported host
}"><pre class="notranslate"><code class="notranslate"> if (typeof WScript !== "undefined" && typeof ActiveXObject === "function") {
return getWScriptSystem();
}
else if (typeof process !== "undefined" && process.nextTick && !process.browser && typeof require !== "undefined") {
// process and process.nextTick checks if current environment is node-like
// process.browser check excludes webpack and browserify
return getNodeSystem();
}
else {
return undefined; // Unsupported host
}
</code></pre></div>
<p dir="auto">I want to use my custom Virtual-IO-System to run typescript-compiler with CompilerAPI in browser ( Chrome and so on ) 。so I think maybe it should be a dependency injection pattern , such as this one :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
ts.sys.register( new MyFileSystem());
"><pre class="notranslate"><code class="notranslate">
ts.sys.register( new MyFileSystem());
</code></pre></div>
<p dir="auto">If you agree with me ,I will send a PR here</p> | 0 |
<p dir="auto">Currently there is no hook that would allow us to set attributes on the node before it's injected into a document. Which is unfortunate as there are some attributes in the wild that take effect only before element is injected into a document.</p>
<p dir="auto">To workaround this I'm forced to replacing react injected nodes with clones on <code class="notranslate">componentDidMount</code><br>
<a href="https://github.com/Gozala/firefox.html/blob/react/js/element.js#L57-L61">https://github.com/Gozala/firefox.html/blob/react/js/element.js#L57-L61</a></p>
<p dir="auto">It would be great if react could expose node that will be inserted during <code class="notranslate">componentWillMount</code> or added another hook where node will be provided.</p> | <p dir="auto">Is there reason why React restricts you to just a subset of DOM elements and attributes ? Unfortunately it makes it really hard to use it with new HTML or non standard features unless support for that is added.</p>
<p dir="auto">I noticed I could create custom elements via <code class="notranslate">React.createFactory("custom")</code></p>
<p dir="auto"><a href="https://github.com/facebook/react/blob/master/src/browser/ReactDOM.js#L30">https://github.com/facebook/react/blob/master/src/browser/ReactDOM.js#L30</a><br>
<a href="https://github.com/facebook/react/blob/master/src/classic/element/ReactElement.js#L201-L209">https://github.com/facebook/react/blob/master/src/classic/element/ReactElement.js#L201-L209</a></p>
<p dir="auto">But it's not documented & not sure if supported in long term. And even if it was supported that still does not solve problem of attributes as ones not listed in the docs seem to be ignored.</p>
<p dir="auto">I think it would be good idea to allow defining custom virtual DOM Elements with a custom list of attributes so that users could implement them even if support for new element isn't in the core yet.</p>
<p dir="auto">Finally support for namespaces would be super useful for using react even in more environments & should not be too hard either. I have successfully used <a href="https://github.com/Matt-Esch/vtree">vtree</a> / <a href="https://github.com/Matt-Esch/vdom">vdom</a> to do that.</p> | 1 |
<p dir="auto">I right-clicked on a folder in the tree view</p>
<p dir="auto"><strong>Atom Version</strong>: 0.194.0<br>
<strong>System</strong>: Windows 7 Entreprise<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: Cannot find module './context-menu'<br>
Error: Cannot find module './context-menu'<br>
at Function.Module._resolveFilename (module.js:328:15)<br>
at Function.Module._load (module.js:270:25)<br>
at Module.require (module.js:357:17)<br>
at require (module.js:376:17)<br>
at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br>
at emitOne (events.js:77:13)<br>
at BrowserWindow.emit (events.js:166:7)<br>
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br>
at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br>
at emitMany (events.js:108:13)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
"><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused)
2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor)
-3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-2:47.4.0 editor:newline (atom-text-editor.editor.is-focused)
-2:38.2.0 core:cut (atom-text-editor.editor)
-2:36.5.0 core:paste (atom-text-editor.editor.is-focused)
-2:26.6.0 core:save (atom-text-editor.editor.is-focused)
-2:20.6.0 core:move-down (atom-text-editor.editor)
-2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor)
-2:15.8.0 core:save (atom-text-editor.editor)
-2:08.7.0 core:copy (atom-text-editor.editor.is-focused)
-2:01.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:59.7.0 core:save (atom-text-editor.editor.is-focused)
-1:52.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:51.6.0 core:save (atom-text-editor.editor.is-focused)
-1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused)
2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor)
-3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-2:47.4.0 editor:newline (atom-text-editor.editor.is-focused)
-2:38.2.0 core:cut (atom-text-editor.editor)
-2:36.5.0 core:paste (atom-text-editor.editor.is-focused)
-2:26.6.0 core:save (atom-text-editor.editor.is-focused)
-2:20.6.0 core:move-down (atom-text-editor.editor)
-2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor)
-2:15.8.0 core:save (atom-text-editor.editor)
-2:08.7.0 core:copy (atom-text-editor.editor.is-focused)
-2:01.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:59.7.0 core:save (atom-text-editor.editor.is-focused)
-1:52.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:51.6.0 core:save (atom-text-editor.editor.is-focused)
-1:30.6.0 core:backspace (atom-text-editor.editor)
</code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"ignoredNames": [
"node_modules"
],
"themes": [
"atom-dark-ui",
"seti-syntax"
],
"disabledPackages": [
"Tern"
],
"projectHome": "Y:\\app-tfoumax"
},
"editor": {
"invisibles": {},
"softWrap": true,
"showIndentGuide": true
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"ignoredNames"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"disabledPackages"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
autocomplete-plus, v2.12.0
autocomplete-snippets, v1.2.0
javascript-snippets, v1.0.0
jshint, v1.3.5
language-ejs, v0.1.0
linter, v0.12.1
pretty-json, v0.3.3
save-session, v0.14.0
Search, v0.4.0
seti-syntax, v0.4.0
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span>
autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span>
language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span>
pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span>
save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span>
Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">While I admire the simplicity of the installer, it also globs it onto the C drive without asking. My C drive is a very small SSD, and while Atom isn't exactly a huge program, I'd prefer to have it on my HDD.</p> | 0 |
<p dir="auto">Hello<br>
I want to know if is there a way to disable auto close notification in windows<br>
after generating the notification it will close automatically I can't even set any timeout for this function<br>
should I use native windows notification?</p>
<p dir="auto">thanks</p> | <p dir="auto">OS: Windows 8.1 x64<br>
Atom-Shell: 0.19</p>
<p dir="auto">Sorry for all the editing and deleting of my previous reports but the issue is morphing and I've narrowed it down. Apparently the webview is garbage collected when you set it's CSS display property to none. If you do this then you cannot use the webview again and if you try to set it's src it will crash Atom-Shell.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!DOCTYPE html>
<html>
<head>
<title>webview crash test</title>
</head>
<body>
<webview id="web" style="width:100%;height:100%;position:absolute;"></webview>
<script>
window.onload = function() {
var web = document.getElementById("web");
web.src = "http://msn.com";
};
</script>
</body>
</html>"><pre class="notranslate"><span class="pl-c1"><!DOCTYPE html<span class="pl-kos">></span></span>
<span class="pl-kos"><</span><span class="pl-ent">html</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">title</span><span class="pl-kos">></span>webview crash test<span class="pl-kos"></</span><span class="pl-ent">title</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">webview</span> <span class="pl-c1">id</span>="<span class="pl-s">web</span>" <span class="pl-c1">style</span>="<span class="pl-s">width:100%;height:100%;position:absolute;</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">webview</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">onload</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">web</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">"web"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">web</span><span class="pl-kos">.</span><span class="pl-c1">src</span> <span class="pl-c1">=</span> <span class="pl-s">"http://msn.com"</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">html</span><span class="pl-kos">></span></pre></div>
<p dir="auto">Reproduce the crash:</p>
<p dir="auto">In your main.js make sure you have it open the dev tools once it creates a new browser window. Use the dev tools to set the CSS display property for the webview to none. Set the src of the webview using the console. Observe Atom-Shell crash.</p>
<p dir="auto">Now a point of clarification: This sounds convoluted but I was using display:none to hide the webview, set the source and then show it in my app. I should have been using visibility:hidden instead. My UI is just set up to show the webview in the entire width/height of the window but underneath of it there is a list of links to choose from. This is the reasoning I found this issue. Using visibility:hidden makes the crashing go away.</p>
<p dir="auto">Question, does calling display:none on the webview cause the webview to be garbage collected?</p> | 0 |
<p dir="auto"><strong>Describe the bug</strong><br>
Duplicate <code class="notranslate">anon</code> names used in queries with<code class="notranslate"> union</code>, <code class="notranslate">limit</code> and <code class="notranslate">joinedload</code> causing the query to fail at the driver level.<br>
This query used to work before 1.4.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import Column, Integer, String, ForeignKey, PrimaryKeyConstraint, func, Boolean, union
from sqlalchemy.orm import declarative_base, relationship, backref, joinedload
from sqlalchemy.schema import Table
Base = declarative_base()
class User(Base):
__tablename__ = "appuser"
id = Column(Integer(), primary_key=True)
class Project(Base):
__tablename__ = "project"
id = Column(Integer(), primary_key=True)
class ProjectPermissions(Base):
__tablename__ = "project_user"
user_id = Column(
Integer(), ForeignKey("appuser.id"), index=True
)
user = relationship("User")
project_id = Column(
Integer(), ForeignKey("project.id"), index=True
)
project = relationship("Project")
__table_args__ = (PrimaryKeyConstraint("user_id", "project_id"), {})
samples_tags = Table(
"samples_tags",
Base.metadata,
Column(
"tag_id", Integer, ForeignKey("tags.id"), index=True
),
Column(
"sample_id",
Integer,
ForeignKey("sample.id"),
index=True,
),
PrimaryKeyConstraint("tag_id", "sample_id"),
)
class Tag(Base):
__tablename__ = "tags"
id = Column(Integer, primary_key=True)
name = Column(String(50), primary_key=True)
class BaseDataFile(Base):
__tablename__ = "base_data_file"
id = Column(Integer, primary_key=True)
data_file_type = Column(String(50))
visible = Column(Boolean())
user_id = Column(
Integer,
ForeignKey(
"appuser.id",
onupdate="RESTRICT",
ondelete="RESTRICT",
),
index=True,
)
user_rel = relationship("User")
project_id = Column(
Integer,
ForeignKey("project.id", ondelete="SET NULL"),
nullable=True,
index=True,
)
project = relationship(Project)
__mapper_args__ = {"polymorphic_identity": "base_data_file", "polymorphic_on": data_file_type}
class Sample(BaseDataFile):
__tablename__ = "sample"
__mapper_args__ = {"polymorphic_identity": "sample"}
id = Column(
Integer,
ForeignKey("base_data_file.id"),
primary_key=True,
)
tags = relationship(
"Tag", secondary=samples_tags, backref=backref("samples")
)
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
engine = create_engine('sqlite:///:memory:', echo=True)
Base.metadata.create_all(engine)
Session = sessionmaker(bind=engine)
session = Session()
user_id = 1
user_sample_query = session.query(Sample).filter(Sample.visible.is_(True), Sample.user_id == user_id)
project_samples_query = (
session
.query(Sample)
.join(ProjectPermissions, ProjectPermissions.project_id == Sample.project_id, isouter=True)
.filter(Sample.visible.is_(True), Sample.user_id == user_id)
)
unioned = user_sample_query.union(project_samples_query)
# q = unioned.options(joinedload("tags"))
q = unioned.options(joinedload("tags")).limit(10)
# q = session.query(Sample).filter(Sample.id.in_(aliased)).options(joinedload("tags")).limit(10)
print(str(q.statement.compile(compile_kwargs={"literal_binds": True})))
print("===")
print(q.all())"><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">String</span>, <span class="pl-v">ForeignKey</span>, <span class="pl-v">PrimaryKeyConstraint</span>, <span class="pl-s1">func</span>, <span class="pl-v">Boolean</span>, <span class="pl-s1">union</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span>, <span class="pl-s1">relationship</span>, <span class="pl-s1">backref</span>, <span class="pl-s1">joinedload</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">schema</span> <span class="pl-k">import</span> <span class="pl-v">Table</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">User</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"appuser"</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-k">class</span> <span class="pl-v">Project</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"project"</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-k">class</span> <span class="pl-v">ProjectPermissions</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"project_user"</span>
<span class="pl-s1">user_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(
<span class="pl-v">Integer</span>(), <span class="pl-v">ForeignKey</span>(<span class="pl-s">"appuser.id"</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>
)
<span class="pl-s1">user</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">"User"</span>)
<span class="pl-s1">project_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(
<span class="pl-v">Integer</span>(), <span class="pl-v">ForeignKey</span>(<span class="pl-s">"project.id"</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>
)
<span class="pl-s1">project</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">"Project"</span>)
<span class="pl-s1">__table_args__</span> <span class="pl-c1">=</span> (<span class="pl-v">PrimaryKeyConstraint</span>(<span class="pl-s">"user_id"</span>, <span class="pl-s">"project_id"</span>), {})
<span class="pl-s1">samples_tags</span> <span class="pl-c1">=</span> <span class="pl-v">Table</span>(
<span class="pl-s">"samples_tags"</span>,
<span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>,
<span class="pl-v">Column</span>(
<span class="pl-s">"tag_id"</span>, <span class="pl-v">Integer</span>, <span class="pl-v">ForeignKey</span>(<span class="pl-s">"tags.id"</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>
),
<span class="pl-v">Column</span>(
<span class="pl-s">"sample_id"</span>,
<span class="pl-v">Integer</span>,
<span class="pl-v">ForeignKey</span>(<span class="pl-s">"sample.id"</span>),
<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
),
<span class="pl-v">PrimaryKeyConstraint</span>(<span class="pl-s">"tag_id"</span>, <span class="pl-s">"sample_id"</span>),
)
<span class="pl-k">class</span> <span class="pl-v">Tag</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"tags"</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">name</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">50</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-k">class</span> <span class="pl-v">BaseDataFile</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"base_data_file"</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">data_file_type</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">50</span>))
<span class="pl-s1">visible</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Boolean</span>())
<span class="pl-s1">user_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(
<span class="pl-v">Integer</span>,
<span class="pl-v">ForeignKey</span>(
<span class="pl-s">"appuser.id"</span>,
<span class="pl-s1">onupdate</span><span class="pl-c1">=</span><span class="pl-s">"RESTRICT"</span>,
<span class="pl-s1">ondelete</span><span class="pl-c1">=</span><span class="pl-s">"RESTRICT"</span>,
),
<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
)
<span class="pl-s1">user_rel</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">"User"</span>)
<span class="pl-s1">project_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(
<span class="pl-v">Integer</span>,
<span class="pl-v">ForeignKey</span>(<span class="pl-s">"project.id"</span>, <span class="pl-s1">ondelete</span><span class="pl-c1">=</span><span class="pl-s">"SET NULL"</span>),
<span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
)
<span class="pl-s1">project</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-v">Project</span>)
<span class="pl-s1">__mapper_args__</span> <span class="pl-c1">=</span> {<span class="pl-s">"polymorphic_identity"</span>: <span class="pl-s">"base_data_file"</span>, <span class="pl-s">"polymorphic_on"</span>: <span class="pl-s1">data_file_type</span>}
<span class="pl-k">class</span> <span class="pl-v">Sample</span>(<span class="pl-v">BaseDataFile</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"sample"</span>
<span class="pl-s1">__mapper_args__</span> <span class="pl-c1">=</span> {<span class="pl-s">"polymorphic_identity"</span>: <span class="pl-s">"sample"</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-v">ForeignKey</span>(<span class="pl-s">"base_data_file.id"</span>),
<span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
)
<span class="pl-s1">tags</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(
<span class="pl-s">"Tag"</span>, <span class="pl-s1">secondary</span><span class="pl-c1">=</span><span class="pl-s1">samples_tags</span>, <span class="pl-s1">backref</span><span class="pl-c1">=</span><span class="pl-en">backref</span>(<span class="pl-s">"samples"</span>)
)
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">create_engine</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">sessionmaker</span>
<span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">'sqlite:///:memory:'</span>, <span class="pl-s1">echo</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">engine</span>)
<span class="pl-v">Session</span> <span class="pl-c1">=</span> <span class="pl-en">sessionmaker</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">engine</span>)
<span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-v">Session</span>()
<span class="pl-s1">user_id</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>
<span class="pl-s1">user_sample_query</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">query</span>(<span class="pl-v">Sample</span>).<span class="pl-en">filter</span>(<span class="pl-v">Sample</span>.<span class="pl-s1">visible</span>.<span class="pl-en">is_</span>(<span class="pl-c1">True</span>), <span class="pl-v">Sample</span>.<span class="pl-s1">user_id</span> <span class="pl-c1">==</span> <span class="pl-s1">user_id</span>)
<span class="pl-s1">project_samples_query</span> <span class="pl-c1">=</span> (
<span class="pl-s1">session</span>
.<span class="pl-en">query</span>(<span class="pl-v">Sample</span>)
.<span class="pl-en">join</span>(<span class="pl-v">ProjectPermissions</span>, <span class="pl-v">ProjectPermissions</span>.<span class="pl-s1">project_id</span> <span class="pl-c1">==</span> <span class="pl-v">Sample</span>.<span class="pl-s1">project_id</span>, <span class="pl-s1">isouter</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
.<span class="pl-en">filter</span>(<span class="pl-v">Sample</span>.<span class="pl-s1">visible</span>.<span class="pl-en">is_</span>(<span class="pl-c1">True</span>), <span class="pl-v">Sample</span>.<span class="pl-s1">user_id</span> <span class="pl-c1">==</span> <span class="pl-s1">user_id</span>)
)
<span class="pl-s1">unioned</span> <span class="pl-c1">=</span> <span class="pl-s1">user_sample_query</span>.<span class="pl-en">union</span>(<span class="pl-s1">project_samples_query</span>)
<span class="pl-c"># q = unioned.options(joinedload("tags"))</span>
<span class="pl-s1">q</span> <span class="pl-c1">=</span> <span class="pl-s1">unioned</span>.<span class="pl-en">options</span>(<span class="pl-en">joinedload</span>(<span class="pl-s">"tags"</span>)).<span class="pl-en">limit</span>(<span class="pl-c1">10</span>)
<span class="pl-c"># q = session.query(Sample).filter(Sample.id.in_(aliased)).options(joinedload("tags")).limit(10)</span>
<span class="pl-en">print</span>(<span class="pl-en">str</span>(<span class="pl-s1">q</span>.<span class="pl-s1">statement</span>.<span class="pl-en">compile</span>(<span class="pl-s1">compile_kwargs</span><span class="pl-c1">=</span>{<span class="pl-s">"literal_binds"</span>: <span class="pl-c1">True</span>})))
<span class="pl-en">print</span>(<span class="pl-s">"==="</span>)
<span class="pl-en">print</span>(<span class="pl-s1">q</span>.<span class="pl-en">all</span>())</pre></div>
<p dir="auto">If you remove the <code class="notranslate">joinedload("tags")</code> or the <code class="notranslate">limit</code>, the query will work.</p>
<p dir="auto"><strong>Error</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1770, in _execute_context
self.dialect.do_execute(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 717, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: ambiguous column name: anon_1.anon_2_sample_id
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "repro.py", line 121, in <module>
print(q.all())
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 2699, in all
return self._iter().all()
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 2834, in _iter
result = self.session.execute(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1677, in execute
result = conn._execute_20(statement, params or {}, execution_options)
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1582, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 324, in _execute_on_connection
return connection._execute_clauseelement(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1451, in _execute_clauseelement
ret = self._execute_context(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1813, in _execute_context
self._handle_dbapi_exception(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1994, in _handle_dbapi_exception
util.raise_(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1770, in _execute_context
self.dialect.do_execute(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 717, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) ambiguous column name: anon_1.anon_2_sample_id
[SQL: SELECT anon_1.anon_2_sample_id AS anon_1_anon_2_sample_id, anon_1.anon_2_base_data_file_data_file_type AS anon_1_anon_2_base_data_file_data_file_type, anon_1.anon_2_base_data_file_visible AS anon_1_anon_2_base_data_file_visible, anon_1.anon_2_base_data_file_user_id AS anon_1_anon_2_base_data_file_user_id, anon_1.anon_2_base_data_file_project_id AS anon_1_anon_2_base_data_file_project_id, tags_1.id AS tags_1_id, tags_1.name AS tags_1_name
FROM (SELECT anon_2.sample_id AS anon_2_sample_id, anon_2.base_data_file_data_file_type AS anon_2_base_data_file_data_file_type, anon_2.base_data_file_visible AS anon_2_base_data_file_visible, anon_2.base_data_file_user_id AS anon_2_base_data_file_user_id, anon_2.base_data_file_project_id AS anon_2_base_data_file_project_id
FROM (SELECT sample.id AS sample_id, base_data_file.id AS base_data_file_id, base_data_file.data_file_type AS base_data_file_data_file_type, base_data_file.visible AS base_data_file_visible, base_data_file.user_id AS base_data_file_user_id, base_data_file.project_id AS base_data_file_project_id
FROM base_data_file JOIN sample ON base_data_file.id = sample.id
WHERE base_data_file.visible IS 1 AND base_data_file.user_id = ? UNION SELECT sample.id AS sample_id, base_data_file.id AS base_data_file_id, base_data_file.data_file_type AS base_data_file_data_file_type, base_data_file.visible AS base_data_file_visible, base_data_file.user_id AS base_data_file_user_id, base_data_file.project_id AS base_data_file_project_id
FROM base_data_file JOIN sample ON base_data_file.id = sample.id LEFT OUTER JOIN project_user ON project_user.project_id = base_data_file.project_id
WHERE base_data_file.visible IS 1 AND base_data_file.user_id = ?) AS anon_2
LIMIT ? OFFSET ?) AS anon_1 JOIN (SELECT anon_2.sample_id AS anon_2_sample_id, anon_2.base_data_file_data_file_type AS anon_2_base_data_file_data_file_type, anon_2.base_data_file_visible AS anon_2_base_data_file_visible, anon_2.base_data_file_user_id AS anon_2_base_data_file_user_id, anon_2.base_data_file_project_id AS anon_2_base_data_file_project_id
FROM (SELECT sample.id AS sample_id, base_data_file.id AS base_data_file_id, base_data_file.data_file_type AS base_data_file_data_file_type, base_data_file.visible AS base_data_file_visible, base_data_file.user_id AS base_data_file_user_id, base_data_file.project_id AS base_data_file_project_id
FROM base_data_file JOIN sample ON base_data_file.id = sample.id
WHERE base_data_file.visible IS 1 AND base_data_file.user_id = ? UNION SELECT sample.id AS sample_id, base_data_file.id AS base_data_file_id, base_data_file.data_file_type AS base_data_file_data_file_type, base_data_file.visible AS base_data_file_visible, base_data_file.user_id AS base_data_file_user_id, base_data_file.project_id AS base_data_file_project_id
FROM base_data_file JOIN sample ON base_data_file.id = sample.id LEFT OUTER JOIN project_user ON project_user.project_id = base_data_file.project_id
WHERE base_data_file.visible IS 1 AND base_data_file.user_id = ?) AS anon_2
LIMIT ? OFFSET ?) AS anon_1 ON base_data_file.id = anon_1.anon_2_sample_id LEFT OUTER JOIN (samples_tags AS samples_tags_1 JOIN tags AS tags_1 ON tags_1.id = samples_tags_1.tag_id) ON anon_1.anon_2_sample_id = samples_tags_1.sample_id]
[parameters: (1, 1, 10, 0, 1, 1, 10, 0)]
(Background on this error at: http://sqlalche.me/e/14/e3q8)
"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1770, in _execute_context
self.dialect.do_execute(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 717, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: ambiguous column name: anon_1.anon_2_sample_id
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "repro.py", line 121, in <module>
print(q.all())
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 2699, in all
return self._iter().all()
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 2834, in _iter
result = self.session.execute(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1677, in execute
result = conn._execute_20(statement, params or {}, execution_options)
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1582, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 324, in _execute_on_connection
return connection._execute_clauseelement(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1451, in _execute_clauseelement
ret = self._execute_context(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1813, in _execute_context
self._handle_dbapi_exception(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1994, in _handle_dbapi_exception
util.raise_(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1770, in _execute_context
self.dialect.do_execute(
File "/Users/vincentprouillet/Code/pulls/sqlalchemy-repro/venv/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 717, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) ambiguous column name: anon_1.anon_2_sample_id
[SQL: SELECT anon_1.anon_2_sample_id AS anon_1_anon_2_sample_id, anon_1.anon_2_base_data_file_data_file_type AS anon_1_anon_2_base_data_file_data_file_type, anon_1.anon_2_base_data_file_visible AS anon_1_anon_2_base_data_file_visible, anon_1.anon_2_base_data_file_user_id AS anon_1_anon_2_base_data_file_user_id, anon_1.anon_2_base_data_file_project_id AS anon_1_anon_2_base_data_file_project_id, tags_1.id AS tags_1_id, tags_1.name AS tags_1_name
FROM (SELECT anon_2.sample_id AS anon_2_sample_id, anon_2.base_data_file_data_file_type AS anon_2_base_data_file_data_file_type, anon_2.base_data_file_visible AS anon_2_base_data_file_visible, anon_2.base_data_file_user_id AS anon_2_base_data_file_user_id, anon_2.base_data_file_project_id AS anon_2_base_data_file_project_id
FROM (SELECT sample.id AS sample_id, base_data_file.id AS base_data_file_id, base_data_file.data_file_type AS base_data_file_data_file_type, base_data_file.visible AS base_data_file_visible, base_data_file.user_id AS base_data_file_user_id, base_data_file.project_id AS base_data_file_project_id
FROM base_data_file JOIN sample ON base_data_file.id = sample.id
WHERE base_data_file.visible IS 1 AND base_data_file.user_id = ? UNION SELECT sample.id AS sample_id, base_data_file.id AS base_data_file_id, base_data_file.data_file_type AS base_data_file_data_file_type, base_data_file.visible AS base_data_file_visible, base_data_file.user_id AS base_data_file_user_id, base_data_file.project_id AS base_data_file_project_id
FROM base_data_file JOIN sample ON base_data_file.id = sample.id LEFT OUTER JOIN project_user ON project_user.project_id = base_data_file.project_id
WHERE base_data_file.visible IS 1 AND base_data_file.user_id = ?) AS anon_2
LIMIT ? OFFSET ?) AS anon_1 JOIN (SELECT anon_2.sample_id AS anon_2_sample_id, anon_2.base_data_file_data_file_type AS anon_2_base_data_file_data_file_type, anon_2.base_data_file_visible AS anon_2_base_data_file_visible, anon_2.base_data_file_user_id AS anon_2_base_data_file_user_id, anon_2.base_data_file_project_id AS anon_2_base_data_file_project_id
FROM (SELECT sample.id AS sample_id, base_data_file.id AS base_data_file_id, base_data_file.data_file_type AS base_data_file_data_file_type, base_data_file.visible AS base_data_file_visible, base_data_file.user_id AS base_data_file_user_id, base_data_file.project_id AS base_data_file_project_id
FROM base_data_file JOIN sample ON base_data_file.id = sample.id
WHERE base_data_file.visible IS 1 AND base_data_file.user_id = ? UNION SELECT sample.id AS sample_id, base_data_file.id AS base_data_file_id, base_data_file.data_file_type AS base_data_file_data_file_type, base_data_file.visible AS base_data_file_visible, base_data_file.user_id AS base_data_file_user_id, base_data_file.project_id AS base_data_file_project_id
FROM base_data_file JOIN sample ON base_data_file.id = sample.id LEFT OUTER JOIN project_user ON project_user.project_id = base_data_file.project_id
WHERE base_data_file.visible IS 1 AND base_data_file.user_id = ?) AS anon_2
LIMIT ? OFFSET ?) AS anon_1 ON base_data_file.id = anon_1.anon_2_sample_id LEFT OUTER JOIN (samples_tags AS samples_tags_1 JOIN tags AS tags_1 ON tags_1.id = samples_tags_1.tag_id) ON anon_1.anon_2_sample_id = samples_tags_1.sample_id]
[parameters: (1, 1, 10, 0, 1, 1, 10, 0)]
(Background on this error at: http://sqlalche.me/e/14/e3q8)
</code></pre></div>
<p dir="auto"><strong>Versions.</strong></p>
<ul dir="auto">
<li>OS: OSX</li>
<li>Python: 3.8.3</li>
<li>SQLAlchemy: 1.4.17</li>
<li>Database: All</li>
<li>DBAPI:</li>
</ul>
<p dir="auto"><strong>Additional context</strong></p>
<p dir="auto">We are running into it with Postgresql in prod but I made the example with sqlite for simplicity. It raises a <code class="notranslate">DuplicateAlias</code> on pg.<br>
Another thing interesting is that the <code class="notranslate">UNION</code> is present twice in the query, presumably for the polymorphic tables? Seems a bit odd to me but I don't know much about them.</p>
<p dir="auto">I've fixed it for us by changing the union to just fetch the ids, union them via <code class="notranslate">union(user_sample_query, project_samples_query).alias(name="visible_samples")</code> (name not required but nicer than anon etc) and <code class="notranslate">.filter(Sample.id.in_(aliased_union))</code></p>
<p dir="auto"><strong>Have a nice day!</strong></p> | <p dir="auto">Not exactly sure if this is a bug or feature request, but heres what I ran into.<br>
Attributes of base class cannot be validated from subclasses.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Base = declarative_base()
class Employee(Base):
__tablename__ = 'employee'
id = Column(Integer, primary_key=True)
type = Column(String(20), nullable=False)
name = Column(String(50))
__mapper_args__ = {
'polymorphic_on': type,
'polymorphic_identity': 'employee'
}
class Manager(Employee):
__tablename__ = 'manager'
id = Column(Integer, ForeignKey('employee.id'), primary_key=True)
title = Column(String(50))
__mapper_args__ = {
'polymorphic_identity': 'manager'
}
@validates('name')
def validate_name(self, key, name):
assert name == 'mr. manager'
return name
boss = Manager()
boss.name = 'john' # doesn't validate name"><pre class="notranslate"><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">Employee</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'employee'</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">String</span>(<span class="pl-c1">20</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">50</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-s">'polymorphic_identity'</span>: <span class="pl-s">'employee'</span>
}
<span class="pl-k">class</span> <span class="pl-v">Manager</span>(<span class="pl-v">Employee</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'manager'</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-v">ForeignKey</span>(<span class="pl-s">'employee.id'</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">title</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">50</span>))
<span class="pl-s1">__mapper_args__</span> <span class="pl-c1">=</span> {
<span class="pl-s">'polymorphic_identity'</span>: <span class="pl-s">'manager'</span>
}
<span class="pl-en">@<span class="pl-en">validates</span>(<span class="pl-s">'name'</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">validate_name</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>, <span class="pl-s1">name</span>):
<span class="pl-k">assert</span> <span class="pl-s1">name</span> <span class="pl-c1">==</span> <span class="pl-s">'mr. manager'</span>
<span class="pl-k">return</span> <span class="pl-s1">name</span>
<span class="pl-s1">boss</span> <span class="pl-c1">=</span> <span class="pl-v">Manager</span>()
<span class="pl-s1">boss</span>.<span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s">'john'</span> <span class="pl-c"># doesn't validate name</span></pre></div> | 0 |
<p dir="auto">I'm not 100% sure this is by ES6 spec but the following code errors on Edge and Firefox Nightly:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new (class extends Promise {
constructor() {
let newThis = this; // Edge: Use before declaration, Firefox: |this| used uninitialized in anonymous class constructor
super((resolve, reject) => resolve());
}
})()"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-smi">Promise</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</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">newThis</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-c">// Edge: Use before declaration, Firefox: |this| used uninitialized in anonymous class constructor</span>
<span class="pl-smi">super</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">=></span> <span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div> | <p dir="auto">ES6 disallow to use this before super call.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Aaa {
constructor(v: () => number) {
}
}
class Bbb extends Aaa {
vv: number;
constructor() {
this.vv = 111;
super(this.vvv);
}
vvv(): number { return 0; }
}"><pre class="notranslate"><code class="notranslate">class Aaa {
constructor(v: () => number) {
}
}
class Bbb extends Aaa {
vv: number;
constructor() {
this.vv = 111;
super(this.vvv);
}
vvv(): number { return 0; }
}
</code></pre></div>
<p dir="auto">The line "this.vv = 111;" must be after super statement.<br>
The super statement also cannot contain this usage.<br>
Compilation to ES6 gives:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Aaa {
constructor(v) {
}
}
class Bbb extends Aaa {
constructor() {
this.vv = 111;
super(this.vvv);
}
vvv() { return 0; }
}"><pre class="notranslate"><code class="notranslate">class Aaa {
constructor(v) {
}
}
class Bbb extends Aaa {
constructor() {
this.vv = 111;
super(this.vvv);
}
vvv() { return 0; }
}
</code></pre></div>
<p dir="auto">So even if TS wants to relax "this usage before super" (which i doubt), then it must fix in generated ES6 code.</p> | 1 |
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): NA</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): bug</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): HEAD/1.4.0.beta</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
<li><strong>OS</strong> (e.g. from /etc/os-release):</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
<a href="https://github.com/kubernetes/kubernetes/blob/1e7120f02cc39798eb3d2ac0a4e7e8c0e80792ca/cluster/addons/dns/skydns-rc.yaml.base">kube-dns</a> spec here doesn't specify any resource limits for dnsmasq container. With kubelet eviction turned on, this might put the container under best effort class and could get evicted?</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
resource limits for dnsmasq container defined.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p> | <p dir="auto">kubedns has resource/limits but not the dnsmasq cache.</p> | 1 |
<p dir="auto">It was always like this, no regression, just looks bad</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1926584/13848810/ca45bc8e-ec53-11e5-89bf-866989648014.png"><img src="https://cloud.githubusercontent.com/assets/1926584/13848810/ca45bc8e-ec53-11e5-89bf-866989648014.png" alt="screen shot 2016-03-17 at 15 19 48" style="max-width: 100%;"></a></p> | <p dir="auto">When editing Java in Visual Studio Code, import directives are shown with the package names in blue as if they were keywords. They should be shown in black because they are identifiers.</p> | 1 |
<p dir="auto">Is Electron capable of hosting a socket IO web server? I am currently trying to connect to my local systems internal IP over my local network (using a port specified by the Socket.IO server javascript) and my connection is timing out.</p> | <p dir="auto">I've been tracking down a bug in a program that works in OSX but fails mysteriously in Windows. I've pared down a minimal repro case to the <code class="notranslate">net.createConnection</code> / <code class="notranslate">net.createServer</code> APIs w/ a named pipe failing when run in the main atom process.</p>
<p dir="auto">If you specify <code class="notranslate">ATOM_SHELL_INTERNAL_RUN_AS_NODE=1</code> for both ends of the test it will function as you'd expect. If either one (or both) are <code class="notranslate">ATOM_SHELL_INTERNAL_RUN_AS_NODE=0</code>, the repro will hang in the middle of the test and fail to continue the ping/pong cycle.</p>
<p dir="auto">Reproduction steps (tested on Win7/32 w/electron-v0.28.0-win32-ia32):</p>
<ul dir="auto">
<li>Save the snippet below as <code class="notranslate">repro.js</code></li>
<li>Open two Windows command consoles</li>
<li>In the first one, run <code class="notranslate">electron.exe repro.js</code></li>
<li>In the second one, run <code class="notranslate">electron.exe repro.js client</code></li>
</ul>
<p dir="auto">What happens:</p>
<ul dir="auto">
<li>The ping/pong only runs a few cycles back and forth, then stops. It may occasionally continue after a pause of 30-60s.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/512240/8146764/5a48d748-1208-11e5-908e-c538c3f80121.png"><img src="https://cloud.githubusercontent.com/assets/512240/8146764/5a48d748-1208-11e5-908e-c538c3f80121.png" alt="screen shot 2015-06-13 at 8 10 06 pm" style="max-width: 100%;"></a></li>
</ul>
<p dir="auto">What I expect to happen:</p>
<ul dir="auto">
<li>The ping/pong continues indefinitely<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/512240/8146766/6538da86-1208-11e5-8c66-729e258ea577.png"><img src="https://cloud.githubusercontent.com/assets/512240/8146766/6538da86-1208-11e5-8c66-729e258ea577.png" alt="screen shot 2015-06-13 at 8 10 43 pm" style="max-width: 100%;"></a></li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var net = require('net');
var addr = '\\\\?\\pipe\\testpipe';
var counter = 0;
if (process.argv[2] == 'client') {
var client = net.createConnection({ path: addr }, function() {
console.log("Connected to named pipe as client");
client.on('data', function(data) {
console.log("rec'd: " + data);
setTimeout(function() {
client.write("ping " + counter++);
}, 500);
});
client.write('ping!');
}.bind(this));
} else {
net.createServer(function(client) {
console.log("Connected to named pipe as server");
client.on('data', function(data) {
console.log("rec'd: " + data);
setTimeout(function() {
client.write("pong " + counter++);
}, 500);
});
}.bind(this)).listen(addr);
}"><pre class="notranslate"><code class="notranslate">var net = require('net');
var addr = '\\\\?\\pipe\\testpipe';
var counter = 0;
if (process.argv[2] == 'client') {
var client = net.createConnection({ path: addr }, function() {
console.log("Connected to named pipe as client");
client.on('data', function(data) {
console.log("rec'd: " + data);
setTimeout(function() {
client.write("ping " + counter++);
}, 500);
});
client.write('ping!');
}.bind(this));
} else {
net.createServer(function(client) {
console.log("Connected to named pipe as server");
client.on('data', function(data) {
console.log("rec'd: " + data);
setTimeout(function() {
client.write("pong " + counter++);
}, 500);
});
}.bind(this)).listen(addr);
}
</code></pre></div> | 1 |
<h5 dir="auto">Issue Type: Bug Report</h5>
<h5 dir="auto">Ansible Version: 1.5.5, 1.6.10, 1.7.1</h5>
<h5 dir="auto">Environment: Ubuntu 12.04 -> Ubuntu 12.04</h5>
<h5 dir="auto">Summary:</h5>
<p dir="auto">The ansible_ssh_user setting does not appear to be applied to a host when using the delegate_to feature.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">test inventory:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[lb]
lb ansible_ssh_user=ubuntu
[web]
web ansible_ssh_user=ubuntu"><pre class="notranslate"><code class="notranslate">[lb]
lb ansible_ssh_user=ubuntu
[web]
web ansible_ssh_user=ubuntu
</code></pre></div>
<p dir="auto">test.yml playbook:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
---
- hosts: web
serial: 1
sudo: yes
tasks:
- name: this is a test
shell: echo test
delegate_to: lb"><pre class="notranslate">---
- <span class="pl-ent">hosts</span>: <span class="pl-s">web</span>
<span class="pl-ent">serial</span>: <span class="pl-c1">1</span>
<span class="pl-ent">sudo</span>: <span class="pl-s">yes</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">this is a test</span>
<span class="pl-ent">shell</span>: <span class="pl-s">echo test</span>
<span class="pl-ent">delegate_to</span>: <span class="pl-s">lb</span></pre></div>
<p dir="auto">run ansible:<br>
<code class="notranslate">ansible-playbook -i test test.yml -vvvv</code></p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">I expect that it would use the ssh user defined by the ansible_ssh_user setting when attempting to log into the lb node.</p>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [this is a test] ********************************************************
<lb> ESTABLISH CONNECTION FOR USER: user
<lb> REMOTE_MODULE command echo test #USE_SHELL
<lb> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/user/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', 'lb', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1410482613.68-50435724199494 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1410482613.68-50435724199494 && echo $HOME/.ansible/tmp/ansible-tmp-1410482613.68-50435724199494'"]"><pre class="notranslate"><code class="notranslate">TASK: [this is a test] ********************************************************
<lb> ESTABLISH CONNECTION FOR USER: user
<lb> REMOTE_MODULE command echo test #USE_SHELL
<lb> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/user/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', 'lb', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1410482613.68-50435724199494 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1410482613.68-50435724199494 && echo $HOME/.ansible/tmp/ansible-tmp-1410482613.68-50435724199494'"]
</code></pre></div>
<p dir="auto">Comparing this to the ssh command used on tasks that aren't delegated, it's missing the <code class="notranslate">-o User=ubuntu</code> section of the command.</p> | <h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">1.6.6<br>
ansible-playbook 1.7 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/8e940004c2f940fc01eacaf2c403cc2fab61f722/hovercard" href="https://github.com/ansible/ansible/commit/8e940004c2f940fc01eacaf2c403cc2fab61f722"><tt>8e94000</tt></a>) last updated 2014/07/21 13:14:41 (GMT -400)</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">OSX Mavericks</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Delegating a task should accept that delegated host's ansible_ssh_user variable. Instead it returns the currently logged in user.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">inventory:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[host1]
127.0.0.1 ansible_ssh_user=foo
[host2]
127.0.0.2 ansible_ssh_user=bar"><pre class="notranslate"><code class="notranslate">[host1]
127.0.0.1 ansible_ssh_user=foo
[host2]
127.0.0.2 ansible_ssh_user=bar
</code></pre></div>
<p dir="auto">playbook:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: host1
connection: local
tasks:
- debug: var=ansible_ssh_user
delegate_to: host2"><pre class="notranslate"><code class="notranslate">- hosts: host1
connection: local
tasks:
- debug: var=ansible_ssh_user
delegate_to: host2
</code></pre></div>
<h5 dir="auto">Expected Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [host1] ******************************************************************
GATHERING FACTS ***************************************************************
ok: [127.0.0.1]
TASK: [debug var=ansible_ssh_user] ********************************************
ok: [127.0.0.1] => {
"ansible_ssh_user": "bar"
}
PLAY RECAP ********************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [host1] ******************************************************************
GATHERING FACTS ***************************************************************
ok: [127.0.0.1]
TASK: [debug var=ansible_ssh_user] ********************************************
ok: [127.0.0.1] => {
"ansible_ssh_user": "bar"
}
PLAY RECAP ********************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=0
</code></pre></div>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [host1] ******************************************************************
GATHERING FACTS ***************************************************************
ok: [127.0.0.1]
TASK: [debug var=ansible_ssh_user] ********************************************
ok: [127.0.0.1] => {
"ansible_ssh_user": "jmartin"
}
PLAY RECAP ********************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [host1] ******************************************************************
GATHERING FACTS ***************************************************************
ok: [127.0.0.1]
TASK: [debug var=ansible_ssh_user] ********************************************
ok: [127.0.0.1] => {
"ansible_ssh_user": "jmartin"
}
PLAY RECAP ********************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=0
</code></pre></div> | 1 |
<p dir="auto">The usual keystroke pattern on a Mac for referencing one of several windows (as might be open on the left Explorer/Working Files area) is cmd-1, cmd-2, etc, either from top to bottom or left to right. What would be the proper way to adjust my settings so that I accomplish this way of selecting windows in the Working Files area?</p>
<p dir="auto">Besides that, I'm not sure why choosing cmd-2 would open a second/duplicate window for the one I'm already on...</p> | <p dir="auto">One of the many hundreds of awesome features of <code class="notranslate">vi(m)</code> is the ability to jump between several lines and do all sorts of things very quickly. However, that's very difficult to accomplish with the traditional editors.<br>
And this is something I constantly end up missing in VSCode. While there exists a vim emulation, its far from properly usable - At this moment, the idiomatic VSCode way seems a lot more productive.</p>
<p dir="auto">Meanwhile, the <code class="notranslate">Goto</code> feature is often underlooked. Currently the <code class="notranslate">Goto</code> command pops up the command manager prompting for the line number/col number.</p>
<p dir="auto">However, it'd be a relatively easy tweak to this to allow jumping between lines in a relative way. So, the proposal is:</p>
<ol dir="auto">
<li>For the most part the <code class="notranslate">Goto</code> behavior is unchanged.</li>
<li>Prefix a number with <code class="notranslate">+</code>, say <code class="notranslate">+20</code> - now Goto uses the relative information instead of directly going to line 20. So, if the cursor was already at line 20, this ends ups moving to line 40.</li>
<li>Prefix with <code class="notranslate">-</code>, and do just the opposite. Move backward.</li>
<li>Column interactions should remain the same.</li>
<li>Press and Hold "Shift" while hitting "Enter" to finalize the "Goto" command (Shift+Enter, instead of just typing the number and pressing Enter): This ends up selecting the entire block of text inbetween.</li>
</ol>
<p dir="auto">All the above should be relatively simple implementation. However, the next one is quite different, but will be extremely productive. When the Goto command is open - <code class="notranslate">Start highlighting brackets, parenthesis, and significant codepoint like class names. And the highlight should be accompanied by quick text hints to jump to them straight away</code>. Somewhat like how "Vimium" (<a href="https://vimium.github.io/" rel="nofollow">https://vimium.github.io/</a>) does it on Chrome for links.</p>
<p dir="auto">I was looking for a starting point for an extension for the last feature. However, since VSCode provides no way for custom UI interfaces, of overlay, it seems impossible to do it using the currently exposed extensions points. So, I guess its completely upto the team to implement something like these, or if someone can provide suggestions on how to proceed with the hightlights like Vimium does, I'd be happy to prototype an extension. :)</p> | 0 |
<p dir="auto">I get the following problem in <a href="https://travis-ci.org/LearningLocker/xapi-validation" rel="nofollow">a Travis build</a> with Typescript 2.2 using @types/lodash^4.14.45.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules/@types/lodash/index.d.ts(19449,15): error TS2428: All declarations of 'WeakMap' must have identical type parameters."><pre class="notranslate"><code class="notranslate">node_modules/@types/lodash/index.d.ts(19449,15): error TS2428: All declarations of 'WeakMap' must have identical type parameters.
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/lodash</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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"> 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"> <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: @....</li>
</ul>
</li>
</ul>
<p dir="auto">I found this problem compiling a project using Typescript version 2.2.0-dev.20170128 and @types/lodash version 4.14.51. In my case the tsconfig use es6 target. The error message is:</p>
<p dir="auto"><code class="notranslate">node_modules/@types/lodash/index.d.ts(19421,15): error TS2428: All declarations of 'WeakMap' must have identical type parameters. </code><br>
If I browse the file to the line indicated in the error message I can see the following comment:</p>
<p dir="auto"><code class="notranslate">// Backward compatibility with --target es5</code></p>
<p dir="auto">Maybe this is the cause of the issue?<br>
Best regards to all</p> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.