text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<ol dir="auto">
<li><code class="notranslate">git checkout branch-with-some-file</code></li>
<li>Open that file in Atom.</li>
<li><code class="notranslate">git checkout branch-without-that-file</code></li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.199.0<br>
<strong>System</strong>: linux 3.19.7-200.fc21.x86_64<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: ENOENT: no such file or directory, open '/home/jllopis/Documentos/devel/docker/odoo-grupoesoc/addons/partner-contact/partner_gender/models.py'</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:141
Error: ENOENT: no such file or directory, open '/home/jllopis/Documentos/devel/docker/odoo-grupoesoc/addons/partner-contact/partner_gender/models.py'
at Error (native)
"><pre class="notranslate"><code class="notranslate">At events.js:141
Error: ENOENT: no such file or directory, open '/home/jllopis/Documentos/devel/docker/odoo-grupoesoc/addons/partner-contact/partner_gender/models.py'
at Error (native)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"autoHideMenuBar": true
},
"editor": {
"softWrap": true,
"fontSize": 14,
"tabLength": 4,
"showIndentGuide": true,
"invisibles": {},
"preferredLineLength": 79
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"autoHideMenuBar"</span>: <span class="pl-c1">true</span>
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"fontSize"</span>: <span class="pl-c1">14</span>,
<span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span>,
<span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"preferredLineLength"</span>: <span class="pl-c1">79</span>
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
atom-terminal, v0.7.0
editorconfig, v1.0.0
language-docker, v1.1.3
language-restructuredtext, v0.5.0
linter, v0.12.2
linter-flake8, v1.4.0
linter-rst, v0.0.3
linter-xmllint, v0.0.5
minimap, v4.9.0
minimap-find-and-replace, v4.2.0
minimap-git-diff, v4.1.2
minimap-highlight-selected, v4.2.3
minimap-selection, v4.2.0
rst-preview-pandoc, v0.1.7
sync-settings, v0.2.2
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
atom<span class="pl-k">-</span>terminal, v0.<span class="pl-ii">7</span>.<span class="pl-ii">0</span>
editorconfig, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
language<span class="pl-k">-</span>docker, v1.<span class="pl-ii">1</span>.<span class="pl-ii">3</span>
language<span class="pl-k">-</span>restructuredtext, v0.<span class="pl-ii">5</span>.<span class="pl-ii">0</span>
linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">2</span>
linter<span class="pl-k">-</span>flake8, v1.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
linter<span class="pl-k">-</span>rst, v0.<span class="pl-ii">0</span>.<span class="pl-ii">3</span>
linter<span class="pl-k">-</span>xmllint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">5</span>
minimap, v4.<span class="pl-ii">9</span>.<span class="pl-ii">0</span>
minimap<span class="pl-k">-</span>find<span class="pl-k">-</span><span class="pl-k">and</span><span class="pl-k">-</span>replace, v4.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
minimap<span class="pl-k">-</span>git<span class="pl-k">-</span>diff, v4.<span class="pl-ii">1</span>.<span class="pl-ii">2</span>
minimap<span class="pl-k">-</span>highlight<span class="pl-k">-</span>selected, v4.<span class="pl-ii">2</span>.<span class="pl-ii">3</span>
minimap<span class="pl-k">-</span>selection, v4.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
rst<span class="pl-k">-</span>preview<span class="pl-k">-</span>pandoc, v0.<span class="pl-ii">1</span>.<span class="pl-ii">7</span>
sync<span class="pl-k">-</span>settings, v0.<span class="pl-ii">2</span>.<span class="pl-ii">2</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">Some repro steps that I gathered from the existing issues:</p>
<ol dir="auto">
<li>Have a file open in branch <code class="notranslate">something</code> that doesn't exist in branch <code class="notranslate">atom</code></li>
<li><code class="notranslate">git checkout atom</code></li>
<li>ENOENT <g-emoji class="g-emoji" alias="boom" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4a5.png">💥</g-emoji><br>
OR</li>
<li>Have a file open in Atom that will be affected by <code class="notranslate">git rebase</code></li>
<li><code class="notranslate">git rebase</code></li>
<li>ENOENT <g-emoji class="g-emoji" alias="-1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44e.png">👎</g-emoji><br>
OR<br>
Just simply rename a file outside of Atom that's currently open inside of Atom.</li>
</ol> | 1 |
<p dir="auto"><strong>Steps to reproduce and a minimal demo of the problem</strong></p>
<p dir="auto">You can see the issue in the official routing demo: <a href="https://angular.io/resources/live-examples/toh-5/ts/plnkr.html" rel="nofollow">https://angular.io/resources/live-examples/toh-5/ts/plnkr.html</a>.</p>
<p dir="auto"><em>What steps should we try in your demo to see the problem?</em></p>
<ol dir="auto">
<li>Open the demo in Internet Explorer 11.</li>
<li>Click a route link to navigate to it. This works fine and the new route content displays correctly.</li>
<li>Click the browser's back button to go back to the previous route.</li>
</ol>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">In Internet Explorer 11, most of the component content is not rendered when using the browser back or forward buttons to navigate to it.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto">Route content should be displayed regardless of whether navigation occurred via a link or back/forward buttons.</p>
<p dir="auto"><strong>Other information</strong></p>
<p dir="auto">Chrome and Firefox work fine, so this must be caused by a difference in Internet Explorer.</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><br>
Currently, I have a deactivation guard on a route which will return false or true depending on a condition. To get to this guarded route, the user must pass though 3 navigation step. Now, once on the guarded route, when using <code class="notranslate">location.back()</code>, the guard is called. If it returns <code class="notranslate">true</code>, the previous route is loaded. If the guard returns false, the navigation is cancelled. But if we redo a Location.back() after a failed navigation, the previous route that will be loaded will be 2 steps in the history instead of 1 (user perception).</p>
<p dir="auto">Workflow</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Main -- navigate to --> Route 1
Route 1 -- navigate to --> Route 2
Route 2 -- navigate to --> Route 3
Route 3 -- location.back() --> guard returns true --> Route 2
Route 2 -- navigate to --> Route 3
Route 3 -- location.back() --> guard returns false --> Route 3
Route 3 -- location.back() --> guard returns true --> Route 1 (should be Route 2)"><pre class="notranslate"><code class="notranslate">Main -- navigate to --> Route 1
Route 1 -- navigate to --> Route 2
Route 2 -- navigate to --> Route 3
Route 3 -- location.back() --> guard returns true --> Route 2
Route 2 -- navigate to --> Route 3
Route 3 -- location.back() --> guard returns false --> Route 3
Route 3 -- location.back() --> guard returns true --> Route 1 (should be Route 2)
</code></pre></div>
<p dir="auto"><strong>Expected behavior</strong><br>
An expected behavior for a user would be that navigating back brings back to the previous routed page.<br>
Workflow</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Main -- navigate to --> Route 1
Route 1 -- navigate to --> Route 2
Route 2 -- navigate to --> Route 3
Route 3 -- location.back() --> guard returns true --> Route 2
Route 2 -- navigate to --> Route 3
Route 3 -- location.back() --> guard returns false --> Route 3
Route 3 -- location.back() --> guard returns true --> Route 2 (expected)"><pre class="notranslate"><code class="notranslate">Main -- navigate to --> Route 1
Route 1 -- navigate to --> Route 2
Route 2 -- navigate to --> Route 3
Route 3 -- location.back() --> guard returns true --> Route 2
Route 2 -- navigate to --> Route 3
Route 3 -- location.back() --> guard returns false --> Route 3
Route 3 -- location.back() --> guard returns true --> Route 2 (expected)
</code></pre></div>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
<a href="https://embed.plnkr.co/k1iX7PzmOre7P6ACtcur/" rel="nofollow">Plnkr</a></p>
<ol dir="auto">
<li>Click button Nav to route1</li>
<li>Click button Nav to route2</li>
<li>Click button Nav to route3</li>
<li>Click button Block Nav Back</li>
<li>Click button Nav back
<ul dir="auto">
<li>BOGUE: The location.back() routed on Route1 instead of Route2</li>
</ul>
</li>
</ol>
<p dir="auto"><strong>Personnal investigation</strong><br>
After some investigation, I saw that in <code class="notranslate">routerState$.then</code> (<a href="https://sourcegraph.com/github.com/angular/angular@b5c4bf1c59c56d48b8a536aa61c7bd72d94c99fc/-/blob/modules/@angular/router/src/router.ts#L756" rel="nofollow">router.ts line 752</a>) this logic used when <code class="notranslate">navigationIsSuccessful == false</code> is pretty simply but it is the actual cause of this bug. Basically, when a deactivation guard is hit, the location of the browser is already changed to the previous route. Which means that when the guard returns false, the <code class="notranslate">routerState$</code> runs his logic and calls <code class="notranslate">resetUrlToCurrentUrlTree()</code>. At this point we can see that we replace the state of the current location. But by doing this, we loose that route in the history which means that in my plunker, if we click the block nav back 3 times and then click the nav back we will actually kill the application.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
This is for me a pretty big bug since a guard that returns false breaks alters the current routing history. In the case of our application this breaks the workflow and brings wrong business scopes to a user.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<p dir="auto">Windows 10, NPM, Nodejs, Visual Studio 2015 (using nodejs for typescript compilation)</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.3.3</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [ all ]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [TypeScript 2.0.10 | ES5]</p>
</li>
</ul> | 0 |
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11418/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11418/</a></p>
<p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Update Demo should scale a replication controller [Conformance] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:223
Expected error:
<*errors.errorString | 0xc820288b10>: {
s: "Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://146.148.104.179 --kubeconfig=/workspace/.kube/config get pods -o template --template={{range.items}}{{.metadata.name}} {{end}} -l name=update-demo --namespace=e2e-tests-kubectl-qmp44] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] <nil> 0xc82087ee40 exit status 1 <nil> true [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1d8 0xc820a7e1f0] [0xab23f0 0xab23f0] 0xc820b3ed80}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n",
}
Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://146.148.104.179 --kubeconfig=/workspace/.kube/config get pods -o template --template={{range.items}}{{.metadata.name}} {{end}} -l name=update-demo --namespace=e2e-tests-kubectl-qmp44] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
[] <nil> 0xc82087ee40 exit status 1 <nil> true [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1d8 0xc820a7e1f0] [0xab23f0 0xab23f0] 0xc820b3ed80}:
Command stdout:
stderr:
failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
error:
exit status 1
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:223
Expected error:
<*errors.errorString | 0xc820288b10>: {
s: "Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://146.148.104.179 --kubeconfig=/workspace/.kube/config get pods -o template --template={{range.items}}{{.metadata.name}} {{end}} -l name=update-demo --namespace=e2e-tests-kubectl-qmp44] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] <nil> 0xc82087ee40 exit status 1 <nil> true [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1d8 0xc820a7e1f0] [0xab23f0 0xab23f0] 0xc820b3ed80}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n",
}
Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://146.148.104.179 --kubeconfig=/workspace/.kube/config get pods -o template --template={{range.items}}{{.metadata.name}} {{end}} -l name=update-demo --namespace=e2e-tests-kubectl-qmp44] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
[] <nil> 0xc82087ee40 exit status 1 <nil> true [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1c8 0xc820a7e1e0 0xc820a7e1f8] [0xc820a7e1d8 0xc820a7e1f0] [0xab23f0 0xab23f0] 0xc820b3ed80}:
Command stdout:
stderr:
failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
error:
exit status 1
not to have occurred
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163578278" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28437" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28437/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28437">#28437</a></p> | <p dir="auto"><code class="notranslate">error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.</code> appears in a lot of flakes. Speculation is that the metadata server is slow to respond.</p>
<p dir="auto">So far, these are the issues where this message has popped up:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164220053" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28569" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28569/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28569">#28569</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164204998" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28565" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28565/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28565">#28565</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163991819" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28523" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28523/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28523">#28523</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163933215" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28507" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28507/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28507">#28507</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163811600" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28493" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28493/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28493">#28493</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163579268" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28439" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28439/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28439">#28439</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163578278" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28437" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28437/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28437">#28437</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163545161" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28429" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28429/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28429">#28429</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163541783" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28426" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28426/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28426">#28426</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163533035" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28420" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28420/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28420">#28420</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163207971" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28293" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28293/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28293">#28293</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162029512" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27976" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27976/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27976">#27976</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161598746" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27839" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27839/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27839">#27839</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161178789" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27715">#27715</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159529335" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27156" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27156/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27156">#27156</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158173781" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26715">#26715</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157357173" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26490" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26490/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26490">#26490</a></p>
<p dir="auto">Sample failed run: <a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664</a></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cjcullen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cjcullen">@cjcullen</a> since this is dealing with auth, I'm initially assigning to you. Feel free to reassign to someone more appropriate.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">An error page is shown when the react rendering tree throw an error in production</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">A blank page is shown when the react rendering tree throw an error in production</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Render a page server side with no errors</li>
<li>Render a page client side with no errors</li>
<li>Navigate to a page that throw inside the render method.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I'm not 100% sure, but I think that such logic was present with v3.<br>
It could have been removed with <a class="commit-link" href="https://github.com/vercel/next.js/commit/d19cc975f4be6bf1d1ef205950b5749f5e735d78#diff-1858c8296dd2b642c74271609cf701e7L40"><tt>d19cc97</tt>#diff-1858c8296dd2b642c74271609cf701e7L40</a>.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>v4.0.2</td>
</tr>
<tr>
<td>node</td>
<td>v8.1.4</td>
</tr>
<tr>
<td>OS</td>
<td>MacOs</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table> | <p dir="auto">It's a good idea to create immutable static assets, such as images, and set the cache to never expire. It appears that Next.js does a good job of this for the JavaScript files, but it would be great to document a solution for CDN static assets.</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">Next.js build assets get served from <code class="notranslate">_next/<some uuid>/<asset path></code>. Perhaps a similar solution could work for static assets as well? We could supply instructions for setting up common reverse proxies to serve the static assets properly (nginx, haproxy).</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Static assets always get served from the same URL, which forces users to roll their own cache-invalidation solution for static content, even though perfectly usable cache-invalidation is already built-in to Next.js.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">We recently rolled a new version of one of our apps into production. Everything worked great, but it served up the old image assets, which may cause a lot of confusion.</p>
<p dir="auto">Presumably, a solution to this problem is needed for every application ever made. We should make sure it's covered in the Next.js documentation.</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">No bug. Just requesting documentation.</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18956.0
Windows Terminal version (if applicable): 0.3"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18956.0
Windows Terminal version (if applicable): 0.3
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Install FiraCode NF or another ligature font<br>
Type ligatures</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Ligatures when typed, the console will move back appropriately.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15258962/63381761-3674cb00-c34e-11e9-9638-88f9d97acc77.gif"><img src="https://user-images.githubusercontent.com/15258962/63381761-3674cb00-c34e-11e9-9638-88f9d97acc77.gif" alt="LigatureExample" data-animated-image="" style="max-width: 100%;"></a></p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45770325/66528613-725a2000-eab5-11e9-839f-7b2cad40dc10.png"><img width="365" alt="windows-terminal-with-kind" src="https://user-images.githubusercontent.com/45770325/66528613-725a2000-eab5-11e9-839f-7b2cad40dc10.png" style="max-width: 100%;"></a></p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
19000.1000.amd64fre.vb_release_base.191007-1444
Windows Terminal version (if applicable):
Windows Terminal (Preview)
Version: 0.5.2762.0
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
19000.1000.amd64fre.vb_release_base.191007-1444
Windows Terminal version (if applicable):
Windows Terminal (Preview)
Version: 0.5.2762.0
Any other software?
</code></pre></div>
<p dir="auto">WSL2<br>
Ubuntu 18.04<br>
kind setup using <a href="https://kind.sigs.k8s.io/" rel="nofollow">https://kind.sigs.k8s.io/</a></p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Set up WSL2<br>
Setup kind<br>
and create cluster using "kind create cluster"</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Windows Terminal should render symbols and fonts correctly</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Windows Terminal renders image icon at the end of 1st line small and with big ?</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.5-SNAPSHOT</li>
<li>Operating System version: Max OS 10.14.5</li>
<li>Java version: Oracle jdk 1.8.0_131</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>checkout master branch</li>
<li>checkout HEAD <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/dubbo/commit/15d808446d4bebc3b87f986ccc657f9e5baff728/hovercard" href="https://github.com/apache/dubbo/commit/15d808446d4bebc3b87f986ccc657f9e5baff728"><tt>15d8084</tt></a></li>
<li>run command: ./mvnw clean install -DskipTests=false & ./mvnw clean test-compile failsafe:integration-test</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<p dir="auto">The build should run successfully</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">Unit test failing</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ServiceConfigTest.testDelayExport:173
Expected: a collection with size <1>
but: collection size was <0>
[ERROR] ServiceConfigTest.testExport:155
protocol.export(
<any org.apache.dubbo.rpc.Invoker>
);
Wanted 1 time:
-> at org.apache.dubbo.config.ServiceConfigTest.testExport(ServiceConfigTest.java:155)
But was 2 times:
-> at org.apache.dubbo.config.mock.MockProtocol2.export(MockProtocol2.java:36)
-> at org.apache.dubbo.config.mock.MockProtocol2.export(MockProtocol2.java:36)
[INFO]
[ERROR] Tests run: 557, Failures: 2, Errors: 0, Skipped: 2
"><pre class="notranslate"><code class="notranslate">[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ServiceConfigTest.testDelayExport:173
Expected: a collection with size <1>
but: collection size was <0>
[ERROR] ServiceConfigTest.testExport:155
protocol.export(
<any org.apache.dubbo.rpc.Invoker>
);
Wanted 1 time:
-> at org.apache.dubbo.config.ServiceConfigTest.testExport(ServiceConfigTest.java:155)
But was 2 times:
-> at org.apache.dubbo.config.mock.MockProtocol2.export(MockProtocol2.java:36)
-> at org.apache.dubbo.config.mock.MockProtocol2.export(MockProtocol2.java:36)
[INFO]
[ERROR] Tests run: 557, Failures: 2, Errors: 0, Skipped: 2
</code></pre></div> | <p dir="auto"><a href="https://github.com/apache/incubator-dubbo/blob/master/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationBeanPostProcessor.java">https://github.com/apache/incubator-dubbo/blob/master/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationBeanPostProcessor.java</a></p>
<p dir="auto">这个java类里面的private void registerServiceBean 这个方法, 下面这几行<br>
if (scanner.checkCandidate(beanName, serviceBeanDefinition)) { // check duplicated candidate bean<br>
registry.registerBeanDefinition(beanName, serviceBeanDefinition);</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if (logger.isInfoEnabled()) {
logger.warn("The BeanDefinition[" + serviceBeanDefinition +
"] of ServiceBean has been registered with name : " + beanName);
}
} else {
if (logger.isWarnEnabled()) {
logger.warn("The Duplicated BeanDefinition[" + serviceBeanDefinition +
"] of ServiceBean[ bean name : " + beanName +
"] was be found , Did @DubboComponentScan scan to same package in many times?");
}
}"><pre class="notranslate"><code class="notranslate"> if (logger.isInfoEnabled()) {
logger.warn("The BeanDefinition[" + serviceBeanDefinition +
"] of ServiceBean has been registered with name : " + beanName);
}
} else {
if (logger.isWarnEnabled()) {
logger.warn("The Duplicated BeanDefinition[" + serviceBeanDefinition +
"] of ServiceBean[ bean name : " + beanName +
"] was be found , Did @DubboComponentScan scan to same package in many times?");
}
}
</code></pre></div>
<p dir="auto">请问, 为什么在检查没有重复的bean定义的时候, 还要打印一条警告信息? 不是应该是info信息吗?</p> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1321" rel="nofollow">http://projects.scipy.org/numpy/ticket/1321</a> on 2009-12-09 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/FrancescAlted/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/FrancescAlted">@FrancescAlted</a>, assigned to unknown.</em></p>
<p dir="auto">After some discussion in the list, we felt that the dtype should be immutable. Currently this is not the case, as the <code class="notranslate">names</code> attribute can be changed:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [19]: t = np.dtype("i4,f4")
In [20]: t
Out[20]: dtype([('f0', '<i4'), ('f1', '<f4')])
In [21]: hash(t)
Out[21]: -9041335829180134223
In [22]: t.names = ('one', 'other')
In [23]: t
Out[23]: dtype([('one', '<i4'), ('other', '<f4')])
In [24]: hash(t)
Out[24]: 8637734220020415106"><pre class="notranslate"><code class="notranslate">In [19]: t = np.dtype("i4,f4")
In [20]: t
Out[20]: dtype([('f0', '<i4'), ('f1', '<f4')])
In [21]: hash(t)
Out[21]: -9041335829180134223
In [22]: t.names = ('one', 'other')
In [23]: t
Out[23]: dtype([('one', '<i4'), ('other', '<f4')])
In [24]: hash(t)
Out[24]: 8637734220020415106
</code></pre></div>
<p dir="auto">[although the change of the hash seems to depend on the Python version]</p>
<p dir="auto">As a bonus, an immutable <code class="notranslate">dtype</code> would render this ticket <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7728593" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/1725" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/1725/hovercard" href="https://github.com/numpy/numpy/issues/1725">#1725</a><br>
without effect.</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1127" rel="nofollow">http://projects.scipy.org/numpy/ticket/1127</a> on 2009-06-05 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/FrancescAlted/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/FrancescAlted">@FrancescAlted</a>, assigned to unknown.</em></p>
<p dir="auto">The dtype object seems to be shared after a copy of a structured array is done. This is inconvenient when you change properties in one of arrays and these are propagated to the other.</p>
<p dir="auto">The next snippet exposes the problem:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [21]: dt = np.dtype('f4,f8')
In [22]: ra = np.empty(1, dt)
In [23]: ra.dtype
Out[23]: dtype([('f0', '<f4'), ('f1', '<f8')])
In [24]: rb = ra[:]
In [25]: ra.dtype.names = ('float', 'double')
In [26]: ra.dtype
Out[26]: dtype([('float', '<f4'), ('double', '<f8')])
In [27]: rb.dtype
Out[27]: dtype([('float', '<f4'), ('double', '<f8')]) # not the original!"><pre class="notranslate"><code class="notranslate">In [21]: dt = np.dtype('f4,f8')
In [22]: ra = np.empty(1, dt)
In [23]: ra.dtype
Out[23]: dtype([('f0', '<f4'), ('f1', '<f8')])
In [24]: rb = ra[:]
In [25]: ra.dtype.names = ('float', 'double')
In [26]: ra.dtype
Out[26]: dtype([('float', '<f4'), ('double', '<f8')])
In [27]: rb.dtype
Out[27]: dtype([('float', '<f4'), ('double', '<f8')]) # not the original!
</code></pre></div> | 1 |
<p dir="auto">Uncaught Error: Atom can only handle files < 2MB for now.</p>
<p dir="auto"><strong>Atom Version</strong>: 0.158.0<br>
<strong>System</strong>: linux 3.13.0-37-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<h3 dir="auto">Stack Trace</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /usr/share/atom/resources/app/src/project.js:461
Error: Atom can only handle files < 2MB for now.
at Project.module.exports.Project.buildBuffer (/usr/share/atom/resources/app/src/project.js:461:15)
at Project.module.exports.Project.bufferForPath (/usr/share/atom/resources/app/src/project.js:438:63)
at Project.module.exports.Project.open (/usr/share/atom/resources/app/src/project.js:392:19)
at Workspace.module.exports.Workspace.openUriInPane (/usr/share/atom/resources/app/src/workspace.js:482:29)
at Workspace.module.exports.Workspace.open (/usr/share/atom/resources/app/src/workspace.js:409:19)
at Ipc.<anonymous> (/usr/share/atom/resources/app/src/window-event-handler.js:45:32)
at Ipc.emit (events.js:110:17)
at process.<anonymous> (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:22:29)
at process.emit (events.js:118:17)
"><pre class="notranslate"><code class="notranslate">At /usr/share/atom/resources/app/src/project.js:461
Error: Atom can only handle files < 2MB for now.
at Project.module.exports.Project.buildBuffer (/usr/share/atom/resources/app/src/project.js:461:15)
at Project.module.exports.Project.bufferForPath (/usr/share/atom/resources/app/src/project.js:438:63)
at Project.module.exports.Project.open (/usr/share/atom/resources/app/src/project.js:392:19)
at Workspace.module.exports.Workspace.openUriInPane (/usr/share/atom/resources/app/src/workspace.js:482:29)
at Workspace.module.exports.Workspace.open (/usr/share/atom/resources/app/src/workspace.js:409:19)
at Ipc.<anonymous> (/usr/share/atom/resources/app/src/window-event-handler.js:45:32)
at Ipc.emit (events.js:110:17)
at process.<anonymous> (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:22:29)
at process.emit (events.js:118:17)
</code></pre></div> | <p dir="auto">Uncaught Error: Atom can only handle files < 2MB for now.</p>
<p dir="auto"><strong>Atom Version</strong>: 0.153.0<br>
<strong>System</strong>: linux 3.13.0-40-generic<br>
<strong>Thrown From</strong>: <a href="https://github.com/atom/tree-view">tree-view</a> package</p> | 1 |
<p dir="auto">Here is the error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="main.rs:4:21: 4:26 error: internal compiler error: borrow-vec associated with bad sty: &ty_err
main.rs:4 let pie_slice = array.slice(1, 2);
^~~~~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:115
stack backtrace:
1: 0x7fde1a0f5620 - rt::backtrace::imp::write::h0fea79425673725266p
2: 0x7fde1a0f8e80 - failure::on_fail::h9aabe19bffc3104alsq
3: 0x7fde1a8bbff0 - unwind::begin_unwind_inner::h9b55d31cfec63a9e40d
4: 0x7fde18d72a90 - unwind::begin_unwind::h1183448402907672069
5: 0x7fde18d729c0 - diagnostic::SpanHandler::span_bug::h5b8de884ef10a1cbUdy
6: 0x7fde1ad239c0 - driver::session::Session::span_bug::hf691bf888bfdb422Znt
7: 0x7fde1ae92610 - middle::ty::adjust_ty::borrow_vec::h6f1dca784386e59eDZT
8: 0x7fde1ae8fa00 - middle::ty::adjust_ty::hcb1fa49e78b9b840LST
9: 0x7fde1af8b380 - middle::typeck::check::regionck::constrain_regions_in_type_of_node::h87665c249e125f57NWc
10: 0x7fde1af86050 - middle::typeck::check::regionck::visit_expr::h73423e7aa5968300D7b
11: 0x7fde1af8d470 - visit::walk_expr::h17493730021457087419
12: 0x7fde1af86050 - middle::typeck::check::regionck::visit_expr::h73423e7aa5968300D7b
13: 0x7fde1af8a160 - middle::typeck::check::regionck::visit_local::h763740eedaeb1379i4b
14: 0x7fde1af8a3d0 - visit::walk_block::h12723599008176341713
15: 0x7fde1afcee00 - middle::typeck::check::check_bare_fn::haf584d83c0be5c3bwBg
16: 0x7fde1afc7e60 - middle::typeck::check::check_item::h08679946a56c7e5fcah
17: 0x7fde1afcec00 - middle::typeck::check::check_item_types::hfa0d60d09ac306bcOAg
18: 0x7fde1b140a50 - middle::typeck::check_crate::h59523a23ed9761e6GhH
19: 0x7fde1b4c9d20 - driver::driver::phase_3_run_analysis_passes::h47669ed167b54bdezhs
20: 0x7fde1b4c55c0 - driver::driver::compile_input::h539bec547706263dA3r
21: 0x7fde1b57e050 - driver::run_compiler::h9cb91406a88d027059u
22: 0x7fde1b57df60 - driver::main_args::closure.$x22closure$x22$LP$133605$RP$
23: 0x7fde1b591ab0 - task::TaskBuilder<S>::try_future::closure.$x22closure$x22$LP$134754$RP$
24: 0x7fde1b591840 - task::TaskBuilder<S>::spawn_internal::closure.$x22closure$x22$LP$134731$RP$
25: 0x7fde1bf35df0 - task::spawn_opts::closure.$x22closure$x22$LP$8163$RP$
26: 0x7fde1a9137b0 - rust_try
27: 0x7fde1a8b9080 - unwind::try::hc59e8203d98cfea8tPd
28: 0x7fde1a8b8de0 - task::Task::run::hc5aad491de06c5bcP0c
29: 0x7fde1bf35be0 - task::spawn_opts::closure.$x22closure$x22$LP$8109$RP$
30: 0x7fde1a8bb060 - thread::thread_start::h597549996b7dcb76nnd
31: 0x7fde19b75060 - start_thread
32: 0x7fde1a583489 - __clone
33: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">main.rs:4:21: 4:26 error: internal compiler error: borrow-vec associated with bad sty: &ty_err
main.rs:4 let pie_slice = array.slice(1, 2);
^~~~~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:115
stack backtrace:
1: 0x7fde1a0f5620 - rt::backtrace::imp::write::h0fea79425673725266p
2: 0x7fde1a0f8e80 - failure::on_fail::h9aabe19bffc3104alsq
3: 0x7fde1a8bbff0 - unwind::begin_unwind_inner::h9b55d31cfec63a9e40d
4: 0x7fde18d72a90 - unwind::begin_unwind::h1183448402907672069
5: 0x7fde18d729c0 - diagnostic::SpanHandler::span_bug::h5b8de884ef10a1cbUdy
6: 0x7fde1ad239c0 - driver::session::Session::span_bug::hf691bf888bfdb422Znt
7: 0x7fde1ae92610 - middle::ty::adjust_ty::borrow_vec::h6f1dca784386e59eDZT
8: 0x7fde1ae8fa00 - middle::ty::adjust_ty::hcb1fa49e78b9b840LST
9: 0x7fde1af8b380 - middle::typeck::check::regionck::constrain_regions_in_type_of_node::h87665c249e125f57NWc
10: 0x7fde1af86050 - middle::typeck::check::regionck::visit_expr::h73423e7aa5968300D7b
11: 0x7fde1af8d470 - visit::walk_expr::h17493730021457087419
12: 0x7fde1af86050 - middle::typeck::check::regionck::visit_expr::h73423e7aa5968300D7b
13: 0x7fde1af8a160 - middle::typeck::check::regionck::visit_local::h763740eedaeb1379i4b
14: 0x7fde1af8a3d0 - visit::walk_block::h12723599008176341713
15: 0x7fde1afcee00 - middle::typeck::check::check_bare_fn::haf584d83c0be5c3bwBg
16: 0x7fde1afc7e60 - middle::typeck::check::check_item::h08679946a56c7e5fcah
17: 0x7fde1afcec00 - middle::typeck::check::check_item_types::hfa0d60d09ac306bcOAg
18: 0x7fde1b140a50 - middle::typeck::check_crate::h59523a23ed9761e6GhH
19: 0x7fde1b4c9d20 - driver::driver::phase_3_run_analysis_passes::h47669ed167b54bdezhs
20: 0x7fde1b4c55c0 - driver::driver::compile_input::h539bec547706263dA3r
21: 0x7fde1b57e050 - driver::run_compiler::h9cb91406a88d027059u
22: 0x7fde1b57df60 - driver::main_args::closure.$x22closure$x22$LP$133605$RP$
23: 0x7fde1b591ab0 - task::TaskBuilder<S>::try_future::closure.$x22closure$x22$LP$134754$RP$
24: 0x7fde1b591840 - task::TaskBuilder<S>::spawn_internal::closure.$x22closure$x22$LP$134731$RP$
25: 0x7fde1bf35df0 - task::spawn_opts::closure.$x22closure$x22$LP$8163$RP$
26: 0x7fde1a9137b0 - rust_try
27: 0x7fde1a8b9080 - unwind::try::hc59e8203d98cfea8tPd
28: 0x7fde1a8b8de0 - task::Task::run::hc5aad491de06c5bcP0c
29: 0x7fde1bf35be0 - task::spawn_opts::closure.$x22closure$x22$LP$8109$RP$
30: 0x7fde1a8bb060 - thread::thread_start::h597549996b7dcb76nnd
31: 0x7fde19b75060 - start_thread
32: 0x7fde1a583489 - __clone
33: 0x0 - <unknown>
</code></pre></div>
<p dir="auto">Here is the code that generates the error</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main()
{
let mut array = [1, 2, 3];
let pie_slice = array.slice(1, 2);
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-k">mut</span> array = <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> pie_slice = array<span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">My system is x86_64 archlinux. The rust compiler version is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc -v
rustc 0.12.0-pre-nightly (afbcbbc77ffc6b10053bc543daf7d2e05d68cc01 2014-07-16 00:31:15 +0000)"><pre class="notranslate"><code class="notranslate">rustc -v
rustc 0.12.0-pre-nightly (afbcbbc77ffc6b10053bc543daf7d2e05d68cc01 2014-07-16 00:31:15 +0000)
</code></pre></div>
<p dir="auto">Let me know if you guys need anything else.</p>
<p dir="auto">(The code is really short so it shouldn't be hard to just type it in to duplicate the bug)</p> | <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
let v = &[];
let it = v.iter();
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> v = <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> it = v<span class="pl-kos">.</span><span class="pl-en">iter</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="vec-ice.rs:3:13: 3:14 error: internal compiler error: borrow-vec associated with bad sty: &ty_err
vec-ice.rs:3 let it = v.iter();
^"><pre class="notranslate"><code class="notranslate">vec-ice.rs:3:13: 3:14 error: internal compiler error: borrow-vec associated with bad sty: &ty_err
vec-ice.rs:3 let it = v.iter();
^
</code></pre></div>
<p dir="auto">(Doesn't happen with <code class="notranslate">.slice</code>.)</p> | 1 |
<p dir="auto">I'd like to be able to have multiple instances of a model in a scene, each using different materials.</p>
<p dir="auto">If I have a mesh with only one material, I can just create multiple THREE.Mesh objects that all use the same mesh geometry and then apply different materials to each THREE.Mesh. No problem.</p>
<p dir="auto">However, if I have geometry that has multiple materials, I need to use the MeshFaceMaterial for the THREE.Mesh and assign an array of materials to the geometry object. So, my question is, is there any way to have multiple instances of that geometry that also have different materials without duplicating the geometry data?</p>
<p dir="auto">If this functionality doesn't exist, I'd be interested in adding it to Three.JS.</p>
<p dir="auto">Up until now, I've actually been splitting this type of geometry into pieces (one for each material) and then creating a separate THREE.Mesh for each but I'm not sure this is the best way (and it seems like it might cause a fair bit more overhead since there are potentially many more transformations being processed for a single model).</p> | <p dir="auto">The aClockwise option in arc / absarc / absellipse on THREE.Path has some strange behavior.</p>
<p dir="auto">Here's a test that plots the curve on a canvas context:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function test(ctx) {
var path = new THREE.Path();
path.absarc( 100, // x
100, // y
50, // radius
2, // start
6, // end
false); // anti-clockwise
var pts = path.getSpacedPoints();
pts.forEach(function(p) {
ctx.lineTo(p.x, p.y);
});
ctx.stroke();
}"><pre class="notranslate"><code class="notranslate">function test(ctx) {
var path = new THREE.Path();
path.absarc( 100, // x
100, // y
50, // radius
2, // start
6, // end
false); // anti-clockwise
var pts = path.getSpacedPoints();
pts.forEach(function(p) {
ctx.lineTo(p.x, p.y);
});
ctx.stroke();
}
</code></pre></div>
<p dir="auto">This produces: <a href="https://cloudup.com/cqjdrH4C1T8" rel="nofollow">https://cloudup.com/cqjdrH4C1T8</a></p>
<p dir="auto">Changing anti-clockwise to true produces the exact same ellipse instead of following the other path of the circle to the same destination.</p>
<p dir="auto">It also has some strange effects when you introduce other actions into the path.</p>
<p dir="auto">If I add a lineTo after absarc:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function test(ctx) {
var path = new THREE.Path();
path.absarc( 100, // x
100, // y
50, // radius
2, // start
6, // end
false); // anti-clockwise
path.lineTo(100, 50);
var pts = path.getSpacedPoints();
pts.forEach(function(p) {
ctx.lineTo(p.x, p.y);
});
ctx.stroke();
}"><pre class="notranslate"><code class="notranslate">function test(ctx) {
var path = new THREE.Path();
path.absarc( 100, // x
100, // y
50, // radius
2, // start
6, // end
false); // anti-clockwise
path.lineTo(100, 50);
var pts = path.getSpacedPoints();
pts.forEach(function(p) {
ctx.lineTo(p.x, p.y);
});
ctx.stroke();
}
</code></pre></div>
<p dir="auto">I get <a href="https://cloudup.com/c8yYMvgAx3T" rel="nofollow">https://cloudup.com/c8yYMvgAx3T</a></p>
<p dir="auto">and if I change anti-clockwise to true: <a href="https://cloudup.com/cinzkh2Oj75" rel="nofollow">https://cloudup.com/cinzkh2Oj75</a></p> | 0 |
<p dir="auto">It's like the Shingle tokenfilter but only for common words.</p> | <p dir="auto">Many queries duplicate code when it comes to:</p>
<ul dir="auto">
<li>resolving field to their index names</li>
<li>handling regex patterns in fields</li>
<li>handling boost in fields</li>
<li>setting up the Analyzer from a string</li>
<li>serializing enums</li>
</ul>
<p dir="auto">We should consolidate these functions in a support class instead. This should<br>
also ease adding those functionalities to the other queries.</p> | 0 |
<p dir="auto">There was a fix made in 2.2.2 to address 0 font size for popovers within a btn group:</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8447581" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/5939" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/5939/hovercard" href="https://github.com/twbs/bootstrap/issues/5939">#5939</a></p>
<p dir="auto">I don't think the fix was comprehensive as it still happens in other situations. Here's an example within an input-append form element:</p>
<p dir="auto"><a href="http://jsfiddle.net/YUS87/" rel="nofollow">http://jsfiddle.net/YUS87/</a></p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="btn-group">
<a class="btn" rel="popover" data-content="Lorem ipsum dolor sit amet.">Click me!</a>
</div>"><pre lang="ħtml" class="notranslate"><code class="notranslate"><div class="btn-group">
<a class="btn" rel="popover" data-content="Lorem ipsum dolor sit amet.">Click me!</a>
</div>
</code></pre></div>
<p dir="auto">Clicking the button results in a blank popover appearing. Am I doing something wrong or is this an issue? If so, is there any workaround in the meantime?</p>
<p dir="auto">Thanks in advance.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest <code class="notranslate">angular-ui-router/angular-ui-router.d.ts</code> file in this repo and had problems.</li>
</ul>
<p dir="auto">angular-ui-router isn't working when using @types/angular-ui-router.</p>
<p dir="auto"><code class="notranslate">"Module 'angular' has no exported member 'ui'"</code></p>
<p dir="auto">every file now is red, and won't compile</p>
<p dir="auto">Looks like having a <code class="notranslate"><reference types="angular" /></code> alongside a <code class="notranslate">import * as angular from 'angular';</code> won't work</p>
<p dir="auto">Same thing happens with angular-ui-bootstrap</p>
<p dir="auto">The modules that depend on <code class="notranslate">@types/angular</code> are outright broken. I'm not using angular global variable and when I do <code class="notranslate">import * as angular from 'angular'</code> then try to access a module namespace, such as <code class="notranslate">angular.ui.bootstrap</code>, <code class="notranslate">angular.translate</code>, <code class="notranslate">angular.ui</code>, they all give the error <code class="notranslate">Module 'angular' has no exported member 'ui'</code></p>
<p dir="auto">the code below fails:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict';
import * as angular from 'angular';
class Config {
static $inject = ['$stateProvider', '$urlRouterProvider'];
constructor($stateProvider: angular.ui.IStateProvider, $urlProvider: angular.ui.IUrlRouterProvider) {
/*...*/
}
}
angular.module('Module', []).config(Config);"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">angular</span> <span class="pl-k">from</span> <span class="pl-s">'angular'</span><span class="pl-kos">;</span>
<span class="pl-k">class</span> <span class="pl-smi">Config</span> <span class="pl-kos">{</span>
<span class="pl-k">static</span> <span class="pl-c1">$inject</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">'$stateProvider'</span><span class="pl-kos">,</span> <span class="pl-s">'$urlRouterProvider'</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">$stateProvider</span>: <span class="pl-s1">angular</span><span class="pl-kos">.</span><span class="pl-s1">ui</span><span class="pl-kos">.</span><span class="pl-smi">IStateProvider</span><span class="pl-kos">,</span> <span class="pl-s1">$urlProvider</span>: <span class="pl-s1">angular</span><span class="pl-kos">.</span><span class="pl-s1">ui</span><span class="pl-kos">.</span><span class="pl-smi">IUrlRouterProvider</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">/*...*/</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-s1">angular</span><span class="pl-kos">.</span><span class="pl-en">module</span><span class="pl-kos">(</span><span class="pl-s">'Module'</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-en">config</span><span class="pl-kos">(</span><span class="pl-smi">Config</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | <ul dir="auto">
<li>I tried using the <code class="notranslate">@types/node</code> package and had the problems below .</li>
</ul>
<p dir="auto">`node_modules/@types/node/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.</p>
<p dir="auto">56 export = assert;<br>
~~~~~~</p>
<p dir="auto">node_modules/@types/node/ts3.7/assert.d.ts:56:14<br>
56 export = assert;<br>
~~~~~~<br>
'assert' was also declared here.</p>
<p dir="auto">node_modules/@types/node/ts3.5/globals.global.d.ts:1:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'global' must be of type 'Global', but here has type 'Global & typeof globalThis'.</p>
<p dir="auto">1 declare var global: NodeJS.Global & typeof globalThis;<br>
~~~~~~</p>
<p dir="auto">node_modules/@types/node/globals.global.d.ts:1:13<br>
1 declare var global: NodeJS.Global;<br>
~~~~~~<br>
'global' was also declared here.</p>
<p dir="auto">node_modules/@types/node/ts3.7/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.</p>
<p dir="auto">56 export = assert;<br>
~~~~~~</p>
<p dir="auto">node_modules/@types/node/assert.d.ts:56:14<br>
56 export = assert;<br>
~~~~~~<br>
'assert' was also declared here.`</p>
<ul class="contains-task-list">
<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 fixed this error by removing the assert.d.ts file in the node/ts3.7 folder ,seems it was conflicting with the existing assert.d.ts in the root @types/node folder</li>
</ul>
<p dir="auto">@<a href="https://github.com/blog/821-mention-somebody-they-re-notified">https://github.com/blog/821-mention-somebody-they-re-notified</a></p>
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kamal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kamal">@kamal</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tdreyno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tdreyno">@tdreyno</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jonmagic/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jonmagic">@jonmagic</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/farcaller/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/farcaller">@farcaller</a></li>
</ul> | 0 |
<p dir="auto">I decide to improve my site performance with angular 2 AoT compiler.<br>
As some requirements issue, i need loading my components dynamically in my ng2 app, when i start to build my app with AoT compiler, everythings goes well, but if i open the url, i got an error: "Runtime compiler is not loaded", after i doing some researches on the Internet, it's look like that Aot could not works with runtime compiler defaultly. Is there any workaround? Any input will be appreciated.<br>
Thanks.</p> | <p dir="auto">I'm trying to create component similar to this <a href="https://github.com/michaelbromley/angularUtils/tree/master/src/directives/uiBreadcrumbs">https://github.com/michaelbromley/angularUtils/tree/master/src/directives/uiBreadcrumbs</a></p>
<p dir="auto">What I'm doing at the moment is this <a href="https://gist.github.com/fxck/108dccf4529becf9bc92">https://gist.github.com/fxck/108dccf4529becf9bc92</a></p>
<p dir="auto">The problem is, that I can't really access route name from instruction, so I can't really create links for the crumbs, workaround was to duplicate name in data(<a href="https://gitter.im/angular/angular?at=564a3e5daca9bb7c6e508203" rel="nofollow">https://gitter.im/angular/angular?at=564a3e5daca9bb7c6e508203</a>) which is not ideal, but there seems to be no other way at the moment.</p>
<p dir="auto">Check <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115703104" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/5180" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/5180/hovercard" href="https://github.com/angular/angular/issues/5180">#5180</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117349733" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/5335" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/5335/hovercard" href="https://github.com/angular/angular/issues/5335">#5335</a> as well.</p> | 0 |
<h3 dir="auto">Describe the issue:</h3>
<p dir="auto">Before version 1.24, <code class="notranslate">numpy.masked_invalid</code> was converting its input to a numpy array, which allowed to pass array-like input.<br>
Changes in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1317585663" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/22046" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/22046/hovercard" href="https://github.com/numpy/numpy/pull/22046">#22046</a> breaks this, which makes for instance some function in matplotlib fails with pandas series (for instance <code class="notranslate">fill_betweenx</code>.</p>
<p dir="auto">I don't know if this is an intended change to only support <code class="notranslate">np.array</code> here, but I just wanted to document this.<br>
I will also report to the <code class="notranslate">matplotlib</code> developpers.</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import pandas as pd
np.ma.masked_invalid(pd.Series([1, 2, 3]))"><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-s1">np</span>.<span class="pl-s1">ma</span>.<span class="pl-en">masked_invalid</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">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="---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[3], line 1
----> 1 np.ma.masked_invalid(pd.Series([1, 2, 3]))
File ~/.local/miniconda/envs/test_benchopt/lib/python3.11/site-packages/numpy/ma/core.py:2360, in masked_invalid(a, copy)
2332 def masked_invalid(a, copy=True):
2333 """
2334 Mask an array where invalid values occur (NaNs or infs).
2335
(...)
2357
2358 """
-> 2360 return masked_where(~(np.isfinite(getdata(a))), a, copy=copy)
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''"><pre class="notranslate">---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[3], line 1
----<span class="pl-k">></span> 1 np.ma.masked_invalid(pd.Series([1, 2, 3]))
File <span class="pl-k">~</span>/.local/miniconda/envs/test_benchopt/lib/python3.11/site-packages/numpy/ma/core.py:2360, <span class="pl-k">in</span> masked_invalid(a, copy)
2332 def masked_invalid(a, copy=True):
2333 <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-s"> 2334 Mask an array where invalid values occur (NaNs or infs).</span>
<span class="pl-s"> 2335 </span>
<span class="pl-s"> (...)</span>
<span class="pl-s"> 2357 </span>
<span class="pl-s"> 2358 <span class="pl-pds">"</span><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
-<span class="pl-k">></span> 2360 <span class="pl-k">return</span> masked_where(~(np.isfinite(getdata(a))), a, copy=copy)
TypeError: ufunc <span class="pl-s"><span class="pl-pds">'</span>isfinite<span class="pl-pds">'</span></span> not supported <span class="pl-k">for</span> the input types, and the inputs could not be safely coerced to any supported types according to the casting rule <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>safe<span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span></pre></div>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">This starts to fail with numpy 1.24. Working with previous version.</p>
<h3 dir="auto">Context for the issue:</h3>
<p dir="auto"><em>No response</em></p> | <h3 dir="auto">Describe the issue:</h3>
<p dir="auto">Hello, this just popped up <a href="https://github.com/mwaskom/seaborn/actions/runs/3728877621/jobs/6324262230">in my tests</a> with the 1.24.0 release:</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np, pandas as pd
np.ma.masked_invalid(pd.Series([1., 2.]))"><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">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">np</span>.<span class="pl-s1">ma</span>.<span class="pl-en">masked_invalid</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1.</span>, <span class="pl-c1">2.</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="---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In [35], line 2
1 import numpy as np, pandas as pd
----> 2 np.ma.masked_invalid(pd.Series([1., 2.]))
File ~/miniconda/envs/py310/lib/python3.10/site-packages/numpy/ma/core.py:2360, in masked_invalid(a, copy)
2332 def masked_invalid(a, copy=True):
2333 """
2334 Mask an array where invalid values occur (NaNs or infs).
2335
(...)
2357
2358 """
-> 2360 return masked_where(~(np.isfinite(getdata(a))), a, copy=copy)
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''"><pre class="notranslate">---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In [35], line 2
1 import numpy as np, pandas as pd
----<span class="pl-k">></span> 2 np.ma.masked_invalid(pd.Series([1., 2.]))
File <span class="pl-k">~</span>/miniconda/envs/py310/lib/python3.10/site-packages/numpy/ma/core.py:2360, <span class="pl-k">in</span> masked_invalid(a, copy)
2332 def masked_invalid(a, copy=True):
2333 <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
<span class="pl-s"> 2334 Mask an array where invalid values occur (NaNs or infs).</span>
<span class="pl-s"> 2335 </span>
<span class="pl-s"> (...)</span>
<span class="pl-s"> 2357 </span>
<span class="pl-s"> 2358 <span class="pl-pds">"</span><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
-<span class="pl-k">></span> 2360 <span class="pl-k">return</span> masked_where(~(np.isfinite(getdata(a))), a, copy=copy)
TypeError: ufunc <span class="pl-s"><span class="pl-pds">'</span>isfinite<span class="pl-pds">'</span></span> not supported <span class="pl-k">for</span> the input types, and the inputs could not be safely coerced to any supported types according to the casting rule <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>safe<span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span></pre></div>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">1.24.0 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:38:29) [Clang 13.0.1 ]</p>
<p dir="auto">Pandas is 1.5.2</p>
<h3 dir="auto">Context for the issue:</h3>
<p dir="auto">The issue seems to be with <code class="notranslate">getdata</code>, which is pulling out the <del>index</del> block manager rather than the values:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="np.ma.getdata(pd.Series([1., 2.]))"><pre class="notranslate"><span class="pl-s1">np</span>.<span class="pl-s1">ma</span>.<span class="pl-en">getdata</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1.</span>, <span class="pl-c1">2.</span>]))</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SingleBlockManager
Items: RangeIndex(start=0, stop=2, step=1)
NumericBlock: 2 dtype: float64"><pre class="notranslate"><code class="notranslate">SingleBlockManager
Items: RangeIndex(start=0, stop=2, step=1)
NumericBlock: 2 dtype: float64
</code></pre></div>
<p dir="auto">Reporting to numpy rather than pandas as the error emerged with the numpy 1.24.0 update; perhaps it's an issue on the pandas side though.</p> | 1 |
<p dir="auto">I think we attempted this before, but didn't get through. Is there any code left?<br>
Master has a bunch of errors again :-/</p> | <p dir="auto">We should fix the remaining sphinx warnings here:<br>
<a href="https://circleci.com/gh/scikit-learn/scikit-learn/1629" rel="nofollow">https://circleci.com/gh/scikit-learn/scikit-learn/1629</a></p>
<p dir="auto">and then make circle IO error if there are any warnings (grep'ing for <code class="notranslate">WARNINGS</code> I guess?).</p>
<p dir="auto">This way we immediately see if someone broke anything in the docs.</p> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in ./node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo/renderToStringWithData.js
Module not found: Error: Can't resolve 'react-dom/server' in '/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo'
@ ./node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo/renderToStringWithData.js 3:15-42
@ ./node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo/index.js
@ ./packages/next-apollo/withData.js
@ ./pages/map.js
@ multi ./pages/map.js"><pre class="notranslate"><code class="notranslate">ERROR in ./node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo/renderToStringWithData.js
Module not found: Error: Can't resolve 'react-dom/server' in '/Users/Vaughan/dev-live/vwp/node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo'
@ ./node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo/renderToStringWithData.js 3:15-42
@ ./node_modules/.registry.npmjs.org/react-apollo/2.1.0-beta.0/node_modules/react-apollo/index.js
@ ./packages/next-apollo/withData.js
@ ./pages/map.js
@ multi ./pages/map.js
</code></pre></div>
<p dir="auto">See <a href="https://github.com/zeit/next.js/blob/f9b52cfcb6cba5f2af93caf3cc8bc3636571323f/server/build/webpack.js#L155">https://github.com/zeit/next.js/blob/f9b52cfcb6cba5f2af93caf3cc8bc3636571323f/server/build/webpack.js#L155</a></p>
<p dir="auto">This aliasing seems to prevent require sub-paths.</p>
<p dir="auto">PS. I am using <code class="notranslate">pnpm</code>. <em>Maybe</em> this could be related...</p>
<p dir="auto"><strong>Workaround</strong></p>
<p dir="auto">Add this to your <code class="notranslate">next.config.js</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="delete config.resolve.alias['react-dom']"><pre class="notranslate"><code class="notranslate">delete config.resolve.alias['react-dom']
</code></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5</td>
</tr>
<tr>
<td>node</td>
<td>8</td>
</tr>
<tr>
<td>OS</td>
<td>macOS</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">This is an issue for v5, I didn't test v6 yet, but I believe from some other ticket that it is still happening (e.g. requiring call to <code class="notranslate">app.prepare()</code>)</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When shipping an app bundled for production, we shouldn't require development/build dependencies with the whole app.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Right now this is required because the server always tries to load <code class="notranslate">next.config.js</code> in production mode and the config decorator approach (<code class="notranslate">withSourceMaps = require('@zeit/next-source-maps')</code>) makes it inconvenient to exclude webpack plugins from production bundle.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">Having small bundles helps save server and storage space - and is a requirement to run on serverless environment.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5</td>
</tr>
<tr>
<td>node</td>
<td>8</td>
</tr>
<tr>
<td>OS</td>
<td>docker (ubuntu), serverless</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Steps:</p>
<ol dir="auto">
<li>Open <a href="http://getbootstrap.com/components/" rel="nofollow">http://getbootstrap.com/components/</a></li>
<li>Browse the glyphicons. Specifically limited to:<br>
-bell<br>
-bookmark<br>
-briefcase<br>
-calendar<br>
-camera<br>
-fire<br>
-lock<br>
-paperclip<br>
-pushpin<br>
-wrench</li>
</ol>
<p dir="auto">Expected Result:<br>
See glyphicons similar to browser on Windows.</p>
<p dir="auto">Actual Result:<br>
Missing character rectangles.</p>
<p dir="auto">OS:<br>
Android 2.3.3, default browser.</p> | <p dir="auto">The glyph font icons are somehow broken on some devices. For example on my android phone (android 2.1) some of the icons are broken, but others look OK. See attached screenshot.</p>
<p dir="auto">I'm not sure what is cause of that, yet if it is possible to show some of the icons properly on my device, it should be possible to fix it to show all of them properly. If you need more information, let me know. Thank you.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7597d6a883dce697d3c8fc2a421f96ae18facf8a56a70c22bdfa47ecf0f15847/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323235393337302f313032303735392f62326533313437652d306363322d313165332d396535392d3038353862633933356336302e706e67"><img src="https://camo.githubusercontent.com/7597d6a883dce697d3c8fc2a421f96ae18facf8a56a70c22bdfa47ecf0f15847/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323235393337302f313032303735392f62326533313437652d306363322d313165332d396535392d3038353862633933356336302e706e67" alt="screenshot_2013-08-24_1536" data-canonical-src="https://f.cloud.github.com/assets/2259370/1020759/b2e3147e-0cc2-11e3-9e59-0858bc935c60.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">implement:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log("你好,世界")"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"你好,世界"</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="浣犲ソ锛屼笘鐣?"><pre class="notranslate"><code class="notranslate">浣犲ソ锛屼笘鐣?
</code></pre></div>
<p dir="auto">Deno:1.21.2<br>
OS:Windows 11</p> | <p dir="auto">Hi! This is my first time looking at Deno, and it seems to be very exciting :)</p>
<p dir="auto">I was playing around with the examples from the tutorial and noticed this inconsistency: (using powershell and windows terminal):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> deno run https://deno.land/std/examples/welcome.ts
Welcome to Deno 🦕
> deno run --allow-net https://deno.land/std/examples/curl.ts https://deno.land/std/examples/welcome.ts
console.log("Welcome to Deno ƒªò");"><pre class="notranslate"><code class="notranslate">> deno run https://deno.land/std/examples/welcome.ts
Welcome to Deno 🦕
> deno run --allow-net https://deno.land/std/examples/curl.ts https://deno.land/std/examples/welcome.ts
console.log("Welcome to Deno ƒªò");
</code></pre></div>
<p dir="auto">I found that editing <code class="notranslate">curl.ts</code> to add the line</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { decode } from "https://deno.land/std/encoding/utf8.ts";"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">decode</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/std/encoding/utf8.ts"</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">and replacing the <code class="notranslate">Deno.stdout.write</code> line with</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(decode(body));"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-en">decode</span><span class="pl-kos">(</span><span class="pl-s1">body</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">seems to make the downloaded file print out correctly.</p> | 1 |
<h4 dir="auto">Code Sample</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
>>> df.groupby(pd.Grouper(freq='H')).agg({'value': 'mean'})
timestamp delta_t
2016-06-07 00:00:00 2.729111e+11
2016-06-07 01:00:00 NaN
2016-06-07 02:00:00 NaN
2016-06-07 03:00:00 NaN
2016-06-07 04:00:00 NaN
...
>>> df.groupby([pd.Grouper(freq='H')]).agg({'value': 'mean'})
timestamp delta_t
2016-06-07 2.729111e+11
2016-07-07 2.509444e+11
2016-07-13 2.775778e+11
2016-07-15 2.490556e+11
2016-07-16 2.676190e+11"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Grouper</span>(<span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'H'</span>)).<span class="pl-en">agg</span>({<span class="pl-s">'value'</span>: <span class="pl-s">'mean'</span>})
<span class="pl-s1">timestamp</span> <span class="pl-s1">delta_t</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">00</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-c1">2.729111e+11</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">01</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-v">NaN</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">02</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-v">NaN</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">03</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-v">NaN</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-v">NaN</span>
...
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>([<span class="pl-s1">pd</span>.<span class="pl-v">Grouper</span>(<span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'H'</span>)]).<span class="pl-en">agg</span>({<span class="pl-s">'value'</span>: <span class="pl-s">'mean'</span>})
<span class="pl-s1">timestamp</span> <span class="pl-s1">delta_t</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">2.729111e+11</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">2.509444e+11</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">13</span> <span class="pl-c1">2.775778e+11</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">15</span> <span class="pl-c1">2.490556e+11</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">07</span><span class="pl-c1">-</span><span class="pl-c1">16</span> <span class="pl-c1">2.676190e+11</span></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">This is an inconsistent behavior, and there is no mention to this on groupby or Grouper documentation.</p>
<h4 dir="auto">Expected Output</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> df.groupby([pd.Grouper(freq='H')]).agg({'value': 'mean'})
timestamp delta_t
2016-06-07 00:00:00 2.729111e+11
2016-06-07 01:00:00 NaN
2016-06-07 02:00:00 NaN
2016-06-07 03:00:00 NaN
2016-06-07 04:00:00 NaN"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>([<span class="pl-s1">pd</span>.<span class="pl-v">Grouper</span>(<span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'H'</span>)]).<span class="pl-en">agg</span>({<span class="pl-s">'value'</span>: <span class="pl-s">'mean'</span>})
<span class="pl-s1">timestamp</span> <span class="pl-s1">delta_t</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">00</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-c1">2.729111e+11</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">01</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-v">NaN</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">02</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-v">NaN</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">03</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-v">NaN</span>
<span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">06</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">00</span> <span class="pl-v">NaN</span></pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
pandas: 0.20.2
pytest: 3.1.1
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.12.1
scipy: 0.19.0
xarray: 0.9.6
IPython: 6.1.0
sphinx: 1.5.6
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: 1.2.1
tables: 3.3.0
numexpr: 2.6.2
feather: None
matplotlib: 2.0.2
openpyxl: 2.4.7
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.8.0
bs4: 4.6.0
html5lib: 0.999
sqlalchemy: 1.1.10
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
pandas_gbq: None
pandas_datareader: None
</details> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="data_frame.groupby(pd.TimeGrouper('D', convention='start', key=time_column)).count()
data_frame.groupby([pd.TimeGrouper('D', convention='start', key=time_column)]).count()"><pre class="notranslate"><span class="pl-s1">data_frame</span>.<span class="pl-en">groupby</span>(<span class="pl-s1">pd</span>.<span class="pl-v">TimeGrouper</span>(<span class="pl-s">'D'</span>, <span class="pl-s1">convention</span><span class="pl-c1">=</span><span class="pl-s">'start'</span>, <span class="pl-s1">key</span><span class="pl-c1">=</span><span class="pl-s1">time_column</span>)).<span class="pl-en">count</span>()
<span class="pl-s1">data_frame</span>.<span class="pl-en">groupby</span>([<span class="pl-s1">pd</span>.<span class="pl-v">TimeGrouper</span>(<span class="pl-s">'D'</span>, <span class="pl-s1">convention</span><span class="pl-c1">=</span><span class="pl-s">'start'</span>, <span class="pl-s1">key</span><span class="pl-c1">=</span><span class="pl-s1">time_column</span>)]).<span class="pl-en">count</span>()</pre></div>
<p dir="auto">give below two different outputs</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" location price profit type
time
2017-07-23 1 1 1 1
2017-07-24 0 0 0 0
2017-07-25 1 1 1 1
2017-07-26 1 1 1 1
2017-07-27 3 3 3 3
2017-07-28 6 6 6 6"><pre class="notranslate"><code class="notranslate"> location price profit type
time
2017-07-23 1 1 1 1
2017-07-24 0 0 0 0
2017-07-25 1 1 1 1
2017-07-26 1 1 1 1
2017-07-27 3 3 3 3
2017-07-28 6 6 6 6
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" location price profit type
time
2017-07-23 1 1 1 1
2017-07-25 1 1 1 1
2017-07-26 1 1 1 1
2017-07-27 3 3 3 3
2017-07-28 6 6 6 6"><pre class="notranslate"><code class="notranslate"> location price profit type
time
2017-07-23 1 1 1 1
2017-07-25 1 1 1 1
2017-07-26 1 1 1 1
2017-07-27 3 3 3 3
2017-07-28 6 6 6 6
</code></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">The origin data frame doesn't contain a record in 2017-07-24, you can see if I use time grouper with convention='start' lonely, the 2017-07-24 item has been filled, but if by group list, that item hasn't been filled</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 2.7.10.final.0<br>
python-bits: 64<br>
OS: Darwin<br>
OS-release: 16.7.0<br>
machine: x86_64<br>
processor: i386<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None<br>
LOCALE: None.None</p>
<p dir="auto">pandas: 0.20.3<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 36.2.0<br>
Cython: None<br>
numpy: 1.13.1<br>
scipy: 0.19.1<br>
xarray: None<br>
IPython: None<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
feather: None<br>
matplotlib: None<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: 0.9999999<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: None<br>
s3fs: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | 1 |
<p dir="auto">If my project structure is like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".
├── bar
├── baz
└── foo"><pre class="notranslate"><code class="notranslate">.
├── bar
├── baz
└── foo
</code></pre></div>
<p dir="auto">And I've selected a folder in the sidebar, the new folder/file button will create a folder/file inside the selected folder and there is no way (that I know of) to select the root folder and make a folder in root level.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/543633/11702164/54b4471e-9e89-11e5-8c75-5d6d21e160e7.png"><img src="https://cloud.githubusercontent.com/assets/543633/11702164/54b4471e-9e89-11e5-8c75-5d6d21e160e7.png" alt="screen shot 2015-12-09 at 3 27 08 pm" style="max-width: 100%;"></a></p> | <p dir="auto">Open a folder that a lot of folders (enough to fill the height of the screen) and no files, it seems impossible to create a folder or file in the root folder without closing all files in the text view.</p> | 1 |
<pre class="notranslate">Currently, the documentation on os.File.Seek mentions:
Seek sets the offset for the next Read or Write on file to offset, interpreted according
to whence: 0 means relative to the origin of the file, 1 means relative to the current
offset, and 2 means relative to the end.
It leads people to write things like file.Seek(0, 2) which is in my opinion, not that
readable, especially when you don't know where those numbers come from.
I believe it would be better if the following os constants were mentioned instead:
* SEEK_SET
* SEEK_CUR
* SEEK_END</pre> | <pre class="notranslate">"foo"[10] leads to a compile time error, but "foo"[0:10] does not.
The spec does agree with the compilers, but it seems inconsistent.
This is a language change, and code that now compiles may not compile anymore with this
change, but if that code is executed it will lead to a run-time error.</pre> | 0 |
<p dir="auto"><a href="https://github.com/Hixie"><img src="https://avatars.githubusercontent.com/u/551196?v=3" align="left" width="96" height="96" hspace="10" style="max-width: 100%;"></a> <strong>Issue by <a href="https://github.com/Hixie">Hixie</a></strong><br>
<em>Tuesday Aug 25, 2015 at 03:09 GMT</em><br>
<em>Originally opened as <a href="https://github.com/flutter/engine/issues/794">https://github.com/flutter/engine/issues/794</a></em></p>
<hr>
<p dir="auto">...so that, given the server elsewhere, you can observe any Sky app.</p> | <p dir="auto">Right now a big chunk (multiple megabytes) of Flutter's binary is the debugger UI. We should take that out of the binary, and provide a separate way to connect to a Flutter app (e.g. have observatory hosted somewhere, maybe <a href="https://debugger.flutter.io/" rel="nofollow">https://debugger.flutter.io/</a> or something).</p> | 1 |
<p dir="auto">Superset Version: <strong>0.36.0</strong></p>
<p dir="auto">The tooltip on the line chart in Firefox is not functional and not displaying any information.</p>
<p dir="auto">There seems to be <a href="https://github.com/apache/incubator-superset/issues/7822" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/7822/hovercard">another issue</a> on this, but it is one year old and already closed.</p> | <p dir="auto">Chart(Pie, Bar, Line, etc.) tooltips not showing in Mozilla Firefox.</p>
<p dir="auto">In chrome and opera tooltips are working.</p>
<p dir="auto">Using apache superset - Master Branch</p>
<p dir="auto">Please see the image<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39004901/83641822-adbcd800-a5cb-11ea-9cc6-effab3e264fc.png"><img src="https://user-images.githubusercontent.com/39004901/83641822-adbcd800-a5cb-11ea-9cc6-effab3e264fc.png" alt="Screenshot 2020-06-03 at 6 50 27 PM" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">See <a href="http://www.typescriptlang.org/Playground#src=function%20test%20%28myParam%3A%20string%20%7C%20string%5B%5D%29%3A%20boolean%20%7B%0A%09if%20%28typeof%20myParam%20%3D%3D%3D%20'string'%29%20%7B%0A%09%09if%20%28myParam%20%3D%3D%3D%20'*'%29%20%2F%2F%20type%20here%20is%20%60string%20%7C%20string%5B%5D%60%2C%20but%20should%20be%20%60string%60%0A%09%09%09return%20true%3B%0A%09%09%09%0A%09%09myParam%20%3D%20%5BmyParam%5D%3B%20%2F%2Ferror%0A%09%7D%0A%09%0A%09return%20myParam.length%20%3E%200%3B%0A%7D" rel="nofollow">Playgound</a>:</p>
<p dir="auto">I was sure I had the type guard syntax correct, but it doesn't seem to be working:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function test (myParam: string | string[]): boolean {
if (typeof myParam === 'string') {
if (myParam === '*') // type here is `string | string[]`, but should be `string`
return true;
myParam = [myParam]; //error
}
return myParam.length > 0;
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">test</span> <span class="pl-kos">(</span><span class="pl-s1">myParam</span>: <span class="pl-s1">string</span> <span class="pl-c1">|</span> <span class="pl-s1">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-s1">boolean</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">myParam</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-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">myParam</span> <span class="pl-c1">===</span> <span class="pl-s">'*'</span><span class="pl-kos">)</span> <span class="pl-c">// type here is `string | string[]`, but should be `string`</span>
<span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-s1">myParam</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">myParam</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">//error</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-s1">myParam</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">></span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Is this a bug, or am I missing something here?</p> | <p dir="auto">it would be nice to support that kind of construction :</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function myFunction(arr: string | string[]) {
if (typeof arr === 'string') {
arr = [arr]
}
//arr is now string[]
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-s1">arr</span>: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-smi">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">arr</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">arr</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">arr</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span>
<span class="pl-c">//arr is now string[]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">It's a common pattern used by library that take options in parameter.<br>
Generally you can pass an array of string or a string if you have a single value, and internally the library will create an array in any case.</p> | 1 |
<p dir="auto">This is just some experimentation on my part that triggered an ICE. I may have time to investigate later but for now here is the smallest chunk of code I have and a playground session.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use std::thunk::Thunk;
use std::cell::UnsafeCell;
use std::mem::transmute;
struct Lazy<T> {
value: UnsafeCell<Option<T>>,
thunk: UnsafeCell<Option<Thunk<(), T>>>,
}
impl<T> Lazy<T> {
fn value(&self) -> &T {
unsafe {
let value = self.value.get();
// deleted some code here
let raw_value = &(*value).unwrap();
transmute(raw_value)
}
}
}
fn main() {
}"><pre class="notranslate"><code class="notranslate">use std::thunk::Thunk;
use std::cell::UnsafeCell;
use std::mem::transmute;
struct Lazy<T> {
value: UnsafeCell<Option<T>>,
thunk: UnsafeCell<Option<Thunk<(), T>>>,
}
impl<T> Lazy<T> {
fn value(&self) -> &T {
unsafe {
let value = self.value.get();
// deleted some code here
let raw_value = &(*value).unwrap();
transmute(raw_value)
}
}
}
fn main() {
}
</code></pre></div>
<p dir="auto"><a href="http://is.gd/L2RIMD" rel="nofollow">http://is.gd/L2RIMD</a></p> | <p dir="auto">Input:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct T(u8);
fn t() -> *mut T {
unsafe { 0u8 as *mut T }
}
fn main() {
let a = unsafe { *t() };
}"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">T</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-k">fn</span> <span class="pl-en">t</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -> <span class="pl-c1">*</span><span class="pl-k">mut</span> <span class="pl-smi">T</span> <span class="pl-kos">{</span>
<span class="pl-k">unsafe</span> <span class="pl-kos">{</span> <span class="pl-c1">0u8</span> <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">mut</span> <span class="pl-smi">T</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> a = <span class="pl-k">unsafe</span> <span class="pl-kos">{</span> <span class="pl-c1">*</span><span class="pl-en">t</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc ../test.rs
../test.rs:9:19: 9:23 error: internal compiler error: this path should not cause illegal move
../test.rs:9 let a = unsafe { *t() };
^~~~
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/John/Documents/dev/rust/src/libsyntax/diagnostic.rs:123
stack backtrace:
1: 0x10f825b75 - sys::backtrace::write::h757d4037fec4513elCt
2: 0x10f84800f - failure::on_fail::he99e1d2cd81a67a80Hz
3: 0x10f7b3c8a - rt::unwind::begin_unwind_inner::hede15ebc165353e0Qpz
4: 0x10d508707 - rt::unwind::begin_unwind::h5150449308391082809
5: 0x10d50869c - diagnostic::SpanHandler::span_bug::h1cc7aa850b4525b9nQF
6: 0x10c93bc1d - session::Session::span_bug::h9dff6f0c981e0b95mRq
7: 0x10c547999 - borrowck::build_borrowck_dataflow_data::hbfab9f3785e58ec8QRe
8: 0x10c5432fb - borrowck::borrowck_fn::h9d4d5a57ec1e26a2cPe
9: 0x10c5440f2 - borrowck::borrowck_item::hd3de64f0b51b624a9Ne
10: 0x10c54461f - borrowck::check_crate::hab49ad1d67fb67e9ZIe
11: 0x10c09e8aa - driver::phase_3_run_analysis_passes::h3bf5eb3f470c8788gwa
12: 0x10c082d90 - driver::compile_input::h63293298907e332cxba
13: 0x10c14e7ba - monitor::unboxed_closure.22558
14: 0x10c14cf15 - thunk::F.Invoke<A, R>::invoke::h15985566512806182469
15: 0x10c14bcf0 - rt::unwind::try::try_fn::h5957420952141477940
16: 0x10f8b1189 - rust_try_inner
17: 0x10f8b1176 - rust_try
18: 0x10c14c3ec - thunk::F.Invoke<A, R>::invoke::h12578415658120090831
19: 0x10f835814 - sys::thread::thread_start::he6c5dcba45c95bf2drw
20: 0x7fff933e22fc - _pthread_body
21: 0x7fff933e2279 - _pthread_body"><pre class="notranslate"><code class="notranslate">$ rustc ../test.rs
../test.rs:9:19: 9:23 error: internal compiler error: this path should not cause illegal move
../test.rs:9 let a = unsafe { *t() };
^~~~
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/John/Documents/dev/rust/src/libsyntax/diagnostic.rs:123
stack backtrace:
1: 0x10f825b75 - sys::backtrace::write::h757d4037fec4513elCt
2: 0x10f84800f - failure::on_fail::he99e1d2cd81a67a80Hz
3: 0x10f7b3c8a - rt::unwind::begin_unwind_inner::hede15ebc165353e0Qpz
4: 0x10d508707 - rt::unwind::begin_unwind::h5150449308391082809
5: 0x10d50869c - diagnostic::SpanHandler::span_bug::h1cc7aa850b4525b9nQF
6: 0x10c93bc1d - session::Session::span_bug::h9dff6f0c981e0b95mRq
7: 0x10c547999 - borrowck::build_borrowck_dataflow_data::hbfab9f3785e58ec8QRe
8: 0x10c5432fb - borrowck::borrowck_fn::h9d4d5a57ec1e26a2cPe
9: 0x10c5440f2 - borrowck::borrowck_item::hd3de64f0b51b624a9Ne
10: 0x10c54461f - borrowck::check_crate::hab49ad1d67fb67e9ZIe
11: 0x10c09e8aa - driver::phase_3_run_analysis_passes::h3bf5eb3f470c8788gwa
12: 0x10c082d90 - driver::compile_input::h63293298907e332cxba
13: 0x10c14e7ba - monitor::unboxed_closure.22558
14: 0x10c14cf15 - thunk::F.Invoke<A, R>::invoke::h15985566512806182469
15: 0x10c14bcf0 - rt::unwind::try::try_fn::h5957420952141477940
16: 0x10f8b1189 - rust_try_inner
17: 0x10f8b1176 - rust_try
18: 0x10c14c3ec - thunk::F.Invoke<A, R>::invoke::h12578415658120090831
19: 0x10f835814 - sys::thread::thread_start::he6c5dcba45c95bf2drw
20: 0x7fff933e22fc - _pthread_body
21: 0x7fff933e2279 - _pthread_body
</code></pre></div> | 1 |
<p dir="auto"><strong>Atom Version</strong>: 0.209.0<br>
<strong>System</strong>: Unknown Windows Version<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\Richard\AppData\Local\atom\app-0.209.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\Richard\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br>
at EventEmitter. (C:\Users\Richard\AppData\Local\atom\app-0.209.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\Richard\AppData\Local\atom\app-0.209.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\Richard\AppData\Local\atom\app-0.209.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\Richard\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\app.asar\src\window-event-handler.js:148:33)
at HTMLDocument.handler (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)"><pre class="notranslate"><code class="notranslate">At C:\Users\Richard\AppData\Local\atom\app-0.209.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\Richard\AppData\Local\atom\app-0.209.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\Richard\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\app.asar\src\window-event-handler.js:148:33)
at HTMLDocument.handler (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\Richard\AppData\Local\atom\app-0.209.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\Richard\AppData\Local\atom\app-0.209.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=" -9:52.8.0 core:backspace (atom-text-editor.editor.is-focused)
-9:52.1.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
-9:00.1.0 remote-ftp:toggle (atom-text-editor.editor.is-focused)
-8:57.5.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
-8:54.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-8:50.5.0 core:copy (atom-text-editor.editor.is-focused)
-8:47.3.0 core:paste (atom-text-editor.editor.is-focused)
-8:15.9.0 core:backspace (atom-text-editor.editor.is-focused)
-8:12.9.0 core:move-right (atom-text-editor.editor.is-focused)
-7:30.4.0 core:paste (atom-text-editor.editor.is-focused)
-7:23.1.0 core:copy (atom-text-editor.editor.is-focused)
-7:19.3.0 core:move-right (atom-text-editor.editor.is-focused)
-7:17.2.0 core:paste (atom-text-editor.editor.is-focused)
-7:05.6.0 remote-ftp:upload-selected (atom-text-editor.editor.is-focused)
-6:59.4.0 core:save (atom-text-editor.editor.is-focused)
3x -6:49.1.0 remote-ftp:toggle (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -9:52.8.0 core:backspace (atom-text-editor.editor.is-focused)
-9:52.1.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
-9:00.1.0 remote-ftp:toggle (atom-text-editor.editor.is-focused)
-8:57.5.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
-8:54.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-8:50.5.0 core:copy (atom-text-editor.editor.is-focused)
-8:47.3.0 core:paste (atom-text-editor.editor.is-focused)
-8:15.9.0 core:backspace (atom-text-editor.editor.is-focused)
-8:12.9.0 core:move-right (atom-text-editor.editor.is-focused)
-7:30.4.0 core:paste (atom-text-editor.editor.is-focused)
-7:23.1.0 core:copy (atom-text-editor.editor.is-focused)
-7:19.3.0 core:move-right (atom-text-editor.editor.is-focused)
-7:17.2.0 core:paste (atom-text-editor.editor.is-focused)
-7:05.6.0 remote-ftp:upload-selected (atom-text-editor.editor.is-focused)
-6:59.4.0 core:save (atom-text-editor.editor.is-focused)
3x -6:49.1.0 remote-ftp:toggle (atom-text-editor.editor.is-focused)
</code></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-php, v0.3.6
autocomplete-python, v0.4.2
docblockr, v0.7.2
language-blade, v0.14.0
language-fish-shell, v1.0.2
laravel, v0.7.0
Remote-FTP, v0.7.1
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
autocomplete<span class="pl-k">-</span>php, v0.<span class="pl-ii">3</span>.<span class="pl-ii">6</span>
autocomplete<span class="pl-k">-</span>python, v0.<span class="pl-ii">4</span>.<span class="pl-ii">2</span>
docblockr, v0.<span class="pl-ii">7</span>.<span class="pl-ii">2</span>
language<span class="pl-k">-</span>blade, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span>
language<span class="pl-k">-</span>fish<span class="pl-k">-</span>shell, v1.<span class="pl-ii">0</span>.<span class="pl-ii">2</span>
laravel, v0.<span class="pl-ii">7</span>.<span class="pl-ii">0</span>
Remote<span class="pl-k">-</span>FTP, v0.<span class="pl-ii">7</span>.<span class="pl-ii">1</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">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> | 1 |
<p dir="auto">I want to compiler opencv with fp16 support on mac M1 chip. But i couldn't find any guidence about it. is there anyone can tells me the way. I appreciate it very much.</p> | <p dir="auto">I got a new MacBook and I'm using MiniForge as my Conda distribution, but pip and Conda install both don't seem to work.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">比如这样配置<dubbo:protocol name="injvm" /> ,会不会配置成功,或者这样配置能暴露一份injvm协议的服务吗?</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.8</li>
<li>Operating System version: macOS Catalina</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">when I regist a <code class="notranslate">Provider</code> Service with version in the form of "default.version" in zookeeper.<br>
And <code class="notranslate">Consumer</code> use dubbo 2.7.8 will fail to find the Provider and will throw Exception as follow</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Consumer can find Provider Service</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">Consumer can't find Provider Service and throw Exception as follow</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No provider available from registry zk01.zeus.likemoon.com:2180 for service com.likemoon.api.rpc.XxxxFacade:1.0.0 on consumer 10.20.11.22 use dubbo version 2.7.8, please check status of providers(disabled, not registered or in blacklist)"><pre class="notranslate"><code class="notranslate">No provider available from registry zk01.zeus.likemoon.com:2180 for service com.likemoon.api.rpc.XxxxFacade:1.0.0 on consumer 10.20.11.22 use dubbo version 2.7.8, please check status of providers(disabled, not registered or in blacklist)
</code></pre></div>
<p dir="auto">as I debug the problem happened in <code class="notranslate">ZookeeperRegistry.toUrlsWithoutEmpty</code> method when using dubbo version >= 2.7.7</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" private List<URL> toUrlsWithoutEmpty(URL consumer, List<String> providers) {
List<URL> urls = new ArrayList<>();
if (CollectionUtils.isNotEmpty(providers)) {
for (String provider : providers) {
if (provider.contains(PROTOCOL_SEPARATOR_ENCODED)) {
// parseEncodedStr() method can't parse paramter wieh "default." prefix
URL url = URLStrParser.parseEncodedStr(provider);
if (UrlUtils.isMatch(consumer, url)) {
urls.add(url);
}
}
}
}
return urls;
}"><pre class="notranslate"> <span class="pl-k">private</span> <span class="pl-smi">List</span><<span class="pl-smi">URL</span>> <span class="pl-s1">toUrlsWithoutEmpty</span>(<span class="pl-smi">URL</span> <span class="pl-s1">consumer</span>, <span class="pl-smi">List</span><<span class="pl-smi">String</span>> <span class="pl-s1">providers</span>) {
<span class="pl-smi">List</span><<span class="pl-smi">URL</span>> <span class="pl-s1">urls</span> = <span class="pl-k">new</span> <span class="pl-smi">ArrayList</span><>();
<span class="pl-k">if</span> (<span class="pl-smi">CollectionUtils</span>.<span class="pl-en">isNotEmpty</span>(<span class="pl-s1">providers</span>)) {
<span class="pl-k">for</span> (<span class="pl-smi">String</span> <span class="pl-s1">provider</span> : <span class="pl-s1">providers</span>) {
<span class="pl-k">if</span> (<span class="pl-s1">provider</span>.<span class="pl-en">contains</span>(<span class="pl-c1">PROTOCOL_SEPARATOR_ENCODED</span>)) {
<span class="pl-c">// parseEncodedStr() method can't parse paramter wieh "default." prefix</span>
<span class="pl-smi">URL</span> <span class="pl-s1">url</span> = <span class="pl-smi">URLStrParser</span>.<span class="pl-en">parseEncodedStr</span>(<span class="pl-s1">provider</span>);
<span class="pl-k">if</span> (<span class="pl-smi">UrlUtils</span>.<span class="pl-en">isMatch</span>(<span class="pl-s1">consumer</span>, <span class="pl-s1">url</span>)) {
<span class="pl-s1">urls</span>.<span class="pl-en">add</span>(<span class="pl-s1">url</span>);
}
}
}
}
<span class="pl-k">return</span> <span class="pl-s1">urls</span>;
}</pre></div>
<p dir="auto"><code class="notranslate">URLStrParser.parseEncodedStr</code> method is not compatible with "default." prefix</p>
<p dir="auto">ps: I found <code class="notranslate">URL.valueOf</code> method has fixed the similar <a href="https://github.com/apache/dubbo/blob/2.7.8-release/dubbo-common/src/main/java/org/apache/dubbo/common/URL.java#L263">problem</a></p> | 0 |
<h2 dir="auto">🐛 Bug</h2>
<p dir="auto">A CRNN model with [1,1,32, w] input can get correct predict result in iOS simulator , but when I use iOS device , predict result is no correct.<br>
I have checked the model in ubuntu, Android simulator and Android device. They all no problem.<br>
I am using pod install libtorch=1.5.0. I also try 1.4.0 and got same result.<br>
Is there any different between libtorch 1.5.0 x86_64 and arm64 version?</p>
<p dir="auto">My iOS code is based on <a href="https://github.com/pytorch/ios-demo-app/tree/master/HelloWorld">https://github.com/pytorch/ios-demo-app/tree/master/HelloWorld</a><br>
I only modify model and input image shape.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">XCode 11.4<br>
iOS simulator (predict OK) & iPhone 11 device (predict NG)<br>
pod install libtorch 1.5.0 & 1.4.0</p>
<p dir="auto">my CRNN model:<br>
<a href="https://drive.google.com/uc?export=download&confirm=WNrX&id=1xb5-icIM1Rpd6f-Aaut1HNDcJfEZuc9X" rel="nofollow">https://drive.google.com/uc?export=download&confirm=WNrX&id=1xb5-icIM1Rpd6f-Aaut1HNDcJfEZuc9X</a></p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\bhave\pytorch\scripts>build_windows.bat
The system cannot find the drive specified.
Requirement already satisfied: pyyaml in c:\python27\lib\site-packages
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
CAFFE2_ROOT=C:\Users\bhave\pytorch\scripts\..
CMAKE_GENERATOR=Visual Studio 16 2019
CMAKE_BUILD_TYPE=Release
cmake -GNinja -DMSVC_Z7_OVERRIDE=False -DBUILDING_WITH_TORCH_LIBS=OFF -DBUILD_BINARY=OFF -DBUILD_PYTHON=False -DBUILD_SHARED_LIBS=OFF -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS= /EHa -DCMAKE_C_FLAGS= /EHa -DCMAKE_EXE_LINKER_FLAGS= -DCMAKE_INSTALL_PREFIX=C:\Users\bhave\pytorch\torch -DCMAKE_PREFIX_PATH=C:\Python27\Lib\site-packages -DCMAKE_SHARED_LINKER_FLAGS= -DINSTALL_TEST=True -DNAMEDTENSOR_ENABLED=False -DNCCL_EXTERNAL=False -DNUMPY_INCLUDE_DIR=C:/Python27/lib/site-packages/numpy/core/include -DONNX_NAMESPACE=onnx_c2 -DPYTHON_EXECUTABLE=C:/Python27/python.exe -DPYTHON_INCLUDE_DIR=C:/Python27/include -DUSE_CUDA=False -DUSE_DISTRIBUTED=False -DUSE_FBGEMM=True -DUSE_MKLDNN=True -DUSE_NCCL=False -DUSE_NNPACK=True -DUSE_NUMPY=True -DUSE_OBSERVERS=OFF -DUSE_QNNPACK=True -DUSE_ROCM=False -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DUSE_SYSTEM_NCCL=False -DMKLDNN_ENABLE_CONCURRENT_EXEC=ON C:\Users\bhave\pytorch
-- The CXX compiler identification is MSVC 19.21.27702.2
-- The C compiler identification is MSVC 19.21.27702.2
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Not forcing any particular BLAS to be found
-- Performing Test COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Success
-- Performing Test SUPPORT_GLIBCXX_USE_C99
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
-- std::exception_ptr is supported.
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Failed
-- NUMA is not available
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Failed
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:C:/Users/bhave/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- Trying to find preferred BLAS backend of choice: MKL
-- MKL_THREADING = OMP
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- MKL_THREADING = OMP
CMake Warning at cmake/Dependencies.cmake:143 (message):
MKL could not be found. Defaulting to Eigen
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
CMake Warning at cmake/Dependencies.cmake:162 (message):
Preferred BLAS (MKL) cannot be found, now searching for a general BLAS
library
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
-- MKL_THREADING = OMP
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - libiomp5md - pthread]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - pthread]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
-- Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
-- Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
-- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
-- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
-- Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
-- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
-- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
-- Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
-- Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
-- Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
CMake Warning at cmake/Dependencies.cmake:211 (message):
Target platform "Windows" is not supported in QNNPACK. Supported platforms
are Android, iOS, Linux, and macOS. Turn this warning off by
USE_QNNPACK=OFF.
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
CMake Warning at cmake/External/nnpack.cmake:21 (message):
NNPACK not supported on MSVC yet. Turn this warning off by USE_NNPACK=OFF.
Call Stack (most recent call first):
cmake/Dependencies.cmake:279 (include)
CMakeLists.txt:270 (include)
CMake Warning at cmake/Dependencies.cmake:289 (message):
Not compiling with NNPACK. Suppress this warning with -DUSE_NNPACK=OFF
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.14")
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.22.0.windows.1")
-- git Version: v1.4.0-505be96a
-- Version: 1.4.0
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
CMake Warning at cmake/Dependencies.cmake:505 (message):
NUMA is currently only supported under Linux.
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
-- Downloading PSimd to C:/Users/bhave/pytorch/build/confu-srcs/psimd (define PSIMD_SOURCE_DIR to avoid it)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/bhave/pytorch/build/confu-deps/psimd-download
[1/6] Performing update step for 'psimd'
Current branch master is up to date.
[2/6] No configure step for 'psimd'
[3/6] No build step for 'psimd'
[4/6] No install step for 'psimd'
[5/6] No test step for 'psimd'
[6/6] Completed 'psimd'
-- Using third party subdirectory Eigen.
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
-- MKL_THREADING = OMP
-- MKL_THREADING = OMP
-- Adding OpenMP CXX_FLAGS: -openmp:experimental
-- No OpenMP library needs to be linked against
CMake Warning at cmake/Dependencies.cmake:1012 (message):
Metal is only used in ios builds.
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
--
-- ******** Summary ********
-- CMake version : 3.15.0-rc2
-- CMake command : C:/Users/bhave/bin/cmake.exe
-- System : Windows
-- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- C++ compiler version : 19.21.27702.2
-- CXX flags : /EHa -openmp:experimental
-- Build type : Release
-- Compile definitions : ONNX_ML=1
-- CMAKE_PREFIX_PATH : C:\Python27\Lib\site-packages
-- CMAKE_INSTALL_PREFIX : C:/Users/bhave/pytorch/torch
-- CMAKE_MODULE_PATH : C:/Users/bhave/pytorch/cmake/Modules
--
-- ONNX version : 1.5.0
-- ONNX NAMESPACE : onnx_c2
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
-- ONNXIFI_ENABLE_EXT : OFF
--
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
--
-- ******** Summary ********
-- CMake version : 3.15.0-rc2
-- CMake command : C:/Users/bhave/bin/cmake.exe
-- System : Windows
-- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- C++ compiler version : 19.21.27702.2
-- CXX flags : /EHa -openmp:experimental
-- Build type : Release
-- Compile definitions : ONNX_ML=1
-- CMAKE_PREFIX_PATH : C:\Python27\Lib\site-packages
-- CMAKE_INSTALL_PREFIX : C:/Users/bhave/pytorch/torch
-- CMAKE_MODULE_PATH : C:/Users/bhave/pytorch/cmake/Modules
--
-- ONNX version : 1.4.1
-- ONNX NAMESPACE : onnx_c2
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
--
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
-- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Looking for cpuid.h
-- Looking for cpuid.h - not found
-- Performing Test NO_GCC_EBX_FPIC_BUG
-- Performing Test NO_GCC_EBX_FPIC_BUG - Failed
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Failed
-- Performing Test C_HAS_AVX2_3
-- Performing Test C_HAS_AVX2_3 - Failed
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Failed
-- Performing Test CXX_HAS_AVX2_3
-- Performing Test CXX_HAS_AVX2_3 - Failed
-- AVX compiler support found
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Failed
-- Performing Test HAS_MSC_ATOMICS
-- Performing Test HAS_MSC_ATOMICS - Success
-- Performing Test HAS_GCC_ATOMICS
-- Performing Test HAS_GCC_ATOMICS - Failed
-- Atomics: using MSVC intrinsics
-- MKL_THREADING = OMP
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - libiomp5md - pthread]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - pthread]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
-- Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
-- Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
-- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
-- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
-- Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
-- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
-- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
-- Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
-- Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
-- Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
-- LAPACK requires BLAS
-- Cannot find a library with LAPACK API. Not using LAPACK.
disabling CUDA because NOT USE_CUDA is set
-- CuDNN not found. Compiling without CuDNN support
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- MKL-DNN needs omp 3+ which is not supported in MSVC so far
CMake Warning at cmake/Dependencies.cmake:1364 (MESSAGE):
MKLDNN could not be found.
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
-- don't use NUMA
disabling CUDA because USE_CUDA is set false
-- NCCL operators skipped due to no CUDA support
-- Excluding ideep operators as we are not using ideep
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- MPI operators skipped due to no MPI support
-- pytorch is compiling with OpenMP.
OpenMP CXX_FLAGS: -openmp:experimental.
OpenMP libraries: .
-- Caffe2 is compiling with OpenMP.
OpenMP CXX_FLAGS: -openmp:experimental.
OpenMP libraries: .
-- Using parallel backend: OPENMP
CMake Warning at CMakeLists.txt:483 (message):
Generated cmake files are only fully tested if one builds with system glog,
gflags, and protobuf. Other settings may generate files that are not well
tested.
CMake Warning at CMakeLists.txt:535 (message):
Generated cmake files are only available when building shared libs.
--
-- ******** Summary ********
-- General:
-- CMake version : 3.15.0-rc2
-- CMake command : C:/Users/bhave/bin/cmake.exe
-- System : Windows
-- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- C++ compiler id : MSVC
-- C++ compiler version : 19.21.27702.2
-- BLAS : MKL
-- CXX flags : /EHa -openmp:experimental /MP /bigobj
-- Build type : Release
-- Compile definitions : ONNX_ML=1;ONNX_NAMESPACE=onnx_c2;_CRT_SECURE_NO_DEPRECATE=1;USE_MSC_ATOMICS=1
-- CMAKE_PREFIX_PATH : C:\Python27\Lib\site-packages
-- CMAKE_INSTALL_PREFIX : C:/Users/bhave/pytorch/torch
--
-- TORCH_VERSION : 1.1.0
-- CAFFE2_VERSION : 1.1.0
-- BUILD_CAFFE2_MOBILE : ON
-- BUILD_ATEN_ONLY : OFF
-- BUILD_BINARY : OFF
-- BUILD_CUSTOM_PROTOBUF : ON
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : False
-- BUILD_CAFFE2_OPS : ON
-- BUILD_SHARED_LIBS : OFF
-- BUILD_TEST : True
-- INTERN_BUILD_MOBILE :
-- USE_ASAN : OFF
-- USE_CUDA : False
-- USE_ROCM : False
-- USE_EIGEN_FOR_BLAS : ON
-- USE_FBGEMM : OFF
-- USE_FFMPEG : OFF
-- USE_GFLAGS : OFF
-- USE_GLOG : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : OFF
-- USE_METAL : OFF
-- USE_MKL : OFF
-- USE_MKLDNN : OFF
-- USE_NCCL : False
-- USE_NNPACK : OFF
-- USE_NUMPY : True
-- USE_OBSERVERS : OFF
-- USE_OPENCL : OFF
-- USE_OPENCV : OFF
-- USE_OPENMP : ON
-- USE_TBB : OFF
-- USE_PROF : OFF
-- USE_QNNPACK : OFF
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- USE_DISTRIBUTED : OFF
-- NAMEDTENSOR_ENABLED : False
-- Public Dependencies : Threads::Threads
-- Private Dependencies : cpuinfo;fp16;aten_op_header_gen;foxi_loader
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
MKLDNN_ENABLE_CONCURRENT_EXEC
NCCL_EXTERNAL
NUMPY_INCLUDE_DIR
PYTHON_INCLUDE_DIR
-- Build files have been written to: C:/Users/bhave/pytorch/build
cmake --build . --target install --config Release -- -j 12
[177/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\info.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[180/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[181/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\vendor.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[182/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\uarch.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[184/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\name.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[186/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\topology.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[187/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[189/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[190/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\api.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[191/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\descriptor.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[192/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\isa.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[193/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\deterministic.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[196/1378] Building C object confu-deps\cpuinfo\deps\clog\CMakeFiles\clog.dir\src\clog.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[201/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\windows\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[204/1378] Building C object third_party\onnx\CMakeFiles\onnxifi_loader.dir\onnx\onnxifi_loader.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[205/1378] Building C object third_party\onnx\CMakeFiles\onnxifi_dummy.dir\onnx\onnxifi_dummy.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
..\third_party\onnx\onnx\onnxifi_dummy.c(173): warning C4113: 'onnxStatus (__stdcall *)(onnxBackendID,const char *,onnxExtensionFunctionPointer *)' differs in parameter lists from 'onnxExtensionFunctionPointer'
..\third_party\onnx\onnx\onnxifi_dummy.c(176): warning C4113: 'onnxStatus (__stdcall *)(onnxGraph,uint32_t,const onnxTensorDescriptorV1 *,uint32_t,const onnxTensorDescriptorV1 *,onnxMemoryFenceV1 *)' differs in parameter lists from 'onnxExtensionFunctionPointer'
[207/1378] Building CXX object third_party\googletest\googlemock\gtest\CMakeFiles\gtest_main.dir\src\gtest_main.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[208/1378] Linking C shared module lib\onnxifi.dll
Creating library lib\onnxifi.lib and object lib\onnxifi.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
[209/1378] Linking C shared library bin\onnxifi_dummy.dll
Creating library lib\onnxifi_dummy.lib and object lib\onnxifi_dummy.exp
[210/1378] Building C object third_party\foxi\CMakeFiles\foxi_dummy.dir\foxi\onnxifi_dummy.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[211/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock_main.dir\src\gmock_main.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[213/1378] Linking C shared library bin\foxi_dummy.dll
Creating library lib\foxi_dummy.lib and object lib\foxi_dummy.exp
[216/1378] Building C object third_party\foxi\CMakeFiles\foxi_loader.dir\foxi\onnxifi_loader.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[218/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock.dir\src\gmock-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[219/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock_main.dir\src\gmock-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[221/1378] Linking C shared module lib\foxi.dll
Creating library lib\foxi.lib and object lib\foxi.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
[227/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock.dir\__\googletest\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[231/1378] Building CXX object third_party\googletest\goog...akeFiles\gmock_main.dir\__\googletest\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[239/1378] Building CXX object third_party\googletest\googlemock\gtest\CMakeFiles\gtest.dir\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[252/1378] Building CXX object third_party\onnx\CMakeFiles\onnx_proto.dir\onnx\onnx-operators_onnx_c2-ml.pb.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[253/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\object_detection\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[254/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\quantization\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[255/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\rnn\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[256/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\nn\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[257/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\rnn\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[258/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\reduction\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[259/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\__\__\caffe2\onnx\torch_ops\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[260/1378] Building CXX object third_party\onnx\CMakeFiles\onnx_proto.dir\onnx\onnx_onnx_c2-ml.pb.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[262/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\assertions.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[263/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\__\__\caffe2\onnx\torch_ops\schema.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[264/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[265/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\status.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[266/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\schema.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[267/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\attr_proto_util.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[268/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\interned_strings.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[269/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\model_helpers.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[270/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\data_type_utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[271/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\function.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[272/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\controlflow\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[273/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\controlflow\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[274/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\generator\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[275/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\checker.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[276/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\logical\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[277/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\ir_pb_converter.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[278/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\logical\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[279/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor_proto_util.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[280/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\generator\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[281/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\math\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[282/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[283/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\math\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[284/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\traditionalml\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[285/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[286/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[287/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\traditionalml\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[288/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\nn\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[290/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\onnxifi_utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[294/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass_manager.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[298/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\version_converter\helper.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[301/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\optimize.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[307/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass_registry.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[315/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\shape_inference\implementation.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[340/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\version_converter\convert.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[549/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THGeneral.cpp.obj
C:\Users\bhave\pytorch\aten\src\TH\THGeneral.cpp(212) : warning C4717: 'THLog2': recursive on all control paths, function will cause runtime stack overflow
C:\Users\bhave\pytorch\aten\src\TH\THGeneral.cpp(217) : warning C4717: 'THExpm1': recursive on all control paths, function will cause runtime stack overflow
[582/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THTensorEvenMoreMath.cpp.obj
C:\Users\bhave\pytorch\aten\src\TH/generic/THTensorEvenMoreMath.cpp(410): warning C4804: '+=': unsafe use of type 'bool' in operation
[584/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj
FAILED: caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.AVX.cpp.obj
C:\PROGRA~2\MICROS~4\2019\COMMUN~1\VC\Tools\MSVC\1421~1.277\bin\Hostx86\x86\cl.exe /nologo /TP -DAT_CORE_STATIC_WINDOWS=1 -DAT_PARALLEL_OPENMP=1 -DCAFFE2_BUILD_MAIN_LIB -DCPUINFO_SUPPORTED_PLATFORM=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_c2 -DUSE_MSC_ATOMICS=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_THP_CORE -I..\aten\src -I. -I..\ -I..\third_party\protobuf\src -I..\cmake\..\third_party\benchmark\include -Icaffe2\contrib\aten -I..\third_party\onnx -Ithird_party\onnx -I..\third_party\foxi -Ithird_party\foxi -I..\caffe2\..\torch\csrc\api -I..\caffe2\..\torch\csrc\api\include -I..\caffe2\aten\src\TH -Icaffe2\aten\src\TH -I..\caffe2\..\torch\..\aten\src -Icaffe2\aten\src -Iaten\src -Icaffe2\..\aten\src -Icaffe2\..\aten\src\ATen -I..\caffe2\..\torch\csrc -I..\caffe2\..\torch\..\third_party\miniz-2.0.8 -I..\aten\src\TH -I..\aten\..\third_party\catch\single_include -I..\aten\src\ATen\.. -Icaffe2\aten\src\ATen -I..\caffe2\core\nomnigraph\include -I..\third_party\miniz-2.0.8 -I..\c10\.. -I..\third_party\cpuinfo\include -I..\third_party\FP16\include -I..\cmake\..\third_party\googletest\googlemock\include -I..\cmake\..\third_party\googletest\googletest\include -I..\cmake\..\third_party\eigen -I..\cmake\..\third_party\pybind11\include -I..\caffe2 /EHa -openmp:experimental /MP /bigobj -DHAVE_AVX_CPU_DEFINITION /MT /O2 /Ob2 /MP /bigobj -DUSE_GCC_GET_CPUID -DUSE_AVX -DTH_HAVE_THREAD /Zi /EHa /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -DCAFFE2_BUILD_MAIN_LIB -O2 /Ox /fp:strict /arch:AVX /DCPU_CAPABILITY=AVX /DCPU_CAPABILITY_AVX /showIncludes /Focaffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj /Fdcaffe2\CMakeFiles\torch.dir\torch.pdb /FS -c aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): error C2672: 'convert_to_int_of_same_size': no matching overloaded function found
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(613): note: while compiling class template member function 'void at::native::`anonymous-namespace'::ApplyGridSample<float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection>::backward(at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,const at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,const at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,int64_t,const at::vec256::`anonymous-namespace'::Vec256<scalar_t> &,const at::vec256::`anonymous-namespace'::Vec256<scalar_t> &,int64_t) const'
with
[
scalar_t=float
]
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(877): note: see reference to function template instantiation 'void at::native::`anonymous-namespace'::ApplyGridSample<float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection>::backward(at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,const at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,const at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,int64_t,const at::vec256::`anonymous-namespace'::Vec256<scalar_t> &,const at::vec256::`anonymous-namespace'::Vec256<scalar_t> &,int64_t) const' being compiled
with
[
scalar_t=float
]
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(822): note: see reference to class template instantiation 'at::native::`anonymous-namespace'::ApplyGridSample<float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection>' being compiled
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): error C2893: Failed to specialize function template 'at::vec256::`anonymous-namespace'::Vec256<int_of_size<sizeof(T)>::type> at::vec256::`anonymous-namespace'::convert_to_int_of_same_size(const at::vec256::`anonymous-namespace'::Vec256<T> &)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): note: With the following template arguments:
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): note: 'T=scalar_t'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C3536: 'i_x_nearest': cannot be used before it is initialized
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C2678: binary '>': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator >(c10::Scalar,const at::Tensor &)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator >(const at::Tensor &,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator >(const at::Tensor &,const at::Tensor &)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): note: while trying to match the argument list '(int, at::vec256::`anonymous-namespace'::Vec256<int>)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C2678: binary '<': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator <(c10::Scalar,const at::Tensor &)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator <(const at::Tensor &,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator <(const at::Tensor &,const at::Tensor &)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): note: while trying to match the argument list '(int, at::vec256::`anonymous-namespace'::Vec256<int>)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(627): error C2678: binary '+': no operator found which takes a left-hand operand of type 'at::vec256::`anonymous-namespace'::Vec256<int>' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator +(c10::Scalar,const at::Tensor &)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator +(const at::Tensor &,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator +(const at::Tensor &,const at::Tensor &)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(627): note: while trying to match the argument list '(at::vec256::`anonymous-namespace'::Vec256<int>, int)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(630): error C3536: 'i_mask': cannot be used before it is initialized
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(632): error C3536: 'i_gInp_offset': cannot be used before it is initialized
[587/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp.obj
aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp(117): warning C4804: '+=': unsafe use of type 'bool' in operation
[595/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THTensorMoreMath.cpp.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "tools\build_libtorch.py", line 23, in <module>
rerun_cmake=True, cmake_only=False, cmake=CMake('build'))
File "C:\Users\bhave\pytorch\tools\build_pytorch_libs.py", line 64, in build_caffe2
cmake.build(my_env)
File "C:\Users\bhave\pytorch\tools\setup_helpers\cmake.py", line 358, in build
self.run(build_args, my_env)
File "C:\Users\bhave\pytorch\tools\setup_helpers\cmake.py", line 110, in run
check_call(command, cwd=self.build_dir, env=env)
File "C:\Python27\lib\subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '12']' returned non-zero exit status 1
"Caffe2 building failed""><pre class="notranslate"><code class="notranslate">C:\Users\bhave\pytorch\scripts>build_windows.bat
The system cannot find the drive specified.
Requirement already satisfied: pyyaml in c:\python27\lib\site-packages
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
CAFFE2_ROOT=C:\Users\bhave\pytorch\scripts\..
CMAKE_GENERATOR=Visual Studio 16 2019
CMAKE_BUILD_TYPE=Release
cmake -GNinja -DMSVC_Z7_OVERRIDE=False -DBUILDING_WITH_TORCH_LIBS=OFF -DBUILD_BINARY=OFF -DBUILD_PYTHON=False -DBUILD_SHARED_LIBS=OFF -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS= /EHa -DCMAKE_C_FLAGS= /EHa -DCMAKE_EXE_LINKER_FLAGS= -DCMAKE_INSTALL_PREFIX=C:\Users\bhave\pytorch\torch -DCMAKE_PREFIX_PATH=C:\Python27\Lib\site-packages -DCMAKE_SHARED_LINKER_FLAGS= -DINSTALL_TEST=True -DNAMEDTENSOR_ENABLED=False -DNCCL_EXTERNAL=False -DNUMPY_INCLUDE_DIR=C:/Python27/lib/site-packages/numpy/core/include -DONNX_NAMESPACE=onnx_c2 -DPYTHON_EXECUTABLE=C:/Python27/python.exe -DPYTHON_INCLUDE_DIR=C:/Python27/include -DUSE_CUDA=False -DUSE_DISTRIBUTED=False -DUSE_FBGEMM=True -DUSE_MKLDNN=True -DUSE_NCCL=False -DUSE_NNPACK=True -DUSE_NUMPY=True -DUSE_OBSERVERS=OFF -DUSE_QNNPACK=True -DUSE_ROCM=False -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DUSE_SYSTEM_NCCL=False -DMKLDNN_ENABLE_CONCURRENT_EXEC=ON C:\Users\bhave\pytorch
-- The CXX compiler identification is MSVC 19.21.27702.2
-- The C compiler identification is MSVC 19.21.27702.2
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Not forcing any particular BLAS to be found
-- Performing Test COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Success
-- Performing Test SUPPORT_GLIBCXX_USE_C99
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
-- std::exception_ptr is supported.
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Failed
-- NUMA is not available
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Failed
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:C:/Users/bhave/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- Trying to find preferred BLAS backend of choice: MKL
-- MKL_THREADING = OMP
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- MKL_THREADING = OMP
CMake Warning at cmake/Dependencies.cmake:143 (message):
MKL could not be found. Defaulting to Eigen
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
CMake Warning at cmake/Dependencies.cmake:162 (message):
Preferred BLAS (MKL) cannot be found, now searching for a general BLAS
library
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
-- MKL_THREADING = OMP
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - libiomp5md - pthread]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - pthread]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
-- Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
-- Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
-- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
-- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
-- Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
-- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
-- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
-- Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
-- Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
-- Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
CMake Warning at cmake/Dependencies.cmake:211 (message):
Target platform "Windows" is not supported in QNNPACK. Supported platforms
are Android, iOS, Linux, and macOS. Turn this warning off by
USE_QNNPACK=OFF.
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
CMake Warning at cmake/External/nnpack.cmake:21 (message):
NNPACK not supported on MSVC yet. Turn this warning off by USE_NNPACK=OFF.
Call Stack (most recent call first):
cmake/Dependencies.cmake:279 (include)
CMakeLists.txt:270 (include)
CMake Warning at cmake/Dependencies.cmake:289 (message):
Not compiling with NNPACK. Suppress this warning with -DUSE_NNPACK=OFF
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.14")
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.22.0.windows.1")
-- git Version: v1.4.0-505be96a
-- Version: 1.4.0
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
CMake Warning at cmake/Dependencies.cmake:505 (message):
NUMA is currently only supported under Linux.
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
-- Downloading PSimd to C:/Users/bhave/pytorch/build/confu-srcs/psimd (define PSIMD_SOURCE_DIR to avoid it)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/bhave/pytorch/build/confu-deps/psimd-download
[1/6] Performing update step for 'psimd'
Current branch master is up to date.
[2/6] No configure step for 'psimd'
[3/6] No build step for 'psimd'
[4/6] No install step for 'psimd'
[5/6] No test step for 'psimd'
[6/6] Completed 'psimd'
-- Using third party subdirectory Eigen.
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
-- MKL_THREADING = OMP
-- MKL_THREADING = OMP
-- Adding OpenMP CXX_FLAGS: -openmp:experimental
-- No OpenMP library needs to be linked against
CMake Warning at cmake/Dependencies.cmake:1012 (message):
Metal is only used in ios builds.
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
--
-- ******** Summary ********
-- CMake version : 3.15.0-rc2
-- CMake command : C:/Users/bhave/bin/cmake.exe
-- System : Windows
-- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- C++ compiler version : 19.21.27702.2
-- CXX flags : /EHa -openmp:experimental
-- Build type : Release
-- Compile definitions : ONNX_ML=1
-- CMAKE_PREFIX_PATH : C:\Python27\Lib\site-packages
-- CMAKE_INSTALL_PREFIX : C:/Users/bhave/pytorch/torch
-- CMAKE_MODULE_PATH : C:/Users/bhave/pytorch/cmake/Modules
--
-- ONNX version : 1.5.0
-- ONNX NAMESPACE : onnx_c2
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
-- ONNXIFI_ENABLE_EXT : OFF
--
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
--
-- ******** Summary ********
-- CMake version : 3.15.0-rc2
-- CMake command : C:/Users/bhave/bin/cmake.exe
-- System : Windows
-- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- C++ compiler version : 19.21.27702.2
-- CXX flags : /EHa -openmp:experimental
-- Build type : Release
-- Compile definitions : ONNX_ML=1
-- CMAKE_PREFIX_PATH : C:\Python27\Lib\site-packages
-- CMAKE_INSTALL_PREFIX : C:/Users/bhave/pytorch/torch
-- CMAKE_MODULE_PATH : C:/Users/bhave/pytorch/cmake/Modules
--
-- ONNX version : 1.4.1
-- ONNX NAMESPACE : onnx_c2
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
--
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
-- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Looking for cpuid.h
-- Looking for cpuid.h - not found
-- Performing Test NO_GCC_EBX_FPIC_BUG
-- Performing Test NO_GCC_EBX_FPIC_BUG - Failed
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Failed
-- Performing Test C_HAS_AVX2_3
-- Performing Test C_HAS_AVX2_3 - Failed
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Failed
-- Performing Test CXX_HAS_AVX2_3
-- Performing Test CXX_HAS_AVX2_3 - Failed
-- AVX compiler support found
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Failed
-- Performing Test HAS_MSC_ATOMICS
-- Performing Test HAS_MSC_ATOMICS - Success
-- Performing Test HAS_GCC_ATOMICS
-- Performing Test HAS_GCC_ATOMICS - Failed
-- Atomics: using MSVC intrinsics
-- MKL_THREADING = OMP
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - libiomp5md - pthread]
-- Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - pthread]
-- Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
-- Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
-- Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
-- Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
-- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
-- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
-- Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
-- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
-- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
-- Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
-- Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
-- Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
-- LAPACK requires BLAS
-- Cannot find a library with LAPACK API. Not using LAPACK.
disabling CUDA because NOT USE_CUDA is set
-- CuDNN not found. Compiling without CuDNN support
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- MKL-DNN needs omp 3+ which is not supported in MSVC so far
CMake Warning at cmake/Dependencies.cmake:1364 (MESSAGE):
MKLDNN could not be found.
Call Stack (most recent call first):
CMakeLists.txt:270 (include)
-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
-- don't use NUMA
disabling CUDA because USE_CUDA is set false
-- NCCL operators skipped due to no CUDA support
-- Excluding ideep operators as we are not using ideep
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- MPI operators skipped due to no MPI support
-- pytorch is compiling with OpenMP.
OpenMP CXX_FLAGS: -openmp:experimental.
OpenMP libraries: .
-- Caffe2 is compiling with OpenMP.
OpenMP CXX_FLAGS: -openmp:experimental.
OpenMP libraries: .
-- Using parallel backend: OPENMP
CMake Warning at CMakeLists.txt:483 (message):
Generated cmake files are only fully tested if one builds with system glog,
gflags, and protobuf. Other settings may generate files that are not well
tested.
CMake Warning at CMakeLists.txt:535 (message):
Generated cmake files are only available when building shared libs.
--
-- ******** Summary ********
-- General:
-- CMake version : 3.15.0-rc2
-- CMake command : C:/Users/bhave/bin/cmake.exe
-- System : Windows
-- C++ compiler : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- C++ compiler id : MSVC
-- C++ compiler version : 19.21.27702.2
-- BLAS : MKL
-- CXX flags : /EHa -openmp:experimental /MP /bigobj
-- Build type : Release
-- Compile definitions : ONNX_ML=1;ONNX_NAMESPACE=onnx_c2;_CRT_SECURE_NO_DEPRECATE=1;USE_MSC_ATOMICS=1
-- CMAKE_PREFIX_PATH : C:\Python27\Lib\site-packages
-- CMAKE_INSTALL_PREFIX : C:/Users/bhave/pytorch/torch
--
-- TORCH_VERSION : 1.1.0
-- CAFFE2_VERSION : 1.1.0
-- BUILD_CAFFE2_MOBILE : ON
-- BUILD_ATEN_ONLY : OFF
-- BUILD_BINARY : OFF
-- BUILD_CUSTOM_PROTOBUF : ON
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : False
-- BUILD_CAFFE2_OPS : ON
-- BUILD_SHARED_LIBS : OFF
-- BUILD_TEST : True
-- INTERN_BUILD_MOBILE :
-- USE_ASAN : OFF
-- USE_CUDA : False
-- USE_ROCM : False
-- USE_EIGEN_FOR_BLAS : ON
-- USE_FBGEMM : OFF
-- USE_FFMPEG : OFF
-- USE_GFLAGS : OFF
-- USE_GLOG : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : OFF
-- USE_METAL : OFF
-- USE_MKL : OFF
-- USE_MKLDNN : OFF
-- USE_NCCL : False
-- USE_NNPACK : OFF
-- USE_NUMPY : True
-- USE_OBSERVERS : OFF
-- USE_OPENCL : OFF
-- USE_OPENCV : OFF
-- USE_OPENMP : ON
-- USE_TBB : OFF
-- USE_PROF : OFF
-- USE_QNNPACK : OFF
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- USE_DISTRIBUTED : OFF
-- NAMEDTENSOR_ENABLED : False
-- Public Dependencies : Threads::Threads
-- Private Dependencies : cpuinfo;fp16;aten_op_header_gen;foxi_loader
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
MKLDNN_ENABLE_CONCURRENT_EXEC
NCCL_EXTERNAL
NUMPY_INCLUDE_DIR
PYTHON_INCLUDE_DIR
-- Build files have been written to: C:/Users/bhave/pytorch/build
cmake --build . --target install --config Release -- -j 12
[177/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\info.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[180/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[181/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\vendor.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[182/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\uarch.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[184/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\name.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[186/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\topology.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[187/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[189/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[190/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\api.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[191/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\descriptor.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[192/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\isa.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[193/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\deterministic.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[196/1378] Building C object confu-deps\cpuinfo\deps\clog\CMakeFiles\clog.dir\src\clog.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[201/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\windows\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[204/1378] Building C object third_party\onnx\CMakeFiles\onnxifi_loader.dir\onnx\onnxifi_loader.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[205/1378] Building C object third_party\onnx\CMakeFiles\onnxifi_dummy.dir\onnx\onnxifi_dummy.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
..\third_party\onnx\onnx\onnxifi_dummy.c(173): warning C4113: 'onnxStatus (__stdcall *)(onnxBackendID,const char *,onnxExtensionFunctionPointer *)' differs in parameter lists from 'onnxExtensionFunctionPointer'
..\third_party\onnx\onnx\onnxifi_dummy.c(176): warning C4113: 'onnxStatus (__stdcall *)(onnxGraph,uint32_t,const onnxTensorDescriptorV1 *,uint32_t,const onnxTensorDescriptorV1 *,onnxMemoryFenceV1 *)' differs in parameter lists from 'onnxExtensionFunctionPointer'
[207/1378] Building CXX object third_party\googletest\googlemock\gtest\CMakeFiles\gtest_main.dir\src\gtest_main.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[208/1378] Linking C shared module lib\onnxifi.dll
Creating library lib\onnxifi.lib and object lib\onnxifi.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
[209/1378] Linking C shared library bin\onnxifi_dummy.dll
Creating library lib\onnxifi_dummy.lib and object lib\onnxifi_dummy.exp
[210/1378] Building C object third_party\foxi\CMakeFiles\foxi_dummy.dir\foxi\onnxifi_dummy.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[211/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock_main.dir\src\gmock_main.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[213/1378] Linking C shared library bin\foxi_dummy.dll
Creating library lib\foxi_dummy.lib and object lib\foxi_dummy.exp
[216/1378] Building C object third_party\foxi\CMakeFiles\foxi_loader.dir\foxi\onnxifi_loader.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[218/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock.dir\src\gmock-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[219/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock_main.dir\src\gmock-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[221/1378] Linking C shared module lib\foxi.dll
Creating library lib\foxi.lib and object lib\foxi.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
[227/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock.dir\__\googletest\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[231/1378] Building CXX object third_party\googletest\goog...akeFiles\gmock_main.dir\__\googletest\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[239/1378] Building CXX object third_party\googletest\googlemock\gtest\CMakeFiles\gtest.dir\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[252/1378] Building CXX object third_party\onnx\CMakeFiles\onnx_proto.dir\onnx\onnx-operators_onnx_c2-ml.pb.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[253/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\object_detection\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[254/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\quantization\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[255/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\rnn\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[256/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\nn\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[257/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\rnn\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[258/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\reduction\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[259/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\__\__\caffe2\onnx\torch_ops\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[260/1378] Building CXX object third_party\onnx\CMakeFiles\onnx_proto.dir\onnx\onnx_onnx_c2-ml.pb.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[262/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\assertions.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[263/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\__\__\caffe2\onnx\torch_ops\schema.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[264/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[265/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\status.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[266/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\schema.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[267/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\attr_proto_util.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[268/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\interned_strings.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[269/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\model_helpers.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[270/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\data_type_utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[271/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\function.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[272/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\controlflow\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[273/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\controlflow\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[274/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\generator\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[275/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\checker.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[276/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\logical\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[277/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\ir_pb_converter.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[278/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\logical\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[279/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor_proto_util.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[280/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\generator\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[281/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\math\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[282/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[283/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\math\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[284/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\traditionalml\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[285/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[286/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[287/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\traditionalml\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[288/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\nn\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[290/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\onnxifi_utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[294/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass_manager.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[298/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\version_converter\helper.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[301/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\optimize.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[307/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass_registry.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[315/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\shape_inference\implementation.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[340/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\version_converter\convert.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[549/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THGeneral.cpp.obj
C:\Users\bhave\pytorch\aten\src\TH\THGeneral.cpp(212) : warning C4717: 'THLog2': recursive on all control paths, function will cause runtime stack overflow
C:\Users\bhave\pytorch\aten\src\TH\THGeneral.cpp(217) : warning C4717: 'THExpm1': recursive on all control paths, function will cause runtime stack overflow
[582/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THTensorEvenMoreMath.cpp.obj
C:\Users\bhave\pytorch\aten\src\TH/generic/THTensorEvenMoreMath.cpp(410): warning C4804: '+=': unsafe use of type 'bool' in operation
[584/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj
FAILED: caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.AVX.cpp.obj
C:\PROGRA~2\MICROS~4\2019\COMMUN~1\VC\Tools\MSVC\1421~1.277\bin\Hostx86\x86\cl.exe /nologo /TP -DAT_CORE_STATIC_WINDOWS=1 -DAT_PARALLEL_OPENMP=1 -DCAFFE2_BUILD_MAIN_LIB -DCPUINFO_SUPPORTED_PLATFORM=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_c2 -DUSE_MSC_ATOMICS=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_THP_CORE -I..\aten\src -I. -I..\ -I..\third_party\protobuf\src -I..\cmake\..\third_party\benchmark\include -Icaffe2\contrib\aten -I..\third_party\onnx -Ithird_party\onnx -I..\third_party\foxi -Ithird_party\foxi -I..\caffe2\..\torch\csrc\api -I..\caffe2\..\torch\csrc\api\include -I..\caffe2\aten\src\TH -Icaffe2\aten\src\TH -I..\caffe2\..\torch\..\aten\src -Icaffe2\aten\src -Iaten\src -Icaffe2\..\aten\src -Icaffe2\..\aten\src\ATen -I..\caffe2\..\torch\csrc -I..\caffe2\..\torch\..\third_party\miniz-2.0.8 -I..\aten\src\TH -I..\aten\..\third_party\catch\single_include -I..\aten\src\ATen\.. -Icaffe2\aten\src\ATen -I..\caffe2\core\nomnigraph\include -I..\third_party\miniz-2.0.8 -I..\c10\.. -I..\third_party\cpuinfo\include -I..\third_party\FP16\include -I..\cmake\..\third_party\googletest\googlemock\include -I..\cmake\..\third_party\googletest\googletest\include -I..\cmake\..\third_party\eigen -I..\cmake\..\third_party\pybind11\include -I..\caffe2 /EHa -openmp:experimental /MP /bigobj -DHAVE_AVX_CPU_DEFINITION /MT /O2 /Ob2 /MP /bigobj -DUSE_GCC_GET_CPUID -DUSE_AVX -DTH_HAVE_THREAD /Zi /EHa /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -DCAFFE2_BUILD_MAIN_LIB -O2 /Ox /fp:strict /arch:AVX /DCPU_CAPABILITY=AVX /DCPU_CAPABILITY_AVX /showIncludes /Focaffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj /Fdcaffe2\CMakeFiles\torch.dir\torch.pdb /FS -c aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): error C2672: 'convert_to_int_of_same_size': no matching overloaded function found
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(613): note: while compiling class template member function 'void at::native::`anonymous-namespace'::ApplyGridSample<float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection>::backward(at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,const at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,const at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,int64_t,const at::vec256::`anonymous-namespace'::Vec256<scalar_t> &,const at::vec256::`anonymous-namespace'::Vec256<scalar_t> &,int64_t) const'
with
[
scalar_t=float
]
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(877): note: see reference to function template instantiation 'void at::native::`anonymous-namespace'::ApplyGridSample<float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection>::backward(at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,const at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,const at::TensorAccessor<scalar_t,3,at::DefaultPtrTraits,int64_t> &,int64_t,const at::vec256::`anonymous-namespace'::Vec256<scalar_t> &,const at::vec256::`anonymous-namespace'::Vec256<scalar_t> &,int64_t) const' being compiled
with
[
scalar_t=float
]
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(822): note: see reference to class template instantiation 'at::native::`anonymous-namespace'::ApplyGridSample<float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection>' being compiled
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): error C2893: Failed to specialize function template 'at::vec256::`anonymous-namespace'::Vec256<int_of_size<sizeof(T)>::type> at::vec256::`anonymous-namespace'::convert_to_int_of_same_size(const at::vec256::`anonymous-namespace'::Vec256<T> &)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): note: With the following template arguments:
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): note: 'T=scalar_t'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C3536: 'i_x_nearest': cannot be used before it is initialized
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C2678: binary '>': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator >(c10::Scalar,const at::Tensor &)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator >(const at::Tensor &,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator >(const at::Tensor &,const at::Tensor &)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): note: while trying to match the argument list '(int, at::vec256::`anonymous-namespace'::Vec256<int>)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C2678: binary '<': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator <(c10::Scalar,const at::Tensor &)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator <(const at::Tensor &,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator <(const at::Tensor &,const at::Tensor &)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): note: while trying to match the argument list '(int, at::vec256::`anonymous-namespace'::Vec256<int>)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(627): error C2678: binary '+': no operator found which takes a left-hand operand of type 'at::vec256::`anonymous-namespace'::Vec256<int>' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator +(c10::Scalar,const at::Tensor &)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator +(const at::Tensor &,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or 'at::Tensor at::operator +(const at::Tensor &,const at::Tensor &)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(627): note: while trying to match the argument list '(at::vec256::`anonymous-namespace'::Vec256<int>, int)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(630): error C3536: 'i_mask': cannot be used before it is initialized
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(632): error C3536: 'i_gInp_offset': cannot be used before it is initialized
[587/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp.obj
aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp(117): warning C4804: '+=': unsafe use of type 'bool' in operation
[595/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THTensorMoreMath.cpp.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "tools\build_libtorch.py", line 23, in <module>
rerun_cmake=True, cmake_only=False, cmake=CMake('build'))
File "C:\Users\bhave\pytorch\tools\build_pytorch_libs.py", line 64, in build_caffe2
cmake.build(my_env)
File "C:\Users\bhave\pytorch\tools\setup_helpers\cmake.py", line 358, in build
self.run(build_args, my_env)
File "C:\Users\bhave\pytorch\tools\setup_helpers\cmake.py", line 110, in run
check_call(command, cwd=self.build_dir, env=env)
File "C:\Python27\lib\subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '12']' returned non-zero exit status 1
"Caffe2 building failed"
</code></pre></div> | 0 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-line-up-form-elements-responsively-with-bootstrap" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-line-up-form-elements-responsively-with-bootstrap</a> has an issue.</p>
<p dir="auto">I think the problem is happening on all Waypoint pages; the device right side of the screen where the CatPhotoApp page displays the information is being displayed duplicated;</p>
<p dir="auto">Another point is that the HTML / CSS code is not completely displayed when the page is loaded, it is necessary to click or edit the code so that the code from the previous lesson is displayed correctly;</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8672039/9483149/cbe9f67c-4b72-11e5-9b2a-698deaa06a4e.png"><img src="https://cloud.githubusercontent.com/assets/8672039/9483149/cbe9f67c-4b72-11e5-9b2a-698deaa06a4e.png" alt="duplicate" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8672039/9483184/285ff19a-4b73-11e5-8601-6c5fbb58215b.png"><img src="https://cloud.githubusercontent.com/assets/8672039/9483184/285ff19a-4b73-11e5-8601-6c5fbb58215b.png" alt="lost previous code" style="max-width: 100%;"></a></p> | <p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/applied-visual-design/change-the-position-of-overlapping-elements-with-the-zindex-property" rel="nofollow">change-the-position-of-overlapping-elements-with-the-zindex-property</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">The content from the previous exercise is shown but not the content from the current exercise. The content only reveals itself when the challenge is completed.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<style>
div {
width: 60%;
height:200px;
margin-top: 20px;
}
.first {
background-color: red;
position: absolute;
z-index: 2;
}
.second {
background-color: blue;
position: absolute;
left: 40px;
top: 50px;
z-index: 1;
}
</style>
<div class="first"></div>
<div class="second"></div>
```
"><pre class="notranslate">
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-ent">div</span> {
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">60<span class="pl-smi">%</span></span>;
<span class="pl-c1">height</span><span class="pl-kos">:</span><span class="pl-c1">200<span class="pl-smi">px</span></span>;
<span class="pl-c1">margin-top</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span>;
}
.<span class="pl-c1">first</span> {
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> red;
<span class="pl-c1">position</span><span class="pl-kos">:</span> absolute;
<span class="pl-c1">z-index</span><span class="pl-kos">:</span> <span class="pl-c1">2</span>;
}
.<span class="pl-c1">second</span> {
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> blue;
<span class="pl-c1">position</span><span class="pl-kos">:</span> absolute;
<span class="pl-c1">left</span><span class="pl-kos">:</span> <span class="pl-c1">40<span class="pl-smi">px</span></span>;
<span class="pl-c1">top</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">px</span></span>;
<span class="pl-c1">z-index</span><span class="pl-kos">:</span> <span class="pl-c1">1</span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">first</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">second</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
```
</pre></div> | 0 |
<p dir="auto">We need to document that nightly.matplotlib.org exists and has nightly builds of many packages from the scipy ecosystem.</p> | <p dir="auto">This is a minor bug, but the <strong>str</strong> method of MouseEvent uses a %d format for "button" which can be a string ("up" or "down") for scroll events. This causes a crash when you try to print it.</p> | 0 |
<p dir="auto">here is the build output:</p>
<p dir="auto">python setup.py install</p>
<p dir="auto">Building wheel torch-1.1.0a0+d374260<br>
-- Building version 1.1.0a0+d374260<br>
['cmake',<br>
'/home/user/zkself/pytorch',<br>
'-DBUILDING_WITH_TORCH_LIBS=ON',<br>
'-DBUILD_BINARY=False',<br>
'-DBUILD_CAFFE2_OPS=True',<br>
'-DBUILD_PYTHON=True',<br>
'-DBUILD_SHARED_LIBS=ON',<br>
'-DBUILD_TEST=True',<br>
'-DBUILD_TORCH=ON',<br>
'-DCAFFE2_STATIC_LINK_CUDA=False',<br>
'-DCMAKE_BUILD_TYPE=Release',<br>
'-DCMAKE_CXX_FLAGS=',<br>
'-DCMAKE_C_FLAGS=',<br>
'-DCMAKE_EXE_LINKER_FLAGS=',<br>
'-DCMAKE_INSTALL_PREFIX=/home/user/zkself/pytorch/torch',<br>
'-DCMAKE_PREFIX_PATH=/home/user/anaconda2/envs/zk_py2.7caffe2',<br>
'-DCMAKE_SHARED_LINKER_FLAGS=',<br>
'-DINSTALL_TEST=True',<br>
'-DNCCL_EXTERNAL=True',<br>
'-DNCCL_INCLUDE_DIR=/usr/local/include',<br>
'-DNCCL_ROOT_DIR=/usr/local/',<br>
'-DNCCL_SYSTEM_LIB=/usr/local/lib/libnccl.so.2.3.7',<br>
'-DNUMPY_INCLUDE_DIR=/home/user/anaconda2/envs/zk_py2.7caffe2/lib/python2.7/site-packages/numpy/core/include',<br>
'-DONNX_NAMESPACE=onnx_torch',<br>
'-DPYTHON_EXECUTABLE=/home/user/anaconda2/envs/zk_py2.7caffe2/bin/python',<br>
'-DPYTHON_INCLUDE_DIR=/home/user/anaconda2/envs/zk_py2.7caffe2/include/python2.7',<br>
'-DPYTHON_LIBRARY=/home/user/anaconda2/envs/zk_py2.7caffe2/lib/libpython2.7.so.1.0',<br>
'-DTHD_SO_VERSION=1',<br>
'-DTORCH_BUILD_VERSION=1.1.0a0+d374260',<br>
'-DUSE_CUDA=True',<br>
'-DUSE_DISTRIBUTED=True',<br>
'-DUSE_FBGEMM=True',<br>
'-DUSE_FFMPEG=False',<br>
'-DUSE_LEVELDB=False',<br>
'-DUSE_LMDB=False',<br>
'-DUSE_MKLDNN=True',<br>
'-DUSE_NNPACK=True',<br>
'-DUSE_NUMPY=True',<br>
'-DUSE_OPENCV=False',<br>
'-DUSE_QNNPACK=True',<br>
'-DUSE_ROCM=False',<br>
'-DUSE_SYSTEM_EIGEN_INSTALL=OFF',<br>
'-DUSE_SYSTEM_NCCL=True',<br>
'-DUSE_TENSORRT=False']<br>
[('LC_NUMERIC', 'en_US.UTF-8'),<br>
('CONDA_PYTHON_EXE', '/home/user/anaconda2/bin/python'),<br>
('LESSOPEN', '| /usr/bin/lesspipe %s'),<br>
('SSH_CLIENT', '172.16.129.51 53690 22'),<br>
('LOGNAME', 'user'),<br>
('USER', 'user'),<br>
('HOME', '/home/user'),<br>
('LC_PAPER', 'en_US.UTF-8'),<br>
('PATH',<br>
'/home/user/anaconda2/envs/zk_py2.7caffe2/bin:{JAVA_HOME}/bin:/home/user/bin:/home/user/.local/bin:{JAVA_HOME}/bin:/home/user/anaconda2/bin:/usr/local/cuda-10.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user/bin:/home/user/bin'),<br>
('CMAKE_PREFIX_PATH', '/home/user/anaconda2/envs/zk_py2.7caffe2'),<br>
('LD_LIBRARY_PATH', '/usr/local/cuda-10.0/lib64:/usr/local/lib'),<br>
('LANG', 'en_US.UTF-8'),<br>
('TERM', 'xterm-256color'),<br>
('SHELL', '/bin/bash'),<br>
('LC_MONETARY', 'en_US.UTF-8'),<br>
('QT_QPA_PLATFORMTHEME', 'appmenu-qt5'),<br>
('CONDA_PREFIX', '/home/user/anaconda2/envs/zk_py2.7caffe2'),<br>
('CONDA_DEFAULT_ENV', 'zk_py2.7caffe2'),<br>
('JAVA_HOME', '/usr/local/jdk/jdk1.8.0_191'),<br>
('CONDA_PREFIX_1', '/home/user/anaconda2'),<br>
('XDG_RUNTIME_DIR', '/run/user/1000'),<br>
('LC_ADDRESS', 'en_US.UTF-8'),<br>
('PYTHONPATH',<br>
'/home/user/rsn/Up-Down-Captioner/external/caffe/python/:/home/user/rsn/Up-Down-Captioner/layers/:/home/user/zkself/'),<br>
('SHLVL', '1'),<br>
('CLASSPATH', '.:{JAVA_HOME}/lib:{JRE_HOME}/lib'),<br>
('CONDA_SHLVL', '2'),<br>
('CONDA_PROMPT_MODIFIER', '(zk_py2.7caffe2) '),<br>
('JRE_HOME', '/usr/local/jdk/jdk1.8.0_191/jre'),<br>
('PKG_CONFIG_PATH', '/usr/local/lib/pkgconfig:'),<br>
('XDG_DATA_DIRS', '/usr/local/share:/usr/share:/var/lib/snapd/desktop'),<br>
('XDG_SESSION_ID', '712'),<br>
('_', '/home/user/anaconda2/envs/zk_py2.7caffe2/bin/python'),<br>
('LC_IDENTIFICATION', 'en_US.UTF-8'),<br>
('SSH_CONNECTION', '172.16.129.51 53690 172.16.2.24 22'),<br>
('LESSCLOSE', '/usr/bin/lesspipe %s %s'),<br>
('SSH_TTY', '/dev/pts/8'),<br>
('OLDPWD', '/home/user/zkself'),<br>
('LC_TELEPHONE', 'en_US.UTF-8'),<br>
('PAPERSIZE', 'letter'),<br>
('LC_MEASUREMENT', 'en_US.UTF-8'),<br>
('PWD', '/home/user/zkself/pytorch'),<br>
('LC_NAME', 'en_US.UTF-8'),<br>
('MAIL', '/var/mail/user'),<br>
('LC_TIME', 'en_US.UTF-8'),<br>
('LS_COLORS',<br>
'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:<em>.tar=01;31:</em>.tgz=01;31:<em>.arc=01;31:</em>.arj=01;31:<em>.taz=01;31:</em>.lha=01;31:<em>.lz4=01;31:</em>.lzh=01;31:<em>.lzma=01;31:</em>.tlz=01;31:<em>.txz=01;31:</em>.tzo=01;31:<em>.t7z=01;31:</em>.zip=01;31:<em>.z=01;31:</em>.Z=01;31:<em>.dz=01;31:</em>.gz=01;31:<em>.lrz=01;31:</em>.lz=01;31:<em>.lzo=01;31:</em>.xz=01;31:<em>.bz2=01;31:</em>.bz=01;31:<em>.tbz=01;31:</em>.tbz2=01;31:<em>.tz=01;31:</em>.deb=01;31:<em>.rpm=01;31:</em>.jar=01;31:<em>.war=01;31:</em>.ear=01;31:<em>.sar=01;31:</em>.rar=01;31:<em>.alz=01;31:</em>.ace=01;31:<em>.zoo=01;31:</em>.cpio=01;31:<em>.7z=01;31:</em>.rz=01;31:<em>.cab=01;31:</em>.jpg=01;35:<em>.jpeg=01;35:</em>.gif=01;35:<em>.bmp=01;35:</em>.pbm=01;35:<em>.pgm=01;35:</em>.ppm=01;35:<em>.tga=01;35:</em>.xbm=01;35:<em>.xpm=01;35:</em>.tif=01;35:<em>.tiff=01;35:</em>.png=01;35:<em>.svg=01;35:</em>.svgz=01;35:<em>.mng=01;35:</em>.pcx=01;35:<em>.mov=01;35:</em>.mpg=01;35:<em>.mpeg=01;35:</em>.m2v=01;35:<em>.mkv=01;35:</em>.webm=01;35:<em>.ogm=01;35:</em>.mp4=01;35:<em>.m4v=01;35:</em>.mp4v=01;35:<em>.vob=01;35:</em>.qt=01;35:<em>.nuv=01;35:</em>.wmv=01;35:<em>.asf=01;35:</em>.rm=01;35:<em>.rmvb=01;35:</em>.flc=01;35:<em>.avi=01;35:</em>.fli=01;35:<em>.flv=01;35:</em>.gl=01;35:<em>.dl=01;35:</em>.xcf=01;35:<em>.xwd=01;35:</em>.yuv=01;35:<em>.cgm=01;35:</em>.emf=01;35:<em>.ogv=01;35:</em>.ogx=01;35:<em>.aac=00;36:</em>.au=00;36:<em>.flac=00;36:</em>.m4a=00;36:<em>.mid=00;36:</em>.midi=00;36:<em>.mka=00;36:</em>.mp3=00;36:<em>.mpc=00;36:</em>.ogg=00;36:<em>.ra=00;36:</em>.wav=00;36:<em>.oga=00;36:</em>.opus=00;36:<em>.spx=00;36:</em>.xspf=00;36:'),<br>
('CONDA_EXE', '/home/user/anaconda2/bin/conda')]<br>
-- The CXX compiler identification is Clang 8.0.0<br>
-- The C compiler identification is Clang 8.0.0<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Detecting CXX compile features<br>
-- Detecting CXX compile features - done<br>
-- Check for working C compiler: /usr/bin/cc<br>
-- Check for working C compiler: /usr/bin/cc -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Detecting C compile features<br>
-- Detecting C compile features - done<br>
-- Not forcing any particular BLAS to be found<br>
-- Performing Test COMPILER_WORKS<br>
-- Performing Test COMPILER_WORKS - Success<br>
-- Performing Test SUPPORT_GLIBCXX_USE_C99<br>
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success<br>
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED<br>
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success<br>
-- std::exception_ptr is supported.<br>
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE<br>
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Success<br>
-- NUMA is available<br>
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING<br>
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Success<br>
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS<br>
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Success<br>
-- Current compiler supports avx2 extension. Will build perfkernels.<br>
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS<br>
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success<br>
-- Current compiler supports avx512f extension. Will build fbgemm.<br>
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY<br>
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success<br>
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY<br>
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success<br>
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC<br>
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success<br>
-- Building using own protobuf under third_party per request.<br>
-- Use custom protobuf build.<br>
-- Looking for pthread.h<br>
-- Looking for pthread.h - found<br>
-- Looking for pthread_create<br>
-- Looking for pthread_create - not found<br>
-- Looking for pthread_create in pthreads<br>
-- Looking for pthread_create in pthreads - not found<br>
-- Looking for pthread_create in pthread<br>
-- Looking for pthread_create in pthread - found<br>
-- Found Threads: TRUE<br>
-- Caffe2 protobuf include directory: <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="f0fd8d327ac619c45fcf363139a88186">$&lt;BUILD_INTERFACE:/home/user/zkself/pytorch/third_party/protobuf/src&gt;$</math-renderer>&lt;INSTALL_INTERFACE:include><br>
-- The BLAS backend of choice:MKL<br>
-- Looking for sys/types.h<br>
-- Looking for sys/types.h - found<br>
-- Looking for stdint.h<br>
-- Looking for stdint.h - found<br>
-- Looking for stddef.h<br>
-- Looking for stddef.h - found<br>
-- Check size of void*<br>
-- Check size of void* - done<br>
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - iomp5 - pthread - m - dl]<br>
-- Library mkl_intel_lp64: /home/user/anaconda2/envs/zk_py2.7caffe2/lib/libmkl_intel_lp64.so<br>
-- Library mkl_intel_thread: /home/user/anaconda2/envs/zk_py2.7caffe2/lib/libmkl_intel_thread.so<br>
-- Library mkl_core: /home/user/anaconda2/envs/zk_py2.7caffe2/lib/libmkl_core.so<br>
-- Library iomp5: /home/user/anaconda2/envs/zk_py2.7caffe2/lib/libiomp5.so<br>
-- Library pthread: /usr/lib/x86_64-linux-gnu/libpthread.so<br>
-- Library m: /usr/lib/x86_64-linux-gnu/libm.so<br>
-- Library dl: /usr/lib/x86_64-linux-gnu/libdl.so<br>
-- Looking for cblas_sgemm<br>
-- Looking for cblas_sgemm - found<br>
-- The ASM compiler identification is Clang<br>
-- Found assembler: /usr/bin/cc<br>
-- Check if compiler accepts -pthread<br>
-- Check if compiler accepts -pthread - yes<br>
-- Brace yourself, we are building NNPACK<br>
-- Found PythonInterp: /home/user/anaconda2/envs/zk_py2.7caffe2/bin/python (found version "2.7.15")<br>
-- Caffe2: Cannot find gflags automatically. Using legacy find.<br>
-- Found gflags: /usr/include<br>
-- Caffe2: Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)<br>
-- Caffe2: Cannot find glog automatically. Using legacy find.<br>
-- Found glog: /usr/include<br>
-- Caffe2: Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)<br>
-- Failed to find LLVM FileCheck<br>
-- Found Git: /usr/bin/git (found version "2.7.4")<br>
-- git Version: v1.4.0-505be96a<br>
-- Version: 1.4.0<br>
-- Performing Test HAVE_CXX_FLAG_STD_CXX11<br>
-- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success<br>
-- Performing Test HAVE_CXX_FLAG_WALL<br>
-- Performing Test HAVE_CXX_FLAG_WALL - Success<br>
-- Performing Test HAVE_CXX_FLAG_WEXTRA<br>
-- Performing Test HAVE_CXX_FLAG_WEXTRA - Success<br>
-- Performing Test HAVE_CXX_FLAG_WSHADOW<br>
-- Performing Test HAVE_CXX_FLAG_WSHADOW - Success<br>
-- Performing Test HAVE_CXX_FLAG_WERROR<br>
-- Performing Test HAVE_CXX_FLAG_WERROR - Success<br>
-- Performing Test HAVE_CXX_FLAG_PEDANTIC<br>
-- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success<br>
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS<br>
-- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success<br>
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32<br>
-- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Success<br>
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL<br>
-- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success<br>
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING<br>
-- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success<br>
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS<br>
-- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success<br>
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING<br>
-- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success<br>
-- Performing Test HAVE_CXX_FLAG_WD654<br>
-- Performing Test HAVE_CXX_FLAG_WD654 - Failed<br>
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY<br>
-- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Success<br>
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES<br>
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES<br>
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile<br>
-- Performing Test HAVE_CXX_FLAG_COVERAGE<br>
-- Performing Test HAVE_CXX_FLAG_COVERAGE - Success<br>
-- Performing Test HAVE_STD_REGEX<br>
-- Performing Test HAVE_STD_REGEX<br>
-- Performing Test HAVE_STD_REGEX -- success<br>
-- Performing Test HAVE_GNU_POSIX_REGEX<br>
-- Performing Test HAVE_GNU_POSIX_REGEX<br>
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile<br>
-- Performing Test HAVE_POSIX_REGEX<br>
-- Performing Test HAVE_POSIX_REGEX<br>
-- Performing Test HAVE_POSIX_REGEX -- success<br>
-- Performing Test HAVE_STEADY_CLOCK<br>
-- Performing Test HAVE_STEADY_CLOCK<br>
-- Performing Test HAVE_STEADY_CLOCK -- success<br>
-- Performing Test COMPILER_SUPPORTS_AVX512<br>
-- Performing Test COMPILER_SUPPORTS_AVX512 - Success<br>
-- Found OpenMP_C: -fopenmp=libomp (found version "3.1")<br>
-- Found OpenMP_CXX: -fopenmp=libomp (found version "3.1")<br>
-- Found OpenMP: TRUE (found version "3.1")<br>
-- Downloading asmjit to /home/user/zkself/pytorch/build/third_party/fbgemm/third_party/asmjit<br>
(define ASMJIT_SRC_DIR to avoid it)<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: /home/user/zkself/pytorch/build/third_party/fbgemm/asmjit-download<br>
Scanning dependencies of target asmjit<br>
[ 11%] Creating directories for 'asmjit'<br>
[ 22%] Performing download step (git clone) for 'asmjit'<br>
Cloning into 'asmjit'...<br>
Note: checking out '673dcefaa048c5f5a2bf8b85daf8f7b9978d018a'.</p>
<p dir="auto">You are in 'detached HEAD' state. You can look around, make experimental<br>
changes and commit them, and you can discard any commits you make in this<br>
state without impacting any branches by performing another checkout.</p>
<p dir="auto">If you want to create a new branch to retain commits you create, you may<br>
do so (now or later) by using -b with the checkout command again. Example:</p>
<p dir="auto">git checkout -b </p>
<p dir="auto">HEAD is now at 673dcef... Fixed <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="186414868" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/188" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/188/hovercard" href="https://github.com/pytorch/pytorch/issues/188">#188</a><br>
[ 33%] No patch step for 'asmjit'<br>
[ 44%] Performing update step for 'asmjit'<br>
[ 55%] No configure step for 'asmjit'<br>
[ 66%] No build step for 'asmjit'<br>
[ 77%] No install step for 'asmjit'<br>
[ 88%] No test step for 'asmjit'<br>
[100%] Completed 'asmjit'<br>
[100%] Built target asmjit<br>
-- Performing Test __CxxFlag__msse<br>
-- Performing Test __CxxFlag__msse - Success<br>
-- Performing Test __CxxFlag__msse2<br>
-- Performing Test __CxxFlag__msse2 - Success<br>
-- Performing Test __CxxFlag__msse3<br>
-- Performing Test __CxxFlag__msse3 - Success<br>
-- Performing Test __CxxFlag__mssse3<br>
-- Performing Test __CxxFlag__mssse3 - Success<br>
-- Performing Test __CxxFlag__msse4_1<br>
-- Performing Test __CxxFlag__msse4_1 - Success<br>
-- Performing Test __CxxFlag__msse4_2<br>
-- Performing Test __CxxFlag__msse4_2 - Success<br>
-- Performing Test __CxxFlag__mavx<br>
-- Performing Test __CxxFlag__mavx - Success<br>
-- Performing Test __CxxFlag__mavx2<br>
-- Performing Test __CxxFlag__mavx2 - Success<br>
-- Performing Test __CxxFlag__std_c__17<br>
-- Performing Test __CxxFlag__std_c__17 - Success<br>
-- Performing Test __CxxFlag__std_c__14<br>
-- Performing Test __CxxFlag__std_c__14 - Success<br>
-- Performing Test __CxxFlag__std_c__11<br>
-- Performing Test __CxxFlag__std_c__11 - Success<br>
-- Performing Test __CxxFlag__std_c__0x<br>
-- Performing Test __CxxFlag__std_c__0x - Success<br>
-- Performing Test __CxxFlag__fno_tree_vectorize<br>
-- Performing Test __CxxFlag__fno_tree_vectorize - Success<br>
-- Performing Test __CxxFlag__fvisibility_hidden<br>
-- Performing Test __CxxFlag__fvisibility_hidden - Success<br>
-- Performing Test __CxxFlag__Winconsistent_missing_override<br>
-- Performing Test __CxxFlag__Winconsistent_missing_override - Success<br>
-- Performing Test __CxxFlag__O2<br>
-- Performing Test __CxxFlag__O2 - Success<br>
-- Performing Test __CxxFlag__fno_keep_static_consts<br>
-- Performing Test __CxxFlag__fno_keep_static_consts - Failed<br>
-- Performing Test __CxxFlag__fmerge_all_constants<br>
-- Performing Test __CxxFlag__fmerge_all_constants - Success<br>
-- [asmjit]<br>
BuildMode=Static<br>
BuildTest=Off<br>
ASMJIT_DIR=/home/user/zkself/pytorch/build/third_party/fbgemm/third_party/asmjit<br>
ASMJIT_DEPS=pthread;rt<br>
ASMJIT_LIBS=asmjit;pthread;rt<br>
ASMJIT_CFLAGS=-DASMJIT_STATIC<br>
ASMJIT_SOURCE_DIR=/home/user/zkself/pytorch/build/third_party/fbgemm/third_party/asmjit/src<br>
ASMJIT_INCLUDE_DIR=/home/user/zkself/pytorch/build/third_party/fbgemm/third_party/asmjit/src<br>
ASMJIT_PRIVATE_CFLAGS=<br>
-DASMJIT_STATIC<br>
-std=c++17<br>
-fno-tree-vectorize<br>
-fvisibility=hidden<br>
-Winconsistent-missing-override<br>
-O2 [RELEASE]<br>
-fmerge-all-constants [RELEASE]<br>
-- Found Numa: /usr/include<br>
-- Found Numa (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libnuma.so)<br>
-- Using third party subdirectory Eigen.<br>
Python 2.7.15 :: Anaconda, Inc.<br>
-- Found PythonInterp: /home/user/anaconda2/envs/zk_py2.7caffe2/bin/python (found suitable version "2.7.15", minimum required is "2.7")<br>
-- Found PythonLibs: /home/user/anaconda2/envs/zk_py2.7caffe2/lib/libpython2.7.so.1.0 (found suitable version "2.7.15", minimum required is "2.7")<br>
-- Could NOT find pybind11 (missing: pybind11_DIR)<br>
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)<br>
-- Using third_party/pybind11.<br>
-- Found MPI_C: /usr/lib/openmpi/lib/libmpi.so (found version "3.0")<br>
-- Found MPI_CXX: /usr/lib/openmpi/lib/libmpi_cxx.so (found version "3.0")<br>
-- Found MPI: TRUE (found version "3.0")<br>
-- MPI support found<br>
-- MPI compile flags: -pthread<br>
-- MPI include path: /usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include/usr/lib/openmpi/include/openmpi/usr/lib/openmpi/include<br>
-- MPI LINK flags path: -Wl,-rpath -Wl,/usr/lib/openmpi/lib -Wl,--enable-new-dtags -pthread<br>
-- MPI libraries: /usr/lib/openmpi/lib/libmpi_cxx.so/usr/lib/openmpi/lib/libmpi.so<br>
CMake Warning at cmake/Dependencies.cmake:665 (message):<br>
OpenMPI found, but it is not built with CUDA support.<br>
Call Stack (most recent call first):<br>
CMakeLists.txt:219 (include)</p>
<p dir="auto">-- Found CUDA: /usr/local/cuda (found version "10.0")<br>
-- Caffe2: CUDA detected: 10.0<br>
-- Caffe2: CUDA nvcc is: /usr/local/cuda/bin/nvcc<br>
-- Caffe2: CUDA toolkit directory: /usr/local/cuda<br>
-- Caffe2: Header version is: 10.0<br>
-- Found CUDNN: /usr/local/cuda/include<br>
-- Found cuDNN: v7.4.2 (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so.7)<br>
-- Autodetected CUDA architecture(s): 7.5;7.5;7.5;7.5<br>
-- Added CUDA NVCC flags for: -gencode;arch=compute_75,code=sm_75<br>
-- Could NOT find CUB (missing: CUB_INCLUDE_DIR)<br>
-- MPI include path: /usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include/usr/lib/openmpi/include/openmpi/usr/lib/openmpi/include<br>
-- MPI libraries: /usr/lib/openmpi/lib/libmpi_cxx.so/usr/lib/openmpi/lib/libmpi.so<br>
-- Found CUDA: /usr/local/cuda (found suitable version "10.0", minimum required is "7.0")<br>
-- CUDA detected: 10.0<br>
CMake Warning at cmake/Dependencies.cmake:954 (message):<br>
Metal is only used in ios builds.<br>
Call Stack (most recent call first):<br>
CMakeLists.txt:219 (include)</p>
<h2 dir="auto">--<br>
-- ******** Summary ********<br>
-- CMake version : 3.12.2<br>
-- CMake command : /home/user/anaconda2/envs/zk_py2.7caffe2/bin/cmake<br>
-- System : Linux<br>
-- C++ compiler : /usr/bin/c++<br>
-- C++ compiler version : 8.0.0<br>
-- CXX flags : -fvisibility-inlines-hidden -Wnon-virtual-dtor<br>
-- Build type : Release<br>
-- Compile definitions : TH_BLAS_MKL<br>
-- CMAKE_PREFIX_PATH : /home/user/anaconda2/envs/zk_py2.7caffe2<br>
-- CMAKE_INSTALL_PREFIX : /home/user/zkself/pytorch/torch<br>
-- CMAKE_MODULE_PATH : /home/user/zkself/pytorch/cmake/Modules;/home/user/zkself/pytorch/cmake/public/../Modules_CUDA_fix</h2>
<h2 dir="auto">-- ONNX version : 1.4.1<br>
-- ONNX NAMESPACE : onnx_torch<br>
-- ONNX_BUILD_TESTS : OFF<br>
-- ONNX_BUILD_BENCHMARKS : OFF<br>
-- ONNX_USE_LITE_PROTO : OFF<br>
-- ONNXIFI_DUMMY_BACKEND : OFF</h2>
<p dir="auto">-- Protobuf compiler :<br>
-- Protobuf includes :<br>
-- Protobuf libraries :<br>
-- BUILD_ONNX_PYTHON : OFF<br>
-- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor<br>
-- Removing -DNDEBUG from compile flags<br>
-- Found OpenMP_C: -fopenmp=libomp<br>
-- Found OpenMP_CXX: -fopenmp=libomp<br>
-- Found OpenMP: TRUE<br>
-- Compiling with OpenMP support<br>
-- Checking prototype magma_get_sgeqrf_nb for MAGMA_V2 - True<br>
-- Compiling with MAGMA support<br>
-- MAGMA INCLUDE DIRECTORIES: /home/user/anaconda2/envs/zk_py2.7caffe2/include<br>
-- MAGMA LIBRARIES: /home/user/anaconda2/envs/zk_py2.7caffe2/lib/libmagma.a<br>
-- MAGMA V2 check: 1<br>
-- Could not find hardware support for NEON on this machine.<br>
-- No OMAP3 processor on this machine.<br>
-- No OMAP4 processor on this machine.<br>
-- Looking for cpuid.h<br>
-- Looking for cpuid.h - found<br>
-- Performing Test HAVE_GCC_GET_CPUID<br>
-- Performing Test HAVE_GCC_GET_CPUID - Success<br>
-- Performing Test NO_GCC_EBX_FPIC_BUG<br>
-- Performing Test NO_GCC_EBX_FPIC_BUG - Success<br>
-- Performing Test C_HAS_AVX_1<br>
-- Performing Test C_HAS_AVX_1 - Failed<br>
-- Performing Test C_HAS_AVX_2<br>
-- Performing Test C_HAS_AVX_2 - Success<br>
-- Performing Test C_HAS_AVX2_1<br>
-- Performing Test C_HAS_AVX2_1 - Failed<br>
-- Performing Test C_HAS_AVX2_2<br>
-- Performing Test C_HAS_AVX2_2 - Success<br>
-- Performing Test CXX_HAS_AVX_1<br>
-- Performing Test CXX_HAS_AVX_1 - Failed<br>
-- Performing Test CXX_HAS_AVX_2<br>
-- Performing Test CXX_HAS_AVX_2 - Success<br>
-- Performing Test CXX_HAS_AVX2_1<br>
-- Performing Test CXX_HAS_AVX2_1 - Failed<br>
-- Performing Test CXX_HAS_AVX2_2<br>
-- Performing Test CXX_HAS_AVX2_2 - Success<br>
-- AVX compiler support found<br>
-- AVX2 compiler support found<br>
-- Performing Test HAS_C11_ATOMICS<br>
-- Performing Test HAS_C11_ATOMICS - Failed<br>
-- Performing Test HAS_MSC_ATOMICS<br>
-- Performing Test HAS_MSC_ATOMICS - Failed<br>
-- Performing Test HAS_GCC_ATOMICS<br>
-- Performing Test HAS_GCC_ATOMICS - Success<br>
-- Atomics: using GCC intrinsics<br>
-- Performing Test BLAS_F2C_DOUBLE_WORKS<br>
-- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed<br>
-- Performing Test BLAS_F2C_FLOAT_WORKS<br>
-- Performing Test BLAS_F2C_FLOAT_WORKS - Success<br>
-- Performing Test BLAS_USE_CBLAS_DOT<br>
-- Performing Test BLAS_USE_CBLAS_DOT - Success<br>
-- Found a library with BLAS API (mkl).<br>
-- Found a library with LAPACK API. (mkl)<br>
-- Found CUDA: /usr/local/cuda (found suitable version "10.0", minimum required is "5.5")<br>
disabling ROCM because NOT USE_ROCM is set<br>
-- MIOpen not found. Compiling without MIOpen support<br>
-- Found OpenMP_C: -fopenmp=libomp<br>
-- Found OpenMP_CXX: -fopenmp=libomp<br>
-- OpenMP lib: provided by compiler<br>
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)<br>
-- VTune profiling environment is unset<br>
-- Found MKL-DNN: TRUE<br>
-- Looking for clock_gettime in rt<br>
-- Looking for clock_gettime in rt - found<br>
-- Looking for mmap<br>
-- Looking for mmap - found<br>
-- Looking for shm_open<br>
-- Looking for shm_open - found<br>
-- Looking for shm_unlink<br>
-- Looking for shm_unlink - found<br>
-- Looking for malloc_usable_size<br>
-- Looking for malloc_usable_size - found<br>
-- Performing Test C_HAS_THREAD<br>
-- Performing Test C_HAS_THREAD - Success<br>
-- NUMA paths:<br>
-- /usr/include<br>
-- /usr/lib/x86_64-linux-gnu/libnuma.so<br>
-- Check size of long double<br>
-- Check size of long double - done<br>
-- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE<br>
-- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE - Success<br>
-- Performing Test COMPILER_SUPPORTS_FLOAT128<br>
-- Performing Test COMPILER_SUPPORTS_FLOAT128 - Success<br>
-- Performing Test COMPILER_SUPPORTS_SSE2<br>
-- Performing Test COMPILER_SUPPORTS_SSE2 - Success<br>
-- Performing Test COMPILER_SUPPORTS_SSE4<br>
-- Performing Test COMPILER_SUPPORTS_SSE4 - Success<br>
-- Performing Test COMPILER_SUPPORTS_AVX<br>
-- Performing Test COMPILER_SUPPORTS_AVX - Success<br>
-- Performing Test COMPILER_SUPPORTS_FMA4<br>
-- Performing Test COMPILER_SUPPORTS_FMA4 - Success<br>
-- Performing Test COMPILER_SUPPORTS_AVX2<br>
-- Performing Test COMPILER_SUPPORTS_AVX2 - Success<br>
-- Performing Test COMPILER_SUPPORTS_SVE<br>
-- Performing Test COMPILER_SUPPORTS_SVE - Failed<br>
-- Performing Test COMPILER_SUPPORTS_AVX512F<br>
-- Performing Test COMPILER_SUPPORTS_AVX512F - Success<br>
-- Performing Test COMPILER_SUPPORTS_OPENMP<br>
-- Performing Test COMPILER_SUPPORTS_OPENMP - Success<br>
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES<br>
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES - Success<br>
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH<br>
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH - Failed<br>
-- Configuring build for SLEEF-v3.2<br>
Target system: Linux-4.15.0-43-generic<br>
Target processor: x86_64<br>
Host system: Linux-4.15.0-43-generic<br>
Host processor: x86_64<br>
Detected C compiler: Clang @ /usr/bin/cc<br>
-- Using option <code class="notranslate">-Wall -Wno-unused -Wno-attributes -Wno-unused-result -ffp-contract=off -fno-math-errno -fno-trapping-math</code> to compile libsleef<br>
-- Building shared libs : OFF<br>
-- MPFR : /usr/lib/x86_64-linux-gnu/libmpfr.so<br>
-- MPFR header file in /usr/include<br>
-- GMP : /usr/lib/x86_64-linux-gnu/libgmp.so<br>
-- RUNNING_ON_TRAVIS : 0<br>
-- COMPILER_SUPPORTS_OPENMP : 1<br>
-- Performing Test HAS_THREAD_LOCAL<br>
-- Performing Test HAS_THREAD_LOCAL - Success<br>
-- Found CUDA: /usr/local/cuda (found suitable version "10.0", minimum required is "7.5")<br>
-- MPI_LIBRARIES: /usr/lib/openmpi/lib/libmpi_cxx.so;/usr/lib/openmpi/lib/libmpi.so<br>
-- Building the gloo backend with TCP support only<br>
-- MPI_COMPILE_FLAGS: -pthread<br>
-- MPI_LINK_FLAGS: -Wl,-rpath -Wl,/usr/lib/openmpi/lib -Wl,--enable-new-dtags -pthread<br>
-- Found CUDA: /usr/local/cuda (found version "10.0")<br>
-- Building C10D with CUDA support<br>
-- MPI_INCLUDE_PATH: /usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent;/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include;/usr/lib/openmpi/include/openmpi;/usr/lib/openmpi/include<br>
-- MPI_LIBRARIES: /usr/lib/openmpi/lib/libmpi_cxx.so;/usr/lib/openmpi/lib/libmpi.so<br>
-- MPIEXEC: /usr/bin/mpiexec<br>
-- Include NCCL operators<br>
-- Including IDEEP operators<br>
-- Excluding image processing operators due to no opencv<br>
-- Excluding video processing operators due to no opencv<br>
-- Include Observer library<br>
-- Using lib/python2.7/site-packages as python relative installation path<br>
CMake Warning at CMakeLists.txt:416 (message):<br>
Generated cmake files are only fully tested if one builds with system glog,<br>
gflags, and protobuf. Other settings may generate files that are not well<br>
tested.</p>
<h2 dir="auto">--<br>
-- ******** Summary ********<br>
-- General:<br>
-- CMake version : 3.12.2<br>
-- CMake command : /home/user/anaconda2/envs/zk_py2.7caffe2/bin/cmake<br>
-- System : Linux<br>
-- C++ compiler : /usr/bin/c++<br>
-- C++ compiler version : 8.0.0<br>
-- BLAS : MKL<br>
-- CXX flags : -fvisibility-inlines-hidden -fopenmp=libomp -DUSE_FBGEMM -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-invalid-partial-specialization -Wno-typedef-redefinition -Wno-unknown-warning-option -Wno-unused-private-field -Wno-inconsistent-missing-override -Wno-aligned-allocation-unavailable -Wno-c++14-extensions -Wno-constexpr-not-const -Wno-missing-braces -Qunused-arguments -Wno-unused-but-set-variable -Wno-maybe-uninitialized<br>
-- Build type : Release<br>
-- Compile definitions : TH_BLAS_MKL;ONNX_NAMESPACE=onnx_torch;MAGMA_V2;USE_GCC_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1<br>
-- CMAKE_PREFIX_PATH : /home/user/anaconda2/envs/zk_py2.7caffe2<br>
-- CMAKE_INSTALL_PREFIX : /home/user/zkself/pytorch/torch</h2>
<p dir="auto">-- TORCH_VERSION : 1.1.0<br>
-- CAFFE2_VERSION : 1.1.0<br>
-- BUILD_ATEN_MOBILE : OFF<br>
-- BUILD_ATEN_ONLY : OFF<br>
-- BUILD_BINARY : False<br>
-- BUILD_CUSTOM_PROTOBUF : ON<br>
-- Link local protobuf : ON<br>
-- BUILD_DOCS : OFF<br>
-- BUILD_PYTHON : True<br>
-- Python version : 2.7.15<br>
-- Python executable : /home/user/anaconda2/envs/zk_py2.7caffe2/bin/python<br>
-- Pythonlibs version : 2.7.15<br>
-- Python library : /home/user/anaconda2/envs/zk_py2.7caffe2/lib/libpython2.7.so.1.0<br>
-- Python includes : /home/user/anaconda2/envs/zk_py2.7caffe2/include/python2.7<br>
-- Python site-packages: lib/python2.7/site-packages<br>
-- BUILD_CAFFE2_OPS : True<br>
-- BUILD_SHARED_LIBS : ON<br>
-- BUILD_TEST : True<br>
-- USE_ASAN : OFF<br>
-- USE_CUDA : True<br>
-- CUDA static link : False<br>
-- USE_CUDNN : ON<br>
-- CUDA version : 10.0<br>
-- cuDNN version : 7.4.2<br>
-- CUDA root directory : /usr/local/cuda<br>
-- CUDA library : /usr/lib/x86_64-linux-gnu/libcuda.so<br>
-- cudart library : /usr/local/cuda/lib64/libcudart_static.a;-pthread;dl;/usr/lib/x86_64-linux-gnu/librt.so<br>
-- cublas library : /usr/local/cuda/lib64/libcublas.so<br>
-- cufft library : /usr/local/cuda/lib64/libcufft.so<br>
-- curand library : /usr/local/cuda/lib64/libcurand.so<br>
-- cuDNN library : /usr/local/cuda/lib64/libcudnn.so.7<br>
-- nvrtc : /usr/local/cuda/lib64/libnvrtc.so<br>
-- CUDA include path : /usr/local/cuda/include<br>
-- NVCC executable : /usr/local/cuda/bin/nvcc<br>
-- CUDA host compiler : /usr/bin/cc<br>
-- USE_TENSORRT : OFF<br>
-- USE_ROCM : False<br>
-- USE_EIGEN_FOR_BLAS :<br>
-- USE_FBGEMM : ON<br>
-- USE_FFMPEG : False<br>
-- USE_GFLAGS : ON<br>
-- USE_GLOG : ON<br>
-- USE_LEVELDB : False<br>
-- USE_LITE_PROTO : OFF<br>
-- USE_LMDB : False<br>
-- USE_METAL : OFF<br>
-- USE_MKL : ON<br>
-- USE_MKLDNN : ON<br>
-- USE_NCCL : ON<br>
-- USE_SYSTEM_NCCL : True<br>
-- USE_NNPACK : True<br>
-- USE_NUMPY : ON<br>
-- USE_OBSERVERS : ON<br>
-- USE_OPENCL : OFF<br>
-- USE_OPENCV : False<br>
-- USE_OPENMP : OFF<br>
-- USE_PROF : OFF<br>
-- USE_QNNPACK : True<br>
-- USE_REDIS : OFF<br>
-- USE_ROCKSDB : OFF<br>
-- USE_ZMQ : OFF<br>
-- USE_DISTRIBUTED : True<br>
-- USE_MPI : ON<br>
-- USE_GLOO : ON<br>
-- USE_GLOO_IBVERBS : OFF<br>
-- Public Dependencies : Threads::Threads;caffe2::mkl;glog::glog;caffe2::mkldnn<br>
-- Private Dependencies : qnnpack;nnpack;cpuinfo;fbgemm;/usr/lib/x86_64-linux-gnu/libnuma.so;fp16;/usr/lib/openmpi/lib/libmpi_cxx.so;/usr/lib/openmpi/lib/libmpi.so;gloo;aten_op_header_gen;onnxifi_loader;rt;dl<br>
-- Configuring done<br>
CMake Warning (dev) at cmake/Dependencies.cmake:861 (add_dependencies):<br>
Policy CMP0046 is not set: Error on non-existent dependency in<br>
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.<br>
Use the cmake_policy command to set the policy and suppress this warning.</p>
<p dir="auto">The dependency target "nccl_external" of target "gloo_cuda" does not exist.<br>
Call Stack (most recent call first):<br>
CMakeLists.txt:219 (include)<br>
This warning is for project developers. Use -Wno-dev to suppress it.</p>
<p dir="auto">-- Generating done<br>
CMake Warning:<br>
Manually-specified variables were not used by the project:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="NCCL_ROOT_DIR
THD_SO_VERSION"><pre class="notranslate"><code class="notranslate">NCCL_ROOT_DIR
THD_SO_VERSION
</code></pre></div>
<p dir="auto">-- Build files have been written to: /home/user/zkself/pytorch/build<br>
Scanning dependencies of target fbgemm_avx512<br>
Scanning dependencies of target clog<br>
Scanning dependencies of target onnxifi_loader<br>
Scanning dependencies of target mkrename_gnuabi<br>
Scanning dependencies of target gtest<br>
Scanning dependencies of target mkrename<br>
Scanning dependencies of target common<br>
Scanning dependencies of target fbgemm_generic<br>
Scanning dependencies of target onnxifi_dummy<br>
Scanning dependencies of target fbgemm_avx2<br>
Scanning dependencies of target asmjit<br>
Scanning dependencies of target pthreadpool<br>
Scanning dependencies of target mkdisp<br>
Scanning dependencies of target benchmark<br>
Scanning dependencies of target libprotobuf-lite<br>
Scanning dependencies of target mkalias<br>
Scanning dependencies of target gloo<br>
Scanning dependencies of target arraymap<br>
Scanning dependencies of target c10<br>
Scanning dependencies of target mkldnn<br>
Scanning dependencies of target mkmasked_gnuabi<br>
Scanning dependencies of target libprotobuf<br>
Scanning dependencies of target ATEN_CPU_FILES_GEN_TARGET<br>
Scanning dependencies of target ATEN_CUDA_FILES_GEN_TARGET<br>
[ 0%] Building C object sleef/src/libm/CMakeFiles/mkrename_gnuabi.dir/mkrename_gnuabi.c.o<br>
[ 0%] Building C object confu-deps/clog/CMakeFiles/clog.dir/src/clog.c.o<br>
[ 0%] Building C object sleef/src/common/CMakeFiles/common.dir/common.c.o<br>
[ 0%] Building C object third_party/onnx/CMakeFiles/onnxifi_loader.dir/onnx/onnxifi_loader.c.o<br>
Scanning dependencies of target python_copy_files<br>
[ 0%] Building C object confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/threadpool-pthreads.c.o<br>
[ 0%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx512.dir/src/UtilsAvx512.cc.o<br>
[ 0%] Building C object third_party/onnx/CMakeFiles/onnxifi_dummy.dir/onnx/onnxifi_dummy.c.o<br>
[ 0%] Building C object sleef/src/libm/CMakeFiles/mkrename.dir/mkrename.c.o<br>
[ 0%] Building C object sleef/src/libm/CMakeFiles/mkalias.dir/mkalias.c.o<br>
[ 0%] Building C object sleef/src/libm/CMakeFiles/mkmasked_gnuabi.dir/mkmasked_gnuabi.c.o<br>
[ 0%] Building C object sleef/src/libm/CMakeFiles/mkdisp.dir/mkdisp.c.o<br>
[ 0%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmFP16UKernelsAvx2.cc.o<br>
[ 0%] Building C object sleef/src/common/CMakeFiles/arraymap.dir/arraymap.c.o<br>
[ 0%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/OptimizedKernelsAvx2.cc.o<br>
[ 0%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/UtilsAvx2.cc.o<br>
[ 0%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmI8DepthwiseAvx2.cc.o<br>
[ 0%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/QuantUtilsAvx2.cc.o<br>
[ 0%] Generating ../aten/src/ATen/CPUByteType.cpp, ../aten/src/ATen/CPUByteType.h, ../aten/src/ATen/CPUCharType.cpp, ../aten/src/ATen/CPUCharType.h, ../aten/src/ATen/CPUDoubleType.cpp, ../aten/src/ATen/CPUDoubleType.h, ../aten/src/ATen/CPUFloatType.cpp, ../aten/src/ATen/CPUFloatType.h, ../aten/src/ATen/CPUGenerator.h, ../aten/src/ATen/CPUHalfType.cpp, ../aten/src/ATen/CPUHalfType.h, ../aten/src/ATen/CPUIntType.cpp, ../aten/src/ATen/CPUIntType.h, ../aten/src/ATen/CPULongType.cpp, ../aten/src/ATen/CPULongType.h, ../aten/src/ATen/CPUShortType.cpp, ../aten/src/ATen/CPUShortType.h, ../aten/src/ATen/Declarations.yaml, ../aten/src/ATen/Functions.h, ../aten/src/ATen/LegacyTHCPUByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUByteDispatcher.h, ../aten/src/ATen/LegacyTHCPUCharDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUCharDispatcher.h, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.h, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.h, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.h, ../aten/src/ATen/LegacyTHCPUIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUIntDispatcher.h, ../aten/src/ATen/LegacyTHCPULongDispatcher.cpp, ../aten/src/ATen/LegacyTHCPULongDispatcher.h, ../aten/src/ATen/LegacyTHCPUShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUShortDispatcher.h, ../aten/src/ATen/LegacyTHDispatcher.cpp, ../aten/src/ATen/LegacyTHDispatcher.h, ../aten/src/ATen/LegacyTHFunctions.h, ../aten/src/ATen/NativeFunctions.h, ../aten/src/ATen/RegisterCPU.cpp, ../aten/src/ATen/RegisterCPU.h, ../aten/src/ATen/SparseCPUByteType.cpp, ../aten/src/ATen/SparseCPUByteType.h, ../aten/src/ATen/SparseCPUCharType.cpp, ../aten/src/ATen/SparseCPUCharType.h, ../aten/src/ATen/SparseCPUDoubleType.cpp, ../aten/src/ATen/SparseCPUDoubleType.h, ../aten/src/ATen/SparseCPUFloatType.cpp, ../aten/src/ATen/SparseCPUFloatType.h, ../aten/src/ATen/SparseCPUIntType.cpp, ../aten/src/ATen/SparseCPUIntType.h, ../aten/src/ATen/SparseCPULongType.cpp, ../aten/src/ATen/SparseCPULongType.h, ../aten/src/ATen/SparseCPUShortType.cpp, ../aten/src/ATen/SparseCPUShortType.h, ../aten/src/ATen/TypeDefault.cpp, ../aten/src/ATen/TypeDefault.h, ../aten/src/ATen/TypeExtendedInterface.h, ../aten/src/ATen/CUDAByteType.cpp, ../aten/src/ATen/CUDAByteType.h, ../aten/src/ATen/CUDACharType.cpp, ../aten/src/ATen/CUDACharType.h, ../aten/src/ATen/CUDADoubleType.cpp, ../aten/src/ATen/CUDADoubleType.h, ../aten/src/ATen/CUDAFloatType.cpp, ../aten/src/ATen/CUDAFloatType.h, ../aten/src/ATen/CUDAGenerator.h, ../aten/src/ATen/CUDAHalfType.cpp, ../aten/src/ATen/CUDAHalfType.h, ../aten/src/ATen/CUDAIntType.cpp, ../aten/src/ATen/CUDAIntType.h, ../aten/src/ATen/CUDALongType.cpp, ../aten/src/ATen/CUDALongType.h, ../aten/src/ATen/CUDAShortType.cpp, ../aten/src/ATen/CUDAShortType.h, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.h, ../aten/src/ATen/LegacyTHCUDACharDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDACharDispatcher.h, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.h, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.h, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.h, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.h, ../aten/src/ATen/LegacyTHCUDALongDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDALongDispatcher.h, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.h, ../aten/src/ATen/RegisterCUDA.cpp, ../aten/src/ATen/RegisterCUDA.h, ../aten/src/ATen/SparseCUDAByteType.cpp, ../aten/src/ATen/SparseCUDAByteType.h, ../aten/src/ATen/SparseCUDACharType.cpp, ../aten/src/ATen/SparseCUDACharType.h, ../aten/src/ATen/SparseCUDADoubleType.cpp, ../aten/src/ATen/SparseCUDADoubleType.h, ../aten/src/ATen/SparseCUDAFloatType.cpp, ../aten/src/ATen/SparseCUDAFloatType.h, ../aten/src/ATen/SparseCUDAIntType.cpp, ../aten/src/ATen/SparseCUDAIntType.h, ../aten/src/ATen/SparseCUDALongType.cpp, ../aten/src/ATen/SparseCUDALongType.h, ../aten/src/ATen/SparseCUDAShortType.cpp, ../aten/src/ATen/SparseCUDAShortType.h<br>
[ 0%] Generating ../aten/src/ATen/CPUByteType.cpp, ../aten/src/ATen/CPUByteType.h, ../aten/src/ATen/CPUCharType.cpp, ../aten/src/ATen/CPUCharType.h, ../aten/src/ATen/CPUDoubleType.cpp, ../aten/src/ATen/CPUDoubleType.h, ../aten/src/ATen/CPUFloatType.cpp, ../aten/src/ATen/CPUFloatType.h, ../aten/src/ATen/CPUGenerator.h, ../aten/src/ATen/CPUHalfType.cpp, ../aten/src/ATen/CPUHalfType.h, ../aten/src/ATen/CPUIntType.cpp, ../aten/src/ATen/CPUIntType.h, ../aten/src/ATen/CPULongType.cpp, ../aten/src/ATen/CPULongType.h, ../aten/src/ATen/CPUShortType.cpp, ../aten/src/ATen/CPUShortType.h, ../aten/src/ATen/Declarations.yaml, ../aten/src/ATen/Functions.h, ../aten/src/ATen/LegacyTHCPUByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUByteDispatcher.h, ../aten/src/ATen/LegacyTHCPUCharDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUCharDispatcher.h, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.h, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.h, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.h, ../aten/src/ATen/LegacyTHCPUIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUIntDispatcher.h, ../aten/src/ATen/LegacyTHCPULongDispatcher.cpp, ../aten/src/ATen/LegacyTHCPULongDispatcher.h, ../aten/src/ATen/LegacyTHCPUShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUShortDispatcher.h, ../aten/src/ATen/LegacyTHDispatcher.cpp, ../aten/src/ATen/LegacyTHDispatcher.h, ../aten/src/ATen/LegacyTHFunctions.h, ../aten/src/ATen/NativeFunctions.h, ../aten/src/ATen/RegisterCPU.cpp, ../aten/src/ATen/RegisterCPU.h, ../aten/src/ATen/SparseCPUByteType.cpp, ../aten/src/ATen/SparseCPUByteType.h, ../aten/src/ATen/SparseCPUCharType.cpp, ../aten/src/ATen/SparseCPUCharType.h, ../aten/src/ATen/SparseCPUDoubleType.cpp, ../aten/src/ATen/SparseCPUDoubleType.h, ../aten/src/ATen/SparseCPUFloatType.cpp, ../aten/src/ATen/SparseCPUFloatType.h, ../aten/src/ATen/SparseCPUIntType.cpp, ../aten/src/ATen/SparseCPUIntType.h, ../aten/src/ATen/SparseCPULongType.cpp, ../aten/src/ATen/SparseCPULongType.h, ../aten/src/ATen/SparseCPUShortType.cpp, ../aten/src/ATen/SparseCPUShortType.h, ../aten/src/ATen/TypeDefault.cpp, ../aten/src/ATen/TypeDefault.h, ../aten/src/ATen/TypeExtendedInterface.h, ../aten/src/ATen/CUDAByteType.cpp, ../aten/src/ATen/CUDAByteType.h, ../aten/src/ATen/CUDACharType.cpp, ../aten/src/ATen/CUDACharType.h, ../aten/src/ATen/CUDADoubleType.cpp, ../aten/src/ATen/CUDADoubleType.h, ../aten/src/ATen/CUDAFloatType.cpp, ../aten/src/ATen/CUDAFloatType.h, ../aten/src/ATen/CUDAGenerator.h, ../aten/src/ATen/CUDAHalfType.cpp, ../aten/src/ATen/CUDAHalfType.h, ../aten/src/ATen/CUDAIntType.cpp, ../aten/src/ATen/CUDAIntType.h, ../aten/src/ATen/CUDALongType.cpp, ../aten/src/ATen/CUDALongType.h, ../aten/src/ATen/CUDAShortType.cpp, ../aten/src/ATen/CUDAShortType.h, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.h, ../aten/src/ATen/LegacyTHCUDACharDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDACharDispatcher.h, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.h, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.h, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.h, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.h, ../aten/src/ATen/LegacyTHCUDALongDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDALongDispatcher.h, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.h, ../aten/src/ATen/RegisterCUDA.cpp, ../aten/src/ATen/RegisterCUDA.h, ../aten/src/ATen/SparseCUDAByteType.cpp, ../aten/src/ATen/SparseCUDAByteType.h, ../aten/src/ATen/SparseCUDACharType.cpp, ../aten/src/ATen/SparseCUDACharType.h, ../aten/src/ATen/SparseCUDADoubleType.cpp, ../aten/src/ATen/SparseCUDADoubleType.h, ../aten/src/ATen/SparseCUDAFloatType.cpp, ../aten/src/ATen/SparseCUDAFloatType.h, ../aten/src/ATen/SparseCUDAIntType.cpp, ../aten/src/ATen/SparseCUDAIntType.h, ../aten/src/ATen/SparseCUDALongType.cpp, ../aten/src/ATen/SparseCUDALongType.h, ../aten/src/ATen/SparseCUDAShortType.cpp, ../aten/src/ATen/SparseCUDAShortType.h<br>
[ 0%] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/commandlineflags.cc.o<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/complexity.cc.o<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/csv_reporter.cc.o<br>
[ 0%] Generating <strong>init</strong>.py<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/colorprint.cc.o<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/console_reporter.cc.o<br>
[ 0%] Generating contrib/aten/<strong>init</strong>.py<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/counter.cc.o<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark.cc.o<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/json_reporter.cc.o<br>
[ 0%] Generating contrib/aten/aten_test.py<br>
[ 0%] Generating contrib/<strong>init</strong>.py<br>
[ 0%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/<strong>/src/google/protobuf/arena.cc.o<br>
[ 0%] Generating contrib/aten/docs/init.py<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/reporter.cc.o<br>
[ 0%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/ExecuteKernel.cc.o<br>
[ 0%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/ExecuteKernelU8S8.cc.o<br>
[ 0%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sleep.cc.o<br>
[ 0%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/arch.cpp.o<br>
[ 0%] Generating contrib/aten/docs/sample.py<br>
[ 1%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/algorithm.cc.o<br>
[ 1%] Building CXX object c10/CMakeFiles/c10.dir/core/Allocator.cpp.o<br>
[ 1%] Generating contrib/aten/gen_op.py<br>
[ 1%] Linking C static library ../../lib/libonnxifi_loader.a<br>
[ 1%] Linking C shared library ../../lib/libonnxifi_dummy.so<br>
[ 1%] Generating contrib/gloo/init.py<br>
[ 1%] Linking C executable ../../bin/mkrename_gnuabi<br>
[ 1%] Built target common<br>
[ 1%] Linking C executable ../../bin/mkmasked_gnuabi<br>
[ 1%] Linking C executable ../../bin/mkalias<br>
[ 1%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/</strong>/src/google/protobuf/arenastring.cc.o<br>
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/<strong>/src/google/protobuf/extension_set.cc.o<br>
[ 2%] Built target onnxifi_loader<br>
[ 2%] Generating contrib/gloo/gloo_test.py<br>
[ 2%] Linking C executable ../../bin/mkdisp<br>
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/arena.cc.o<br>
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/<strong>/src/google/protobuf/generated_message_table_driven_lite.cc.o<br>
[ 2%] Linking C static library ../../lib/libclog.a<br>
[ 2%] Linking C executable ../../bin/mkrename<br>
[ 2%] Generating contrib/nccl/init.py<br>
[ 2%] Built target onnxifi_dummy<br>
[ 2%] Built target mkrename_gnuabi<br>
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/arenastring.cc.o<br>
[ 2%] Built target mkmasked_gnuabi<br>
[ 2%] Generating contrib/nnpack/<strong>init</strong>.py<br>
[ 2%] Generating contrib/nccl/nccl_ops_test.py<br>
[ 2%] Built target mkalias<br>
[ 2%] Built target clog<br>
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/<strong>/src/google/protobuf/generated_message_util.cc.o<br>
[ 3%] Generating contrib/nnpack/nnpack_ops_test.py<br>
[ 3%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/assembler.cpp.o<br>
[ 3%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/codebuilder.cpp.o<br>
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/extension_set.cc.o<br>
[ 3%] Built target mkdisp<br>
[ 3%] Generating contrib/playground/AnyExp.py<br>
[ 3%] Built target mkrename<br>
[ 3%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/Fbgemm.cc.o<br>
[ 3%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/statistics.cc.o<br>
[ 3%] Generating contrib/playground/AnyExpOnTerm.py<br>
[ 3%] Generating contrib/playground/ModuleRegister.py<br>
[ 3%] Built target arraymap<br>
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/<em><em>/src/google/protobuf/implicit_weak_message.cc.o<br>
[ 3%] Generating contrib/playground/<strong>init</strong>.py<br>
[ 3%] Generating contrib/playground/checkpoint.py<br>
[ 3%] Generating contrib/playground/compute_loss.py<br>
[ 3%] Generating contrib/playground/compute_topk_accuracy.py<br>
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/batch_normalization.cpp.o<br>
[ 3%] Generating contrib/playground/meter.py<br>
[ 3%] Generating contrib/playground/module_map.py<br>
[ 3%] Linking C static library ../../lib/libpthreadpool.a<br>
[ 3%] Generating contrib/playground/output_generator.py<br>
[ 3%] Generating contrib/playground/resnetdemo/IN1k_resnet.py<br>
[ 3%] Generating contrib/playground/resnetdemo/IN1k_resnet_no_test_model.py<br>
[ 3%] Built target pthreadpool<br>
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution.cpp.o<br>
[ 3%] Generating contrib/playground/resnetdemo/<strong>init</strong>.py<br>
[ 3%] Generating contrib/playground/resnetdemo/caffe2_resnet50_default_forward.py<br>
[ 3%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/codecompiler.cpp.o<br>
[ 3%] Generating contrib/playground/resnetdemo/caffe2_resnet50_default_param_update.py<br>
[ 3%] Generating contrib/playground/resnetdemo/explicit_resnet_forward.py<br>
[ 3%] Generating contrib/playground/resnetdemo/explicit_resnet_param_update.py<br>
[ 3%] Generating contrib/playground/resnetdemo/gfs_IN1k.py<br>
[ 3%] Generating contrib/playground/resnetdemo/override_no_test_model_no_checkpoint.py<br>
[ 3%] Generating contrib/playground/resnetdemo/rendezvous_filestore.py<br>
[ 3%] Generating contrib/prof/<strong>init</strong>.py<br>
[ 3%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o<br>
[ 3%] Generating contrib/prof/cuda_profile_ops_test.py<br>
[ 3%] Generating contrib/script/<strong>init</strong>.py<br>
[ 3%] Generating contrib/script/examples/<strong>init</strong>.py<br>
[ 3%] Generating contrib/tensorboard/<strong>init</strong>.py<br>
[ 3%] Generating contrib/tensorboard/tensorboard.py<br>
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution_relu.cpp.o<br>
[ 3%] Generating contrib/tensorboard/tensorboard_exporter.py<br>
[ 3%] Generating contrib/tensorboard/tensorboard_exporter_test.py<br>
[ 3%] Built target fbgemm_avx512<br>
Scanning dependencies of target onnxifi_wrapper<br>
Scanning dependencies of target headers<br>
[ 3%] Generating contrib/tensorboard/tensorboard_test.py<br>
[ 3%] Building C object third_party/onnx/CMakeFiles/onnxifi_wrapper.dir/onnx/onnxifi_wrapper.c.o<br>
[ 3%] Generating ../../../include/sleef.h<br>
[ 4%] Generating contrib/warpctc/<strong>init</strong>.py<br>
Generating sleef.h: mkrename 2 4 <em><em>m128d <em><em>m128 <em><em>m128i <em><em>m128i <strong>SSE2</strong><br>
[ 4%] Generating contrib/warpctc/ctc_ops_test.py<br>
Generating sleef.h: mkrename 2 4 <em><em>m128d <em><em>m128 <em><em>m128i <em><em>m128i <strong>SSE2</strong> sse2<br>
Generating sleef.h: mkrename 2 4 <em><em>m128d <em><em>m128 <em><em>m128i <em><em>m128i <strong>SSE2</strong> sse4<br>
Generating sleef.h: mkrename 4 8 <em><em>m256d <em><em>m256 <em><em>m128i struct\ {\ <strong>m128i\ x,\ y;\ } AVX<br>
[ 4%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allgather.cc.o<br>
Generating sleef.h: mkrename 4 8 m256d m256 m128i struct\ {\ m128i\ x,\ y;\ } AVX avx<br>
Generating sleef.h: mkrename 4 8 m256d m256 m128i struct\ {\ m128i\ x,\ y;\ } AVX fma4<br>
Generating sleef.h: mkrename 4 8 m256d m256 m128i m256i AVX avx2<br>
[ 4%] Generating core/init.py<br>
[ 4%] Generating core/nomnigraph/init.py<br>
Generating sleef.h: mkrename 2 4 m128d m128 m128i m128i SSE2 avx2128<br>
Generating sleef.h: mkrename 8 16 m512d m512 m256i m512i AVX512F<br>
Generating sleef.h: mkrename 8 16 m512d m512 m256i m512i AVX512F avx512f<br>
[ 4%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/deconvolution.cpp.o<br>
[ 4%] Generating core/nomnigraph/op_gen.py<br>
[ 4%] Generating include/renameavx512f.h<br>
Generating renameavx512f.h: mkrename 8 16 avx512f<br>
[ 4%] Generating include/renameavx2.h<br>
[ 4%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmFP16.cc.o<br>
[ 4%] Generating distributed/init.py<br>
Generating renameavx2.h: mkrename 4 8 avx2<br>
[ 4%] Generating include/renameavx2128.h<br>
Generating renameavx2128.h: mkrename 2 4 avx2128<br>
[ 4%] Generating distributed/file_store_handler_op_test.py<br>
[ 4%] Generating include/renamefma4.h<br>
Generating renamefma4.h: mkrename 4 8 fma4<br>
[ 4%] Generating distributed/redis_store_handler_op_test.py<br>
[ 4%] Generating include/renameavx.h<br>
Generating renameavx.h: mkrename 4 8 avx<br>
[ 4%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/FbgemmI8Spmdm.cc.o<br>
[ 4%] Generating include/renamesse4.h<br>
Generating renamesse4.h: mkrename 2 4 sse4<br>
[ 4%] Generating distributed/store_ops_test_util.py<br>
[ 5%] Generating include/renamesse2.h<br>
Generating renamesse2.h: mkrename 2 4 sse2<br>
[ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/io/coded_stream.cc.o<br>
[ 5%] Built target headers<br>
[ 5%] Generating experiments/init.py<br>
Scanning dependencies of target dispavx.c_generated<br>
[ 5%] Generating dispavx.c<br>
[ 5%] Linking C shared module ../../lib/libonnxifi.so<br>
[ 5%] Generating experiments/python/SparseTransformer.py<br>
Scanning dependencies of target renamedsp256.h_generated<br>
[ 6%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/eltwise.cpp.o<br>
[ 6%] Generating renamedsp256.h<br>
[ 7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/engine.cpp.o<br>
[ 7%] Built target dispavx.c_generated<br>
[ 7%] Generating experiments/python/init.py<br>
[ 7%] Built target renamedsp256.h_generated<br>
[ 7%] Generating experiments/python/convnet_benchmarks.py<br>
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/io/zero_copy_stream.cc.o<br>
[ 7%] Generating experiments/python/device_reduce_sum_bench.py<br>
Scanning dependencies of target renameSSE4.h_generated<br>
[ 7%] Building CXX object c10/CMakeFiles/c10.dir/core/CopyBytes.cpp.o<br>
[ 7%] Built target renameSSE4.h_generated<br>
[ 7%] Generating experiments/python/funhash_op_test.py<br>
[ 7%] Built target onnxifi_wrapper<br>
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o<br>
[ 7%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o<br>
[ 7%] Generating experiments/python/net_construct_bench.py<br>
[ 7%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o<br>
[ 7%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/codeemitter.cpp.o<br>
[ 7%] Generating experiments/python/sparse_funhash_op_test.py<br>
[ 7%] Generating experiments/python/sparse_reshape_op_test.py<br>
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir//src/google/protobuf/generated_message_table_driven_lite.cc.o<br>
[ 7%] Generating experiments/python/tt_contraction_op_test.py<br>
[ 7%] Generating experiments/python/tt_pad_op_test.py<br>
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir//src/google/protobuf/generated_message_util.cc.o<br>
[ 7%] Generating perfkernels/init.py<br>
[ 7%] Generating perfkernels/hp_emblookup_codegen.py<br>
[ 7%] Generating proto/init.py<br>
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/message_lite.cc.o<br>
Scanning dependencies of target renameAVX.h_generated<br>
[ 7%] Generating python/init.py<br>
[ 7%] Built target renameAVX.h_generated<br>
[ 7%] Building CXX object c10/CMakeFiles/c10.dir/core/DefaultDtype.cpp.o<br>
[ 7%] Generating python/_import_c_extension.py<br>
[ 7%] Generating python/allcompare_test.py<br>
[ 7%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/codeholder.cpp.o<br>
[ 7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/inner_product.cpp.o<br>
[ 7%] Generating python/attention.py<br>
[ 7%] Generating python/benchmark_generator.py<br>
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/repeated_field.cc.o<br>
[ 7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/lrn.cpp.o<br>
[ 7%] Generating python/binarysize.py<br>
[ 7%] Generating python/brew.py<br>
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/bytestream.cc.o<br>
[ 8%] Generating python/brew_test.py<br>
[ 8%] Generating python/build.py<br>
[ 8%] Generating python/cached_reader.py<br>
[ 8%] Generating python/caffe_translator.py<br>
[ 8%] Generating python/caffe_translator_test.py<br>
[ 8%] Generating python/checkpoint.py<br>
[ 8%] Generating python/checkpoint_test.py<br>
[ 8%] Generating python/cnn.py<br>
[ 8%] Generating python/compatibility.py<br>
[ 8%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16.cc.o<br>
[ 8%] Generating python/context.py<br>
[ 8%] Generating python/context_test.py<br>
[ 8%] Generating python/control.py<br>
[ 8%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce.cc.o<br>
[ 9%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/constpool.cpp.o<br>
[ 9%] Generating python/control_ops_grad.py<br>
[ 9%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/memory.cpp.o<br>
[ 9%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/common.cc.o<br>
[ 9%] Generating python/control_ops_grad_test.py<br>
[ 9%] Generating python/control_ops_util.py<br>
[ 9%] Generating python/control_test.py<br>
[ 9%] Generating python/convert.py<br>
[ 9%] Generating python/convert_test.py<br>
[ 9%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/memory_desc_wrapper.cpp.o<br>
[ 9%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/mkldnn_debug.cpp.o<br>
[ 9%] Generating python/convnet_benchmarks.py<br>
[ 9%] Generating python/convnet_benchmarks_test.py<br>
[ 9%] Generating python/core.py<br>
[ 9%] Generating python/core_gradients_test.py<br>
Scanning dependencies of target renameFMA4.h_generated<br>
[ 9%] Generating python/core_test.py<br>
[ 9%] Built target renameFMA4.h_generated<br>
[ 9%] Generating python/crf.py<br>
[ 9%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o<br>
Scanning dependencies of target renameAVX2128.h_generated<br>
[ 9%] Generating python/crf_predict.py<br>
[ 9%] Built target renameAVX2128.h_generated<br>
Scanning dependencies of target renameAVX2.h_generated<br>
[ 9%] Generating python/crf_viterbi_test.py<br>
[ 9%] Built target renameAVX2.h_generated<br>
Scanning dependencies of target alias_avx512f.h_generated<br>
[ 9%] Generating python/data_parallel_model.py<br>
[ 9%] Generating alias_avx512f.h<br>
[ 9%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/barrier.cc.o<br>
[ 9%] Built target alias_avx512f.h_generated<br>
[ 9%] Generating python/data_parallel_model_test.py<br>
[ 9%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/broadcast.cc.o<br>
[ 9%] Generating python/data_workers.py<br>
[ 9%] Generating python/data_workers_test.py<br>
[ 9%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/cpuinfo.cpp.o<br>
[ 10%] Generating python/dataio.py<br>
[ 10%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/func.cpp.o<br>
[ 10%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/context.cc.o<br>
[ 10%] Generating python/dataio_test.py<br>
[ 10%] Generating python/dataset.py<br>
[ 10%] Building CXX object c10/CMakeFiles/c10.dir/core/Device.cpp.o<br>
[ 10%] Generating python/db_file_reader.py<br>
[ 10%] Generating python/db_test.py<br>
[ 10%] Generating python/device_checker.py<br>
[ 10%] Generating python/docs/init.py<br>
[ 10%] Generating python/docs/formatter.py<br>
[ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir//src/google/protobuf/implicit_weak_message.cc.o<br>
[ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir//src/google/protobuf/io/coded_stream.cc.o<br>
[ 10%] Generating python/docs/generator.py<br>
[ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/int128.cc.o<br>
[ 10%] Generating python/docs/github.py<br>
[ 10%] Generating python/docs/parser.py<br>
[ 10%] Generating python/dyndep.py<br>
[ 10%] Building CXX object c10/CMakeFiles/c10.dir/core/DeviceType.cpp.o<br>
[ 10%] Generating python/embedding_generation_benchmark.py<br>
[ 10%] Generating python/examples/init.py<br>
[ 10%] Generating python/examples/char_rnn.py<br>
[ 10%] Generating python/examples/lmdb_create_example.py<br>
[ 10%] Generating python/examples/resnet50_trainer.py<br>
[ 10%] Building CXX object c10/CMakeFiles/c10.dir/core/Scalar.cpp.o<br>
[ 10%] Generating python/experiment_util.py<br>
[ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/io_win32.cc.o<br>
[ 11%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC16Avx512.cc.o<br>
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/status.cc.o<br>
[ 11%] Generating python/extension_loader.py<br>
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/statusor.cc.o<br>
[ 11%] Generating python/functional.py<br>
[ 11%] Generating python/functional_test.py<br>
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/stringpiece.cc.o<br>
[ 11%] Generating python/fused_8bit_rowwise_conversion_ops_test.py<br>
[ 11%] Generating python/gradient_check_test.py<br>
[ 11%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/globals.cpp.o<br>
[ 11%] Generating python/gradient_checker.py<br>
[ 11%] Generating python/gru_cell.py<br>
[ 11%] Generating python/helpers/init.py<br>
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/core/Storage.cpp.o<br>
[ 11%] Generating python/helpers/algebra.py<br>
[ 11%] Generating python/helpers/arg_scope.py<br>
[ 11%] Generating python/helpers/array_helpers.py<br>
[ 11%] Generating python/helpers/control_ops.py<br>
[ 12%] Generating python/helpers/conv.py<br>
[ 12%] Generating python/helpers/db_input.py<br>
[ 12%] Generating python/helpers/dropout.py<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/context.cc:12:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
[ 12%] Generating python/helpers/elementwise_linear.py<br>
[ 12%] Generating python/helpers/fc.py<br>
[ 12%] Generating python/helpers/nonlinearity.py<br>
[ 12%] Generating python/helpers/normalization.py<br>
[ 12%] Generating python/helpers/pooling.py<br>
[ 12%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/inst.cpp.o<br>
[ 12%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32.cc.o<br>
[ 12%] Generating python/helpers/tools.py<br>
[ 12%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir//src/google/protobuf/io/zero_copy_stream.cc.o<br>
[ 12%] Generating python/helpers/train.py<br>
[ 12%] Generating python/hip_test_util.py<br>
[ 12%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/stringprintf.cc.o<br>
[ 12%] Generating python/hsm_util.py<br>
[ 12%] Generating python/hypothesis_test.py<br>
[ 12%] Generating python/hypothesis_test_util.py<br>
[ 12%] Generating python/ideep/LRN_op_test.py<br>
[ 12%] Generating python/ideep/init.py<br>
[ 12%] Generating python/ideep/adam_op_test.py<br>
[ 12%] Building CXX object c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o<br>
[ 12%] Generating python/ideep/blobs_queue_db_test.py<br>
[ 12%] Generating python/ideep/channel_shuffle_op_test.py<br>
[ 12%] Generating python/ideep/concat_split_op_test.py<br>
[ 12%] Generating python/ideep/conv_op_test.py<br>
[ 12%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/gather.cc.o<br>
[ 12%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/logging.cpp.o<br>
[ 12%] Generating python/ideep/convfusion_op_test.py<br>
[ 12%] Generating python/ideep/copy_op_test.py<br>
[ 12%] Generating python/ideep/dropout_op_test.py<br>
[ 12%] Generating python/ideep/elementwise_sum_op_test.py<br>
[ 12%] Generating python/ideep/fc_op_test.py<br>
[ 12%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/reduce.cc.o<br>
[ 12%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/structurally_valid.cc.o<br>
[ 12%] Generating python/ideep/leaky_relu_op_test.py<br>
[ 12%] Generating python/ideep/moment_sgd_op_test.py<br>
3 warnings generated.<br>
[ 12%] Generating python/ideep/operator_fallback_op_test.py<br>
[ 12%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/scatter.cc.o<br>
[ 12%] Generating python/ideep/pool_op_test.py<br>
[ 12%] Building CXX object c10/CMakeFiles/c10.dir/core/Stream.cpp.o<br>
[ 12%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/types.cc.o<br>
[ 12%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/pooling.cpp.o<br>
[ 12%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/linux.cc.o<br>
[ 13%] Generating python/ideep/relu_op_test.py<br>
[ 13%] Generating python/ideep/reshape_op_test.py<br>
[ 13%] Generating python/ideep/shape_op_test.py<br>
[ 13%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive.cpp.o<br>
[ 13%] Generating python/ideep/sigmoid_op_test.py<br>
[ 13%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive_attr.cpp.o<br>
[ 13%] Generating python/ideep/softmax_op_test.py<br>
[ 13%] Generating python/ideep/spatial_bn_op_test.py<br>
[ 13%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/operand.cpp.o<br>
[ 13%] Generating python/ideep/squeeze_op_test.py<br>
[ 13%] Generating python/ideep/test_ideep_net.py<br>
[ 13%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GenerateKernelU8S8S32ACC32Avx512.cc.o<br>
[ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/strutil.cc.o<br>
[ 13%] Generating python/ideep/transform_ideep_net.py<br>
[ 13%] Generating python/ideep/weightedsum_op_test.py<br>
[ 13%] Generating python/ideep_test_util.py<br>
[ 13%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorImpl.cpp.o<br>
[ 13%] Generating python/layer_model_helper.py<br>
[ 13%] Generating python/layer_model_instantiator.py<br>
[ 13%] Generating python/layer_parameter_sharing_test.py<br>
[ 13%] Generating python/layer_test_util.py<br>
[ 13%] Generating python/layers/init.py<br>
[ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir//src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o<br>
[ 13%] Generating python/layers/adaptive_weight.py<br>
[ 13%] Generating python/layers/add_bias.py<br>
[ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/time.cc.o<br>
[ 13%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/logging.cc.o<br>
[ 13%] Generating python/layers/arc_cosine_feature_map.py<br>
[ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir//src/google/protobuf/message_lite.cc.o<br>
[ 13%] Generating python/layers/batch_distill_lr_loss.py<br>
[ 13%] Generating python/layers/batch_lr_loss.py<br>
[ 13%] Generating python/layers/batch_mse_loss.py<br>
[ 13%] Generating python/layers/batch_normalization.py<br>
[ 13%] Generating python/layers/batch_sigmoid_cross_entropy_loss.py<br>
[ 13%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/osutils.cpp.o<br>
[ 13%] Generating python/layers/batch_softmax_loss.py<br>
[ 13%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorOptions.cpp.o<br>
[ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/wire_format_lite.cc.o<br>
[ 13%] Generating python/layers/blob_weighted_sum.py<br>
[ 13%] Generating python/layers/bucket_weighted.py<br>
[ 13%] Generating python/layers/build_index.py<br>
[ 13%] Generating python/layers/concat.py<br>
[ 13%] Generating python/layers/constant_weight.py<br>
[ 13%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorTypeId.cpp.o<br>
[ 13%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive_desc.cpp.o<br>
[ 14%] Generating python/layers/conv.py<br>
[ 14%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive_iterator.cpp.o<br>
[ 14%] Generating python/layers/dropout.py<br>
[ 14%] Generating python/layers/fc.py<br>
[ 14%] Generating python/layers/fc_without_bias.py<br>
[ 14%] Generating python/layers/feature_sparse_to_dense.py<br>
[ 14%] Generating python/layers/functional.py<br>
[ 14%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/query.cpp.o<br>
[ 14%] Generating python/layers/gather_record.py<br>
[ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/mpi/context.cc.o<br>
[ 14%] Generating python/layers/homotopy_weight.py<br>
[ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o<br>
[ 14%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/regalloc.cpp.o<br>
[ 14%] Generating python/layers/label_smooth.py<br>
[ 14%] Generating python/layers/last_n_window_collector.py<br>
[ 14%] Generating python/layers/layer_normalization.py<br>
[ 14%] Generating python/layers/layers.py<br>
[ 14%] Generating python/layers/margin_rank_loss.py<br>
[ 14%] Generating python/layers/merge_id_lists.py<br>
[ 14%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorTypeIdRegistration.cpp.o<br>
[ 14%] Generating python/layers/pairwise_similarity.py<br>
[ 14%] Generating python/layers/position_weighted.py<br>
[ 14%] Generating python/layers/random_fourier_features.py<br>
[ 14%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/reorder.cpp.o<br>
[ 14%] Generating python/layers/reservoir_sampling.py<br>
[ 14%] Generating python/layers/sampling_train.py<br>
[ 14%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/rnn.cpp.o<br>
[ 14%] Generating python/layers/sampling_trainable_mixin.py<br>
[ 14%] Generating python/layers/select_record_by_context.py<br>
[ 14%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/scratchpad.cpp.o<br>
[ 14%] Generating python/layers/semi_random_features.py<br>
[ 14%] Building CXX object c10/CMakeFiles/c10.dir/core/UndefinedTensorImpl.cpp.o<br>
[ 14%] Building CXX object c10/CMakeFiles/c10.dir/core/impl/DeviceGuardImplInterface.cpp.o<br>
[ 14%] Generating python/layers/sparse_feature_hash.py<br>
[ 14%] Generating python/layers/sparse_lookup.py<br>
[ 14%] Generating python/layers/split.py<br>
[ 14%] Generating python/layers/tags.py<br>
[ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o<br>
[ 14%] Generating python/layers/uniform_sampling.py<br>
[ 14%] Generating python/layers_test.py<br>
[ 14%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/shuffle.cpp.o<br>
[ 14%] Generating python/lengths_reducer_fused_8bit_rowwise_ops_test.py<br>
[ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/repeated_field.cc.o<br>
[ 14%] Generating python/lengths_reducer_rowwise_8bit_ops_test.py<br>
[ 15%] Generating python/lstm_benchmark.py<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16Avx512.cc:128:7: warning: instantiation of variable 'fbgemm::CodeGenBase<unsigned char, signed char, int, short>::codeCache</em>'<br>
required here, but no definition is available [-Wundefined-var-template]<br>
if (codeCache</em>.find(kernelSig) != codeCache</em>.end()) {<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernel.h:139:7: note: forward declaration of template entity is here<br>
codeCache</em>; ///< JIT Code Cache for reuse.<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16Avx512.cc:128:7: note: add an explicit instantiation declaration to suppress this warning if 'fbgemm::CodeGenBase<unsigned char,<br>
signed char, int, short>::codeCache</em>' is explicitly instantiated in another translation unit<br>
if (codeCache</em>.find(kernelSig) != codeCache</em>.end()) {<br>
^<br>
[ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/Array.cpp.o<br>
[ 15%] Generating python/memonger.py<br>
[ 15%] Generating python/memonger_test.py<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16Avx512.cc:132:3: warning: instantiation of variable 'fbgemm::CodeGenBase<unsigned char, signed char, int, short>::code</em>' required<br>
here, but no definition is available [-Wundefined-var-template]<br>
code</em>.reset(false);<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernel.h:137:42: note: forward declaration of template entity is here<br>
static thread_local asmjit::CodeHolder code</em>; ///< JIT Code Holder for asmjit.<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16Avx512.cc:132:3: note: add an explicit instantiation declaration to suppress this warning if 'fbgemm::CodeGenBase<unsigned char,<br>
signed char, int, short>::code</em>' is explicitly instantiated in another translation unit<br>
code</em>.reset(false);<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16Avx512.cc:133:14: warning: instantiation of variable 'fbgemm::CodeGenBase<unsigned char, signed char, int, short>::rt</em>' required<br>
here, but no definition is available [-Wundefined-var-template]<br>
code</em>.init(rt</em>.getCodeInfo());<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernel.h:136:42: note: forward declaration of template entity is here<br>
static thread_local asmjit::JitRuntime rt</em>; ///< JIT Runtime for asmjit.<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC16Avx512.cc:133:14: note: add an explicit instantiation declaration to suppress this warning if<br>
'fbgemm::CodeGenBase<unsigned char, signed char, int, short>::rt</em>' is explicitly instantiated in another translation unit<br>
code</em>.init(rt</em>.getCodeInfo());<br>
^<br>
[ 15%] Generating python/mint/<strong>init</strong>.py<br>
[ 15%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o<br>
[ 15%] Generating python/mint/app.py<br>
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/softmax.cpp.o<br>
[ 15%] Generating python/mkl/<strong>init</strong>.py<br>
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em></em>/src/google/protobuf/stubs/bytestream.cc.o<br>
[ 15%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o<br>
[ 15%] Generating python/mkl/mkl_LRN_op_test.py<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/rendezvous/context.cc:10:<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/rendezvous/context.h:15:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
[ 15%] Generating python/mkl/mkl_LRN_speed_test.py<br>
[ 15%] Generating python/mkl/mkl_concat_op_test.py<br>
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/stream.cpp.o<br>
[ 15%] Generating python/mkl/mkl_conv_op_test.py<br>
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/utils.cpp.o<br>
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/verbose.cpp.o<br>
[ 15%] Generating python/mkl/mkl_copy_op_test.py<br>
[ 15%] Generating python/mkl/mkl_elementwise_add_op_test.py<br>
[ 15%] Generating python/mkl/mkl_elementwise_sum_op_test.py<br>
[ 15%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o<br>
[ 15%] Generating python/mkl/mkl_fc_op_test.py<br>
[ 15%] Generating python/mkl/mkl_fc_speed_test.py<br>
[ 15%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/runtime.cpp.o<br>
[ 15%] Generating python/mkl/mkl_fill_op_test.py<br>
[ 15%] Generating python/mkl/mkl_pool_op_test.py<br>
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em></em>/src/google/protobuf/stubs/common.cc.o<br>
[ 15%] Generating python/mkl/mkl_pool_speed_test.py<br>
[ 15%] Generating python/mkl/mkl_relu_op_test.py<br>
[ 15%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/string.cpp.o<br>
[ 15%] Generating python/mkl/mkl_sbn_op_test.py<br>
[ 15%] Generating python/mkl/mkl_sbn_speed_test.py<br>
[ 15%] Generating python/mkl/mkl_sigmoid_op_test.py<br>
3 warnings generated.<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/mpi/context.cc:16:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: [ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_barrier.cpp.o<br>
warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
[ 15%] Generating python/mkl/mkl_speed_test.py<br>
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_batch_normalization_utils.cpp.o<br>
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em></em>/src/google/protobuf/stubs/int128.cc.o<br>
[ 15%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/GroupwiseConvAcc32Avx2.cc.o<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/mpi/context.cc:44:3: warning: '~MPIScope' has a non-throwing exception specification but can still throw [-Wexceptions]<br>
GLOO_ENFORCE_EQ(rv, MPI_SUCCESS);<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/logging.h:151:3: note: expanded from macro 'GLOO_ENFORCE_EQ'<br>
GLOO_ENFORCE_THAT_IMPL(Equals((x), (y)), #x " == " #y, <strong>VA_ARGS</strong>)<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/logging.h:138:7: note: expanded from macro 'GLOO_ENFORCE_THAT_IMPL'<br>
throw EnforceNotMet( <br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/mpi/context.cc:42:11: note: destructor has a implicit non-throwing exception specification<br>
MPIScope::~MPIScope() {<br>
^<br>
[ 15%] Generating python/mkl/mkl_squeeze_op_test.py<br>
[ 15%] Generating python/mkl/rewrite_graph.py<br>
[ 15%] Generating python/mkl/rewrite_graph_test.py<br>
[ 15%] Generating python/mkl_test_util.py<br>
[ 15%] Generating python/model_device_test.py<br>
[ 15%] Generating python/model_helper.py<br>
[ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/Backtrace.cpp.o<br>
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em></em>/src/google/protobuf/stubs/io_win32.cc.o<br>
[ 15%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackAMatrix.cc.o<br>
[ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/C++17.cpp.o<br>
[ 15%] Generating python/model_helper_test.py<br>
[ 16%] Generating python/modeling/<strong>init</strong>.py<br>
[ 16%] Generating python/modeling/compute_histogram_for_blobs.py<br>
[ 16%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_concat.cpp.o<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/rendezvous/file_store.cc:26:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:[ 16%] Generating python/modeling/compute_histogram_for_blobs_test.py<br>
3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
[ 16%] Generating python/modeling/compute_norm_for_blobs.py<br>
[ 16%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em></em>/src/google/protobuf/stubs/status.cc.o<br>
[ 16%] Generating python/modeling/compute_norm_for_blobs_test.py<br>
[ 16%] Generating python/modeling/compute_statistics_for_blobs.py<br>
[ 16%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_engine.cpp.o<br>
[ 16%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/address.cc.o<br>
[ 16%] Generating python/modeling/compute_statistics_for_blobs_test.py<br>
[ 16%] Building CXX object c10/CMakeFiles/c10.dir/util/Exception.cpp.o<br>
[ 16%] Generating python/modeling/get_entry_from_blobs.py<br>
[ 16%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o<br>
[ 16%] Generating python/modeling/get_entry_from_blobs_test.py<br>
[ 16%] Generating python/modeling/gradient_clipping.py<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/rendezvous/hash_store.cc:12:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
[ 16%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/utils.cpp.o<br>
[ 16%] Generating python/modeling/gradient_clipping_test.py<br>
[ 16%] Generating python/modeling/initializers.py<br>
[ 16%] Building CXX object c10/CMakeFiles/c10.dir/util/Half.cpp.o<br>
[ 16%] Generating python/modeling/initializers_test.py<br>
[ 16%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/context.cc.o<br>
[ 16%] Generating python/modeling/net_modifier.py<br>
[ 16%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em></em>/src/google/protobuf/stubs/statusor.cc.o<br>
[ 16%] Generating python/modeling/parameter_info.py<br>
[ 16%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/device.cc.o<br>
[ 16%] Generating python/modeling/parameter_sharing.py<br>
[ 16%] Building CXX object c10/CMakeFiles/c10.dir/util/LeftRight.cpp.o<br>
[ 16%] Generating python/modeling/parameter_sharing_test.py<br>
[ 16%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackAWithIm2Col.cc.o<br>
[ 16%] Generating python/models/<strong>init</strong>.py<br>
[ 16%] Generating python/models/<strong>sym_init</strong>.py<br>
[ 16%] Generating python/models/download.py<br>
[ 16%] Generating python/models/resnet.py<br>
[ 16%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em><em>/src/google/protobuf/stubs/stringpiece.cc.o<br>
[ 16%] Generating python/models/resnet_test.py<br>
[ 16%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/vmem.cpp.o<br>
[ 16%] Generating python/models/seq2seq/<strong>init</strong>.py<br>
[ 16%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackBMatrix.cc.o<br>
[ 16%] Generating python/models/seq2seq/beam_search.py<br>
[ 16%] Generating python/models/seq2seq/seq2seq_beam_search_test.py<br>
[ 16%] Building CXX object c10/CMakeFiles/c10.dir/util/Logging.cpp.o<br>
[ 16%] Generating python/models/seq2seq/seq2seq_model_helper.py<br>
[ 16%] Building CXX object c10/CMakeFiles/c10.dir/util/Metaprogramming.cpp.o<br>
[ 16%] Generating python/models/seq2seq/seq2seq_model_helper_test.py<br>
[ 16%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/pair.cc.o<br>
[ 16%] Generating python/models/seq2seq/seq2seq_util.py<br>
[ 16%] Generating python/models/seq2seq/train.py<br>
[ 16%] Linking CXX static library ../../../lib/libprotobuf-lite.a<br>
[ 16%] Generating python/models/seq2seq/translate.py<br>
[ 17%] Generating python/modifier_context.py<br>
[ 17%] Built target libprotobuf-lite<br>
[ 17%] Generating python/muji.py<br>
[ 17%] Generating python/muji_test.py<br>
[ 17%] Generating python/net_builder.py<br>
[ 17%] Generating python/net_builder_test.py<br>
[ 17%] Generating python/net_drawer.py<br>
[ 17%] Generating python/net_printer.py<br>
[ 17%] Generating python/net_printer_test.py<br>
[ 17%] Generating python/nomnigraph.py<br>
[ 17%] Generating python/nomnigraph_test.py<br>
[ 17%] Generating python/nomnigraph_transformations.py<br>
[ 17%] Generating python/nomnigraph_transformations_test.py<br>
[ 17%] Generating python/normalizer.py<br>
[ 17%] Generating python/normalizer_context.py<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC32Avx512.cc:132:7: warning: instantiation of variable 'fbgemm::CodeGenBase<unsigned char, signed char, int, int>::codeCache_'<br>
required here, but no definition is available [-Wundefined-var-template]<br>
if (codeCache_.find(kernelSig) != codeCache_.end()) {<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernel.h:139:7: note: forward declaration of template entity is here<br>
codeCache_; ///< JIT Code Cache for reuse.<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC32Avx512.cc:132:7: note: add an explicit instantiation declaration to suppress this warning if 'fbgemm::CodeGenBase<unsigned char,<br>
signed char, int, int>::codeCache_' is explicitly instantiated in another translation unit<br>
if (codeCache_.find(kernelSig) != codeCache_.end()) {<br>
^<br>
[ 17%] Generating python/normalizer_test.py<br>
[ 17%] Generating python/numa_benchmark.py<br>
[ 17%] Generating python/numa_test.py<br>
[ 17%] Generating python/observer_test.py<br>
[ 17%] Generating python/onnx/<strong>init</strong>.py<br>
[ 17%] Generating python/onnx/backend.py<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC32Avx512.cc:136:3: warning: instantiation of variable 'fbgemm::CodeGenBase<unsigned char, signed char, int, int>::code_' required<br>
here, but no definition is available [-Wundefined-var-template]<br>
code_.reset(false);<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernel.h:137:42: note: forward declaration of template entity is here<br>
static thread_local asmjit::CodeHolder code_; ///< JIT Code Holder for asmjit.<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC32Avx512.cc:136:3: note: add an explicit instantiation declaration to suppress this warning if<br>
'fbgemm::CodeGenBase<unsigned char, signed char, int, int>::code_' is explicitly instantiated in another translation unit<br>
code_.reset(false);<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC32Avx512.cc:137:14: warning: instantiation of variable 'fbgemm::CodeGenBase<unsigned char, signed char, int, int>::rt_' required<br>
here, but no definition is available [-Wundefined-var-template]<br>
code_.init(rt_.getCodeInfo());<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernel.h:136:42: note: forward declaration of template entity is here<br>
static thread_local asmjit::JitRuntime rt_; ///< JIT Runtime for asmjit.<br>
^<br>
/home/user/zkself/pytorch/third_party/fbgemm/src/GenerateKernelU8S8S32ACC32Avx512.cc:137:14: note: add an explicit instantiation declaration to suppress this warning if<br>
'fbgemm::CodeGenBase<unsigned char, signed char, int, int>::rt_' is explicitly instantiated [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o<br>
in another translation unit<br>
code_.init(rt_.getCodeInfo());<br>
^<br>
Scanning dependencies of target renameAVX512F.h_generated<br>
Scanning dependencies of target renamedsp128.h_generated<br>
[ 17%] Built target renameAVX512F.h_generated<br>
[ 17%] Generating python/onnx/backend_cpp_rep.py<br>
[ 17%] Generating renamedsp128.h<br>
3 warnings generated.<br>
Scanning dependencies of target dispsse.c_generated<br>
[ 17%] Built target renamedsp128.h_generated<br>
[ 17%] Generating python/onnx/backend_rep.py<br>
[ 18%] Generating dispsse.c<br>
[ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em><em>/src/google/protobuf/stubs/stringprintf.cc.o<br>
[ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o<br>
[ 18%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackMatrix.cc.o<br>
4 warnings generated.<br>
3 warnings generated.<br>
[ 18%] Generating python/onnx/bin/<strong>init</strong>.py<br>
[ 18%] Built target dispsse.c_generated<br>
[ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em><em>/src/google/protobuf/stubs/structurally_valid.cc.o<br>
[ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em><em>/src/google/protobuf/stubs/strutil.cc.o<br>
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em><em>/src/google/protobuf/stubs/time.cc.o<br>
[ 19%] Generating python/onnx/bin/conversion.py<br>
3 warnings generated.<br>
[ 19%] Building CXX object c10/CMakeFiles/c10.dir/util/Optional.cpp.o<br>
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em><em>/src/google/protobuf/wire_format_lite.cc.o<br>
[ 19%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o<br>
[ 19%] Generating python/onnx/error.py<br>
[ 19%] Building CXX object c10/CMakeFiles/c10.dir/util/SmallVector.cpp.o<br>
[ 19%] Generating python/onnx/frontend.py<br>
[ 19%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o<br>
[ 19%] Generating python/onnx/helper.py<br>
[ 19%] Generating python/onnx/onnxifi.py<br>
[ 19%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/base/zone.cpp.o<br>
[ 19%] Generating python/onnx/test_onnxifi.py<br>
[ 19%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/device.cc.o<br>
[ 19%] Generating python/onnx/tests/<strong>init</strong>.py<br>
[ 20%] Generating python/onnx/tests/c2_ref_test.py<br>
[ 20%] Generating python/onnx/tests/conversion_test.py<br>
[ 20%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/pair.cc.o<br>
[ 21%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/unbound_buffer.cc.o<br>
[ 21%] Generating python/onnx/tests/helper_test.py<br>
[ 21%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackAWithQuantRowOffset.cc.o<br>
[ 21%] Generating python/onnx/tests/onnx_backend_test.py<br>
[ 21%] Building CXX object c10/CMakeFiles/c10.dir/util/StringUtil.cpp.o<br>
[ 21%] Generating python/onnx/tests/ssa_test.py<br>
[ 21%] Generating python/onnx/tests/test_utils.py<br>
[ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em><em>/src/google/protobuf/any.cc.o<br>
[ 21%] Generating python/onnx/workspace.py<br>
[ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em><em>/src/google/protobuf/any.pb.cc.o<br>
[ 21%] Generating python/operator_test/<strong>init</strong>.py<br>
[ 21%] Generating python/operator_test/activation_ops_test.py<br>
[ 21%] Generating python/operator_test/adadelta_test.py<br>
[ 21%] Generating python/operator_test/adagrad_test.py<br>
3 warnings generated.<br>
[ 21%] Generating python/operator_test/adagrad_test_helper.py<br>
[ 21%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackAWithRowOffset.cc.o<br>
[ 21%] Generating python/operator_test/adam_test.py<br>
[ 21%] Building CXX object c10/CMakeFiles/c10.dir/util/Type.cpp.o<br>
[ 21%] Generating python/operator_test/affine_channel_op_test.py<br>
[ 22%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeList.cpp.o<br>
[ 22%] Generating python/operator_test/apmeter_test.py<br>
[ 22%] Generating python/operator_test/arg_ops_test.py<br>
[ 22%] Generating python/operator_test/assert_test.py<br>
[ 22%] Generating python/operator_test/atomic_ops_test.py<br>
[ 22%] Generating python/operator_test/basic_rnn_test.py<br>
[ 22%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</em>_/src/google/protobuf/api.pb.cc.o<br>
[ 22%] Generating python/operator_test/batch_box_cox_test.py<br>
[ 22%] Generating python/operator_test/batch_bucketize_op_test.py<br>
[ 22%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/PackWeightMatrixForGConv.cc.o<br>
[ 22%] Generating python/operator_test/batch_moments_op_test.py<br>
[ 22%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86assembler.cpp.o<br>
[ 22%] Generating python/operator_test/batch_sparse_to_dense_op_test.py<br>
[ 22%] Generating python/operator_test/bbox_transform_test.py<br>
[ 22%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeTraits.cpp.o<br>
[ 22%] Building CXX object c10/CMakeFiles/c10.dir/util/UniqueVoidPtr.cpp.o<br>
[ 22%] Generating python/operator_test/bisect_percentile_op_test.py<br>
[ 22%] Generating python/operator_test/blobs_queue_db_test.py<br>
[ 22%] Generating python/operator_test/boolean_mask_test.py<br>
[ 22%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/QuantUtils.cc.o<br>
[ 22%] Generating python/operator_test/boolean_unmask_test.py<br>
[ 22%] Generating python/operator_test/box_with_nms_limit_op_test.py<br>
[ 22%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/RefImplementations.cc.o<br>
[ 23%] Generating python/operator_test/cast_op_test.py<br>
[ 23%] Generating python/operator_test/ceil_op_test.py<br>
[ 23%] Generating python/operator_test/channel_backprop_stats_op_test.py<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/transport/tcp/unbound_buffer.cc:14:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^[ 23%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_gflags.cpp.o</p>
<p dir="auto">/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/transport/tcp/context.cc:12:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
[ 23%] Generating python/operator_test/channel_shuffle_test.py<br>
[ 23%] Generating python/operator_test/channel_stats_op_test.py<br>
[ 23%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_no_gflags.cpp.o<br>
[ 23%] Generating python/operator_test/checkpoint_test.py<br>
[ 23%] Generating python/operator_test/clip_op_test.py<br>
[ 23%] Building CXX object c10/CMakeFiles/c10.dir/util/intrusive_ptr.cpp.o<br>
[ 23%] Generating python/operator_test/clip_tensor_op_test.py<br>
[ 23%] Generating python/operator_test/collect_and_distribute_fpn_rpn_proposals_op_test.py<br>
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/compiler/importer.cc.o<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/transport/tcp/device.cc:24:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
[ 23%] Generating python/operator_test/concat_split_op_test.py<br>
[ 23%] Generating python/operator_test/conditional_test.py<br>
[ 23%] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_generic.dir/src/Utils.cc.o<br>
[ 23%] Generating python/operator_test/conftest.py<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/transport/tcp/buffer.cc:19:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
[ 23%] Generating python/operator_test/conv_test.py<br>
[ 23%] Building CXX object c10/CMakeFiles/c10.dir/util/numa.cpp.o<br>
[ 23%] Generating python/operator_test/conv_transpose_test.py<br>
[ 23%] Generating python/operator_test/copy_ops_test.py<br>
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/compiler/parser.cc.o<br>
[ 23%] Generating python/operator_test/cosine_embedding_criterion_op_test.py<br>
[ 23%] Building CXX object c10/CMakeFiles/c10.dir/util/typeid.cpp.o<br>
[ 23%] Generating python/operator_test/counter_ops_test.py<br>
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/descriptor.cc.o<br>
[ 23%] Generating python/operator_test/crf_test.py<br>
In file included from /home/user/zkself/pytorch/third_party/gloo/gloo/transport/tcp/pair.cc:28:<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:36:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
InvalidOperationException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:35:36: note: default constructor of 'InvalidOperationException' is implicitly deleted because base class '::gloo::Exception' has a deleted<br>
default constructor<br>
struct InvalidOperationException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:47:3: warning: explicitly defaulted default constructor is implicitly deleted [-Wdefaulted-function-deleted]<br>
IoException() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:46:22: note: default constructor of 'IoException' is implicitly deleted because base class '::gloo::Exception' has a deleted default<br>
constructor<br>
struct IoException : public ::gloo::Exception {<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:26:3: note: explicitly defaulted function was implicitly deleted here<br>
Exception() = default;<br>
^<br>
/home/user/zkself/pytorch/third_party/gloo/gloo/common/error.h:25:20: note: default constructor of 'Exception' is implicitly deleted because base class 'std::runtime_error' has no default constructor<br>
struct Exception : public std::runtime_error {<br>
^<br>
[ 23%] Generating python/operator_test/cross_entropy_ops_test.py<br>
[ 23%] Generating python/operator_test/ctc_beam_search_decoder_op_test.py<br>
[ 23%] Generating python/operator_test/ctc_greedy_decoder_op_test.py<br>
[ 23%] Generating python/operator_test/cudnn_recurrent_test.py<br>
[ 23%] Generating python/operator_test/data_couple_op_test.py<br>
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_memory.cpp.o<br>
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_reducer.cpp.o<br>
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_reorder.cpp.o<br>
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_sum.cpp.o<br>
[ 23%] Generating python/operator_test/dataset_ops_test.py<br>
[ 23%] Generating python/operator_test/deform_conv_test.py<br>
[ 23%] Generating python/operator_test/dense_vector_to_id_list_op_test.py<br>
[ 23%] Generating python/operator_test/depthwise_3x3_conv_test.py<br>
[ 23%] Generating python/operator_test/detectron_keypoints.py<br>
[ 23%] Generating python/operator_test/distance_op_test.py<br>
[ 23%] Generating python/operator_test/dropout_op_test.py<br>
[ 24%] Generating python/operator_test/duplicate_operands_test.py<br>
[ 24%] Generating python/operator_test/elementwise_linear_op_test.py<br>
[ 24%] Generating python/operator_test/elementwise_logical_ops_test.py<br>
[ 24%] Generating python/operator_test/elementwise_op_broadcast_test.py<br>
[ 24%] Generating python/operator_test/elementwise_ops_test.py<br>
[ 24%] Generating python/operator_test/emptysample_ops_test.py<br>
Scanning dependencies of target renameSSE2.h_generated<br>
[ 24%] Generating python/operator_test/enforce_finite_op_test.py<br>
[ 24%] Built target renameSSE2.h_generated<br>
[ 24%] Generating python/operator_test/ensure_clipped_test.py<br>
[ 24%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/gemm.cpp.o<br>
[ 24%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/gemm_utils.cpp.o<br>
[ 24%] Generating python/operator_test/ensure_cpu_output_op_test.py<br>
3 warnings generated.<br>
[ 24%] Generating python/operator_test/erf_op_test.py<br>
[ 24%] Generating python/operator_test/expand_op_test.py<br>
[ 24%] Generating python/operator_test/feature_maps_ops_test.py<br>
[ 24%] Generating python/operator_test/fc_operator_test.py<br>
[ 24%] Generating python/operator_test/filler_ops_test.py<br>
3 warnings generated.<br>
[ 24%] Generating python/operator_test/find_op_test.py<br>
[ 24%] Generating python/operator_test/flatten_op_test.py<br>
[ 24%] Generating python/operator_test/flexible_top_k_test.py<br>
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/jit_avx512_common_gemm_f32.cpp.o<br>
[ 25%] Generating python/operator_test/floor_op_test.py<br>
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/jit_avx_gemm_f32.cpp.o<br>
[ 25%] Generating python/operator_test/gather_ops_test.py<br>
[ 25%] Generating python/operator_test/gather_ranges_op_test.py<br>
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/ref_gemm.cpp.o<br>
[ 25%] Generating python/operator_test/given_tensor_byte_string_to_uint8_fill_op_test.py<br>
[ 25%] Generating python/operator_test/given_tensor_fill_op_test.py<br>
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_convolution.cpp.o<br>
[ 25%] Generating python/operator_test/glu_op_test.py<br>
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_convolution_utils.cpp.o<br>
[ 25%] Generating python/operator_test/group_conv_test.py<br>
[ 25%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/descriptor.pb.cc.o<br>
[ 25%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/descriptor_database.cc.o<br>
[ 25%] Generating python/operator_test/group_norm_op_test.py<br>
[ 25%] Generating python/operator_test/gru_test.py<br>
[ 25%] Generating python/operator_test/heatmap_max_keypoint_op_test.py<br>
[ 25%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/duration.pb.cc.o<br>
[ 25%] Generating python/operator_test/hsm_test.py<br>
[ 25%] Generating python/operator_test/hyperbolic_ops_test.py<br>
[ 25%] Generating python/operator_test/im2col_col2im_test.py<br>
[ 26%] Generating python/operator_test/image_input_op_test.py<br>
[ 26%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/dynamic_message.cc.o<br>
[ 26%] Generating python/operator_test/index_hash_ops_test.py<br>
[ 26%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/empty.pb.cc.o<br>
[ 26%] Generating python/operator_test/index_ops_test.py<br>
[ 26%] Generating python/operator_test/instance_norm_test.py<br>
[ 26%] Generating python/operator_test/integral_image_ops_test.py<br>
[ 26%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/extension_set_heavy.cc.o<br>
[ 26%] Generating python/operator_test/jsd_ops_test.py<br>
[ 26%] Generating python/operator_test/key_split_ops_test.py<br>
[ 26%] Generating python/operator_test/lars_test.py<br>
[ 26%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_inner_product.cpp.o<br>
[ 26%] Generating python/operator_test/layer_norm_op_test.py<br>
[ 26%] Generating python/operator_test/leaky_relu_test.py<br>
[ 26%] Generating python/operator_test/learning_rate_adaption_op_test.py<br>
[ 26%] Generating python/operator_test/learning_rate_op_test.py<br>
3 warnings generated.<br>
[ 26%] Generating python/operator_test/length_split_op_test.py<br>
[ 26%] Generating python/operator_test/lengths_pad_op_test.py<br>
[ 26%] Generating python/operator_test/lengths_tile_op_test.py<br>
[ 26%] Generating python/operator_test/lengths_top_k_ops_test.py<br>
[ 26%] Generating python/operator_test/listwise_l2r_operator_test.py<br>
[ 26%] Generating python/operator_test/load_save_test.py<br>
[ 26%] Generating python/operator_test/locally_connected_op_test.py<br>
[ 26%] Generating python/operator_test/loss_ops_test.py<br>
[ 26%] Generating python/operator_test/lpnorm_op_test.py<br>
[ 26%] Generating python/operator_test/map_ops_test.py<br>
Scanning dependencies of target cpuinfo<br>
[ 26%] Generating python/operator_test/margin_ranking_criterion_op_test.py<br>
[ 26%] Generating python/operator_test/math_ops_test.py<br>
[ 26%] Generating python/operator_test/matmul_op_test.py<br>
[ 26%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/init.c.o<br>
[ 26%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o<br>
[ 26%] Generating python/operator_test/mean_op_test.py<br>
[ 26%] Generating python/operator_test/merge_id_lists_op_test.py<br>
[ 26%] Generating python/operator_test/mkl_conv_op_test.py<br>
[ 26%] Generating python/operator_test/mkl_packed_fc_op_test.py<br>
[ 26%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/init.c.o<br>
[ 26%] Generating python/operator_test/mkl_speed_test.py<br>
[ 27%] Generating python/operator_test/mod_op_test.py<br>
[ 27%] Generating python/operator_test/moments_op_test.py<br>
Scanning dependencies of target cpuinfo_internals<br>
[ 27%] Generating python/operator_test/momentum_sgd_test.py<br>
Scanning dependencies of target nnpack_reference_layers<br>
[ 27%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/init.c.o<br>
[ 27%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-output.c.o<br>
[ 27%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/api.c.o<br>
[ 27%] Generating python/operator_test/mpi_test.py<br>
[ 27%] Generating python/operator_test/negate_gradient_op_test.py<br>
[ 27%] Generating python/operator_test/ngram_ops_test.py<br>
[ 27%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/info.c.o<br>
[ 27%] Generating python/operator_test/normalize_op_test.py<br>
[ 27%] Generating python/operator_test/numpy_tile_op_test.py<br>
[ 27%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/vendor.c.o<br>
[ 27%] Generating python/operator_test/one_hot_ops_test.py<br>
[ 28%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-input-gradient.c.o<br>
[ 28%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/uarch.c.o<br>
[ 28%] Generating python/operator_test/onnx_while_test.py<br>
[ 28%] Generating python/operator_test/order_switch_test.py<br>
[ 28%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/init.c.o<br>
[ 28%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/info.c.o<br>
[ 28%] Generating python/operator_test/pack_ops_test.py<br>
[ 28%] Generating python/operator_test/pack_rnn_sequence_op_test.py<br>
[ 28%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/name.c.o<br>
[ 28%] Generating python/operator_test/pad_test.py<br>
[ 28%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/vendor.c.o<br>
[ 28%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-kernel.c.o<br>
[ 28%] Generating python/operator_test/partition_ops_test.py<br>
[ 28%] Generating python/operator_test/percentile_op_test.py<br>
[ 28%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/uarch.c.o<br>
[ 28%] Generating python/operator_test/piecewise_linear_transform_test.py<br>
[ 28%] Generating python/operator_test/pooling_test.py<br>
[ 28%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/name.c.o<br>
[ 28%] Generating python/operator_test/prepend_dim_test.py<br>
[ 28%] Generating python/operator_test/python_op_test.py<br>
[ 28%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/fully-connected-output.c.o<br>
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_u8s8s32x_inner_product.cpp.o<br>
[ 28%] Generating python/operator_test/rand_quantization_op_speed_test.py<br>
[ 28%] Generating python/operator_test/rand_quantization_op_test.py<br>
[ 28%] Generating python/operator_test/rank_loss_operator_test.py<br>
3 warnings generated.<br>
[ 28%] Generating python/operator_test/rebatching_queue_test.py<br>
[ 28%] Generating python/operator_test/record_queue_test.py<br>
[ 28%] Generating python/operator_test/recurrent_net_executor_test.py<br>
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_x8s8s32x_convolution.cpp.o<br>
[ 28%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/max-pooling-output.c.o<br>
[ 28%] Generating python/operator_test/recurrent_network_test.py<br>
[ 28%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/topology.c.o<br>
[ 28%] Generating python/operator_test/reduce_ops_test.py<br>
[ 28%] Generating python/operator_test/reduction_ops_test.py<br>
[ 28%] Generating python/operator_test/reshape_ops_test.py<br>
[ 29%] Generating python/operator_test/resize_op_test.py<br>
[ 29%] Generating python/operator_test/rmac_regions_op_test.py<br>
[ 29%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/topology.c.o<br>
[ 29%] Generating python/operator_test/rnn_cell_test.py<br>
[ 29%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/isa.c.o<br>
[ 29%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/softmax-output.c.o<br>
[ 29%] Generating python/operator_test/roi_align_rotated_op_test.py<br>
[ 29%] Linking CXX shared library ../lib/libc10.so<br>
[ 29%] Generating python/operator_test/segment_ops_test.py<br>
[ 29%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-output.c.o<br>
[ 29%] Generating python/operator_test/selu_op_test.py<br>
[ 29%] Generating python/operator_test/sequence_ops_test.py<br>
[ 29%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/isa.c.o<br>
[ 29%] Generating python/operator_test/shape_inference_test.py<br>
[ 30%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-input-gradient.c.o<br>
[ 30%] Generating python/operator_test/sinusoid_position_encoding_op_test.py<br>
[ 30%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/init.c.o<br>
[ 30%] Generating python/operator_test/softmax_ops_test.py<br>
[ 30%] Generating python/operator_test/softplus_op_test.py<br>
[ 30%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/descriptor.c.o<br>
[ 30%] Generating python/operator_test/sparse_gradient_checker_test.py<br>
[ 30%] Built target c10<br>
[ 30%] Generating python/operator_test/sparse_lengths_sum_benchmark.py<br>
[ 30%] Generating python/operator_test/sparse_normalize_test.py<br>
[ 30%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/init.c.o<br>
[ 30%] Generating python/operator_test/sparse_ops_test.py<br>
[ 30%] Linking C static library ../../lib/libnnpack_reference_layers.a<br>
[ 30%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/deterministic.c.o<br>
[ 30%] Generating python/operator_test/sparse_to_dense_mask_op_test.py<br>
[ 30%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86builder.cpp.o<br>
[ 30%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86compiler.cpp.o<br>
[ 30%] Generating python/operator_test/spatial_bn_op_test.py<br>
[ 30%] Built target nnpack_reference_layers<br>
[ 30%] Generating python/operator_test/specialized_segment_ops_test.py<br>
Scanning dependencies of target dispavx_obj<br>
[ 30%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/init.c.o<br>
[ 30%] Generating python/operator_test/square_root_divide_op_test.py<br>
[ 30%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/descriptor.c.o<br>
[ 30%] Building C object sleef/src/libm/CMakeFiles/dispavx_obj.dir/dispavx.c.o<br>
[ 30%] Generating python/operator_test/stats_ops_test.py<br>
[ 30%] Generating python/operator_test/stats_put_ops_test.py<br>
[ 30%] Generating python/operator_test/string_ops_test.py<br>
[ 30%] Generating python/operator_test/text_file_reader_test.py<br>
[ 30%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86internal.cpp.o<br>
[ 30%] Generating python/operator_test/thresholded_relu_op_test.py<br>
[ 30%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/field_mask.pb.cc.o<br>
[ 30%] Generating python/operator_test/tile_op_test.py<br>
[ 30%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/generated_message_reflection.cc.o<br>
[ 30%] Generating python/operator_test/top_k_test.py<br>
[ 30%] Linking CXX static library ../../../lib/libbenchmark.a<br>
[ 30%] Generating python/operator_test/transpose_op_test.py<br>
[ 30%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/generated_message_table_driven.cc.o<br>
[ 30%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/deterministic.c.o<br>
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_1x1_conv_kernel_f32.cpp.o<br>
[ 30%] Generating python/operator_test/trigonometric_op_test.py<br>
[ 30%] Built target benchmark<br>
[ 30%] Generating python/operator_test/unique_ops_test.py<br>
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_1x1_convolution.cpp.o<br>
[ 30%] Generating python/operator_test/unique_uniform_fill_op_test.py<br>
[ 31%] Generating python/operator_test/upsample_op_test.py<br>
[ 31%] Generating python/operator_test/utility_ops_test.py<br>
[ 31%] Generating python/operator_test/video_input_op_test.py<br>
[ 31%] Generating python/operator_test/weighted_multi_sample_test.py<br>
[ 31%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/linux/init.c.o<br>
[ 31%] Generating python/operator_test/weighted_sample_test.py<br>
[ 31%] Generating python/operator_test/weighted_sum_test.py<br>
[ 31%] Generating python/operator_test/wngrad_test.py<br>
[ 31%] Generating python/optimizer.py<br>
[ 31%] Generating python/optimizer_context.py<br>
[ 31%] Generating python/optimizer_test.py<br>
[ 31%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/cpuinfo.c.o<br>
[ 31%] Generating python/optimizer_test_util.py<br>
[ 31%] Generating python/parallel_workers.py<br>
[ 31%] Generating python/parallel_workers_test.py<br>
[ 31%] Generating python/parallelize_bmuf_distributed_test.py<br>
[ 31%] Generating python/pipeline.py<br>
[ 31%] Generating python/pipeline_test.py<br>
[ 31%] Generating python/predictor/<strong>init</strong>.py<br>
[ 31%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/smallfile.c.o<br>
[ 31%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/multiline.c.o<br>
[ 31%] Generating python/predictor/mobile_exporter.py<br>
[ 31%] Generating python/predictor/mobile_exporter_test.py<br>
3 warnings generated.<br>
[ 31%] Generating python/predictor/predictor_exporter.py<br>
[ 31%] Linking CXX static library ../../../lib/libgloo.a<br>
[ 31%] Generating python/predictor/predictor_exporter_test.py<br>
[ 31%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_conv_kernel_f32.cpp.o<br>
[ 31%] Generating python/predictor/predictor_py_utils.py<br>
[ 31%] Built target gloo<br>
[ 31%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86inst.cpp.o<br>
[ 31%] Generating python/predictor/predictor_test.py<br>
Scanning dependencies of target sleefsse4<br>
[ 31%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/current.c.o<br>
[ 31%] Generating python/predictor/serde.py<br>
[ 31%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/linux/cpuinfo.c.o<br>
[ 31%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimdsp.c.o<br>
[ 31%] Generating python/predictor_constants.py<br>
[ 31%] Generating python/python_op_test.py<br>
[ 31%] Generating python/queue_util.py<br>
[ 31%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/cpulist.c.o<br>
[ 31%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/processors.c.o<br>
[ 31%] Generating python/record_queue.py<br>
[ 31%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/smallfile.c.o<br>
[ 31%] Generating python/recurrent.py<br>
[ 31%] Generating python/regularizer.py<br>
[ 32%] Generating python/regularizer_context.py<br>
[ 32%] Generating python/regularizer_test.py<br>
[ 32%] Generating python/rnn/<strong>init</strong>.py<br>
[ 32%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86instimpl.cpp.o<br>
[ 32%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86logging.cpp.o<br>
[ 33%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/multiline.c.o<br>
[ 33%] Linking C static library ../../lib/libcpuinfo.a<br>
[ 33%] Generating python/rnn/lstm_comparison.py<br>
[ 33%] Generating python/rnn/rnn_cell_test_util.py<br>
[ 33%] Built target cpuinfo<br>
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/io/gzip_stream.cc.o<br>
[ 33%] Generating python/rnn_cell.py<br>
[ 33%] Generating python/schema.py<br>
[ 33%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/current.c.o<br>
[ 33%] Generating python/schema_test.py<br>
[ 33%] Generating python/scope.py<br>
[ 33%] Generating python/scope_test.py<br>
[ 33%] Generating python/serialized_test/init.py<br>
[ 33%] Generating python/serialized_test/coverage.py<br>
[ 33%] Generating python/serialized_test/serialized_test_util.py<br>
[ 33%] Generating python/session.py<br>
[ 33%] Generating python/session_test.py<br>
[ 33%] Generating python/sparse_to_dense_mask_test.py<br>
[ 33%] Generating python/sparse_to_dense_test.py<br>
[ 33%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/cpulist.c.o<br>
[ 33%] Generating python/task.py<br>
[ 33%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimddp.c.o<br>
[ 33%] Generating python/task_test.py<br>
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/io/printer.cc.o<br>
[ 33%] Generating python/test/<strong>init</strong>.py<br>
[ 33%] Generating python/test/blob_deallocation_test.py<br>
[ 33%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_convolution.cpp.o<br>
[ 33%] Generating python/test/do_op_test.py<br>
[ 33%] Generating python/test/executor_test.py<br>
[ 33%] Generating python/test/executor_test_util.py<br>
[ 33%] Generating python/test_util.py<br>
[ 33%] Generating python/text_file_reader.py<br>
[ 33%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/processors.c.o<br>
[ 33%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_1x1_conv_kernel.cpp.o<br>
[ 33%] Generating python/timeout_guard.py<br>
[ 33%] Generating python/toy_regression_test.py<br>
[ 33%] Generating python/transformations.py<br>
[ 33%] Generating python/transformations_test.py<br>
[ 34%] Generating python/trt/<strong>init</strong>.py<br>
[ 34%] Generating python/trt/test_trt.py<br>
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/io/strtod.cc.o<br>
[ 34%] Generating python/trt/transform.py<br>
[ 34%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_1x1_convolution.cpp.o<br>
[ 34%] Linking C static library ../../lib/libcpuinfo_internals.a<br>
[ 34%] Generating python/tt_core.py<br>
[ 34%] Generating python/tt_core_test.py<br>
[ 34%] Built target cpuinfo_internals<br>
[ 34%] Generating python/utils.py<br>
[ 34%] Generating python/utils_test.py<br>
[ 34%] Generating python/visualize.py<br>
[ 34%] Generating python/workspace.py<br>
[ 34%] Generating python/workspace_test.py<br>
[ 34%] Generating quantization/init.py<br>
[ 34%] Generating quantization/server/init.py<br>
[ 34%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_conv_kernel.cpp.o<br>
[ 34%] Built target dispavx_obj<br>
[ 34%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_conv_winograd_kernel_f32.cpp.o<br>
[ 34%] Generating quantization/server/batch_matmul_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/batch_permutation_dnnlowp_op_test.py<br>
[ 34%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86operand.cpp.o<br>
[ 34%] Generating quantization/server/channel_shuffle_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/concat_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/conv_depthwise_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/conv_dnnlowp_acc16_op_test.py<br>
[ 34%] Generating quantization/server/conv_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/conv_groupwise_dnnlowp_acc16_op_test.py<br>
[ 34%] Generating quantization/server/conv_groupwise_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/dequantize_dnnlowp_op_test.py<br>
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/io/tokenizer.cc.o<br>
[ 34%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86operand_regs.cpp.o<br>
[ 34%] Generating quantization/server/dnnlowp_test_utils.py<br>
[ 34%] Generating quantization/server/elementwise_add_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/elementwise_linear_dnnlowp_op_test.py<br>
[ 34%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_convolution.cpp.o<br>
[ 34%] Generating quantization/server/elementwise_mul_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/elementwise_sum_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/fully_connected_dnnlowp_acc16_op_test.py<br>
[ 34%] Building CXX object third_party/fbgemm/asmjit/CMakeFiles/asmjit.dir/src/asmjit/x86/x86regalloc.cpp.o<br>
[ 34%] Generating quantization/server/fully_connected_dnnlowp_op_test.py<br>
[ 34%] Generating quantization/server/fully_connected_fp16_test.py<br>
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/io/zero_copy_stream_impl.cc.o<br>
[ 35%] Generating quantization/server/fully_connected_rowwise_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/gather_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/group_norm_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/lstm_unit_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/observer_test.py<br>
[ 35%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_convolution_winograd.cpp.o<br>
[ 35%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_lrn.cpp.o<br>
[ 35%] Generating quantization/server/pool_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/quantize_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/relu_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/resize_nearest_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/sigmoid_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/tanh_dnnlowp_op_test.py<br>
[ 35%] Generating quantization/server/utils.py<br>
[ 35%] Built target python_copy_files<br>
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/map_field.cc.o<br>
Scanning dependencies of target sleefavx<br>
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/message.cc.o<br>
[ 35%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimdsp.c.o<br>
Scanning dependencies of target sleeffma4<br>
[ 35%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimdsp.c.o<br>
[ 35%] Built target sleefsse4<br>
Scanning dependencies of target sleefavx2128<br>
[ 35%] Building C object sleef/src/libm/CMakeFiles/sleefavx2128.dir/sleefsimdsp.c.o<br>
[ 35%] Building C object sleef/src/libm/CMakeFiles/sleefavx2128.dir/sleefsimddp.c.o<br>
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/reflection_ops.cc.o<br>
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/service.cc.o<br>
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/source_context.pb.cc.o<br>
[ 35%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_fp32_wino_conv_2x3.cpp.o<br>
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/struct.pb.cc.o<br>
[ 35%] Linking CXX static library ../../../lib/libgtest.a<br>
[ 35%] Built target gtest<br>
Scanning dependencies of target sleefavx2<br>
[ 35%] Building C object sleef/src/libm/CMakeFiles/sleefavx2.dir/sleefsimdsp.c.o<br>
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/stubs/mathlimits.cc.o<br>
[ 35%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimddp.c.o<br>
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/stubs/substitute.cc.o<br>
[ 35%] Built target fbgemm_avx2<br>
[ 35%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimddp.c.o<br>
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/text_format.cc.o<br>
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/timestamp.pb.cc.o<br>
[ 36%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_fp32_wino_conv_4x3.cpp.o<br>
[ 36%] Built target sleefavx2128<br>
Scanning dependencies of target sleefavx512f<br>
[ 36%] Building C object sleef/src/libm/CMakeFiles/sleefavx512f.dir/sleefsimdsp.c.o<br>
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/type.pb.cc.o<br>
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/unknown_field_set.cc.o<br>
[ 36%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_fp32_wino_conv_4x3_kernel.cpp.o<br>
[ 36%] Building C object sleef/src/libm/CMakeFiles/sleefavx2.dir/sleefsimddp.c.o<br>
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/delimited_message_util.cc.o<br>
[ 36%] Built target fbgemm_generic<br>
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/field_comparator.cc.o<br>
[ 36%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_i8i8_pooling.cpp.o<br>
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/field_mask_util.cc.o<br>
[ 37%] Built target sleeffma4<br>
Scanning dependencies of target dispsse_obj<br>
[ 37%] Building C object sleef/src/libm/CMakeFiles/dispsse_obj.dir/dispsse.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/internal/datapiece.cc.o<br>
[ 37%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_u8s8s32x_deconvolution.cpp.o<br>
[ 37%] Built target sleefavx<br>
Scanning dependencies of target sleefsse2<br>
[ 37%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimdsp.c.o<br>
[ 37%] Building C object sleef/src/libm/CMakeFiles/sleefavx512f.dir/sleefsimddp.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/internal/default_value_objectwriter.cc.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/internal/error_listener.cc.o<br>
[ 37%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_u8s8s32x_wino_convolution.cpp.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/internal/field_mask_utility.cc.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/internal/json_escaping.cc.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/internal/json_objectwriter.cc.o<br>
[ 37%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_1x1_conv_kernel.cpp.o<br>
[ 37%] Built target sleefavx2<br>
Scanning dependencies of target qnnpack<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/init.c.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/add.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/internal/json_stream_parser.cc.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/average-pooling.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/internal/object_writer.cc.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/channel-shuffle.c.o<br>
[ 37%] Built target dispsse_obj<br>
[ 37%] Generating src/x86_64-fma/2d-fourier-8x8.py.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/clamp.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/internal/proto_writer.cc.o<br>
[ 37%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_1x1_convolution.cpp.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/convolution.c.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/deconvolution.c.o<br>
[ 37%] Built target sleefavx512f<br>
Scanning dependencies of target gtest_main<br>
[ 37%] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o<br>
[ 37%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimddp.c.o<br>
[ 37%] Linking CXX static library ../../../lib/libasmjit.a<br>
[ 37%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_conv_kernel.cpp.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/fully-connected.c.o<br>
[ 37%] Built target asmjit<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/internal/protostream_objectsource.cc.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/global-average-pooling.c.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/leaky-relu.c.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/max-pooling.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/internal/protostream_objectwriter.cc.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/sigmoid.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/internal/type_info.cc.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/softargmax.c.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/operator-delete.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/internal/type_info_test_helper.cc.o<br>
[ 37%] Built target ATEN_CPU_FILES_GEN_TARGET<br>
[ 37%] Built target ATEN_CUDA_FILES_GEN_TARGET<br>
Scanning dependencies of target benchmark_main<br>
Scanning dependencies of target fbgemm<br>
[ 37%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o<br>
[ 37%] Linking CXX static library ../../lib/libfbgemm.a<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/internal/utility.cc.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/indirection.c.o<br>
[ 37%] Built target fbgemm<br>
[ 37%] Building NVCC (Device) object third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/nccl/gloo_cuda_generated_nccl.cu.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/operator-run.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/json_util.cc.o<br>
nvcc fatal : The version ('8.0') of the host compiler ('clang') is not supported<br>
CMake Error at gloo_cuda_generated_nccl.cu.o.Release.cmake:215 (message):<br>
Error generating<br>
/home/user/zkself/pytorch/build/third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/nccl/./gloo_cuda_generated_nccl.cu.o</p>
<p dir="auto">third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/build.make:77: recipe for target 'third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/nccl/gloo_cuda_generated_nccl.cu.o' failed<br>
make[2]: *** [third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/nccl/gloo_cuda_generated_nccl.cu.o] Error 1<br>
CMakeFiles/Makefile2:1214: recipe for target 'third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/all' failed<br>
make[1]: *** [third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/all] Error 2<br>
make[1]: *** Waiting for unfinished jobs....<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8lut32norm/scalar.c.o<br>
[ 37%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8lut/scalar.c.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/message_differencer.cc.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/util/time_util.cc.o<br>
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/<strong>/src/google/protobuf/util/type_resolver_util.cc.o<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/sgemm/6x8-psimd.c.o<br>
[ 38%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_convolution.cpp.o<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8avgpool/mp8x9p8q-sse2.c.o<br>
[ 38%] Linking CXX static library ../../../lib/libgtest_main.a<br>
[ 38%] Built target gtest_main<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8avgpool/up8x9-sse2.c.o<br>
[ 38%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_1x1_conv_kernel_f32.cpp.o<br>
[ 38%] Linking CXX static library ../../../lib/libbenchmark_main.a<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8avgpool/up8xm-sse2.c.o<br>
In file included from /home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/proto_writer.cc:31:<br>
/home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/proto_writer.h:113:24: warning: 'RenderBytes' overrides a member function but is not marked 'override'<br>
[-Winconsistent-missing-override]<br>
virtual ProtoWriter* RenderBytes(StringPiece name, StringPiece value) {<br>
^<br>
/home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/object_writer.h:99:25: note: overridden virtual function is here<br>
virtual ObjectWriter* RenderBytes(StringPiece name, StringPiece value) = 0;<br>
^<br>
[ 38%] Built target benchmark_main<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8conv/4x4c2-sse2.c.o<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8dwconv/mp8x25-sse2.c.o<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8dwconv/up8x9-sse2.c.o<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gavgpool/mp8x7p7q-sse2.c.o<br>
[ 38%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/</strong>/src/google/protobuf/wire_format.cc.o<br>
[ 38%] Built target sleefsse2<br>
[ 38%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wrappers.pb.cc.o<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gavgpool/up8x7-sse2.c.o<br>
[ 38%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gavgpool/up8xm-sse2.c.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_1x1_convolution.cpp.o<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/2x4c8-sse2.c.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_conv_kernel_f32.cpp.o<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/4x4c2-sse2.c.o<br>
In file included from /home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/protostream_objectwriter.cc:31:<br>
In file included from /home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/protostream_objectwriter.h:45:<br>
/home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/proto_writer.h:113:24: warning: 'RenderBytes' overrides a member function but is not marked 'override'<br>
[-Winconsistent-missing-override]<br>
virtual ProtoWriter* RenderBytes(StringPiece name, StringPiece value) {<br>
^<br>
/home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/object_writer.h:99:25: note: overridden virtual function is here<br>
virtual ObjectWriter* RenderBytes(StringPiece name, StringPiece value) = 0;<br>
^<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8vadd/sse2.c.o<br>
In file included from /home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/type_info_test_helper.cc:31:<br>
In file included from /home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/type_info_test_helper.h:42:<br>
In file included from /home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/protostream_objectwriter.h:45:<br>
/home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/proto_writer.h:113:24: warning: 'RenderBytes' overrides a member function but is not marked 'override'<br>
[-Winconsistent-missing-override]<br>
virtual ProtoWriter* RenderBytes(StringPiece name, StringPiece value) {<br>
^<br>
/home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/object_writer.h:99:25: note: overridden virtual function is here<br>
virtual ObjectWriter* RenderBytes(StringPiece name, StringPiece value) = 0;<br>
^<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8clamp/sse2.c.o<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8maxpool/16x9p8q-sse2.c.o<br>
In file included from /home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/json_util.cc:41:<br>
In file included from /home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/protostream_objectwriter.h:45:<br>
/home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/proto_writer.h:113:24: warning: 'RenderBytes' overrides a member function but is not marked 'override'<br>
[-Winconsistent-missing-override]<br>
virtual ProtoWriter* RenderBytes(StringPiece name, StringPiece value) {<br>
^<br>
/home/user/zkself/pytorch/third_party/protobuf/src/google/protobuf/util/internal/object_writer.h:99:25: note: overridden virtual function is here<br>
virtual ObjectWriter* RenderBytes(StringPiece name, StringPiece value) = 0;<br>
^<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8maxpool/sub16-sse2.c.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_convolution.cpp.o<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8rmax/sse2.c.o<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/x2-sse2.c.o<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/x3-sse2.c.o<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/x4-sse2.c.o<br>
1 warning generated.<br>
[ 39%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/xm-sse2.c.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_transpose_src_utils.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_batch_normalization.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_dw_conv_kernel_f32.cpp.o<br>
1 warning generated.<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_dw_convolution.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_eltwise.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_lrn.cpp.o<br>
[ 39%] Linking C static library ../../lib/libqnnpack.a<br>
[ 39%] Built target qnnpack<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_lrn_kernel_f32.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_pool_kernel_f32.cpp.o<br>
1 warning generated.<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_pooling.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_reorder.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_reorder_utils.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/nchw_pooling.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ncsp_batch_normalization.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/nhwc_pooling.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/nspc_batch_normalization.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_batch_normalization.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_convolution.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_deconvolution.cpp.o<br>
1 warning generated.<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_eltwise.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_inner_product.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_lrn.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_pooling.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_shuffle.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_rnn.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_softmax.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/simple_concat.cpp.o<br>
[ 39%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/simple_sum.cpp.o<br>
[ 39%] Generating src/x86_64-fma/2d-fourier-16x16.py.o<br>
[ 39%] Linking CXX static library ../../../lib/libprotobuf.a<br>
[ 39%] Built target libprotobuf<br>
[ 39%] Generating src/x86_64-fma/2d-winograd-8x8-3x3.py.o<br>
[ 40%] Generating src/x86_64-fma/blas/s8gemm.py.o<br>
[ 40%] Generating src/x86_64-fma/blas/c8gemm.py.o<br>
[ 40%] Generating src/x86_64-fma/blas/s4c6gemm.py.o<br>
[ 40%] Generating src/x86_64-fma/blas/conv1x1.py.o<br>
[ 40%] Generating src/x86_64-fma/blas/sgemm.py.o<br>
[ 40%] Generating src/x86_64-fma/max-pooling.py.o<br>
[ 40%] Generating src/x86_64-fma/relu.py.o<br>
[ 40%] Generating src/x86_64-fma/softmax.py.o<br>
[ 40%] Generating src/x86_64-fma/blas/sdotxf.py.o<br>
[ 40%] Generating src/x86_64-fma/blas/shdotxf.py.o<br>
[ 41%] Linking CXX static library ../../../../lib/libmkldnn.a<br>
[ 41%] Built target mkldnn<br>
Scanning dependencies of target nnpack<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/init.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-output.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-output.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-inference.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-input-gradient.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/pooling-output.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/softmax-output.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-output.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-kernel-gradient.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-inference.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/x86_64-fma/softmax.c.o<br>
[ 41%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-input-gradient.c.o<br>
[ 41%] Linking C static library ../../lib/libnnpack.a<br>
[ 41%] Built target nnpack<br>
Makefile:140: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
Traceback (most recent call last):<br>
File "setup.py", line 720, in <br>
build_deps()<br>
File "setup.py", line 279, in build_deps<br>
build_dir='build')<br>
File "/home/user/zkself/pytorch/tools/build_pytorch_libs.py", line 227, in build_caffe2<br>
check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir)<br>
File "/home/user/anaconda2/envs/zk_py2.7caffe2/lib/python2.7/subprocess.py", line 190, in check_call<br>
raise CalledProcessError(retcode, cmd)<br>
subprocess.CalledProcessError: Command '['make', '-j', '40', 'install']' returned non-zero exit status 2</p>
<p dir="auto">env:<br>
ubuntu16.04<br>
py2.7(anaconda)<br>
cuda10 ,cudnn7.4.2<br>
rtx2080ti<br>
gcc 6/7</p>
<p dir="auto">i have no idea why the nnpack could not be built.<br>
somebody help…</p> | <ul dir="auto">
<li>OS: Ubuntu 16.04.4 LTS</li>
<li>PyTorch version: 0.3.1</li>
<li>How you installed PyTorch (conda, pip, source): pip</li>
<li>Python version: 3.6.2</li>
</ul>
<p dir="auto">It looks like torch (or dependencies) holds the GIL and asyncio loop is blocked.</p>
<p dir="auto">Code to reproduce:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import asyncio
import logging
import torch
async def foo():
while True:
logging.info("foo")
await asyncio.sleep(0.25)
async def yoba():
task = asyncio.ensure_future(foo())
await asyncio.sleep(0.5)
await loop.run_in_executor(None, torch.load, "model.pth")
await asyncio.sleep(0.5)
task.cancel()
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
asyncio.ensure_future(yoba())
loop = asyncio.get_event_loop()
loop.run_forever()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">asyncio</span>
<span class="pl-k">import</span> <span class="pl-s1">logging</span>
<span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">foo</span>():
<span class="pl-k">while</span> <span class="pl-c1">True</span>:
<span class="pl-s1">logging</span>.<span class="pl-en">info</span>(<span class="pl-s">"foo"</span>)
<span class="pl-k">await</span> <span class="pl-s1">asyncio</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">0.25</span>)
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">yoba</span>():
<span class="pl-s1">task</span> <span class="pl-c1">=</span> <span class="pl-s1">asyncio</span>.<span class="pl-en">ensure_future</span>(<span class="pl-en">foo</span>())
<span class="pl-k">await</span> <span class="pl-s1">asyncio</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">0.5</span>)
<span class="pl-k">await</span> <span class="pl-s1">loop</span>.<span class="pl-en">run_in_executor</span>(<span class="pl-c1">None</span>, <span class="pl-s1">torch</span>.<span class="pl-s1">load</span>, <span class="pl-s">"model.pth"</span>)
<span class="pl-k">await</span> <span class="pl-s1">asyncio</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">0.5</span>)
<span class="pl-s1">task</span>.<span class="pl-en">cancel</span>()
<span class="pl-s1">logging</span>.<span class="pl-en">basicConfig</span>(<span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-s1">logging</span>.<span class="pl-v">DEBUG</span>, <span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">"%(asctime)s - %(name)s - %(levelname)s - %(message)s"</span>)
<span class="pl-s1">asyncio</span>.<span class="pl-en">ensure_future</span>(<span class="pl-en">yoba</span>())
<span class="pl-s1">loop</span> <span class="pl-c1">=</span> <span class="pl-s1">asyncio</span>.<span class="pl-en">get_event_loop</span>()
<span class="pl-s1">loop</span>.<span class="pl-en">run_forever</span>()</pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ PYTHONASYNCIODEBUG=1 python pytorch-block-asyncio.py
2018-03-19 20:02:33,188 - asyncio - DEBUG - Using selector: EpollSelector
2018-03-19 20:02:33,192 - root - INFO - foo
2018-03-19 20:02:33,443 - root - INFO - foo
2018-03-19 20:02:35,333 - asyncio - WARNING - Executing <TimerHandle when=628364.105270115 _set_result_unless_cancelled(<Future finis...events.py:275>, None) at /home/broomrider/.pyenv/versions/3.6.2-kron/lib/python3.6/asyncio/futures.py:344 created at /home/broomrider/.pyenv/versions/3.6.2-kron/lib/python3.6/asyncio/tasks.py:480> took 1.630 seconds
2018-03-19 20:02:35,333 - root - INFO - foo
2018-03-19 20:02:35,463 - asyncio - DEBUG - poll 249.905 ms took 129.609 ms: 1 events
2018-03-19 20:02:35,584 - root - INFO - foo
2018-03-19 20:02:35,835 - root - INFO - foo"><pre class="notranslate"><code class="notranslate">$ PYTHONASYNCIODEBUG=1 python pytorch-block-asyncio.py
2018-03-19 20:02:33,188 - asyncio - DEBUG - Using selector: EpollSelector
2018-03-19 20:02:33,192 - root - INFO - foo
2018-03-19 20:02:33,443 - root - INFO - foo
2018-03-19 20:02:35,333 - asyncio - WARNING - Executing <TimerHandle when=628364.105270115 _set_result_unless_cancelled(<Future finis...events.py:275>, None) at /home/broomrider/.pyenv/versions/3.6.2-kron/lib/python3.6/asyncio/futures.py:344 created at /home/broomrider/.pyenv/versions/3.6.2-kron/lib/python3.6/asyncio/tasks.py:480> took 1.630 seconds
2018-03-19 20:02:35,333 - root - INFO - foo
2018-03-19 20:02:35,463 - asyncio - DEBUG - poll 249.905 ms took 129.609 ms: 1 events
2018-03-19 20:02:35,584 - root - INFO - foo
2018-03-19 20:02:35,835 - root - INFO - foo
</code></pre></div> | 0 |
<p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.201.0<br>
<strong>System</strong>: Microsoft Windows 7 Ultimate<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\DaPimp\AppData\Local\atom\app-0.201.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\DaPimp\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br>
at EventEmitter. (C:\Users\DaPimp\AppData\Local\atom\app-0.201.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\DaPimp\AppData\Local\atom\app-0.201.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\DaPimp\AppData\Local\atom\app-0.201.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\DaPimp\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)"><pre class="notranslate"><code class="notranslate">At C:\Users\DaPimp\AppData\Local\atom\app-0.201.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\DaPimp\AppData\Local\atom\app-0.201.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\DaPimp\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\DaPimp\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\DaPimp\AppData\Local\atom\app-0.201.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=" -0:37.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)
3x -0:34.7.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-0:31.7.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
-0:31.7.0 core:cancel (atom-text-editor.editor.mini.is-focused)
-0:31.5.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
-0:31.5.0 core:cancel (atom-text-editor.editor.is-focused)
-0:29.7.0 grammar-selector:show (atom-text-editor.editor)
14x -0:27.6.0 core:backspace (atom-text-editor.editor.mini.is-focused)
2x -0:23.3.0 core:move-down (atom-text-editor.editor.mini.is-focused)
-0:22.9.0 core:move-up (atom-text-editor.editor.mini.is-focused)
-0:22.7.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
2x -0:22.7.0 core:cancel (atom-text-editor.editor.mini.is-focused)"><pre class="notranslate"><code class="notranslate"> -0:37.6.0 command-palette:toggle (atom-text-editor.editor.is-focused)
3x -0:34.7.0 core:backspace (atom-text-editor.editor.mini.is-focused)
-0:31.7.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
-0:31.7.0 core:cancel (atom-text-editor.editor.mini.is-focused)
-0:31.5.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
-0:31.5.0 core:cancel (atom-text-editor.editor.is-focused)
-0:29.7.0 grammar-selector:show (atom-text-editor.editor)
14x -0:27.6.0 core:backspace (atom-text-editor.editor.mini.is-focused)
2x -0:23.3.0 core:move-down (atom-text-editor.editor.mini.is-focused)
-0:22.9.0 core:move-up (atom-text-editor.editor.mini.is-focused)
-0:22.7.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
2x -0:22.7.0 core:cancel (atom-text-editor.editor.mini.is-focused)
</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="{}"><pre class="notranslate">{}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
No installed packages
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
<span class="pl-en">No</span> <span class="pl-en">installed</span> packages
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">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> | 1 |
<p dir="auto">Given an array, we can sum with and without keepdims:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> x = np.arange(20).reshape(4, 5)
>>> print(x)
[[ 0 1 2 3 4]
[ 5 6 7 8 9]
[10 11 12 13 14]
[15 16 17 18 19]]
>>> print(np.sum(x, axis=1))
[10 35 60 85]
>>> print(np.sum(c, axis=1, keepdims=True))
[[10]
[35]
[60]
[85]]"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">20</span>).<span class="pl-en">reshape</span>(<span class="pl-c1">4</span>, <span class="pl-c1">5</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">x</span>)
[[ <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span>]
[ <span class="pl-c1">5</span> <span class="pl-c1">6</span> <span class="pl-c1">7</span> <span class="pl-c1">8</span> <span class="pl-c1">9</span>]
[<span class="pl-c1">10</span> <span class="pl-c1">11</span> <span class="pl-c1">12</span> <span class="pl-c1">13</span> <span class="pl-c1">14</span>]
[<span class="pl-c1">15</span> <span class="pl-c1">16</span> <span class="pl-c1">17</span> <span class="pl-c1">18</span> <span class="pl-c1">19</span>]]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-s1">x</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>))
[<span class="pl-c1">10</span> <span class="pl-c1">35</span> <span class="pl-c1">60</span> <span class="pl-c1">85</span>]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-s1">c</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">keepdims</span><span class="pl-c1">=</span><span class="pl-c1">True</span>))
[[<span class="pl-c1">10</span>]
[<span class="pl-c1">35</span>]
[<span class="pl-c1">60</span>]
[<span class="pl-c1">85</span>]]</pre></div>
<p dir="auto">But if we try the same thing with a masked array (even one without a mask):</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> xm = np.ma.array(x)
>>> print(xm)
[[ 0 1 2 3 4]
[ 5 6 7 8 9]
[10 11 12 13 14]
[15 16 17 18 19]]
>>> print(np.sum(xm, axis=1))
[10 35 60 85]
>>> print(np.sum(xm, axis=1, keepdims=True))
[10 35 60 85]"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">xm</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">ma</span>.<span class="pl-en">array</span>(<span class="pl-s1">x</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">xm</span>)
[[ <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span>]
[ <span class="pl-c1">5</span> <span class="pl-c1">6</span> <span class="pl-c1">7</span> <span class="pl-c1">8</span> <span class="pl-c1">9</span>]
[<span class="pl-c1">10</span> <span class="pl-c1">11</span> <span class="pl-c1">12</span> <span class="pl-c1">13</span> <span class="pl-c1">14</span>]
[<span class="pl-c1">15</span> <span class="pl-c1">16</span> <span class="pl-c1">17</span> <span class="pl-c1">18</span> <span class="pl-c1">19</span>]]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-s1">xm</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>))
[<span class="pl-c1">10</span> <span class="pl-c1">35</span> <span class="pl-c1">60</span> <span class="pl-c1">85</span>]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-s1">xm</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">keepdims</span><span class="pl-c1">=</span><span class="pl-c1">True</span>))
[<span class="pl-c1">10</span> <span class="pl-c1">35</span> <span class="pl-c1">60</span> <span class="pl-c1">85</span>]</pre></div>
<p dir="auto">Wat.</p>
<p dir="auto">Furthermore, if we try <code class="notranslate">xm.sum(axis=1, keepdims=True)</code> we get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: sum() got an unexpected keyword argument 'keepdims'"><pre class="notranslate"><code class="notranslate">TypeError: sum() got an unexpected keyword argument 'keepdims'
</code></pre></div>
<p dir="auto">For completeness:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> np.__version__
'1.10.1'"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">np</span>.<span class="pl-s1">__version__</span>
<span class="pl-s">'1.10.1'</span></pre></div> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> np.sum([1, 2], keepdims=True)
array([3])
>>> ma.sum([1, 2], keepdims=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "numpy/ma/core.py", line 6025, in __call__
return method(MaskedArray(a), *args, **params)
TypeError: sum() got an unexpected keyword argument 'keepdims'"><pre class="notranslate"><code class="notranslate">>>> np.sum([1, 2], keepdims=True)
array([3])
>>> ma.sum([1, 2], keepdims=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "numpy/ma/core.py", line 6025, in __call__
return method(MaskedArray(a), *args, **params)
TypeError: sum() got an unexpected keyword argument 'keepdims'
</code></pre></div> | 1 |
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 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): 1.12.0</li>
<li>TensorFlow version: 1.12.0</li>
<li>Python version: 3.6</li>
<li>Installed using virtualenv? pip? conda?: conda</li>
<li>Bazel version (if compiling from source): 0.22.0</li>
<li>GCC/Compiler version (if compiling from source): 5.4.0</li>
<li>CUDA/cuDNN version: cuda=10.0/cudnn=7.4.2</li>
<li>GPU model and memory: RTX 2080</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<p dir="auto">I installed the everything and ran the tests for cuda and cudnn that were said from and they both passed normally. Running small tests with tensorflow also worked, i.e. a linear regression model. However, I was trying to run a file using keras and doing a more complicated <a href="https://github.com/tensorflow/models/tree/master/samples/outreach/blogs/segmentation_blogpost">model</a> and it threw errors when it started running an individual epoch. I also just ran the code with only a small portion of the images.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I tensorflow/stream_executor/platform/default/dso_loader.cc:161] successfully opened CUDA library libcudnn.so.7 locally
E tensorflow/stream_executor/cuda/cuda_dnn.cc:482] Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
E tensorflow/stream_executor/cuda/cuda_dnn.cc:482] Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
...
...
tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
[[{{node conv2d/Conv2D}}]]
[[conv2d_transpose_2/Shape/_1171]]"><pre class="notranslate"><code class="notranslate">I tensorflow/stream_executor/platform/default/dso_loader.cc:161] successfully opened CUDA library libcudnn.so.7 locally
E tensorflow/stream_executor/cuda/cuda_dnn.cc:482] Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
E tensorflow/stream_executor/cuda/cuda_dnn.cc:482] Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
...
...
tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
[[{{node conv2d/Conv2D}}]]
[[conv2d_transpose_2/Shape/_1171]]
</code></pre></div>
<p dir="auto">Running the code normally with tensorflow works fine, only the gpu version is failing. I tried both building it from source and using tf-nightly-gpu.</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>: yes</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.8.0</li>
<li><strong>Python version</strong>: 3.5</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.14.1</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: 5.4.0</li>
<li><strong>CUDA/cuDNN version</strong>: 9.0</li>
<li><strong>GPU model and memory</strong>: Tesla K40c, 11440 MBytes</li>
<li><strong>Exact command to reproduce</strong>: see below</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I want the embedded python in my C++ code to import tensorflow, but the line "import tensorflow" gives an error at run time. That's no happening while importing other python modules. There is no problem with using tensorflow from my python shell/scripts, I can also compile and use custom ops written in C++, so that proofs that the installation worked without problems. I don't know if it's relevant, but my C++ library already uses tensorflow as third part shared library.</p>
<p dir="auto">Here my very easy C++ code that calls python:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" PyObject* pInt;
Py_Initialize();
PyRun_SimpleString("import tensorflow \n"
"print('Hello TF!!!')");
Py_Finalize();"><pre class="notranslate"><code class="notranslate"> PyObject* pInt;
Py_Initialize();
PyRun_SimpleString("import tensorflow \n"
"print('Hello TF!!!')");
Py_Finalize();
</code></pre></div>
<p dir="auto">Here is the error I get at runtime:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br>
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
File "/usr/lib/python3.5/imp.py", line 242, in load_module<br>
return load_dynamic(name, filename, file)<br>
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic<br>
return _load(spec)<br>
ImportError: /usr/local/lib/python3.5/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZNK6google8protobuf7Message11GetTypeNameEv</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/<strong>init</strong>.py", line 24, in <br>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/<strong>init</strong>.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <br>
raise ImportError(msg)<br>
ImportError: Traceback (most recent call last):<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br>
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
File "/usr/lib/python3.5/imp.py", line 242, in load_module<br>
return load_dynamic(name, filename, file)<br>
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic<br>
return _load(spec)<br>
ImportError: /usr/local/lib/python3.5/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZNK6google8protobuf7Message11GetTypeNameEv</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> | 0 |
<p dir="auto">I'm getting a numpy error trying to install scipy. I get the same numpy error trying to install pandas, so I assume the problem is with numpy. I've tried reinstalling numpy and Python.</p>
<p dir="auto">IBM i<br>
numpy 1.14.4 (installed via pip3)<br>
Python 3.6.5-1 (installed via yum)</p>
<p dir="auto">-bash-4.3$ pip3 install scipy</p>
<p dir="auto">Collecting scipy</p>
<p dir="auto">Using cached <a href="https://files.pythonhosted.org/packages/07/76/7e844757b9f3bf5ab9f951ccd3e4a8eed91ab8720b0aac8c2adcc2fdae9f/scipy-1.1.0.tar.gz" rel="nofollow">https://files.pythonhosted.org/packages/07/76/7e844757b9f3bf5ab9f951ccd3e4a8eed91ab8720b0aac8c2adcc2fdae9f/scipy-1.1.0.tar.gz</a></p>
<p dir="auto">Requirement already satisfied: numpy>=1.8.2 in /QOpenSys/pkgs/lib/python3.6/site-packages (from scipy)</p>
<p dir="auto">Installing collected packages: scipy</p>
<p dir="auto">Running setup.py install for scipy ... error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Complete output from command /QOpenSys/pkgs/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-c46gpjy8/scipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-mgpugb72-record/install-record.txt --single-version-externally-managed --compile:
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install scipy` (last SciPy release on PyPI)
Traceback (most recent call last):
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/__init__.py", line 16, in <module>
from . import multiarray
ImportError: Could not load module /QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/multiarray.so.
The local-exec model was used for thread-local
storage, but the module is not the main program.
Examine the .loader section header with the 'dump -Hv' command.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-c46gpjy8/scipy/setup.py", line 474, in <module>
setup_package()
File "/tmp/pip-build-c46gpjy8/scipy/setup.py", line 450, in setup_package
from numpy.distutils.core import setup
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: Could not load module /QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/multiarray.so.
The local-exec model was used for thread-local
storage, but the module is not the main program.
Examine the .loader section header with the 'dump -Hv' command.
----------------------------------------"><pre class="notranslate"><code class="notranslate">Complete output from command /QOpenSys/pkgs/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-c46gpjy8/scipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-mgpugb72-record/install-record.txt --single-version-externally-managed --compile:
Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install scipy` (last SciPy release on PyPI)
Traceback (most recent call last):
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/__init__.py", line 16, in <module>
from . import multiarray
ImportError: Could not load module /QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/multiarray.so.
The local-exec model was used for thread-local
storage, but the module is not the main program.
Examine the .loader section header with the 'dump -Hv' command.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-c46gpjy8/scipy/setup.py", line 474, in <module>
setup_package()
File "/tmp/pip-build-c46gpjy8/scipy/setup.py", line 450, in setup_package
from numpy.distutils.core import setup
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/__init__.py", line 26, in <module>
raise ImportError(msg)
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
Original error was: Could not load module /QOpenSys/pkgs/lib/python3.6/site-packages/numpy/core/multiarray.so.
The local-exec model was used for thread-local
storage, but the module is not the main program.
Examine the .loader section header with the 'dump -Hv' command.
----------------------------------------
</code></pre></div>
<p dir="auto">Command "/QOpenSys/pkgs/bin/python3 -u -c "import setuptools, tokenize;<strong>file</strong>='/tmp/pip-build-c46gpjy8/scipy/setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record /tmp/pip-mgpugb72-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-c46gpjy8/scipy/</p> | <p dir="auto">Platform: AIX<br>
Version: 7.1<br>
Python 3.6.5 from Bulls' Freeware<br>
pip 19.2.3 from /opt/freeware/lib/python3.6/site-packages/pip (python 3.6)<br>
numpy 1.17.2</p>
<p dir="auto">Issue: Numpy installs but does not import.<br>
Error on import:<br>
Original error was: Could not load module /opt/freeware/lib64/python3.6/site-packages/numpy/core/_multiarray_umath.so.<br>
The local-exec model was used for thread-local<br>
storage, but the module is not the main program.<br>
Examine the .loader section header with the 'dump -Hv' command.</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
### Error message:
### Numpy/Python version information:
<!-- Output from 'import sys, numpy; print(numpy.__version__, sys.version)' -->
>>> import sys, numpy; print(numpy.__version__, sys.version)
Traceback (most recent call last):
File "/opt/freeware/lib64/python3.6/site-packages/numpy/core/__init__.py", line 17, in <module>
from . import multiarray
File "/opt/freeware/lib64/python3.6/site-packages/numpy/core/multiarray.py", line 14, in <module>
from . import overrides
File "/opt/freeware/lib64/python3.6/site-packages/numpy/core/overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ImportError: Could not load module /opt/freeware/lib64/python3.6/site-packages/numpy/core/_multiarray_umath.so.
The local-exec model was used for thread-local
storage, but the module is not the main program.
Examine the .loader section header with the 'dump -Hv' command.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/freeware/lib64/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
from . import core
File "/opt/freeware/lib64/python3.6/site-packages/numpy/core/__init__.py", line 47, in <module>
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
1. Check that you expected to use Python3.6 from "/usr/bin/python",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.17.2" you're trying to use.
2. If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues. Please include details on:
- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a build log
- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.
Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.
Original error was: Could not load module /opt/freeware/lib64/python3.6/site-packages/numpy/core/_multiarray_umath.so.
The local-exec model was used for thread-local
storage, but the module is not the main program.
Examine the .loader section header with the 'dump -Hv' command.
>>>
"><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-c">### Error message:</span>
<span class="pl-c">### Numpy/Python version information:</span>
<span class="pl-c1"><</span>!<span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">Output</span> <span class="pl-k">from</span> <span class="pl-s">'import sys, numpy; print(numpy.__version__, sys.version)'</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">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">numpy</span>; <span class="pl-en">print</span>(<span class="pl-s1">numpy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version</span>)
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"/opt/freeware/lib64/python3.6/site-packages/numpy/core/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">17</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-s1">from</span> . <span class="pl-s1">import</span> <span class="pl-s1">multiarray</span>
<span class="pl-v">File</span> <span class="pl-s">"/opt/freeware/lib64/python3.6/site-packages/numpy/core/multiarray.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">14</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-s1">from</span> . <span class="pl-s1">import</span> <span class="pl-s1">overrides</span>
<span class="pl-v">File</span> <span class="pl-s">"/opt/freeware/lib64/python3.6/site-packages/numpy/core/overrides.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">7</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-s1">from</span> <span class="pl-s1">numpy</span>.<span class="pl-s1">core</span>.<span class="pl-s1">_multiarray_umath</span> <span class="pl-s1">import</span> (
<span class="pl-v">ImportError</span>: <span class="pl-v">Could</span> <span class="pl-c1">not</span> <span class="pl-s1">load</span> <span class="pl-s1">module</span> <span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">freeware</span><span class="pl-c1">/</span><span class="pl-s1">lib64</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">6</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">numpy</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">_multiarray_umath</span>.<span class="pl-s1">so</span>.
<span class="pl-v">The</span> <span class="pl-s1">local</span><span class="pl-c1">-</span><span class="pl-s1">exec</span> <span class="pl-s1">model</span> <span class="pl-s1">was</span> <span class="pl-s1">used</span> <span class="pl-k">for</span> <span class="pl-s1">thread</span><span class="pl-c1">-</span><span class="pl-s1">local</span>
<span class="pl-s1">storage</span>, <span class="pl-s1">but</span> <span class="pl-s1">the</span> <span class="pl-s1">module</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-s1">the</span> <span class="pl-s1">main</span> <span class="pl-s1">program</span>.
<span class="pl-v">Examine</span> <span class="pl-s1">the</span> .<span class="pl-s1">loader</span> <span class="pl-s1">section</span> <span class="pl-s1">header</span> <span class="pl-s1">with</span> <span class="pl-s1">the</span> <span class="pl-s">'dump -Hv'</span> <span class="pl-s1">command</span>.
<span class="pl-v">During</span> <span class="pl-s1">handling</span> <span class="pl-s1">of</span> <span class="pl-s1">the</span> <span class="pl-s1">above</span> <span class="pl-s1">exception</span>, <span class="pl-s1">another</span> <span class="pl-s1">exception</span> <span class="pl-s1">occurred</span>:
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"<stdin>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">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">"/opt/freeware/lib64/python3.6/site-packages/numpy/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">142</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-s1">from</span> . <span class="pl-s1">import</span> <span class="pl-s1">core</span>
<span class="pl-v">File</span> <span class="pl-s">"/opt/freeware/lib64/python3.6/site-packages/numpy/core/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">47</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-s1">raise</span> <span class="pl-v">ImportError</span>(<span class="pl-s1">msg</span>)
<span class="pl-v">ImportError</span>:
<span class="pl-v">IMPORTANT</span>: <span class="pl-v">PLEASE</span> <span class="pl-v">READ</span> <span class="pl-v">THIS</span> <span class="pl-v">FOR</span> <span class="pl-v">ADVICE</span> <span class="pl-v">ON</span> <span class="pl-v">HOW</span> <span class="pl-v">TO</span> <span class="pl-v">SOLVE</span> <span class="pl-v">THIS</span> <span class="pl-v">ISSUE</span>!
<span class="pl-v">Importing</span> <span class="pl-s1">the</span> <span class="pl-s1">numpy</span> <span class="pl-s1">c</span><span class="pl-c1">-</span><span class="pl-s1">extensions</span> <span class="pl-s1">failed</span>.
<span class="pl-c1">-</span> <span class="pl-v">Try</span> <span class="pl-s1">uninstalling</span> <span class="pl-c1">and</span> <span class="pl-s1">reinstalling</span> <span class="pl-s1">numpy</span>.
<span class="pl-c1">-</span> <span class="pl-v">If</span> <span class="pl-s1">you</span> <span class="pl-s1">have</span> <span class="pl-s1">already</span> <span class="pl-s1">done</span> <span class="pl-s1">that</span>, <span class="pl-s1">then</span>:
<span class="pl-c1">1.</span> <span class="pl-v">Check</span> <span class="pl-s1">that</span> <span class="pl-s1">you</span> <span class="pl-s1">expected</span> <span class="pl-s1">to</span> <span class="pl-s1">use</span> <span class="pl-v">Python3</span><span class="pl-c1">.6</span> <span class="pl-s1">from</span> <span class="pl-s">"/usr/bin/python"</span>,
<span class="pl-s1">and</span> <span class="pl-s1">that</span> <span class="pl-s1">you</span> <span class="pl-s1">have</span> <span class="pl-s1">no</span> <span class="pl-s1">directories</span> <span class="pl-c1">in</span> <span class="pl-s1">your</span> <span class="pl-v">PATH</span> <span class="pl-c1">or</span> <span class="pl-v">PYTHONPATH</span> <span class="pl-s1">that</span> <span class="pl-s1">can</span>
<span class="pl-s1">interfere</span> <span class="pl-s1">with</span> <span class="pl-s1">the</span> <span class="pl-v">Python</span> <span class="pl-c1">and</span> <span class="pl-s1">numpy</span> <span class="pl-s1">version</span> <span class="pl-s">"1.17.2"</span> <span class="pl-s1">you</span>'<span class="pl-s1">re</span> <span class="pl-s1">trying</span> <span class="pl-s1">to</span> <span class="pl-s1">use</span>.
<span class="pl-c1">2.</span> <span class="pl-v">If</span> (<span class="pl-c1">1</span>) <span class="pl-s1">looks</span> <span class="pl-s1">fine</span>, <span class="pl-s1">you</span> <span class="pl-s1">can</span> <span class="pl-s1">open</span> <span class="pl-s1">a</span> <span class="pl-s1">new</span> <span class="pl-s1">issue</span> <span class="pl-s1">at</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-c1">/</span><span class="pl-s1">issues</span>. <span class="pl-v">Please</span> <span class="pl-s1">include</span> <span class="pl-s1">details</span> <span class="pl-s1">on</span>:
<span class="pl-c1">-</span> <span class="pl-s1">how</span> <span class="pl-s1">you</span> <span class="pl-s1">installed</span> <span class="pl-v">Python</span>
<span class="pl-c1">-</span> <span class="pl-s1">how</span> <span class="pl-s1">you</span> <span class="pl-s1">installed</span> <span class="pl-s1">numpy</span>
<span class="pl-c1">-</span> <span class="pl-s1">your</span> <span class="pl-s1">operating</span> <span class="pl-s1">system</span>
<span class="pl-c1">-</span> <span class="pl-s1">whether</span> <span class="pl-c1">or</span> <span class="pl-c1">not</span> <span class="pl-s1">you</span> <span class="pl-s1">have</span> <span class="pl-s1">multiple</span> <span class="pl-s1">versions</span> <span class="pl-s1">of</span> <span class="pl-v">Python</span> <span class="pl-s1">installed</span>
<span class="pl-c1">-</span> <span class="pl-s1">if</span> <span class="pl-s1">you</span> <span class="pl-s1">built</span> <span class="pl-s1">from</span> <span class="pl-s1">source</span>, <span class="pl-s1">your</span> <span class="pl-s1">compiler</span> <span class="pl-s1">versions</span> <span class="pl-c1">and</span> <span class="pl-s1">ideally</span> <span class="pl-s1">a</span> <span class="pl-s1">build</span> <span class="pl-s1">log</span>
<span class="pl-c1">-</span> <span class="pl-v">If</span> <span class="pl-s1">you</span>'<span class="pl-s1">re</span> <span class="pl-s1">working</span> <span class="pl-s1">with</span> <span class="pl-s1">a</span> <span class="pl-s1">numpy</span> <span class="pl-s1">git</span> <span class="pl-s1">repository</span>, <span class="pl-s1">try</span> <span class="pl-s">`git clean -xdf`</span>
(<span class="pl-s1">removes</span> <span class="pl-s1">all</span> <span class="pl-s1">files</span> <span class="pl-c1">not</span> <span class="pl-s1">under</span> <span class="pl-s1">version</span> <span class="pl-s1">control</span>) <span class="pl-c1">and</span> <span class="pl-s1">rebuild</span> <span class="pl-s1">numpy</span>.
<span class="pl-v">Note</span>: <span class="pl-s1">this</span> <span class="pl-s1">error</span> <span class="pl-s1">has</span> <span class="pl-s1">many</span> <span class="pl-s1">possible</span> <span class="pl-s1">causes</span>, <span class="pl-s1">so</span> <span class="pl-s1">please</span> <span class="pl-s1">don</span>'<span class="pl-s1">t</span> <span class="pl-s1">comment</span> <span class="pl-s1">on</span>
<span class="pl-s1">an</span> <span class="pl-s1">existing</span> <span class="pl-s1">issue</span> <span class="pl-s1">about</span> <span class="pl-s1">this</span> <span class="pl-c1">-</span> <span class="pl-s1">open</span> <span class="pl-s1">a</span> <span class="pl-s1">new</span> <span class="pl-s1">one</span> <span class="pl-s1">instead</span>.
<span class="pl-v">Original</span> <span class="pl-s1">error</span> <span class="pl-s1">was</span>: <span class="pl-v">Could</span> <span class="pl-c1">not</span> <span class="pl-s1">load</span> <span class="pl-s1">module</span> <span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">freeware</span><span class="pl-c1">/</span><span class="pl-s1">lib64</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">6</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">numpy</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">_multiarray_umath</span>.<span class="pl-s1">so</span>.
<span class="pl-v">The</span> <span class="pl-s1">local</span><span class="pl-c1">-</span><span class="pl-s1">exec</span> <span class="pl-s1">model</span> <span class="pl-s1">was</span> <span class="pl-s1">used</span> <span class="pl-k">for</span> <span class="pl-s1">thread</span><span class="pl-c1">-</span><span class="pl-s1">local</span>
<span class="pl-s1">storage</span>, <span class="pl-s1">but</span> <span class="pl-s1">the</span> <span class="pl-s1">module</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-s1">the</span> <span class="pl-s1">main</span> <span class="pl-s1">program</span>.
<span class="pl-v">Examine</span> <span class="pl-s1">the</span> .<span class="pl-s1">loader</span> <span class="pl-s1">section</span> <span class="pl-s1">header</span> <span class="pl-s1">with</span> <span class="pl-s1">the</span> <span class="pl-s">'dump -Hv'</span> <span class="pl-s1">command</span>.
<span class="pl-c1">>></span><span class="pl-c1">></span>
</pre></div> | 1 |
<p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong><br>
Primarily for the sake of the generated OpenAPI spec (but also for security/validation reasons), I currently specify a <code class="notranslate">response_model</code> for nearly all of my endpoints, but for the vast majority of my endpoints, the <code class="notranslate">response_model</code> is the same as the type that the endpoint returns.</p>
<p dir="auto">This means that I am frequently duplicating the <code class="notranslate">response_model</code> in the return annotation.</p>
<p dir="auto">In order to reduce duplication/room for copying/refactoring mistakes, it would be great if it were possible to (optionally) infer the <code class="notranslate">response_model</code> from the endpoint signature.</p>
<p dir="auto">It should still be possible to override the value, and it should be ignored if a raw <code class="notranslate">Response</code> class is returned, I would just want the <em>default</em> to be the annotated return type of the endpoint. <strong>Note: this implementation would also make it much easier to catch anywhere the <code class="notranslate">response_model</code> <em>differed</em> from the returned value's type while scanning through code.</strong></p>
<p dir="auto">To be clear, I <em>don't</em> think this needs to be the default behavior, I just would like the option to enable it.</p>
<hr>
<p dir="auto">I am currently using the following subclass of <code class="notranslate">APIRouter</code> in my code to enable this:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from typing import TYPE_CHECKING, Any, Callable, get_type_hints
from fastapi import APIRouter
class InferringRouter(APIRouter):
if not TYPE_CHECKING:
def add_api_route(self, path: str, endpoint: Callable[..., Any], **kwargs: Any) -> None:
if kwargs.get("response_model") is None:
kwargs["response_model"] = get_type_hints(endpoint).get("return")
return super().add_api_route(path, endpoint, **kwargs)
else: # pragma: no cover
pass"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">TYPE_CHECKING</span>, <span class="pl-v">Any</span>, <span class="pl-v">Callable</span>, <span class="pl-s1">get_type_hints</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">APIRouter</span>
<span class="pl-k">class</span> <span class="pl-v">InferringRouter</span>(<span class="pl-v">APIRouter</span>):
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-v">TYPE_CHECKING</span>:
<span class="pl-k">def</span> <span class="pl-en">add_api_route</span>(<span class="pl-s1">self</span>, <span class="pl-s1">path</span>: <span class="pl-s1">str</span>, <span class="pl-s1">endpoint</span>: <span class="pl-v">Callable</span>[..., <span class="pl-v">Any</span>], <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>: <span class="pl-v">Any</span>) <span class="pl-c1">-></span> <span class="pl-c1">None</span>:
<span class="pl-k">if</span> <span class="pl-s1">kwargs</span>.<span class="pl-en">get</span>(<span class="pl-s">"response_model"</span>) <span class="pl-c1">is</span> <span class="pl-c1">None</span>:
<span class="pl-s1">kwargs</span>[<span class="pl-s">"response_model"</span>] <span class="pl-c1">=</span> <span class="pl-en">get_type_hints</span>(<span class="pl-s1">endpoint</span>).<span class="pl-en">get</span>(<span class="pl-s">"return"</span>)
<span class="pl-k">return</span> <span class="pl-en">super</span>().<span class="pl-en">add_api_route</span>(<span class="pl-s1">path</span>, <span class="pl-s1">endpoint</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>)
<span class="pl-k">else</span>: <span class="pl-c"># pragma: no cover</span>
<span class="pl-k">pass</span></pre></div>
<p dir="auto">I think it would be nice if this capability was upstreamed though, both to ensure it is maintained, but also so others can benefit.</p>
<hr>
<p dir="auto"><strong>Describe the solution you'd like</strong></p>
<p dir="auto">Rather than using the above implementation (which has some problems -- for example, it isn't possible to specify <code class="notranslate">None</code> as the <code class="notranslate">response_model</code> with an annotated return type), I think it would be better if there were a boolean-valued keyword argument to the <code class="notranslate">APIRouter</code> initializer that, if enabled, would cause the default behavior to be to have the annotated return type used as the <code class="notranslate">response_model</code> by default.</p> | <h3 dir="auto">First check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
</ul>
<h3 dir="auto">Description</h3>
<p dir="auto">I am trying to setup a dependency that will accept a paramter from a Body or Query (it will be used as a dependency for POST and GET requests.<br>
I need to be able to look for the env parameter in either the Body or Query. Something like this maybe:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def testFactory(env: str = Body(...) or Query(...)):
testDict = {
'testenv1' = TestObject1(),
'testenv2' = TestObject2()
}
return testDict.get(env)"><pre class="notranslate"><code class="notranslate">def testFactory(env: str = Body(...) or Query(...)):
testDict = {
'testenv1' = TestObject1(),
'testenv2' = TestObject2()
}
return testDict.get(env)
</code></pre></div>
<p dir="auto">I'm an amateur programmer, so please let me know if I'm just not doing it right!</p> | 0 |
<h3 dir="auto">Problem description</h3>
<p dir="auto">I'm using this library with redux-from and getting the following error after updating it to the 0.16.0 version: <code class="notranslate">Error: <circle> attribute r: A negative value is not valid. ("-1.6") DOMPropertyOperations.js:143</code></p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.16.0</li>
<li>React: 15.0.0</li>
<li>Browser: Króm</li>
</ul> | <h3 dir="auto">Problem description</h3>
<p dir="auto">I just updated to <code class="notranslate">0.16.0-rc2</code> and I am getting this error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: <circle> attribute r: A negative value is not valid. ("-0.75")"><pre class="notranslate"><code class="notranslate">Error: <circle> attribute r: A negative value is not valid. ("-0.75")
</code></pre></div>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">I just updated to <code class="notranslate">0.16.0-rc2</code>.</p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.16.0-rc2</li>
<li>React: 15.3.2</li>
<li>Browser: Chrome & Safari, not in Firefox.</li>
</ul> | 1 |
<p dir="auto"><strong>Migrated issue, originally created by Marek Baczyński (<a href="https://github.com/imbaczek">@imbaczek</a>)</strong></p>
<p dir="auto">DB: SQL Server 2008R2</p>
<p dir="auto">SQLAlchemy==0.9.3</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import Column, Integer, String, MetaData, ForeignKey
from sqlalchemy import Enum, Text, Sequence, BigInteger, DateTime, Boolean
from sqlalchemy import UniqueConstraint, CheckConstraint
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
convention = {
"ix": 'ix_%(column_0_label)s',
"uq": "uq_%(table_name)s_%(column_0_name)s",
"ck": "ck_%(table_name)s_%(constraint_name)s",
"fk": "fk_%(table_name)s_%(column_0_name)s_%(referred_table_name)s",
"pk": "pk_%(table_name)s"
}
metadata = MetaData(naming_convention=convention)
Base = declarative_base(metadata=metadata)
class Table(Base):
__tablename__ = 'table'
id = Column(Integer, primary_key=True)
col1 = Column(Enum('one', 'two', name='col1'), nullable=True)
col2 = Column(Boolean(name='col2'), nullable=True)
"><pre class="notranslate"><code class="notranslate">from sqlalchemy import Column, Integer, String, MetaData, ForeignKey
from sqlalchemy import Enum, Text, Sequence, BigInteger, DateTime, Boolean
from sqlalchemy import UniqueConstraint, CheckConstraint
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
convention = {
"ix": 'ix_%(column_0_label)s',
"uq": "uq_%(table_name)s_%(column_0_name)s",
"ck": "ck_%(table_name)s_%(constraint_name)s",
"fk": "fk_%(table_name)s_%(column_0_name)s_%(referred_table_name)s",
"pk": "pk_%(table_name)s"
}
metadata = MetaData(naming_convention=convention)
Base = declarative_base(metadata=metadata)
class Table(Base):
__tablename__ = 'table'
id = Column(Integer, primary_key=True)
col1 = Column(Enum('one', 'two', name='col1'), nullable=True)
col2 = Column(Boolean(name='col2'), nullable=True)
</code></pre></div>
<p dir="auto">metadata.create_all() results in this sql:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO [sqlalchemy.engine.base.Engine]
CREATE TABLE [table] (
id INTEGER NOT NULL IDENTITY(1,1),
col1 VARCHAR(3) NULL,
col2 BIT NULL,
CONSTRAINT pk_table PRIMARY KEY (id),
-- expected ck_table_col1
CONSTRAINT ck_table_ck_table_col1 CHECK (col1 IN ('one', 'two')),
-- expected ck_table_col2
CONSTRAINT ck_table_ck_table_col2 CHECK (col2 IN (0, 1))
)
INFO [sqlalchemy.engine.base.Engine] {}
INFO [sqlalchemy.engine.base.Engine] COMMIT"><pre class="notranslate"><code class="notranslate">INFO [sqlalchemy.engine.base.Engine]
CREATE TABLE [table] (
id INTEGER NOT NULL IDENTITY(1,1),
col1 VARCHAR(3) NULL,
col2 BIT NULL,
CONSTRAINT pk_table PRIMARY KEY (id),
-- expected ck_table_col1
CONSTRAINT ck_table_ck_table_col1 CHECK (col1 IN ('one', 'two')),
-- expected ck_table_col2
CONSTRAINT ck_table_ck_table_col2 CHECK (col2 IN (0, 1))
)
INFO [sqlalchemy.engine.base.Engine] {}
INFO [sqlalchemy.engine.base.Engine] COMMIT
</code></pre></div> | <p dir="auto"><strong>Describe the bug</strong><br>
I get selectin join sql produced even when adding noload to options on the select_from subquery</p>
<p dir="auto"><strong>Expected behavior</strong><br>
adding a noload strategy to the Select should override the default load strategy and additional selectin statements shouldn't be produced</p>
<p dir="auto"><strong>To Reproduce</strong><br>
Run the code below - look at the SQL output</p>
<p dir="auto">I attempted to add the noload option to the outer c_stmt select but I get the "Query has only expression-based entities" error like in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="856887403" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/6253" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/6253/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/6253">#6253</a></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from dataclasses import dataclass
from dataclasses import field
from typing import List
from sqlalchemy import Column, VARCHAR, create_engine, ForeignKey
from sqlalchemy import select
from sqlalchemy.orm import registry, sessionmaker, relationship, noload
from sqlalchemy.sql.expression import func
mapper_registry = registry()
engine = create_engine('DB_URL', echo=True, future=True)
Session = sessionmaker(engine, expire_on_commit=False)
@mapper_registry.mapped
@dataclass
class ExampleChildEntity:
__tablename__ = "child"
__table_args__ = {'schema': 'ex'}
__sa_dataclass_metadata_key__ = "sa"
child_guid: str = field(metadata={"sa": Column(VARCHAR(36), primary_key=True)}, default=None)
example_guid: str = field(metadata={"sa": Column(VARCHAR(36), ForeignKey('ex.example.example_guid'))}, default=None)
child_field: str = field(metadata={"sa": Column(VARCHAR)}, default=None)
@mapper_registry.mapped
@dataclass
class ExampleEntity:
__tablename__ = "example"
__table_args__ = {'schema': 'ex'}
__sa_dataclass_metadata_key__ = "sa"
example_guid: str = field(metadata={"sa": Column(VARCHAR(36), primary_key=True)}, default=None)
example_field: str = field(metadata={"sa": Column(VARCHAR)}, default=None)
children: List[ExampleChildEntity] = field(default_factory=list, metadata={"sa": relationship(
"ExampleChildEntity", cascade="all, delete-orphan", lazy='selectin')})
example = ExampleEntity(
example_guid='EX-1',
example_field='example field',
children=[ExampleChildEntity(
child_guid='CH-1',
example_guid='EX-1',
child_field='child field'
)]
)
with Session() as session:
with session.begin():
session.add(example)
with Session() as session:
with session.begin():
stmt = select(ExampleEntity)
stmt = stmt.where(ExampleEntity.example_field.ilike("%field%"))
stmt = stmt.options(noload(ExampleEntity.children))
c_stmt = select(ExampleEntity)
c_stmt = c_stmt.where(ExampleEntity.example_field.ilike("%field%"))
c_stmt = c_stmt.options(noload(ExampleEntity.children))
count_stmt = select(func.count()).select_from(c_stmt)
count = session.execute(count_stmt)
result = session.execute(stmt)
examples = result.scalars().all()
print(examples)
with Session() as session:
with session.begin():
e = session.get(ExampleEntity, example.example_guid)
session.delete(e)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">dataclasses</span> <span class="pl-k">import</span> <span class="pl-s1">dataclass</span>
<span class="pl-k">from</span> <span class="pl-s1">dataclasses</span> <span class="pl-k">import</span> <span class="pl-s1">field</span>
<span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">List</span>
<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">VARCHAR</span>, <span class="pl-s1">create_engine</span>, <span class="pl-v">ForeignKey</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">select</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">registry</span>, <span class="pl-s1">sessionmaker</span>, <span class="pl-s1">relationship</span>, <span class="pl-s1">noload</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">sql</span>.<span class="pl-s1">expression</span> <span class="pl-k">import</span> <span class="pl-s1">func</span>
<span class="pl-s1">mapper_registry</span> <span class="pl-c1">=</span> <span class="pl-en">registry</span>()
<span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">'DB_URL'</span>, <span class="pl-s1">echo</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">future</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-v">Session</span> <span class="pl-c1">=</span> <span class="pl-en">sessionmaker</span>(<span class="pl-s1">engine</span>, <span class="pl-s1">expire_on_commit</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-en">@<span class="pl-s1">mapper_registry</span>.<span class="pl-s1">mapped</span></span>
<span class="pl-en">@<span class="pl-s1">dataclass</span></span>
<span class="pl-k">class</span> <span class="pl-v">ExampleChildEntity</span>:
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"child"</span>
<span class="pl-s1">__table_args__</span> <span class="pl-c1">=</span> {<span class="pl-s">'schema'</span>: <span class="pl-s">'ex'</span>}
<span class="pl-s1">__sa_dataclass_metadata_key__</span> <span class="pl-c1">=</span> <span class="pl-s">"sa"</span>
<span class="pl-s1">child_guid</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-en">field</span>(<span class="pl-s1">metadata</span><span class="pl-c1">=</span>{<span class="pl-s">"sa"</span>: <span class="pl-v">Column</span>(<span class="pl-v">VARCHAR</span>(<span class="pl-c1">36</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)}, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)
<span class="pl-s1">example_guid</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-en">field</span>(<span class="pl-s1">metadata</span><span class="pl-c1">=</span>{<span class="pl-s">"sa"</span>: <span class="pl-v">Column</span>(<span class="pl-v">VARCHAR</span>(<span class="pl-c1">36</span>), <span class="pl-v">ForeignKey</span>(<span class="pl-s">'ex.example.example_guid'</span>))}, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)
<span class="pl-s1">child_field</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-en">field</span>(<span class="pl-s1">metadata</span><span class="pl-c1">=</span>{<span class="pl-s">"sa"</span>: <span class="pl-v">Column</span>(<span class="pl-v">VARCHAR</span>)}, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)
<span class="pl-en">@<span class="pl-s1">mapper_registry</span>.<span class="pl-s1">mapped</span></span>
<span class="pl-en">@<span class="pl-s1">dataclass</span></span>
<span class="pl-k">class</span> <span class="pl-v">ExampleEntity</span>:
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"example"</span>
<span class="pl-s1">__table_args__</span> <span class="pl-c1">=</span> {<span class="pl-s">'schema'</span>: <span class="pl-s">'ex'</span>}
<span class="pl-s1">__sa_dataclass_metadata_key__</span> <span class="pl-c1">=</span> <span class="pl-s">"sa"</span>
<span class="pl-s1">example_guid</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-en">field</span>(<span class="pl-s1">metadata</span><span class="pl-c1">=</span>{<span class="pl-s">"sa"</span>: <span class="pl-v">Column</span>(<span class="pl-v">VARCHAR</span>(<span class="pl-c1">36</span>), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)}, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)
<span class="pl-s1">example_field</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-en">field</span>(<span class="pl-s1">metadata</span><span class="pl-c1">=</span>{<span class="pl-s">"sa"</span>: <span class="pl-v">Column</span>(<span class="pl-v">VARCHAR</span>)}, <span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)
<span class="pl-s1">children</span>: <span class="pl-v">List</span>[<span class="pl-v">ExampleChildEntity</span>] <span class="pl-c1">=</span> <span class="pl-en">field</span>(<span class="pl-s1">default_factory</span><span class="pl-c1">=</span><span class="pl-s1">list</span>, <span class="pl-s1">metadata</span><span class="pl-c1">=</span>{<span class="pl-s">"sa"</span>: <span class="pl-en">relationship</span>(
<span class="pl-s">"ExampleChildEntity"</span>, <span class="pl-s1">cascade</span><span class="pl-c1">=</span><span class="pl-s">"all, delete-orphan"</span>, <span class="pl-s1">lazy</span><span class="pl-c1">=</span><span class="pl-s">'selectin'</span>)})
<span class="pl-s1">example</span> <span class="pl-c1">=</span> <span class="pl-v">ExampleEntity</span>(
<span class="pl-s1">example_guid</span><span class="pl-c1">=</span><span class="pl-s">'EX-1'</span>,
<span class="pl-s1">example_field</span><span class="pl-c1">=</span><span class="pl-s">'example field'</span>,
<span class="pl-s1">children</span><span class="pl-c1">=</span>[<span class="pl-v">ExampleChildEntity</span>(
<span class="pl-s1">child_guid</span><span class="pl-c1">=</span><span class="pl-s">'CH-1'</span>,
<span class="pl-s1">example_guid</span><span class="pl-c1">=</span><span class="pl-s">'EX-1'</span>,
<span class="pl-s1">child_field</span><span class="pl-c1">=</span><span class="pl-s">'child field'</span>
)]
)
<span class="pl-k">with</span> <span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">session</span>:
<span class="pl-k">with</span> <span class="pl-s1">session</span>.<span class="pl-en">begin</span>():
<span class="pl-s1">session</span>.<span class="pl-en">add</span>(<span class="pl-s1">example</span>)
<span class="pl-k">with</span> <span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">session</span>:
<span class="pl-k">with</span> <span class="pl-s1">session</span>.<span class="pl-en">begin</span>():
<span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-en">select</span>(<span class="pl-v">ExampleEntity</span>)
<span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-s1">stmt</span>.<span class="pl-en">where</span>(<span class="pl-v">ExampleEntity</span>.<span class="pl-s1">example_field</span>.<span class="pl-en">ilike</span>(<span class="pl-s">"%field%"</span>))
<span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-s1">stmt</span>.<span class="pl-en">options</span>(<span class="pl-en">noload</span>(<span class="pl-v">ExampleEntity</span>.<span class="pl-s1">children</span>))
<span class="pl-s1">c_stmt</span> <span class="pl-c1">=</span> <span class="pl-en">select</span>(<span class="pl-v">ExampleEntity</span>)
<span class="pl-s1">c_stmt</span> <span class="pl-c1">=</span> <span class="pl-s1">c_stmt</span>.<span class="pl-en">where</span>(<span class="pl-v">ExampleEntity</span>.<span class="pl-s1">example_field</span>.<span class="pl-en">ilike</span>(<span class="pl-s">"%field%"</span>))
<span class="pl-s1">c_stmt</span> <span class="pl-c1">=</span> <span class="pl-s1">c_stmt</span>.<span class="pl-en">options</span>(<span class="pl-en">noload</span>(<span class="pl-v">ExampleEntity</span>.<span class="pl-s1">children</span>))
<span class="pl-s1">count_stmt</span> <span class="pl-c1">=</span> <span class="pl-en">select</span>(<span class="pl-s1">func</span>.<span class="pl-en">count</span>()).<span class="pl-en">select_from</span>(<span class="pl-s1">c_stmt</span>)
<span class="pl-s1">count</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">execute</span>(<span class="pl-s1">count_stmt</span>)
<span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">execute</span>(<span class="pl-s1">stmt</span>)
<span class="pl-s1">examples</span> <span class="pl-c1">=</span> <span class="pl-s1">result</span>.<span class="pl-en">scalars</span>().<span class="pl-en">all</span>()
<span class="pl-en">print</span>(<span class="pl-s1">examples</span>)
<span class="pl-k">with</span> <span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">session</span>:
<span class="pl-k">with</span> <span class="pl-s1">session</span>.<span class="pl-en">begin</span>():
<span class="pl-s1">e</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">get</span>(<span class="pl-v">ExampleEntity</span>, <span class="pl-s1">example</span>.<span class="pl-s1">example_guid</span>)
<span class="pl-s1">session</span>.<span class="pl-en">delete</span>(<span class="pl-s1">e</span>)</pre></div>
<p dir="auto">DDL</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE TABLE ex.example
(
example_guid VARCHAR(36) NOT NULL,
example_field VARCHAR,
CONSTRAINT example_pk PRIMARY KEY (example_guid)
);
CREATE TABLE ex.child
(
child_guid VARCHAR(36) NOT NULL,
example_guid VARCHAR(36) NOT NULL,
child_field VARCHAR,
CONSTRAINT child_pk PRIMARY KEY (child_guid),
CONSTRAINT example_fk FOREIGN KEY (example_guid) REFERENCES example (example_guid)
);"><pre class="notranslate"><code class="notranslate">CREATE TABLE ex.example
(
example_guid VARCHAR(36) NOT NULL,
example_field VARCHAR,
CONSTRAINT example_pk PRIMARY KEY (example_guid)
);
CREATE TABLE ex.child
(
child_guid VARCHAR(36) NOT NULL,
example_guid VARCHAR(36) NOT NULL,
child_field VARCHAR,
CONSTRAINT child_pk PRIMARY KEY (child_guid),
CONSTRAINT example_fk FOREIGN KEY (example_guid) REFERENCES example (example_guid)
);
</code></pre></div>
<p dir="auto"><strong>Error</strong><br>
The additional SELECT IN with the Child:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO sqlalchemy.engine.Engine select version()
2021-04-27 15:20:49,397 INFO sqlalchemy.engine.Engine [raw sql] {}
2021-04-27 15:20:49,400 INFO sqlalchemy.engine.Engine select current_schema()
2021-04-27 15:20:49,401 INFO sqlalchemy.engine.Engine [raw sql] {}
2021-04-27 15:20:49,403 INFO sqlalchemy.engine.Engine show standard_conforming_strings
2021-04-27 15:20:49,404 INFO sqlalchemy.engine.Engine [raw sql] {}
2021-04-27 15:20:49,407 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2021-04-27 15:20:49,409 INFO sqlalchemy.engine.Engine INSERT INTO ex.example (example_guid, example_field) VALUES (%(example_guid)s, %(example_field)s)
2021-04-27 15:20:49,409 INFO sqlalchemy.engine.Engine [generated in 0.00029s] {'example_guid': 'EX-1', 'example_field': 'example field'}
2021-04-27 15:20:49,416 INFO sqlalchemy.engine.Engine INSERT INTO ex.child (child_guid, example_guid, child_field) VALUES (%(child_guid)s, %(example_guid)s, %(child_field)s)
2021-04-27 15:20:49,416 INFO sqlalchemy.engine.Engine [generated in 0.00033s] {'child_guid': 'CH-1', 'example_guid': 'EX-1', 'child_field': 'child field'}
2021-04-27 15:20:49,420 INFO sqlalchemy.engine.Engine COMMIT
2021-04-27 15:20:49,427 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2021-04-27 15:20:49,431 INFO sqlalchemy.engine.Engine SELECT count(*) AS count_1
FROM (SELECT ex.example.example_guid AS example_guid, ex.example.example_field AS example_field
FROM ex.example
WHERE ex.example.example_field ILIKE %(example_field_1)s) AS anon_1
2021-04-27 15:20:49,431 INFO sqlalchemy.engine.Engine [generated in 0.00033s] {'example_field_1': '%field%'}
2021-04-27 15:20:49,436 INFO sqlalchemy.engine.Engine SELECT ex.example.example_guid, ex.example.example_field
FROM ex.example
WHERE ex.example.example_field ILIKE %(example_field_1)s
2021-04-27 15:20:49,437 INFO sqlalchemy.engine.Engine [generated in 0.00033s] {'example_field_1': '%field%'}
[ExampleEntity(example_guid='EX-1', example_field='example field', children=[])]
2021-04-27 15:20:57,557 INFO sqlalchemy.engine.Engine COMMIT
2021-04-27 15:20:57,561 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2021-04-27 15:20:57,563 INFO sqlalchemy.engine.Engine SELECT ex.example.example_guid AS ex_example_example_guid, ex.example.example_field AS ex_example_example_field
FROM ex.example
WHERE ex.example.example_guid = %(pk_1)s
2021-04-27 15:20:57,563 INFO sqlalchemy.engine.Engine [generated in 0.00046s] {'pk_1': 'EX-1'}
2021-04-27 15:20:57,575 INFO sqlalchemy.engine.Engine SELECT ex.child.example_guid AS ex_child_example_guid, ex.child.child_guid AS ex_child_child_guid, ex.child.child_field AS ex_child_child_field
FROM ex.child
WHERE ex.child.example_guid IN (%(primary_keys_1)s)
2021-04-27 15:20:57,576 INFO sqlalchemy.engine.Engine [generated in 0.00098s] {'primary_keys_1': 'EX-1'}
2021-04-27 15:20:57,582 INFO sqlalchemy.engine.Engine DELETE FROM ex.child WHERE ex.child.child_guid = %(child_guid)s
2021-04-27 15:20:57,582 INFO sqlalchemy.engine.Engine [generated in 0.00041s] {'child_guid': 'CH-1'}
2021-04-27 15:20:57,585 INFO sqlalchemy.engine.Engine DELETE FROM ex.example WHERE ex.example.example_guid = %(example_guid)s
2021-04-27 15:20:57,585 INFO sqlalchemy.engine.Engine [generated in 0.00038s] {'example_guid': 'EX-1'}
2021-04-27 15:20:57,588 INFO sqlalchemy.engine.Engine COMMIT"><pre class="notranslate"><code class="notranslate">INFO sqlalchemy.engine.Engine select version()
2021-04-27 15:20:49,397 INFO sqlalchemy.engine.Engine [raw sql] {}
2021-04-27 15:20:49,400 INFO sqlalchemy.engine.Engine select current_schema()
2021-04-27 15:20:49,401 INFO sqlalchemy.engine.Engine [raw sql] {}
2021-04-27 15:20:49,403 INFO sqlalchemy.engine.Engine show standard_conforming_strings
2021-04-27 15:20:49,404 INFO sqlalchemy.engine.Engine [raw sql] {}
2021-04-27 15:20:49,407 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2021-04-27 15:20:49,409 INFO sqlalchemy.engine.Engine INSERT INTO ex.example (example_guid, example_field) VALUES (%(example_guid)s, %(example_field)s)
2021-04-27 15:20:49,409 INFO sqlalchemy.engine.Engine [generated in 0.00029s] {'example_guid': 'EX-1', 'example_field': 'example field'}
2021-04-27 15:20:49,416 INFO sqlalchemy.engine.Engine INSERT INTO ex.child (child_guid, example_guid, child_field) VALUES (%(child_guid)s, %(example_guid)s, %(child_field)s)
2021-04-27 15:20:49,416 INFO sqlalchemy.engine.Engine [generated in 0.00033s] {'child_guid': 'CH-1', 'example_guid': 'EX-1', 'child_field': 'child field'}
2021-04-27 15:20:49,420 INFO sqlalchemy.engine.Engine COMMIT
2021-04-27 15:20:49,427 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2021-04-27 15:20:49,431 INFO sqlalchemy.engine.Engine SELECT count(*) AS count_1
FROM (SELECT ex.example.example_guid AS example_guid, ex.example.example_field AS example_field
FROM ex.example
WHERE ex.example.example_field ILIKE %(example_field_1)s) AS anon_1
2021-04-27 15:20:49,431 INFO sqlalchemy.engine.Engine [generated in 0.00033s] {'example_field_1': '%field%'}
2021-04-27 15:20:49,436 INFO sqlalchemy.engine.Engine SELECT ex.example.example_guid, ex.example.example_field
FROM ex.example
WHERE ex.example.example_field ILIKE %(example_field_1)s
2021-04-27 15:20:49,437 INFO sqlalchemy.engine.Engine [generated in 0.00033s] {'example_field_1': '%field%'}
[ExampleEntity(example_guid='EX-1', example_field='example field', children=[])]
2021-04-27 15:20:57,557 INFO sqlalchemy.engine.Engine COMMIT
2021-04-27 15:20:57,561 INFO sqlalchemy.engine.Engine BEGIN (implicit)
2021-04-27 15:20:57,563 INFO sqlalchemy.engine.Engine SELECT ex.example.example_guid AS ex_example_example_guid, ex.example.example_field AS ex_example_example_field
FROM ex.example
WHERE ex.example.example_guid = %(pk_1)s
2021-04-27 15:20:57,563 INFO sqlalchemy.engine.Engine [generated in 0.00046s] {'pk_1': 'EX-1'}
2021-04-27 15:20:57,575 INFO sqlalchemy.engine.Engine SELECT ex.child.example_guid AS ex_child_example_guid, ex.child.child_guid AS ex_child_child_guid, ex.child.child_field AS ex_child_child_field
FROM ex.child
WHERE ex.child.example_guid IN (%(primary_keys_1)s)
2021-04-27 15:20:57,576 INFO sqlalchemy.engine.Engine [generated in 0.00098s] {'primary_keys_1': 'EX-1'}
2021-04-27 15:20:57,582 INFO sqlalchemy.engine.Engine DELETE FROM ex.child WHERE ex.child.child_guid = %(child_guid)s
2021-04-27 15:20:57,582 INFO sqlalchemy.engine.Engine [generated in 0.00041s] {'child_guid': 'CH-1'}
2021-04-27 15:20:57,585 INFO sqlalchemy.engine.Engine DELETE FROM ex.example WHERE ex.example.example_guid = %(example_guid)s
2021-04-27 15:20:57,585 INFO sqlalchemy.engine.Engine [generated in 0.00038s] {'example_guid': 'EX-1'}
2021-04-27 15:20:57,588 INFO sqlalchemy.engine.Engine COMMIT
</code></pre></div>
<p dir="auto"><strong>Versions.</strong></p>
<ul dir="auto">
<li>OS: MacOS Catalina 10.15.7</li>
<li>Python: 3.8.6</li>
<li>SQLAlchemy: 1.4.6</li>
<li>Database: postgres 12</li>
<li>DBAPI: psycopg2</li>
</ul>
<p dir="auto"><strong>Additional context</strong><br>
Originally I wanted to have one select statement that I could use for both the count and the actual query but it seemed to be precompiled or cached or the like after I executed the count select. Is this part of this bug or expected behavior? I'd like to not have to duplicate my select for this so something like this is desirable:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="with Session() as session:
with session.begin():
stmt = select(ExampleEntity)
stmt = stmt.where(ExampleEntity.example_field.ilike("%field%"))
stmt = stmt.options(noload(ExampleEntity.children))
count_stmt = select(func.count()).select_from(stmt)
count = session.execute(count_stmt)
result = session.execute(stmt)
examples = result.scalars().all()
print(examples)"><pre class="notranslate"><span class="pl-k">with</span> <span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">session</span>:
<span class="pl-k">with</span> <span class="pl-s1">session</span>.<span class="pl-en">begin</span>():
<span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-en">select</span>(<span class="pl-v">ExampleEntity</span>)
<span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-s1">stmt</span>.<span class="pl-en">where</span>(<span class="pl-v">ExampleEntity</span>.<span class="pl-s1">example_field</span>.<span class="pl-en">ilike</span>(<span class="pl-s">"%field%"</span>))
<span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-s1">stmt</span>.<span class="pl-en">options</span>(<span class="pl-en">noload</span>(<span class="pl-v">ExampleEntity</span>.<span class="pl-s1">children</span>))
<span class="pl-s1">count_stmt</span> <span class="pl-c1">=</span> <span class="pl-en">select</span>(<span class="pl-s1">func</span>.<span class="pl-en">count</span>()).<span class="pl-en">select_from</span>(<span class="pl-s1">stmt</span>)
<span class="pl-s1">count</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">execute</span>(<span class="pl-s1">count_stmt</span>)
<span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">execute</span>(<span class="pl-s1">stmt</span>)
<span class="pl-s1">examples</span> <span class="pl-c1">=</span> <span class="pl-s1">result</span>.<span class="pl-en">scalars</span>().<span class="pl-en">all</span>()
<span class="pl-en">print</span>(<span class="pl-s1">examples</span>)</pre></div>
<p dir="auto">but even if I put the <code class="notranslate">stmt = stmt.options(noload(ExampleEntity.children))</code> after the count select execution I still get the child loaded into my object in the second query</p>
<p dir="auto"><strong>Have a nice day!</strong></p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.<br>
The closest issue that I can find was <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="238680362" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/2371" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2371/hovercard" href="https://github.com/vercel/next.js/issues/2371">#2371</a> but unable to work from there</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">using <code class="notranslate">const loadImage = await import('blueimp-load-image')</code> should fetch the webpack chunk in production build</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The call to fetch the chunk in production deployment returns 404 while local deployment works fine<br>
<code class="notranslate">https://domain/_next/48d02763-8622-4655-ae45-226f36715589/chunks/blueimp_load_image_3860c75d466ce5695b350eef852ffc5a.js</code> results in 404</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>The next.config.js setup is</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// @flow
const {ANALYZE} = process.env;
const {BUILD} = process.env;
const cssLoader = BUILD ? './scripts/empty-string-loader.js' : 'raw-loader';
module.exports = {
poweredByHeader: false,
webpack: function(config /* : any */) {
const oldEntry = config.entry;
config.entry = function() {
return oldEntry().then(function(entries) {
entries['main.js'].unshift('./src/browser/framework/polyfills');
return entries;
});
};
config.module.rules.push(
{
test: /\.(css|scss)/,
loader: 'emit-file-loader',
options: {
name: 'dist/[path][name].[ext]'
}
},
{
test: /\.css$/,
use: ['babel-loader', cssLoader, 'postcss-loader']
}
);
if (ANALYZE) {
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'server',
analyzerPort: 8888,
openAnalyzer: true
})
);
}
return config;
}
};
"><pre class="notranslate"><code class="notranslate">// @flow
const {ANALYZE} = process.env;
const {BUILD} = process.env;
const cssLoader = BUILD ? './scripts/empty-string-loader.js' : 'raw-loader';
module.exports = {
poweredByHeader: false,
webpack: function(config /* : any */) {
const oldEntry = config.entry;
config.entry = function() {
return oldEntry().then(function(entries) {
entries['main.js'].unshift('./src/browser/framework/polyfills');
return entries;
});
};
config.module.rules.push(
{
test: /\.(css|scss)/,
loader: 'emit-file-loader',
options: {
name: 'dist/[path][name].[ext]'
}
},
{
test: /\.css$/,
use: ['babel-loader', cssLoader, 'postcss-loader']
}
);
if (ANALYZE) {
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'server',
analyzerPort: 8888,
openAnalyzer: true
})
);
}
return config;
}
};
</code></pre></div>
<ol start="2" dir="auto">
<li>When using an import statement in the client side like<br>
<code class="notranslate">const loadImage = await import('blueimp-load-image');</code><br>
The chunk is not picked up correctly in production builds</li>
<li>Tried to fix the problem by using dynamic modules of nextjs to go around the issue.Tried wrapping dynamic around the import<br>
<code class="notranslate">const loadImage = dynamic(import('blueimp-load-image'));</code><br>
but on using the loadImage function it says</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot call a class as a function
at module.exports.exports.default (http://localhost:3000/_next/1512521002870/main.js:1548:11)
at DynamicComponent (http://localhost:3000/_next/1512521002870/page/home:19263:36)
at http://localhost:3000/_next/1512521002870/page/home:54452:15
at new Promise (<anonymous>)
at new F (http://localhost:3000/_next/1512521002870/main.js:252:28)
at _callee$ (http://localhost:3000/_next/1512521002870/page/home:54451:46)
at tryCatch (http://localhost:3000/_next/1512521002870/main.js:12367:40)
at Generator.invoke [as _invoke] (http://localhost:3000/_next/1512521002870/main.js:12605:22)
at Generator.prototype.(anonymous function) [as next] (http://localhost:3000/_next/1512521002870/main.js:12419:21)
at step (http://localhost:3000/_next/1512521002870/main.js:9162:30)"><pre class="notranslate"><code class="notranslate">TypeError: Cannot call a class as a function
at module.exports.exports.default (http://localhost:3000/_next/1512521002870/main.js:1548:11)
at DynamicComponent (http://localhost:3000/_next/1512521002870/page/home:19263:36)
at http://localhost:3000/_next/1512521002870/page/home:54452:15
at new Promise (<anonymous>)
at new F (http://localhost:3000/_next/1512521002870/main.js:252:28)
at _callee$ (http://localhost:3000/_next/1512521002870/page/home:54451:46)
at tryCatch (http://localhost:3000/_next/1512521002870/main.js:12367:40)
at Generator.invoke [as _invoke] (http://localhost:3000/_next/1512521002870/main.js:12605:22)
at Generator.prototype.(anonymous function) [as next] (http://localhost:3000/_next/1512521002870/main.js:12419:21)
at step (http://localhost:3000/_next/1512521002870/main.js:9162:30)
</code></pre></div>
<p dir="auto">Am i possibly not using it right for loading pure libraries and not React.Components like in the examples</p>
<h2 dir="auto">Context</h2>
<p dir="auto">I am trying to load the blueimp-load-image (<a href="https://github.com/blueimp/JavaScript-Load-Image">https://github.com/blueimp/JavaScript-Load-Image</a>) module in the browser only when its needed to avoid sending down the library during every page load. Performance is a big concern and causes about a 10% increase in first data sent to render.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>^3.0.6</td>
</tr>
<tr>
<td>node</td>
<td>v7.10.0</td>
</tr>
<tr>
<td>OS</td>
<td>Linux 4.4.64+ x86_64 GNU/Linux</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>etc</td>
<td>using yarn as the build tool and webpack for bundling</td>
</tr>
</tbody>
</table> | <p dir="auto">It turns out apollo integration is much easier when using apollo-client directly instead of react-apollo.</p>
<p dir="auto">Here's the code: <a href="https://github.com/nmaro/apollo-next-example">https://github.com/nmaro/apollo-next-example</a><br>
And here's a running version (at least for as long as I keep the graphql server online): <a href="https://apollo-next-example-oslkzaynhp.now.sh" rel="nofollow">https://apollo-next-example-oslkzaynhp.now.sh</a></p>
<p dir="auto">The relevant details are here:</p>
<p dir="auto">apollo.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import ApolloClient, {createNetworkInterface} from 'apollo-client'
export default new ApolloClient({
networkInterface: createNetworkInterface({
uri: GRAPHQL_URL
})
})"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">ApolloClient</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-s1">createNetworkInterface</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'apollo-client'</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">new</span> <span class="pl-v">ApolloClient</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">networkInterface</span>: <span class="pl-en">createNetworkInterface</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">uri</span>: <span class="pl-c1">GRAPHQL_URL</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">then in a page</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react'
import gql from 'graphql-tag'
import 'isomorphic-fetch'
import apollo from '../apollo'
import Link from 'next/link'
const query = gql`query {
posts {
_id
title
}
}`
export default class extends React.Component {
static async getInitialProps({req}) {
return await apollo.query({
query,
})
}
render() {
...
}
}"><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-k">import</span> <span class="pl-s1">gql</span> <span class="pl-k">from</span> <span class="pl-s">'graphql-tag'</span>
<span class="pl-k">import</span> <span class="pl-s">'isomorphic-fetch'</span>
<span class="pl-k">import</span> <span class="pl-s1">apollo</span> <span class="pl-k">from</span> <span class="pl-s">'../apollo'</span>
<span class="pl-k">import</span> <span class="pl-v">Link</span> <span class="pl-k">from</span> <span class="pl-s">'next/link'</span>
<span class="pl-k">const</span> <span class="pl-s1">query</span> <span class="pl-c1">=</span> <span class="pl-en">gql</span><span class="pl-s">`query {</span>
<span class="pl-s"> posts {</span>
<span class="pl-s"> _id</span>
<span class="pl-s"> title</span>
<span class="pl-s"> }</span>
<span class="pl-s">}`</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">class</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-k">async</span> <span class="pl-en">getInitialProps</span><span class="pl-kos">(</span><span class="pl-kos">{</span>req<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">await</span> <span class="pl-s1">apollo</span><span class="pl-kos">.</span><span class="pl-en">query</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-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-kos">}</span>
<span class="pl-kos">}</span></pre></div> | 0 |
<p dir="auto">Hello<br>
I am new to React and I am following some tutorials to learn more but in the first few steps, I face a problem that I can't find any solution for it. Even in the stack overflow, only one person had the same problem that no one answers it. problem explained well in the following link:<br>
<a href="https://stackoverflow.com/questions/62488064/compiler-issue-with-npm-react-package-lock-json-autoprefixer-version-9-8-1/62506484#62506484" rel="nofollow">https://stackoverflow.com/questions/62488064/compiler-issue-with-npm-react-package-lock-json-autoprefixer-version-9-8-1/62506484#62506484</a><br>
After trying lots of different things I found a solution to this problem that I posted under this question. I am not very sure that what I did is 100% correct but it solved my problem and I wanted to say whenever I create a new React project I have to change the "Kleur" value in dependency to not face the problem.<br>
I thought maybe this is a problem in React because I also uninstall the React and cleaned my cache and download a new React and create a new project but still had same problem.<br>
This is the error that I received.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/54753959/85247083-48157c00-b412-11ea-9618-c93d73ef01b5.png"><img src="https://user-images.githubusercontent.com/54753959/85247083-48157c00-b412-11ea-9618-c93d73ef01b5.png" alt="React_error" style="max-width: 100%;"></a></p> | <p dir="auto">Getting following error when I attempt to run a newly created project using following command<br>
npx create-react-app my-app<br>
cd my-app</p>
<p dir="auto">When I pass this --> npm start command, I get following error in browser.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
Error: Package exports for '..\node_modules\autoprefixer\node_modules\kleur' do not define a valid './colors' target"><pre lang="Failed" class="notranslate"><code class="notranslate">./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
Error: Package exports for '..\node_modules\autoprefixer\node_modules\kleur' do not define a valid './colors' target
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/65842419/85186486-49567580-b267-11ea-91c9-00eab2827be0.png"><img src="https://user-images.githubusercontent.com/65842419/85186486-49567580-b267-11ea-91c9-00eab2827be0.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I did google and tried running following commands but no luck.<br>
npm I autoprefixer<br>
npm install node-saas-<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/latest/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/latest">@latest</a>..</p>
<p dir="auto">I have following versions listed as dependencies<br>
"autoprefixer": "^9.8.1",<br>
"react": "^16.13.1",<br>
"react-dom": "^16.13.1",<br>
"react-scripts": "3.4.1"</p>
<p dir="auto">Note: I tried running old project and that works fine... having issue only when I create a new project from scratch and run.<br>
please advise.</p> | 1 |
<p dir="auto">by <strong>ZhaoChengbing87</strong>:</p>
<pre class="notranslate">Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:
Run "go version" and compare against
<a href="http://golang.org/doc/devel/release.html" rel="nofollow">http://golang.org/doc/devel/release.html</a> If a newer version of Go exists,
install it and retry what you did to reproduce the problem.
Thanks.
What does 'go version' print?
What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. go version go1.2 linux/amd64
2. init *regexp.Regexp with an empty string, run MatchString()
3. codes are posted here
package main
import (
"fmt"
"regexp"
)
var (
//fileRegexp = `chat.log`
fileRegexp string
reg = regexp.MustCompile(fileRegexp)
)
func main() {
fileRegexp = `chat.log`
var teststring = []string{"chat.log", "a", "b", "c", "not_match"}
fmt.Println("reg pointer is :", reg)
for _, testcase := range teststring {
if reg.MatchString(testcase) {
fmt.Println(testcase, "matches", fileRegexp)
}
}
}
What happened?
we get answers like
reg pointer is :
chat.log matches chat.log
a matches chat.log
b matches chat.log
c matches chat.log
not_match matches chat.log
which is obviously wrong
What should have happened instead?
programme should panic or report an compile error
Please provide any additional information below.
no additional information</pre> | <p dir="auto">by <strong>nathan.eriksen</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. ./all.bash
What is the expected output? What do you see instead?
6g -o _gotest_.6 common.go reader.go writer.go reader_test.go writer_test.go
rm -f _test/archive/tar.a
gopack grc _test/archive/tar.a _gotest_.6
make[2]: Leaving directory `/scratch/build_scratch/go64/src/pkg/archive/tar'
/scratch/build_scratch/go64/bin/gotest: line 152: 24002 Killed $E ./$O.out "$@"
make[1]: *** [test] Error 137
make[1]: Leaving directory
`/scratch/build_scratch/go64/src/pkg/archive/tar'
make: *** [archive/tar.test] Error 2
What is your $GOOS? $GOARCH?
GOOS=linux
GOARCH=amd64
Which revision are you sync'ed to? (hg log -l 1)
changeset: 4037:cd0140653802
Please provide any additional information below.
uname -a: Linux 2.6.9-55.0.12.ELsmp #1 SMP Fri Nov 2 12:38:56 EDT 2007 x86_64 x86_64
x86_64 GNU/Linux
Seems like something on my system is not configured conducive to Go/64. I also did a
hello.go right
after the test on archive/tar fails, and get this:
$ strace hello
execve("./hello", ["hello"], [/* 80 vars */]) = 0
+++ killed by SIGKILL +++
Process 1391 detached</pre> | 0 |
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 08/14/2020 10:02:27</p>
<ul dir="auto">
<li>Happens generally in the background. Only notice when window snap/alt-space isn't working.</li>
<li>Perhaps coming out of sleep?</li>
</ul>
<blockquote>
<p dir="auto">System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)</p>
</blockquote>
<p dir="auto"><code class="notranslate">Full log sent to [email protected]</code></p> | <p dir="auto">Popup tells me to give y'all this.</p>
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p>
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 07/31/2020 17:29:59<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> | 1 |
<p dir="auto">The style links are set in my MVC masterpage _Layouts:</p>
<p dir="auto">VSCode does not 'see' any styles.</p>
<p dir="auto">Is there a way around this?</p> | <p dir="auto">add path choose window for img src、link href、script src、background-img src</p> | 1 |
<p dir="auto">When using contextual variants of "panel" I think it's good to have the "panel-footer" in the same color of the "panel-header"<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/2f357528bc0b29ed94ab008963f049e26648f041cc769531fc9f3aa81319d6b7/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3132333136312f3938343934372f33363835663161322d303861652d313165332d383430342d3631626631623932383434642e706e67"><img src="https://camo.githubusercontent.com/2f357528bc0b29ed94ab008963f049e26648f041cc769531fc9f3aa81319d6b7/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3132333136312f3938343934372f33363835663161322d303861652d313165332d383430342d3631626631623932383434642e706e67" alt="schermata_2013-08-19_alle_10 59 10" data-canonical-src="https://f.cloud.github.com/assets/123161/984947/3685f1a2-08ae-11e3-8404-61bf1b92844d.png" style="max-width: 100%;"></a></p> | <p dir="auto">Perhaps this was just an oversight, but I was surprised to see that the .panel-footer class isn't set to pick up the contextual panel styles.</p>
<p dir="auto">Since the existing contextual panel styles (.panel-primary, etc.) don't just affect the background and border colors of .panel-heading, but also the border color for .panel itself, it seems odd that .panel-footer isn't also styled accordingly.</p>
<p dir="auto">See the following examples:</p>
<ol dir="auto">
<li><a href="http://jsfiddle.net/binvisions/p9dRb/" rel="nofollow">Bootstrap 3 RC2 Contextual Panel with Panel Footer</a></li>
<li><a href="http://jsfiddle.net/binvisions/th7yx/2/" rel="nofollow">Proposed Panel with Contextual Panel Styles Applied to Panel Footers</a></li>
</ol> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.900
PowerToys version: V0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones "><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.900
PowerToys version: V0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Set up Fancy Zones</li>
<li>Shift + Drag window to zone next to the taskbar</li>
<li>The window goes under taskbar</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Zones to stop at the taskbar</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">When moving a window to a zone near the taskbar, the window goes under the taskbar.</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto">Zone next to taskbar<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2322300/86871207-b0a95d80-c08e-11ea-8efb-5beb5b5f8727.png"><img src="https://user-images.githubusercontent.com/2322300/86871207-b0a95d80-c08e-11ea-8efb-5beb5b5f8727.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Zone away from taskbar<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2322300/86871186-a5563200-c08e-11ea-8614-336a21793b35.png"><img src="https://user-images.githubusercontent.com/2322300/86871186-a5563200-c08e-11ea-8614-336a21793b35.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Larger Taskbar<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2322300/86871398-11d13100-c08f-11ea-82a7-bcdc5a4a97c8.png"><img src="https://user-images.githubusercontent.com/2322300/86871398-11d13100-c08f-11ea-82a7-bcdc5a4a97c8.png" alt="image" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ul dir="auto">
<li>Set Windows taskbar location to <em>Top</em></li>
<li>Snap a window to a FancyZone (2 priority grid zones in my case)</li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The window should snap to the <em>full-height</em> of the FancyZone <em>below</em> the task bar</p>
<h1 dir="auto">Actual behavior</h1>
<ul dir="auto">
<li>The window snaps <em>behind</em> the task bar (as shown with the green arrows)</li>
<li>The window leaves a <em>gap</em> underneath each window (as shown with the red arrows), which exposes the desktop background underneath</li>
</ul>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25905330/86352863-c110a100-bc66-11ea-95ff-f5a876357ef6.png"><img src="https://user-images.githubusercontent.com/25905330/86352863-c110a100-bc66-11ea-95ff-f5a876357ef6.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">When a Kafka index task successfully publishes some segments then it persists the latest consumed offsets info in the metadata store. Now if the supervisor is stopped or stops because of some reason and restarted at a later point and the earliest msg offset in Kafka is greater than persisted offset in the metadata (probably because earlier messages were dropped by kafka brokers or something else) then Kafka Index task will get <code class="notranslate">OffsetOutOfRangeException</code> and keep on retrying the same offset indefinitely.</p>
<p dir="auto">One way to solve this issue is to reset the consumer offset if the persisted offset is less than the earliest offset at the Kafka broker. Although I think in this case the persisted offset information would need to be delete from metadata store otherwise the new tasks will fail to publish segment because of consecutive offset check. Any thoughts ?</p> | <p dir="auto">The Kafka indexing service can get into a stuck state where it is trying to read the Kafka offset following the last one recorded in the dataSource metadata table but can't read it because Kafka's retention period has elapsed and that message is no longer available. We probably don't want to automatically jump to a valid Kafka offset since we would have missed events and would no longer have ingested each message exactly once, so currently we start throwing exceptions and the user needs to acknowledge what happened by removing the last committed offset from the dataSource table.</p>
<p dir="auto">It would be nice to include an API that will help them by either removing the dataSource table entry or setting it to a valid Kafka offset, but would still require a manual action/acknowledgment by the user.</p> | 1 |
<p dir="auto"><strong>Apache Airflow version</strong>: 2.1.1</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</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>): <code class="notranslate">Linux e08g09383.cloud.eu13 3.10.0-327.ali2010.rc7.alios7.x86_64 #1 SMP Thu Jun 29 21:45:21 CST 2017 x86_64 x86_64 x86_64 GNU/Linux</code></li>
<li><strong>Install tools</strong>: docker-compose</li>
<li><strong>Others</strong>:<br>
I installed the airflow via docker-compose.yaml, and my docker-compose.yaml is as attach file: <a href="https://github.com/apache/airflow/files/6915002/docker-compose.txt">docker-compose.txt</a></li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">A task was set to be failed directly by scheduler, while all up streams were success.<br>
The task has not be run, no log info either.</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">The task should be running</p>
<p dir="auto"><strong>How to reproduce it</strong>:<br>
It happens by chance, I can not reproduce it.</p>
<p dir="auto"><strong>Anything else we need to know</strong>:<br>
A log from scheduler:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2021-08-01 21:46:14,003] {scheduler_job.py:600} INFO - Executed failure callback for <TaskInstance: blink_create_cluster.create_master_ecs_task 2021-08-01 13:46:09.195000+00:00 [failed]> in state failed"><pre class="notranslate"><code class="notranslate">[2021-08-01 21:46:14,003] {scheduler_job.py:600} INFO - Executed failure callback for <TaskInstance: blink_create_cluster.create_master_ecs_task 2021-08-01 13:46:09.195000+00:00 [failed]> in state failed
</code></pre></div> | <h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.1.4 (latest released)</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">official docker image</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Official Apache Airflow Helm Chart</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">using KEDA</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Somehow, downstream task ends in state 'upstream failed' even though the upstream task retried and succeeded.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15932138/134117913-5384a134-e060-4d05-9d48-a69b4b24c617.png"><img src="https://user-images.githubusercontent.com/15932138/134117913-5384a134-e060-4d05-9d48-a69b4b24c617.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">What you expected to happen</h3>
<p dir="auto">"upstream failed" should only happen when upstream task fails</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li>
</ul>
<p dir="auto">But I have no ideas about cause here.</p>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 1 |
<h3 dir="auto">Bug summary</h3>
<p dir="auto">If <code class="notranslate">set_xscale("log")</code> is set for an <code class="notranslate">inset_axes</code> instance, the default tick formatter is applied irrespective of any calls to <code class="notranslate">set_xticklabels()</code> (before or after the scaling). The same is true for the y-axis.</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="fig, axes = plt.subplots(1, 2)
for ax_main in axes:
ax_in = ax_main.inset_axes([0.05, 0.5, 0.25, 0.5])
ax_main.plot((1,2))
ax_in.plot((1,2))
ax_in.set_xticklabels(())
ax_in.set_yticklabels(())
ax_in.set_xscale("log")
plt.show()"><pre class="notranslate"><span class="pl-s1">fig</span>, <span class="pl-s1">axes</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">1</span>, <span class="pl-c1">2</span>)
<span class="pl-k">for</span> <span class="pl-s1">ax_main</span> <span class="pl-c1">in</span> <span class="pl-s1">axes</span>:
<span class="pl-s1">ax_in</span> <span class="pl-c1">=</span> <span class="pl-s1">ax_main</span>.<span class="pl-en">inset_axes</span>([<span class="pl-c1">0.05</span>, <span class="pl-c1">0.5</span>, <span class="pl-c1">0.25</span>, <span class="pl-c1">0.5</span>])
<span class="pl-s1">ax_main</span>.<span class="pl-en">plot</span>((<span class="pl-c1">1</span>,<span class="pl-c1">2</span>))
<span class="pl-s1">ax_in</span>.<span class="pl-en">plot</span>((<span class="pl-c1">1</span>,<span class="pl-c1">2</span>))
<span class="pl-s1">ax_in</span>.<span class="pl-en">set_xticklabels</span>(())
<span class="pl-s1">ax_in</span>.<span class="pl-en">set_yticklabels</span>(())
<span class="pl-s1">ax_in</span>.<span class="pl-en">set_xscale</span>(<span class="pl-s">"log"</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24915701/204782410-7088f3dd-1a2e-4181-b17f-e40073becd6d.png"><img src="https://user-images.githubusercontent.com/24915701/204782410-7088f3dd-1a2e-4181-b17f-e40073becd6d.png" alt="Figure_1" style="max-width: 100%;"></a></p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">The left and right axes of the above should have identical tick labels (i.e. none).</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">Ubuntu</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.4.3</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">Qt5Agg, module://matplotlib_inline.backend_inline</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">Python 3.9.9</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto">6.4.5</p>
<h3 dir="auto">Installation</h3>
<p dir="auto">conda</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Units (e.g. datetime) and scales (e.g. log) both come with their own default locators (various DateLocators, LogLocator) and formatters (various DateFormatters, LogFormatter), which are being set in <code class="notranslate">Axis._update_axisinfo</code> and <code class="notranslate">Axis.set_scale</code>, respectively.</p>
<p dir="auto">If a locator or formatter has <em>already</em> been manually set on the axis, then setting units will <em>not</em> override the user-set locator/formatter -- this is tracked using the slighly awkwardly named <code class="notranslate">isDefault_{maj,min}{loc,fmt}</code>. On the other hand, setting a scale <em>will</em> override locator/formatters previously set.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from pylab import *
subplot(121)
xticks([])
xscale("log")
subplot(122)
xticks([])
plot_date([1, 2], [3, 4])
show()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">pylab</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-en">subplot</span>(<span class="pl-c1">121</span>)
<span class="pl-en">xticks</span>([])
<span class="pl-en">xscale</span>(<span class="pl-s">"log"</span>)
<span class="pl-en">subplot</span>(<span class="pl-c1">122</span>)
<span class="pl-en">xticks</span>([])
<span class="pl-en">plot_date</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-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1322974/94248230-7b3e3e80-ff1e-11ea-820c-762b0e208e22.png"><img src="https://user-images.githubusercontent.com/1322974/94248230-7b3e3e80-ff1e-11ea-820c-762b0e208e22.png" alt="test" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">Consistent behavior between the two cases. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="708644922" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/18571" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/18571/hovercard?comment_id=698809202&comment_type=issue_comment" href="https://github.com/matplotlib/matplotlib/issues/18571#issuecomment-698809202">#18571 (comment)</a> is one where scales also respecting user-set locators/formatters would be nice, but I can also see an argument for the opposite behavior for simplicity...</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: linux</li>
<li>Matplotlib version: HEAD</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): any</li>
<li>Python version: 38</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries:</li>
</ul> | 1 |
<p dir="auto">Please add the feature to select a column of text with the mouse (like Alt + LMB (Left mouse button), or Shit + RMB) like Sublime Text...</p>
<p dir="auto">There is a package that provides this functionality (<a href="https://atom.io/packages/Sublime-Style-Column-Selection" rel="nofollow">Sublime-Style-Column-Selection</a>), but I think it's better that this feature should be provided by atom itselft</p> | <p dir="auto">In plenty editors, doing <code class="notranslate">left-alt</code> (left option) and selecting text will take a slice of that text:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1189716/3020145/21a1ced6-df9b-11e3-9cf2-70371ca5fee1.gif"><img src="https://cloud.githubusercontent.com/assets/1189716/3020145/21a1ced6-df9b-11e3-9cf2-70371ca5fee1.gif" alt="sublime" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Notice that only characters are selected, empty lines are ignored. Also, after selecting with <code class="notranslate">left-alt</code>, there should be multi-cursors at the end of each selection:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1189716/3020149/2d06c1c8-df9b-11e3-9a39-226039d0f777.gif"><img src="https://cloud.githubusercontent.com/assets/1189716/3020149/2d06c1c8-df9b-11e3-9a39-226039d0f777.gif" alt="reslice" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">The GIF are from Sublime, the same behavior is observed in TextMate, IntelliJ, vim (visual selection).</p>
<p dir="auto">The current behavior in Atom is to perform a normal text selection:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1189716/3020155/3bbc4512-df9b-11e3-97a8-1acab2dd686f.gif"><img src="https://cloud.githubusercontent.com/assets/1189716/3020155/3bbc4512-df9b-11e3-97a8-1acab2dd686f.gif" alt="atom" data-animated-image="" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">When attempting to copy text from atom to a different program such as a google search in firefox, the copy attempt fails and does not post any text at all.</p> | <p dir="auto">I'm using Atom ver. 0.189.0 on Ubuntu 14.04.2 LTS. When I copy a piece of text in atom and I try to paste it the right-click menu either won't show up or will show up without giving me option to paste. The paste shortcut doesn't work either and it creates issues even if I try to copy and paste text from other programs (after I have coping something from atom). I have disable all the extra plugins, so it isn't a plugin issue. I didn't had this issue with the previous version (I am using webupd8 ppa). If I do a right click on a place where there isn't a text entry (meaning a place where it doesn't support paste anyway) the right click menu appears fine.</p> | 1 |
<p dir="auto">New to Julia. I get this message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO: Recompiling stale cache file /Users/.../.julia/lib/v0.5/Atom.ji for module Atom."><pre class="notranslate"><code class="notranslate">INFO: Recompiling stale cache file /Users/.../.julia/lib/v0.5/Atom.ji for module Atom.
</code></pre></div>
<p dir="auto">I'm on MacOS 10.10.5. I use atom-juno. I have to delete the <code class="notranslate">.julia/lib/</code> directory content to fix the problem. A tad inconvenient. Below describes problem and workaround.</p>
<p dir="auto"><a href="http://stackoverflow.com/questions/43124887/julia-recompiling-stale-cache-file" rel="nofollow">http://stackoverflow.com/questions/43124887/julia-recompiling-stale-cache-file</a></p>
<p dir="auto">This is probably a duplicate, but there are 1,858 open issues and couldn't find a similar one in finite time.</p> | <p dir="auto">julia should not create <code class="notranslate">.juila</code> directory at <code class="notranslate">$HOME</code>.</p>
<p dir="auto">It should follow xdg directory guidelines.</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tomwanzek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tomwanzek">@tomwanzek</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gustavderdrache/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gustavderdrache">@gustavderdrache</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Ledragon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Ledragon">@Ledragon</a></li>
</ul>
</li>
</ul>
<p dir="auto">The release cycle for D3 Version 5 has just started with a first Release Candidate:</p>
<ul dir="auto">
<li><strong>d3-request</strong> will be dropped in its entirety and replaced with <strong>d3-fetch</strong>,</li>
<li><strong>d3-contour</strong> will be added, and</li>
<li>there is a major re-shuffle including feature deprecations between <strong>d3-scale</strong> and <strong>d3-scale-chromatic</strong> combined with the addition of <strong>d3-scale-chromatic</strong> to the bundle</li>
</ul>
<p dir="auto">In particular, the feature deprecation and reshuffle with regard to <strong>d3-scale</strong> and <strong>d3-scale-chromatic</strong> (see <a href="https://github.com/d3/d3/releases/tag/v5.0.0">release notes</a>), imply that we need to pin down the minor versions for the latest/last D3 v4 bundle definitions.</p>
<p dir="auto">I.e. we need to add a <code class="notranslate">package.json</code> stub back in, so we do not break users running v4, before we add the new bundle definitions for D3 version 5.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gustavderdrache/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gustavderdrache">@gustavderdrache</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Ledragon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Ledragon">@Ledragon</a> any comments/thoughts re preparing for D3 v5?</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andy-ms/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andy-ms">@andy-ms</a> Any thoughtful guidance, how we ensure we can safely support the migration between version 4 and version 5 definitions without breaking users of v4?</p>
<p dir="auto">Cheers, T</p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="292421444" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23250" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/23250/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23250">#23250</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="292421822" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23251" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/23251/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23251">#23251</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="292430792" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23253" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/23253/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23253">#23253</a>.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="292425134" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23252" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/23252/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23252">#23252</a> (d3-selection 1.3) needs to be merged into the final definitions bundle for d3: 4.13.x</p> | <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MarianPalkus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MarianPalkus">@MarianPalkus</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/NoHomey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/NoHomey">@NoHomey</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andy-ms/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andy-ms">@andy-ms</a><br>
types/enzyme fails with typescript 2.9.1</p>
<p dir="auto">Error<br>
<code class="notranslate">Interface 'Element' cannot simultaneously extend types 'ReactElement<any>' and 'ReactElement<any>'. Named property 'type' of types 'ReactElement<any>' and 'ReactElement<any>' are not identical.</code></p> | 0 |
<p dir="auto">There may already be a "standard" in some of the formats for this (e.g. XLIFF), or maybe it's a bad idea for some reason I don't see. Here's the situation:</p>
<p dir="auto">Imagine you're using translation "keys" (e.g. <code class="notranslate">->trans('first_name')</code> instead of <code class="notranslate">->trans('First Name')</code>). When you do this, you may often get duplicate keys that should be translated to the same word, causing a translation resource that might look like this:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="registration_first_name: First Name
profile_first_name: First Name"><pre class="notranslate"><span class="pl-ent">registration_first_name</span>: <span class="pl-s">First Name</span>
<span class="pl-ent">profile_first_name</span>: <span class="pl-s">First Name</span></pre></div>
<p dir="auto">This is a DX issue, because it means you have duplicated keys that you need to manage. It also makes you want to stop using more descriptive keys to try to have less duplicates. Also, with a bundle like <code class="notranslate">FOSUserBundle</code> where form labels are turned into keys, you can't avoid duplication (<a href="https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/translations/FOSUserBundle.en.yml">https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/translations/FOSUserBundle.en.yml</a>).</p>
<p dir="auto">I propose that we can "alias" a translation key to use the value of another:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="registration_first_name: "@profile_first_name"
profile_first_name: First Name"><pre class="notranslate"><span class="pl-ent">registration_first_name</span>: <span class="pl-s"><span class="pl-pds">"</span>@profile_first_name<span class="pl-pds">"</span></span>
<span class="pl-ent">profile_first_name</span>: <span class="pl-s">First Name</span></pre></div>
<p dir="auto">Thoughts?</p> | <p dir="auto"><strong>Symfony version(s) affected</strong>: all</p>
<p dir="auto"><strong>Description</strong><br>
Current IBAN validator uses general IBAN checksum only, while some countries use internal check digit algorithms to validate domestic BBAN. What this means is that some invalid IBANs pass the Symfony validation.</p>
<p dir="auto"><strong>How to reproduce</strong><br>
following should return > 0, instead it returns 0</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use Symfony\Component\Validator\Constraints\Iban;
use Symfony\Component\Validator\Constraints\IbanValidator;
use Symfony\Component\Validator\Validation;
echo count(Validation::createValidator()->validate('SK1211115351562002977968', [new Iban]));
"><pre class="notranslate"><span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Validator</span>\<span class="pl-v">Constraints</span>\<span class="pl-v">Iban</span>;
<span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Validator</span>\<span class="pl-v">Constraints</span>\<span class="pl-v">IbanValidator</span>;
<span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Validator</span>\<span class="pl-v">Validation</span>;
<span class="pl-k">echo</span> count(<span class="pl-v">Validation</span>::<span class="pl-en">createValidator</span>()-><span class="pl-en">validate</span>(<span class="pl-s">'SK1211115351562002977968'</span>, [<span class="pl-k">new</span> <span class="pl-v">Iban</span>]));</pre></div>
<p dir="auto"><strong>Possible Solution</strong><br>
Unfortunately I wasn't successful in finding these country specific algorithms, help needed.</p>
<p dir="auto"><strong>Additional context</strong><br>
<a href="https://www.iban.com/iban-validation-help.html" rel="nofollow">https://www.iban.com/iban-validation-help.html</a> provides some basic info about this<br>
<a href="https://www.ibancalculator.com/iban_validieren.html" rel="nofollow">https://www.ibancalculator.com/iban_validieren.html</a> First result in google for iban validation, it does these country specific validations too, but they sell API for this service.</p> | 0 |
<p dir="auto">When we create a form that's tied to an entity (meaning we pass an entity to createForm()), Form->isValid() should not validate the entire entity. Or there should at least be an option to disable this behavior.</p>
<p dir="auto">I have my form type and an entity. When there's a direct mapping between the 2 all works well. However, if I add a property to my entity with a constraint, Form->isValid() calls will fail if the field's value doesn't pass. This means the form will validate entity fields that aren't a part of the form.</p>
<p dir="auto">The only solution I've seen posed is to use validation groups on the entity but this is implying validation rules on my entities that may not be accurate (perhaps my validation constraints on my entity are all the defaults. Requiring me to group constraints for form handling in another layer doesn't seem right). Form validation should validate form fields. If the form wants to work with entity fields, it would ideally only validate the fields that are specified in the form (or be configurable).</p> | <p dir="auto">The Drupal project uses the YAML parser component provided by symfony, but we also need<br>
some sort of imports, as provided by the Config component. That one is though not used by Drupal.</p>
<p dir="auto">Would there be a possiblities to provide some simple functionality to allow imports relative to the YML file itself?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo.baz:
path: '/foo/baz
defaults:
_controller: '\Drupal\foo\FooController::baz'
imports:
- routes/foo.admin.routing.yml
- routes/foo.pages.routing.yml
"><pre class="notranslate"><code class="notranslate">foo.baz:
path: '/foo/baz
defaults:
_controller: '\Drupal\foo\FooController::baz'
imports:
- routes/foo.admin.routing.yml
- routes/foo.pages.routing.yml
</code></pre></div>
<p dir="auto">Technically I would agree that this would not belong into the Yaml component though.</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ec2_asg</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.3.0
config file = /home/admin/.ansible.cfg
configured module search path = [u'/home/admin/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]"><pre class="notranslate"><code class="notranslate">ansible 2.4.3.0
config file = /home/admin/.ansible.cfg
configured module search path = [u'/home/admin/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Debian Jessie</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">When I use <code class="notranslate">ec2_asg</code> to replace a single instance in an existing ASG, the old instance is terminated before a new one is created. This would be fine except that <code class="notranslate">ec2_asg</code> has classically worked by increasing the capacity of the ASG by 1 to first create a new instance. So now you get two new instances, and when <code class="notranslate">ec2_asg</code> scales the capacity back, you're at the mercy of the termination policy.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">In my case I was working with an ASG with 3 instances. I suspect this will work with any number of instances though.</p>
<p dir="auto">Assuming you have an AWS region, ASG, LC, and instance ID in mind:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- ec2_asg:
lc_check: no
replace_batch_size: 1
replace_instances: "{{ instance_to_cycle }}"
name: "{{ asg_name }}"
min_size: "3"
max_size: "3"
desired_capacity: "3"
launch_config_name: "{{ lc_name }}"
region: "{{ region }}"
wait_timeout: 480
register: ec2_asg_result"><pre class="notranslate">- <span class="pl-ent">ec2_asg</span>:
<span class="pl-ent">lc_check</span>: <span class="pl-s">no</span>
<span class="pl-ent">replace_batch_size</span>: <span class="pl-c1">1</span>
<span class="pl-ent">replace_instances</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ instance_to_cycle }}<span class="pl-pds">"</span></span>
<span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ asg_name }}<span class="pl-pds">"</span></span>
<span class="pl-ent">min_size</span>: <span class="pl-s"><span class="pl-pds">"</span>3<span class="pl-pds">"</span></span>
<span class="pl-ent">max_size</span>: <span class="pl-s"><span class="pl-pds">"</span>3<span class="pl-pds">"</span></span>
<span class="pl-ent">desired_capacity</span>: <span class="pl-s"><span class="pl-pds">"</span>3<span class="pl-pds">"</span></span>
<span class="pl-ent">launch_config_name</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ lc_name }}<span class="pl-pds">"</span></span>
<span class="pl-ent">region</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ region }}<span class="pl-pds">"</span></span>
<span class="pl-ent">wait_timeout</span>: <span class="pl-c1">480</span>
<span class="pl-ent">register</span>: <span class="pl-s">ec2_asg_result</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">The ASG's min, max, and desired counts will all raise by 1. A new instance will start to be created. Once that happens, <em>then</em> the min/desired counts will decrease so an old instance will be terminated.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">An instance is terminated before a new instance is created. (I determined this just by repeatedly hitting the refresh button on the AWS console.)</p>
<p dir="auto">Using <code class="notranslate">debug</code> on the result you can see that <code class="notranslate">ec2_asg_result.instances</code> has 4 IDs in it it.</p>
<p dir="auto"><del>I tried downgrading to 2.1.2.0 and did not see this behavior.</del> Never mind, I see this on that version too, it's just not consistent.</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.4.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.local/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.13 (default, Sep 5 2017, 08:53:59) [GCC 7.1.1 20170622 (Red Hat 7.1.1-3)]
"><pre class="notranslate"><code class="notranslate">ansible 2.4.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.local/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.13 (default, Sep 5 2017, 08:53:59) [GCC 7.1.1 20170622 (Red Hat 7.1.1-3)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Containers get restarted/recreated on every run, even though nothing changed. No idempotency.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: setup registry container
docker_container:
name: registry
hostname: dockerhub.example.com
state: started
restart_policy: always
image: registry:2
ports:
- 5000:5000
volumes:
- "{{ docker_container_certs_path }}:/certs"
env:
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/dockerhub.example.com.crt
REGISTRY_HTTP_TLS_KEY: /certs/dockerhub.example.com.key
- name: setup registry frontend container
docker_container:
name: registry-frontend
hostname: registry-frontend
state: started
restart_policy: always
image: konradkleine/docker-registry-frontend:v2
links: registry:registry
ports:
- 443:443
volumes:
- "{{ docker_container_certs_path }}/{{ docker_registry_hostname }}.crt:/etc/apache2/server.crt:ro"
- "{{ docker_container_certs_path }}/{{ docker_registry_hostname }}.key:/etc/apache2/server.key:ro"
env:
ENV_DOCKER_REGISTRY_HOST: registry
ENV_DOCKER_REGISTRY_PORT: 5000
ENV_USE_SSL: yes
ENV_DOCKER_REGISTRY_USE_SSL: 1
FRONTEND_BROWSE_ONLY_MODE: false
ENV_REGISTRY_PROXY_FQDN: dockerhub.example.com
ENV_REGISTRY_PROXY_PORT: 443"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">setup registry container</span>
<span class="pl-ent">docker_container</span>:
<span class="pl-ent">name</span>: <span class="pl-s">registry</span>
<span class="pl-ent">hostname</span>: <span class="pl-s">dockerhub.example.com</span>
<span class="pl-ent">state</span>: <span class="pl-s">started</span>
<span class="pl-ent">restart_policy</span>: <span class="pl-s">always</span>
<span class="pl-ent">image</span>: <span class="pl-s">registry:2</span>
<span class="pl-ent">ports</span>:
- <span class="pl-c1">5000:5000</span>
<span class="pl-ent">volumes</span>:
- <span class="pl-s"><span class="pl-pds">"</span>{{ docker_container_certs_path }}:/certs<span class="pl-pds">"</span></span>
<span class="pl-ent">env</span>:
<span class="pl-ent">REGISTRY_HTTP_TLS_CERTIFICATE</span>: <span class="pl-s">/certs/dockerhub.example.com.crt</span>
<span class="pl-ent">REGISTRY_HTTP_TLS_KEY</span>: <span class="pl-s">/certs/dockerhub.example.com.key</span>
- <span class="pl-ent">name</span>: <span class="pl-s">setup registry frontend container</span>
<span class="pl-ent">docker_container</span>:
<span class="pl-ent">name</span>: <span class="pl-s">registry-frontend</span>
<span class="pl-ent">hostname</span>: <span class="pl-s">registry-frontend</span>
<span class="pl-ent">state</span>: <span class="pl-s">started</span>
<span class="pl-ent">restart_policy</span>: <span class="pl-s">always</span>
<span class="pl-ent">image</span>: <span class="pl-s">konradkleine/docker-registry-frontend:v2</span>
<span class="pl-ent">links</span>: <span class="pl-s">registry:registry</span>
<span class="pl-ent">ports</span>:
- <span class="pl-c1">443:443</span>
<span class="pl-ent">volumes</span>:
- <span class="pl-s"><span class="pl-pds">"</span>{{ docker_container_certs_path }}/{{ docker_registry_hostname }}.crt:/etc/apache2/server.crt:ro<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>{{ docker_container_certs_path }}/{{ docker_registry_hostname }}.key:/etc/apache2/server.key:ro<span class="pl-pds">"</span></span>
<span class="pl-ent">env</span>:
<span class="pl-ent">ENV_DOCKER_REGISTRY_HOST</span>: <span class="pl-s">registry</span>
<span class="pl-ent">ENV_DOCKER_REGISTRY_PORT</span>: <span class="pl-c1">5000</span>
<span class="pl-ent">ENV_USE_SSL</span>: <span class="pl-s">yes</span>
<span class="pl-ent">ENV_DOCKER_REGISTRY_USE_SSL</span>: <span class="pl-c1">1</span>
<span class="pl-ent">FRONTEND_BROWSE_ONLY_MODE</span>: <span class="pl-c1">false</span>
<span class="pl-ent">ENV_REGISTRY_PROXY_FQDN</span>: <span class="pl-s">dockerhub.example.com</span>
<span class="pl-ent">ENV_REGISTRY_PROXY_PORT</span>: <span class="pl-c1">443</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Expected to leave the running containers untouched when no parameters change.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">On every subsequent run:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[.....]
TASK [docker : setup registry container] ***************************************
changed: [foobar]
TASK [docker : setup registry frontend container] ******************************
changed: [foobar]
PLAY RECAP *********************************************************************
foobar : ok=16 changed=2 unreachable=0 failed=0
"><pre class="notranslate"><code class="notranslate">[.....]
TASK [docker : setup registry container] ***************************************
changed: [foobar]
TASK [docker : setup registry frontend container] ******************************
changed: [foobar]
PLAY RECAP *********************************************************************
foobar : ok=16 changed=2 unreachable=0 failed=0
</code></pre></div>
<p dir="auto">Also molecule reports those tasks as problematic:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ molecule idempotence
--> Test matrix
└── default
└── idempotence
--> Scenario: 'default'
--> Action: 'idempotence'
ERROR: Idempotence test failed because of the following tasks:
* [foobar] => docker : setup registry container
* [foobar] => docker : setup registry frontend container
"><pre class="notranslate"><code class="notranslate">$ molecule idempotence
--> Test matrix
└── default
└── idempotence
--> Scenario: 'default'
--> Action: 'idempotence'
ERROR: Idempotence test failed because of the following tasks:
* [foobar] => docker : setup registry container
* [foobar] => docker : setup registry frontend container
</code></pre></div>
<p dir="auto">A <code class="notranslate">docker inspect</code> diff of two subsequent runs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ diff run1.txt run2.txt
3,4c3,4
< "Id": "7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf",
< "Created": "2017-10-05T16:38:40.543640249Z",
---
> "Id": "b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02",
> "Created": "2017-10-05T19:32:24.871726187Z",
15c15
< "Pid": 25641,
---
> "Pid": 29287,
18c18
< "StartedAt": "2017-10-05T16:38:40.978651324Z",
---
> "StartedAt": "2017-10-05T19:32:25.373263113Z",
24c24
< "EndpointID": "0c0f5324afb22441171205f6efa28f05d45d01b1ae9416c2e90696b39e9f33f0",
---
> "EndpointID": "21a4fc8f9688e8ac3b2586abf5252343a05659e60a4e970002ed30f53c05e23f",
29c29
< "IPAddress": "172.17.0.19",
---
> "IPAddress": "172.17.0.21",
34c34
< "MacAddress": "02:42:ac:11:00:13",
---
> "MacAddress": "02:42:ac:11:00:15",
45c45
< "SandboxKey": "/var/run/docker/netns/7a9675ad0b9d",
---
> "SandboxKey": "/var/run/docker/netns/b256cce8eb8f",
49,52c49,52
< "ResolvConfPath": "/var/lib/docker/containers/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf/resolv.conf",
< "HostnamePath": "/var/lib/docker/containers/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf/hostname",
< "HostsPath": "/var/lib/docker/containers/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf/hosts",
< "LogPath": "/var/lib/docker/containers/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf-json.log",
---
> "ResolvConfPath": "/var/lib/docker/containers/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02/resolv.conf",
> "HostnamePath": "/var/lib/docker/containers/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02/hostname",
> "HostsPath": "/var/lib/docker/containers/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02/hosts",
> "LogPath": "/var/lib/docker/containers/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02-json.log",
57,58c57,58
< "MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c836,c866",
< "ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c836,c866",
---
> "MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c307,c890",
> "ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c307,c890",
120,121c120,121
< "DeviceId": "106",
< "DeviceName": "docker-8:2-2124-7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf",
---
> "DeviceId": "110",
> "DeviceName": "docker-8:2-2124-b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02",
127,134c127,128
< "Source": "/app/etc/tls",
< "Destination": "/certs",
< "Mode": "rw",
< "RW": true
< },
< {
< "Name": "19f37ceddc9f1957f5f3888cb45559ec78d35ce7a71a8ad5f9d9888f427ec96e",
< "Source": "/var/lib/docker/volumes/19f37ceddc9f1957f5f3888cb45559ec78d35ce7a71a8ad5f9d9888f427ec96e/_data",
---
> "Name": "c6c54293f7dd3f8345a4d316e3f6cf6441cda41231834688f8d2aa25c090a68a",
> "Source": "/var/lib/docker/volumes/c6c54293f7dd3f8345a4d316e3f6cf6441cda41231834688f8d2aa25c090a68a/_data",
137a132,137
> "RW": true
> },
> {
> "Source": "/app/etc/tls",
> "Destination": "/certs",
> "Mode": "rw","><pre class="notranslate"><code class="notranslate">$ diff run1.txt run2.txt
3,4c3,4
< "Id": "7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf",
< "Created": "2017-10-05T16:38:40.543640249Z",
---
> "Id": "b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02",
> "Created": "2017-10-05T19:32:24.871726187Z",
15c15
< "Pid": 25641,
---
> "Pid": 29287,
18c18
< "StartedAt": "2017-10-05T16:38:40.978651324Z",
---
> "StartedAt": "2017-10-05T19:32:25.373263113Z",
24c24
< "EndpointID": "0c0f5324afb22441171205f6efa28f05d45d01b1ae9416c2e90696b39e9f33f0",
---
> "EndpointID": "21a4fc8f9688e8ac3b2586abf5252343a05659e60a4e970002ed30f53c05e23f",
29c29
< "IPAddress": "172.17.0.19",
---
> "IPAddress": "172.17.0.21",
34c34
< "MacAddress": "02:42:ac:11:00:13",
---
> "MacAddress": "02:42:ac:11:00:15",
45c45
< "SandboxKey": "/var/run/docker/netns/7a9675ad0b9d",
---
> "SandboxKey": "/var/run/docker/netns/b256cce8eb8f",
49,52c49,52
< "ResolvConfPath": "/var/lib/docker/containers/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf/resolv.conf",
< "HostnamePath": "/var/lib/docker/containers/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf/hostname",
< "HostsPath": "/var/lib/docker/containers/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf/hosts",
< "LogPath": "/var/lib/docker/containers/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf/7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf-json.log",
---
> "ResolvConfPath": "/var/lib/docker/containers/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02/resolv.conf",
> "HostnamePath": "/var/lib/docker/containers/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02/hostname",
> "HostsPath": "/var/lib/docker/containers/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02/hosts",
> "LogPath": "/var/lib/docker/containers/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02/b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02-json.log",
57,58c57,58
< "MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c836,c866",
< "ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c836,c866",
---
> "MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c307,c890",
> "ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c307,c890",
120,121c120,121
< "DeviceId": "106",
< "DeviceName": "docker-8:2-2124-7a9675ad0b9dd40106a954856be32b57c30081eea7f16c94e77bc402bdba02bf",
---
> "DeviceId": "110",
> "DeviceName": "docker-8:2-2124-b256cce8eb8fb26f30270a837bb3e38cd382a20dc402b0dfe6bd0b05d984db02",
127,134c127,128
< "Source": "/app/etc/tls",
< "Destination": "/certs",
< "Mode": "rw",
< "RW": true
< },
< {
< "Name": "19f37ceddc9f1957f5f3888cb45559ec78d35ce7a71a8ad5f9d9888f427ec96e",
< "Source": "/var/lib/docker/volumes/19f37ceddc9f1957f5f3888cb45559ec78d35ce7a71a8ad5f9d9888f427ec96e/_data",
---
> "Name": "c6c54293f7dd3f8345a4d316e3f6cf6441cda41231834688f8d2aa25c090a68a",
> "Source": "/var/lib/docker/volumes/c6c54293f7dd3f8345a4d316e3f6cf6441cda41231834688f8d2aa25c090a68a/_data",
137a132,137
> "RW": true
> },
> {
> "Source": "/app/etc/tls",
> "Destination": "/certs",
> "Mode": "rw",
</code></pre></div> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ruben@MacBook-Pro src]$ rustc --version=verbose
rustc 0.13.0-nightly (40fb87d40 2014-11-10 23:01:57 +0000)
binary: rustc
commit-hash: 40fb87d40f681f5356af42175fc7b85da387f037
commit-date: 2014-11-10 23:01:57 +0000
host: x86_64-apple-darwin
release: 0.13.0-nightly"><pre class="notranslate"><code class="notranslate">[ruben@MacBook-Pro src]$ rustc --version=verbose
rustc 0.13.0-nightly (40fb87d40 2014-11-10 23:01:57 +0000)
binary: rustc
commit-hash: 40fb87d40f681f5356af42175fc7b85da387f037
commit-date: 2014-11-10 23:01:57 +0000
host: x86_64-apple-darwin
release: 0.13.0-nightly
</code></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait Adder<Number> {
fn sum(&self, summands: &[Number]) -> Number;
}
struct Calculator {
foo: int,
}
impl Adder<int> for Calculator {
fn sum(&self, summands: &[int]) -> int {
println!("sum int");
let mut result = 0i;
for num in summands.iter() {
result += *num;
}
result
}
}
impl Adder<f32> for Calculator {
fn sum(&self, summands: &[f32]) -> f32 {
println!("sum f32");
let mut result = 0f32;
for num in summands.iter() {
result += *num;
}
result
}
}
fn main() {
let calc = Calculator { foo: 4711 };
println!("1 + 1 = {}", calc.sum([1,1].as_slice()));
// raises the compiler error
println!("1.0 + 2.3 = {}", calc.sum([1.0,2.3].as_slice()));
// compiles and runs properly
//println!("1.0 + 2.3 = {}", calc.sum([1.0f32,2.3f32].as_slice()));
}"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">Adder</span><span class="pl-kos"><</span><span class="pl-smi">Number</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">sum</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">summands</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">Number</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>
<span class="pl-k">struct</span> <span class="pl-smi">Calculator</span> <span class="pl-kos">{</span>
<span class="pl-c1">foo</span><span class="pl-kos">:</span> <span class="pl-smi">int</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">Adder</span><span class="pl-kos"><</span><span class="pl-smi">int</span><span class="pl-kos">></span> <span class="pl-k">for</span> <span class="pl-smi">Calculator</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">sum</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">summands</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">int</span><span class="pl-kos">]</span><span class="pl-kos">)</span> -> <span class="pl-smi">int</span> <span class="pl-kos">{</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"sum int"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-k">mut</span> result = <span class="pl-c1">0</span>i<span class="pl-kos">;</span>
<span class="pl-k">for</span> num <span class="pl-k">in</span> summands<span class="pl-kos">.</span><span class="pl-en">iter</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
result += <span class="pl-c1">*</span>num<span class="pl-kos">;</span>
<span class="pl-kos">}</span>
result
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">Adder</span><span class="pl-kos"><</span><span class="pl-smi">f32</span><span class="pl-kos">></span> <span class="pl-k">for</span> <span class="pl-smi">Calculator</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">sum</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">summands</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">f32</span><span class="pl-kos">]</span><span class="pl-kos">)</span> -> <span class="pl-smi">f32</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">"sum f32"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-k">mut</span> result = <span class="pl-c1">0f32</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> num <span class="pl-k">in</span> summands<span class="pl-kos">.</span><span class="pl-en">iter</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
result += <span class="pl-c1">*</span>num<span class="pl-kos">;</span>
<span class="pl-kos">}</span>
result
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> calc = <span class="pl-smi">Calculator</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span><span class="pl-kos">:</span> <span class="pl-c1">4711</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">"1 + 1 = {}"</span>, calc.sum<span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1</span>,<span class="pl-c1">1</span><span class="pl-kos">]</span>.as_slice<span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// raises the compiler error</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"1.0 + 2.3 = {}"</span>, calc.sum<span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1.0</span>,<span class="pl-c1">2.3</span><span class="pl-kos">]</span>.as_slice<span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// compiles and runs properly</span>
<span class="pl-c">//println!("1.0 + 2.3 = {}", calc.sum([1.0f32,2.3f32].as_slice()));</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: Impl DefId { krate: 0, node: 26 }:Calculator.Adder<int> was matchable against Obligation(trait_ref=<_ : Adder<_>>,depth=0) but now is not
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
task 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:175
stack backtrace:
1: 0x11011e01f - rt::backtrace::imp::write::h37f6e30fade15cb76mt
2: 0x1101211a7 - failure::on_fail::h4075de659ea4adb9VDt
3: 0x1103a4415 - unwind::begin_unwind_inner::h9e12d6856ac2af42j1c
4: 0x10e086757 - unwind::begin_unwind::h887212781071489879
5: 0x10e086f93 - diagnostic::Handler::bug::he58e2d0573e8d5d4L5F
6: 0x10d105271 - middle::traits::select::SelectionContext<'cx, 'tcx>::rematch_impl::h35320cfc53204d2fFbZ
7: 0x10d0f3607 - middle::traits::select::SelectionContext<'cx, 'tcx>::confirm_candidate::hb7278faaf8bd08bdDRY
8: 0x10d0ea1b7 - middle::traits::select::SelectionContext<'cx, 'tcx>::select::h20d24e63da941032znX
9: 0x10d0e8e86 - middle::traits::fulfill::FulfillmentContext::select::h4f9eb03bbb3d4aa6gUW
10: 0x10d0e8656 - middle::traits::fulfill::FulfillmentContext::select_where_possible::h212cad5c41e6ff5evTW
11: 0x10d0014d2 - middle::traits::fulfill::FulfillmentContext::select_all_or_error::ha09a57d720916db7iRW
12: 0x10d26dc78 - middle::typeck::check::vtable::select_all_fcx_obligations_or_error::h4291cb6f90f0ee15K7N
13: 0x10d2c5ccb - middle::typeck::check::check_bare_fn::hec13c0cf792a848da8V
14: 0x10d2c1e1d - middle::typeck::check::check_item::h7dd222d42ec19845jsW
15: 0x10d2c5b10 - middle::typeck::check::check_item_types::hdbb49e408a7799c1k7V
16: 0x10cdd1156 - util::common::time::h3942551398258420223
17: 0x10d5d1eee - middle::typeck::check_crate::hcb0ab152bef1200chup
18: 0x10d639d9f - driver::driver::phase_3_run_analysis_passes::hc02fc7265031485eIdC
19: 0x10d634bd8 - driver::driver::compile_input::h2ba3685ec9df4f6btUB
20: 0x10d6b23ed - driver::run_compiler::h6e93cd8bbb72fd50KKF
21: 0x10d6b092e - driver::run::closure.146334
22: 0x10cde940b - task::TaskBuilder<S>::try_future::closure.104770
23: 0x10cde9303 - task::TaskBuilder<S>::spawn_internal::closure.104741
24: 0x10cda27bd - task::NativeSpawner.Spawner::spawn::closure.2551
25: 0x110402a0c - rust_try_inner
26: 0x1104029f6 - rust_try
27: 0x1103a1be7 - unwind::try::h009a35089a5882701Pc
28: 0x1103a1a7c - task::Task::run::h4878cb7b665069bf61b
29: 0x10cda25e3 - task::NativeSpawner.Spawner::spawn::closure.2475
30: 0x1103a32a7 - thread::thread_start::h8e83ad43ae75daab3mc
31: 0x7fff914642fc - _pthread_body
32: 0x7fff91464279 - _pthread_body"><pre class="notranslate"><code class="notranslate">error: internal compiler error: Impl DefId { krate: 0, node: 26 }:Calculator.Adder<int> was matchable against Obligation(trait_ref=<_ : Adder<_>>,depth=0) but now is not
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
task 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:175
stack backtrace:
1: 0x11011e01f - rt::backtrace::imp::write::h37f6e30fade15cb76mt
2: 0x1101211a7 - failure::on_fail::h4075de659ea4adb9VDt
3: 0x1103a4415 - unwind::begin_unwind_inner::h9e12d6856ac2af42j1c
4: 0x10e086757 - unwind::begin_unwind::h887212781071489879
5: 0x10e086f93 - diagnostic::Handler::bug::he58e2d0573e8d5d4L5F
6: 0x10d105271 - middle::traits::select::SelectionContext<'cx, 'tcx>::rematch_impl::h35320cfc53204d2fFbZ
7: 0x10d0f3607 - middle::traits::select::SelectionContext<'cx, 'tcx>::confirm_candidate::hb7278faaf8bd08bdDRY
8: 0x10d0ea1b7 - middle::traits::select::SelectionContext<'cx, 'tcx>::select::h20d24e63da941032znX
9: 0x10d0e8e86 - middle::traits::fulfill::FulfillmentContext::select::h4f9eb03bbb3d4aa6gUW
10: 0x10d0e8656 - middle::traits::fulfill::FulfillmentContext::select_where_possible::h212cad5c41e6ff5evTW
11: 0x10d0014d2 - middle::traits::fulfill::FulfillmentContext::select_all_or_error::ha09a57d720916db7iRW
12: 0x10d26dc78 - middle::typeck::check::vtable::select_all_fcx_obligations_or_error::h4291cb6f90f0ee15K7N
13: 0x10d2c5ccb - middle::typeck::check::check_bare_fn::hec13c0cf792a848da8V
14: 0x10d2c1e1d - middle::typeck::check::check_item::h7dd222d42ec19845jsW
15: 0x10d2c5b10 - middle::typeck::check::check_item_types::hdbb49e408a7799c1k7V
16: 0x10cdd1156 - util::common::time::h3942551398258420223
17: 0x10d5d1eee - middle::typeck::check_crate::hcb0ab152bef1200chup
18: 0x10d639d9f - driver::driver::phase_3_run_analysis_passes::hc02fc7265031485eIdC
19: 0x10d634bd8 - driver::driver::compile_input::h2ba3685ec9df4f6btUB
20: 0x10d6b23ed - driver::run_compiler::h6e93cd8bbb72fd50KKF
21: 0x10d6b092e - driver::run::closure.146334
22: 0x10cde940b - task::TaskBuilder<S>::try_future::closure.104770
23: 0x10cde9303 - task::TaskBuilder<S>::spawn_internal::closure.104741
24: 0x10cda27bd - task::NativeSpawner.Spawner::spawn::closure.2551
25: 0x110402a0c - rust_try_inner
26: 0x1104029f6 - rust_try
27: 0x1103a1be7 - unwind::try::h009a35089a5882701Pc
28: 0x1103a1a7c - task::Task::run::h4878cb7b665069bf61b
29: 0x10cda25e3 - task::NativeSpawner.Spawner::spawn::closure.2475
30: 0x1103a32a7 - thread::thread_start::h8e83ad43ae75daab3mc
31: 0x7fff914642fc - _pthread_body
32: 0x7fff91464279 - _pthread_body
</code></pre></div> | <p dir="auto">The simplified code below results in an ICE using the following rust version</p>
<p dir="auto">rustc 1.0.0-beta (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/9854143cba679834bc4ef932858cd5303f015a0e/hovercard" href="https://github.com/rust-lang/rust/commit/9854143cba679834bc4ef932858cd5303f015a0e"><tt>9854143</tt></a> 2015-04-02) (built 2015-04-02)<br>
binary: rustc<br>
commit-hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/9854143cba679834bc4ef932858cd5303f015a0e/hovercard" href="https://github.com/rust-lang/rust/commit/9854143cba679834bc4ef932858cd5303f015a0e"><tt>9854143</tt></a><br>
commit-date: 2015-04-02<br>
build-date: 2015-04-02<br>
host: x86_64-apple-darwin<br>
release: 1.0.0-beta</p>
<p dir="auto">---- CODE resulting in ICE -------</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use std::f64;
use std::fs::File;
use std::io::{BufRead, BufReader};
#[derive(Default)]
struct Output {
count: i64,
min: f64,
max: f64,
var: f64,
qk: f64, // helper variables for
mk: f64, // variance calculation
}
fn main() {
let file = File::open("data_random_small.txt");
let buf = BufReader::new(file.unwrap());
let out = compute_statistics(buf);
}
// compute_statistics computes basic statistics for the content of the
// provided BufReader
fn compute_statistics(buf: BufReader<File>) -> Output {
let mut out = Output { count: 0, min: f64::MAX, max: -f64::MAX, var: 0.0,
qk: 0.0, mk: 0.0};
for line_r in buf.lines() {
let line = line_r.unwrap();
let n_r = line.to_string().parse::<f64>();
let n = n_r.unwrap();
// update variance
let k: f64 = out.count as f64;
out.qk += (k - 1.0) * (n - out.mk) * (n - out.mk) / k;
out.mk += (n - out.mk) / k;
out.count += 1;
}
let k: f64 = out.count as f64;
out.var = out.qk / (k-1);
out
}"><pre class="notranslate"><code class="notranslate">use std::f64;
use std::fs::File;
use std::io::{BufRead, BufReader};
#[derive(Default)]
struct Output {
count: i64,
min: f64,
max: f64,
var: f64,
qk: f64, // helper variables for
mk: f64, // variance calculation
}
fn main() {
let file = File::open("data_random_small.txt");
let buf = BufReader::new(file.unwrap());
let out = compute_statistics(buf);
}
// compute_statistics computes basic statistics for the content of the
// provided BufReader
fn compute_statistics(buf: BufReader<File>) -> Output {
let mut out = Output { count: 0, min: f64::MAX, max: -f64::MAX, var: 0.0,
qk: 0.0, mk: 0.0};
for line_r in buf.lines() {
let line = line_r.unwrap();
let n_r = line.to_string().parse::<f64>();
let n = n_r.unwrap();
// update variance
let k: f64 = out.count as f64;
out.qk += (k - 1.0) * (n - out.mk) * (n - out.mk) / k;
out.mk += (n - out.mk) / k;
out.count += 1;
}
let k: f64 = out.count as f64;
out.var = out.qk / (k-1);
out
}
</code></pre></div>
<hr>
<p dir="auto">The issue appears to be the second to last line. The compiler should reject (k-1). Changing this to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="out.var = out.qk / (k-1.0);"><pre class="notranslate"><code class="notranslate">out.var = out.qk / (k-1.0);
</code></pre></div>
<p dir="auto">results in proper compilation. Also, removing the previous scope of the for loop works and the compiler then properly complains about the (k-1) bit. Below is the backtrace:</p>
<p dir="auto">----- BACKTRACE ----</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: Impl DefId { krate: 2, node: 39365 } was matchable against Obligation(predicate=Binder(TraitPredicate(core::ops::Sub<_>)),depth=1) but now is not
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:190
stack backtrace:
1: 0x107943f77 - sys::backtrace::write::h799ab135045ca9ca1LC
2: 0x107971e4d - panicking::on_panic::h9502e488a92fc8bcHAI
3: 0x1078962de - rt::unwind::begin_unwind_inner::hf0537788ee16eadbiiI
4: 0x1070755ae - rt::unwind::begin_unwind::h447731439410619827
5: 0x107075df9 - diagnostic::Handler::bug::hb6bac6e14e70580aZsB
6: 0x104b9c3be - middle::traits::select::SelectionContext<'cx, 'tcx>::rematch_impl::h00902254f92fe252QxT
7: 0x104b9bd08 - middle::infer::InferCtxt<'a, 'tcx>::commit_if_ok::h14474907185931287891
8: 0x104b7ce94 - middle::traits::select::SelectionContext<'cx, 'tcx>::confirm_candidate::h3f1d070f70ab815cMPS
9: 0x104b509c6 - middle::traits::select::SelectionContext<'cx, 'tcx>::select::hc528f249f6251cb8OQQ
10: 0x104b6098a - middle::traits::project::project_type::h7ca468ea33bc79f1AwP
11: 0x104b5e367 - middle::traits::project::opt_normalize_projection_type::h766518f8b1310230cpP
12: 0x104b57d86 - middle::traits::project::poly_project_and_unify_type::closure.83535
13: 0x104b55bc0 - middle::traits::project::poly_project_and_unify_type::h44012951a95c13e5l5O
14: 0x104b4d206 - middle::traits::fulfill::FulfillmentContext<'tcx>::select::h7d8cf023413c2180uHO
15: 0x104b4c848 - middle::traits::fulfill::FulfillmentContext<'tcx>::select_where_possible::h0397a49aa695a23cIGO
16: 0x103efa433 - check::vtable::select_fcx_obligations_where_possible::h99330aa4e9f6a658d4b
17: 0x103f3448d - check::FnCtxt<'a, 'tcx>::resolve_type_vars_if_possible::h7c8e59ec20a8f3b2qYo
18: 0x103fb0a3e - check::op::check_binop::h7e7f29a781258fb2u5m
19: 0x10400878d - check::check_expr_with_unifier::h13696137427352880546
20: 0x103ff552c - check::check_expr_with_unifier::h7970691808293538245
21: 0x103fb0a33 - check::op::check_binop::h7e7f29a781258fb2u5m
22: 0x103ff43c3 - check::check_expr_with_unifier::h7970691808293538245
23: 0x10400fab9 - check::check_expr_with_unifier::h6698900367440735538
24: 0x103fbe705 - check::check_block_with_expected::h60bff5b1f9d55793fps
25: 0x103f9ae05 - check::check_fn::h410d0ffafb47f675l1n
26: 0x103fb932e - check::check_bare_fn::h05c77be534ada2cfUQn
27: 0x103fb2ee2 - check::check_item::h9d89bedf29e4fe82F9n
28: 0x10408f676 - check_crate::closure.36302
29: 0x104089ae7 - check_crate::h09aa7856a322fd44bwC
30: 0x103da9355 - driver::phase_3_run_analysis_passes::h1af60e7c926ca39dgGa
31: 0x103d8da85 - driver::compile_input::h27cf4320fd56e5cbQba
32: 0x103e4ba15 - run_compiler::h93c68a2a3c26052bV4b
33: 0x103e491e2 - boxed::F.FnBox<A>::call_box::h4498816167135712709
34: 0x103e486d7 - rt::unwind::try::try_fn::h2387014819904265058
35: 0x1079fbea8 - rust_try_inner
36: 0x1079fbe95 - rust_try
37: 0x103e489ca - boxed::F.FnBox<A>::call_box::h4850138824497903476
38: 0x10795b37d - sys::thread::create::thread_start::h42d6d904fce5365aihH
39: 0x7fff82bc6267 - _pthread_body
40: 0x7fff82bc61e4 - _pthread_start"><pre class="notranslate"><code class="notranslate">error: internal compiler error: Impl DefId { krate: 2, node: 39365 } was matchable against Obligation(predicate=Binder(TraitPredicate(core::ops::Sub<_>)),depth=1) but now is not
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-mac/build/src/libsyntax/diagnostic.rs:190
stack backtrace:
1: 0x107943f77 - sys::backtrace::write::h799ab135045ca9ca1LC
2: 0x107971e4d - panicking::on_panic::h9502e488a92fc8bcHAI
3: 0x1078962de - rt::unwind::begin_unwind_inner::hf0537788ee16eadbiiI
4: 0x1070755ae - rt::unwind::begin_unwind::h447731439410619827
5: 0x107075df9 - diagnostic::Handler::bug::hb6bac6e14e70580aZsB
6: 0x104b9c3be - middle::traits::select::SelectionContext<'cx, 'tcx>::rematch_impl::h00902254f92fe252QxT
7: 0x104b9bd08 - middle::infer::InferCtxt<'a, 'tcx>::commit_if_ok::h14474907185931287891
8: 0x104b7ce94 - middle::traits::select::SelectionContext<'cx, 'tcx>::confirm_candidate::h3f1d070f70ab815cMPS
9: 0x104b509c6 - middle::traits::select::SelectionContext<'cx, 'tcx>::select::hc528f249f6251cb8OQQ
10: 0x104b6098a - middle::traits::project::project_type::h7ca468ea33bc79f1AwP
11: 0x104b5e367 - middle::traits::project::opt_normalize_projection_type::h766518f8b1310230cpP
12: 0x104b57d86 - middle::traits::project::poly_project_and_unify_type::closure.83535
13: 0x104b55bc0 - middle::traits::project::poly_project_and_unify_type::h44012951a95c13e5l5O
14: 0x104b4d206 - middle::traits::fulfill::FulfillmentContext<'tcx>::select::h7d8cf023413c2180uHO
15: 0x104b4c848 - middle::traits::fulfill::FulfillmentContext<'tcx>::select_where_possible::h0397a49aa695a23cIGO
16: 0x103efa433 - check::vtable::select_fcx_obligations_where_possible::h99330aa4e9f6a658d4b
17: 0x103f3448d - check::FnCtxt<'a, 'tcx>::resolve_type_vars_if_possible::h7c8e59ec20a8f3b2qYo
18: 0x103fb0a3e - check::op::check_binop::h7e7f29a781258fb2u5m
19: 0x10400878d - check::check_expr_with_unifier::h13696137427352880546
20: 0x103ff552c - check::check_expr_with_unifier::h7970691808293538245
21: 0x103fb0a33 - check::op::check_binop::h7e7f29a781258fb2u5m
22: 0x103ff43c3 - check::check_expr_with_unifier::h7970691808293538245
23: 0x10400fab9 - check::check_expr_with_unifier::h6698900367440735538
24: 0x103fbe705 - check::check_block_with_expected::h60bff5b1f9d55793fps
25: 0x103f9ae05 - check::check_fn::h410d0ffafb47f675l1n
26: 0x103fb932e - check::check_bare_fn::h05c77be534ada2cfUQn
27: 0x103fb2ee2 - check::check_item::h9d89bedf29e4fe82F9n
28: 0x10408f676 - check_crate::closure.36302
29: 0x104089ae7 - check_crate::h09aa7856a322fd44bwC
30: 0x103da9355 - driver::phase_3_run_analysis_passes::h1af60e7c926ca39dgGa
31: 0x103d8da85 - driver::compile_input::h27cf4320fd56e5cbQba
32: 0x103e4ba15 - run_compiler::h93c68a2a3c26052bV4b
33: 0x103e491e2 - boxed::F.FnBox<A>::call_box::h4498816167135712709
34: 0x103e486d7 - rt::unwind::try::try_fn::h2387014819904265058
35: 0x1079fbea8 - rust_try_inner
36: 0x1079fbe95 - rust_try
37: 0x103e489ca - boxed::F.FnBox<A>::call_box::h4850138824497903476
38: 0x10795b37d - sys::thread::create::thread_start::h42d6d904fce5365aihH
39: 0x7fff82bc6267 - _pthread_body
40: 0x7fff82bc61e4 - _pthread_start
</code></pre></div> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.0</li>
<li>Operating System / Platform => Mac OS Mojave 10.14</li>
<li>Compiler => n/a python 3.7</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto"><a href="https://docs.opencv.org/4.1.0/d7/d37/tutorial_mat_mask_operations.html" rel="nofollow">https://docs.opencv.org/4.1.0/d7/d37/tutorial_mat_mask_operations.html</a><br>
python version of tutorial divides 1000 after evaluating current time - start time. This is incorrect as it will already return seconds, no need to divide by 1000.</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">'''<br>
t = (time.time() - t) / 1000<br>
print("Built-in filter2D time passed in seconds: %s" % t)<br>
'''</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.0</li>
<li>Operating System / Platform => Windows 10 Pro 64bit (10.0, build 17763)</li>
<li>Compiler => Visual Studio 2017 or Python 2.7.15</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">When using GaussianBlur, when Width = 5 and SigmaX = 9, strange lines are visible at both ends of the image.</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Source image<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32478538/61028842-a8bfca80-a3f4-11e9-81ca-b14fe33d1be1.jpg"><img src="https://user-images.githubusercontent.com/32478538/61028842-a8bfca80-a3f4-11e9-81ca-b14fe33d1be1.jpg" alt="test" style="max-width: 100%;"></a></p>
<p dir="auto">Output image<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32478538/61028846-ab222480-a3f4-11e9-828c-2fb91cc33063.PNG"><img src="https://user-images.githubusercontent.com/32478538/61028846-ab222480-a3f4-11e9-828c-2fb91cc33063.PNG" alt="output" style="max-width: 100%;"></a></p>
<p dir="auto">below code is same thing happens C++.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# coding: utf-8
import numpy as np
import cv2
print('OpenCV version : ' + cv2.__version__)
img = cv2.imread('test.bmp')
gau1 = cv2.GaussianBlur(img, (5,5), 8)
gau2 = cv2.GaussianBlur(img, (5,5), 9)
gau3 = cv2.GaussianBlur(img, (5,5), 10)
cv2.imshow('origin', img)
cv2.imshow('gau1', gau1)
cv2.imshow('gau2', gau2)
cv2.imshow('gau3', gau3)
cv2.waitKey(0)
cv2.destroyAllWindows()"><pre class="notranslate"><span class="pl-c"># coding: utf-8</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">cv2</span>
<span class="pl-en">print</span>(<span class="pl-s">'OpenCV version : '</span> <span class="pl-c1">+</span> <span class="pl-s1">cv2</span>.<span class="pl-s1">__version__</span>)
<span class="pl-s1">img</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-en">imread</span>(<span class="pl-s">'test.bmp'</span>)
<span class="pl-s1">gau1</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-v">GaussianBlur</span>(<span class="pl-s1">img</span>, (<span class="pl-c1">5</span>,<span class="pl-c1">5</span>), <span class="pl-c1">8</span>)
<span class="pl-s1">gau2</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-v">GaussianBlur</span>(<span class="pl-s1">img</span>, (<span class="pl-c1">5</span>,<span class="pl-c1">5</span>), <span class="pl-c1">9</span>)
<span class="pl-s1">gau3</span> <span class="pl-c1">=</span> <span class="pl-s1">cv2</span>.<span class="pl-v">GaussianBlur</span>(<span class="pl-s1">img</span>, (<span class="pl-c1">5</span>,<span class="pl-c1">5</span>), <span class="pl-c1">10</span>)
<span class="pl-s1">cv2</span>.<span class="pl-en">imshow</span>(<span class="pl-s">'origin'</span>, <span class="pl-s1">img</span>)
<span class="pl-s1">cv2</span>.<span class="pl-en">imshow</span>(<span class="pl-s">'gau1'</span>, <span class="pl-s1">gau1</span>)
<span class="pl-s1">cv2</span>.<span class="pl-en">imshow</span>(<span class="pl-s">'gau2'</span>, <span class="pl-s1">gau2</span>)
<span class="pl-s1">cv2</span>.<span class="pl-en">imshow</span>(<span class="pl-s">'gau3'</span>, <span class="pl-s1">gau3</span>)
<span class="pl-s1">cv2</span>.<span class="pl-en">waitKey</span>(<span class="pl-c1">0</span>)
<span class="pl-s1">cv2</span>.<span class="pl-en">destroyAllWindows</span>()</pre></div> | 0 |
<h2 dir="auto">Feature request</h2>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
An external component should be able to invalidate the remoteEntry and cause a refresh of the external module - currently we would have to do a full page reload.</p>
<p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong></p>
<ul dir="auto">
<li>If the app is able to detect a new release of the external component a reload might be required - instead of a full page reload we could refresh the module. <em>(it would likely be the module it self knowing if a refresh is needed)</em></li>
<li>If there was an issue in the loaded module eg. a UI Component having an issue - it would be nice to provide a pr. module refresh eg. letting the user trigger a "retry"</li>
<li>If the external service is down for some reason the fallback module/component could likely detect when the service is up again and trigger a refresh of modules from that service</li>
</ul>
<p dir="auto"><strong>How should this be implemented in your opinion?</strong><br>
Client code could import a magical <code class="notranslate">import {refresh} from "webpack/module/federation/refresh"</code><br>
If used as an external module it would communication with the remoteEntry refresh mechanism updating module loader and resetting module cache. <em>(If used in the main application it could either be ignored or trigger a full page reload?)</em></p>
<p dir="auto"><strong>Are you willing to work on this yourself?</strong><br>
yes, despite being low on time and domain knowledge regarding the webpack code base - although the initial work would likely be figuring out if feasible / practical or if a full page reload is better.</p> | <p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">As per <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TheLarkInn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TheLarkInn">@TheLarkInn</a> tweet (<a href="https://twitter.com/thelarkinn/status/821879942552154112" rel="nofollow">https://twitter.com/thelarkinn/status/821879942552154112</a>) it has been brought to attention that there are some rather obvious performance gains (upwards of 10x) when using <code class="notranslate">for</code> over <code class="notranslate">for-of</code> and <code class="notranslate">forEach</code></p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">Currently, <code class="notranslate">forEach</code> is being used throughout project.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">N/A</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Well, I expect it to be as fast and optimized as possible :-)</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto">It is always better when things are faster!</p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong></p>
<p dir="auto">As per this sample gist</p>
<p dir="auto"><a href="https://gist.github.com/vsemozhetbyt/7f6db3f73dfec8ac08bcfc81b1b11cbb">https://gist.github.com/vsemozhetbyt/7f6db3f73dfec8ac08bcfc81b1b11cbb</a></p>
<p dir="auto">Local Results</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" // v8 5.1.281.84 (Node.js 6.8.1)
for : 1.113ms
for-of : 35.201ms
forEach: 24.478ms"><pre class="notranslate"><code class="notranslate"> // v8 5.1.281.84 (Node.js 6.8.1)
for : 1.113ms
for-of : 35.201ms
forEach: 24.478ms
</code></pre></div> | 0 |
<p dir="auto">by <strong>esko.luontola</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
import (
"testing"
"runtime"
)
func TestBug(t *testing.T) {
pc, fileCaller, lineCaller, _ := runtime.Caller(0)
f := runtime.FuncForPC(pc)
fileFunc, lineFunc := f.FileLine(pc)
t.Log(fileCaller, fileFunc)
if fileCaller != fileFunc {
t.Errorf("file wrong: %v != %v", fileCaller, fileFunc)
}
t.Log(lineCaller, lineFunc)
if lineCaller != lineFunc {
t.Errorf("line wrong: %v != %v", lineCaller, lineFunc)
}
}
What is the expected output? What do you see instead?
--- FAIL: gospec.TestBug
/home/orfjackal/devel/gospec/src/gospec/bug_test.go
/home/orfjackal/devel/gospec/src/gospec/bug_test.go
9 1126
line wrong: 9 != 1126
What is your $GOOS? $GOARCH?
linux amd64
Which revision are you using? (hg identify)
d1615461b60e tip</pre> | <pre class="notranslate">My app hangs acquiring a semaphore (within RWMutex).
(Simple workaround is to add a field to sync.RWMutex struct.)
This problem has been happening for about a week.
There were some bugs in the runtime being chased
at the time, so I hoped this was a duplicate.
I switched back to 1.0.3 in which my app runs fine.
That bug was:
<a href="https://golang.org/issue/5120" rel="nofollow">https://golang.org/issue/5120</a>
After that bug was fixed, I tried again and it still
hangs, and the same symptoms occur.
I'd define symptoms below.
Whenever I run my application, it hangs at a certain
point acquiring a semaphore.
(I used kill -SIGABRT to get the stacktrace).
goroutine 17 [semacquire]:
sync.runtime_Semacquire(0x7fc24a701370)
/opt/go-contrib/src/pkg/runtime/zsema_linux_amd64.c:165 +0x2e
sync.(*RWMutex).Lock(0x7fc24a701368)
/opt/go-contrib/src/pkg/sync/rwmutex.go:80 +0x81
ugorji.net/util.(*SafeStore).putAll(0x7fc24a701360, 0x0, 0x1, 0x0, 0x149682c01495c0, ...)
/home/ugorji/depot/golang/src/ugorji.net/util/safe_store.go:148 +0x88
However, I got it past that point simply by adding a
field to RWMutex ie I added "Ugorji bool" as last
field in sync.RWMutex. And we're fine; no more hanging.
(Hopefully this gives a hint of what is causing this).
I tried applying Remy's patch but that didn't help (pulling straws here).
<a href="https://golang.org/cl/8287043/" rel="nofollow">https://golang.org/cl/8287043/</a>
I've been trying to isolate the issue for a week now.
I even wrote standalone programs that simulate what
I am doing, but they all work fine.
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
Linux 3.5.0-26-generic #42-Ubuntu SMP Fri Mar 8 23:18:20 UTC 2013 x86_64 GNU/Linux
Which version are you using? (run 'go version')
go version devel +d646225cb410 Wed Apr 03 17:03:42 2013 -0700 linux/amd64
Please provide any additional information below.</pre> | 0 |
<p dir="auto">The QR decomposition works properly when used alone. However, after I plot with a <code class="notranslate">.:</code> linestyle using <code class="notranslate">pyplot</code>, the result of QR decomposition becomes <code class="notranslate">nan</code>. This bug happens under the following condition.</p>
<ul dir="auto">
<li>The matrix shape is larger than 9x8. A 8x7 matrix works properly on my computer.</li>
<li>Plot with <code class="notranslate">.:</code> or <code class="notranslate">.--</code> linestyle. The linestyle <code class="notranslate">.-</code> will not cause a problem.</li>
<li>Windows platform. There is no such bug on MacOS.</li>
</ul>
<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 matplotlib.pyplot as plt
def testQR(A, bug):
if bug:
plt.plot([0, 1], [0, 1], ".:")
else:
plt.plot([0, 1], [0, 1], ".-")
Q, _ = np.linalg.qr(A)
print("==========================")
print("Matrix shape: {}x{}".format(A.shape[0], A.shape[1]))
print("Linestyle of pyplot: {}".format(".:" if bug else ".-"))
print("First row of Q: {}".format(Q[0]))
M_large = np.eye(9, 8)
M_small = np.eye(8, 7)
testQR(M_large, bug=True)
testQR(M_large, bug=False)
testQR(M_small, bug=True)
testQR(M_small, bug=False)"><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">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">def</span> <span class="pl-en">testQR</span>(<span class="pl-v">A</span>, <span class="pl-s1">bug</span>):
<span class="pl-k">if</span> <span class="pl-s1">bug</span>:
<span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], <span class="pl-s">".:"</span>)
<span class="pl-k">else</span>:
<span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">0</span>, <span class="pl-c1">1</span>], <span class="pl-s">".-"</span>)
<span class="pl-v">Q</span>, <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">linalg</span>.<span class="pl-en">qr</span>(<span class="pl-v">A</span>)
<span class="pl-en">print</span>(<span class="pl-s">"=========================="</span>)
<span class="pl-en">print</span>(<span class="pl-s">"Matrix shape: {}x{}"</span>.<span class="pl-en">format</span>(<span class="pl-v">A</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>], <span class="pl-v">A</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>]))
<span class="pl-en">print</span>(<span class="pl-s">"Linestyle of pyplot: {}"</span>.<span class="pl-en">format</span>(<span class="pl-s">".:"</span> <span class="pl-k">if</span> <span class="pl-s1">bug</span> <span class="pl-k">else</span> <span class="pl-s">".-"</span>))
<span class="pl-en">print</span>(<span class="pl-s">"First row of Q: {}"</span>.<span class="pl-en">format</span>(<span class="pl-v">Q</span>[<span class="pl-c1">0</span>]))
<span class="pl-v">M_large</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">eye</span>(<span class="pl-c1">9</span>, <span class="pl-c1">8</span>)
<span class="pl-v">M_small</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">eye</span>(<span class="pl-c1">8</span>, <span class="pl-c1">7</span>)
<span class="pl-en">testQR</span>(<span class="pl-v">M_large</span>, <span class="pl-s1">bug</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-en">testQR</span>(<span class="pl-v">M_large</span>, <span class="pl-s1">bug</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-en">testQR</span>(<span class="pl-v">M_small</span>, <span class="pl-s1">bug</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-en">testQR</span>(<span class="pl-v">M_small</span>, <span class="pl-s1">bug</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div>
<p dir="auto">The result of the code above on my computer is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="==========================
Matrix shape: 9x8
Linestyle of pyplot: .:
First row of Q: [nan nan nan nan nan nan nan nan]
==========================
Matrix shape: 9x8
Linestyle of pyplot: .-
First row of Q: [1. 0. 0. 0. 0. 0. 0. 0.]
==========================
Matrix shape: 8x7
Linestyle of pyplot: .:
First row of Q: [1. 0. 0. 0. 0. 0. 0.]
==========================
Matrix shape: 8x7
Linestyle of pyplot: .-
First row of Q: [1. 0. 0. 0. 0. 0. 0.]"><pre class="notranslate"><code class="notranslate">==========================
Matrix shape: 9x8
Linestyle of pyplot: .:
First row of Q: [nan nan nan nan nan nan nan nan]
==========================
Matrix shape: 9x8
Linestyle of pyplot: .-
First row of Q: [1. 0. 0. 0. 0. 0. 0. 0.]
==========================
Matrix shape: 8x7
Linestyle of pyplot: .:
First row of Q: [1. 0. 0. 0. 0. 0. 0.]
==========================
Matrix shape: 8x7
Linestyle of pyplot: .-
First row of Q: [1. 0. 0. 0. 0. 0. 0.]
</code></pre></div>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">numpy version: 1.18.1<br>
matplotlib version: 3.1.2<br>
python version: 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)]</p> | <p dir="auto">Tests are failing:<br>
FAILED ....\lib\tests\test_regression.py::TestRegression::test_polyfit_build - numpy.linalg.LinAlgError: SVD did not...<br>
FAILED ....\linalg\tests\test_regression.py::TestRegression::test_eig_build - numpy.linalg.LinAlgError: Eigenvalues ...<br>
FAILED ....\ma\tests\test_extras.py::TestPolynomial::test_polyfit - numpy.linalg.LinAlgError: SVD did not converge i...</p>
<p dir="auto">with exceptions:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="err = 'invalid value', flag = 8
def _raise_linalgerror_lstsq(err, flag):
> raise LinAlgError("SVD did not converge in Linear Least Squares")
E numpy.linalg.LinAlgError: SVD did not converge in Linear Least Squares
err = 'invalid value'
flag = 8"><pre class="notranslate"><code class="notranslate">err = 'invalid value', flag = 8
def _raise_linalgerror_lstsq(err, flag):
> raise LinAlgError("SVD did not converge in Linear Least Squares")
E numpy.linalg.LinAlgError: SVD did not converge in Linear Least Squares
err = 'invalid value'
flag = 8
</code></pre></div>
<p dir="auto">and</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="err = 'invalid value', flag = 8
def _raise_linalgerror_eigenvalues_nonconvergence(err, flag):
> raise LinAlgError("Eigenvalues did not converge")
E numpy.linalg.LinAlgError: Eigenvalues did not converge
err = 'invalid value'
flag = 8"><pre class="notranslate"><code class="notranslate">err = 'invalid value', flag = 8
def _raise_linalgerror_eigenvalues_nonconvergence(err, flag):
> raise LinAlgError("Eigenvalues did not converge")
E numpy.linalg.LinAlgError: Eigenvalues did not converge
err = 'invalid value'
flag = 8
</code></pre></div>
<p dir="auto">Steps taken:</p>
<ul dir="auto">
<li>Create a VM</li>
<li>Install latest Windows 10 and update to the latest version 2004 (10.0.19041)</li>
<li>Install Python 3.8.3</li>
<li><code class="notranslate">pip install pytest</code></li>
<li><code class="notranslate">pip install numpy</code></li>
<li><code class="notranslate">pip install hypothesis</code></li>
<li>run tests in the package</li>
</ul>
<p dir="auto">Same happens issue happens when running on tests in the repository.</p>
<p dir="auto">Version 1.19.0 of numpy</p>
<p dir="auto">Am I missing any dependencies? Or is it just Windows going bonkers?</p> | 1 |
<h1 dir="auto">Environment</h1>
<p dir="auto">windows</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">windows 10 Version 10.0.18362 Build 18362<br>
v 0.2.1715.0</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">the "alt gr" keys are not working on a danish keyboard. when presing "alt Gr" it just is like no "alt GR" the shift and normal keys are working.</p> | <p dir="auto">This is related to the <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="448313626" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/1000" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1000/hovercard" href="https://github.com/microsoft/terminal/issues/1000">#1000</a> - Deliverable: Add support for panes</p>
<p dir="auto">Currently, when a new pane is opened by splitting the window, the default shell is opened instead of an instance of same shell already open in the side pane.</p>
<p dir="auto">I would expect the window to be split using the same shell, maybe have a separate command to split using the default shell.</p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.3.2171.0
Any other software?
WSL 1 (Ubuntu) (Default shell in Win Terminal)"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.3.2171.0
Any other software?
WSL 1 (Ubuntu) (Default shell in Win Terminal)
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Open a non default shell (In my case CMD, because WSL is the default)<br>
Press the shortcut for command <strong>splitVertical</strong> (ctrl+shift+\)<br>
The pane will split and</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Open a new pane of same shell</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The default shell is opened in the new pane</p> | 0 |
<p dir="auto">Hi,<br>
I am trying to optimize a function using fmin_bfgs, and logistic regression algorithm. There's no problem in convergence using the older version (scipy 0.10). However when using newer version 0.15 the optimizer crashes with warning: "Desired error not necessarily achieved due to precision loss”.<br>
I compared optimize.py code of older, and newer versions, and noticed initial stepsize is updated from <strong>old_old_fval = old_fval + 5000</strong> to <strong>old_old_fval = None</strong>. (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scipy/scipy/commit/81474eb34d99bba0b2908e35ba832ca735e40154/hovercard" href="https://github.com/scipy/scipy/commit/81474eb34d99bba0b2908e35ba832ca735e40154"><tt>81474eb</tt></a>)<br>
Then I tried changing the stepsize back to <strong>old_old_fval = old_fval + 5000</strong>, and this time fmin_bfgs worked perfectly. I am guessing there might be an issue with the initial stepsize (<strong>old_old_fval = None</strong>) for fmin_bfgs, and this stepsize may not be flexible for all gradient sizes. I see a similar issue still opened here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="32281799" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/3581" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/3581/hovercard" href="https://github.com/scipy/scipy/issues/3581">#3581</a>.</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1473" rel="nofollow">http://projects.scipy.org/scipy/ticket/1473</a> on 2011-07-07 by trac user collinstocks, assigned to unknown.</em></p>
<p dir="auto">The qr function in the linear algebra library is lacking some of the functionality that exists in the matlab function of the same name. While the purpose of scipy is certainly not duplicate the functionality of matlab, qr decomposition with pivoting is a rather important feature, as it can be used, for example, to estimate the rank of a matrix.</p>
<p dir="auto">I am not familiar enough with the scipy code to create a new lapack wrapper, but I have implemented the functionality described above by using cvxopt.lapack. Clearly, a production version should wrap lapack.geqp3 properly.</p>
<p dir="auto">Unfortunately, the reference implementation I made is based off linalg.qr from scipy version 0.7.1. I can probably do the same for the current version without too much difficulty.</p> | 0 |
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):</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:</li>
<li>Python version:</li>
<li>Installed using virtualenv? pip? conda?:</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"><strong>Describe the problem</strong></p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<p dir="auto"><strong>Any other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | <p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 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:</li>
<li>Python version: 2.7</li>
<li>Bazel version (if compiling from source): 0.26.1</li>
<li>GCC/Compiler version (if compiling from source): 7.3.0</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
I want to build a tensorflow C library for MIPS architecture.<br>
So in order to do that, I specified the following options before building:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export CC=/usr/bin/mips64-linux-gnuabi64-gcc
export CXX=/usr/bin/mips64-linux-gnuabi64-g++"><pre class="notranslate"><code class="notranslate">export CC=/usr/bin/mips64-linux-gnuabi64-gcc
export CXX=/usr/bin/mips64-linux-gnuabi64-g++
</code></pre></div>
<p dir="auto">Those are cross-compilers for MIPS64.<br>
So when I try to build bazel using:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build //tensorflow/tools/lib_package:libtensorflow --spawn_strategy=standalone --verbose_failures"><pre class="notranslate"><code class="notranslate">bazel build //tensorflow/tools/lib_package:libtensorflow --spawn_strategy=standalone --verbose_failures
</code></pre></div>
<p dir="auto">I get the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /root/.cache/bazel/_bazel_root/36c1970dc5e3eff66b396f9517eb3547/external/hwloc/BUILD.bazel:214:1: C++ compilation of rule '@hwloc//:hwloc' failed (Exit 1): mips64-linux-gnuabi64-gcc failed: error executing command
(cd /root/.cache/bazel/_bazel_root/36c1970dc5e3eff66b396f9517eb3547/execroot/org_tensorflow && \
exec env - \
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Users/kprosvir/Downloads/cmder/vendor/conemu-maximus5/ConEmu/wsl:/mnt/c/Users/kprosvir/Downloads/cmder/vendor/conemu-maximus5/ConEmu/Scripts:/mnt/c/Users/kprosvir/Downloads/cmder/vendor/conemu-maximus5:/mnt/c/Users/kprosvir/Downloads/cmder/vendor/conemu-maximus5/ConEmu:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files (x86)/Sennheiser/SoftphoneSDK:/mnt/c/ProgramData/Webex/Webex/Applications:/mnt/c/Users/kprosvir/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/kprosvir/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/kprosvir/AppData/Local/hyper/app-3.0.0/resources/bin:/mnt/c/Users/kprosvir/AppData/Local/Box/Box Edit:/snap/bin:/usr/local/go/bin:/root/go//bin' \
PWD=/proc/self/cwd \
/usr/bin/mips64-linux-gnuabi64-gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/host/bin/external/hwloc/_objs/hwloc/topology-x86.pic.d '-frandom-seed=bazel-out/host/bin/external/hwloc/_objs/hwloc/topology-x86.pic.o' -fPIC -iquote external/hwloc -iquote bazel-out/host/bin/external/hwloc -isystem external/hwloc/hwloc -isystem bazel-out/host/bin/external/hwloc/hwloc -isystem external/hwloc/include -isystem bazel-out/host/bin/external/hwloc/include -g0 -I. -Ihwloc -Iinclude -Wno-vla '-DHWLOC_DUMPED_HWDATA_DIR=' '-DRUNSTATEDIR=' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/hwloc/hwloc/topology-x86.c -o bazel-out/host/bin/external/hwloc/_objs/hwloc/topology-x86.pic.o)
Execution platform: @bazel_tools//platforms:host_platform
In file included from external/hwloc/hwloc/topology-x86.c:23:0:
external/hwloc/hwloc/topology-x86.c: In function 'cpuid_or_from_dump':
external/hwloc/include/private/cpuid-x86.h:67:3: error: invalid 'asm': invalid use of '%k'
__asm__(
^~~~~~~
Target //tensorflow/tools/lib_package:libtensorflow failed to build"><pre class="notranslate"><code class="notranslate">ERROR: /root/.cache/bazel/_bazel_root/36c1970dc5e3eff66b396f9517eb3547/external/hwloc/BUILD.bazel:214:1: C++ compilation of rule '@hwloc//:hwloc' failed (Exit 1): mips64-linux-gnuabi64-gcc failed: error executing command
(cd /root/.cache/bazel/_bazel_root/36c1970dc5e3eff66b396f9517eb3547/execroot/org_tensorflow && \
exec env - \
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Users/kprosvir/Downloads/cmder/vendor/conemu-maximus5/ConEmu/wsl:/mnt/c/Users/kprosvir/Downloads/cmder/vendor/conemu-maximus5/ConEmu/Scripts:/mnt/c/Users/kprosvir/Downloads/cmder/vendor/conemu-maximus5:/mnt/c/Users/kprosvir/Downloads/cmder/vendor/conemu-maximus5/ConEmu:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/c/Program Files (x86)/Sennheiser/SoftphoneSDK:/mnt/c/ProgramData/Webex/Webex/Applications:/mnt/c/Users/kprosvir/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/kprosvir/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/kprosvir/AppData/Local/hyper/app-3.0.0/resources/bin:/mnt/c/Users/kprosvir/AppData/Local/Box/Box Edit:/snap/bin:/usr/local/go/bin:/root/go//bin' \
PWD=/proc/self/cwd \
/usr/bin/mips64-linux-gnuabi64-gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/host/bin/external/hwloc/_objs/hwloc/topology-x86.pic.d '-frandom-seed=bazel-out/host/bin/external/hwloc/_objs/hwloc/topology-x86.pic.o' -fPIC -iquote external/hwloc -iquote bazel-out/host/bin/external/hwloc -isystem external/hwloc/hwloc -isystem bazel-out/host/bin/external/hwloc/hwloc -isystem external/hwloc/include -isystem bazel-out/host/bin/external/hwloc/include -g0 -I. -Ihwloc -Iinclude -Wno-vla '-DHWLOC_DUMPED_HWDATA_DIR=' '-DRUNSTATEDIR=' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/hwloc/hwloc/topology-x86.c -o bazel-out/host/bin/external/hwloc/_objs/hwloc/topology-x86.pic.o)
Execution platform: @bazel_tools//platforms:host_platform
In file included from external/hwloc/hwloc/topology-x86.c:23:0:
external/hwloc/hwloc/topology-x86.c: In function 'cpuid_or_from_dump':
external/hwloc/include/private/cpuid-x86.h:67:3: error: invalid 'asm': invalid use of '%k'
__asm__(
^~~~~~~
Target //tensorflow/tools/lib_package:libtensorflow failed to build
</code></pre></div>
<p dir="auto">So the question is: is there any way to fix it and successfully build it for MIPS64?</p> | 0 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2>
<ul dir="auto">
<li>Windows build number: [run "winver"]</li>
<li>PowerToys version:</li>
<li>PowerToy module:</li>
</ul>
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2>
<ol dir="auto">
<li>…</li>
<li>…</li>
<li>…</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto"><em>What is the expected result of the above steps?</em></p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3>
<p dir="auto"><em>What is the actual result of the above steps?</em></p>
<h2 dir="auto">📷 Screenshots</h2>
<p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p>
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 08/05/2020 15:37:33<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> | <p dir="auto">Popup tells me to give y'all this.</p>
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p>
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 07/31/2020 17:29:59<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> | 1 |
<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>
<ol dir="auto">
<li>run <code class="notranslate">npm version</code> for workspaces with <code class="notranslate">-w <workspace></code> args</li>
<li>see only changed <code class="notranslate">package.json</code> but not change lockfile</li>
</ol>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">run <code class="notranslate">npm version -w <workspace></code> need adjust new version of workspace package in <code class="notranslate">package-lock.json</code></p>
<p dir="auto">As it said in <a href="https://docs.npmjs.com/cli/v8/commands/npm-version#description" rel="nofollow">npm cli docs</a>:</p>
<blockquote>
<p dir="auto">Run this(<code class="notranslate">npm version</code>) in a package directory to bump the version and write the new data back to package.json, package-lock.json, and, if present, npm-shrinkwrap.json.</p>
</blockquote>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15135943/147444826-88da27d1-fda1-4168-be90-ad12f0ab0641.png"><img src="https://user-images.githubusercontent.com/15135943/147444826-88da27d1-fda1-4168-be90-ad12f0ab0641.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>run <code class="notranslate">npm version</code> for workspaces with <code class="notranslate">-w <workspace></code> args</li>
<li>see only changed <code class="notranslate">package.json</code> but not change lockfile</li>
<li>for verify whether lockfile need update, I have run <code class="notranslate">npm install</code></li>
<li>yes, <code class="notranslate">lockfile</code> changed</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15135943/147444082-36ffdffe-1d39-45fb-97e8-57de6088e163.png"><img src="https://user-images.githubusercontent.com/15135943/147444082-36ffdffe-1d39-45fb-97e8-57de6088e163.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15135943/147444323-0dc07d79-e838-406b-8d2b-d2c65afa6f23.png"><img src="https://user-images.githubusercontent.com/15135943/147444323-0dc07d79-e838-406b-8d2b-d2c65afa6f23.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.3.0</li>
<li>Node: 16.8.0</li>
<li>OS: macOS 11.15</li>
<li>platform: Mac</li>
<li>npm config:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="audit = false
fund = false
if-present = true
ignore-scripts = false
yes = true"><pre class="notranslate"><code class="notranslate">audit = false
fund = false
if-present = true
ignore-scripts = false
yes = true
</code></pre></div> | <h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">The <code class="notranslate">npm --no-git-tag-version --workspaces version <version></code> command doesn't update package devDependencies or dependencies with the new version. I'd expect that workspace dependencies would be updated to match the new versions that were set.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">npm --no-git-tag-version --workspaces version "2.0.0-alpha1" should update all workspace package versions (currently does) and also update the package dependency versions</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>Setup a new npm workspace</li>
<li>Create <code class="notranslate">/packages/packagea</code> :</li>
</ol>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "packagea",
"version": "2.0.0-dev"
}"><pre class="notranslate">{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>packagea<span class="pl-pds">"</span></span>,
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-dev<span class="pl-pds">"</span></span>
}</pre></div>
<ol start="3" dir="auto">
<li>Create ``/packages/packageb`:</li>
</ol>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "packageb",
"version": "2.0.0-dev",
"dependencies": {
"packagea": "2.0.0-dev"
}
}"><pre class="notranslate">{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>packageb<span class="pl-pds">"</span></span>,
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-dev<span class="pl-pds">"</span></span>,
<span class="pl-ent">"dependencies"</span>: {
<span class="pl-ent">"packagea"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.0-dev<span class="pl-pds">"</span></span>
}
}</pre></div>
<ol start="3" dir="auto">
<li>Run <code class="notranslate">npm --no-git-tag-version --workspaces version "2.0.0-alpha1"</code></li>
<li>notice the package versions are updated but the dependencies are not.</li>
</ol>
<p dir="auto">I have an existing setup located here: <a href="https://github.com/exceptionless/Exceptionless.JavaScript/tree/feature/workspaces">https://github.com/exceptionless/Exceptionless.JavaScript/tree/feature/workspaces</a> that reproduces it (but package names are changed...)</p>
<p dir="auto">I noticed this after getting the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ETARGET
npm ERR! notarget No matching version found for @exceptionless/[email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist."><pre lang="npm" class="notranslate"><code class="notranslate">npm ERR! code ETARGET
npm ERR! notarget No matching version found for @exceptionless/[email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
</code></pre></div>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS: Windows 10 latest</li>
<li>Node: v16.1.0</li>
<li>npm: 7.17.0</li>
</ul> | 1 |
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life" rel="nofollow">http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">In typing this suggested code to solve the challenge, the automatic closing of parentheses leads the student to type</p>
<p dir="auto"><math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="f033b59ddba7a744f8bc10b50cd79ddb">$($</math-renderer>)</p>
<p dir="auto">which immediately causes the script to become unresponsive. This is on Firefox for Mac v39.0.3</p> | <p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/record-collection#?solution=%0A%2F%2F%20Setup%0Avar%20collection%20%3D%20%7B%0A%20%20%20%202548%3A%20%7B%0A%20%20%20%20%20%20album%3A%20%22Slippery%20When%20Wet%22%2C%0A%20%20%20%20%20%20artist%3A%20%22Bon%20Jovi%22%2C%0A%20%20%20%20%20%20tracks%3A%20%5B%20%0A%20%20%20%20%20%20%20%20%22Let%20It%20Rock%22%2C%20%0A%20%20%20%20%20%20%20%20%22You%20Give%20Love%20a%20Bad%20Name%22%20%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%202468%3A%20%7B%0A%20%20%20%20%20%20album%3A%20%221999%22%2C%0A%20%20%20%20%20%20artist%3A%20%22Prince%22%2C%0A%20%20%20%20%20%20tracks%3A%20%5B%20%0A%20%20%20%20%20%20%20%20%221999%22%2C%20%0A%20%20%20%20%20%20%20%20%22Little%20Red%20Corvette%22%20%0A%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%201245%3A%20%7B%0A%20%20%20%20%20%20artist%3A%20%22Robert%20Palmer%22%2C%0A%20%20%20%20%20%20tracks%3A%20%5B%20%5D%0A%20%20%20%20%7D%2C%0A%20%20%20%205439%3A%20%7B%0A%20%20%20%20%20%20album%3A%20%22ABBA%20Gold%22%0A%20%20%20%20%7D%0A%7D%3B%0A%2F%2F%20Keep%20a%20copy%20of%20the%20collection%20for%20tests%0Avar%20collectionCopy%20%3D%20JSON.parse%28JSON.stringify%28collection%29%29%3B%0A%0A%2F%2F%20Only%20change%20code%20below%20this%20line%0A%0Afunction%20updateRecords%28id%2C%20prop%2C%20value%29%20%7B%0A%20%20if%20%28value%20!%3D%3D%20%22%22%20%26%26%20prop%20!%3D%3D%20%22tracks%22%29%20%7B%0A%20%20%20%20collection%5Bid%5D%5Bprop%5D%20%3D%20value%3B%0A%20%20%7D%20else%20if%20%28prop%20%3D%3D%3D%20%22tracks%22%20%26%26%20value%20!%3D%3D%20%22%22%29%20%7B%0A%20%20%20%20%2F*if%28collection%5Bid%5D.hasOwnProperty%28prop%29%29%0A%20%20%20%20%20%20collection%5Bid%5D%5Bprop%5D.push%28value%29%3B%0A%20%20%20%20else%0A%20%20%20%20%20%20collection%5Bid%5D%5Bprop%5D%3D%5Bvalue%5D%3B%0A%20%20%20%20%2F%2Fcollection%5Bid%5D%5Bprop%5D.push%28value%29%3B*%2F%0A%20%20%20%20collection%5Bid%5D%5Bprop%5D%3D%5Bvalue%5D%3B%0A%20%20%7D%20else%20if%20%28value%20%3D%3D%3D%20%22%22%29%20%7B%0A%20%20%20delete%20collection%5Bid%5D%5Bprop%5D%3B%0A%20%20%7D%0A%0A%20%20return%20collection%3B%0A%7D%0A%0A%0A%0A%2F%2F%20Alter%20values%20below%20to%20test%20your%20code%0AupdateRecords%282548%2C%20%22tracks%22%2C%20%22ABBA%22%29%3B%0A%0A" rel="nofollow">Record Collection</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">Instructions in description text:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="For the given id in collection:
If prop does not contain the key "tracks", then update or set the value for that incomplete prop.
If prop does not contain the key "tracks" before you update it, create an empty array before pushing a track to it.
If prop does contain the key "tracks" and its value is non-blank, then push the value onto the end of its existing tracks array.
If value is blank, delete that prop."><pre class="notranslate"><span class="pl-v">For</span> <span class="pl-s1">the</span> <span class="pl-s1">given</span> <span class="pl-s1">id</span> <span class="pl-k">in</span> <span class="pl-s1">collection</span>:
<span class="pl-v">If</span> <span class="pl-s1">prop</span> <span class="pl-s1">does</span> <span class="pl-s1">not</span> <span class="pl-s1">contain</span> <span class="pl-s1">the</span> <span class="pl-s1">key</span> <span class="pl-s">"tracks"</span><span class="pl-kos">,</span> <span class="pl-s1">then</span> <span class="pl-s1">update</span> <span class="pl-s1">or</span> <span class="pl-k">set</span> <span class="pl-s1">the</span> <span class="pl-s1">value</span> <span class="pl-s1">for</span> <span class="pl-s1">that</span> <span class="pl-s1">incomplete</span> <span class="pl-s1">prop</span><span class="pl-kos">.</span>
<span class="pl-c1">If</span> <span class="pl-s1">prop</span> <span class="pl-s1">does</span> <span class="pl-s1">not</span> <span class="pl-s1">contain</span> <span class="pl-s1">the</span> <span class="pl-s1">key</span> <span class="pl-s">"tracks"</span> <span class="pl-s1">before</span> <span class="pl-s1">you</span> <span class="pl-s1">update</span> <span class="pl-s1">it</span><span class="pl-kos">,</span> <span class="pl-s1">create</span> <span class="pl-s1">an</span> <span class="pl-s1">empty</span> <span class="pl-s1">array</span> <span class="pl-s1">before</span> <span class="pl-s1">pushing</span> <span class="pl-s1">a</span> <span class="pl-s1">track</span> <span class="pl-s1">to</span> <span class="pl-s1">it</span><span class="pl-kos">.</span>
<span class="pl-c1">If</span> <span class="pl-s1">prop</span> <span class="pl-s1">does</span> <span class="pl-s1">contain</span> <span class="pl-s1">the</span> <span class="pl-s1">key</span> <span class="pl-s">"tracks"</span> <span class="pl-s1">and</span> <span class="pl-s1">its</span> <span class="pl-s1">value</span> <span class="pl-s1">is</span> <span class="pl-s1">non</span><span class="pl-c1">-</span><span class="pl-s1">blank</span><span class="pl-kos">,</span> <span class="pl-s1">then</span> <span class="pl-s1">push</span> <span class="pl-s1">the</span> <span class="pl-s1">value</span> <span class="pl-s1">onto</span> <span class="pl-s1">the</span> <span class="pl-s1">end</span> <span class="pl-s1">of</span> <span class="pl-s1">its</span> <span class="pl-s1">existing</span> <span class="pl-s1">tracks</span> <span class="pl-s1">array</span><span class="pl-kos">.</span>
<span class="pl-c1">If</span> <span class="pl-s1">value</span> <span class="pl-s1">is</span> <span class="pl-s1">blank</span><span class="pl-kos">,</span> <span class="pl-k">delete</span> <span class="pl-s1">that</span> <span class="pl-s1">prop</span><span class="pl-kos">.</span></pre></div>
<p dir="auto">Its just a sugesstion because your instructions (specially 3rd line) are confusing a lot of people .<br>
So I think you should change it .<br>
Your third line should be something like <code class="notranslate">If the concerned object does not contain the key "tracks" ,then update it by creating an empty array before pushing a track to it.</code><br>
because you only want to update when prop contains the value key but the concerned object doesn't have the tracks property.</p> | 0 |
<p dir="auto">I'm trying to test controllers using functional tests. But I can not create a test client, which would be authorized as specified user. This can be done through the form, but it is not convenient. I found a <a href="http://techblog.zabuchy.net/2012/manually-authenticate-symfony-2-user/" rel="nofollow">way</a> that allows to do this, but in version 2.1 it does not work.</p>
<p dir="auto"><a href="https://github.com/i4got10/symfony-standard/blob/test-auth/src/Acme/DemoBundle/Tests/Controller/SecuredControllerTest.php">Test code</a></p>
<p dir="auto">Is there a way to manually authorize the user or the only way to use a form or stateless basic authorization like descibed in symfony book?</p> | <p dir="auto">Something that used to work before I upgraded to 2.7 doesn't anymore: setting a NULL value in a dropdown field. I've created a test bundle demonstrating the problem:</p>
<p dir="auto"><a href="https://github.com/userfriendly/form-field-null-test-bundle">https://github.com/userfriendly/form-field-null-test-bundle</a></p>
<p dir="auto">Have a look at the README and the code, and if you're not seeing anything obvious, install the bundle in a test project using Symfony 2.7 - I'm hoping it's something I'm doing wrong, but I think the code is correct according to the documentation, and it worked in earlier Symfony versions.</p>
<p dir="auto">Add an employee with a vendor. Then add an employee without a vendor. If all works as intended (or rather, as not intended) you should get an error message for the latter, saying "This value is not valid."</p>
<p dir="auto">The idea here is that I want to be able to create an employee instance without a vendor, i.e. the form should allow setting that field to NULL.</p>
<p dir="auto">The mapping explicitly allows the entity property to be nullable, the setter accepts NULL as a parameter, and the form field is configured as 'required' => false. Is there something more needed to get this working in 2.7, or is this a bug?</p>
<p dir="auto">Tested on Symfony 2.7.0-BETA1</p> | 0 |
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.0.2-2bcc6c6</p>
<p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16552)<br>
at pl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293513)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)<br>
at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br>
at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363<br>
at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)<br>
at kt (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25092)</p>
<p dir="auto">Component stack: in pl<br>
in div<br>
in ml<br>
in div<br>
in div<br>
in Or<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Ua<br>
in le<br>
in ve<br>
in ko<br>
in Fl</p> | <p dir="auto">Chrome, Firefox, Safari, IE and other modern browsers support the notion of a checkbox in an indeterminate state which can be set or cleared using the <code class="notranslate">indeterminate</code> property of a checkbox input node. (It cannot be set using attributes.)</p>
<p dir="auto">This state is most commonly used at the top of a list or tree of checkboxes to indicate that some but not all of the checkboxes underneath are checked.</p>
<p dir="auto">This behavior seems reasonably well-defined in modern Chrome, Firefox, Safari, and IE. If the checkbox's indeterminate property is set, the checkbox renders its indeterminate state regardless of what its checked state is (or if its checked state is programmatically toggled) and clicking on a checkbox clears its indeterminate state.</p>
<p dir="auto">Unfortunately there is a little bit of inconsistency. In Chrome, Firefox, and Safari clicking an indeterminate checkbox clears the indeterminate state and also toggles the checked state (triggering both a change and click event) while in IE it just clears the indeterminate state and leaves the checked state alone (triggering only a click event).</p>
<ul dir="auto">
<li>Should React support an <code class="notranslate">indeterminate</code> prop for checkbox inputs?</li>
<li>Should it be supported for uncontrolled checkboxes (via an <code class="notranslate">defaultIndeterminate</code> or similar prop)?</li>
<li>Should clicking an indeterminate checkbox follow the browser's checked-toggling behavior?</li>
</ul>
<p dir="auto">[Claims above come from playing with <a href="http://jsfiddle.net/3bn73ey5" rel="nofollow">this jsFiddle</a> in Chrome 40, Firefox 35, Safari 7, and IE 11]</p> | 0 |
<p dir="auto">When all windows are closed and only the atom header is visible on OSX you can't open the preferences directly. When you press <em>⌘ ,</em> or select the Preferences item from the dropdown menu Atom will only open a new window with a new <em>untitled</em> tab.</p>
<p dir="auto">Atom 0.199.0</p> | <p dir="auto">Atom: 0.198.0<br>
OSX: 10.10.3</p>
<p dir="auto">Steps to reproduce:</p>
<ul dir="auto">
<li>Open atom</li>
<li>Close all atom windows (shift+cmd+w)</li>
<li>Open preferences (cmd+,)</li>
</ul>
<p dir="auto">Expected behavior: new window opened with settings view<br>
Actual behavior: new window opened with new empty file</p> | 1 |
<ul dir="auto">
<li>Electron version: 1.7.x</li>
<li>Operating system: Windows 10 (1703 OS Build 15063.540)</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Setting a windows position and asking for it should return the same value.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">The Y-Position is always wrong when the window is on a secondary monitor.</p>
<h3 dir="auto">How to reproduce</h3>
<ul dir="auto">
<li>connect a secondary monitor that is larger to the right of the primary monitor</li>
<li>run below code</li>
<li>notice how the Y-Position as returned by <code class="notranslate">win.getPosition()</code> is not the same that was set when creating the window</li>
</ul>
<p dir="auto">My monitor setup is like the following (secondary monitor is larger):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/900690/31489848-5df835da-af42-11e7-96ac-0a2a353f5f5e.png"><img src="https://user-images.githubusercontent.com/900690/31489848-5df835da-af42-11e7-96ac-0a2a353f5f5e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { app, BrowserWindow } = require('electron')
const path = require('path')
const url = require('url')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win
function createWindow() {
// Create the browser window.
let y = 184;
console.log("Setting Y: " + y)
win = new BrowserWindow({ width: 800, height: 600, x: 1600, y: y })
setInterval(function () {
console.log("Y is: " + win.getPosition()[1])
}, 2000);
// and load the index.html of the app.
win.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true
}))
// Open the DevTools.
win.webContents.openDevTools()
// Emitted when the window is closed.
win.on('closed', () => {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
win = null
})
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on('ready', createWindow)
// Quit when all windows are closed.
app.on('window-all-closed', () => {
// On macOS it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit()
}
})
app.on('activate', () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (win === null) {
createWindow()
}
})
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here."><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> app<span class="pl-kos">,</span> BrowserWindow <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">'electron'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'url'</span><span class="pl-kos">)</span>
<span class="pl-c">// Keep a global reference of the window object, if you don't, the window will</span>
<span class="pl-c">// be closed automatically when the JavaScript object is garbage collected.</span>
<span class="pl-k">let</span> <span class="pl-s1">win</span>
<span class="pl-k">function</span> <span class="pl-en">createWindow</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Create the browser window.</span>
<span class="pl-k">let</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-c1">184</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Setting Y: "</span> <span class="pl-c1">+</span> <span class="pl-s1">y</span><span class="pl-kos">)</span>
<span class="pl-s1">win</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">,</span> <span class="pl-c1">x</span>: <span class="pl-c1">1600</span><span class="pl-kos">,</span> <span class="pl-c1">y</span>: <span class="pl-s1">y</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-en">setInterval</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Y is: "</span> <span class="pl-c1">+</span> <span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">getPosition</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>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">2000</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// and load the index.html of the app.</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">.</span><span class="pl-en">format</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">pathname</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'index.html'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">protocol</span>: <span class="pl-s">'file:'</span><span class="pl-kos">,</span>
<span class="pl-c1">slashes</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-c">// Open the DevTools.</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">openDevTools</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-c">// Emitted when the window is closed.</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'closed'</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-c">// Dereference the window object, usually you would store windows</span>
<span class="pl-c">// in an array if your app supports multi windows, this is the time</span>
<span class="pl-c">// when you should delete the corresponding element.</span>
<span class="pl-s1">win</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-c">// This method will be called when Electron has finished</span>
<span class="pl-c">// initialization and is ready to create browser windows.</span>
<span class="pl-c">// Some APIs can only be used after this event occurs.</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-s1">createWindow</span><span class="pl-kos">)</span>
<span class="pl-c">// Quit when all windows are closed.</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'window-all-closed'</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-c">// On macOS it is common for applications and their menu bar</span>
<span class="pl-c">// to stay active until the user quits explicitly with Cmd + Q</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">platform</span> <span class="pl-c1">!==</span> <span class="pl-s">'darwin'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">quit</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'activate'</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-c">// On macOS it's common to re-create a window in the app when the</span>
<span class="pl-c">// dock icon is clicked and there are no other windows open.</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">win</span> <span class="pl-c1">===</span> <span class="pl-c1">null</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">createWindow</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-c">// In this file you can include the rest of your app's specific main process</span>
<span class="pl-c">// code. You can also put them in separate files and require them here.</span></pre></div>
<p dir="auto">Note: in this example I am setting <code class="notranslate">Y</code> to <code class="notranslate">184</code> and the output I get is <code class="notranslate">146</code>.</p>
<p dir="auto">Maybe related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="264856998" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/10768" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/10768/hovercard" href="https://github.com/electron/electron/issues/10768">#10768</a></p> | <p dir="auto">We are seeing an issue in VS Code on Ubuntu 15 where top level menu items show up duplicate or are even missing. This seems to be caused by updating the menu via setApplicationMenu() after it has already been set. Since that is the only way to update a menu, we need to do it that way (I guess Atom has to too).</p>
<p dir="auto">We are sitting on Electron 0.28.3. Have you guys heard of this issue before?</p> | 0 |
<h3 dir="auto">Describe your issue.</h3>
<p dir="auto">Docs for <code class="notranslate">scipy.stats.multivariate_normal</code> here: <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_normal.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_normal.html</a></p>
<p dir="auto">Render the method signatures with two backticks at the beginning and at the end, which they should not have. The docs from other distributions do not have this issue - e.g.: <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.norm.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.norm.html</a></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="-"><pre class="notranslate"><span class="pl-c1">-</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="-"><pre class="notranslate">-</pre></div>
<h3 dir="auto">SciPy/NumPy/Python version information</h3>
<p dir="auto">1.7.1</p> | <p dir="auto">As noted in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="698439372" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12839" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/12839/hovercard" href="https://github.com/scipy/scipy/pull/12839">gh-12839</a>, there are a few issues that affect the documentation of several multivariate distributions.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Class documentation defines a parameter <code class="notranslate">x</code>, but <code class="notranslate">x</code> is not a parameter of the initializer.</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6570539/93006843-22ca7280-f516-11ea-832b-1c2e16599710.png"><img src="https://user-images.githubusercontent.com/6570539/93006843-22ca7280-f516-11ea-832b-1c2e16599710.png" alt="image" style="max-width: 100%;"></a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Class documentation defines a parameter <code class="notranslate">random_state</code> instead of <code class="notranslate">seed</code>.</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6570539/93006871-8654a000-f516-11ea-9f05-031af2240e5c.png"><img src="https://user-images.githubusercontent.com/6570539/93006871-8654a000-f516-11ea-9f05-031af2240e5c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6570539/93006860-5c02e280-f516-11ea-9ad8-4758ab3660a4.png"><img src="https://user-images.githubusercontent.com/6570539/93006860-5c02e280-f516-11ea-9ad8-4758ab3660a4.png" alt="image" style="max-width: 100%;"></a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The text in the class documentation about returning a frozen distribution appears in bold like parameter names, and there is an unnecessary bullet point before "Frozen"</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6570539/93006922-24486a80-f517-11ea-81f5-a113fad6829d.png"><img src="https://user-images.githubusercontent.com/6570539/93006922-24486a80-f517-11ea-81f5-a113fad6829d.png" alt="image" style="max-width: 100%;"></a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The Methods sections renders with double backticks around each method signature.</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6570539/93006880-a5533200-f516-11ea-8c5f-c782724d64f5.png"><img src="https://user-images.githubusercontent.com/6570539/93006880-a5533200-f516-11ea-8c5f-c782724d64f5.png" alt="image" style="max-width: 100%;"></a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Some parameters of the methods (e.g. <code class="notranslate">size</code>, <code class="notranslate">abseps</code>, <code class="notranslate">releps</code>) are not defined</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6570539/93006895-d9c6ee00-f516-11ea-8397-9252eb384587.png"><img src="https://user-images.githubusercontent.com/6570539/93006895-d9c6ee00-f516-11ea-8397-9252eb384587.png" alt="image" style="max-width: 100%;"></a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Related to the problems above, and true of univariate distributions, too: method names do not link to any documentation. Perhaps this is intended, but I think it would be useful to at least link to the <code class="notranslate">rv_continuous</code> method documentation. In any case, it looks like the author of <code class="notranslate">multinomial</code> intended for the documentation to be rendered somewhere, e.g.</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def logpmf(self, x, n, p):
"""
Log of the Multinomial probability mass function.
Parameters
----------
x : array_like
Quantiles, with the last axis of `x` denoting the components.
%(_doc_default_callparams)s
Returns
-------
logpmf : ndarray or scalar
Log of the probability mass function evaluated at `x`
Notes
-----
%(_doc_callparams_note)s
""""><pre class="notranslate"><code class="notranslate"> def logpmf(self, x, n, p):
"""
Log of the Multinomial probability mass function.
Parameters
----------
x : array_like
Quantiles, with the last axis of `x` denoting the components.
%(_doc_default_callparams)s
Returns
-------
logpmf : ndarray or scalar
Log of the probability mass function evaluated at `x`
Notes
-----
%(_doc_callparams_note)s
"""
</code></pre></div>
<p dir="auto">Also, not sure how closely related <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="569538227" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/11578" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/11578/hovercard" href="https://github.com/scipy/scipy/issues/11578">gh-11578</a> is, but it is worth mentioning here.</p> | 1 |
<p dir="auto">Hi, I'd like to know if is there a feature which is able to detect changes of whatever element attributes. For instance, if I'm in google Maps and I drag and drop the mouse from one location to another, it causes different transformations in some divs of the map page. Is there a way/function to test and detect such changes? Thanks :)</p> | <p dir="auto">Hi!</p>
<p dir="auto">I'm trying watch for changes in a certain <code class="notranslate">div</code> that keeps getting new elements added to it.<br>
I couldn't seem to find a proper way of listening to such "change" event via the API, am I missing something?</p>
<p dir="auto">Thanks in advance.</p>
<p dir="auto">P.S: I though about using <code class="notranslate">MutationObserver</code> but <code class="notranslate">page.$$('.someClass')</code> isn't returning a <code class="notranslate">Node</code> type object (not to mention the workaround of using <code class="notranslate">window</code> in a nodejs environment just to be able to use <code class="notranslate">MutationObserver</code>).</p> | 1 |
<p dir="auto">Hey,</p>
<p dir="auto">The current architecture for the repo does not really scale well for the number of typings there is now.<br>
How about a a-z-other structure to clean it up a bit ?</p>
<p dir="auto">I think I remember reading something about it but couldn't find the issue again</p> | <p dir="auto">It seems that as more and more definition files are placed, loading the <a href="https://github.com/borisyankov/DefinitelyTyped">repository's main page</a> is taking longer.</p>
<p dir="auto">I was wondering if the repository could be restructured so that the main page just shows a list of directories which are named with a single character (a, b, c, 4, etc...), with all definitions placed in their appropriate directory.</p>
<p dir="auto">This should provided a cleaner view and is still usable with tsd (for those that use it, excluding me :D), all while being mush faster in loading.</p>
<p dir="auto"><strong>NOTE</strong>: <em>This is just a suggestion</em></p> | 1 |
<p dir="auto">See title. Given a matrix <code class="notranslate">A</code>, this works:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="aslinearoperator(A).H"><pre class="notranslate"><code class="notranslate">aslinearoperator(A).H
</code></pre></div>
<p dir="auto">but this not:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="aslinearoperator(A).T"><pre class="notranslate"><code class="notranslate">aslinearoperator(A).T
</code></pre></div>
<p dir="auto">This seems like a basic oversight; is there a reason?</p> | <p dir="auto">As far as I understand, <code class="notranslate">sparse.LinearOperator</code> creates some instance of <code class="notranslate">CustomLinearOperator</code> when it is called by <code class="notranslate">aslinearoperator()</code> or when passed <code class="notranslate">matvec=</code>.<br>
But neither <code class="notranslate">CustomLinearOperator</code>, nor, e.g., <code class="notranslate">SumLinearOperator</code> have <code class="notranslate">transpose()</code>.</p>
<p dir="auto">And the <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.linalg.LinearOperator.html" rel="nofollow">docs</a> do not say much about how <code class="notranslate">transpose()</code> should be used or implemented.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import scipy as sp
import scipy.sparse.linalg as sla
dim = 8
shp = (dim, dim)
I = np.eye(*shp)
x0 = -sp.pi
xf = sp.pi
x = np.linspace(x0, xf, dim, endpoint=False)
# this is a vector representation of an operator with diagonal matrix
ref = (1-np.exp(-x))**2
def mv(y):
# multiply this diag matrix by vector
vv = ref
return vv*y
LO = sla.LinearOperator(shp, matvec=mv)
(LO+LO).T
# not ever if a matrix was passed
M = sla.aslinearoperator(I)
M.transpose()"><pre class="notranslate"><code class="notranslate">import numpy as np
import scipy as sp
import scipy.sparse.linalg as sla
dim = 8
shp = (dim, dim)
I = np.eye(*shp)
x0 = -sp.pi
xf = sp.pi
x = np.linspace(x0, xf, dim, endpoint=False)
# this is a vector representation of an operator with diagonal matrix
ref = (1-np.exp(-x))**2
def mv(y):
# multiply this diag matrix by vector
vv = ref
return vv*y
LO = sla.LinearOperator(shp, matvec=mv)
(LO+LO).T
# not ever if a matrix was passed
M = sla.aslinearoperator(I)
M.transpose()
</code></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'_CustomLinearOperator' object has no attribute '_transpose'"><pre class="notranslate"><code class="notranslate">'_CustomLinearOperator' object has no attribute '_transpose'
</code></pre></div>
<h3 dir="auto">Scipy/Numpy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.0.0 1.14.0 sys.version_info(major=3, minor=6, micro=4, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">1.0.0 1.14.0 sys.version_info(major=3, minor=6, micro=4, releaselevel='final', serial=0)
</code></pre></div> | 1 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before report a bug, make sure you have:</p>
<ul dir="auto">
<li>Searched open and closed <a href="https://github.com/apache/incubator-shardingsphere/issues">GitHub issues</a>.</li>
<li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li>
</ul>
<p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br>
If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">4.0.0-RC3-SNAPSHOT</p>
<h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-Proxy</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Transaction terminate correctly.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">[WARN ] 13:56:35.511 [ShardingSphere-Command-7] o.a.s.s.b.c.j.c.BackendConnection - Current transaction have not terminated, retry count:[3].<br>
[WARN ] 13:56:35.712 [ShardingSphere-Command-7] o.a.s.s.b.c.j.c.BackendConnection - Current transaction have not terminated, retry count:[4].<br>
[WARN ] 13:56:35.912 [ShardingSphere-Command-7] o.a.s.s.b.c.j.c.BackendConnection - Current transaction have not terminated, retry count:[5].<br>
[ERROR] 13:56:35.912 [ShardingSphere-Command-7] o.a.s.s.b.c.j.c.BackendConnection - Cannot do switch, exceed maximum retry count:[5].<br>
[ERROR] 13:56:35.912 [ShardingSphere-Command-7] o.a.s.s.f.c.CommandExecutorTask - Exception occur:<br>
org.apache.shardingsphere.core.exception.ShardingException: Failed to switch schema, please terminate current transaction.<br>
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.connection.BackendConnection.setCurrentSchema(BackendConnection.java:107)<br>
at org.apache.shardingsphere.shardingproxy.backend.text.admin.BroadcastBackendHandler.execute(BroadcastBackendHandler.java:53)<br>
at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:72)<br>
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:86)<br>
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:66)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br>
at java.lang.Thread.run(Thread.java:748)</p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">This pr(<a href="https://github.com/apache/incubator-shardingsphere/pull/2119/files">https://github.com/apache/incubator-shardingsphere/pull/2119/files</a>) add setCurrentSchema() which will throw exception when a transaction is not terminated.</p>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> | <p dir="auto">For English only, other languages we will close it directly.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of Sharding-Sphere do you using?</h3>
<h3 dir="auto">Which project do you using? Sharding-JDBC or Sharding-Proxy?</h3>
<h3 dir="auto">Expected behavior</h3>
<h3 dir="auto">Actual behavior</h3>
<h3 dir="auto">Reason analyze</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc</h3>
<h3 dir="auto">For bug report, please <em>MUST</em> provide the reproduce example codes (such as a github link).</h3> | 0 |
<p dir="auto">I have searched the issues of this repository and believe that this is not a duplicate.<br>
I have checked the FAQ of this repository and believe that this is not a duplicate.</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.5</li>
<li>Operating System version:CentOS 7.6</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>cd dubbo-dubbo-2.7.5/dubbo-registry/dubbo-registry-consul/</li>
<li>mvn install</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">BUILD SUCCESS</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<p dir="auto">[INFO] -------------------------------------------------------<br>
[INFO] T E S T S<br>
[INFO] -------------------------------------------------------<br>
[INFO] Running org.apache.dubbo.registry.consul.ConsulRegistryTest<br>
log4j:WARN No appenders could be found for logger (org.apache.dubbo.common.logger.LoggerFactory).<br>
log4j:WARN Please initialize the log4j system properly.<br>
log4j:WARN See <a href="http://logging.apache.org/log4j/1.2/faq.html#noconfig" rel="nofollow">http://logging.apache.org/log4j/1.2/faq.html#noconfig</a> for more info.<br>
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".<br>
SLF4J: Defaulting to no-operation (NOP) logger implementation<br>
SLF4J: See <a href="http://www.slf4j.org/codes.html#StaticLoggerBinder" rel="nofollow">http://www.slf4j.org/codes.html#StaticLoggerBinder</a> for further details.<br>
[ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.924 s <<< FAILURE! - in org.apache.dubbo.registry.consul.ConsulRegistryTest<br>
[ERROR] testAvailable Time elapsed: 0.876 s <<< ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[ERROR] testRegister Time elapsed: 0.003 s <<< ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[ERROR] testStatusChecker Time elapsed: 0.002 s <<< ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[ERROR] testSubscribe Time elapsed: 0.003 s <<< ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[ERROR] testLookup Time elapsed: 0.003 s <<< ERROR!<br>
java.net.UnknownHostException: releases.hashicorp.com<br>
at org.apache.dubbo.registry.consul.ConsulRegistryTest.setUp(ConsulRegistryTest.java:54)</p>
<p dir="auto">[INFO]<br>
[INFO] Results:<br>
[INFO]<br>
[ERROR] Errors:<br>
[ERROR] ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[ERROR] ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[ERROR] ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[ERROR] ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[ERROR] ConsulRegistryTest.setUp:54 » UnknownHost releases.hashicorp.com<br>
[INFO]<br>
[ERROR] Tests run: 5, Failures: 0, Errors: 5, Skipped: 0<br>
[INFO]<br>
[INFO] ------------------------------------------------------------------------<br>
[INFO] BUILD FAILURE<br>
[INFO] ------------------------------------------------------------------------<br>
[INFO] Total time: 5.487 s<br>
[INFO] Finished at: 2020-03-28T07:34:42+08:00<br>
[INFO] ------------------------------------------------------------------------<br>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project dubbo-registry-consul: There are test failures.<br>
[ERROR]<br>
[ERROR] Please refer to /home/Dubbo/dubbo-dubbo-2.7.5/dubbo-registry/dubbo-registry-consul/target/surefire-reports for the individual test results.<br>
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.<br>
[ERROR] -> [Help 1]<br>
[ERROR]<br>
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.<br>
[ERROR] Re-run Maven using the -X switch to enable full debug logging.<br>
[ERROR]<br>
[ERROR] For more information about the errors and possible solutions, please read the following articles:<br>
[ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptio" rel="nofollow">http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptio</a></p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.8</li>
<li>Operating System version: xxx</li>
<li>Java version: 1.8</li>
</ul>
<p dir="auto">When the service is registered in nacos, it is found that the nacos configuration center has dubbo metadata. After using dubbo.application.metadata-type = local, there is still a mapping data. Can this be controlled?</p>
<p dir="auto">服务注册到nacos中,发现nacos配置中心有dubbo的元数据,使用了dubbo.application.metadata-type=local 后仍然会有一条mapping的数据,这个是否可以控制呢?</p>
<p dir="auto">未使用dubbo.application.metadata-type=local 时有3条数据<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26211950/91707521-8073cc00-ebb2-11ea-84c1-11a2709eef73.png"><img src="https://user-images.githubusercontent.com/26211950/91707521-8073cc00-ebb2-11ea-84c1-11a2709eef73.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">使用dubbo.application.metadata-type=local 后仍然有一条数据<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26211950/91707738-d9dbfb00-ebb2-11ea-9605-4e3e723415e4.png"><img src="https://user-images.githubusercontent.com/26211950/91707738-d9dbfb00-ebb2-11ea-9605-4e3e723415e4.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">从《<a href="https://mercyblitz.github.io/2020/05/11/Apache-Dubbo-%E6%9C%8D%E5%8A%A1%E8%87%AA%E7%9C%81%E6%9E%B6%E6%9E%84%E8%AE%BE%E8%AE%A1/" rel="nofollow">dubbo 服务自省架构设计</a>》这篇文章看到元数据的存储模式推荐使用本地存储,为什么dubbo默认会把元数据存到配置中心呢?这个可以控制吗?<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26211950/91707876-0e4fb700-ebb3-11ea-891e-1277073ab763.png"><img src="https://user-images.githubusercontent.com/26211950/91707876-0e4fb700-ebb3-11ea-891e-1277073ab763.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">I'm trying to work out how to compile all of my TypeScript components to one JavaScript file. My app will have 50-100 components, so it's obviously not feasible to load them individually using <code class="notranslate">System.import()</code>.</p>
<p dir="auto">Concatenating compiled JavaScript files doesn't work because of the duplicate code. Concatenating the TypeScript files almost works, except for all the duplicate <code class="notranslate">import</code> symbols.</p>
<p dir="auto">How to do this?</p> | <p dir="auto">Hello,</p>
<p dir="auto">i want to send an event from ngOnDestroy but that is not possible.</p>
<p dir="auto">The Problem is shown in the following demo.</p>
<p dir="auto"><a href="https://plnkr.co/edit/4XVaVWJ97SYnpIjwQG82?p=preview" rel="nofollow">https://plnkr.co/edit/4XVaVWJ97SYnpIjwQG82?p=preview</a></p>
<p dir="auto">Is it possible to send an event from "ngOnDestroy" in context with the dynamic component loader?</p>
<p dir="auto">Thanks</p> | 0 |
<h1 dir="auto">Environment</h1>
<p dir="auto">Using two monitors, one widescreen monitor and one vertically oriented monitor. The widescreen monitor is using a custom fancy zone layout while the vertical monitor is using the<br>
"Rows" layout (see all monitor screenshot below).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.778]
PowerToys version: v0.16.1
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.778]
PowerToys version: v0.16.1
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Enable 'Show zones on all monitors while dragging a window' option</li>
<li>Drag window with secondary mouse button or shift key pressed and ~3 overlapping fancy zones appear on primary monitor, causing a few second delay before any zones become droppable</li>
<li>Disable 'Show zones on all monitors while dragging a window' option</li>
<li>Only one zone appears per fancy zone (expected behavior)</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<ul dir="auto">
<li>Fancy zone droppable areas will only appear once per zone</li>
</ul>
<h1 dir="auto">Actual behavior</h1>
<ul dir="auto">
<li>Multiple overlapping fancy zones appear on screen and none are selectable for several seconds</li>
</ul>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45576794/80225074-9677eb80-8618-11ea-927e-c93b17ea5870.png"><img src="https://user-images.githubusercontent.com/45576794/80225074-9677eb80-8618-11ea-927e-c93b17ea5870.png" alt="Mulitple overlapping fanzy zones" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45576794/80225692-65e48180-8619-11ea-8b6b-0068313c7b8a.png"><img src="https://user-images.githubusercontent.com/45576794/80225692-65e48180-8619-11ea-8b6b-0068313c7b8a.png" alt="FancyZonesBugAllScreen" style="max-width: 100%;"></a></p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">In the Power Toy Run you should provide a feature that can help to select the folders for search not the whole computer. In which it can select the directory or drive through which it search only . It reduce time and slow process problems in many computers .</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1> | 0 |
<p dir="auto"><strong>Issue Type:</strong> Bug Report, Regression from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="152893515" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/15713" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/15713/hovercard" href="https://github.com/ansible/ansible/issues/15713">#15713</a></p>
<p dir="auto"><strong>Component Name:</strong> handlers</p>
<p dir="auto"><strong>Ansible Version:</strong> 2.2.0.0</p>
<p dir="auto"><strong>Environment:</strong> OS X 10.11.6</p>
<p dir="auto"><strong>Summary:</strong> Under Ansible 2.2.0.0, Jinja variables contained in a handler <code class="notranslate">name</code> are no longer populated. Under Ansible 1.9.x and 2.1.1.0, they were populated. Here's a quick example:</p>
<p dir="auto"><strong>Steps To Reproduce:</strong></p>
<ol dir="auto">
<li>
<p dir="auto">Write this content to <code class="notranslate">playbook.yml</code>:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- hosts: localhost
connection: local
vars:
appname: someapp
handlers:
# The following line, when the handler is executed, does not populate {{ appname }}
- name: restart {{ appname }}
debug:
msg: some bogus module call in handler {{ appname }}
tasks:
- name: bogus task with notify for {{ appname }}
command: ls
notify: restart {{ appname }}"><pre class="notranslate">---
- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span>
<span class="pl-ent">connection</span>: <span class="pl-s">local</span>
<span class="pl-ent">vars</span>:
<span class="pl-ent">appname</span>: <span class="pl-s">someapp</span>
<span class="pl-ent">handlers</span>:
<span class="pl-c"><span class="pl-c">#</span> The following line, when the handler is executed, does not populate {{ appname }}</span>
- <span class="pl-ent">name</span>: <span class="pl-s">restart {{ appname }}</span>
<span class="pl-ent">debug</span>:
<span class="pl-ent">msg</span>: <span class="pl-s">some bogus module call in handler {{ appname }}</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">bogus task with notify for {{ appname }}</span>
<span class="pl-ent">command</span>: <span class="pl-s">ls</span>
<span class="pl-ent">notify</span>: <span class="pl-s">restart {{ appname }}</span></pre></div>
</li>
<li>
<p dir="auto">Run the playbook: <code class="notranslate">ansible-playbook --connection=local playbook.yml</code></p>
</li>
</ol>
<p dir="auto"><strong>Expected Results:</strong> In the output of the playbook run, any mention of <code class="notranslate">{{ appname }}</code> should not appear, but replaced with <code class="notranslate">someapp</code>, per the given variables.</p>
<p dir="auto"><strong>Actual Results:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [WARNING]: Host file not found: /usr/local/etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [bogus task with notify for someapp] **************************************
changed: [localhost]
RUNNING HANDLER [restart {{ appname }}] ****************************************
ok: [localhost] => {
"msg": "some bogus module call in handler someapp"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate"> [WARNING]: Host file not found: /usr/local/etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [bogus task with notify for someapp] **************************************
changed: [localhost]
RUNNING HANDLER [restart {{ appname }}] ****************************************
ok: [localhost] => {
"msg": "some bogus module call in handler someapp"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0
</code></pre></div>
<p dir="auto">Note that in the <code class="notranslate">RUNNING HANDLER</code> line, the Jinja template syntax is printed literally, rather than being populated with the variable that clearly exists, since it's populated elsewhere. This is a regression from <a href="https://github.com/ansible/ansible/issues/14082" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/14082/hovercard">1.9.x</a> and <a href="https://github.com/ansible/ansible/issues/16922#issuecomment-251805585" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/16922/hovercard">2.1.1.0</a>.</p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report (same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="152893515" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/15713" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/15713/hovercard" href="https://github.com/ansible/ansible/issues/15713">#15713</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="128227674" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/14082" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/14082/hovercard" href="https://github.com/ansible/ansible/issues/14082">#14082</a>)</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<ul dir="auto">
<li>Handlers and variable interpolation</li>
</ul>
<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 (devel 9962245b92) last updated 2016/10/06 09:55:33 (GMT -400)
lib/ansible/modules/core: (detached HEAD 0ee774ff15) last updated 2016/10/06 09:55:59 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 5cc72c3f06) last updated 2016/10/06 09:55:59 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.3.0 (devel 9962245b92) last updated 2016/10/06 09:55:33 (GMT -400)
lib/ansible/modules/core: (detached HEAD 0ee774ff15) last updated 2016/10/06 09:55:59 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 5cc72c3f06) last updated 2016/10/06 09:55:59 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.2.0.0 (stable-2.2 be6396d5e9) last updated 2016/10/05 17:40:02 (GMT -400)
lib/ansible/modules/core: (detached HEAD a6b8215e62) last updated 2016/10/05 17:45:10 (GMT -400)
lib/ansible/modules/extras: (detached HEAD d42975e068) last updated 2016/10/05 17:45:11 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook play.yaml
[WARNING]: provided hosts list is empty, only localhost is available"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.2.0.0 (stable-2.2 be6396d5e9) last updated 2016/10/05 17:40:02 (GMT -400)
lib/ansible/modules/core: (detached HEAD a6b8215e62) last updated 2016/10/05 17:45:10 (GMT -400)
lib/ansible/modules/extras: (detached HEAD d42975e068) last updated 2016/10/05 17:45:11 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook play.yaml
[WARNING]: provided hosts list is empty, only localhost is available
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.1.2.0 (stable-2.1 a7d0cc6e61) last updated 2016/10/05 17:42:07 (GMT -400)
lib/ansible/modules/core: (detached HEAD 4602021670) last updated 2016/10/05 17:43:21 (GMT -400)
lib/ansible/modules/extras: (detached HEAD d312f34d9b) last updated 2016/10/05 17:43:22 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook play.yaml
[WARNING]: provided hosts list is empty, only localhost is available"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.1.2.0 (stable-2.1 a7d0cc6e61) last updated 2016/10/05 17:42:07 (GMT -400)
lib/ansible/modules/core: (detached HEAD 4602021670) last updated 2016/10/05 17:43:21 (GMT -400)
lib/ansible/modules/extras: (detached HEAD d312f34d9b) last updated 2016/10/05 17:43:22 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook play.yaml
[WARNING]: provided hosts list is empty, only localhost is available
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.2.0 (detached HEAD 29f2f26278) last updated 2016/10/06 11:25:15 (GMT -400)
lib/ansible/modules/core: (detached HEAD 17ee1cfaf9) last updated 2016/10/06 11:30:32 (GMT -400)
lib/ansible/modules/extras: (detached HEAD d312f34d9b) last updated 2016/10/06 11:30:32 (GMT -400)
config file =
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook --connection=local play.yaml
[WARNING]: Host file not found: /etc/ansible/hosts"><pre class="notranslate"><code class="notranslate">ansible 2.1.2.0 (detached HEAD 29f2f26278) last updated 2016/10/06 11:25:15 (GMT -400)
lib/ansible/modules/core: (detached HEAD 17ee1cfaf9) last updated 2016/10/06 11:30:32 (GMT -400)
lib/ansible/modules/extras: (detached HEAD d312f34d9b) last updated 2016/10/06 11:30:32 (GMT -400)
config file =
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook --connection=local play.yaml
[WARNING]: Host file not found: /etc/ansible/hosts
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.1.0 (detached HEAD 780c363482) last updated 2016/10/06 11:32:54 (GMT -400)
lib/ansible/modules/core: (detached HEAD 242368e99b) last updated 2016/10/06 11:32:58 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 14887a9ea8) last updated 2016/10/06 11:32:58 (GMT -400)
config file =
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.1.0 (detached HEAD 780c363482) last updated 2016/10/06 11:32:54 (GMT -400)
lib/ansible/modules/core: (detached HEAD 242368e99b) last updated 2016/10/06 11:32:58 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 14887a9ea8) last updated 2016/10/06 11:32:58 (GMT -400)
config file =
configured module search path = Default w/o overrides
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.0.2 (stable-2.0.0.1 3b5d7400de) last updated 2016/10/06 11:11:52 (GMT -400)
lib/ansible/modules/core: (detached HEAD ce6619bf5d) last updated 2016/10/06 11:11:55 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 29af26884e) last updated 2016/10/06 11:11:55 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.0.0.2 (stable-2.0.0.1 3b5d7400de) last updated 2016/10/06 11:11:52 (GMT -400)
lib/ansible/modules/core: (detached HEAD ce6619bf5d) last updated 2016/10/06 11:11:55 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 29af26884e) last updated 2016/10/06 11:11:55 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">No change.</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<ul dir="auto">
<li>Ansible manager: Lubuntu 16.04.1</li>
<li>Ansible worker: Ubuntu Server 16.04.1</li>
<li>Python 2.7.12</li>
</ul>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Ansible 2.1.2.0, 2.1.1.0, and branches devel, stable-2.2, stable-2.1, and stable-2.0.0.1 do not resolve variable references in handler names.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<ul dir="auto">
<li>See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="152893515" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/15713" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/15713/hovercard" href="https://github.com/ansible/ansible/issues/15713">#15713</a>.</li>
</ul>
<h5 dir="auto">EXPECTED RESULTS</h5>
<ul dir="auto">
<li>See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="152893515" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/15713" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/15713/hovercard" href="https://github.com/ansible/ansible/issues/15713">#15713</a>.</li>
</ul>
<p dir="auto">Ansible 2.1.0.0 produces the correct result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible --version
ansible 2.1.0.0 (detached HEAD b599477242) last updated 2016/10/06 11:36:36 (GMT -400)
lib/ansible/modules/core: (detached HEAD 04a871d007) last updated 2016/10/06 11:36:38 (GMT -400)
lib/ansible/modules/extras: (detached HEAD b5fa2b3416) last updated 2016/10/06 11:36:38 (GMT -400)
config file =
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook --connection=local play.yaml
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [bogus task with notify for someapp] **************************************
changed: [localhost]
RUNNING HANDLER [restart someapp] **********************************************
ok: [localhost] => {
"msg": "some bogus module call in handler someapp"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0
"><pre class="notranslate"><code class="notranslate">derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible --version
ansible 2.1.0.0 (detached HEAD b599477242) last updated 2016/10/06 11:36:36 (GMT -400)
lib/ansible/modules/core: (detached HEAD 04a871d007) last updated 2016/10/06 11:36:38 (GMT -400)
lib/ansible/modules/extras: (detached HEAD b5fa2b3416) last updated 2016/10/06 11:36:38 (GMT -400)
config file =
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook --connection=local play.yaml
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [bogus task with notify for someapp] **************************************
changed: [localhost]
RUNNING HANDLER [restart someapp] **********************************************
ok: [localhost] => {
"msg": "some bogus module call in handler someapp"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0
</code></pre></div>
<p dir="auto">Ansible 2.0.2.0 on branch stable-2.0 produces the correct result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible --version
ansible 2.0.2.0 (stable-2.0 26078418e9) last updated 2016/10/06 11:13:05 (GMT -400)
lib/ansible/modules/core: (detached HEAD 1e68326ea6) last updated 2016/10/06 11:13:07 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 4eb177e545) last updated 2016/10/06 11:13:07 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook --connection=local play.yaml
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [bogus task with notify for someapp] **************************************
changed: [localhost]
RUNNING HANDLER [restart someapp] **********************************************
ok: [localhost] => {
"msg": "some bogus module call in handler someapp"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0
"><pre class="notranslate"><code class="notranslate">derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible --version
ansible 2.0.2.0 (stable-2.0 26078418e9) last updated 2016/10/06 11:13:05 (GMT -400)
lib/ansible/modules/core: (detached HEAD 1e68326ea6) last updated 2016/10/06 11:13:07 (GMT -400)
lib/ansible/modules/extras: (detached HEAD 4eb177e545) last updated 2016/10/06 11:13:07 (GMT -400)
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
derek@derek-HP-EliteOne-800-G1-AiO:~$ ansible-playbook --connection=local play.yaml
[WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [bogus task with notify for someapp] **************************************
changed: [localhost]
RUNNING HANDLER [restart someapp] **********************************************
ok: [localhost] => {
"msg": "some bogus module call in handler someapp"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Results for Ansible 2.1.2.0, 2.1.1.0, and branches devel, stable-2.2, stable-2.1, and stable-2.0.0.1:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [bogus task with notify for someapp] **************************************
changed: [localhost]
RUNNING HANDLER [restart {{ appname }}] ****************************************
ok: [localhost] => {
"msg": "some bogus module call in handler someapp"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0
"><pre class="notranslate"><code class="notranslate"> [WARNING]: provided hosts list is empty, only localhost is available
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [bogus task with notify for someapp] **************************************
changed: [localhost]
RUNNING HANDLER [restart {{ appname }}] ****************************************
ok: [localhost] => {
"msg": "some bogus module call in handler someapp"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0
</code></pre></div> | 1 |
<p dir="auto"><strong>Describe the bug</strong></p>
<ul dir="auto">
<li>An err is thrown when i call <code class="notranslate">render()</code> on <code class="notranslate">EffectComposer{}</code> which is added a <code class="notranslate">SSRPass</code>.</li>
<li>The err only occurs when my scene contains both <code class="notranslate">Mesh</code>s and <code class="notranslate">InstancedMesh</code>s.</li>
</ul>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>add 1 instanced mesh and 1 regular mesh to then scene</li>
<li>make an effect composer; add a RenderPass .. followed by a SSRPass.</li>
<li>call <code class="notranslate">composer.render()</code> in animation loop.</li>
<li>bring up devtools, it shows</li>
</ol>
<blockquote>
<p dir="auto">Uncaught TypeError: can't access property "isInterleavedBufferAttribute", attribute is undefined</p>
</blockquote>
<p dir="auto">stacktrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" get https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:12445
setupVertexAttributes https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:14100
setup https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:13770
renderBufferDirect https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:23733
renderObject https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:24269
renderObjects https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:24242
render https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:24025
renderOverride https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/examples/jsm/postprocessing/SSRPass.js:577
render https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/examples/jsm/postprocessing/SSRPass.js:396
render https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/examples/jsm/postprocessing/EffectComposer.js:150
<anonymous> https://fiddle.jshell.net/_display/?editor_console=true:196
onAnimationFrame https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:23897
onAnimationFrame https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:12286
start https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:12299
setAnimationLoop https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:23911
<anonymous> https://fiddle.jshell.net/_display/?editor_console=true:195"><pre class="notranslate"><code class="notranslate"> get https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:12445
setupVertexAttributes https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:14100
setup https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:13770
renderBufferDirect https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:23733
renderObject https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:24269
renderObjects https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:24242
render https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:24025
renderOverride https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/examples/jsm/postprocessing/SSRPass.js:577
render https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/examples/jsm/postprocessing/SSRPass.js:396
render https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/examples/jsm/postprocessing/EffectComposer.js:150
<anonymous> https://fiddle.jshell.net/_display/?editor_console=true:196
onAnimationFrame https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:23897
onAnimationFrame https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:12286
start https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:12299
setAnimationLoop https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:23911
<anonymous> https://fiddle.jshell.net/_display/?editor_console=true:195
</code></pre></div>
<p dir="auto"><em><strong>Live example</strong></em></p>
<ul dir="auto">
<li><a href="https://jsfiddle.net/tdxq3psr/" rel="nofollow">jsfiddle</a> (see devtools console for the err)</li>
</ul>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">it should render a box and two spheres .. w/ reflection on their surfaces.</p>
<p dir="auto"><strong>Platform:</strong></p>
<ul dir="auto">
<li>Device: [Desktop]</li>
<li>OS: [Windows]</li>
<li>Browser: [Firefox]</li>
<li>Three.js version: [dev]</li>
</ul>
<p dir="auto">Thanks.</p> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto"><code class="notranslate">OutlinePass</code> does not appear to properly support <code class="notranslate">InstancedMesh</code>. I've created an example here that uses the same setup of <code class="notranslate">OutlinePass</code> in the example in the docs. The sphere is a regular <code class="notranslate">Mesh</code> and the squares are the instances of <code class="notranslate">InstancedMesh</code>.<br>
<a href="https://jsfiddle.net/anthonysimone/dL8s2qmv/" rel="nofollow">https://jsfiddle.net/anthonysimone/dL8s2qmv/</a></p>
<p dir="auto">It seems like there's a couple things going on here.</p>
<ol dir="auto">
<li>If you hover over the regular mesh first (sphere), then one of the instanced mesh instances, the base position of the <code class="notranslate">InstancedMesh</code> is outlined any time you’re hovering over any of the instances. In the above example all of the instances have been moved from the default position to demonstrate this clearly.</li>
<li>If you first hover over any of the box instances, the entire collection of instances (though not the base position) of the <code class="notranslate">InstancedMesh</code> are outlined, but then hovering over a regular mesh (the sphere) causes an error.</li>
</ol>
<p dir="auto">I dug into <code class="notranslate">OutlinePass</code> a bit and it seems like it might just not be taking into account handling instanced meshes separately from regular meshes. I'm still pretty new to Three.js, so I don't have a potential fix to suggest at this point.</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r113</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul> | 1 |
<p dir="auto">is there a better way to express this, without explicitly listing out every member of the interface?</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Foo {
a: string
}
// ok
class Bar implements Foo {
constructor (public a: string) {}
}
// Error: Class 'Baz' incorrectly implements interface 'Foo'.
// Property 'a' is missing in type 'Baz'
class Baz implements Foo {
constructor (a: Foo) {
Object.assign(this, a)
}
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span>: <span class="pl-smi">string</span>
<span class="pl-kos">}</span>
<span class="pl-c">// ok</span>
<span class="pl-k">class</span> <span class="pl-smi">Bar</span> <span class="pl-k">implements</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span> <span class="pl-kos">(</span><span class="pl-k">public</span> <span class="pl-s1">a</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c">// Error: Class 'Baz' incorrectly implements interface 'Foo'.</span>
<span class="pl-c">// Property 'a' is missing in type 'Baz'</span>
<span class="pl-k">class</span> <span class="pl-smi">Baz</span> <span class="pl-k">implements</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span> <span class="pl-kos">(</span><span class="pl-s1">a</span>: <span class="pl-smi">Foo</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-en">assign</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-s1">a</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">demo: <a href="http://www.typescriptlang.org/Playground#src=interface%20Foo%20%7B%0A%09a%3A%20string%0A%7D%0A%0A%2F%2F%20ok%0Aclass%20Bar%20implements%20Foo%20%7B%0A%09constructor%20(public%20a%3A%20string)%20%7B%7D%0A%7D%0A%0A%2F%2F%20Error%3A%20Class%20'Baz'%20incorrectly%20implements%20interface%20'Foo'.%0A%2F%2F%20%20%20%20%20%20%20%20Property%20'a'%20is%20missing%20in%20type%20'Baz'%0Aclass%20Baz%20implements%20Foo%20%7B%0A%09constructor%20(a%3A%20Foo)%20%7B%0A%09%09Object.assign(this%2C%20a)%0A%09%7D%0A%7D" rel="nofollow">http://www.typescriptlang.org/Playground#src=interface%20Foo%20%7B%0A%09a%3A%20string%0A%7D%0A%0A%2F%2F%20ok%0Aclass%20Bar%20implements%20Foo%20%7B%0A%09constructor%20(public%20a%3A%20string)%20%7B%7D%0A%7D%0A%0A%2F%2F%20Error%3A%20Class%20'Baz'%20incorrectly%20implements%20interface%20'Foo'.%0A%2F%2F%20%20%20%20%20%20%20%20Property%20'a'%20is%20missing%20in%20type%20'Baz'%0Aclass%20Baz%20implements%20Foo%20%7B%0A%09constructor%20(a%3A%20Foo)%20%7B%0A%09%09Object.assign(this%2C%20a)%0A%09%7D%0A%7D</a></p> | <p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.9</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="interface CanDevelop {
developSomethingAmazing();
}
class Person {
age: number;
name: string;
}
class Developer extends Person implements CanDevelop {
developSomethingAmazing() {}
}
function canDevelop(arg: any): arg is CanDevelop {
return arg.developSomethingAmazing !== undefined;
}
let john: Object = new Developer();
if (canDevelop(john)) {
john.developSomethingAmazing(); // OK
}
let peter: Person = new Developer();
if (canDevelop(peter)) {
peter.developSomethingAmazing(); // ERROR
}
"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">CanDevelop</span> <span class="pl-kos">{</span>
<span class="pl-c1">developSomethingAmazing</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Person</span> <span class="pl-kos">{</span>
<span class="pl-c1">age</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-c1">name</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Developer</span> <span class="pl-k">extends</span> <span class="pl-smi">Person</span> <span class="pl-k">implements</span> <span class="pl-smi">CanDevelop</span> <span class="pl-kos">{</span>
<span class="pl-en">developSomethingAmazing</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">function</span> <span class="pl-en">canDevelop</span><span class="pl-kos">(</span><span class="pl-s1">arg</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-s1">arg</span> is <span class="pl-smi">CanDevelop</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">arg</span><span class="pl-kos">.</span><span class="pl-c1">developSomethingAmazing</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">john</span>: <span class="pl-smi">Object</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Developer</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">canDevelop</span><span class="pl-kos">(</span><span class="pl-s1">john</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">john</span><span class="pl-kos">.</span><span class="pl-en">developSomethingAmazing</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// OK</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">peter</span>: <span class="pl-smi">Person</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Developer</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-en">canDevelop</span><span class="pl-kos">(</span><span class="pl-s1">peter</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">peter</span><span class="pl-kos">.</span><span class="pl-en">developSomethingAmazing</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ERROR</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behaviour:</strong><br>
It should allow to use the CanDevelop interface methods.</p>
<p dir="auto"><strong>Actual behaviour:</strong><br>
Error "Property 'developSomethingAmazing' does not exist on type 'Person'".</p> | 0 |
<p dir="auto">When using a chord - even the sample given at <a href="http://celery.readthedocs.org/en/latest/userguide/canvas.html#chords" rel="nofollow">http://celery.readthedocs.org/en/latest/userguide/canvas.html#chords</a> - the callback will never be executed, the task <code class="notranslate">celery.chord_unlock</code> will just retry indefinitely.</p>
<p dir="auto">None if the tasks encounter any issues ( as demonstrated <a href="http://pastebin.com/AGZmWWZM" rel="nofollow">http://pastebin.com/AGZmWWZM</a> )</p>
<p dir="auto">Using Celery 3.1.18, Python 2.7.6, Ubuntu 14.04.2 LTS</p>
<p dir="auto">Duscussion/troubleshooting from irc:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<ItsDanielB> Hey, I'm having a problem using a chord. Once the main group of tasks finishes executing, 'celery.chord_unlock' just keeps retrying forever.
<ItsDanielB> Been doing research, but the only other occurences I can find are happening when there's an error in the main group, but all my tasks finish successfully
<ItsDanielB> Also have `CELERY_IGNORE_RESULT = False`, `CELERY_RESULT_BACKEND = 'rpc'`, `CELERY_CHORD_PROPAGATES = True` and `CELERY_RESULT_PERSISTENT = True`
<ItsDanielB> Even if I make all of the tasks do nothing (just immediatly return) I still get the same result
<ItsDanielB> Pastebin showing the "problem function" and the worker log http://pastebin.com/AGZmWWZM
<amcm_> ItsDanielB 1) why recalculate_bouts_task.si() - I think that should be .s() if you expect the return values from the chord to get passed in.
<amcm_> Are you on 3.1 or master?
<amcm_> I've seen a number of problems with chords completing on 3.1
* amcm_ is now known as amcm
<ItsDanielB> amcm using si because I don't want any of the results - they are talking to an external API and all return None
<ItsDanielB> using celery 3.1.18
<amcm> ItsDanielB then why use a chord? I suppose group | task is a chord anyway...
<amcm> I'd try it on master just to see
<amcm> Also I don't know how the rpc backend works. redis can be smarter about chords when using new_joins=1 for the result backend
<amcm> Actually, that is what I had to do to get working chords (new_joins), but I was already using redis for my results
<ItsDanielB> Installing from source (from github) throws an error when launching the worker - `ImportError: cannot import name timedelta_seconds`
<ItsDanielB> am I missing a requirement / should be using a particular branch/tag/etc?
<amcm> That's an odd one. You have to manually install the dev requirements though to use master
<amcm> pip install -r requirements/dev.txt
<ItsDanielB> `pip install -r requirements/dev.txt` already done
<ItsDanielB> ^
<ItsDanielB> :)
<amcm> Ah'kay
<ItsDanielB> Looks like I'll need to install django-celery from source too
<amcm> Ah, maybe? We're not using django-celery right now, just regular celery
<amcm> You using the DB beat schedual?
<ItsDanielB> Not sure what that is :P
<ItsDanielB> Just queueing taks right from django views
<ItsDanielB> tasks*
<ItsDanielB> Hm, maybe not. Now the worker hangs before it finishes launching.
<ItsDanielB> Also, reading up on django-celery, I wasn't using that before either :|
<ItsDanielB> rolling back, will try again :3
<ItsDanielB> The master branch of celery seems to be incompatiable with any py-amqp version
<ItsDanielB> 1.4.5, 1.4.6 give `from amqp.five import __all__ as _all_five` `ImportError: cannot import name __all__`
<ItsDanielB> wait, hold up - may be may fault here
<ItsDanielB> ok, yea
<ItsDanielB> Seems I need some combination of py-amqp, billiard and kombu but I can't figure out which ones work with each other and master celery
<ItsDanielB> amcm, can I get a `pip freeze` from you so I can just grab the same versions? Everytime I get one requirement working another one breaks :P
<amcm> ItsDanielB pip install -r requirements/dev.txt from inside celery should get you the right versions of billard, kombu and py-amqp
<amcm> See: https://github.com/celery/celery/issues/2083
<ItsDanielB> gives: `pkg_resources.DistributionNotFound: The 'billiard<3.4,>=3.3.0.17' distribution was not found and is required by celery`
<ItsDanielB> then when I install matching version, a different error
<ItsDanielB> requirements/dev.txt currently gives billard billiard-3.4.0.0b1
<amcm> That's what I have
<amcm> The requirement looks like it's for 3.1 not master
<amcm> billiard-3.4.0.0b1 is > 3.4, and it is what you should have
<ItsDanielB> pkg_resources wants me to have <3.4 for some reason
<amcm> Where is that coming from?
<ItsDanielB> starts in `<venv>/bin/celery`
<ItsDanielB> amcm full error: http://pastebin.com/d7S8KLys
<ItsDanielB> Tried on a fresh install, same issue
<amcm> Did you pip uninstall celery (to remove the 3.1 from pypi), then python setup.py install The git clone?
<amcm> check pip freeze for your celery version
<ItsDanielB> @amcm https://asciinema.org/a/0mmmovl1fmwjji5rtg2bndqwi
<amcm> which celery
<ItsDanielB> `/home/danielb/.venv/celery-test/bin/celery`
<amcm> That screen recorder is pretty slick
<amcm> :( I'm on OSX but I can't reproduce. I get
<ItsDanielB> Was just looking for a way to share without it being an unwieldy log file
<amcm> (deleteme):~/src/celery{celery:(detached from upstream/master)}:$ celery --version
<amcm> 3.2.0a2 (DEV)
<ItsDanielB> :?
<amcm> same steps, new venv, python setup.py install; pip install -r requirements/dev.txt"><pre class="notranslate"><code class="notranslate"><ItsDanielB> Hey, I'm having a problem using a chord. Once the main group of tasks finishes executing, 'celery.chord_unlock' just keeps retrying forever.
<ItsDanielB> Been doing research, but the only other occurences I can find are happening when there's an error in the main group, but all my tasks finish successfully
<ItsDanielB> Also have `CELERY_IGNORE_RESULT = False`, `CELERY_RESULT_BACKEND = 'rpc'`, `CELERY_CHORD_PROPAGATES = True` and `CELERY_RESULT_PERSISTENT = True`
<ItsDanielB> Even if I make all of the tasks do nothing (just immediatly return) I still get the same result
<ItsDanielB> Pastebin showing the "problem function" and the worker log http://pastebin.com/AGZmWWZM
<amcm_> ItsDanielB 1) why recalculate_bouts_task.si() - I think that should be .s() if you expect the return values from the chord to get passed in.
<amcm_> Are you on 3.1 or master?
<amcm_> I've seen a number of problems with chords completing on 3.1
* amcm_ is now known as amcm
<ItsDanielB> amcm using si because I don't want any of the results - they are talking to an external API and all return None
<ItsDanielB> using celery 3.1.18
<amcm> ItsDanielB then why use a chord? I suppose group | task is a chord anyway...
<amcm> I'd try it on master just to see
<amcm> Also I don't know how the rpc backend works. redis can be smarter about chords when using new_joins=1 for the result backend
<amcm> Actually, that is what I had to do to get working chords (new_joins), but I was already using redis for my results
<ItsDanielB> Installing from source (from github) throws an error when launching the worker - `ImportError: cannot import name timedelta_seconds`
<ItsDanielB> am I missing a requirement / should be using a particular branch/tag/etc?
<amcm> That's an odd one. You have to manually install the dev requirements though to use master
<amcm> pip install -r requirements/dev.txt
<ItsDanielB> `pip install -r requirements/dev.txt` already done
<ItsDanielB> ^
<ItsDanielB> :)
<amcm> Ah'kay
<ItsDanielB> Looks like I'll need to install django-celery from source too
<amcm> Ah, maybe? We're not using django-celery right now, just regular celery
<amcm> You using the DB beat schedual?
<ItsDanielB> Not sure what that is :P
<ItsDanielB> Just queueing taks right from django views
<ItsDanielB> tasks*
<ItsDanielB> Hm, maybe not. Now the worker hangs before it finishes launching.
<ItsDanielB> Also, reading up on django-celery, I wasn't using that before either :|
<ItsDanielB> rolling back, will try again :3
<ItsDanielB> The master branch of celery seems to be incompatiable with any py-amqp version
<ItsDanielB> 1.4.5, 1.4.6 give `from amqp.five import __all__ as _all_five` `ImportError: cannot import name __all__`
<ItsDanielB> wait, hold up - may be may fault here
<ItsDanielB> ok, yea
<ItsDanielB> Seems I need some combination of py-amqp, billiard and kombu but I can't figure out which ones work with each other and master celery
<ItsDanielB> amcm, can I get a `pip freeze` from you so I can just grab the same versions? Everytime I get one requirement working another one breaks :P
<amcm> ItsDanielB pip install -r requirements/dev.txt from inside celery should get you the right versions of billard, kombu and py-amqp
<amcm> See: https://github.com/celery/celery/issues/2083
<ItsDanielB> gives: `pkg_resources.DistributionNotFound: The 'billiard<3.4,>=3.3.0.17' distribution was not found and is required by celery`
<ItsDanielB> then when I install matching version, a different error
<ItsDanielB> requirements/dev.txt currently gives billard billiard-3.4.0.0b1
<amcm> That's what I have
<amcm> The requirement looks like it's for 3.1 not master
<amcm> billiard-3.4.0.0b1 is > 3.4, and it is what you should have
<ItsDanielB> pkg_resources wants me to have <3.4 for some reason
<amcm> Where is that coming from?
<ItsDanielB> starts in `<venv>/bin/celery`
<ItsDanielB> amcm full error: http://pastebin.com/d7S8KLys
<ItsDanielB> Tried on a fresh install, same issue
<amcm> Did you pip uninstall celery (to remove the 3.1 from pypi), then python setup.py install The git clone?
<amcm> check pip freeze for your celery version
<ItsDanielB> @amcm https://asciinema.org/a/0mmmovl1fmwjji5rtg2bndqwi
<amcm> which celery
<ItsDanielB> `/home/danielb/.venv/celery-test/bin/celery`
<amcm> That screen recorder is pretty slick
<amcm> :( I'm on OSX but I can't reproduce. I get
<ItsDanielB> Was just looking for a way to share without it being an unwieldy log file
<amcm> (deleteme):~/src/celery{celery:(detached from upstream/master)}:$ celery --version
<amcm> 3.2.0a2 (DEV)
<ItsDanielB> :?
<amcm> same steps, new venv, python setup.py install; pip install -r requirements/dev.txt
</code></pre></div> | <p dir="auto">When using a chord - even the sample given at <a href="http://celery.readthedocs.org/en/latest/userguide/canvas.html#chords" rel="nofollow">http://celery.readthedocs.org/en/latest/userguide/canvas.html#chords</a> - the callback will never be executed, the task <code class="notranslate">celery.chord_unlock</code> will just retry indefinitely.</p>
<p dir="auto">None if the tasks encounter any issues ( as demonstrated <a href="http://pastebin.com/AGZmWWZM" rel="nofollow">http://pastebin.com/AGZmWWZM</a> )</p>
<p dir="auto">Using Celery 3.1.18, Python 2.7.6, Ubuntu 14.04.2 LTS</p>
<p dir="auto">Duscussion/troubleshooting from irc:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<ItsDanielB> Hey, I'm having a problem using a chord. Once the main group of tasks finishes executing, 'celery.chord_unlock' just keeps retrying forever.
<ItsDanielB> Been doing research, but the only other occurences I can find are happening when there's an error in the main group, but all my tasks finish successfully
<ItsDanielB> Also have `CELERY_IGNORE_RESULT = False`, `CELERY_RESULT_BACKEND = 'rpc'`, `CELERY_CHORD_PROPAGATES = True` and `CELERY_RESULT_PERSISTENT = True`
<ItsDanielB> Even if I make all of the tasks do nothing (just immediatly return) I still get the same result
<ItsDanielB> Pastebin showing the "problem function" and the worker log http://pastebin.com/AGZmWWZM
<amcm_> ItsDanielB 1) why recalculate_bouts_task.si() - I think that should be .s() if you expect the return values from the chord to get passed in.
<amcm_> Are you on 3.1 or master?
<amcm_> I've seen a number of problems with chords completing on 3.1
* amcm_ is now known as amcm
<ItsDanielB> amcm using si because I don't want any of the results - they are talking to an external API and all return None
<ItsDanielB> using celery 3.1.18
<amcm> ItsDanielB then why use a chord? I suppose group | task is a chord anyway...
<amcm> I'd try it on master just to see
<amcm> Also I don't know how the rpc backend works. redis can be smarter about chords when using new_joins=1 for the result backend
<amcm> Actually, that is what I had to do to get working chords (new_joins), but I was already using redis for my results
<ItsDanielB> Installing from source (from github) throws an error when launching the worker - `ImportError: cannot import name timedelta_seconds`
<ItsDanielB> am I missing a requirement / should be using a particular branch/tag/etc?
<amcm> That's an odd one. You have to manually install the dev requirements though to use master
<amcm> pip install -r requirements/dev.txt
<ItsDanielB> `pip install -r requirements/dev.txt` already done
<ItsDanielB> ^
<ItsDanielB> :)
<amcm> Ah'kay
<ItsDanielB> Looks like I'll need to install django-celery from source too
<amcm> Ah, maybe? We're not using django-celery right now, just regular celery
<amcm> You using the DB beat schedual?
<ItsDanielB> Not sure what that is :P
<ItsDanielB> Just queueing taks right from django views
<ItsDanielB> tasks*
<ItsDanielB> Hm, maybe not. Now the worker hangs before it finishes launching.
<ItsDanielB> Also, reading up on django-celery, I wasn't using that before either :|
<ItsDanielB> rolling back, will try again :3
<ItsDanielB> The master branch of celery seems to be incompatiable with any py-amqp version
<ItsDanielB> 1.4.5, 1.4.6 give `from amqp.five import __all__ as _all_five` `ImportError: cannot import name __all__`
<ItsDanielB> wait, hold up - may be may fault here
<ItsDanielB> ok, yea
<ItsDanielB> Seems I need some combination of py-amqp, billiard and kombu but I can't figure out which ones work with each other and master celery
<ItsDanielB> amcm, can I get a `pip freeze` from you so I can just grab the same versions? Everytime I get one requirement working another one breaks :P
<amcm> ItsDanielB pip install -r requirements/dev.txt from inside celery should get you the right versions of billard, kombu and py-amqp
<amcm> See: https://github.com/celery/celery/issues/2083
<ItsDanielB> gives: `pkg_resources.DistributionNotFound: The 'billiard<3.4,>=3.3.0.17' distribution was not found and is required by celery`
<ItsDanielB> then when I install matching version, a different error
<ItsDanielB> requirements/dev.txt currently gives billard billiard-3.4.0.0b1
<amcm> That's what I have
<amcm> The requirement looks like it's for 3.1 not master
<amcm> billiard-3.4.0.0b1 is > 3.4, and it is what you should have
<ItsDanielB> pkg_resources wants me to have <3.4 for some reason
<amcm> Where is that coming from?
<ItsDanielB> starts in `<venv>/bin/celery`
<ItsDanielB> amcm full error: http://pastebin.com/d7S8KLys
<ItsDanielB> Tried on a fresh install, same issue
<amcm> Did you pip uninstall celery (to remove the 3.1 from pypi), then python setup.py install The git clone?
<amcm> check pip freeze for your celery version
<ItsDanielB> @amcm https://asciinema.org/a/0mmmovl1fmwjji5rtg2bndqwi
<amcm> which celery
<ItsDanielB> `/home/danielb/.venv/celery-test/bin/celery`
<amcm> That screen recorder is pretty slick
<amcm> :( I'm on OSX but I can't reproduce. I get
<ItsDanielB> Was just looking for a way to share without it being an unwieldy log file
<amcm> (deleteme):~/src/celery{celery:(detached from upstream/master)}:$ celery --version
<amcm> 3.2.0a2 (DEV)
<ItsDanielB> :?
<amcm> same steps, new venv, python setup.py install; pip install -r requirements/dev.txt"><pre class="notranslate"><code class="notranslate"><ItsDanielB> Hey, I'm having a problem using a chord. Once the main group of tasks finishes executing, 'celery.chord_unlock' just keeps retrying forever.
<ItsDanielB> Been doing research, but the only other occurences I can find are happening when there's an error in the main group, but all my tasks finish successfully
<ItsDanielB> Also have `CELERY_IGNORE_RESULT = False`, `CELERY_RESULT_BACKEND = 'rpc'`, `CELERY_CHORD_PROPAGATES = True` and `CELERY_RESULT_PERSISTENT = True`
<ItsDanielB> Even if I make all of the tasks do nothing (just immediatly return) I still get the same result
<ItsDanielB> Pastebin showing the "problem function" and the worker log http://pastebin.com/AGZmWWZM
<amcm_> ItsDanielB 1) why recalculate_bouts_task.si() - I think that should be .s() if you expect the return values from the chord to get passed in.
<amcm_> Are you on 3.1 or master?
<amcm_> I've seen a number of problems with chords completing on 3.1
* amcm_ is now known as amcm
<ItsDanielB> amcm using si because I don't want any of the results - they are talking to an external API and all return None
<ItsDanielB> using celery 3.1.18
<amcm> ItsDanielB then why use a chord? I suppose group | task is a chord anyway...
<amcm> I'd try it on master just to see
<amcm> Also I don't know how the rpc backend works. redis can be smarter about chords when using new_joins=1 for the result backend
<amcm> Actually, that is what I had to do to get working chords (new_joins), but I was already using redis for my results
<ItsDanielB> Installing from source (from github) throws an error when launching the worker - `ImportError: cannot import name timedelta_seconds`
<ItsDanielB> am I missing a requirement / should be using a particular branch/tag/etc?
<amcm> That's an odd one. You have to manually install the dev requirements though to use master
<amcm> pip install -r requirements/dev.txt
<ItsDanielB> `pip install -r requirements/dev.txt` already done
<ItsDanielB> ^
<ItsDanielB> :)
<amcm> Ah'kay
<ItsDanielB> Looks like I'll need to install django-celery from source too
<amcm> Ah, maybe? We're not using django-celery right now, just regular celery
<amcm> You using the DB beat schedual?
<ItsDanielB> Not sure what that is :P
<ItsDanielB> Just queueing taks right from django views
<ItsDanielB> tasks*
<ItsDanielB> Hm, maybe not. Now the worker hangs before it finishes launching.
<ItsDanielB> Also, reading up on django-celery, I wasn't using that before either :|
<ItsDanielB> rolling back, will try again :3
<ItsDanielB> The master branch of celery seems to be incompatiable with any py-amqp version
<ItsDanielB> 1.4.5, 1.4.6 give `from amqp.five import __all__ as _all_five` `ImportError: cannot import name __all__`
<ItsDanielB> wait, hold up - may be may fault here
<ItsDanielB> ok, yea
<ItsDanielB> Seems I need some combination of py-amqp, billiard and kombu but I can't figure out which ones work with each other and master celery
<ItsDanielB> amcm, can I get a `pip freeze` from you so I can just grab the same versions? Everytime I get one requirement working another one breaks :P
<amcm> ItsDanielB pip install -r requirements/dev.txt from inside celery should get you the right versions of billard, kombu and py-amqp
<amcm> See: https://github.com/celery/celery/issues/2083
<ItsDanielB> gives: `pkg_resources.DistributionNotFound: The 'billiard<3.4,>=3.3.0.17' distribution was not found and is required by celery`
<ItsDanielB> then when I install matching version, a different error
<ItsDanielB> requirements/dev.txt currently gives billard billiard-3.4.0.0b1
<amcm> That's what I have
<amcm> The requirement looks like it's for 3.1 not master
<amcm> billiard-3.4.0.0b1 is > 3.4, and it is what you should have
<ItsDanielB> pkg_resources wants me to have <3.4 for some reason
<amcm> Where is that coming from?
<ItsDanielB> starts in `<venv>/bin/celery`
<ItsDanielB> amcm full error: http://pastebin.com/d7S8KLys
<ItsDanielB> Tried on a fresh install, same issue
<amcm> Did you pip uninstall celery (to remove the 3.1 from pypi), then python setup.py install The git clone?
<amcm> check pip freeze for your celery version
<ItsDanielB> @amcm https://asciinema.org/a/0mmmovl1fmwjji5rtg2bndqwi
<amcm> which celery
<ItsDanielB> `/home/danielb/.venv/celery-test/bin/celery`
<amcm> That screen recorder is pretty slick
<amcm> :( I'm on OSX but I can't reproduce. I get
<ItsDanielB> Was just looking for a way to share without it being an unwieldy log file
<amcm> (deleteme):~/src/celery{celery:(detached from upstream/master)}:$ celery --version
<amcm> 3.2.0a2 (DEV)
<ItsDanielB> :?
<amcm> same steps, new venv, python setup.py install; pip install -r requirements/dev.txt
</code></pre></div> | 1 |
<p dir="auto">why not sign the exe?</p> | <p dir="auto">Currently, deno allows disk read access without a flag. The idea behind this is that although programs may be able to access secret info (e.g. your ssh key) without network access or disk write access, there isn't anyway they could exploit that knowledge. It's meant as a connivance.</p>
<p dir="auto">Environmental variable access is quite similar to disk read access. If you can access the environ without having write or network access - there is no way to exploit that.</p>
<p dir="auto">This seems to be a double standard. Thus I propose we either remove --allow-env and treat it as read access to the disk. Or we get more constrained and bundle and add --allow-read for disk access.</p> | 0 |
<p dir="auto">CanActivate hooks are currently executed in order of child -> parent. This causes problems when the child route's CanActivate depends on data that is set by the parent's CanActivate. An example might be the checking of current user permissions in the child CanActivate when the current user will not be bootstrapped until the parent's CanActivate is called.</p>
<p dir="auto">Is this by design? It would seem more logical to have this perform the way OnActivate does (from parent -> child).</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
[ ] 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
[ ] 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>
I have this ngFor reading data from a Firebase database:</p>
<p dir="auto"><code class="notranslate"><div *ngFor="let post of myPosts | async" ></code></p>
<p dir="auto"><code class="notranslate">myPosts</code> is of type <code class="notranslate">FirebaseListObservable</code></p>
<p dir="auto">Each time a new post is being pushed, all of the posts elements are being re rendered.</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
Only the newly pushed post would render.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.4</li>
</ul> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">nightly</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="class A {
get a(): this is A {
return true
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-k">get</span> <span class="pl-en">a</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">this</span> is <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1">true</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">The getter type guard should not complain</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tsc
Library/DataStore.ts(55,27): error TS1228: A type predicate is only allowed in return type position for functions and methods.
Library/DataStore.ts(103,20): error TS1228: A type predicate is only allowed in return type position for functions and methods."><pre class="notranslate"><code class="notranslate">tsc
Library/DataStore.ts(55,27): error TS1228: A type predicate is only allowed in return type position for functions and methods.
Library/DataStore.ts(103,20): error TS1228: A type predicate is only allowed in return type position for functions and methods.
</code></pre></div> | <p dir="auto">Angular/Typescript teams discussed this in person.</p>
<p dir="auto">Angular 2 includes a template parser, and an expression language which may be used in places in the template.<br>
We would like to translate the template to a TypeScript buffer, and pass the buffer to the language services for things like producing semantic errors, requesting intellisense, and the other usual editor features.<br>
However, the template has a backing class (actually a virtual class per <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tbosch/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tbosch">@tbosch</a> ) where the fields may be referenced by template expressions. In our canonical example,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({selector: 'greet', template: 'Hello {{name}}!'})
class Greet {
name: string;
constructor() {
this.name = 'World';
}
}"><pre class="notranslate"><code class="notranslate">@Component({selector: 'greet', template: 'Hello {{name}}!'})
class Greet {
name: string;
constructor() {
this.name = 'World';
}
}
</code></pre></div>
<p dir="auto">The template could be represented in TypeScript with the expression</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="`Hello ${this.name}`"><pre class="notranslate"><code class="notranslate">`Hello ${this.name}`
</code></pre></div>
<p dir="auto">In order to get intellisense or errors for that expression, we need to evaluate it in a place where <code class="notranslate">this.name</code> is defined. The obvious way to do this is for us to pass a "detached buffer", meaning a range of the SourceFile which lives outside the file content. It could look like (just a wild stab at possible syntax):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="__template_eval(): string { return `Hello ${this.name}`; }"><pre class="notranslate"><code class="notranslate">__template_eval(): string { return `Hello ${this.name}`; }
</code></pre></div>
<p dir="auto">as if this code existed inside the <code class="notranslate">Greet</code> class.</p>
<p dir="auto">Also we would expect any ranges in the result to give the <code class="notranslate">pos</code> and <code class="notranslate">width</code> locations relative to the buffer we passed, not the <code class="notranslate">Greet</code> class.</p> | 0 |
<p dir="auto">Seaborn version 0.8 is missing seaborn.plt, it was in 0.7.1</p>
<p dir="auto">Using "import matplotlib.pyplot as plt" and then using plt does not produce the same results.</p> | 1 |
|
<p dir="auto">If you know how to fix the issue, make a pull request instead.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I tried using the <code class="notranslate">@types/react 16.0.17</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: @....<br>
interface LinkHTMLAttributes extends HTMLAttributes {<br>
as?: string;<br>
href?: string;<br>
hrefLang?: string;<br>
integrity?: string;<br>
media?: string;<br>
rel?: string;<br>
sizes?: string;<br>
type?: string;<br>
as?: string;<br>
}</li>
</ul>
</li>
</ul> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/phantomjs</code> & <code class="notranslate">@types/node</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/keesey/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/keesey">@keesey</a></li>
</ul>
</li>
</ul>
<p dir="auto">When attempting to compile phantom js file and node js I am met with the following error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules/@types/node/index.d.ts(84,13): error TS2300: Duplicate identifier 'require'.
node_modules/@types/phantomjs/index.d.ts(6,18): error TS2300: Duplicate identifier 'require'."><pre class="notranslate"><code class="notranslate">node_modules/@types/node/index.d.ts(84,13): error TS2300: Duplicate identifier 'require'.
node_modules/@types/phantomjs/index.d.ts(6,18): error TS2300: Duplicate identifier 'require'.
</code></pre></div>
<p dir="auto">By the looks of it the require definition is clashing with the node require definition. Is there anything I can do about this?</p> | 0 |
<h3 dir="auto">Describe the issue:</h3>
<p dir="auto">I have a .npy file generated from an h5py dataset. The data is a pure Numpy array (no subclass) and the file has been written by Numpy, but the dtype contains metadata set by h5py.<br>
In this particular case, the metadata contains a <code class="notranslate"><class 'bytes'></code> expression, which cannot be handled by <code class="notranslate">safe_eval</code> . I don't care about the metadata, but it renders the entire file unreadable.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File "/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/format.py", line 776, in read_array
shape, fortran_order, dtype = _read_array_header(
File "/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/format.py", line 632, in _read_array_header
raise ValueError(msg.format(header)) from e
ValueError: Cannot parse header: "{'descr': [('paper_ref', ('|O', {'vlen': <class 'bytes'>})), ('path', ('|O', {'vlen': <class 'bytes'>}))], 'fortran_order': False, 'shape': (), } \n""><pre lang="text" class="notranslate"><code class="notranslate"> File "/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/format.py", line 776, in read_array
shape, fortran_order, dtype = _read_array_header(
File "/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/format.py", line 632, in _read_array_header
raise ValueError(msg.format(header)) from e
ValueError: Cannot parse header: "{'descr': [('paper_ref', ('|O', {'vlen': <class 'bytes'>})), ('path', ('|O', {'vlen': <class 'bytes'>}))], 'fortran_order': False, 'shape': (), } \n"
</code></pre></div>
<p dir="auto">I would consider this a bug in <code class="notranslate">np.save</code> . Serialization of a dtype descriptor that results in an unreadable header should fail loudly. It would be nice if the <code class="notranslate">np.save</code> could then be re-tried with the metadata stripped.</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
np.load("file.npy")"><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">np</span>.<span class="pl-en">load</span>(<span class="pl-s">"file.npy"</span>)</pre></div>
<h3 dir="auto">Error message:</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/home/sjoerd/bayesian_inference_fm/aptool-dump.py", line 65, in dump
arr = np.load(child_target + ".npy")
File "/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/npyio.py", line 432, in load
return format.read_array(fid, allow_pickle=allow_pickle,
File "/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/format.py", line 776, in read_array
shape, fortran_order, dtype = _read_array_header(
File "/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/format.py", line 632, in _read_array_header
raise ValueError(msg.format(header)) from e
ValueError: Cannot parse header: "{'descr': [('paper_ref', ('|O', {'vlen': <class 'bytes'>})), ('path', ('|O', {'vlen': <class 'bytes'>}))], 'fortran_order': False, 'shape': (), } \n""><pre class="notranslate">Traceback (most recent call last):
File <span class="pl-s"><span class="pl-pds">"</span>/home/sjoerd/bayesian_inference_fm/aptool-dump.py<span class="pl-pds">"</span></span>, line 65, <span class="pl-k">in</span> dump
arr = np.load(child_target + <span class="pl-s"><span class="pl-pds">"</span>.npy<span class="pl-pds">"</span></span>)
File <span class="pl-s"><span class="pl-pds">"</span>/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/npyio.py<span class="pl-pds">"</span></span>, line 432, <span class="pl-k">in</span> load
<span class="pl-k">return</span> format.read_array(fid, allow_pickle=allow_pickle,
File <span class="pl-s"><span class="pl-pds">"</span>/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/format.py<span class="pl-pds">"</span></span>, line 776, <span class="pl-k">in</span> read_array
shape, fortran_order, dtype = _read_array_header(
File <span class="pl-s"><span class="pl-pds">"</span>/home/sjoerd/miniconda3/envs/active-papers/lib/python3.9/site-packages/numpy/lib/format.py<span class="pl-pds">"</span></span>, line 632, <span class="pl-k">in</span> _read_array_header
raise ValueError(msg.format(header)) from e
ValueError: Cannot parse header: <span class="pl-s"><span class="pl-pds">"</span>{'descr': [('paper_ref', ('|O', {'vlen': <class 'bytes'>})), ('path', ('|O', {'vlen': <class 'bytes'>}))], 'fortran_order': False, 'shape': (), } \n<span class="pl-pds">"</span></span></pre></div>
<h3 dir="auto">Runtime information:</h3>
<p dir="auto">Numpy version:</p>
<p dir="auto">1.24.0<br>
3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:39:03)<br>
[GCC 11.3.0]</p>
<p dir="auto">show_runtime:</p>
<p dir="auto">WARNING: <code class="notranslate">threadpoolctl</code> not found in system! Install it by <code class="notranslate">pip install threadpoolctl</code>. Once installed, try <code class="notranslate">np.show_runtime</code> again for more detailed build information<br>
[{'simd_extensions': {'baseline': ['SSE', 'SSE2', 'SSE3'],<br>
'found': ['SSSE3',<br>
'SSE41',<br>
'POPCNT',<br>
'SSE42',<br>
'AVX',<br>
'F16C',<br>
'FMA3',<br>
'AVX2'],<br>
'not_found': ['AVX512F',<br>
'AVX512CD',<br>
'AVX512_KNL',<br>
'AVX512_KNM',<br>
'AVX512_SKX',<br>
'AVX512_CLX',<br>
'AVX512_CNL',<br>
'AVX512_ICL']}}]</p>
<h3 dir="auto">Context for the issue:</h3>
<p dir="auto">A pure Numpy array (no subclasses) saved with <code class="notranslate">np.save</code> should be readable by <code class="notranslate">np.load</code>. This issue gives a counter-example.</p>
<p dir="auto">I could try to write a patch to fix this issue, if you are interested.</p> | <p dir="auto">The dtype description in an NPY file can be written in a way that prevents the file from being read. The attached array in <a href="https://github.com/numpy/numpy/files/3439471/bad_array.pkl.zip">bad_array.pkl.zip</a> exhibits this problem. In this case the written dtype is <code class="notranslate">[('id', '|V16'), ('has_fit', '|b1'), ('timeax', ('|O', {'vlen': dtype('float64')})), ('', '|V8'), ('profile', ('|O', {'vlen': dtype('float64')})), ('', '|V8'), ('area', '<f8')]</code>.</p>
<p dir="auto">(Note that it was obtained from via h5py - if this is an issue with the format of the arrays produced by that library, I'm happy to file a bug there instead.)</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 pickle
import io
with open('bad_array.pkl', 'rb') as f:
arr = pickle.load(f)
buf = io.BytesIO()
np.save(buf, arr)
buf.seek(0)
np.load(buf)"><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">pickle</span>
<span class="pl-k">import</span> <span class="pl-s1">io</span>
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s">'bad_array.pkl'</span>, <span class="pl-s">'rb'</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>:
<span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">pickle</span>.<span class="pl-en">load</span>(<span class="pl-s1">f</span>)
<span class="pl-s1">buf</span> <span class="pl-c1">=</span> <span class="pl-s1">io</span>.<span class="pl-v">BytesIO</span>()
<span class="pl-s1">np</span>.<span class="pl-en">save</span>(<span class="pl-s1">buf</span>, <span class="pl-s1">arr</span>)
<span class="pl-s1">buf</span>.<span class="pl-en">seek</span>(<span class="pl-c1">0</span>)
<span class="pl-s1">np</span>.<span class="pl-en">load</span>(<span class="pl-s1">buf</span>)</pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "scripts/badnpy.py", line 11, in <module>
np.load(buf)
File "/Users/colingavin/Code/908/clarent2/algo/py/.venv/lib/python3.7/site-packages/numpy/lib/npyio.py", line 453, in load
pickle_kwargs=pickle_kwargs)
File "/Users/colingavin/Code/908/clarent2/algo/py/.venv/lib/python3.7/site-packages/numpy/lib/format.py", line 712, in read_array
shape, fortran_order, dtype = _read_array_header(fp, version)
File "/Users/colingavin/Code/908/clarent2/algo/py/.venv/lib/python3.7/site-packages/numpy/lib/format.py", line 578, in _read_array_header
d = safe_eval(header)
File "/Users/colingavin/Code/908/clarent2/algo/py/.venv/lib/python3.7/site-packages/numpy/lib/utils.py", line 1139, in safe_eval
return ast.literal_eval(source)
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 91, in literal_eval
return _convert(node_or_string)
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 79, in _convert
map(_convert, node.values)))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 74, in _convert
return list(map(_convert, node.elts))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 72, in _convert
return tuple(map(_convert, node.elts))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 72, in _convert
return tuple(map(_convert, node.elts))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 79, in _convert
map(_convert, node.values)))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 90, in _convert
return _convert_signed_num(node)
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 63, in _convert_signed_num
return _convert_num(node)
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 55, in _convert_num
raise ValueError('malformed node or string: ' + repr(node))
ValueError: malformed node or string: <_ast.Call object at 0x10b965a58>"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "scripts/badnpy.py", line 11, in <module>
np.load(buf)
File "/Users/colingavin/Code/908/clarent2/algo/py/.venv/lib/python3.7/site-packages/numpy/lib/npyio.py", line 453, in load
pickle_kwargs=pickle_kwargs)
File "/Users/colingavin/Code/908/clarent2/algo/py/.venv/lib/python3.7/site-packages/numpy/lib/format.py", line 712, in read_array
shape, fortran_order, dtype = _read_array_header(fp, version)
File "/Users/colingavin/Code/908/clarent2/algo/py/.venv/lib/python3.7/site-packages/numpy/lib/format.py", line 578, in _read_array_header
d = safe_eval(header)
File "/Users/colingavin/Code/908/clarent2/algo/py/.venv/lib/python3.7/site-packages/numpy/lib/utils.py", line 1139, in safe_eval
return ast.literal_eval(source)
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 91, in literal_eval
return _convert(node_or_string)
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 79, in _convert
map(_convert, node.values)))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 74, in _convert
return list(map(_convert, node.elts))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 72, in _convert
return tuple(map(_convert, node.elts))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 72, in _convert
return tuple(map(_convert, node.elts))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 79, in _convert
map(_convert, node.values)))
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 90, in _convert
return _convert_signed_num(node)
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 63, in _convert_signed_num
return _convert_num(node)
File "/Users/colingavin/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 55, in _convert_num
raise ValueError('malformed node or string: ' + repr(node))
ValueError: malformed node or string: <_ast.Call object at 0x10b965a58>
</code></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">1.17.0 3.7.2 (default, Jul 14 2019, 10:22:38)<br>
[Clang 9.0.0 (clang-900.0.39.2)]</p> | 1 |
<p dir="auto">I'm trying to use ng2 with ng1 so use ngUpgrade.<br>
But type definitions conflict.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS2403: Subsequent variable declarations must have the same type. Variable '$' must be of type 'cssSelectorHelper', but here has type ‘JQueryStatic’"><pre class="notranslate"><code class="notranslate">error TS2403: Subsequent variable declarations must have the same type. Variable '$' must be of type 'cssSelectorHelper', but here has type ‘JQueryStatic’
</code></pre></div>
<ul dir="auto">
<li>angularjs/angular.d.ts (<a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/angularjs/angular.d.ts">https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/angularjs/angular.d.ts</a>)</li>
<li>angular2 (npm-bundled definitions)</li>
</ul>
<p dir="auto">Cannot I use angularjs and angular2 together with typescript?</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] feature request"><pre class="notranslate"><code class="notranslate">[x] feature request
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">The *.ngfactory.ts files generated by <code class="notranslate">ngc</code> are huge. In my case 1.5MB in total (80 Components). And the code doesn't become much smaller with minify/mangle as there is <code class="notranslate">this.</code> before 95% of all statements.</p>
<p dir="auto">Example Component: <a href="https://gist.github.com/sod/049ce1f29f6c6d83bcfdd99ecef49513">gist.github.com/sod/049ce...</a><br>
<code class="notranslate">ngc</code> output for that component: <a href="https://gist.github.com/sod/ca6dc8aab403481ec84a7f308906a25a">gist.github.com/sod/ca6dc...</a></p>
<p dir="auto">If I transcode & mangle this factory alone, the output is 66kb for this one component.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto">More minify friendly output of <code class="notranslate">ngc</code>.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.5</li>
</ul> | 0 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-change-the-css-of-an-element-using-jquery?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Change the CSS of an Element Using jQuery</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<script>
$(document).ready(function() {
$("#target1").css("color", "red");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-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-c"><!-- Only change code above this line. --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">></span>jQuery Playground<span class="pl-kos"></</span><span class="pl-ent">h3</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#left-well<span class="pl-kos"></</span><span class="pl-ent">h4</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">></span>#target1<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">></span>#target2<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">></span>#target3<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#right-well<span class="pl-kos"></</span><span class="pl-ent">h4</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">></span>#target4<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">></span>#target5<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">></span>#target6<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-colors?solution=%3Cstyle%3E%0A%20%20body%20%7B%0A%20%20%20%20background-color%3A%20%23000000%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A" rel="nofollow">Waypoint: Use Hex Code for Specific Colors</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My answer is correct but wrongly flagged as erroneous.<br>
My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<style>
body {
background-color: #000000;
}
</style>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-ent">body</span> {
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>000000</span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span></pre></div> | 1 |
<p dir="auto">Internal: b/140829173</p>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">Crashes are recorded by Firebase Crashlytics.</p>
<p dir="auto">iOS 11 and 12.</p>
<h2 dir="auto">Logs</h2>
<p dir="auto">crashed thread: io.flutter.1.io</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Crashed: io.flutter.1.io
0 libGPUSupportMercury.dylib 0x21445cf28 gpus_ReturnNotPermittedKillClient + 12
1 AGXGLDriver 0x218c0b8c0 gldUpdateDispatch + 7216
2 libGPUSupportMercury.dylib 0x21445df04 gpusSubmitDataBuffers + 176
3 AGXGLDriver 0x218c0ce08 gldUpdateDispatch + 12664
4 Flutter 0x10112dd04 GrGLGpu::prepareTextureForCrossContextUsage(GrTexture*) + 120
5 Flutter 0x1011576a8 SkImage::MakeCrossContextFromEncoded(GrContext*, sk_sp<SkData>, bool, SkColorSpace*, bool) + 676
6 Flutter 0x100f61b08 std::__1::__function::__func<fml::internal::CopyableLambda<blink::(anonymous namespace)::InstantiateImageCodec(_Dart_NativeArguments*)::$_1>, std::__1::allocator<fml::internal::CopyableLambda<blink::(anonymous namespace)::InstantiateImageCodec(_Dart_NativeArguments*)::$_1> >, void ()>::operator()() + 1532
7 Flutter 0x100f5701c fml::MessageLoopImpl::RunExpiredTasks() + 1872
8 Flutter 0x100f58328 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
9 CoreFoundation 0x1f759abf0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
10 CoreFoundation 0x1f759a920 __CFRunLoopDoTimer + 864
11 CoreFoundation 0x1f759a154 __CFRunLoopDoTimers + 248
12 CoreFoundation 0x1f7595030 __CFRunLoopRun + 1880
13 CoreFoundation 0x1f75945b8 CFRunLoopRunSpecific + 436
14 Flutter 0x100f581b4 fml::MessageLoopDarwin::Run() + 88
15 Flutter 0x100f57b00 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void*) + 272
16 libsystem_pthread.dylib 0x1f72252fc _pthread_body + 128
17 libsystem_pthread.dylib 0x1f722525c _pthread_start + 48
18 libsystem_pthread.dylib 0x1f7228d08 thread_start + 4"><pre class="notranslate"><code class="notranslate">Crashed: io.flutter.1.io
0 libGPUSupportMercury.dylib 0x21445cf28 gpus_ReturnNotPermittedKillClient + 12
1 AGXGLDriver 0x218c0b8c0 gldUpdateDispatch + 7216
2 libGPUSupportMercury.dylib 0x21445df04 gpusSubmitDataBuffers + 176
3 AGXGLDriver 0x218c0ce08 gldUpdateDispatch + 12664
4 Flutter 0x10112dd04 GrGLGpu::prepareTextureForCrossContextUsage(GrTexture*) + 120
5 Flutter 0x1011576a8 SkImage::MakeCrossContextFromEncoded(GrContext*, sk_sp<SkData>, bool, SkColorSpace*, bool) + 676
6 Flutter 0x100f61b08 std::__1::__function::__func<fml::internal::CopyableLambda<blink::(anonymous namespace)::InstantiateImageCodec(_Dart_NativeArguments*)::$_1>, std::__1::allocator<fml::internal::CopyableLambda<blink::(anonymous namespace)::InstantiateImageCodec(_Dart_NativeArguments*)::$_1> >, void ()>::operator()() + 1532
7 Flutter 0x100f5701c fml::MessageLoopImpl::RunExpiredTasks() + 1872
8 Flutter 0x100f58328 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
9 CoreFoundation 0x1f759abf0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
10 CoreFoundation 0x1f759a920 __CFRunLoopDoTimer + 864
11 CoreFoundation 0x1f759a154 __CFRunLoopDoTimers + 248
12 CoreFoundation 0x1f7595030 __CFRunLoopRun + 1880
13 CoreFoundation 0x1f75945b8 CFRunLoopRunSpecific + 436
14 Flutter 0x100f581b4 fml::MessageLoopDarwin::Run() + 88
15 Flutter 0x100f57b00 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void*) + 272
16 libsystem_pthread.dylib 0x1f72252fc _pthread_body + 128
17 libsystem_pthread.dylib 0x1f722525c _pthread_start + 48
18 libsystem_pthread.dylib 0x1f7228d08 thread_start + 4
</code></pre></div>
<p dir="auto">other threads:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="io.flutter.1.ui
0 Flutter 0x1012f2858 bssl::ssl_crypto_x509_ssl_auto_chain_if_needed(bssl::SSL_HANDSHAKE*) + 426
1 Flutter 0x10128050c dart::bin::Builtin_SecurityContext_Allocate(_Dart_NativeArguments*) + 116
2 Flutter 0x1013acacc dart::NativeEntry::AutoScopeNativeCallWrapperNoStackCheck(_Dart_NativeArguments*, void (*)(_Dart_NativeArguments*)) + 444
3 Flutter 0x1013ad9fc dart::NativeEntry::LinkNativeCall(_Dart_NativeArguments*) + 3320
4 App 0x10232f5f8 Precompiled_Stub_CallBootstrapNative + 88
5 App 0x102403034 Precompiled__RawReceivePortImpl_1026248__closeInternal_1026248_1396 + 116
6 App 0x10299a378 Precompiled__SecurityContext_26069316_init_defaultContext_10866 + 88
7 App 0x10232f1e8 Precompiled_Stub_InvokeDartCode + 232
8 Flutter 0x101396000 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) + 508
9 Flutter 0x101449b08 dart::DRT_InitStaticField(dart::NativeArguments) + 1020
10 App 0x10232f768 Precompiled_Stub_CallToRuntime + 104
11 App 0x102331704 Precompiled_Zone_get__current_7048458_9 + 100
12 App 0x10233163c Precompiled_Zone_get_current_8 + 60
13 App 0x1023ec54c Precompiled__RawSecureSocket_26069316__RawSecureSocket_26069316__1217 + 620
14 App 0x1023ec214 Precompiled__RawSecureSocket_26069316_connect_1216 + 1172
15 App 0x10250c9b0 Precompiled_RawSecureSocket_secure_3228 + 720
16 App 0x102515cac Precompiled_RawSecureSocket_startConnect__anonymous_closure___anonymous_closure__3300 + 204
17 App 0x102a07820 Precompiled__Closure_0150898_call_11532 + 128
18 App 0x102331b08 Precompiled__RootZone_7048458_runUnary_14 + 200
19 App 0x1023c8538 Precompiled__FutureListener_7048458_handleValue_978 + 376
20 App 0x1023c8f50 Precompiled__Future_7048458__propagateToListeners_7048458_handleValueCallback_987 + 144
21 App 0x102a078f8 Precompiled__Closure_0150898_call_11533 + 120
22 App 0x1023c4e10 Precompiled__Future_7048458__propagateToListeners_7048458_945 + 1648
23 App 0x1023ce510 Precompiled__Future_7048458__completeWithValue_7048458_1036 + 240
24 App 0x1023ce398 Precompiled__Future_7048458__asyncComplete_7048458__anonymous_closure__1035 + 184
25 App 0x102a078f8 Precompiled__Closure_0150898_call_11533 + 120
26 App 0x1023348a8 Precompiled_____microtaskLoop_7048458_49 + 200
27 App 0x1023346ac Precompiled_____startMicrotaskLoop_7048458_48 + 76
28 App 0x1023345d0 Precompiled_____startMicrotaskLoop_7048458__startMicrotaskLoop_7048458_47 + 112
29 App 0x10232f1e8 Precompiled_Stub_InvokeDartCode + 232
30 Flutter 0x101396000 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) + 508
31 Flutter 0x10148d120 Dart_InvokeClosure + 2264
32 Flutter 0x101258340 tonic::DartMicrotaskQueue::RunMicrotasks() + 132
33 Flutter 0x100f57038 fml::MessageLoopImpl::RunExpiredTasks() + 1900
34 Flutter 0x100f58328 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
35 CoreFoundation 0x1f759abf0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
36 CoreFoundation 0x1f759a920 __CFRunLoopDoTimer + 864
37 CoreFoundation 0x1f759a154 __CFRunLoopDoTimers + 248
38 CoreFoundation 0x1f7595030 __CFRunLoopRun + 1880
39 CoreFoundation 0x1f75945b8 CFRunLoopRunSpecific + 436
40 Flutter 0x100f581b4 fml::MessageLoopDarwin::Run() + 88
41 Flutter 0x100f57b00 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void*) + 272
42 libsystem_pthread.dylib 0x1f72252fc _pthread_body + 128
43 libsystem_pthread.dylib 0x1f722525c _pthread_start + 48
44 libsystem_pthread.dylib 0x1f7228d08 thread_start + 4"><pre class="notranslate"><code class="notranslate">io.flutter.1.ui
0 Flutter 0x1012f2858 bssl::ssl_crypto_x509_ssl_auto_chain_if_needed(bssl::SSL_HANDSHAKE*) + 426
1 Flutter 0x10128050c dart::bin::Builtin_SecurityContext_Allocate(_Dart_NativeArguments*) + 116
2 Flutter 0x1013acacc dart::NativeEntry::AutoScopeNativeCallWrapperNoStackCheck(_Dart_NativeArguments*, void (*)(_Dart_NativeArguments*)) + 444
3 Flutter 0x1013ad9fc dart::NativeEntry::LinkNativeCall(_Dart_NativeArguments*) + 3320
4 App 0x10232f5f8 Precompiled_Stub_CallBootstrapNative + 88
5 App 0x102403034 Precompiled__RawReceivePortImpl_1026248__closeInternal_1026248_1396 + 116
6 App 0x10299a378 Precompiled__SecurityContext_26069316_init_defaultContext_10866 + 88
7 App 0x10232f1e8 Precompiled_Stub_InvokeDartCode + 232
8 Flutter 0x101396000 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) + 508
9 Flutter 0x101449b08 dart::DRT_InitStaticField(dart::NativeArguments) + 1020
10 App 0x10232f768 Precompiled_Stub_CallToRuntime + 104
11 App 0x102331704 Precompiled_Zone_get__current_7048458_9 + 100
12 App 0x10233163c Precompiled_Zone_get_current_8 + 60
13 App 0x1023ec54c Precompiled__RawSecureSocket_26069316__RawSecureSocket_26069316__1217 + 620
14 App 0x1023ec214 Precompiled__RawSecureSocket_26069316_connect_1216 + 1172
15 App 0x10250c9b0 Precompiled_RawSecureSocket_secure_3228 + 720
16 App 0x102515cac Precompiled_RawSecureSocket_startConnect__anonymous_closure___anonymous_closure__3300 + 204
17 App 0x102a07820 Precompiled__Closure_0150898_call_11532 + 128
18 App 0x102331b08 Precompiled__RootZone_7048458_runUnary_14 + 200
19 App 0x1023c8538 Precompiled__FutureListener_7048458_handleValue_978 + 376
20 App 0x1023c8f50 Precompiled__Future_7048458__propagateToListeners_7048458_handleValueCallback_987 + 144
21 App 0x102a078f8 Precompiled__Closure_0150898_call_11533 + 120
22 App 0x1023c4e10 Precompiled__Future_7048458__propagateToListeners_7048458_945 + 1648
23 App 0x1023ce510 Precompiled__Future_7048458__completeWithValue_7048458_1036 + 240
24 App 0x1023ce398 Precompiled__Future_7048458__asyncComplete_7048458__anonymous_closure__1035 + 184
25 App 0x102a078f8 Precompiled__Closure_0150898_call_11533 + 120
26 App 0x1023348a8 Precompiled_____microtaskLoop_7048458_49 + 200
27 App 0x1023346ac Precompiled_____startMicrotaskLoop_7048458_48 + 76
28 App 0x1023345d0 Precompiled_____startMicrotaskLoop_7048458__startMicrotaskLoop_7048458_47 + 112
29 App 0x10232f1e8 Precompiled_Stub_InvokeDartCode + 232
30 Flutter 0x101396000 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) + 508
31 Flutter 0x10148d120 Dart_InvokeClosure + 2264
32 Flutter 0x101258340 tonic::DartMicrotaskQueue::RunMicrotasks() + 132
33 Flutter 0x100f57038 fml::MessageLoopImpl::RunExpiredTasks() + 1900
34 Flutter 0x100f58328 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
35 CoreFoundation 0x1f759abf0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
36 CoreFoundation 0x1f759a920 __CFRunLoopDoTimer + 864
37 CoreFoundation 0x1f759a154 __CFRunLoopDoTimers + 248
38 CoreFoundation 0x1f7595030 __CFRunLoopRun + 1880
39 CoreFoundation 0x1f75945b8 CFRunLoopRunSpecific + 436
40 Flutter 0x100f581b4 fml::MessageLoopDarwin::Run() + 88
41 Flutter 0x100f57b00 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void*) + 272
42 libsystem_pthread.dylib 0x1f72252fc _pthread_body + 128
43 libsystem_pthread.dylib 0x1f722525c _pthread_start + 48
44 libsystem_pthread.dylib 0x1f7228d08 thread_start + 4
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="io.flutter.1.gpu
0 libGPUSupportMercury.dylib 0x21445cf28 gpus_ReturnNotPermittedKillClient + 12
1 AGXGLDriver 0x218c0b8c0 gldUpdateDispatch + 7216
2 libGPUSupportMercury.dylib 0x21445df04 gpusSubmitDataBuffers + 176
3 AGXGLDriver 0x218c0ce08 gldUpdateDispatch + 12664
4 GLEngine 0x219e664e4 gliPresentViewES_Exec + 188
5 OpenGLES 0x1fa90fa8c -[EAGLContext presentRenderbuffer:] + 80
6 Flutter 0x100f4a6ec shell::IOSSurfaceGL::GLContextPresent() + 172
7 Flutter 0x100f4cfac std::__1::__function::__func<shell::GPUSurfaceGL::AcquireFrame(SkISize const&)::$_0, std::__1::allocator<shell::GPUSurfaceGL::AcquireFrame(SkISize const&)::$_0>, bool (shell::SurfaceFrame const&, SkCanvas*)>::operator()(shell::SurfaceFrame const&, SkCanvas*&&) + 388
8 Flutter 0x100f82ea4 shell::Rasterizer::DrawToSurface(flow::LayerTree&) + 408
9 Flutter 0x100f83440 shell::Rasterizer::DoDraw(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >) + 44
10 Flutter 0x100f837a0 std::__1::__function::__func<std::__1::__bind<void (shell::Rasterizer::*)(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >), shell::Rasterizer*, std::__1::placeholders::__ph<1> const&>, std::__1::allocator<std::__1::__bind<void (shell::Rasterizer::*)(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >), shell::Rasterizer*, std::__1::placeholders::__ph<1> const&> >, void (std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >)>::operator()(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >&&) + 60
11 Flutter 0x100f83238 shell::Rasterizer::Draw(fml::RefPtr<flutter::Pipeline<flow::LayerTree> >) + 504
12 Flutter 0x100f87088 std::__1::__function::__func<shell::Shell::OnAnimatorDraw(fml::RefPtr<flutter::Pipeline<flow::LayerTree> >)::$_23, std::__1::allocator<shell::Shell::OnAnimatorDraw(fml::RefPtr<flutter::Pipeline<flow::LayerTree> >)::$_23>, void ()>::operator()() + 76
13 Flutter 0x100f5701c fml::MessageLoopImpl::RunExpiredTasks() + 1872
14 Flutter 0x100f58328 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
15 CoreFoundation 0x1f759abf0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
16 CoreFoundation 0x1f759a920 __CFRunLoopDoTimer + 864
17 CoreFoundation 0x1f759a154 __CFRunLoopDoTimers + 248
18 CoreFoundation 0x1f7595030 __CFRunLoopRun + 1880
19 CoreFoundation 0x1f75945b8 CFRunLoopRunSpecific + 436
20 Flutter 0x100f581b4 fml::MessageLoopDarwin::Run() + 88
21 Flutter 0x100f57b00 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void*) + 272
22 libsystem_pthread.dylib 0x1f72252fc _pthread_body + 128
23 libsystem_pthread.dylib 0x1f722525c _pthread_start + 48
24 libsystem_pthread.dylib 0x1f7228d08 thread_start + 4"><pre class="notranslate"><code class="notranslate">io.flutter.1.gpu
0 libGPUSupportMercury.dylib 0x21445cf28 gpus_ReturnNotPermittedKillClient + 12
1 AGXGLDriver 0x218c0b8c0 gldUpdateDispatch + 7216
2 libGPUSupportMercury.dylib 0x21445df04 gpusSubmitDataBuffers + 176
3 AGXGLDriver 0x218c0ce08 gldUpdateDispatch + 12664
4 GLEngine 0x219e664e4 gliPresentViewES_Exec + 188
5 OpenGLES 0x1fa90fa8c -[EAGLContext presentRenderbuffer:] + 80
6 Flutter 0x100f4a6ec shell::IOSSurfaceGL::GLContextPresent() + 172
7 Flutter 0x100f4cfac std::__1::__function::__func<shell::GPUSurfaceGL::AcquireFrame(SkISize const&)::$_0, std::__1::allocator<shell::GPUSurfaceGL::AcquireFrame(SkISize const&)::$_0>, bool (shell::SurfaceFrame const&, SkCanvas*)>::operator()(shell::SurfaceFrame const&, SkCanvas*&&) + 388
8 Flutter 0x100f82ea4 shell::Rasterizer::DrawToSurface(flow::LayerTree&) + 408
9 Flutter 0x100f83440 shell::Rasterizer::DoDraw(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >) + 44
10 Flutter 0x100f837a0 std::__1::__function::__func<std::__1::__bind<void (shell::Rasterizer::*)(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >), shell::Rasterizer*, std::__1::placeholders::__ph<1> const&>, std::__1::allocator<std::__1::__bind<void (shell::Rasterizer::*)(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >), shell::Rasterizer*, std::__1::placeholders::__ph<1> const&> >, void (std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >)>::operator()(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >&&) + 60
11 Flutter 0x100f83238 shell::Rasterizer::Draw(fml::RefPtr<flutter::Pipeline<flow::LayerTree> >) + 504
12 Flutter 0x100f87088 std::__1::__function::__func<shell::Shell::OnAnimatorDraw(fml::RefPtr<flutter::Pipeline<flow::LayerTree> >)::$_23, std::__1::allocator<shell::Shell::OnAnimatorDraw(fml::RefPtr<flutter::Pipeline<flow::LayerTree> >)::$_23>, void ()>::operator()() + 76
13 Flutter 0x100f5701c fml::MessageLoopImpl::RunExpiredTasks() + 1872
14 Flutter 0x100f58328 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
15 CoreFoundation 0x1f759abf0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
16 CoreFoundation 0x1f759a920 __CFRunLoopDoTimer + 864
17 CoreFoundation 0x1f759a154 __CFRunLoopDoTimers + 248
18 CoreFoundation 0x1f7595030 __CFRunLoopRun + 1880
19 CoreFoundation 0x1f75945b8 CFRunLoopRunSpecific + 436
20 Flutter 0x100f581b4 fml::MessageLoopDarwin::Run() + 88
21 Flutter 0x100f57b00 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void*) + 272
22 libsystem_pthread.dylib 0x1f72252fc _pthread_body + 128
23 libsystem_pthread.dylib 0x1f722525c _pthread_start + 48
24 libsystem_pthread.dylib 0x1f7228d08 thread_start + 4
</code></pre></div>
<p dir="auto">flutter doctor -v</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale ja-JP)
• Flutter version 0.8.2 at /Applications/flutter
• Framework revision 5ab9e70727 (5 weeks ago), 2018-09-07 12:33:05 -0700
• Engine revision 58a1894a1c
• Dart version 2.1.0-dev.3.1.flutter-760a9690c2
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/najeira/Library/Android/sdk
• Android NDK at /Users/najeira/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/najeira/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode9.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
• Dart plugin version 171.4424
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 23.1.3
• Dart plugin version 181.4203.498
[✓] VS Code (version 1.27.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.18.0"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale ja-JP)
• Flutter version 0.8.2 at /Applications/flutter
• Framework revision 5ab9e70727 (5 weeks ago), 2018-09-07 12:33:05 -0700
• Engine revision 58a1894a1c
• Dart version 2.1.0-dev.3.1.flutter-760a9690c2
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/najeira/Library/Android/sdk
• Android NDK at /Users/najeira/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/najeira/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode9.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
• Dart plugin version 171.4424
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 23.1.3
• Dart plugin version 181.4203.498
[✓] VS Code (version 1.27.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.18.0
</code></pre></div> | <p dir="auto">Internal: b/140829173</p>
<h2 dir="auto">Steps to Reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1. click to jump to flutter page, at the same time back to background
2. iphone6, 6plus, 5s device"><pre class="notranslate"><code class="notranslate"> 1. click to jump to flutter page, at the same time back to background
2. iphone6, 6plus, 5s device
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel faceu_dev_1.0.0, v1.0.1-pre.5, on Mac OS X 10.13.6 17G65,
locale zh-Hans-CN)
• Flutter version 1.0.1-pre.5 at
/Users/xiongzhuang/Documents/study/flutter/flutter
• Framework revision 0fd43583b8 (5 weeks ago), 2018-12-09 19:12:32 +0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.io/setup/#android-setup for detailed
instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME
to that location.
You may also want to add it to your PATH environment variable.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10A255
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed
instructions).
[!] VS Code (version 1.29.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel faceu_dev_1.0.0, v1.0.1-pre.5, on Mac OS X 10.13.6 17G65,
locale zh-Hans-CN)
• Flutter version 1.0.1-pre.5 at
/Users/xiongzhuang/Documents/study/flutter/flutter
• Framework revision 0fd43583b8 (5 weeks ago), 2018-12-09 19:12:32 +0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.io/setup/#android-setup for detailed
instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME
to that location.
You may also want to add it to your PATH environment variable.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10A255
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed
instructions).
[!] VS Code (version 1.29.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
</code></pre></div> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12790960/8038797/9d611e34-0dd3-11e5-8093-105822e90c38.png"><img src="https://cloud.githubusercontent.com/assets/12790960/8038797/9d611e34-0dd3-11e5-8093-105822e90c38.png" alt="screenshot 6" style="max-width: 100%;"></a><br>
Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-make-circular-images-with-a-border-radius" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-make-circular-images-with-a-border-radius</a> has an issue. Please describe how to reproduce it, and include links to screen shots if possible.</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12790960/8042643/9103674e-0dee-11e5-960c-e903e6f9ae2e.png"><img src="https://cloud.githubusercontent.com/assets/12790960/8042643/9103674e-0dee-11e5-960c-e903e6f9ae2e.png" alt="screenshot 9" style="max-width: 100%;"></a><br>
Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-add-different-margins-to-each-side-of-an-element" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-add-different-margins-to-each-side-of-an-element</a> has an issue. Please describe how to reproduce it, and include links to screen shots if possible.</p> | 1 |
<p dir="auto">Consider the following example</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({
selector: "my-comp"
})
@View({
template: "<div>My Compponent</div>"
})
export class MyComponent {
constructor(dep1:Dependency1,dep2:Dependency2){};
}"><pre class="notranslate"><code class="notranslate">@Component({
selector: "my-comp"
})
@View({
template: "<div>My Compponent</div>"
})
export class MyComponent {
constructor(dep1:Dependency1,dep2:Dependency2){};
}
</code></pre></div>
<p dir="auto">This generates (ts 1.6-beta) a compilation error TS2345: Argument of type 'typeof MyComponent' is not assignable to parameter of type 'Type'.</p>
<p dir="auto">This boils down to an equivalent simpler example that generates a compilation error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var dec : TypeDecorator;
@dec
export class MyClass {
constructor(x1:number,x2:number){};
}"><pre class="notranslate"><code class="notranslate">var dec : TypeDecorator;
@dec
export class MyClass {
constructor(x1:number,x2:number){};
}
</code></pre></div>
<p dir="auto">The problem lies in the fact that the definition of Type contains a "new" declaration with 1 argument causing MyClass not to be assignable to Type.</p> | <p dir="auto">dgeni generates type in angular2.d.ts with</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" interface Type extends Function {
new(args: any): any;
}"><pre class="notranslate"> <span class="pl-s1">interface</span> <span class="pl-v">Type</span> <span class="pl-k">extends</span> <span class="pl-v">Function</span> <span class="pl-kos">{</span>
<span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-s1">args</span>: <span class="pl-s1">any</span><span class="pl-kos">)</span>: <span class="pl-s1">any</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Typescript 1.6.0 throws an error during compilation:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({
selector: 'audio-tile',
properties: ['summaryInfo: summary-info'],
events: ['tileEvent']
})
@View(<any>{ // TEMP
template: <string>require('./audio-tile.html'),
directives: [NgIf, NgClass],
pipes: [SecsAsMmSsPipe]
})
export class AudioTile {
constructor (resetPlaybackEventEmitter: ResetPlaybackEventEmitter,
resetExpansionEventEmitter: ResetExpansionEventEmitter) {
}
}"><pre class="notranslate">@<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">selector</span>: <span class="pl-s">'audio-tile'</span><span class="pl-kos">,</span>
<span class="pl-c1">properties</span>: <span class="pl-kos">[</span><span class="pl-s">'summaryInfo: summary-info'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">events</span>: <span class="pl-kos">[</span><span class="pl-s">'tileEvent'</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
@<span class="pl-v">View</span><span class="pl-kos">(</span><span class="pl-c1"><</span><span class="pl-ent">any</span><span class="pl-c1">></span><span class="pl-kos">{</span> <span class="pl-c">// TEMP</span>
<span class="pl-s1">template</span>: <span class="pl-c1"><</span><span class="pl-s1">string</span><span class="pl-c1">></span><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./audio-tile.html'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">directives</span>: <span class="pl-kos">[</span><span class="pl-v">NgIf</span><span class="pl-kos">,</span> <span class="pl-v">NgClass</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s1">pipes</span>: <span class="pl-kos">[</span><span class="pl-v">SecsAsMmSsPipe</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span>)
export class AudioTile <span class="pl-kos">{</span>
<span class="pl-en">constructor</span> <span class="pl-kos">(</span><span class="pl-s1">resetPlaybackEventEmitter</span>: <span class="pl-v">ResetPlaybackEventEmitter</span><span class="pl-kos">,</span>
<span class="pl-s1">resetExpansionEventEmitter</span>: <span class="pl-v">ResetExpansionEventEmitter</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in /Users/bestander/work/booktrack/mandrill/app/studio/audio/audio-tile/audio-tile.ts:9:1
Argument of type 'typeof AudioTile' is not assignable to parameter of type 'Type'."><pre class="notranslate"><code class="notranslate">ERROR in /Users/bestander/work/booktrack/mandrill/app/studio/audio/audio-tile/audio-tile.ts:9:1
Argument of type 'typeof AudioTile' is not assignable to parameter of type 'Type'.
</code></pre></div>
<p dir="auto">If I manually replace what dgeni generated into (as in <code class="notranslate">modules/angular2/src/core/facade/lang.ts</code>)</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" interface Type extends Function {
new(...args): any;
}"><pre class="notranslate"> <span class="pl-s1">interface</span> <span class="pl-v">Type</span> <span class="pl-k">extends</span> <span class="pl-v">Function</span> <span class="pl-kos">{</span>
<span class="pl-k">new</span><span class="pl-kos">(</span>...<span class="pl-s1">args</span><span class="pl-kos">)</span>: <span class="pl-s1">any</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Then it works fine.</p> | 1 |
<p dir="auto">I'd really like to have an option to choose between system standard and manual light or dark mode for the search bar and search results.</p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">The ability to override the theme that is used for PowerToys Run. Currently it's only possible to do this in the OS settings.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">In terms of UX, very similar to what we have in the General and Shortcut Guide app:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9866362/83720145-cadbc000-a638-11ea-9266-9ff5da515222.png"><img src="https://user-images.githubusercontent.com/9866362/83720145-cadbc000-a638-11ea-9266-9ff5da515222.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Both me and another discord user both get<br>
<code class="notranslate">Failed to request to tsserver Error: Debug Failure. False expression: Containing file should be a module.</code><br>
when trying to use workers.<br>
This seems to happen when running <a href="https://deno.land/manual/runtime/workers" rel="nofollow">the manual example</a><br>
but also in other cases. (see the code after the error stacktrace)</p>
<p dir="auto">This is my stacktrace of the error. I assume it is the same for them</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Starting Deno language server...
version: 1.12.2 (release, x86_64-unknown-linux-gnu)
executable: /home/skyler/.deno/bin/deno
Connected to "Visual Studio Code" 1.58.2
language server initialized
Enabling import suggestions for: https://deno.land
Enabling import suggestions for: https://crux.land
Server ready.
Failed to request to tsserver Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:72534:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:72509:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:74908:28)
at checkExpression (deno:cli/tsc/00_typescript.js:74799:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:69770:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:69815:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:74879:28)
at checkExpression (deno:cli/tsc/00_typescript.js:74799:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:74446:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:70940:35)
[Error - 11:20:27 AM] Request textDocument/semanticTokens/full failed.
Message: Invalid request
Code: -32600"><pre class="notranslate"><code class="notranslate">Starting Deno language server...
version: 1.12.2 (release, x86_64-unknown-linux-gnu)
executable: /home/skyler/.deno/bin/deno
Connected to "Visual Studio Code" 1.58.2
language server initialized
Enabling import suggestions for: https://deno.land
Enabling import suggestions for: https://crux.land
Server ready.
Failed to request to tsserver Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:72534:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:72509:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:74908:28)
at checkExpression (deno:cli/tsc/00_typescript.js:74799:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:69770:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:69815:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:74879:28)
at checkExpression (deno:cli/tsc/00_typescript.js:74799:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:74446:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:70940:35)
[Error - 11:20:27 AM] Request textDocument/semanticTokens/full failed.
Message: Invalid request
Code: -32600
</code></pre></div>
<p dir="auto">worker.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const globalCache = new Map();
onmessage = messageHandler;
function set(cacheName, key, value) {
const cache = globalCache.get(cacheName);
if (!cache) globalCache.set(cacheName, new Map());
globalCache.get(cacheName).set(key, value);
}
function get(cacheName, key) {
return globalCache.get(cacheName)?.get(key);
}
function deleteKey(cacheName, key) {
return globalCache.get(cacheName)?.delete(key);
}
function deleteCache(cacheName) {
return globalCache.delete(cacheName);
}
function messageHandler(message, sab) {
const data = message.data;
switch (data.cmd) {
case "set":
set(data.args[0], data.args[1], data.args[2]);
break;
case "get":
get(data.args[0], data.args[1]);
break;
case "delete":
deleteKey(data.args[0], data.args[1]);
break;
case "delete_cache":
deleteCache(data.args);
break;
}
postMessage(data.id);
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">globalCache</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Map</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">onmessage</span> <span class="pl-c1">=</span> <span class="pl-s1">messageHandler</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">cache</span> <span class="pl-c1">=</span> <span class="pl-s1">globalCache</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">cache</span><span class="pl-kos">)</span> <span class="pl-s1">globalCache</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-v">Map</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">globalCache</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">globalCache</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">)</span><span class="pl-kos">?.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">deleteKey</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">globalCache</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">)</span><span class="pl-kos">?.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">deleteCache</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">globalCache</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s1">cacheName</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">messageHandler</span><span class="pl-kos">(</span><span class="pl-s1">message</span><span class="pl-kos">,</span> <span class="pl-s1">sab</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">message</span><span class="pl-kos">.</span><span class="pl-c1">data</span><span class="pl-kos">;</span>
<span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">cmd</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">case</span> <span class="pl-s">"set"</span>:
<span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">args</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-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">[</span><span class="pl-c1">2</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">break</span><span class="pl-kos">;</span>
<span class="pl-k">case</span> <span class="pl-s">"get"</span>:
<span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">args</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-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">break</span><span class="pl-kos">;</span>
<span class="pl-k">case</span> <span class="pl-s">"delete"</span>:
<span class="pl-en">deleteKey</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">args</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-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">break</span><span class="pl-kos">;</span>
<span class="pl-k">case</span> <span class="pl-s">"delete_cache"</span>:
<span class="pl-en">deleteCache</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">break</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">postMessage</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">.</span><span class="pl-c1">id</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">mod.ts</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Message {
cmd: "set" | "get" | "delete" | "delete_cache";
id: number;
args: [string, string, unknown] | [string, string] | string;
}
const worker = new Worker(new URL("./worker.js", import.meta.url), {type: "module"});
function set() {}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Message</span> <span class="pl-kos">{</span>
<span class="pl-c1">cmd</span>: <span class="pl-s">"set"</span> <span class="pl-c1">|</span> <span class="pl-s">"get"</span> <span class="pl-c1">|</span> <span class="pl-s">"delete"</span> <span class="pl-c1">|</span> <span class="pl-s">"delete_cache"</span><span class="pl-kos">;</span>
<span class="pl-c1">id</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-c1">args</span>: <span class="pl-kos">[</span><span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-smi">unknown</span><span class="pl-kos">]</span> <span class="pl-c1">|</span> <span class="pl-kos">[</span><span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-smi">string</span><span class="pl-kos">]</span> <span class="pl-c1">|</span> <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">const</span> <span class="pl-s1">worker</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Worker</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">URL</span><span class="pl-kos">(</span><span class="pl-s">"./worker.js"</span><span class="pl-kos">,</span> <span class="pl-k">import</span><span class="pl-kos">.</span><span class="pl-c1">meta</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">type</span>: <span class="pl-s">"module"</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">set</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">Thought this was already fixed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="775746263" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/8914" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/8914/hovercard" href="https://github.com/denoland/deno/pull/8914">#8914</a>?</p>
<p dir="auto">Using latest deno canary and actual vscode-deno.</p>
<p dir="auto">Adding a <code class="notranslate">export {}</code> to the file helps.</p>
<h3 dir="auto">Actual Result</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Starting Deno language server...
version: 1.8.0+04740af (release, x86_64-unknown-linux-gnu)
Connected to "Visual Studio Code" 1.53.1
language server initialized
Server ready.
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70604:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70579:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72940:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:67851:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:67896:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72911:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72478:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69000:35)
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70604:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70579:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72940:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:67851:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:67896:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72911:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72478:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69000:35)
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70604:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70579:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72940:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:67851:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:67896:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72911:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72478:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69000:35)
"><pre class="notranslate"><code class="notranslate">Starting Deno language server...
version: 1.8.0+04740af (release, x86_64-unknown-linux-gnu)
Connected to "Visual Studio Code" 1.53.1
language server initialized
Server ready.
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70604:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70579:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72940:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:67851:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:67896:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72911:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72478:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69000:35)
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70604:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70579:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72940:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:67851:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:67896:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72911:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72478:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69000:35)
ERROR TSLS = Error: Debug Failure. False expression: Containing file should be a module.
at checkImportMetaProperty (deno:cli/tsc/00_typescript.js:70604:22)
at checkMetaProperty (deno:cli/tsc/00_typescript.js:70579:24)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72940:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkNonNullExpression (deno:cli/tsc/00_typescript.js:67851:37)
at checkPropertyAccessExpression (deno:cli/tsc/00_typescript.js:67896:85)
at checkExpressionWorker (deno:cli/tsc/00_typescript.js:72911:28)
at checkExpression (deno:cli/tsc/00_typescript.js:72831:38)
at checkExpressionWithContextualType (deno:cli/tsc/00_typescript.js:72478:28)
at getSignatureApplicabilityError (deno:cli/tsc/00_typescript.js:69000:35)
</code></pre></div>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">File will be formatted.</p> | 1 |
<p dir="auto">TOSTRING() fails in cases where STR() worked</p>
<p dir="auto"><strong>Neo4j Version:</strong> 2.3.1<br>
<strong>Operating System:</strong> Ubuntu 14.10</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">I have an collection of arrays</p>
<p dir="auto">`Collect([TOINT(idn),STR(name),TOINT(status),TOINT(days_norm),TOINT(days_spent)]) as flowsteps``</p>
<p dir="auto">This</p>
<p dir="auto"><code class="notranslate">REDUCE (x=0, i IN flowsteps | x + TOINT(STR(i[3]))) as normP</code></p>
<p dir="auto">works, but this</p>
<p dir="auto">REDUCE (x=0, i IN flowsteps | x + TOINT(TOSTRING(i[3]))) as normP`</p>
<p dir="auto">throws an error</p>
<p dir="auto"><code class="notranslate">Cypher error: Type mismatch: expected Float, Integer or String but was Any (line 33, column 57 (offset: 1271)) " REDUCE (x=0, i IN flowsteps | x + TOINT(TOSTRING(i[3]))) as normP</code></p>
<p dir="auto">Same error can be observed when running this:</p>
<p dir="auto">`UNWIND [1,"12",37,"27654"] as elt RETURN toString(elt)``</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">TOSTRING() should accept Any, like STR() dis</p> | <p dir="auto"><strong>Neo4j Version:</strong> 2.3.1<br>
<strong>Operating System:</strong> Ubuntu 14.10</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Creating a collection of collections, e.g.</p>
<p dir="auto"><code class="notranslate">Collect([TOINT(idn),STR(name),TOINT(status),TOINT(days_norm),TOINT(days_spent)]) as flowsteps</code></p>
<p dir="auto">and later on adding up corresponding items</p>
<p dir="auto"><code class="notranslate">REDUCE (x=0, i IN flowsteps | x + TOINT(STRING(i[3]))) as normP</code></p>
<p dir="auto">throws an error</p>
<p dir="auto"><code class="notranslate">Cypher error: Type mismatch: expected Float, Integer or String but was Any (line 33, column 57 (offset: 1271)) " REDUCE (x=0, i IN flowsteps | x + TOINT(TOSTRING(i[3]))) as normP</code></p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">If I cast something WITH TOINT(), then this should work:</p>
<p dir="auto"><code class="notranslate">REDUCE (x=0, i IN flowsteps | x + i[3]) as normP</code></p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Only works with a workaround by TOINT(STR()), which is no longer works in 3.0, because STR() is no longer available.</p> | 1 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<p dir="auto">Electron crashes because of node 14.16.0 on Apple M1 if using RealmJS (that internally triggers code path that uses WASM).<br>
You can check the issue reported on node repo (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="793190120" data-permission-text="Title is private" data-url="https://github.com/nodejs/node/issues/37061" data-hovercard-type="issue" data-hovercard-url="/nodejs/node/issues/37061/hovercard" href="https://github.com/nodejs/node/issues/37061">nodejs/node#37061</a>) that is related to the same crash happening on Electron built for ARM64.</p>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>v12.0.0</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 11.2</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>Never worked</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">When building Electron for ARM64 on OSX (Apple Silicon M1) and using RealmJS, the app should not crash.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">When opening the Electron App, it crashes.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Initialise RealmJS in the BrowserWindow, the app will crash.</p>
<h3 dir="auto">Screenshots</h3>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Crash report:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
Application Specific Information:
abort() called
Thread 0 Crashed:: CrRendererMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x0000000193ceccec __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000193d1dc24 pthread_kill + 292
2 libsystem_c.dylib 0x0000000193c65864 abort + 104
3 com.github.Electron.framework 0x0000000106b1b240 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 10710128
4 com.github.Electron.framework 0x0000000107db9f00 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 30234928
5 com.github.Electron.framework 0x0000000107db9994 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 30233540
6 com.github.Electron.framework 0x0000000105d07adc v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) + 696
7 com.github.Electron.framework 0x0000000105d07aa0 v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) + 636
8 com.github.Electron.framework 0x0000000105f84564 v8::internal::wasm::WasmCodeManager::Commit(v8::base::AddressRegion) + 180
9 com.github.Electron.framework 0x000000010340b6a8 v8::internal::wasm::NativeModule::AddCodeSpace(v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) + 1324
10 com.github.Electron.framework 0x000000010340c1e8 v8::internal::wasm::NativeModule::CreateEmptyJumpTableInRegion(int, v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) + 68
11 com.github.Electron.framework 0x000000010340b278 v8::internal::wasm::NativeModule::AddCodeSpace(v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) + 252
12 com.github.Electron.framework 0x000000010340bf18 v8::internal::wasm::NativeModule::NativeModule(v8::internal::wasm::WasmEngine*, v8::internal::wasm::WasmFeatures const&, v8::internal::VirtualMemory, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, std::__1::shared_ptr<v8::internal::Counters>, std::__1::shared_ptr<v8::internal::wasm::NativeModule>*) + 632
13 com.github.Electron.framework 0x0000000105f85404 v8::internal::wasm::WasmCodeManager::NewNativeModule(v8::internal::wasm::WasmEngine*, v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, unsigned long, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>) + 388
14 com.github.Electron.framework 0x0000000105f8e2f8 v8::internal::wasm::WasmEngine::NewNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, unsigned long) + 84
15 com.github.Electron.framework 0x0000000105f6b930 v8::internal::wasm::CompilationState::failed() const + 2736
16 com.github.Electron.framework 0x0000000103411004 v8::internal::wasm::WasmEngine::SyncCompile(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, v8::internal::wasm::ErrorThrower*, v8::internal::wasm::ModuleWireBytes const&) + 448
17 com.github.Electron.framework 0x0000000103418110 v8::internal::WasmJs::Install(v8::internal::Isolate*, bool) + 5776
18 com.github.Electron.framework 0x00000001030ec68c v8::internal::ClassScope::ResolvePrivateNamesPartially() + 15712
19 com.github.Electron.framework 0x00000001030ec034 v8::internal::ClassScope::ResolvePrivateNamesPartially() + 14088
20 com.github.Electron.framework 0x00000001030ebc04 v8::internal::ClassScope::ResolvePrivateNamesPartially() + 13016
21 com.github.Electron.framework 0x000000010370da8c v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 462956
22 com.github.Electron.framework 0x00000001036a2a1c v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 24572
23 com.github.Electron.framework 0x000000010379c5f0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 1047504
24 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
25 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
26 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
27 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
28 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
29 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
30 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
31 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
32 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
33 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
34 com.github.Electron.framework 0x00000001036a366c v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 27724
35 com.github.Electron.framework 0x00000001036a3308 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 26856
36 ??? 0x000000016d649570 0 + 6130275696"><pre class="notranslate"><code class="notranslate">
Application Specific Information:
abort() called
Thread 0 Crashed:: CrRendererMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x0000000193ceccec __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000193d1dc24 pthread_kill + 292
2 libsystem_c.dylib 0x0000000193c65864 abort + 104
3 com.github.Electron.framework 0x0000000106b1b240 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 10710128
4 com.github.Electron.framework 0x0000000107db9f00 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 30234928
5 com.github.Electron.framework 0x0000000107db9994 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 30233540
6 com.github.Electron.framework 0x0000000105d07adc v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) + 696
7 com.github.Electron.framework 0x0000000105d07aa0 v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) + 636
8 com.github.Electron.framework 0x0000000105f84564 v8::internal::wasm::WasmCodeManager::Commit(v8::base::AddressRegion) + 180
9 com.github.Electron.framework 0x000000010340b6a8 v8::internal::wasm::NativeModule::AddCodeSpace(v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) + 1324
10 com.github.Electron.framework 0x000000010340c1e8 v8::internal::wasm::NativeModule::CreateEmptyJumpTableInRegion(int, v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) + 68
11 com.github.Electron.framework 0x000000010340b278 v8::internal::wasm::NativeModule::AddCodeSpace(v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) + 252
12 com.github.Electron.framework 0x000000010340bf18 v8::internal::wasm::NativeModule::NativeModule(v8::internal::wasm::WasmEngine*, v8::internal::wasm::WasmFeatures const&, v8::internal::VirtualMemory, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, std::__1::shared_ptr<v8::internal::Counters>, std::__1::shared_ptr<v8::internal::wasm::NativeModule>*) + 632
13 com.github.Electron.framework 0x0000000105f85404 v8::internal::wasm::WasmCodeManager::NewNativeModule(v8::internal::wasm::WasmEngine*, v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, unsigned long, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>) + 388
14 com.github.Electron.framework 0x0000000105f8e2f8 v8::internal::wasm::WasmEngine::NewNativeModule(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, unsigned long) + 84
15 com.github.Electron.framework 0x0000000105f6b930 v8::internal::wasm::CompilationState::failed() const + 2736
16 com.github.Electron.framework 0x0000000103411004 v8::internal::wasm::WasmEngine::SyncCompile(v8::internal::Isolate*, v8::internal::wasm::WasmFeatures const&, v8::internal::wasm::ErrorThrower*, v8::internal::wasm::ModuleWireBytes const&) + 448
17 com.github.Electron.framework 0x0000000103418110 v8::internal::WasmJs::Install(v8::internal::Isolate*, bool) + 5776
18 com.github.Electron.framework 0x00000001030ec68c v8::internal::ClassScope::ResolvePrivateNamesPartially() + 15712
19 com.github.Electron.framework 0x00000001030ec034 v8::internal::ClassScope::ResolvePrivateNamesPartially() + 14088
20 com.github.Electron.framework 0x00000001030ebc04 v8::internal::ClassScope::ResolvePrivateNamesPartially() + 13016
21 com.github.Electron.framework 0x000000010370da8c v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 462956
22 com.github.Electron.framework 0x00000001036a2a1c v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 24572
23 com.github.Electron.framework 0x000000010379c5f0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 1047504
24 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
25 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
26 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
27 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
28 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
29 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
30 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
31 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
32 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
33 com.github.Electron.framework 0x00000001036a5db0 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 37776
34 com.github.Electron.framework 0x00000001036a366c v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 27724
35 com.github.Electron.framework 0x00000001036a3308 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 26856
36 ??? 0x000000016d649570 0 + 6130275696
</code></pre></div> | <p dir="auto">As this issue said: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="374305711" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/15412" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/15412/hovercard" href="https://github.com/electron/electron/issues/15412">#15412</a><br>
Last time I opened this issue but wrote the expected behavior and the actual behavior on the wrong sides, and it was closed before I modified it. I hope someone can check this issue once again.</p> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">I wonder whether Superset offers a stepped line chart (I have been googled for quite some times but couldn't find any).</p>
<p dir="auto">It is like something like <a href="https://www.chartjs.org/samples/latest/charts/line/stepped.html" rel="nofollow">this</a>.</p>
<p dir="auto">Useful cases:</p>
<ul dir="auto">
<li>Showing the bid and the ask price of stock price over time in 1 single chart.</li>
<li>Showing multiple time series in one chart.</li>
</ul>
<p dir="auto">Currently, I have a database schema like this:<br>
symbol varhcar(16);<br>
is_bid boolean;<br>
price double;<br>
time timestamp(6);</p>
<p dir="auto">And then I use "time series - line chart" as the visualization type, "sum(price)" as metrics, and group by "symbol" and "is_bid".</p>
<p dir="auto">Then the chart will have many broken lines because not every timestamp for each set of symbol and is_bid exists for another set of symbol and is_bid. Concrete example:<br>
DB row 1: symbol = AAPL, time = 9:00:00AM, is_bid = TRUE, price = 140.00<br>
DB row 2: symbol = AAPL, time = 9:00:01AM, is_bid = FALSE, price = 140.05<br>
DB row 3: symbol = AAPL, time = 9:00:03AM, is_bid = TRUE, price = 140.01<br>
DB row 4: symbol = AAPL, time = 9:00:05AM, is_bid = FALSE, price = 140.06</p>
<p dir="auto">Then the line for AAPL's bid price will be broken between 9:00:00 and 9:00:03 because there is no entry in the DB for time = 9:00:01AM.</p>
<p dir="auto">One solution is to have a script to get all the unique timestamps, and then populate additional rows per symbol per is_bid based on the previous value of the corresponding set of symbol and is_bid (as "step before interpolation" makes sense in this case), creating a giant table and additional work for all stepped line charts.</p>
<p dir="auto">Hence, it would be great that superset supports (or already supported) step line chart.</p>
<p dir="auto">Thanks.</p> | <p dir="auto">Column selection is not saved in export file, and saving dataset id in export file doesn't seem to be a correct approach</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">Import a dashboard with native filter to a new workspace should work seemlessly.</p>
<h3 dir="auto">Actual results</h3>
<ol dir="auto">
<li>Selected column is not present in the export file, resulting in new dashboard native filter error with missing column selection.</li>
<li>Saving dataset id in the export file is an incorrect approach. The dataset id in a different workspace is different. In my example, dataset id =29 is already taken in the new workspace, this result in the imported dashboard showing the wrong dataset selection in native filter.</li>
</ol>
<h4 dir="auto">Screenshots</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/52086618/124030259-e1268d80-d9aa-11eb-9497-f373eb670a65.png"><img src="https://user-images.githubusercontent.com/52086618/124030259-e1268d80-d9aa-11eb-9497-f373eb670a65.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/52086618/124030653-411d3400-d9ab-11eb-954f-382602aee88c.png"><img src="https://user-images.githubusercontent.com/52086618/124030653-411d3400-d9ab-11eb-954f-382602aee88c.png" alt="Clipboard 2021-30-06 at 1 44 38 PM" style="max-width: 100%;"></a></p>
<h4 dir="auto">How to reproduce the bug</h4>
<ol dir="auto">
<li>Create a dashboard</li>
<li>Create a value native filter and select dataset and column</li>
<li>Export this dashboard</li>
<li>Import this dashboard to a new workspace</li>
</ol> | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.