text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><strong>Migrated issue, originally created by jvanasco (<a href="https://github.com/jvanasco">@jvanasco</a>)</strong></p> <p dir="auto">discussed previously in</p> <ul dir="auto"> <li><a href="https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/MUyt8zYaP0c/ht4fGR9q9w8J" rel="nofollow">https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/MUyt8zYaP0c/ht4fGR9q9w8J</a></li> <li><a href="https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/331XoToT4lk/RPjIYNTkSEIJ" rel="nofollow">https://groups.google.com/forum/#!searchin/sqlalchemy/icontains/sqlalchemy/331XoToT4lk/RPjIYNTkSEIJ</a></li> </ul> <p dir="auto">I tried doing this myself, but don't know enough of the internals to get this done on my own.</p> <p dir="auto">it looks like these need to be modified</p> <ul dir="auto"> <li>sqlalchemy/sql/default_comparator.py</li> <li>sqlalchemy/sql/operators.py</li> </ul> <p dir="auto">but not sure about</p> <ul dir="auto"> <li>sqlalchemy/sql/compiler.py</li> </ul> <p dir="auto">there are probably more files.</p> <p dir="auto">if someone can get one working, I can do the rest and build out tests.</p>
<h3 dir="auto">Describe the bug</h3> <p dir="auto">Using MySQL 8.0.27 with a database table called <code class="notranslate">lead</code>. Turns out this is a new reserved word in MariaDB. I am using SQLAlchemy 1.3.24 and adding <code class="notranslate">lead</code> to your <code class="notranslate">dialects/mysql/base.py</code> <code class="notranslate">RESERVED_WORDS</code> set fixes the issue, causing the <code class="notranslate">lead</code> table to be escaped properly. Looking at your latest 1.4.x branch, <code class="notranslate">lead</code> is not in there either.</p> <p dir="auto">I know 1.3.24 is old, but still used in the industry. If you could backport that reserved word in 1.3 that would be appreciated.</p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Run a JOIN on a table called `leads` BUT the join alias is singular `lead` on MySQL 8.0.27. An example SQL produced will be SELECT DISTINCT opportunities.id, opportunities.name, opportunities.lead_id, lead.id AS &quot;lead__id&quot;, lead.name AS &quot;lead__name&quot;, lead.primary_contact_id AS &quot;lead__primary_contact_id&quot; FROM opportunities LEFT OUTER JOIN leads AS lead ON opportunities.lead_id = lead.id;"><pre class="notranslate"><span class="pl-v">Run</span> <span class="pl-s1">a</span> <span class="pl-v">JOIN</span> <span class="pl-s1">on</span> <span class="pl-s1">a</span> <span class="pl-s1">table</span> <span class="pl-s1">called</span> <span class="pl-s">`leads`</span> <span class="pl-v">BUT</span> <span class="pl-s1">the</span> <span class="pl-s1">join</span> <span class="pl-s1">alias</span> <span class="pl-c1">is</span> <span class="pl-s1">singular</span> <span class="pl-s">`lead`</span> <span class="pl-s1">on</span> <span class="pl-v">MySQL</span> <span class="pl-c1">8.0</span><span class="pl-c1">.27</span>. <span class="pl-v">An</span> <span class="pl-s1">example</span> <span class="pl-v">SQL</span> <span class="pl-s1">produced</span> <span class="pl-s1">will</span> <span class="pl-s1">be</span> <span class="pl-v">SELECT</span> <span class="pl-v">DISTINCT</span> <span class="pl-s1">opportunities</span>.<span class="pl-s1">id</span>, <span class="pl-s1">opportunities</span>.<span class="pl-s1">name</span>, <span class="pl-s1">opportunities</span>.<span class="pl-s1">lead_id</span>, <span class="pl-s1">lead</span>.<span class="pl-s1">id</span> <span class="pl-v">AS</span> <span class="pl-s">"lead__id"</span>, <span class="pl-s1">lead</span>.<span class="pl-s1">name</span> <span class="pl-v">AS</span> <span class="pl-s">"lead__name"</span>, <span class="pl-s1">lead</span>.<span class="pl-s1">primary_contact_id</span> <span class="pl-v">AS</span> <span class="pl-s">"lead__primary_contact_id"</span> <span class="pl-v">FROM</span> <span class="pl-s1">opportunities</span> <span class="pl-v">LEFT</span> <span class="pl-v">OUTER</span> <span class="pl-v">JOIN</span> <span class="pl-s1">leads</span> <span class="pl-v">AS</span> <span class="pl-s1">lead</span> <span class="pl-v">ON</span> <span class="pl-s1">opportunities</span>.<span class="pl-s1">lead_id</span> <span class="pl-c1">=</span> <span class="pl-s1">lead</span>.<span class="pl-s1">id</span>;</pre></div> <p dir="auto">Which fails with <code class="notranslate">"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lead ON opportunities.lead_id = lead.id'</code> because <code class="notranslate">lead</code> is not escaped properly as it is not in your set of RESERVED words.</p> <h3 dir="auto">Error</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lead ON opportunities.lead_id = lead.id'"><pre class="notranslate"><code class="notranslate">"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lead ON opportunities.lead_id = lead.id' </code></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>OS: Linux Manjaro</li> <li>Python: 3.9.0</li> <li>SQLAlchemy: 1.3.24</li> <li>Database: MySQL 8.0.27</li> <li>DBAPI (eg: psycopg, cx_oracle, mysqlclient): aiomysql via encode/databases</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
0
<p dir="auto">I'm wondering if you can add a new feature: show nested menu when hover on item.<br> I read your source code and found that the new menu was rendered on body. I don't know how to change code so the menu item can support this feature.</p>
<p dir="auto">the circle around the selected date in the calendar is down and left of where it should be to be centered with the selected number.</p> <p dir="auto">this is verified on mac osx in chrome, safari, and firefox</p> <p dir="auto">the circle should be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="top: -7px; left: 3px"><pre class="notranslate"><code class="notranslate">top: -7px; left: 3px </code></pre></div> <p dir="auto">these screenshots are from <a href="http://www.material-ui.com/v0.15.0-alpha.2/#/components/date-picker" rel="nofollow">the datepicker documentation</a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/651566/14513010/4872a2de-01b2-11e6-8fa9-97c378baae13.png"><img width="330" alt="screen shot 2016-04-13 at 7 55 45 pm" src="https://cloud.githubusercontent.com/assets/651566/14513010/4872a2de-01b2-11e6-8fa9-97c378baae13.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/651566/14513014/4d490578-01b2-11e6-8129-be9e9beccfe2.png"><img width="489" alt="screen shot 2016-04-13 at 7 55 59 pm" src="https://cloud.githubusercontent.com/assets/651566/14513014/4d490578-01b2-11e6-8129-be9e9beccfe2.png" style="max-width: 100%;"></a></p>
0
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li> <p dir="auto"><strong>Electron Version:</strong></p> <ul dir="auto"> <li>LATEST</li> </ul> </li> <li> <p dir="auto"><strong>Operating System:</strong></p> <ul dir="auto"> <li>macOS 10.13.6</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" const filter = { urls: [ &quot;file://*.sobot.com/*&quot; ] } browserWindow.webContents.session.webRequest.onBeforeRequest(filter, (details, callback) =&gt; { const { id, url, method, resourceType, timestamp, uploadData } = details; // url === &quot;file://users/liutong/Desktop/**/projectName/app/***&quot; callback({ cancel: false, redirectURL: 'http' + url.slice(4) }) })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">filter</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">urls</span>: <span class="pl-kos">[</span> <span class="pl-s">"file://*.sobot.com/*"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-s1">browserWindow</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-c1">session</span><span class="pl-kos">.</span><span class="pl-c1">webRequest</span><span class="pl-kos">.</span><span class="pl-en">onBeforeRequest</span><span class="pl-kos">(</span><span class="pl-s1">filter</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">details</span><span class="pl-kos">,</span> <span class="pl-s1">callback</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> id<span class="pl-kos">,</span> url<span class="pl-kos">,</span> method<span class="pl-kos">,</span> resourceType<span class="pl-kos">,</span> timestamp<span class="pl-kos">,</span> uploadData <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">details</span><span class="pl-kos">;</span> <span class="pl-c">// url === "file://users/liutong/Desktop/**/projectName/app/***"</span> <span class="pl-s1">callback</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">cancel</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">redirectURL</span>: <span class="pl-s">'http'</span> <span class="pl-c1">+</span> <span class="pl-s1">url</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-c1">4</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">The callback of <code class="notranslate">onBeforeRequest</code> will be called by any request from the file scheme.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">For the above codes, I just want to redirect a request that contains the '*.sobot.com' domain,<br> But I received a URL from the local path of <code class="notranslate">/users/Oliver/Desktop</code> in the callback of <code class="notranslate">onBeforeRequest</code>.</p> <p dir="auto">When I add "file://*.sobot.com/*" a rule in the array, for the rule, I actually expected it only to match request that domain is '.sobot.com', but It appears to listen to all requests. e.g</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ &quot;file://users/Oliver/Desktop/**/projectName/app/caching_resources/***&quot; ]"><pre class="notranslate"><code class="notranslate">[ "file://users/Oliver/Desktop/**/projectName/app/caching_resources/***" ] </code></pre></div> <h3 dir="auto">To Reproduce</h3> <h3 dir="auto">Screenshots</h3> <h3 dir="auto">Additional Information</h3> <p dir="auto">As for my final purpose, you can refer to this <a href="https://github.com/electron/electron/issues/19200" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/19200/hovercard">issue</a>. so my fallback is to exclude any request that contains a path of 'caching_resources' as to redirect to the <code class="notranslate">HTTP</code> scheme.</p>
<ul dir="auto"> <li>Electron version: 1.7.9</li> <li>Operating system: macOS</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">The callback should be used only for URLs matching the filter.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const filter = { urls: ['*://www.googleapis.com'] }; session.defaultSession.webRequest.onBeforeRequest(filter, (details, callback) =&gt; { console.log('onBeforeRequest: ', details); callback({ cancel: true }); });"><pre class="notranslate"><code class="notranslate">const filter = { urls: ['*://www.googleapis.com'] }; session.defaultSession.webRequest.onBeforeRequest(filter, (details, callback) =&gt; { console.log('onBeforeRequest: ', details); callback({ cancel: true }); }); </code></pre></div> <h3 dir="auto">Actual behavior</h3> <p dir="auto">The callback is called for random URLs.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="onBeforeRequest: { id: 1, method: 'GET', referrer: '', resourceType: 'mainFrame', timestamp: 1512654154551.9841, url: 'file:///Users/pronebird/apple/mail/build/index.html' } onBeforeRequest: { id: 4, method: 'GET', referrer: '', resourceType: 'mainFrame', timestamp: 1512654154564.2021, url: 'chrome-devtools://devtools/bundled/inspector.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@691bdb490962d4e6ae7f25c6ab1fdd0faaf19cd0/&amp;can_dock=&amp;toolbarColor=rgba(223,223,223,1)&amp;textColor=rgba(0,0,0,1)&amp;experiments=true' }"><pre class="notranslate"><code class="notranslate">onBeforeRequest: { id: 1, method: 'GET', referrer: '', resourceType: 'mainFrame', timestamp: 1512654154551.9841, url: 'file:///Users/pronebird/apple/mail/build/index.html' } onBeforeRequest: { id: 4, method: 'GET', referrer: '', resourceType: 'mainFrame', timestamp: 1512654154564.2021, url: 'chrome-devtools://devtools/bundled/inspector.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@691bdb490962d4e6ae7f25c6ab1fdd0faaf19cd0/&amp;can_dock=&amp;toolbarColor=rgba(223,223,223,1)&amp;textColor=rgba(0,0,0,1)&amp;experiments=true' } </code></pre></div>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/881" rel="nofollow">http://projects.scipy.org/numpy/ticket/881</a> on 2008-08-07 by trac user mgogoulos@..., assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>.</em></p> <p dir="auto">numpy.object0 and numpy.object result in segmentation fault, see the following:</p> <p dir="auto">$ gdb python<br> ...</p> <p dir="auto">(gdb) run -c "import numpy; obj = numpy.object0()"</p> <p dir="auto">Starting program: /usr/bin/python -c "import numpy; obj = numpy.object0()"</p> <p dir="auto">...</p> <p dir="auto">[New Thread 0xb7d498c0 (LWP 17024)]</p> <p dir="auto">Program received signal SIGSEGV, Segmentation fault.</p> <p dir="auto">[Switching to Thread 0xb7d498c0 (LWP 17024)]</p> <p dir="auto">object_arrtype_new (type=0xb7c7d1c0, args=0xb7d0902c, kwds=0x0) at numpy/core/src/scalartypes.inc.src:1977</p> <p dir="auto">1977 Py_INCREF(<em>((PyObject *</em>)dest));</p> <p dir="auto">Tested on versions '1.0.4' and 1.1.1 with scipy 0.6.0, on Ubuntu hardy (python 2.5.2)</p> <p dir="auto">Best regards,<br> Markos Gogoulos</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/816" rel="nofollow">http://projects.scipy.org/numpy/ticket/816</a> on 2008-06-09 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>, assigned to unknown.</em></p> <p dir="auto">The following code causes a segmentation fault:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np print np.__version__ np.object_(3)"><pre class="notranslate"><code class="notranslate">import numpy as np print np.__version__ np.object_(3) </code></pre></div> <p dir="auto">The reason apparently is (see the Valgrind trace below) that the <em>object</em>_ constructor expects a memory address as its parameter. This functionality probably shouldn't be user-visible.</p> <p dir="auto">Valgrind trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ valgrind --suppressions=.valgrind/valgrind-python.supp python -c 'import numpy; print numpy.__version__; numpy.object_(3)' ... 1.1.0 ==23495== ==23495== Invalid read of size 4 ==23495== at 0x4A6830F: object_arrtype_new (scalartypes.inc.src:1877) ==23495== by 0x809EDCC: type_call (typeobject.c:422) ==23495== by 0x805CB36: PyObject_Call (abstract.c:1861) ==23495== by 0x80C7986: PyEval_EvalFrameEx (ceval.c:3784) ==23495== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836) ==23495== by 0x80CB226: PyEval_EvalCode (ceval.c:494) ==23495== by 0x80EB474: PyRun_StringFlags (pythonrun.c:1273) ==23495== by 0x80EB534: PyRun_SimpleStringFlags (pythonrun.c:900) ==23495== by 0x8058C80: Py_Main (main.c:512) ==23495== by 0x80587F1: main (python.c:23) ==23495== Address 0x3 is not stack'd, malloc'd or (recently) free'd ==23495== ==23495== Process terminating with default action of signal 11 (SIGSEGV) ==23495== Access not within mapped region at address 0x3 ==23495== at 0x4A6830F: object_arrtype_new (scalartypes.inc.src:1877) ==23495== by 0x809EDCC: type_call (typeobject.c:422) ==23495== by 0x805CB36: PyObject_Call (abstract.c:1861) ==23495== by 0x80C7986: PyEval_EvalFrameEx (ceval.c:3784) ==23495== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836) ==23495== by 0x80CB226: PyEval_EvalCode (ceval.c:494) ==23495== by 0x80EB474: PyRun_StringFlags (pythonrun.c:1273) ==23495== by 0x80EB534: PyRun_SimpleStringFlags (pythonrun.c:900) ==23495== by 0x8058C80: Py_Main (main.c:512) ==23495== by 0x80587F1: main (python.c:23) ==23495== ==23495== ERROR SUMMARY: 34 errors from 9 contexts (suppressed: 1194 from 7) ==23495== malloc/free: in use at exit: 4,800,420 bytes in 4,902 blocks. ==23495== malloc/free: 104,174 allocs, 99,272 frees, 48,061,410 bytes allocated. ==23495== For counts of detected errors, rerun with: -v ==23495== searching for pointers to 4,902 not-freed blocks. ==23495== checked 6,128,912 bytes. ==23495== ==23495== LEAK SUMMARY: ==23495== definitely lost: 0 bytes in 0 blocks. ==23495== possibly lost: 110,244 bytes in 210 blocks. ==23495== still reachable: 4,690,176 bytes in 4,692 blocks. ==23495== suppressed: 0 bytes in 0 blocks. ==23495== Rerun with --leak-check=full to see details of leaked memory. Segmentation fault"><pre class="notranslate"><code class="notranslate">$ valgrind --suppressions=.valgrind/valgrind-python.supp python -c 'import numpy; print numpy.__version__; numpy.object_(3)' ... 1.1.0 ==23495== ==23495== Invalid read of size 4 ==23495== at 0x4A6830F: object_arrtype_new (scalartypes.inc.src:1877) ==23495== by 0x809EDCC: type_call (typeobject.c:422) ==23495== by 0x805CB36: PyObject_Call (abstract.c:1861) ==23495== by 0x80C7986: PyEval_EvalFrameEx (ceval.c:3784) ==23495== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836) ==23495== by 0x80CB226: PyEval_EvalCode (ceval.c:494) ==23495== by 0x80EB474: PyRun_StringFlags (pythonrun.c:1273) ==23495== by 0x80EB534: PyRun_SimpleStringFlags (pythonrun.c:900) ==23495== by 0x8058C80: Py_Main (main.c:512) ==23495== by 0x80587F1: main (python.c:23) ==23495== Address 0x3 is not stack'd, malloc'd or (recently) free'd ==23495== ==23495== Process terminating with default action of signal 11 (SIGSEGV) ==23495== Access not within mapped region at address 0x3 ==23495== at 0x4A6830F: object_arrtype_new (scalartypes.inc.src:1877) ==23495== by 0x809EDCC: type_call (typeobject.c:422) ==23495== by 0x805CB36: PyObject_Call (abstract.c:1861) ==23495== by 0x80C7986: PyEval_EvalFrameEx (ceval.c:3784) ==23495== by 0x80CB0D6: PyEval_EvalCodeEx (ceval.c:2836) ==23495== by 0x80CB226: PyEval_EvalCode (ceval.c:494) ==23495== by 0x80EB474: PyRun_StringFlags (pythonrun.c:1273) ==23495== by 0x80EB534: PyRun_SimpleStringFlags (pythonrun.c:900) ==23495== by 0x8058C80: Py_Main (main.c:512) ==23495== by 0x80587F1: main (python.c:23) ==23495== ==23495== ERROR SUMMARY: 34 errors from 9 contexts (suppressed: 1194 from 7) ==23495== malloc/free: in use at exit: 4,800,420 bytes in 4,902 blocks. ==23495== malloc/free: 104,174 allocs, 99,272 frees, 48,061,410 bytes allocated. ==23495== For counts of detected errors, rerun with: -v ==23495== searching for pointers to 4,902 not-freed blocks. ==23495== checked 6,128,912 bytes. ==23495== ==23495== LEAK SUMMARY: ==23495== definitely lost: 0 bytes in 0 blocks. ==23495== possibly lost: 110,244 bytes in 210 blocks. ==23495== still reachable: 4,690,176 bytes in 4,692 blocks. ==23495== suppressed: 0 bytes in 0 blocks. ==23495== Rerun with --leak-check=full to see details of leaked memory. Segmentation fault </code></pre></div>
1
<p dir="auto">When creating declaration files (<code class="notranslate">"declaration": true</code> in <code class="notranslate">tsconfig.json</code>) for a component which uses <code class="notranslate">withStyles</code> the typescript compiler complains with :</p> <blockquote> <p dir="auto">TS4023:Exported variable 'MyComponent' has or is using name 'StyledComponentProps' from external module "./node_modules/material-ui/index" but cannot be named.</p> </blockquote> <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="167507078" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/9944" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/9944/hovercard" href="https://github.com/microsoft/TypeScript/issues/9944">microsoft/TypeScript#9944</a> for more context on the issue</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behaviour</h2> <p dir="auto">Type inference to handle the issue.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The compiler issues and error. A work around is to import <code class="notranslate">StyledComponentProps</code></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as React from 'react'; import {withStyles} from 'material-ui/styles'; const decorator = withStyles(({ spacing }) =&gt; ({ root: { padding: spacing.unit * 2 } })); const Example = decorator&lt;{}&gt;(({classes}) =&gt; ( &lt;div&gt;&lt;/div&gt; )); export default Example;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-smi">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">withStyles</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui/styles'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">decorator</span> <span class="pl-c1">=</span> <span class="pl-en">withStyles</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">{</span> spacing <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">root</span>: <span class="pl-kos">{</span> <span class="pl-c1">padding</span>: <span class="pl-s1">spacing</span><span class="pl-kos">.</span><span class="pl-c1">unit</span> <span class="pl-c1">*</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-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-smi">Example</span> <span class="pl-c1">=</span> <span class="pl-s1">decorator</span><span class="pl-c1">&lt;</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">{</span>classes<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span> <span class="pl-kos">&lt;</span><span class="pl-smi">div</span><span class="pl-kos">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-smi">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-s1">default</span> <span class="pl-smi">Example</span><span class="pl-kos">;</span></pre></div> <p dir="auto">and set <code class="notranslate">"declaration": true</code> in <code class="notranslate">tsconfig.json</code></p> <p dir="auto">To work around add <code class="notranslate">import {StyledComponentProps} from 'material-ui';</code> to the top of the file</p> <h2 dir="auto">Context</h2> <p dir="auto">I am creating a node package of shared MUI components for internal use and exporting them (hence using declaration files)</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0.beta-17</td> </tr> <tr> <td>Typescript</td> <td>2.4.2</td> </tr> </tbody> </table>
<p dir="auto">I have inherited this React/typescript/material-ui project from a more experienced developer.</p> <p dir="auto">My problem started when I was trying to solve another problem - importing DropDownMenu from material-ui, with my inline linter telling me that it could not be found.</p> <p dir="auto">I then changed the version of <code class="notranslate">material-ui": "^1.0.0-beta.6"</code> to beta.10 in package.json. I also did an npm install of @types/material-ui and this seemed to resolve the error in the editor.</p> <p dir="auto">But when I reloaded the project with npm start, I got a message in the terminal saying that the project would not compile due to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="These modules were not found: * material-ui/styles/theme in ./lib/styles/context.js * material-ui/styles/mixins in ./config/theme.js * material-ui/styles/palette in ./config/theme.js * material-ui/styles/breakpoints in ./config/theme.js * material-ui/styles/typography in ./config/theme.js"><pre class="notranslate"><code class="notranslate">These modules were not found: * material-ui/styles/theme in ./lib/styles/context.js * material-ui/styles/mixins in ./config/theme.js * material-ui/styles/palette in ./config/theme.js * material-ui/styles/breakpoints in ./config/theme.js * material-ui/styles/typography in ./config/theme.js </code></pre></div> <p dir="auto">I have subsequently uninstalled and reinstalled material-ui several times, experimenting with the latest stable release and the pre-release beta versions. Nothing seems to work.</p> <p dir="auto">I have settled on these relevant node modules in the package.json:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;@material/theme&quot;: &quot;^0.3.0&quot;, &quot;@types/material-ui&quot;: &quot;^0.18.0&quot;, &quot;material&quot;: &quot;^0.2.0&quot;, &quot;material-ui&quot;: &quot;^1.0.0-beta.10&quot;, &quot;material-ui-icons&quot;: &quot;^1.0.0-beta.10&quot;,"><pre class="notranslate"><code class="notranslate">"@material/theme": "^0.3.0", "@types/material-ui": "^0.18.0", "material": "^0.2.0", "material-ui": "^1.0.0-beta.10", "material-ui-icons": "^1.0.0-beta.10", </code></pre></div> <p dir="auto">Your help would be much appreciated as I have read many github issue threads for material-ui stack overflow questions and nothing seems to help. I have also tried to roll back to previous commits and still getting the same error. This is obviously a pretty major problem if I cannot run and compile the project, thanks!</p> <ul dir="auto"> <li>[ x] I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">Will provide a live reproducible link on codesandbox.io if not sufficient information has been provided here.</p> <h2 dir="auto">Context</h2> <p dir="auto">Just trying to run and compile the project.</p> <h2 dir="auto">Your Environment</h2> <p dir="auto">Mac / Node</p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>React</td> <td>"^15.6.1"</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
0
<p dir="auto">I believe the following behavior of <code class="notranslate">which()</code> is not intended:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; f(a::Int, b) = a+b f (generic function with 1 method) julia&gt; f(a, b::Int) = a-b f (generic function with 2 methods) julia&gt; f(2,2) # to highlight that there is an ambiguity ERROR: MethodError: f(::Int64, ::Int64) is ambiguous. Candidates: f(a, b::Int64) in Main at REPL[2]:1 f(a::Int64, b) in Main at REPL[1]:1 Possible fix, define f(::Int64, ::Int64) julia&gt; which(f, Tuple{Int,Int}) ERROR: no method found for the specified argument types Stacktrace: [1] which(::Any, ::Any) at ./reflection.jl:823"><pre class="notranslate"><code class="notranslate">julia&gt; f(a::Int, b) = a+b f (generic function with 1 method) julia&gt; f(a, b::Int) = a-b f (generic function with 2 methods) julia&gt; f(2,2) # to highlight that there is an ambiguity ERROR: MethodError: f(::Int64, ::Int64) is ambiguous. Candidates: f(a, b::Int64) in Main at REPL[2]:1 f(a::Int64, b) in Main at REPL[1]:1 Possible fix, define f(::Int64, ::Int64) julia&gt; which(f, Tuple{Int,Int}) ERROR: no method found for the specified argument types Stacktrace: [1] which(::Any, ::Any) at ./reflection.jl:823 </code></pre></div> <p dir="auto">Instead of saying that there is "no method found", <code class="notranslate">which()</code> should give an error indicating that there is an ambiguity. Looking at the source </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/JuliaLang/julia/blob/2b983d41f064c39c0b73f6c7695cc13e0de45c03/base/reflection.jl#L878">julia/base/reflection.jl</a> </p> <p class="mb-0 color-fg-muted"> Line 878 in <a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/2b983d41f064c39c0b73f6c7695cc13e0de45c03">2b983d4</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L878" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="878"></td> <td id="LC878" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>method match is ambiguous for the specified argument types<span class="pl-pds">"</span></span>) </td> </tr> </tbody></table> </div> </div> , it looks like an ambiguity error was intended. Blame shows that none of this code has changed for a while.<p></p> <p dir="auto">I think it's worth fixing or changing the error to say that it might be an ambiguity because it was quite confusing to me when debugging.</p> <p dir="auto">Sorry if this is a duplicate issue - it's not too easy to search for issues involving "which".</p> <p dir="auto">Also, my <code class="notranslate">versioninfo()</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 0.6.0 Commit 9036443 (2017-06-19 13:05 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.9.1 (ORCJIT, sandybridge)"><pre class="notranslate"><code class="notranslate">Julia Version 0.6.0 Commit 9036443 (2017-06-19 13:05 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.9.1 (ORCJIT, sandybridge) </code></pre></div>
<p dir="auto">As pointed out here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="80269034" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/11430" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/11430/hovercard?comment_id=105062641&amp;comment_type=issue_comment" href="https://github.com/JuliaLang/julia/pull/11430#issuecomment-105062641">#11430 (comment)</a>, here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="80269034" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/11430" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/11430/hovercard?comment_id=105281450&amp;comment_type=issue_comment" href="https://github.com/JuliaLang/julia/pull/11430#issuecomment-105281450">#11430 (comment)</a> and in some of the comments on that issue, the naming convention for <code class="notranslate">Ref</code> and <code class="notranslate">RefValue</code> is probably not the best and causes some confusion.</p> <p dir="auto">I'd like to propose the following changes</p> <ul dir="auto"> <li><code class="notranslate">Ref</code> -&gt; <code class="notranslate">CRef</code>, <code class="notranslate">ARef</code> (A for Abstract) or <code class="notranslate">ByRef</code> (proposed by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JeffBezanson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JeffBezanson">@JeffBezanson</a>)</li> <li><code class="notranslate">RefValue</code> -&gt; <code class="notranslate">Ref</code> (and export this)</li> </ul> <p dir="auto">and leaving <code class="notranslate">RefArray</code> as it is.</p> <p dir="auto">As pointed out by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vtjnash/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vtjnash">@vtjnash</a>, most of the time what people need is the abstract version, but for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="80269034" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/11430" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/11430/hovercard" href="https://github.com/JuliaLang/julia/pull/11430">#11430</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183249080" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/18965" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/18965/hovercard" href="https://github.com/JuliaLang/julia/pull/18965">#18965</a> having <code class="notranslate">Ref</code> to mean <code class="notranslate">RefValue</code> would be more convenient.</p> <p dir="auto">Also, quoting <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/StefanKarpinski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/StefanKarpinski">@StefanKarpinski</a></p> <blockquote> <p dir="auto">I think that simple concrete names should be used for simple concrete things; programming correctly to an abstraction requires awareness and care, so having a name that reminds you of that is a good thing.</p> </blockquote>
0
<h3 dir="auto">Description</h3> <p dir="auto">Using <code class="notranslate">spider.crawler.engine.close_spide()</code> in pipeline will throw an exception</p> <h3 dir="auto">Steps to Reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class IPVerification: @classmethod def from_settings(cls, settings): return cls(settings.get('REDIS_URL')) def __init__(self, redis_url): connect_pool = ConnectionPool.from_url(redis_url) self.redis = Redis(connection_pool=connect_pool, max_connections=128) self.count = 0 def process_item(self, item, spider: Spider): ipv4 = item.get('ipv4') port = item.get('port') if ipv4 is None or port is None: return fingerprint = md5(ipv4.encode() + port.encode()).hexdigest() if self.redis.sadd('Item', fingerprint): return item if self.count &gt; 10: spider.crawler.engine.close_spider(spider, 'Multiple data repetitions') else: self.count += 1 raise DropItem('Data duplication')"><pre class="notranslate"><code class="notranslate">class IPVerification: @classmethod def from_settings(cls, settings): return cls(settings.get('REDIS_URL')) def __init__(self, redis_url): connect_pool = ConnectionPool.from_url(redis_url) self.redis = Redis(connection_pool=connect_pool, max_connections=128) self.count = 0 def process_item(self, item, spider: Spider): ipv4 = item.get('ipv4') port = item.get('port') if ipv4 is None or port is None: return fingerprint = md5(ipv4.encode() + port.encode()).hexdigest() if self.redis.sadd('Item', fingerprint): return item if self.count &gt; 10: spider.crawler.engine.close_spider(spider, 'Multiple data repetitions') else: self.count += 1 raise DropItem('Data duplication') </code></pre></div> <p dir="auto"><strong>Reproduces how often</strong>: 100%</p> <h3 dir="auto">Versions</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Scrapy : 2.6.1 lxml : 4.6.4.0 libxml2 : 2.9.5 cssselect : 1.1.0 parsel : 1.6.0 w3lib : 1.22.0 Twisted : 22.2.0 Python : 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] pyOpenSSL : 22.0.0 (OpenSSL 1.1.1m 14 Dec 2021) cryptography : 36.0.1 Platform : Windows-10-10.0.22000-SP0 "><pre class="notranslate"><code class="notranslate">Scrapy : 2.6.1 lxml : 4.6.4.0 libxml2 : 2.9.5 cssselect : 1.1.0 parsel : 1.6.0 w3lib : 1.22.0 Twisted : 22.2.0 Python : 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] pyOpenSSL : 22.0.0 (OpenSSL 1.1.1m 14 Dec 2021) cryptography : 36.0.1 Platform : Windows-10-10.0.22000-SP0 </code></pre></div> <h3 dir="auto">Error</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 'start_time': datetime.datetime(2022, 4, 6, 1, 52, 16, 182409)} 2022-04-06 09:52:17 [scrapy.core.engine] INFO: Spider closed (Multiple data repetitions) 2022-04-06 09:52:17 [scrapy.core.engine] INFO: Error while scheduling new request Traceback (most recent call last): File &quot;D:\Program Files\Python\Python310\lib\site-packages\twisted\internet\task.py&quot;, line 526, in _oneWorkUnit result = next(self._iterator) StopIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;D:\Program Files\Python\Python310\lib\site-packages\twisted\internet\defer.py&quot;, line 857, in _runCallbacks current.result = callback( # type: ignore[misc] File &quot;D:\Program Files\Python\Python310\lib\site-packages\scrapy\core\engine.py&quot;, line 187, in &lt;lambda&gt; d.addBoth(lambda _: self.slot.nextcall.schedule()) AttributeError: 'NoneType' object has no attribute 'nextcall' Process finished with exit code 0"><pre class="notranslate"><code class="notranslate"> 'start_time': datetime.datetime(2022, 4, 6, 1, 52, 16, 182409)} 2022-04-06 09:52:17 [scrapy.core.engine] INFO: Spider closed (Multiple data repetitions) 2022-04-06 09:52:17 [scrapy.core.engine] INFO: Error while scheduling new request Traceback (most recent call last): File "D:\Program Files\Python\Python310\lib\site-packages\twisted\internet\task.py", line 526, in _oneWorkUnit result = next(self._iterator) StopIteration During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Program Files\Python\Python310\lib\site-packages\twisted\internet\defer.py", line 857, in _runCallbacks current.result = callback( # type: ignore[misc] File "D:\Program Files\Python\Python310\lib\site-packages\scrapy\core\engine.py", line 187, in &lt;lambda&gt; d.addBoth(lambda _: self.slot.nextcall.schedule()) AttributeError: 'NoneType' object has no attribute 'nextcall' Process finished with exit code 0 </code></pre></div>
<p dir="auto">Sometimes pages depend on certain HTTP request headers sent, for rendering the expected result, and it's a manual and tedious job to find out which headers those are.</p> <p dir="auto">So, here's an idea for automating this probing mechanism: create a new scrapy command <code class="notranslate">probe</code> which takes a url as argument and a text to look for.</p> <p dir="auto">Scrapy then tries several combinations of HTTP headers (user-agent, accept, etc) and return a set that works (where works mean that the text passed is found).</p> <p dir="auto">Here's a real world example to illustrate:</p> <p dir="auto"><a href="http://www.storage-cabinets-online.com/IVG2/N/ProductID-118021.htm" rel="nofollow">http://www.storage-cabinets-online.com/IVG2/N/ProductID-118021.htm</a></p> <p dir="auto">The page should contain a string <code class="notranslate">'var sFeatures'</code>, but that string is not returned with the default Scrapy HTTP request headers. So we run scrapy probe on it:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ scrapy probe http://www.storage-cabinets-online.com/IVG2/N/ProductID-118021.htm 'var sFeatures' Found set of working headers: {'Host': 'www.storage-cabinets-online.com', 'User-Agent': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'en-us,en;q=0.5', 'Accept-Encoding': 'gzip,deflate', 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'Keep-Alive': '115'}"><pre class="notranslate">$ scrapy probe http://www.storage-cabinets-online.com/IVG2/N/ProductID-118021.htm <span class="pl-s"><span class="pl-pds">'</span>var sFeatures<span class="pl-pds">'</span></span> Found <span class="pl-c1">set</span> of working headers: {<span class="pl-s"><span class="pl-pds">'</span>Host<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>www.storage-cabinets-online.com<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>User-Agent<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid)</span> <span class="pl-s">Firefox/3.6.10<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>Accept<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>Accept-Language<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>en-us,en;q=0.5<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>Accept-Encoding<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>gzip,deflate<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>Accept-Charset<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>ISO-8859-1,utf-8;q=0.7,*;q=0.7<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>Keep-Alive<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>115<span class="pl-pds">'</span></span>}</pre></div> <p dir="auto">The Scrapy probe command would try a different list of well known user-agents, along with Accept headers.</p>
0
<p dir="auto">Unit tests on our CI have apparently been failing for 2 weeks and no one noticed (oops!)...</p> <p dir="auto">The PR that seems to have caused the failures is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107627860" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/14328" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/14328/hovercard" href="https://github.com/kubernetes/kubernetes/pull/14328">#14328</a>.</p> <p dir="auto">The failing test is <code class="notranslate">k8s.io/kubernetes/pkg/volume/flocker</code> - <code class="notranslate">TestSetUpAtInternal</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[16:15:04][Step 4/5] --- FAIL: TestSetUpAtInternal (0.00s) [16:15:04][Step 4/5] assertions.go:202: [16:15:04][Step 4/5] [16:15:04][Step 4/5] Error Trace: plugin_test.go:208 [16:15:04][Step 4/5] [16:15:04][Step 4/5] Error: Not equal: &quot;expected-to-be-set-properly&quot; (expected) [16:15:04][Step 4/5] != &quot;&quot; (actual) [16:15:04][Step 4/5] [16:15:04][Step 4/5] FAIL [16:15:04][Step 4/5] FAIL k8s.io/kubernetes/pkg/volume/flocker 0.014s"><pre class="notranslate"><code class="notranslate">[16:15:04][Step 4/5] --- FAIL: TestSetUpAtInternal (0.00s) [16:15:04][Step 4/5] assertions.go:202: [16:15:04][Step 4/5] [16:15:04][Step 4/5] Error Trace: plugin_test.go:208 [16:15:04][Step 4/5] [16:15:04][Step 4/5] Error: Not equal: "expected-to-be-set-properly" (expected) [16:15:04][Step 4/5] != "" (actual) [16:15:04][Step 4/5] [16:15:04][Step 4/5] FAIL [16:15:04][Step 4/5] FAIL k8s.io/kubernetes/pkg/volume/flocker 0.014s </code></pre></div> <p dir="auto">Full Test Log: <a href="https://teamcity.mesosphere.io/viewLog.html?buildId=54217&amp;buildTypeId=Oss_KubernetesMesos_2UnitTests&amp;tab=buildLog&amp;guest=1#_focus=866" rel="nofollow">https://teamcity.mesosphere.io/viewLog.html?buildId=54217&amp;buildTypeId=Oss_KubernetesMesos_2UnitTests&amp;tab=buildLog&amp;guest=1#_focus=866</a></p> <p dir="auto">I'm not sure why this is failing on our CI and not on shippable. Has anyone else seen something similar?</p> <p dir="auto"><strong>That test only seems to fail on the second run through with <code class="notranslate">etcdPrefix: kubernetes.io/registry</code>.</strong></p> <p dir="auto">Our unit tests run in a container built specifically for testing k8s-mesos:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cluster/mesos/docker/test/build.sh $ docker run --rm \ -v &quot;$(pwd):/go/src/github.com/GoogleCloudPlatform/kubernetes&quot; \ -v &quot;/var/run/docker.sock:/var/run/docker.sock&quot; \ mesosphere/kubernetes-mesos-test \ -cexu &quot;\ cd /go/src/github.com/GoogleCloudPlatform/kubernetes &amp;&amp; \ make clean &amp;&amp; \ export KUBERNETES_CONTRIB=mesos &amp;&amp; \ make test &quot;"><pre class="notranslate"><code class="notranslate">$ cluster/mesos/docker/test/build.sh $ docker run --rm \ -v "$(pwd):/go/src/github.com/GoogleCloudPlatform/kubernetes" \ -v "/var/run/docker.sock:/var/run/docker.sock" \ mesosphere/kubernetes-mesos-test \ -cexu "\ cd /go/src/github.com/GoogleCloudPlatform/kubernetes &amp;&amp; \ make clean &amp;&amp; \ export KUBERNETES_CONTRIB=mesos &amp;&amp; \ make test " </code></pre></div> <p dir="auto">The Dockerfile for the env: <a href="https://github.com/kubernetes/kubernetes/blob/master/cluster/mesos/docker/test/Dockerfile">https://github.com/kubernetes/kubernetes/blob/master/cluster/mesos/docker/test/Dockerfile</a></p> <p dir="auto">Is anyone else able to repro with the above env or their own?</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): close channel multiple times</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): master</p> <p dir="auto"><strong>Environment</strong>: None</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: None</li> <li><strong>OS</strong> (e.g. from /etc/os-release): None</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): None</li> <li><strong>Install tools</strong>: None</li> <li><strong>Others</strong>: None</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> Panic maybe happens, since close the same channel multiple times.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p> <p dir="auto">in the file pkg/proxy/config/config.go:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="func (c *ServiceConfig) Channel(source string) chan ServiceUpdate { ch := c.mux.Channel(source) serviceCh := make(chan ServiceUpdate) go func() { for update := range serviceCh { ch &lt;- update } close(ch) }() return serviceCh }"><pre class="notranslate"><code class="notranslate">func (c *ServiceConfig) Channel(source string) chan ServiceUpdate { ch := c.mux.Channel(source) serviceCh := make(chan ServiceUpdate) go func() { for update := range serviceCh { ch &lt;- update } close(ch) }() return serviceCh } </code></pre></div> <p dir="auto">The function Channel is allowed to be invoked many times with the same source,<br> for example,<br> c.Channel("one")<br> ...<br> c.Channel("one"),<br> then, it creates only one channel ch, that is, c.mux.sources["one"], while close(ch) will be invoked many times.</p> <p dir="auto">So I think it is a bug, although the close(ch) may not be run for ever.</p> <p dir="auto">I think discard the code "close(ch)" will be better.</p>
0
<p dir="auto">At first I explain you what I would like to do with tsserver. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dbaeumer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dbaeumer">@dbaeumer</a> I think you could be interested with this issue for VSCode and Angular2 support.</p> <p dir="auto">Take the sample <a href="https://angular.io/docs/ts/latest/quickstart.html" rel="nofollow">https://angular.io/docs/ts/latest/quickstart.html</a> with Angular2 &amp; TypeScript. There is a ts file:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {Component} from 'angular2/angular2'; @Component({ selector: 'my-app' }) class AppComponent { }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">Component</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'angular2/angular2'</span><span class="pl-kos">;</span> @<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">'my-app'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-v">AppComponent</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">And the HTML:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;my-app&gt;&lt;/my-app&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">my-app</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">my-app</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">The HTML contains <code class="notranslate">&lt;my-app&gt;</code> which is binded with decorator @Component/selector property. My goal is to provide completion, navigation inside HTML (Eclipse) editor for <code class="notranslate">&lt;my-app&gt;</code>. In other words, I need to collect the whole @Component/selector node of the project to use it in a HTML editor. I tell me how I could do that:</p> <ul dir="auto"> <li>with TypeScript language service? Develop a walk kind which loop for each <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/component/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/component">@component</a> decorators? If yes, could you give me some info please to do that.</li> <li>after that I will need to provide this new command to tsserver. So it should be very cool if tsserevr could provide the capability to contribute with custom tsserver command (without compiling a custom tsserver).</li> </ul> <p dir="auto">With <a href="http://ternjs.net/doc/demo/#simple" rel="nofollow">ternjs</a> it's possible to write a tern plugin which is able to do that (collect @Component/selector) because:</p> <ul dir="auto"> <li>ternjs gives the capability to write a tern plugin where you can add your custom function when AST is walked (to help inference engine to create the well type, or collect modules like I have done with <a href="https://github.com/angelozerr/angularjs-eclipse/wiki/Angular-Explorer-View">Angular Explorer </a>.</li> <li>ternjs load tern plugin which follow a name pattern (tern-xxxx) from the node_modules to load it. See <a href="https://github.com/ternjs/tern/blob/master/bin/tern#L120">https://github.com/ternjs/tern/blob/master/bin/tern#L120</a></li> </ul> <p dir="auto">tsserver could do the same thing by searching inside node_modules with a pattern name like <code class="notranslate">tsserver-xxxx</code> to provide a custom command. After that any editor will be able to consume it just by installing with `npm installl tsserver-angular2'</p> <p dir="auto">Hope you will understand my issue.</p>
<p dir="auto">Say I'm writing a declaration file for an external library that both exposes a global and supports CommonJS. According to the handbook I would write that like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module zoo { function open(): void; } declare module &quot;zoo&quot; { export = zoo; }"><pre class="notranslate"><code class="notranslate">module zoo { function open(): void; } declare module "zoo" { export = zoo; } </code></pre></div> <p dir="auto">And then the usage would be this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Either import x = require('zoo'); x.open(); // or zoo.open();"><pre class="notranslate"><code class="notranslate">// Either import x = require('zoo'); x.open(); // or zoo.open(); </code></pre></div> <p dir="auto">The problem is that while the above would compile when using external modules, at run-time it would fail since the "zoo" identifier doesn't actually exist. Is there any way to write declaration files such that you can split them into two separate files (one for internal, one for external) so that you only reference the one you intend on using but not actually duplicate the definitions in those files? For example</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// zoo.d.ts declare module &quot;zoo&quot; { export = zoo; } // zoo-internal.d.ts /// &lt;reference path=&quot;zoo.d.ts&quot; /&gt; module zoo { // this doesn't work but illustrates what I'm trying to accomplish import zoo = require('zoo') export = zoo; }"><pre class="notranslate"><code class="notranslate">// zoo.d.ts declare module "zoo" { export = zoo; } // zoo-internal.d.ts /// &lt;reference path="zoo.d.ts" /&gt; module zoo { // this doesn't work but illustrates what I'm trying to accomplish import zoo = require('zoo') export = zoo; } </code></pre></div> <p dir="auto">Or any thoughts on another way to accomplish the same goals in a single file?</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=quaff" rel="nofollow">Yanming Zhou</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3559?redirect=false" rel="nofollow">SPR-3559</a></strong> and commented</p> <p dir="auto">public String parseStringValue(String placeholder)</p> <p dir="auto">developer can reuse placeholder programmatically not only in xml configuration,for example,when use spring-javaconfig</p> <p dir="auto"><code class="notranslate">@Configuration</code>(defaultAutowire = Autowire.BY_NAME)<br> public abstract class Config {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@ExternalBean public abstract PropertyPlaceholderConfigurer propertyPlaceholderConfigurer(); @Bean(destroyMethodName = &quot;close&quot;) public DataSource dataSource() { BasicDataSource ds = new BasicDataSource(); ds.setUrl(propertyPlaceholderConfigurer().parseStringValue(&quot;${jdbc.url}&quot;))); ds.setUsername(propertyPlaceholderConfigurer().parseStringValue(&quot;${jdbc.username}&quot;)); ds.setPassword(propertyPlaceholderConfigurer().parseStringValue(&quot;${jdbc.password}&quot;)); ds.setDriverClassName(propertyPlaceholderConfigurer().parseStringValue(&quot;${jdbc.driverClassName}&quot;)); ds.setPoolPreparedStatements(true); return ds; }"><pre class="notranslate"><code class="notranslate">@ExternalBean public abstract PropertyPlaceholderConfigurer propertyPlaceholderConfigurer(); @Bean(destroyMethodName = "close") public DataSource dataSource() { BasicDataSource ds = new BasicDataSource(); ds.setUrl(propertyPlaceholderConfigurer().parseStringValue("${jdbc.url}"))); ds.setUsername(propertyPlaceholderConfigurer().parseStringValue("${jdbc.username}")); ds.setPassword(propertyPlaceholderConfigurer().parseStringValue("${jdbc.password}")); ds.setDriverClassName(propertyPlaceholderConfigurer().parseStringValue("${jdbc.driverClassName}")); ds.setPoolPreparedStatements(true); return ds; } </code></pre></div> <p dir="auto">}</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.1 M2</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/12642/PropertyPlaceholderConfigurer.java" rel="nofollow">PropertyPlaceholderConfigurer.java</a> (<em>17.12 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/12643/PropertyResourceConfigurer.java" rel="nofollow">PropertyResourceConfigurer.java</a> (<em>4.85 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398104955" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11823" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11823/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11823">#11823</a> Need a way to ask PropertyPlaceholderConfigurer to resolve a placeholder string (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=vmonier" rel="nofollow">Vincent MONIER</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8884?redirect=false" rel="nofollow">SPR-8884</a></strong> and commented</p> <p dir="auto">For testing purpose, I use EmbeddedDatabase.</p> <p dir="auto">My database schema contains HSQLDB PMS stored procedures.</p> <p dir="auto">like this one:</p> <p dir="auto">----------- content of procedure.sql (a valid HSQLDB PMS stored procedure) ---------------------<br> CREATE PROCEDURE get_customer(IN id INT, OUT firstname VARCHAR(50), OUT lastname VARCHAR(50))<br> READS SQL DATA<br> BEGIN ATOMIC<br> SELECT first_name, last_name INTO firstname, lastname FROM customers WHERE cust_id = id;<br> END</p> <p dir="auto">When I create database instance:</p> <p dir="auto">EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();<br> database = builder.setType(EmbeddedDatabaseType.HSQL).addScript("classpath:/META-INF/sql/schema.sql")<br> .addScript("classpath:/META-INF/sql/procedure.sql")<br> .build();</p> <p dir="auto">I get this exception:<br> "an error occurs during parsing of procedure.sql<br> org.hsqldb.HsqlException: unexpected end of statement: required: ; "</p> <p dir="auto">The problem is not in HSQLDB part but is located in :<br> org.springframework.jdbc.datasource.init.ResourceDatabasePopulator#splitSqlScript(String script, char delim, List&lt;String&gt; statements)<br> it uses ';' character as a delimiter for statements and therefore creates 2 statements, one for [CREATE PROCEDURE .... cust_id = id] and the second for [END].<br> The first statement is rejected by HSQLDB because of a missing ';' character in BEGIN block.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.6</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398115368" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13459" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13459/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13459">#13459</a> Support per-script statement separator configuration for SQL scripts (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto"><strong>Important note:</strong> the development of Keras is currently taking place at <a href="https://github.com/tensorflow/tensorflow"><code class="notranslate">github.com/tensorflow/tensorflow</code></a>. Please file your bug report by creating a new issue in the TensorFlow repository.</p> <p dir="auto">Please note that multi-backend Keras development has been discontinued. Do not report issues about multi-backend Keras (Keras 2.3.1 and lower), only report issues about the TensorFlow implementation of Keras (tf.keras).<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22041656/93724388-6ac34800-fb5b-11ea-8435-ff2489526a33.png"><img width="1535" alt="Screen Shot 2020-09-20 at 3 53 01 PM" src="https://user-images.githubusercontent.com/22041656/93724388-6ac34800-fb5b-11ea-8435-ff2489526a33.png" style="max-width: 100%;"></a></p> <p dir="auto">How can I convert (None, 224,224,1) to (None,224,224,3) shape?</p>
<p dir="auto">I train a Keras model and want to perform some matrix operation on the output (e.g. numpy.matmul()). However, each time I try to use any of numpy functions (like, matmul(), dot(), concatenate()), the IPython kernel dies and restarts. I'm using Spyder IDE on Mac OS X, both Keras, Tensorflow, and numpy are up-to-date.<br> Please help me identify the culprit!</p> <p dir="auto">Additional details:</p> <ul dir="auto"> <li>The problem occurs even if I use numpy functions with newly generated data, instead of the model outputs (see script below)</li> <li>Numpy functions do not raise any errors if used before the model training</li> <li>Using tensorflow.matmul instead of numpy.matmul helps to avoid the problem, but it is not a solution as in the end I need to use more than one numpy function</li> </ul> <p dir="auto">Here's the script I'm running:<br> <code class="notranslate">from keras.layers import Input, Dense, Conv2D, MaxPooling2D,Flatten</code><br> <code class="notranslate">from keras.models import Model</code><br> <code class="notranslate">import numpy as np</code><br> <code class="notranslate">import tensorflow as tf</code><br> <code class="notranslate">import keras.utils as kutils</code><br> <code class="notranslate">n_y = 10</code><br> <code class="notranslate">mnist = tf.keras.datasets.mnist</code><br> <code class="notranslate">(X_train, y_train), (X_test, y_test) = mnist.load_data()</code><br> <code class="notranslate">y_train = kutils.to_categorical(y_train, n_y)</code><br> <code class="notranslate">y_test = kutils.to_categorical(y_test, n_y)</code><br> <code class="notranslate">X_train = X_train.reshape(X_train.shape[0], 28, 28,1)</code><br> <code class="notranslate">X_test = X_test.reshape(X_test.shape[0], 28, 28,1)</code><br> <code class="notranslate">channels = 512</code><br> <code class="notranslate">X = Input(shape=(28,28,1)) # size of MNIST images</code><br> <code class="notranslate">y = Input(shape=(n_y,))</code><br> <code class="notranslate">conv1 = Conv2D(32, (3, 3), activation='relu')(X)</code><br> <code class="notranslate">pool1 = MaxPooling2D((2, 2), strides=(2, 2), name='block1_pool')(conv1)</code><br> <code class="notranslate">flatten = Flatten()(pool1)</code><br> <code class="notranslate">h_1 = Dense(64, activation='relu')(flatten)</code><br> <code class="notranslate">h_2 = Dense(10, activation='softmax')(h_1)</code><br> <code class="notranslate">model = Model(inputs=[X,y], outputs=h_2)</code><br> <code class="notranslate">model.summary()</code><br> <code class="notranslate">model.compile(loss='mean_squared_error', optimizer='adam',metrics=['accuracy'])</code><br> <code class="notranslate">model.fit([X_train, y_train],y_train, batch_size=channels, epochs=1, validation_split=0.1)</code><br> <code class="notranslate">np.matmul(np.array([[1, 0],[0, 1]],dtype=np.float64),np.array([[2, 3],[4, 6]],dtype=np.float64))</code></p>
0
<h4 dir="auto">Code Sample</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd df = pd.DataFrame([&quot;x&quot;, &quot;y&quot;, &quot;z&quot;], dtype='category') df.replace({&quot;x&quot;: &quot;y&quot;})"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([<span class="pl-s">"x"</span>, <span class="pl-s">"y"</span>, <span class="pl-s">"z"</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'category'</span>) <span class="pl-s1">df</span>.<span class="pl-en">replace</span>({<span class="pl-s">"x"</span>: <span class="pl-s">"y"</span>})</pre></div> <h4 dir="auto">Problem description</h4> <h5 dir="auto">Current output</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/.local/lib/python3.6/site-packages/pandas/core/internals.py in __init__(self, values, placement, ndim, fastpath) 109 ndim = values.ndim 110 elif values.ndim != ndim: --&gt; 111 raise ValueError('Wrong number of dimensions') 112 self.ndim = ndim 113 ValueError: Wrong number of dimensions"><pre class="notranslate"><code class="notranslate">~/.local/lib/python3.6/site-packages/pandas/core/internals.py in __init__(self, values, placement, ndim, fastpath) 109 ndim = values.ndim 110 elif values.ndim != ndim: --&gt; 111 raise ValueError('Wrong number of dimensions') 112 self.ndim = ndim 113 ValueError: Wrong number of dimensions </code></pre></div> <h5 dir="auto">Expected output</h5> <p dir="auto">The following DataFrame:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 0 0 y 1 y 2 z"><pre class="notranslate"><code class="notranslate"> 0 0 y 1 y 2 z </code></pre></div> <h5 dir="auto">Explanation</h5> <p dir="auto">At the very least, the error message is confusing. But I think this is a bug in the <code class="notranslate">replace</code> method, that should just work with categorical data.</p> <p dir="auto">This problem has confused other people before: <a href="https://stackoverflow.com/questions/48807344/how-to-replace-values-in-multiple-categoricals-in-a-pandas-dataframe" rel="nofollow">https://stackoverflow.com/questions/48807344/how-to-replace-values-in-multiple-categoricals-in-a-pandas-dataframe</a></p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <p dir="auto">commit: None<br> python: 3.6.5.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.17.3-200.fc28.x86_64<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_GB.UTF-8<br> LOCALE: en_GB.UTF-8</p> <p dir="auto">pandas: 0.22.0<br> pytest: 3.3.2<br> pip: 9.0.3<br> setuptools: 39.2.0<br> Cython: 0.27.3<br> numpy: 1.14.1<br> scipy: 0.19.1<br> pyarrow: None<br> xarray: None<br> IPython: 6.4.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.1<br> pytz: 2018.3<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: 2.0.2<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 0.9999999<br> sqlalchemy: 1.2.7<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.10<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </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="In [2]: pd.Series([1, 2, 3, 2], dtype='category').replace(2, 1) # good Out[2]: 0 1 1 1 2 3 3 1 dtype: category Categories (3, int64): [1, 2, 3] In [3]: pd.Series([1, 2, 3, 2], dtype='category').replace(2, 15) # bad Out[3]: 0 1 1 15 2 3 3 15 dtype: int64 "><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">2</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>, <span class="pl-c1">2</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'category'</span>).<span class="pl-en">replace</span>(<span class="pl-c1">2</span>, <span class="pl-c1">1</span>) <span class="pl-c"># good</span> <span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">category</span> <span class="pl-v">Categories</span> (<span class="pl-c1">3</span>, <span class="pl-s1">int64</span>): [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>] <span class="pl-v">In</span> [<span class="pl-c1">3</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>, <span class="pl-c1">2</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'category'</span>).<span class="pl-en">replace</span>(<span class="pl-c1">2</span>, <span class="pl-c1">15</span>) <span class="pl-c"># bad</span> <span class="pl-v">Out</span>[<span class="pl-c1">3</span>]: <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">15</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">3</span> <span class="pl-c1">15</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">int64</span> </pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">I think <code class="notranslate">replace()</code> called with unknown category should either raise an error, or just replace the element in the list of categories.</p> <p dir="auto">The current behavior is even more annoying if you do</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [4]: pd.Series([1, 2, np.nan, 2], dtype='category').replace(np.nan, 15) Out[4]: 0 1.0 1 2.0 2 15.0 3 2.0 dtype: float64"><pre class="notranslate"><code class="notranslate">In [4]: pd.Series([1, 2, np.nan, 2], dtype='category').replace(np.nan, 15) Out[4]: 0 1.0 1 2.0 2 15.0 3 2.0 dtype: float64 </code></pre></div> <p dir="auto">because precisely the operation of removing NaNs from integers makes then floats! Notice, for comparison, that <code class="notranslate">pd.Series([1, 2, np.nan, 2], dtype='category').fillna(15)</code> raises a <code class="notranslate">ValueError</code>.</p> <p dir="auto">This is related to (the discussion about) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="272476776" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18185" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/18185/hovercard" href="https://github.com/pandas-dev/pandas/issues/18185">#18185</a> .</p> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: pd.Series([1, 2, 3, 2], dtype='category').replace(2, 15) Out[3]: 0 1 1 15 2 3 3 15 dtype: category Categories (3, int64): [1, 3, 15]"><pre class="notranslate"><code class="notranslate">In [3]: pd.Series([1, 2, 3, 2], dtype='category').replace(2, 15) Out[3]: 0 1 1 15 2 3 3 15 dtype: category Categories (3, int64): [1, 3, 15] </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/9e3ad63cdb030c6b369d9d822469bb968e2d1804/hovercard" href="https://github.com/pandas-dev/pandas/commit/9e3ad63cdb030c6b369d9d822469bb968e2d1804"><tt>9e3ad63</tt></a><br> python: 3.5.3.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.9.0-3-amd64<br> machine: x86_64<br> processor:<br> byteorder: little<br> LC_ALL: None<br> LANG: it_IT.UTF-8<br> LOCALE: it_IT.UTF-8</p> <p dir="auto">pandas: 0.22.0.dev0+114.g9e3ad63cd<br> pytest: 3.2.3<br> pip: 9.0.1<br> setuptools: 36.7.0<br> Cython: 0.25.2<br> numpy: 1.12.1<br> scipy: 0.19.0<br> pyarrow: None<br> xarray: None<br> IPython: 6.2.1<br> sphinx: 1.5.6<br> patsy: 0.4.1<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.0dev<br> tables: 3.3.0<br> numexpr: 2.6.1<br> feather: 0.3.1<br> matplotlib: 2.0.0<br> openpyxl: None<br> xlrd: 1.0.0<br> xlwt: 1.1.2<br> xlsxwriter: 0.9.6<br> lxml: None<br> bs4: 4.5.3<br> html5lib: 0.999999999<br> sqlalchemy: 1.0.15<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.10<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: 0.2.1</p> </details>
1
<p dir="auto">I created the app by npx create-app order //not this problem Mismatching Versions of React and React DOM and not this Duplicate React</p> <p dir="auto">here is my code<br> First,I created a hook usePre.js which is copied from <a href="https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state" rel="nofollow">https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state</a><br> <code class="notranslate">import React,{useRef,useEffect} from "react"; export default function useTest(value) { const ref=useRef(); useEffect(()=&gt;{ ref.current=value; }); return ref.current; }</code><br> then I fixed the App.js to<br> <code class="notranslate">import React from "react"; import useTest from "./useTest"; function App() { const a = useTest(1); return (&lt;div&gt;test&lt;/div&gt;); } export default App;</code></p> <p dir="auto">and fixed the index.js<br> <code class="notranslate">import ReactDOM from 'react-dom'; import App from './App'; const app = App(); ReactDOM.render( app, document.getElementById('root') );</code><br> then the error of Invalid hook call happened<br> I don't think I have broken the hooks rules<br> no call Hooks in class components.<br> no call in event handlers.<br> no call Hooks inside functions passed to useMemo, useReducer, or useEffect</p> <p dir="auto">I just use it in the root app?maybe it's the new rule?</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">A bit of both?</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">The old context API involved components that provided and consumed context using a shared string key. In other words, the only requirement for communication between components providing or consuming context was that the string key used was the same. This had the side effect of allowing easy communication via React context across packages (i.e. separate node_modules using the same shared context). This might be one of two forms:</p> <ol dir="auto"> <li>Entirely different components (using the same context key), perhaps spread around the source code or even in node_modules</li> <li>One or more packages importing the context providing/consuming components of another (a usage pattern more in line with the <code class="notranslate">React.createContext</code> abstraction).</li> </ol> <p dir="auto">The new <code class="notranslate">React.createContext</code> API works much differently. Instead, for communication to work correctly, the consumer and provider must always come from the exact same function call. Unlike the old API, this means if the provider or consumer is imported from another package, there is now an implicit singleton, otherwise there will be separate <code class="notranslate">React.createContext</code> instances.</p> <p dir="auto">I think it is intuitive and reasonable that "form 1" does not work with the new API, but less so with "form 2".</p> <p dir="auto">What is the best way of handling this? So far, the best approach I've thought of is using peer dependencies to enforce the package calling <code class="notranslate">React.createContext</code> is never duplicated in node_modules.</p> <p dir="auto">This potential drawback was not brought up in the <a href="https://github.com/reactjs/rfcs/pull/2" data-hovercard-type="pull_request" data-hovercard-url="/reactjs/rfcs/pull/2/hovercard">original React.createContext RFC</a> and I can't seem to find any reference to this limitation in the docs anywhere.</p> <p dir="auto">Is there a recommended way of handling this? Should this be listed in the documentation as a caveat when using <code class="notranslate">React.createContext</code>? Is there a way to make this less error-prone? There didn't seem to be an issue regarding this already so I figured I'd create one and kick off a discussion.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Context communication should work across package boundaries (see above note on old context API)</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">This concerns versions of React with the <code class="notranslate">React.createContext</code> API</p>
0
<p dir="auto"><strong>First of all , Thanks to all contributor</strong></p> <p dir="auto">When i use the lastest version to build my node app, i want to debug my app..</p> <p dir="auto">when i add the launch.json , but not appear in the launch configuration dropdown menu.</p> <p dir="auto">So , i guess need restart the VSCode , Yes... did it...</p> <p dir="auto">Maybe it's a tiny bug...</p> <p dir="auto">thx.</p> <p dir="auto">OS : Windows 10 pro 10586</p>
<p dir="auto">Using VS Code 0.10.1 on Mac OS 10.10.5</p> <ol dir="auto"> <li>create and cd into a new project directory</li> <li>invoke "npm init" and specify "entry point" file (i.e. "main" in package.json)</li> <li>create the entry point file (i.e. index.js)</li> <li>invoke "code ."</li> <li>switch to debug view and click the gear icon or press "run"</li> </ol> <p dir="auto">Expect result: launch.json should include configurations for "Launch index.js" and "Attach" with "type":"node" and other needed parameters.</p> <p dir="auto">Actual result: launch.json configurations is [], an empty array, i.e.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;version&quot;: &quot;0.2.0&quot;, &quot;configurations&quot;: [] }"><pre class="notranslate"><code class="notranslate">{ "version": "0.2.0", "configurations": [] } </code></pre></div>
1
<ul dir="auto"> <li>PowerToys version: 0.21 and 0.22</li> <li>PowerToy Utility:</li> <li>Running PowerToys as Admin: no</li> <li>Windows build number: 19041.508</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4996834/93026219-11b05d00-f60d-11ea-9adf-96d96e1d125f.png"><img src="https://user-images.githubusercontent.com/4996834/93026219-11b05d00-f60d-11ea-9adf-96d96e1d125f.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Allow windows to snap into 2 or more Zones.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">When moving a window to a zone can choose to allow the window to snap to multiple zones that is in the same monitor. For example if you have 3 zones in one monitor you can snap the window to 2 zones by going to space between the 2 zones you want to snap too.</p>
0
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 1.0.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\River\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\River\AppData\Local\atom\app-1.0.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\River\AppData\Local\atom\app-1.0.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.&lt;anonymous&gt; (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\River\AppData\Local\atom\app-1.0.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.&lt;anonymous&gt; (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\River\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\River\AppData\Local\atom\app-1.0.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=" 3x -2:13.5.0 core:backspace (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> 3x -2:13.5.0 core:backspace (atom-text-editor.editor.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="{ &quot;core&quot;: { &quot;themes&quot;: [ &quot;one-dark-ui&quot;, &quot;atom-dark-syntax&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>one-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {} } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User emmet, v2.3.10 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> emmet, v2.<span class="pl-ii">3</span>.<span class="pl-ii">10</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.&lt;anonymous&gt; (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.&lt;anonymous&gt; (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.&lt;anonymous&gt; (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.&lt;anonymous&gt; (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.&lt;anonymous&gt; (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.&lt;anonymous&gt; (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="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: 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">Currently, the meta/main.yml file in roles supports controlling whether duplicate dependencies will be allowed based on the <code class="notranslate">allow_duplicates</code> field at the root level. However, it's possible that some dependencies should not be duplicated, while others within the same file should be.</p> <p dir="auto"><strong>Implementation:</strong> <code class="notranslate">allow_duplicates</code> could remain at the root level, while <code class="notranslate">allow_duplicate</code> could be passed in each dependency block to override the root setting.</p> <p dir="auto"><strong>Use case:</strong> A role to install an application from a git repo depends on nginx and PHP, and so is dependent upon the 'webserver' role. If a server runs more than one application, webserver itself should not be loaded again.</p> <p dir="auto">However, another 'application_release' role may be responsible for following a long series of steps to install an application, such as cloning/updating it from git, running make, copying this release into a new folder, symlinking a 'current_release' folder to the new release, deleting old releases, etc. This role is appropriate for application-specific roles to load more than once, with different variables to control the git repo, version, application name, etc.</p> <p dir="auto">In the above, one would require the 'webserver' dependency to not be duplicated, but the 'appliaction_release' role be duplicated as often as other roles require it.</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">aci_ap but I guess similar for other aci_* modules</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.2.0 config file = /home/dhamann/ddsdnlab.at/ansible_aci_buildout/ansible.cfg configured module search path = [u'/home/dhamann/.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.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] "><pre class="notranslate"><code class="notranslate">ansible 2.4.2.0 config file = /home/dhamann/ddsdnlab.at/ansible_aci_buildout/ansible.cfg configured module search path = [u'/home/dhamann/.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.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DEFAULT_STDOUT_CALLBACK(/home/dhamann/ddsdnlab.at/ansible_aci_buildout/ansible.cfg) = skippy RETRY_FILES_ENABLED(/home/dhamann/ddsdnlab.at/ansible_aci_buildout/ansible.cfg) = False"><pre class="notranslate"><code class="notranslate">DEFAULT_STDOUT_CALLBACK(/home/dhamann/ddsdnlab.at/ansible_aci_buildout/ansible.cfg) = skippy RETRY_FILES_ENABLED(/home/dhamann/ddsdnlab.at/ansible_aci_buildout/ansible.cfg) = False </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">aci_ap module will fail for parameters contianing quotes (double or single)</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: Add Application Network Profile tags: - network - application - anp - test aci_ap: host: &quot;{{ apic_hostname }}&quot; username: &quot;{{ apic_username }}&quot; password: &quot;{{ apic_password }}&quot; validate_certs: false ap: legacy tenant: SDNLAB description: This ANP contains &quot;legacy&quot; networks state: present delegate_to: localhost"><pre class="notranslate"> - <span class="pl-ent">name</span>: <span class="pl-s">Add Application Network Profile</span> <span class="pl-ent">tags</span>: - <span class="pl-s">network</span> - <span class="pl-s">application</span> - <span class="pl-s">anp</span> - <span class="pl-s">test</span> <span class="pl-ent">aci_ap</span>: <span class="pl-ent">host</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ apic_hostname }}<span class="pl-pds">"</span></span> <span class="pl-ent">username</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ apic_username }}<span class="pl-pds">"</span></span> <span class="pl-ent">password</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ apic_password }}<span class="pl-pds">"</span></span> <span class="pl-ent">validate_certs</span>: <span class="pl-c1">false</span> <span class="pl-ent">ap</span>: <span class="pl-s">legacy</span> <span class="pl-ent">tenant</span>: <span class="pl-s">SDNLAB</span> <span class="pl-ent">description</span>: <span class="pl-s">This ANP contains "legacy" networks</span> <span class="pl-ent">state</span>: <span class="pl-s">present</span> <span class="pl-ent">delegate_to</span>: <span class="pl-s">localhost</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Now that I think about it I'm not sure if this is even feasible to fix in Ansible, but since I already started with this bug report, please let me know what you think. It seems to me that APIC does not accept quotes (even properly escaped) in json payload. Should the aci modules therefore remove quotes from strings it passes on to APIC?</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [apic.ddsdnlab.at -&gt; localhost]: FAILED! =&gt; { &quot;changed&quot;: false, &quot;config&quot;: { &quot;fvAp&quot;: { &quot;attributes&quot;: { &quot;descr&quot;: &quot;This ANP contains \&quot;legacy\&quot; networks&quot; } } }, &quot;error_code&quot;: &quot;801&quot;, &quot;error_text&quot;: &quot;property descr of uni/tn-SDNLAB/ap-legacy failed validation for value 'This ANP contains \&quot;legacy\&quot; networks'&quot;, &quot;existing&quot;: [ { &quot;fvAp&quot;: { &quot;attributes&quot;: { &quot;descr&quot;: &quot;This ANP contains legacy networks&quot;, &quot;dn&quot;: &quot;uni/tn-SDNLAB/ap-legacy&quot;, &quot;name&quot;: &quot;legacy&quot;, &quot;nameAlias&quot;: &quot;&quot;, &quot;ownerKey&quot;: &quot;&quot;, &quot;ownerTag&quot;: &quot;&quot;, &quot;prio&quot;: &quot;unspecified&quot; } } } ], &quot;filter_string&quot;: &quot;?rsp-prop-include=config-only&quot;, &quot;imdata&quot;: [ { &quot;error&quot;: { &quot;attributes&quot;: { &quot;code&quot;: &quot;801&quot;, &quot;text&quot;: &quot;property descr of uni/tn-SDNLAB/ap-legacy failed validation for value 'This ANP contains \&quot;legacy\&quot; networks'&quot; } } } ], &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;ap&quot;: &quot;legacy&quot;, &quot;description&quot;: &quot;This ANP contains \&quot;legacy\&quot; networks&quot;, &quot;host&quot;: &quot;apic.ddsdnlab.at&quot;, &quot;hostname&quot;: &quot;apic.ddsdnlab.at&quot;, &quot;method&quot;: null, &quot;password&quot;: &quot;VALUE_SPECIFIED_IN_NO_LOG_PARAMETER&quot;, &quot;protocol&quot;: &quot;https&quot;, &quot;state&quot;: &quot;present&quot;, &quot;tenant&quot;: &quot;SDNLAB&quot;, &quot;timeout&quot;: 30, &quot;use_proxy&quot;: true, &quot;use_ssl&quot;: true, &quot;username&quot;: &quot;apic:Local\\\\ansible&quot;, &quot;validate_certs&quot;: false } }, &quot;method&quot;: &quot;POST&quot;, &quot;msg&quot;: &quot;Request failed: 801 property descr of uni/tn-SDNLAB/ap-legacy failed validation for value 'This ANP contains \&quot;legacy\&quot; networks'&quot;, &quot;proposed&quot;: { &quot;fvAp&quot;: { &quot;attributes&quot;: { &quot;descr&quot;: &quot;This ANP contains \&quot;legacy\&quot; networks&quot;, &quot;name&quot;: &quot;legacy&quot; } } }, &quot;response&quot;: &quot;HTTP Error 400: Bad Request&quot;, &quot;status&quot;: 400, &quot;totalCount&quot;: &quot;1&quot;, &quot;url&quot;: &quot;https://apic.ddsdnlab.at/api/mo/uni/tn-[SDNLAB]/ap-[legacy].json&quot; } "><pre class="notranslate"><code class="notranslate">fatal: [apic.ddsdnlab.at -&gt; localhost]: FAILED! =&gt; { "changed": false, "config": { "fvAp": { "attributes": { "descr": "This ANP contains \"legacy\" networks" } } }, "error_code": "801", "error_text": "property descr of uni/tn-SDNLAB/ap-legacy failed validation for value 'This ANP contains \"legacy\" networks'", "existing": [ { "fvAp": { "attributes": { "descr": "This ANP contains legacy networks", "dn": "uni/tn-SDNLAB/ap-legacy", "name": "legacy", "nameAlias": "", "ownerKey": "", "ownerTag": "", "prio": "unspecified" } } } ], "filter_string": "?rsp-prop-include=config-only", "imdata": [ { "error": { "attributes": { "code": "801", "text": "property descr of uni/tn-SDNLAB/ap-legacy failed validation for value 'This ANP contains \"legacy\" networks'" } } } ], "invocation": { "module_args": { "ap": "legacy", "description": "This ANP contains \"legacy\" networks", "host": "apic.ddsdnlab.at", "hostname": "apic.ddsdnlab.at", "method": null, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "protocol": "https", "state": "present", "tenant": "SDNLAB", "timeout": 30, "use_proxy": true, "use_ssl": true, "username": "apic:Local\\\\ansible", "validate_certs": false } }, "method": "POST", "msg": "Request failed: 801 property descr of uni/tn-SDNLAB/ap-legacy failed validation for value 'This ANP contains \"legacy\" networks'", "proposed": { "fvAp": { "attributes": { "descr": "This ANP contains \"legacy\" networks", "name": "legacy" } } }, "response": "HTTP Error 400: Bad Request", "status": 400, "totalCount": "1", "url": "https://apic.ddsdnlab.at/api/mo/uni/tn-[SDNLAB]/ap-[legacy].json" } </code></pre></div>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="resource r(b: int) { r(b); } fn main() { r(0); }"><pre class="notranslate"><code class="notranslate">resource r(b: int) { r(b); } fn main() { r(0); } </code></pre></div> <p dir="auto">Hits a fatal assertion rather than simply failing:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rust: task 7fce71800000 ran out of stack rust: fatal, 'on_rust_stack()' failed, ../src/rt/rust_task.cpp:570 "><pre class="notranslate"><code class="notranslate">rust: task 7fce71800000 ran out of stack rust: fatal, 'on_rust_stack()' failed, ../src/rt/rust_task.cpp:570 </code></pre></div>
<p dir="auto">What we are doing now leaks (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7057358" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/3555" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/3555/hovercard" href="https://github.com/rust-lang/rust/issues/3555">#3555</a>) and I don't know how to fix it yet, so we should not pretend we can enforce stack size limits safely.</p>
1
<p dir="auto">Relating to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="202984989" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/875" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/875/hovercard" href="https://github.com/vercel/next.js/issues/875">#875</a>, willing to try a PR if offered guidance.</p> <p dir="auto">We're building a ecommerce store from scratch with next and are close to finishing the initial architecture. The only thing bugging us is the number of folders we ended up with. The <code class="notranslate">src</code> folder would be a major improvement in our structure and the way we thought it could be done is by adding a property called <code class="notranslate">pagesDir</code> in the <code class="notranslate">next.config.js</code> configuration.</p> <p dir="auto">With this new options set to something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;pagesDir&quot;: './src/pages' }"><pre class="notranslate"><code class="notranslate">{ "pagesDir": './src/pages' } </code></pre></div> <p dir="auto">we could keep all the source code in src, including the pages.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Added description at the top of the page</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Pages cannot be placed within a sub folder.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>6.0.0</td> </tr> <tr> <td>node</td> <td>6.x</td> </tr> <tr> <td>OS</td> <td>N/A</td> </tr> <tr> <td>browser</td> <td>N/A</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">When using <code class="notranslate">Router.push(url, as, { shallow })</code> the <code class="notranslate">Router</code> should validate that <code class="notranslate">as</code> is a String and warn the consumer.</p> <p dir="auto">As a consumer, I would expect <code class="notranslate">Router.push</code> to gracefully handle / fallback to setting <code class="notranslate">as = url</code> so I can simply invoke <code class="notranslate">Router.push(url, {shallow: true})</code> but <g-emoji class="g-emoji" alias="woman_shrugging" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f937-2640.png">🤷‍♀️</g-emoji></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>invoke <code class="notranslate">Router.push</code> like <code class="notranslate">Router.push(url, { shallow: true })</code></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">If doing ^ it can stop the URL of your next app from updating even when navigating deep into different routes.</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.1</td> </tr> </tbody> </table>
0
<p dir="auto">Version 0.10.3 uses up 100% cpu on my macbook pro.<br> Especially the Electron Helper</p>
<p dir="auto">Not sure how I can help debug this, whilst <code class="notranslate">code</code> is running in the background, it has a detrimental effect on the performance of the battery.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1777444/11451979/ef2b5afc-95cf-11e5-8160-f74d7ec8be6b.png"><img width="584" alt="screen shot 2015-11-28 at 12 59 23" src="https://cloud.githubusercontent.com/assets/1777444/11451979/ef2b5afc-95cf-11e5-8160-f74d7ec8be6b.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1777444/11451992/40cf4cf6-95d0-11e5-9db2-240706850a06.png"><img width="284" alt="screen shot 2015-11-28 at 13 02 02" src="https://cloud.githubusercontent.com/assets/1777444/11451992/40cf4cf6-95d0-11e5-9db2-240706850a06.png" style="max-width: 100%;"></a></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> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> v9.0.5 <ul dir="auto"> <li> 9.0.5 </li> </ul> </li> </ul> <h3 dir="auto">Rejection Email</h3> <p dir="auto">Guideline 2.1 - Performance - App Completeness</p> <p dir="auto">We were unable to review your app as it crashed on launch on Mac running macOS 10.15.3. We have attached detailed crash logs to help troubleshoot this issue.</p> <p dir="auto">Next Steps</p> <p dir="auto">To resolve this issue, please revise your app and test it on a device to ensure it will launch without crashing.</p> <p dir="auto">Resources</p> <p dir="auto">For information on how to symbolicate and read a crash log, please review Tech Note TN2151 Understanding and Analyzing Application Crash Reports.</p> <p dir="auto">Guideline 2.5.1 - Performance - Software Requirements</p> <p dir="auto">Your app uses or references the following non-public APIs:</p> <p dir="auto">Symbols: _vDSP_deq22D, _vDSP_vsma</p> <p dir="auto">The use of non-public APIs is not permitted on the App Store, because it can lead to a poor user experience should these APIs change.</p> <p dir="auto">We are constantly reevaluating and identifying non-public APIs that you may have been using for an extended period of time. You should always use public APIs and frameworks and ensure they are up-to-date to prevent this issue in the future.</p> <p dir="auto">Next Steps</p> <p dir="auto">If you are using third-party libraries, please update to the most recent version of those libraries. If you do not have access to the libraries' source, you may be able to search the compiled binary using the "strings" or "otool" command line tools. The "strings" tool can output a list of the methods that the library calls and "otool -ov" will output the Objective-C class structures and their defined methods. These tools can help you narrow down where the problematic code resides.</p> <p dir="auto">Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store.</p> <p dir="auto">Resources</p> <p dir="auto">If there are no alternatives for providing the functionality your app requires, you can use Feedback Assistant to submit an enhancement request.</p> <p dir="auto">If you are unable to reproduce this issue, ensure you are testing the exact version of the app that you submitted for review, and that you're doing so in a minimally privileged environment. See Technical Q&amp;A QA1778: How to reproduce bugs reported against Mac App Store submissions.</p> <p dir="auto">For information on how to symbolicate and read a crash log, please see Technical Note TN2123 - CrashReporter.</p> <h3 dir="auto">Additional Information</h3>
<p dir="auto">I just received a MAS rejection for an app using Electron 8.3.0. The app I submitted was a small feature bump - no major changes. Moreover the last review was just a few days ago.</p> <p dir="auto">From MAS review:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Your app includes a version of an SDK from Electron that violates the App Store Review Guidelines. The version of the Electron SDK you are using in your app attempts to hide the use of private APIs. This is a violation Section 2.5.1 of the App Store Review Guidelines. Symbols: _vDSP_deq22D, _vDSP_vsma Guideline 2.5.1: Apps may only use public APIs."><pre class="notranslate"><code class="notranslate">Your app includes a version of an SDK from Electron that violates the App Store Review Guidelines. The version of the Electron SDK you are using in your app attempts to hide the use of private APIs. This is a violation Section 2.5.1 of the App Store Review Guidelines. Symbols: _vDSP_deq22D, _vDSP_vsma Guideline 2.5.1: Apps may only use public APIs. </code></pre></div>
1
<p dir="auto">Just installed TensorFlow 1.0 on Windows 10 (x64) on a Surface Pro 4 following the instructions from here: <a href="https://www.tensorflow.org/install/install_windows" rel="nofollow">https://www.tensorflow.org/install/install_windows</a> (e.g. pip3 install --upgrade tensorflow).</p> <p dir="auto">I'm unable to validate my installation, though - here's what I'm running into:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import tensorflow as tf; &gt;&gt;&gt; hello = tf.constant('Hello, TensorFlow!') &gt;&gt;&gt; sess = tf.Session() &gt;&gt;&gt; print(sess.run(hello)) E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;BestSplits&quot; device_type: &quot;CPU&quot;') for unknown op: BestSplits E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;CountExtremelyRandomStats&quot; device_type: &quot;CPU&quot;') for unknown op: CountExtremelyRandomStats E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;FinishedNodes&quot; device_type: &quot;CPU&quot;') for unknown op: FinishedNodes E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;GrowTree&quot; device_type: &quot;CPU&quot;') for unknown op: GrowTree E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;ReinterpretStringToFloat&quot; device_type: &quot;CPU&quot;') for unknown op: ReinterpretStringToFloat E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;SampleInputs&quot; device_type: &quot;CPU&quot;') for unknown op: SampleInputs E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;ScatterAddNdim&quot; device_type: &quot;CPU&quot;') for unknown op: ScatterAddNdim E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;TopNInsert&quot; device_type: &quot;CPU&quot;') for unknown op: TopNInsert E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;TopNRemove&quot; device_type: &quot;CPU&quot;') for unknown op: TopNRemove E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;TreePredictions&quot; device_type: &quot;CPU&quot;') for unknown op: TreePredictions E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: &quot;UpdateFertileSlots&quot; device_type: &quot;CPU&quot;') for unknown op: UpdateFertileSlots b'Hello, TensorFlow!' &gt;&gt;&gt;"><pre lang="~\Projects&gt;" class="notranslate"><code class="notranslate">Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import tensorflow as tf; &gt;&gt;&gt; hello = tf.constant('Hello, TensorFlow!') &gt;&gt;&gt; sess = tf.Session() &gt;&gt;&gt; print(sess.run(hello)) E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"') for unknown op: FinishedNodes E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for unknown op: GrowTree E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloat E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"') for unknown op: SampleInputs E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ScatterAddNdim" device_type: "CPU"') for unknown op: ScatterAddNdim E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNInsert" device_type: "CPU"') for unknown op: TopNInsert E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNRemove" device_type: "CPU"') for unknown op: TopNRemove E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TreePredictions" device_type: "CPU"') for unknown op: TreePredictions E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "UpdateFertileSlots" device_type: "CPU"') for unknown op: UpdateFertileSlots b'Hello, TensorFlow!' &gt;&gt;&gt; </code></pre></div> <p dir="auto">There seem to be several similar reports that indicate this is fixed, but as far as I can tell, this is still effectively broken when you install a clean version of TensorFlow on Windows. Is installing a nightly build the only way to get past this?</p>
<p dir="auto">I have Python 3.5.2 and Anaconda 4.1.1 (64bit) and when i tried installing TF i got the same error earlier today.<br> After following uninstall and then reinstall TF commands i was able to start Python app using TF; but now i am getting OpKernel error for unknown op: UpdateFertileSlots.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11993393/23317661/58b8c90e-fa9d-11e6-8b95-975e2075e61d.png"><img src="https://cloud.githubusercontent.com/assets/11993393/23317661/58b8c90e-fa9d-11e6-8b95-975e2075e61d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Any idea how to fix this?</p> <p dir="auto">N.B: i did searched online and could not find any answer in SO or any other resource to fix this issue to start using TF.</p>
1
<p dir="auto">My problem is with import TF module. Here is my configuration: Python 3.6.1, Windows 7 64-bit. I've MSVCP140.dll library in 'C:\Windows\System32' and 'C:\Windows\SysWOW64' folders. I also have instaled Update 3 for VS2015 C++.</p> <p dir="auto">In Windows PATH varitable I have such value related to python:<br> C:\Users\Jacek\AppData\Local\Programs\Python\Python36\Scripts<br> C:\Users\Jacek\AppData\Local\Programs\Python\Python36\</p> <p dir="auto">Steps which I made:</p> <p dir="auto">I've installed TensorFlow by command (in power shell). It works.</p> <p dir="auto"><code class="notranslate">python -m pip install --upgrade tensorflow</code><br> But when I run python environment and try import Tensor Flow</p> <p dir="auto"><code class="notranslate">import tensorflow as tf</code><br> I get errors, this error raise another errors related with it, but at the beginning I want to resolve this first</p> <blockquote> <p dir="auto">Traceback (most recent call last): File "C:\Users\Jacek\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(file)]) File "C:\Users\Jacek\AppData\Local\Programs\Python\Python36\lib\imp.py", line 296, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_pywrap_tensorflow'</p> </blockquote>
<p dir="auto">The current .whl does not support python 3.6. Please update to support the latest version of python. Thanks!</p> <p dir="auto">C:\WINDOWS\system32&gt;python --version<br> Python 3.6.0</p> <p dir="auto">C:\WINDOWS\system32&gt;pip install --upgrade <a href="https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl</a><br> tensorflow-0.12.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.</p>
1
<p dir="auto">Here is error:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1636250/109177801-e079b280-7790-11eb-8fce-50257e88090a.png"><img src="https://user-images.githubusercontent.com/1636250/109177801-e079b280-7790-11eb-8fce-50257e88090a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Python 3.7.8<br> fastapi 0.63.0</p> <p dir="auto">Run configuration:<br> <code class="notranslate">uvicorn.run("app:app", host="0.0.0.0", port=port, reload=True)</code></p> <p dir="auto">I think the error is in the path here is console log:<br> <code class="notranslate">127.0.0.1:54913 - "GET /api/v1/api/v1/openapi.json HTTP/1.1" 404 Not Found</code><br> Here is double path: /api/v1/<strong>api/v1/</strong></p> <p dir="auto">Doc path is wrong <a href="http://localhost:8080/docs" rel="nofollow">http://localhost:8080/docs</a> I expect it to be: <a href="http://localhost:8080/api/v1/docs" rel="nofollow">http://localhost:8080/api/v1/docs</a></p> <p dir="auto">Here is the test code to reproduce 'test_app.py' file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import uvicorn import json from fastapi import FastAPI, APIRouter, Response from fastapi.responses import RedirectResponse app = FastAPI(title=&quot;Root path test&quot;, root_path=&quot;/api/v1&quot;) @app.post(&quot;/test-call &quot;, tags=[&quot;test&quot;]) def ping(): return Response( json.dumps(dict(ping='pong')), headers={'Content-Type':'application/json'}) @app.get(&quot;/&quot;) def read_typer(): return RedirectResponse('/docs') if __name__ == &quot;__main__&quot;: uvicorn.run(&quot;test_app:app&quot;, host=&quot;0.0.0.0&quot;, port=8080, reload=True)"><pre class="notranslate"><code class="notranslate">import uvicorn import json from fastapi import FastAPI, APIRouter, Response from fastapi.responses import RedirectResponse app = FastAPI(title="Root path test", root_path="/api/v1") @app.post("/test-call ", tags=["test"]) def ping(): return Response( json.dumps(dict(ping='pong')), headers={'Content-Type':'application/json'}) @app.get("/") def read_typer(): return RedirectResponse('/docs') if __name__ == "__main__": uvicorn.run("test_app:app", host="0.0.0.0", port=8080, reload=True) </code></pre></div>
<p dir="auto">Hello,</p> <p dir="auto">I am following to fastAPI callbacks here : <a href="https://fastapi.tiangolo.com/advanced/openapi-callbacks/" rel="nofollow">https://fastapi.tiangolo.com/advanced/openapi-callbacks/</a> to try to set up slack alerts in one of my projects.</p> <p dir="auto">My goal is to sending a slack message whenever the API request failed. My code looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from typing import Optional from fastapi import APIRouter, FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Invoice(BaseModel): id: str title: Optional[str] = None customer: str total: float class InvoiceEvent(BaseModel): description: str paid: bool class InvoiceEventReceived(BaseModel): ok: bool invoices_callback_router = APIRouter() @invoices_callback_router.post(&quot;&quot;, response_model=InvoiceEventReceived) def invoice_notification(body: InvoiceEvent): return {&quot;okay&quot;: &quot;yes&quot;} @app.post(&quot;/invoices/&quot;, callbacks=invoices_callback_router.routes) def create_invoice(invoice: Invoice, callback_url: Optional[HttpUrl] = None): return {&quot;msg&quot;: &quot;Invoice received&quot;}"><pre class="notranslate"><code class="notranslate">from typing import Optional from fastapi import APIRouter, FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Invoice(BaseModel): id: str title: Optional[str] = None customer: str total: float class InvoiceEvent(BaseModel): description: str paid: bool class InvoiceEventReceived(BaseModel): ok: bool invoices_callback_router = APIRouter() @invoices_callback_router.post("", response_model=InvoiceEventReceived) def invoice_notification(body: InvoiceEvent): return {"okay": "yes"} @app.post("/invoices/", callbacks=invoices_callback_router.routes) def create_invoice(invoice: Invoice, callback_url: Optional[HttpUrl] = None): return {"msg": "Invoice received"} </code></pre></div> <p dir="auto">I would input slack webhooks link in callback_url, however, I am not very sure where to put payload for the callback_url, anyone could help ?</p>
0
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">I noticed that my generated JIT was creating two variables with the exact same parameters.</p> <p dir="auto">Also: Simply deleting the duplicated lines makes everything faster.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Python:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (x, l, c) in zip(sources, self.loc, self.conf): conf.append(c(x).permute(0, 2, 3, 1).contiguous().view(c(x).size(0), -1, self.num_classes)) loc.append(l(x).permute(0, 2, 3, 1).contiguous().view(l(x).size(0), -1, 4))"><pre class="notranslate"><span class="pl-k">for</span> (<span class="pl-s1">x</span>, <span class="pl-s1">l</span>, <span class="pl-s1">c</span>) <span class="pl-c1">in</span> <span class="pl-en">zip</span>(<span class="pl-s1">sources</span>, <span class="pl-s1">self</span>.<span class="pl-s1">loc</span>, <span class="pl-s1">self</span>.<span class="pl-s1">conf</span>): <span class="pl-s1">conf</span>.<span class="pl-en">append</span>(<span class="pl-en">c</span>(<span class="pl-s1">x</span>).<span class="pl-en">permute</span>(<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>).<span class="pl-en">contiguous</span>().<span class="pl-en">view</span>(<span class="pl-en">c</span>(<span class="pl-s1">x</span>).<span class="pl-en">size</span>(<span class="pl-c1">0</span>), <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-s1">self</span>.<span class="pl-s1">num_classes</span>)) <span class="pl-s1">loc</span>.<span class="pl-en">append</span>(<span class="pl-en">l</span>(<span class="pl-s1">x</span>).<span class="pl-en">permute</span>(<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>).<span class="pl-en">contiguous</span>().<span class="pl-en">view</span>(<span class="pl-en">l</span>(<span class="pl-s1">x</span>).<span class="pl-en">size</span>(<span class="pl-c1">0</span>), <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">4</span>))</pre></div> <p dir="auto">JIT:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" _78 = torch._convolution(input64, weight56, _66, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _79 = torch._convolution(input64, weight56, _66, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _80 = ops.prim.NumToTensor(torch.size(_79, 0)) _81 = torch.contiguous(torch.permute(_78, [0, 2, 3, 1])) _82 = torch.view(_81, [int(_80), -1, 2]) _83 = torch._convolution(input64, weight53, _59, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _84 = torch._convolution(input64, weight53, _59, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _85 = ops.prim.NumToTensor(torch.size(_84, 0)) _86 = torch.contiguous(torch.permute(_83, [0, 2, 3, 1])) _87 = torch.view(_86, [int(_85), -1, 4]) _88 = torch._convolution(input70, weight57, _68, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _89 = torch._convolution(input70, weight57, _68, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _90 = ops.prim.NumToTensor(torch.size(_89, 0)) _91 = torch.contiguous(torch.permute(_88, [0, 2, 3, 1])) _92 = torch.view(_91, [int(_90), -1, 2]) _93 = torch._convolution(input70, weight54, _61, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _94 = torch._convolution(input70, weight54, _61, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _95 = ops.prim.NumToTensor(torch.size(_94, 0)) _96 = torch.contiguous(torch.permute(_93, [0, 2, 3, 1])) _97 = torch.view(_96, [int(_95), -1, 4]) _98 = torch._convolution(input76, weight58, _70, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _99 = torch._convolution(input76, weight58, _70, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _100 = ops.prim.NumToTensor(torch.size(_99, 0)) _101 = torch.contiguous(torch.permute(_98, [0, 2, 3, 1])) _102 = torch.view(_101, [int(_100), -1, 2]) _103 = torch._convolution(input76, weight55, _63, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _104 = torch._convolution(input76, weight55, _63, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _105 = ops.prim.NumToTensor(torch.size(_104, 0)) _106 = torch.contiguous(torch.permute(_103, [0, 2, 3, 1])) _107 = [_87, _97, torch.view(_106, [int(_105), -1, 4])]"><pre class="notranslate"> <span class="pl-s1">_78</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input64</span>, <span class="pl-s1">weight56</span>, <span class="pl-s1">_66</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_79</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input64</span>, <span class="pl-s1">weight56</span>, <span class="pl-s1">_66</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_80</span> <span class="pl-c1">=</span> <span class="pl-s1">ops</span>.<span class="pl-s1">prim</span>.<span class="pl-v">NumToTensor</span>(<span class="pl-s1">torch</span>.<span class="pl-en">size</span>(<span class="pl-s1">_79</span>, <span class="pl-c1">0</span>)) <span class="pl-s1">_81</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">contiguous</span>(<span class="pl-s1">torch</span>.<span class="pl-en">permute</span>(<span class="pl-s1">_78</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>])) <span class="pl-s1">_82</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">view</span>(<span class="pl-s1">_81</span>, [<span class="pl-en">int</span>(<span class="pl-s1">_80</span>), <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">2</span>]) <span class="pl-s1">_83</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input64</span>, <span class="pl-s1">weight53</span>, <span class="pl-s1">_59</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_84</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input64</span>, <span class="pl-s1">weight53</span>, <span class="pl-s1">_59</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_85</span> <span class="pl-c1">=</span> <span class="pl-s1">ops</span>.<span class="pl-s1">prim</span>.<span class="pl-v">NumToTensor</span>(<span class="pl-s1">torch</span>.<span class="pl-en">size</span>(<span class="pl-s1">_84</span>, <span class="pl-c1">0</span>)) <span class="pl-s1">_86</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">contiguous</span>(<span class="pl-s1">torch</span>.<span class="pl-en">permute</span>(<span class="pl-s1">_83</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>])) <span class="pl-s1">_87</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">view</span>(<span class="pl-s1">_86</span>, [<span class="pl-en">int</span>(<span class="pl-s1">_85</span>), <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">4</span>]) <span class="pl-s1">_88</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input70</span>, <span class="pl-s1">weight57</span>, <span class="pl-s1">_68</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_89</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input70</span>, <span class="pl-s1">weight57</span>, <span class="pl-s1">_68</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_90</span> <span class="pl-c1">=</span> <span class="pl-s1">ops</span>.<span class="pl-s1">prim</span>.<span class="pl-v">NumToTensor</span>(<span class="pl-s1">torch</span>.<span class="pl-en">size</span>(<span class="pl-s1">_89</span>, <span class="pl-c1">0</span>)) <span class="pl-s1">_91</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">contiguous</span>(<span class="pl-s1">torch</span>.<span class="pl-en">permute</span>(<span class="pl-s1">_88</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>])) <span class="pl-s1">_92</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">view</span>(<span class="pl-s1">_91</span>, [<span class="pl-en">int</span>(<span class="pl-s1">_90</span>), <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">2</span>]) <span class="pl-s1">_93</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input70</span>, <span class="pl-s1">weight54</span>, <span class="pl-s1">_61</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_94</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input70</span>, <span class="pl-s1">weight54</span>, <span class="pl-s1">_61</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_95</span> <span class="pl-c1">=</span> <span class="pl-s1">ops</span>.<span class="pl-s1">prim</span>.<span class="pl-v">NumToTensor</span>(<span class="pl-s1">torch</span>.<span class="pl-en">size</span>(<span class="pl-s1">_94</span>, <span class="pl-c1">0</span>)) <span class="pl-s1">_96</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">contiguous</span>(<span class="pl-s1">torch</span>.<span class="pl-en">permute</span>(<span class="pl-s1">_93</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>])) <span class="pl-s1">_97</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">view</span>(<span class="pl-s1">_96</span>, [<span class="pl-en">int</span>(<span class="pl-s1">_95</span>), <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">4</span>]) <span class="pl-s1">_98</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input76</span>, <span class="pl-s1">weight58</span>, <span class="pl-s1">_70</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_99</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input76</span>, <span class="pl-s1">weight58</span>, <span class="pl-s1">_70</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_100</span> <span class="pl-c1">=</span> <span class="pl-s1">ops</span>.<span class="pl-s1">prim</span>.<span class="pl-v">NumToTensor</span>(<span class="pl-s1">torch</span>.<span class="pl-en">size</span>(<span class="pl-s1">_99</span>, <span class="pl-c1">0</span>)) <span class="pl-s1">_101</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">contiguous</span>(<span class="pl-s1">torch</span>.<span class="pl-en">permute</span>(<span class="pl-s1">_98</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>])) <span class="pl-s1">_102</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">view</span>(<span class="pl-s1">_101</span>, [<span class="pl-en">int</span>(<span class="pl-s1">_100</span>), <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">2</span>]) <span class="pl-s1">_103</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input76</span>, <span class="pl-s1">weight55</span>, <span class="pl-s1">_63</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_104</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">_convolution</span>(<span class="pl-s1">input76</span>, <span class="pl-s1">weight55</span>, <span class="pl-s1">_63</span>, [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], <span class="pl-c1">False</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-c1">1</span>, <span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>) <span class="pl-s1">_105</span> <span class="pl-c1">=</span> <span class="pl-s1">ops</span>.<span class="pl-s1">prim</span>.<span class="pl-v">NumToTensor</span>(<span class="pl-s1">torch</span>.<span class="pl-en">size</span>(<span class="pl-s1">_104</span>, <span class="pl-c1">0</span>)) <span class="pl-s1">_106</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">contiguous</span>(<span class="pl-s1">torch</span>.<span class="pl-en">permute</span>(<span class="pl-s1">_103</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>])) <span class="pl-s1">_107</span> <span class="pl-c1">=</span> [<span class="pl-s1">_87</span>, <span class="pl-s1">_97</span>, <span class="pl-s1">torch</span>.<span class="pl-en">view</span>(<span class="pl-s1">_106</span>, [<span class="pl-en">int</span>(<span class="pl-s1">_105</span>), <span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">4</span>])]</pre></div> <p dir="auto">See _78, _79 and _83,_84 for example.</p> <p dir="auto">Simplified code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _78 = torch._convolution(input64, weight56, _66, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _batch = int(ops.prim.NumToTensor(torch.size(_78, 0))) _81 = torch.contiguous(torch.permute(_78, [0, 2, 3, 1])) _82 = torch.view(_81, [_batch, -1, 2]) _83 = torch._convolution(input64, weight53, _59, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _86 = torch.contiguous(torch.permute(_83, [0, 2, 3, 1])) _87 = torch.view(_86, [_batch, -1, 4]) _88 = torch._convolution(input70, weight57, _68, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _91 = torch.contiguous(torch.permute(_88, [0, 2, 3, 1])) _92 = torch.view(_91, [_batch, -1, 2]) _93 = torch._convolution(input70, weight54, _61, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _96 = torch.contiguous(torch.permute(_93, [0, 2, 3, 1])) _97 = torch.view(_96, [_batch, -1, 4]) _98 = torch._convolution(input76, weight58, _70, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _101 = torch.contiguous(torch.permute(_98, [0, 2, 3, 1])) _102 = torch.view(_101, [_batch, -1, 2]) _103 = torch._convolution(input76, weight55, _63, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _106 = torch.contiguous(torch.permute(_103, [0, 2, 3, 1])) _107 = [_87, _97, torch.view(_106, [_batch, -1, 4])]"><pre class="notranslate"><code class="notranslate"> _78 = torch._convolution(input64, weight56, _66, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _batch = int(ops.prim.NumToTensor(torch.size(_78, 0))) _81 = torch.contiguous(torch.permute(_78, [0, 2, 3, 1])) _82 = torch.view(_81, [_batch, -1, 2]) _83 = torch._convolution(input64, weight53, _59, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _86 = torch.contiguous(torch.permute(_83, [0, 2, 3, 1])) _87 = torch.view(_86, [_batch, -1, 4]) _88 = torch._convolution(input70, weight57, _68, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _91 = torch.contiguous(torch.permute(_88, [0, 2, 3, 1])) _92 = torch.view(_91, [_batch, -1, 2]) _93 = torch._convolution(input70, weight54, _61, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _96 = torch.contiguous(torch.permute(_93, [0, 2, 3, 1])) _97 = torch.view(_96, [_batch, -1, 4]) _98 = torch._convolution(input76, weight58, _70, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _101 = torch.contiguous(torch.permute(_98, [0, 2, 3, 1])) _102 = torch.view(_101, [_batch, -1, 2]) _103 = torch._convolution(input76, weight55, _63, [1, 1], [1, 1], [1, 1], False, [0, 0], 1, True, False, True) _106 = torch.contiguous(torch.permute(_103, [0, 2, 3, 1])) _107 = [_87, _97, torch.view(_106, [_batch, -1, 4])] </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Only a single convolution</p> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): 1.2.0</li> <li>OS (e.g., Linux): Linux</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): pip</li> <li>Build command you used (if compiling from source): N/A</li> <li>Python version: 3.6</li> <li>CUDA/cuDNN version: 10.0/7.5</li> <li>GPU models and configuration: Titan V</li> <li>Any other relevant information:</li> </ul>
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions and Help</h2> <h3 dir="auto">Please note that this issue tracker is not a help form and this issue will be closed.</h3> <p dir="auto">We have a set of <a href="https://pytorch.org/resources" rel="nofollow">listed resources available on the website</a>. Our primary means of support is our discussion forum:</p> <ul dir="auto"> <li><a href="https://discuss.pytorch.org/" rel="nofollow">Discussion Forum</a></li> </ul>
0
<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"><code class="notranslate">4.0.0-RC2</code></p> <h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3> <p dir="auto"><code class="notranslate">Sharding-JDBC</code></p> <h3 dir="auto">Expected behavior</h3> <p dir="auto"><code class="notranslate">INSERT INTO table_a (id,col_1,col_2) VALUES(1,#{bean.val1}, #{bean.val2}) ON DUPLICATE KEY UPDATE col_2 = col_2 + #{bean.val2}</code> should execute successfully.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">got exception</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: java.sql.SQLException: No value specified for parameter 3 ### The error may involve com.duoku.vipintegral.dao.vipscore.UserScoreLevelMapper.insertOrUpdate-Inline ### The error occurred while setting parameters ### SQL: INSERT INTO test_a (id,col_1,col_2) VALUES(1,?, ?) ON DUPLICATE KEY UPDATE col_2 = col_2 + ? ### Cause: java.sql.SQLException: No value specified for parameter 3 ; bad SQL grammar []; nested exception is java.sql.SQLException: No value specified for parameter 3"><pre class="notranslate"><code class="notranslate">org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: java.sql.SQLException: No value specified for parameter 3 ### The error may involve com.duoku.vipintegral.dao.vipscore.UserScoreLevelMapper.insertOrUpdate-Inline ### The error occurred while setting parameters ### SQL: INSERT INTO test_a (id,col_1,col_2) VALUES(1,?, ?) ON DUPLICATE KEY UPDATE col_2 = col_2 + ? ### Cause: java.sql.SQLException: No value specified for parameter 3 ; bad SQL grammar []; nested exception is java.sql.SQLException: No value specified for parameter 3 </code></pre></div> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">Debug from the source,found that the num of parameters just only get from <code class="notranslate">InsertValuesSegment</code>, but the parameter after <code class="notranslate">ON DUPLICATE KEY UPDATE</code> is not included in the calculation.And I also can not find values that belong to 'OnDuplicateKey' expression in <code class="notranslate">OnDuplicateKeyColumnsSegment</code>.</p> <p dir="auto"><a href="https://github.com/apache/incubator-shardingsphere/blob/85f2ff877a7aaf122998964a0d03f7c9b2830e36/sharding-core/sharding-core-optimize/src/main/java/org/apache/shardingsphere/core/optimize/sharding/engnie/dml/ShardingInsertOptimizeEngine.java#L70">https://github.com/apache/incubator-shardingsphere/blob/85f2ff877a7aaf122998964a0d03f7c9b2830e36/sharding-core/sharding-core-optimize/src/main/java/org/apache/shardingsphere/core/optimize/sharding/engnie/dml/ShardingInsertOptimizeEngine.java#L70</a></p> <p dir="auto"><code class="notranslate">currentParameters</code> do not contains the parameter for 'ON DUPLICATE KEY UPDATE',and <code class="notranslate">parameters</code> is full.</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <ul dir="auto"> <li>sql</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL COMMENT '主键', `col_1` varchar(20) NOT NULL DEFAULT '' COMMENT 'val_1', `col_2` int(10) NOT NULL DEFAULT '0' COMMENT 'val_int_2', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; INSERT INTO table_a (id,col_1,col_2) VALUES(1,#{bean.val1}, #{bean.val2}) ON DUPLICATE KEY UPDATE col_2 = col_2 + #{bean.val2}"><pre class="notranslate"><code class="notranslate">CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL COMMENT '主键', `col_1` varchar(20) NOT NULL DEFAULT '' COMMENT 'val_1', `col_2` int(10) NOT NULL DEFAULT '0' COMMENT 'val_int_2', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; INSERT INTO table_a (id,col_1,col_2) VALUES(1,#{bean.val1}, #{bean.val2}) ON DUPLICATE KEY UPDATE col_2 = col_2 + #{bean.val2} </code></pre></div> <ul dir="auto"> <li>in mybatis3</li> <li>any shareding rule.</li> </ul> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<h2 dir="auto">Feature Request</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <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 make decision by 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">Is your feature request related to a problem?</h3> <p dir="auto">No.</p> <h3 dir="auto">Describe the feature you would like.</h3> <p dir="auto">hope the sharding.jdbc.datasource.names in application.properties can support expression like ds,ds_${0..3}。<br> but, the SpringBootConfiguration show me that only support datasource names separated by comma. if tens of names, the conf is unfriendly at all.</p>
0
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux Ubuntu 16.04</li> <li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>: n/a</li> <li><strong>TensorFlow installed from (source or binary)</strong>: binary (Docker tensorflow/tensorflow)</li> <li><strong>TensorFlow version (use command below)</strong>: 1.10.1 (from core/public/version.h)</li> <li><strong>Python version</strong>:2.7.12</li> <li><strong>Bazel version (if compiling from source)</strong>: n/a</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li> <li><strong>CUDA/cuDNN version</strong>: n/a</li> <li><strong>GPU model and memory</strong>: n/a</li> <li><strong>Exact command to reproduce</strong>:<br> # docker run -it tensorflow/tensorflow bash<br> root@xxxxxxx:/notebooks# python2.7 -c "import tensorflow as tf"<br> Illegal instruction</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">This is a request to update documentation to include minimal system requirements, especially the description for Docker images that include prebuilt binaries.</p> <p dir="auto">For example, the main Docker image on DockerHub (tensorflow/tensorflow, 19M downloads) <a href="https://github.com/tensorflow/tensorflow/issues/17411" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/17411/hovercard">currently does not operate on CPU's without AVX support</a>. This includes CPUs sold as recently as 4 years ago.</p> <p dir="auto">This requirement should be stated in the Docker image description displayed in DockerHub. Perhaps also include a link to an alternative docker image that users with non-AVX CPUs may utilize to build from source.</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">n/a</p>
<p dir="auto">As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:</p> <ul dir="auto"> <li><code class="notranslate">ImportError: DLL load failed:</code></li> <li>A crash with return code 132</li> </ul> <p dir="auto">Our recommendation is to build TF from sources on these systems.</p> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: ubuntu/windows/macos</li> <li><strong>TensorFlow installed from (source or binary)</strong>: binary</li> <li><strong>TensorFlow version (use command below)</strong>: 1.6 and up</li> <li><strong>Python version</strong>: 2.7, 3.3, 3.4, 3.5, 3.6 and any newer</li> <li><strong>Bazel version (if compiling from source)</strong>: n/a</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li> <li><strong>CUDA/cuDNN version</strong>: any</li> <li><strong>GPU model and memory</strong>: any</li> <li><strong>Exact command to reproduce</strong>: python -c "import tensorflow as tf"</li> </ul>
1
<h4 dir="auto">Example Code</h4> <p dir="auto"><code class="notranslate">print(pd.DataFrame({'a': np.zeros(1000, 'V4')}))</code></p> <h4 dir="auto">Results</h4> <p dir="auto">Non-deterministic behavior. Sometimes you get all zeros, sometimes you get garbage like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" a 0 [1, 0, 0, 0] 1 [0, 0, 0, 0] 2 [8, 0, 0, 0] 3 [0, 0, 0, 0] 4 [48, -92, 71, -60] 5 [-27, 127, 0, 0] 6 [5, 0, 0, 0] 7 [0, 0, 0, 0] ..."><pre class="notranslate"><code class="notranslate"> a 0 [1, 0, 0, 0] 1 [0, 0, 0, 0] 2 [8, 0, 0, 0] 3 [0, 0, 0, 0] 4 [48, -92, 71, -60] 5 [-27, 127, 0, 0] 6 [5, 0, 0, 0] 7 [0, 0, 0, 0] ... </code></pre></div> <p dir="auto">That is despite the fact that the bytes are actually all zero, and NumPy prints all rows as <code class="notranslate">[0, 0, 0, 0]</code>.</p> <p dir="auto">Sometimes when printing a wider DataFrame containing such a column, it segfaults with this stack trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 BYTE_copyswap (dst=0x7fffebdbe868, src=0x7fffe9f0d054, __NPY_UNUSED_TAGGEDswap=0, __NPY_UNUSED_TAGGEDarr=0x7fffea15f990) at numpy/core/src/multiarray/arraytypes.c.src:1911 #1 0x00007ffff5d82075 in PyArray_Scalar (data=0x7fffe9f0d054, descr=0x7fffea1612d0, base=&lt;optimized out&gt;) at numpy/core/src/multiarray/scalarapi.c:835 #2 0x00007ffff5d52df0 in array_item (self=0x7fffea15f990, i=&lt;optimized out&gt;) at numpy/core/src/multiarray/mapping.c:1371"><pre class="notranslate"><code class="notranslate">#0 BYTE_copyswap (dst=0x7fffebdbe868, src=0x7fffe9f0d054, __NPY_UNUSED_TAGGEDswap=0, __NPY_UNUSED_TAGGEDarr=0x7fffea15f990) at numpy/core/src/multiarray/arraytypes.c.src:1911 #1 0x00007ffff5d82075 in PyArray_Scalar (data=0x7fffe9f0d054, descr=0x7fffea1612d0, base=&lt;optimized out&gt;) at numpy/core/src/multiarray/scalarapi.c:835 #2 0x00007ffff5d52df0 in array_item (self=0x7fffea15f990, i=&lt;optimized out&gt;) at numpy/core/src/multiarray/mapping.c:1371 </code></pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">All rows <code class="notranslate">[0, 0, 0, 0]</code> - just as NumPy prints it.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> ## INSTALLED VERSIONS <p dir="auto">commit: None<br> python: 3.5.1<br> python-bits: 64<br> OS: Linux<br> OS-release: 3.13.0<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8</p> <p dir="auto">pandas: 0.18.1<br> pip: 8.1.2<br> setuptools: 27.2.0<br> numpy: 1.11.1</p> </details>
<p dir="auto">Trying to print anything containing a V* (void) type throws in <code class="notranslate">isnull</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; import pandas as pd &gt;&gt;&gt; arr = np.array([b'foo'], dtype='V') &gt;&gt;&gt; arr array([[102 111 111]], dtype='|V3') &gt;&gt;&gt; s = pd.Series(arr) &gt;&gt;&gt; s[0] [102 111 111] &gt;&gt;&gt; s TypeError: ufunc 'isnan' 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"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s">b'foo'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'V'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">arr</span> <span class="pl-en">array</span>([[<span class="pl-c1">102</span> <span class="pl-c1">111</span> <span class="pl-c1">111</span>]], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'|V3'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">arr</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">s</span>[<span class="pl-c1">0</span>] [<span class="pl-c1">102</span> <span class="pl-c1">111</span> <span class="pl-c1">111</span>] <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">s</span> <span class="pl-v">TypeError</span>: <span class="pl-s1">ufunc</span> <span class="pl-s">'isnan'</span> <span class="pl-c1">not</span> <span class="pl-s1">supported</span> <span class="pl-k">for</span> <span class="pl-s1">the</span> <span class="pl-s1">input</span> <span class="pl-s1">types</span>, <span class="pl-c1">and</span> <span class="pl-s1">the</span> <span class="pl-s1">inputs</span> <span class="pl-s1">could</span> <span class="pl-c1">not</span> <span class="pl-s1">be</span> <span class="pl-s1">safely</span> <span class="pl-s1">coerced</span> <span class="pl-s1">to</span> <span class="pl-s1">any</span> <span class="pl-s1">supported</span> <span class="pl-s1">types</span> <span class="pl-s1">according</span> <span class="pl-s1">to</span> <span class="pl-s1">the</span> <span class="pl-s1">casting</span> <span class="pl-s1">rule</span> <span class="pl-s">''</span><span class="pl-s1">safe</span><span class="pl-s">''</span></pre></div> <p dir="auto">From the looks of it, <code class="notranslate">pandas.core.common._isnull_ndarraylike</code> (and maybe some other methods?) should take care of this, e.g. return an array filled with False.</p> <p dir="auto">Here's the relevant part of the traceback:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pandas/formats/format.py in _format_strings(self) 2057 vals = vals._values 2058 -&gt; 2059 is_float = lib.map_infer(vals, com.is_float) &amp; notnull(vals) 2060 leading_space = is_float.any() 2061 pandas/core/common.py in notnull(obj) 248 pandas.isnull : boolean inverse of pandas.notnull 249 &quot;&quot;&quot; --&gt; 250 res = isnull(obj) 251 if lib.isscalar(res): 252 return not res pandas/core/common.py in isnull(obj) 89 pandas.notnull: boolean inverse of pandas.isnull 90 &quot;&quot;&quot; ---&gt; 91 return _isnull(obj) 92 93 pandas/core/common.py in _isnull_new(obj) 99 raise NotImplementedError(&quot;isnull is not defined for MultiIndex&quot;) 100 elif isinstance(obj, (gt.ABCSeries, np.ndarray, pd.Index)): --&gt; 101 return _isnull_ndarraylike(obj) 102 elif isinstance(obj, gt.ABCGeneric): 103 return obj._constructor(obj._data.isnull(func=isnull)) pandas/core/common.py in _isnull_ndarraylike(obj) 190 result = values.view('i8') == tslib.iNaT 191 else: --&gt; 192 result = np.isnan(values) 193 194 # box TypeError: ufunc 'isnan' 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"><code class="notranslate">pandas/formats/format.py in _format_strings(self) 2057 vals = vals._values 2058 -&gt; 2059 is_float = lib.map_infer(vals, com.is_float) &amp; notnull(vals) 2060 leading_space = is_float.any() 2061 pandas/core/common.py in notnull(obj) 248 pandas.isnull : boolean inverse of pandas.notnull 249 """ --&gt; 250 res = isnull(obj) 251 if lib.isscalar(res): 252 return not res pandas/core/common.py in isnull(obj) 89 pandas.notnull: boolean inverse of pandas.isnull 90 """ ---&gt; 91 return _isnull(obj) 92 93 pandas/core/common.py in _isnull_new(obj) 99 raise NotImplementedError("isnull is not defined for MultiIndex") 100 elif isinstance(obj, (gt.ABCSeries, np.ndarray, pd.Index)): --&gt; 101 return _isnull_ndarraylike(obj) 102 elif isinstance(obj, gt.ABCGeneric): 103 return obj._constructor(obj._data.isnull(func=isnull)) pandas/core/common.py in _isnull_ndarraylike(obj) 190 result = values.view('i8') == tslib.iNaT 191 else: --&gt; 192 result = np.isnan(values) 193 194 # box TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe'' </code></pre></div>
1
<p dir="auto"><strong>Migrated issue, originally created by René Steetskamp (<a href="https://github.com/otech-nl">@otech-nl</a>)</strong></p> <p dir="auto">I have a hybrid property "password" which used to work but after a package update gave "AttributeError: can't set attribute".</p> <p dir="auto">Downgrading to "sqlalchemy&lt;1.2" fixed the issue.</p> <p dir="auto">Using sqlite 3.22.0, pipenv, flask and flask-sqlachemy.</p> <p dir="auto">Pipfile, execution+stack traces and test script attached.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/4332/Pipfile">Pipfile</a> | <a href="../wiki/imported_issue_attachments/4332/trace.txt">trace.txt</a> | <a href="../wiki/imported_issue_attachments/4332/test.py">test.py</a></p>
<p dir="auto"><strong>Migrated issue, originally created by Marcin Lulek (<a href="https://github.com/ergo">@ergo</a>)</strong></p> <p dir="auto">Hello,</p> <p dir="auto">I'm not sure if I was always using SA in wrong way or there is a bug in 1.2 version.</p> <p dir="auto">Setters need to be named same way as hybrid property - this test case works in 1.x and breaks in 1.2. I did notice that in the examples in docs the property name is same in both places, though.</p> <p dir="auto">Error I'm getting is:</p> <p dir="auto">File "/home/ergo/workspace/ziggurat_cms/.venv/lib/python3.6/site-packages/sqlalchemy/ext/hybrid.py", line 873, in <strong>set</strong><br> raise AttributeError("can't set attribute")<br> AttributeError: can't set attribute</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/4149/test_hybrid.py">test_hybrid.py</a></p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">When navigating between components they don't get destroyed properly. A reference of the navigated component and its children is still in memory.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">The components shouldn't be in memory after they where destroyed.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><a href="http://plnkr.co/edit/KF49IB82ffvRFXVdYtyx" rel="nofollow">?p=preview http://plnkr.co/edit/KF49IB82ffvRFXVdYtyx?p=preview</a></p> <ol dir="auto"> <li>Open plunker</li> <li>Click "Launch the preview in a separate window"</li> <li>Click "Page2" button</li> <li>Open Devtools</li> <li>Go to Memory Tab</li> <li>Take Heap Snapshot</li> <li>Search for My</li> </ol> <p dir="auto">--&gt; Now you can see that there are still references to MyPage1, MyPage2 and two MyChild.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.1.3</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> all</li> </ul> <ul dir="auto"> <li><strong>Language:</strong> TypeScript 2.2.1</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">When triggering ComponentRef.destroy(), no browser memory is ever released. Any injected dependencies are all still there and running, even though the component is gone.</p> <p dir="auto">Also:<br> When bootstrapping an app within an iframe, destroying that app and removing the iframe from the DOM does not release browser memory.</p> <p dir="auto">In both of these scenarios, browser memory builds up over time and the browser tab and angular app lock up or crash. Injected dependencies are created, but never removed.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Browser memory should be released as apps and components are destroyed.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><em>STEPS TO REPRODUCE</em></p> <p dir="auto">REPRODUCING DEPENDENCY LEAK</p> <ol dir="auto"> <li> <p dir="auto">Run the Tour of Heroes plnkr in Chrome or IE<br> <a href="https://plnkr.co/edit/R9axXVtjep5VO8hWygpA?p=preview" rel="nofollow">https://plnkr.co/edit/R9axXVtjep5VO8hWygpA?p=preview</a></p> </li> <li> <p dir="auto">Open the js console and watch the logging in the hero service, which does not stop after destroying the app.</p> </li> </ol> <ul dir="auto"> <li>Note, this is the Tour of Heroes example, except that after the app is bootstrapped in main.ts, I've added a 15sec timer that runs ref.destroy(). Additionally, in the hero.service.ts file, I added a console log in the constructor that prints every second. You can see that the service continues to run even after triggering .destroy() on the component ref.</li> </ul> <p dir="auto">REPRODUCING IFRAME LEAK</p> <ol dir="auto"> <li> <p dir="auto">Run the Tour of Heroes live example in IE 11<br> <a href="https://angular.io/resources/live-examples/toh-6/ts/eplnkr.html" rel="nofollow">https://angular.io/resources/live-examples/toh-6/ts/eplnkr.html</a></p> </li> <li> <p dir="auto">Open F12 dev tools, click on Memory and click "Start profiling to begin a performance session"</p> </li> <li> <p dir="auto">Make changes to the files by adding line breaks. Every time the app reloads in the iframe the memory will grow. After about 15 minutes of this the app will lock up due to the IE tab hitting the 1.5Gb memory limit. If you test with app that has more dependencies, it will lock up much faster.</p> </li> </ol> <p dir="auto">This can be reproduced in Chrome too, it just takes longer for the memory leak to build up that much.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">Large-scale angular apps that use iframes or rely on destroying components will leak memory over time and eventually crash or lock up.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">Mac OS 10.11.6</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <p dir="auto">Angular v2.4.1</p> <ul dir="auto"> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li> </ul> <p dir="auto">all</p> <ul dir="auto"> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> all</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</li> </ul>
1
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Ltrlg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Ltrlg">@Ltrlg</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.4.0</li> <li><strong>Node version:</strong> 5.3.0</li> <li><strong>npm version:</strong> 3.3.12</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--plugins transform-async-to-generator"><pre class="notranslate"><code class="notranslate">--plugins transform-async-to-generator </code></pre></div> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class C { async a() { let t = this; let f = () =&gt; this; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">C</span> <span class="pl-kos">{</span> <span class="pl-k">async</span> <span class="pl-en">a</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-en">f</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">Babel transforms the given minimal example by replacing the first <code class="notranslate">this</code> by a <code class="notranslate">_this</code> copy, but not the second one.</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> If relying on external browserslist config, "defaults" in that file resolves to empty set, which enables all transforms.</p> <p dir="auto"><strong>Expected behavior/code</strong><br> "defaults" should resolve normally. In the example below, many transforms should be disabled.</p> <p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p> <ul dir="auto"> <li>Filename: <code class="notranslate">babel.config.js</code></li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { presets: [ ['@vue/cli-plugin-babel/preset', {debug: true}], ] }"><pre class="notranslate"><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">presets</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-s">'@vue/cli-plugin-babel/preset'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">debug</span>: <span class="pl-c1">true</span><span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <ul dir="auto"> <li>Filename: <code class="notranslate">.browserslistrc</code></li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="defaults and last 4 years"><pre class="notranslate"><code class="notranslate">defaults and last 4 years </code></pre></div> <p dir="auto"><strong>Environment</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" System: OS: Linux 5.3 Debian GNU/Linux bullseye/sid Binaries: Node: 10.17.0 - /usr/bin/node npm: 6.13.0 - /usr/local/bin/npm npmPackages: babel-eslint: ^10.0.1 =&gt; 10.0.3 eslint: ^6.7.0 =&gt; 6.7.0"><pre class="notranslate"><code class="notranslate"> System: OS: Linux 5.3 Debian GNU/Linux bullseye/sid Binaries: Node: 10.17.0 - /usr/bin/node npm: 6.13.0 - /usr/local/bin/npm npmPackages: babel-eslint: ^10.0.1 =&gt; 10.0.3 eslint: ^6.7.0 =&gt; 6.7.0 </code></pre></div> <p dir="auto"><strong>Additional context/Screenshots</strong><br> This is broken because of legacy support:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/babel/babel/blob/bffa415b83e7cef21cb43b05cc05fc93cf0ac782/packages/babel-preset-env/src/targets-parser.js#L205-L214">babel/packages/babel-preset-env/src/targets-parser.js</a> </p> <p class="mb-0 color-fg-muted"> Lines 205 to 214 in <a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/bffa415b83e7cef21cb43b05cc05fc93cf0ac782">bffa415</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L205" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="205"></td> <td id="LC205" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// If no targets are passed, we need to overwrite browserslist's defaults</span> </td> </tr> <tr class="border-0"> <td id="L206" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="206"></td> <td id="LC206" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// so that we enable all transforms (acting like the now deprecated</span> </td> </tr> <tr class="border-0"> <td id="L207" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="207"></td> <td id="LC207" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// preset-latest).</span> </td> </tr> <tr class="border-0"> <td id="L208" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="208"></td> <td id="LC208" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">//</span> </td> </tr> <tr class="border-0"> <td id="L209" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="209"></td> <td id="LC209" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// Note, if browserslist resolves the config (ex. package.json), then usage</span> </td> </tr> <tr class="border-0"> <td id="L210" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="210"></td> <td id="LC210" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// of `defaults` in queries will be different since we don't want to break</span> </td> </tr> <tr class="border-0"> <td id="L211" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="211"></td> <td id="LC211" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// the behavior of "no targets is the same as preset-latest".</span> </td> </tr> <tr class="border-0"> <td id="L212" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="212"></td> <td id="LC212" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">hasTargets</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> <tr class="border-0"> <td id="L213" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="213"></td> <td id="LC213" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">browserslist</span><span class="pl-kos">.</span><span class="pl-c1">defaults</span> <span class="pl-c1">=</span> <span class="pl-s1">objectToBrowserslist</span><span class="pl-kos">(</span><span class="pl-s1">targets</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L214" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="214"></td> <td id="LC214" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">This causes defaults to be empty (since <code class="notranslate">!hasTargets</code>) and thus the result is empty. <g-emoji class="g-emoji" alias="cry" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f622.png">😢</g-emoji></p>
0
<p dir="auto">Test plan item for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134100502" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/3062" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/3062/hovercard" href="https://github.com/microsoft/vscode/issues/3062">#3062</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bpasero/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bpasero">@bpasero</a> Please complete...</p>
<p dir="auto">1.0.0 introduced the ability to use VS Code as a git difftool. The relevant global <code class="notranslate">.gitconfig</code> lines are as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[diff] tool = default-difftool [difftool &quot;default-difftool&quot;] cmd = code --wait --diff $LOCAL $REMOTE"><pre class="notranslate"><code class="notranslate">[diff] tool = default-difftool [difftool "default-difftool"] cmd = code --wait --diff $LOCAL $REMOTE </code></pre></div> <p dir="auto">How can I use VS Code as a git <a href="https://www.git-scm.com/docs/git-mergetool" rel="nofollow">mergetool</a>?</p> <p dir="auto">The relevant arguments it needs to accept, I believe, are <code class="notranslate">$LOCAL</code>, <code class="notranslate">$REMOTE</code>, <code class="notranslate">$BASE</code>, and <code class="notranslate">$MERGED</code>.</p>
0
<p dir="auto">用android studio3.0打不开 flutter_gallery这个例子<br> 提示如下:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35317999/36827897-599814b0-1d51-11e8-87a4-1770fb6e0849.png"><img src="https://user-images.githubusercontent.com/35317999/36827897-599814b0-1d51-11e8-87a4-1770fb6e0849.png" alt="tim 20180301130609" style="max-width: 100%;"></a></p>
<p dir="auto">Flutter Gallery's assets are not stored in <a href="https://storage.googleapis.com/flutter_infra/" rel="nofollow">https://storage.googleapis.com/flutter_infra/</a>. As a result, users cannot use alternate storage locations by specifying the FLUTTER_STORAGE_BASE_URL environment variable.</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/flutter/flutter/blob/dd796853ccb8e90d4ce5e9d5a101d66d35c2e6a4/examples/flutter_gallery/pubspec.yaml#L15-L18">flutter/examples/flutter_gallery/pubspec.yaml</a> </p> <p class="mb-0 color-fg-muted"> Lines 15 to 18 in <a data-pjax="true" class="commit-tease-sha" href="/flutter/flutter/commit/dd796853ccb8e90d4ce5e9d5a101d66d35c2e6a4">dd79685</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L15" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="15"></td> <td id="LC15" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-ent">flutter_gallery_assets</span>: </td> </tr> <tr class="border-0"> <td id="L16" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="16"></td> <td id="LC16" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-ent">git</span>: </td> </tr> <tr class="border-0"> <td id="L17" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="17"></td> <td id="LC17" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-ent">url</span>: <span class="pl-s">https://flutter.googlesource.com/gallery-assets</span> </td> </tr> <tr class="border-0"> <td id="L18" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="18"></td> <td id="LC18" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-ent">ref</span>: <span class="pl-s">d318485f208376e06d7e330d9f191141d14722b8</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">The current URL is not accessible from China, as the user reported on Gitter:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/348942/34324261-28053f88-e8a7-11e7-8a95-4c32bd4f9197.PNG"><img src="https://user-images.githubusercontent.com/348942/34324261-28053f88-e8a7-11e7-8a95-4c32bd4f9197.PNG" alt="img-2592" style="max-width: 100%;"></a></p> <p dir="auto">Cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jakobr-google/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jakobr-google">@jakobr-google</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mit-mit/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mit-mit">@mit-mit</a><br> Related issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="251321731" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/11681" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/11681/hovercard" href="https://github.com/flutter/flutter/issues/11681">#11681</a></p>
1
<ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I just upgraded from verstion 1.0.0-beta.3 to 1.0.0-beta.8 and now I'm getting <strong>"Module not found: can't resolve jss"</strong> error when running <code class="notranslate">npm start</code>. I can confirm that I have jss and react-jss installed.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./~/react-jss/lib/jss.js Module not found: Can't resolve 'jss' in '/...project_path.../node_modules/react-jss/lib'"><pre class="notranslate"><code class="notranslate">./~/react-jss/lib/jss.js Module not found: Can't resolve 'jss' in '/...project_path.../node_modules/react-jss/lib' </code></pre></div> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.8</td> </tr> <tr> <td>React</td> <td>15.6.1</td> </tr> <tr> <td>jss</td> <td>8.1.0</td> </tr> <tr> <td>react-jss</td> <td>7.1.0</td> </tr> </tbody> </table>
<p dir="auto">even though passing the anchor= 'bottom' prop the drawer is still on left side</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Drawer should be placed on the side of the screen provided by anchor prop</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Drawer does not listen to Anchor prop</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v1.0.0-beta.21</td> </tr> <tr> <td>React</td> <td>15.4.2</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">I've a problem with Celery parent thread. It works, but CPU consumption is near 100%.<br> Top output is:<br> 28337 xxx 20 0 658m 101m 35m R 100 0.6 844:58.47 celery</p> <p dir="auto">Celery version is:<br> celery report<br> software -&gt; celery:3.1.8 (Cipater) kombu:3.0.10 py:2.7.3<br> billiard:3.3.0.14 py-amqp:1.4.2<br> platform -&gt; system:Linux arch:64bit, ELF imp:CPython<br> loader -&gt; celery.loaders.default.Loader<br> settings -&gt; transport:amqp results:disabled</p> <p dir="auto">Strace shows repeated epoll_ctl calls.<br> strace -p 28337<br> epoll_ctl(4, EPOLL_CTL_DEL, 28, {EPOLLRDNORM|EPOLLWRBAND|0x4c6820, {u32=0, u64=21512400263970816}}) = -1 ENOENT (No such file or directory)<br> epoll_ctl(4, EPOLL_CTL_DEL, 32, {EPOLLRDNORM|EPOLLWRBAND|0x4c6820, {u32=0, u64=21512400263970816}}) = -1 ENOENT (No such file or directory)<br> epoll_ctl(4, EPOLL_CTL_DEL, 36, {EPOLLRDNORM|EPOLLWRBAND|0x4c6820, {u32=0, u64=21512400263970816}}) = -1 ENOENT (No such file or directory)<br> epoll_ctl(4, EPOLL_CTL_DEL, 40, {EPOLLRDNORM|EPOLLWRBAND|0x4c6820, {u32=0, u64=21512400263970816}}) = -1 ENOENT (No such file or directory)</p> <p dir="auto">I have JSON serializer and some connections to HBase in my workers.</p>
<p dir="auto">Hello,</p> <p dir="auto">We're using Celery 3.1.6, and one of our queues is using 100% CPU for the master process. ps shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root 6960 59.2 0.7 160680 51628 ? Rs Feb01 2319:49 /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 32727 0.3 1.1 266008 82860 ? S Feb02 6:29 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 32729 0.2 1.1 265184 82040 ? S Feb02 5:54 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 32730 0.2 1.4 282868 99788 ? S Feb02 5:29 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 750 0.1 1.5 296584 113100 ? S Feb02 3:03 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 917 0.2 1.1 262044 78888 ? S Feb02 6:00 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 1873 0.0 1.2 269460 86276 ? S Feb02 1:34 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 1875 0.0 1.4 285568 102384 ? S Feb02 0:36 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 2347 0.0 0.8 245448 60984 ? S Feb02 1:47 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 2348 0.0 0.8 247760 63356 ? S Feb02 1:33 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 2362 0.0 1.0 257880 73416 ? S Feb02 1:09 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO"><pre class="notranslate"><code class="notranslate">root 6960 59.2 0.7 160680 51628 ? Rs Feb01 2319:49 /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 32727 0.3 1.1 266008 82860 ? S Feb02 6:29 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 32729 0.2 1.1 265184 82040 ? S Feb02 5:54 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 32730 0.2 1.4 282868 99788 ? S Feb02 5:29 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 750 0.1 1.5 296584 113100 ? S Feb02 3:03 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 917 0.2 1.1 262044 78888 ? S Feb02 6:00 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 1873 0.0 1.2 269460 86276 ? S Feb02 1:34 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 1875 0.0 1.4 285568 102384 ? S Feb02 0:36 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 2347 0.0 0.8 245448 60984 ? S Feb02 1:47 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 2348 0.0 0.8 247760 63356 ? S Feb02 1:33 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO root 2362 0.0 1.0 257880 73416 ? S Feb02 1:09 \_ /$VENV/bin/python /$VENV/manage.py celery worker -Q ads -P prefork --autoscale=10,5 -n $NAME --settings=settings -l INFO </code></pre></div> <p dir="auto">And strace is more interesting. It shows the following loop as the only thing happening in the parent:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="gettimeofday({1391450996, 406286}, NULL) = 0 epoll_wait(4, {{EPOLLIN, {u32=6, u64=22205092589469702}}}, 1023, 1000) = 1 epoll_ctl(4, EPOLL_CTL_DEL, 34, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 67, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 68, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 38, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 10, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 53, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 26, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 59, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 30, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 63, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_ADD, 51, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=51, u64=22205092589469747}}) = -1 EEXIST (File exists) epoll_ctl(4, EPOLL_CTL_ADD, 52, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=52, u64=22205092589469748}}) = -1 EEXIST (File exists) epoll_ctl(4, EPOLL_CTL_ADD, 6, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=6, u64=22205092589469702}}) = -1 EEXIST (File exists)"><pre class="notranslate"><code class="notranslate">gettimeofday({1391450996, 406286}, NULL) = 0 epoll_wait(4, {{EPOLLIN, {u32=6, u64=22205092589469702}}}, 1023, 1000) = 1 epoll_ctl(4, EPOLL_CTL_DEL, 34, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 67, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 68, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 38, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 10, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 53, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 26, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 59, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 30, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_DEL, 63, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLMSG|0x4e9020, {u32=0, u64=22205092589469696}}) = -1 ENOENT (No such file or directory) epoll_ctl(4, EPOLL_CTL_ADD, 51, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=51, u64=22205092589469747}}) = -1 EEXIST (File exists) epoll_ctl(4, EPOLL_CTL_ADD, 52, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=52, u64=22205092589469748}}) = -1 EEXIST (File exists) epoll_ctl(4, EPOLL_CTL_ADD, 6, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=6, u64=22205092589469702}}) = -1 EEXIST (File exists) </code></pre></div> <p dir="auto">Those FDs are pipes according to <code class="notranslate">/proc/$PID/fd</code>. (strace also shows heartbeat/worker chatter from other processes read via the redis socket).</p> <p dir="auto">Restarting the upstart job caused the worker to begin consuming tasks again. I think this is some corner case that isn't being handled well. Kombu's eventio.py has the following:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class _epoll(Poller): # ... def register(self, fd, events): try: self._epoll.register(fd, events) except Exception as exc: if get_errno(exc) != errno.EEXIST: raise def unregister(self, fd): try: self._epoll.unregister(fd) except (socket.error, ValueError, KeyError): pass except (IOError, OSError) as exc: if get_errno(exc) != errno.ENOENT: raise"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-s1">_epoll</span>(<span class="pl-v">Poller</span>): <span class="pl-c"># ...</span> <span class="pl-k">def</span> <span class="pl-en">register</span>(<span class="pl-s1">self</span>, <span class="pl-s1">fd</span>, <span class="pl-s1">events</span>): <span class="pl-k">try</span>: <span class="pl-s1">self</span>.<span class="pl-s1">_epoll</span>.<span class="pl-en">register</span>(<span class="pl-s1">fd</span>, <span class="pl-s1">events</span>) <span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">exc</span>: <span class="pl-k">if</span> <span class="pl-en">get_errno</span>(<span class="pl-s1">exc</span>) <span class="pl-c1">!=</span> <span class="pl-s1">errno</span>.<span class="pl-v">EEXIST</span>: <span class="pl-k">raise</span> <span class="pl-k">def</span> <span class="pl-en">unregister</span>(<span class="pl-s1">self</span>, <span class="pl-s1">fd</span>): <span class="pl-k">try</span>: <span class="pl-s1">self</span>.<span class="pl-s1">_epoll</span>.<span class="pl-en">unregister</span>(<span class="pl-s1">fd</span>) <span class="pl-k">except</span> (<span class="pl-s1">socket</span>.<span class="pl-s1">error</span>, <span class="pl-v">ValueError</span>, <span class="pl-v">KeyError</span>): <span class="pl-k">pass</span> <span class="pl-k">except</span> (<span class="pl-v">IOError</span>, <span class="pl-v">OSError</span>) <span class="pl-k">as</span> <span class="pl-s1">exc</span>: <span class="pl-k">if</span> <span class="pl-en">get_errno</span>(<span class="pl-s1">exc</span>) <span class="pl-c1">!=</span> <span class="pl-s1">errno</span>.<span class="pl-v">ENOENT</span>: <span class="pl-k">raise</span></pre></div> <p dir="auto">We are specifically checking for ENOENT and EEXIST here and silently dropping the exception - it seems like this might be causing a problem for someone further down the stack, but I'm not familiar with this part of celery.</p> <p dir="auto">Any help/pointers appreciated. Let me know what other info is useful as well.</p>
1
<p dir="auto">I have a dropdown inside a nav-collapse, and this is happening:</p> <ul dir="auto"> <li>Load the page in width &lt; 900px</li> <li>Click on btn-navbar to un-collapse</li> <li>Click on dropdown to show the dropdown-menu. Nothing happens.</li> <li>Click twice on btn-navbar to collapse and un-collapse again.</li> <li>Click on dropdown to show the dropdown-menu. Now it works.</li> </ul> <p dir="auto">Inspecting it with firebug I found that the height is fixed the first time, the second time is auto:</p> <p dir="auto"><a href="https://s3.amazonaws.com/i.imm.io/N59y.jpeg" rel="nofollow">https://s3.amazonaws.com/i.imm.io/N59y.jpeg</a><br> <a href="https://s3.amazonaws.com/i.imm.io/N5c7.jpeg" rel="nofollow">https://s3.amazonaws.com/i.imm.io/N5c7.jpeg</a><br> <a href="https://s3.amazonaws.com/i.imm.io/N5bG.jpeg" rel="nofollow">https://s3.amazonaws.com/i.imm.io/N5bG.jpeg</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot;css/bootstrap.css&quot; /&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot;css/bootstrap-responsive.css&quot; /&gt; &lt;script src=&quot;js/jquery.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;js/bootstrap.js&quot;&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class=&quot;navbar&quot;&gt; &lt;div class=&quot;navbar-inner&quot;&gt; &lt;div class=&quot;container&quot;&gt; &lt;!-- .btn-navbar is used as the toggle for collapsed navbar content --&gt; &lt;button class=&quot;btn btn-navbar&quot; data-toggle=&quot;collapse&quot; data-target=&quot;.nav-collapse&quot;&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;/button&gt; &lt;!-- Be sure to leave the brand out there if you want it shown --&gt; &lt;a class=&quot;brand&quot; href=&quot;#&quot;&gt;Project name&lt;/a&gt; &lt;!-- Everything you want hidden at 940px or less, place within here --&gt; &lt;div class=&quot;nav-collapse&quot;&gt; &lt;ul class=&quot;nav pull-right&quot;&gt; &lt;li class=&quot;dropdown&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&gt; Anonymous &lt;b class=&quot;caret&quot;&gt;&lt;/b&gt; &lt;/a&gt; &lt;ul class=&quot;dropdown-menu&quot;&gt; &lt;li&gt; &lt;a href=''&gt;&lt;i class='icon-chevron-right'&gt;&lt;/i&gt; Login&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=''&gt;&lt;i class='icon-plus'&gt;&lt;/i&gt; Register&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><code class="notranslate">&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt; &lt;link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.css" /&gt; &lt;link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-responsive.css" /&gt; &lt;script src="js/jquery.js"&gt;&lt;/script&gt; &lt;script src="js/bootstrap.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="navbar"&gt; &lt;div class="navbar-inner"&gt; &lt;div class="container"&gt; &lt;!-- .btn-navbar is used as the toggle for collapsed navbar content --&gt; &lt;button class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&gt; &lt;span class="icon-bar"&gt;&lt;/span&gt; &lt;span class="icon-bar"&gt;&lt;/span&gt; &lt;span class="icon-bar"&gt;&lt;/span&gt; &lt;/button&gt; &lt;!-- Be sure to leave the brand out there if you want it shown --&gt; &lt;a class="brand" href="#"&gt;Project name&lt;/a&gt; &lt;!-- Everything you want hidden at 940px or less, place within here --&gt; &lt;div class="nav-collapse"&gt; &lt;ul class="nav pull-right"&gt; &lt;li class="dropdown"&gt; &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt; Anonymous &lt;b class="caret"&gt;&lt;/b&gt; &lt;/a&gt; &lt;ul class="dropdown-menu"&gt; &lt;li&gt; &lt;a href=''&gt;&lt;i class='icon-chevron-right'&gt;&lt;/i&gt; Login&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href=''&gt;&lt;i class='icon-plus'&gt;&lt;/i&gt; Register&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre></div>
<p dir="auto">In order to customize the prev/next buttons (with, say, an icon), it is also required to recreate about half the styles associated with <code class="notranslate">.icon-next</code> and <code class="notranslate">.icon-prev</code>. This is because these styles also include</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" .icon-prev { &amp;:before { content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039) } } .icon-next { &amp;:before { content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A) } }"><pre class="notranslate"> .<span class="pl-c1">icon-prev</span> { <span class="pl-ent">&amp;</span><span class="pl-kos">:</span><span class="pl-c1">before</span> { <span class="pl-c1">content</span><span class="pl-kos">:</span> <span class="pl-s">'\2039'</span>;<span class="pl-c1">/</span><span class="pl-c1">/</span> SINGLE LEFT<span class="pl-c1">-</span>POINTING ANGLE QUOTATION MARK (U+2039) } } .<span class="pl-c1">icon-next</span> { <span class="pl-ent">&amp;</span><span class="pl-kos">:</span><span class="pl-c1">before</span> { <span class="pl-c1">content</span><span class="pl-kos">:</span> <span class="pl-s">'\203a'</span>;<span class="pl-c1">/</span><span class="pl-c1">/</span> SINGLE RIGHT<span class="pl-c1">-</span>POINTING ANGLE QUOTATION MARK (U+203A) } }</pre></div> <p dir="auto">I suggest additional classes created <code class="notranslate">.icon-prev-indicator</code> and <code class="notranslate">.icon-next-indicator</code> that just has the content associated with it. these names would avoid any existing icon conflict both in glyphicons and font awesome.</p> <p dir="auto">this is how it currently works (ripped from the sample site)<br> <a href="http://jsfiddle.net/Y9HnH/" rel="nofollow">http://jsfiddle.net/Y9HnH/</a></p> <p dir="auto">how i think it should work<br> <a href="http://jsfiddle.net/fwqvK/" rel="nofollow">http://jsfiddle.net/fwqvK/</a></p> <hr> <p dir="auto">A similar complaint could be made about background styles applied via <code class="notranslate">.carousel-control.left</code> and <code class="notranslate">.carousel-control.right</code></p>
0
<p dir="auto">Exactly like you support the _error.js file.<br> This would solve a common question people are asking (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="185235752" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/71" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/71/hovercard" href="https://github.com/vercel/next.js/issues/71">#71</a>, <a href="https://twitter.com/luisrudge/status/790946965123112960" rel="nofollow">https://twitter.com/luisrudge/status/790946965123112960</a>).</p> <p dir="auto">The idea is look for a _layout.js file. If it exists, render it passing the current route's content as children.</p>
<p dir="auto">Having animated route transitions would be nice, as this is one of the many benefits through client-side routing. Doing so should be left up to the user in my opinion (some people prefer CSS transitions over more fine-grained control with <code class="notranslate">react-motion</code> etc). As I understand it, one would need to modify the top-level App component.</p> <p dir="auto">The <a href="https://github.com/zeit/next.js/blob/master/client/next.js#L13">client entry file</a> seems to look for a globally assigned <code class="notranslate">__NEXT_DATA__.app</code> variable but I can't find any documentation on that.</p>
1
<p dir="auto">We'll be able to translate the site for other idioms?</p>
<p dir="auto">I am planning on translating the docs into Korean, should I be distributing it on my own?</p>
1
<p dir="auto">Steps to reproduce error:</p> <ol dir="auto"> <li>Setup symfony 2.8</li> <li>Use the configuration setting security: firewals: main: form_login: intention:</li> <li>Observe that <strong>none</strong> of the error messages intended to help correct the deprecated setting show up, only the generic error is reported, negating the utility of the 20 lines committed to fix this setting.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (isset($options['intention'])) { if (isset($options['csrf_token_id'])) { throw new \InvalidArgumentException(sprintf('You should only define an option for one of &quot;intention&quot; or &quot;csrf_token_id&quot; for the &quot;%s&quot;. Use the &quot;csrf_token_id&quot; as it replaces &quot;intention&quot;.', __CLASS__)); } @trigger_error('The &quot;intention&quot; option for the '.__CLASS__.' is deprecated since version 2.8 and will be removed in 3.0. Use the &quot;csrf_token_id&quot; option instead.', E_USER_DEPRECATED); $options['csrf_token_id'] = $options['intention']; }"><pre class="notranslate"><code class="notranslate">if (isset($options['intention'])) { if (isset($options['csrf_token_id'])) { throw new \InvalidArgumentException(sprintf('You should only define an option for one of "intention" or "csrf_token_id" for the "%s". Use the "csrf_token_id" as it replaces "intention".', __CLASS__)); } @trigger_error('The "intention" option for the '.__CLASS__.' is deprecated since version 2.8 and will be removed in 3.0. Use the "csrf_token_id" option instead.', E_USER_DEPRECATED); $options['csrf_token_id'] = $options['intention']; } </code></pre></div> <p dir="auto">Lines 51 through 60 in UsernamePasswordFormAuthenticationListener.php are intended to notify the change of config property names but the code never reaches this point of execution because the property fails during the configuration build process:<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/symfony/symfony/blob/04508658b52274dfd7a6d7502d565c764e569e5d/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php#L51">symfony/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php</a> </p> <p class="mb-0 color-fg-muted"> Line 51 in <a data-pjax="true" class="commit-tease-sha" href="/symfony/symfony/commit/04508658b52274dfd7a6d7502d565c764e569e5d">0450865</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L51" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="51"></td> <td id="LC51" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (isset(<span class="pl-s1"><span class="pl-c1">$</span>options</span>[<span class="pl-s">'intention'</span>])) { </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Additionally, MainConfiguration is intended to report configuration errors related to the csrf_token_id property, but it does not:<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/743e670f4acbcb5863fd0248c97bd25050f3f44f/hovercard" href="https://github.com/symfony/symfony/commit/743e670f4acbcb5863fd0248c97bd25050f3f44f"><tt>743e670</tt></a></p> <p dir="auto">When clearing the cache, only the generic error message is reported, probably because the configuration checks are in the wrong place in the hierarchy under the function addFirewallsSection():</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized option &quot;identity&quot; under &quot;security.firewalls.main.form_login&quot; "><pre class="notranslate"><code class="notranslate">[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized option "identity" under "security.firewalls.main.form_login" </code></pre></div> <p dir="auto">To make matters worse, contributors believe that changes are "transparent" when they are not. And the utility of MainConfiguration error checking is diminished by not reporting the intended correction on the command line. This is a systemic issue because there are 20 extra committed lines of unnecessary code that do not support their own purpose, either the lines in UsernamePasswordFormAuthenticationListener should be reached because MainConfiguration does not care about the superfluous setting, or MainConfiguration should work as designed and report errors with config, including using the console interface.</p>
<p dir="auto"><strong>Description</strong><br> You currently cannot use the profiler if you do not have the twig bundle installed. If you do not install the twig-bundle, you'll have an error <code class="notranslate">The service "web_profiler.controller.profiler" has a dependency on a non-existent service "twig".</code>, even if you don't need twig in your app (api style application).</p> <p dir="auto">The profiler should declare its own twig service, looking into its templates, rather than forcing the dev to have <del>a <code class="notranslate">templates</code> directory and</del> an explicit dependency to <code class="notranslate">twig-bundle</code>.</p> <p dir="auto"><strong>edit</strong>: it seems that it's okay if you don't have the <code class="notranslate">templates</code> directory. My bad.</p>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">feature</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">There is no way to define a custom mode.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">I'm making this up -</p> <p dir="auto"><code class="notranslate">--mode npm://package-name</code></p> <p dir="auto">Why?</p> <ul dir="auto"> <li>I still want source maps so I can debug in production. I thought this is what people are doing?</li> <li>I want to share this config with friends</li> <li>I want a hash in the filename right?</li> <li>As webpack maintainers, you want to know the most popular configs... you can track these back now</li> </ul> <p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.</strong></p>
<h1 dir="auto">Bug report</h1> <p dir="auto">When having several named entry points and sharing a lib with <code class="notranslate">eager:true</code>, the lib code is duplicated to all resulting bundles.</p> <p dir="auto">Example for entry points:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" entry: { main: &quot;./shell/main&quot;, styles: &quot;./shell/styles.css&quot;, polyfills: &quot;./shell/polyfills&quot; },"><pre class="notranslate"> <span class="pl-s1">entry</span>: <span class="pl-kos">{</span> <span class="pl-c1">main</span>: <span class="pl-s">"./shell/main"</span><span class="pl-kos">,</span> <span class="pl-c1">styles</span>: <span class="pl-s">"./shell/styles.css"</span><span class="pl-kos">,</span> <span class="pl-c1">polyfills</span>: <span class="pl-s">"./shell/polyfills"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span></pre></div> <p dir="auto">Example for shared:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" shared: { &quot;rxjs&quot;: { eager: true, singleton: true, }, }"><pre class="notranslate"> shared: <span class="pl-kos">{</span> <span class="pl-s">"rxjs"</span>: <span class="pl-kos">{</span> <span class="pl-c1">eager</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">singleton</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">The shared lib is duplicated to all bundles (main and polyfills in the example shown).</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">The shared lib should not be duplicated but only put into one bundle</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: Every version since webpack 5<br> Node.js version: 16.13.2 LTS<br> Operating System: windows<br> Additional tools: no</p>
0
<p dir="auto">I have ran into this error on the parameter broadcast step of <code class="notranslate">torch.nn.parallel.replicate</code>.<br> It sounds like this, to be precise: <code class="notranslate">NCCL Error 1: unhandled cuda error</code>.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="248647185" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/2332" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/2332/hovercard" href="https://github.com/pytorch/pytorch/issues/2332">#2332</a> is possibly related.</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">A module might declare a buffer of unknown size in its init function by using:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="self.register_buffer('name', None)"><pre class="notranslate"><span class="pl-s1">self</span>.<span class="pl-en">register_buffer</span>(<span class="pl-s">'name'</span>, <span class="pl-c1">None</span>)</pre></div> <p dir="auto">The buffer might later contain a valid tensor. Saving this (now non-None) buffer with <code class="notranslate">state_dict()</code> works but loading this state dict to a newly instantiated module (where the buffer is currently None) with <code class="notranslate">load_state_dict()</code> fails as the buffer is unexpected.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Define a module with an empty buffer in the init function.</li> <li>Set the buffer to something valid (e.g., in <code class="notranslate">forward</code>).</li> <li>Call <code class="notranslate">state_dict()</code></li> <li>Instantiated a second instance of the module</li> <li>call <code class="notranslate">load_state_dict()</code> on the second module</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto"><code class="notranslate">load_state_dict()</code> replaces the currently None buffer with the non-None saved buffer from the state_dict.</p> <h2 dir="auto">Environment</h2> <p dir="auto">Collecting environment information...<br> PyTorch version: 1.2.0<br> Is debug build: No<br> CUDA used to build PyTorch: 10.0.130</p> <p dir="auto">OS: CentOS Linux 7 (Core)<br> GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)<br> CMake version: version 2.8.12.2</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: No<br> CUDA runtime version: No CUDA<br> GPU models and configuration: No CUDA<br> Nvidia driver version: No CUDA<br> cuDNN version: No CUDA</p> <p dir="auto">Versions of relevant libraries:<br> [pip] msgpack-numpy==0.4.4.3<br> [pip] numpy==1.17.2<br> [pip] pytorch-pretrained-bert==0.6.2<br> [pip] torch==1.2.0<br> [pip] torchvision==0.4.0a0<br> [conda] _pytorch_select 0.2 gpu_0<br> [conda] blas 1.0 mkl<br> [conda] mkl 2019.4 243<br> [conda] mkl-service 2.3.0 py37he904b0f_0<br> [conda] mkl_fft 1.0.14 py37ha843d7b_0<br> [conda] mkl_random 1.1.0 py37hd6b4f25_0<br> [conda] pytorch 1.2.0 py3.7_cuda10.0.130_cudnn7.6.2_0 pytorch<br> [conda] pytorch-pretrained-bert 0.6.2 pypi_0 pypi<br> [conda] torch 1.0.1.post2 pypi_0 pypi<br> [conda] torchvision 0.2.2.post3 pypi_0 pypi</p>
0
<p dir="auto">The following typescript (using the new module system syntax)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import &quot;foo&quot;;"><pre class="notranslate"><code class="notranslate">import "foo"; </code></pre></div> <p dir="auto">generates the following invalid javascript:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="define([&quot;require&quot;, &quot;exports&quot;, &quot;foo&quot;], function (require, exports, ) "><pre class="notranslate"><code class="notranslate">define(["require", "exports", "foo"], function (require, exports, ) </code></pre></div>
<p dir="auto">Given this code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// foo.ts import './bar'; import baz from './baz'; baz; // bar.ts export default function bar() {} // baz.ts export default function baz() {}"><pre class="notranslate"><span class="pl-c">// foo.ts</span> <span class="pl-k">import</span> <span class="pl-s">'./bar'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">baz</span> <span class="pl-k">from</span> <span class="pl-s">'./baz'</span><span class="pl-kos">;</span> <span class="pl-s1">baz</span><span class="pl-kos">;</span> <span class="pl-c">// bar.ts</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">function</span> <span class="pl-en">bar</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">// baz.ts</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">function</span> <span class="pl-en">baz</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">Repro: <code class="notranslate">tsc -m amd foo.ts</code></p> <p dir="auto">Expected output:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="define([&quot;require&quot;, &quot;exports&quot;, './baz', './bar'], function (require, exports, baz_1) { baz_1.default; });"><pre class="notranslate"><span class="pl-en">define</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">"require"</span><span class="pl-kos">,</span> <span class="pl-s">"exports"</span><span class="pl-kos">,</span> <span class="pl-s">'./baz'</span><span class="pl-kos">,</span> <span class="pl-s">'./bar'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">require</span><span class="pl-kos">,</span> <span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s1">baz_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">baz_1</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Actual output:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="define([&quot;require&quot;, &quot;exports&quot;, './bar', './baz'], function (require, exports, , baz_1) { baz_1.default; });"><pre class="notranslate"><span class="pl-en">define</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">"require"</span><span class="pl-kos">,</span> <span class="pl-s">"exports"</span><span class="pl-kos">,</span> <span class="pl-s">'./bar'</span><span class="pl-kos">,</span> <span class="pl-s">'./baz'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">require</span><span class="pl-kos">,</span> <span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-kos">,</span> <span class="pl-s1">baz_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">baz_1</span><span class="pl-kos">.</span><span class="pl-c1">default</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">Version: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/TypeScript/commit/fb44a23b758f212c722360fbc4790c539d55bf94/hovercard" href="https://github.com/microsoft/TypeScript/commit/fb44a23b758f212c722360fbc4790c539d55bf94"><tt>fb44a23</tt></a></p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18363.836] PowerToys version: v0.18.1 PowerToy module for which you are reporting the bug (if applicable): PowerLauncher"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18363.836] PowerToys version: v0.18.1 PowerToy module for which you are reporting the bug (if applicable): PowerLauncher </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">search anything related to powerlauncher like <code class="notranslate">Launcher</code></p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Exclude itself in result, because it doesn't make sense.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">PowerLauncher will likely appear in the top of the search result.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13158903/82727660-7f631100-9d1e-11ea-8052-b7b18e550c52.png"><img src="https://user-images.githubusercontent.com/13158903/82727660-7f631100-9d1e-11ea-8052-b7b18e550c52.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 PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18363 PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open PowerToys Run</li> <li>Type "Launcher"</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">PowerToys Run doesn't shows itself</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">PowerToys Run shows itself</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/61519853/82358305-9ea02c80-9a06-11ea-8e81-5b70057b40bc.png"><img src="https://user-images.githubusercontent.com/61519853/82358305-9ea02c80-9a06-11ea-8e81-5b70057b40bc.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Here are 2 ways to drop rows from a pandas data-frame based on a condition:</p> <ol dir="auto"> <li> <p dir="auto"><code class="notranslate">df = df[condition]</code></p> </li> <li> <p dir="auto"><code class="notranslate">df.drop(df[condition].index, axis=0, inplace=True)</code></p> </li> </ol> <p dir="auto">The first one does not do it <em>inplace</em>, right?</p> <p dir="auto">The second one does not work as expected when the index is not unique, so the user would need to <code class="notranslate">reset_index()</code> then <code class="notranslate">set_index()</code> back.</p> <p dir="auto"><strong>Question</strong><br> Would it be possible to have column dropping based directly on the condition?<br> e.g.<br> <code class="notranslate">df.drop(condition, axis=0, inplace=True)</code></p>
<p dir="auto">sum() is giving 0.0 as the total, rather than NaN, when the entire row/column is NaN.</p> <p dir="auto">Note that this bug does not arise in pandas 17.1 with numpy 1.11.0, running on Ubuntu.</p> <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np df = pd.DataFrame([[np.nan,np.nan,np.nan,np.nan], [1,np.nan,np.nan,np.nan],[2,2,2,np.nan]],columns=['a','b','c','d']) df.sum(skipna=True) # should be true by default. Same result if argument is omitted"><pre class="notranslate"><code class="notranslate">import numpy as np df = pd.DataFrame([[np.nan,np.nan,np.nan,np.nan], [1,np.nan,np.nan,np.nan],[2,2,2,np.nan]],columns=['a','b','c','d']) df.sum(skipna=True) # should be true by default. Same result if argument is omitted </code></pre></div> <h4 dir="auto">Actual Output</h4> <p dir="auto">a 3.0<br> b 2.0<br> c 2.0<br> d 0.0</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">a 3.0<br> b 2.0<br> c 2.0<br> d NaN</p> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.6.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 15.6.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8</p> <p dir="auto">pandas: 0.18.1<br> nose: 1.3.7<br> pip: 8.1.2<br> setuptools: 23.1.0<br> Cython: 0.24<br> numpy: 1.11.1<br> scipy: 0.17.1<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 4.1.2<br> sphinx: None<br> patsy: 0.4.1<br> dateutil: 2.2<br> pytz: 2014.7<br> blosc: None<br> bottleneck: 1.1.0<br> tables: 3.2.2<br> numexpr: 2.6.0<br> matplotlib: 1.5.1<br> openpyxl: 2.3.4<br> xlrd: 0.9.4<br> xlwt: None<br> xlsxwriter: None<br> lxml: 3.6.0<br> bs4: 4.4.1<br> html5lib: 0.999<br> httplib2: 0.8<br> apiclient: 1.2<br> sqlalchemy: 1.0.12<br> pymysql: None<br> psycopg2: 2.5.4 (dt dec pq3 ext)<br> jinja2: 2.7.2<br> boto: 2.40.0<br> pandas_datareader: None</p>
0
<p dir="auto">The script that demonstrate this can be found <a href="https://github.com/yuyichao/explore/blob/master/julia/kw_forward/kw_forward.jl">here</a>. Pasted below</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/julia -f f() = nothing forward_nothing(func) = func() forward_pos_only(func, args...) = func(args...) forward_kw(func, args...; kws...) = func(args...; kws...) do_sth(a, b, c) = begin global g = a * b * c end macro time_forward(ex) quote println($(Expr(:quote, ex))) gc() @time for i in 1:10000000 $(esc(ex)) end end end @time_forward forward_nothing(f) @time_forward forward_pos_only(f) @time_forward forward_kw(f) @time_forward do_sth(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;) @time_forward do_sth(1, 2, 3) @time_forward do_sth(1.2, 2.3, 3.4) @time_forward (do_sth(1, 2, 3); do_sth(1.2, 2.3, 3.4)) "><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span>!/usr/bin/julia -f</span> <span class="pl-en">f</span>() <span class="pl-k">=</span> <span class="pl-c1">nothing</span> <span class="pl-en">forward_nothing</span>(func) <span class="pl-k">=</span> <span class="pl-c1">func</span>() <span class="pl-en">forward_pos_only</span>(func, args<span class="pl-k">...</span>) <span class="pl-k">=</span> <span class="pl-c1">func</span>(args<span class="pl-k">...</span>) <span class="pl-en">forward_kw</span>(func, args<span class="pl-k">...</span>; kws<span class="pl-k">...</span>) <span class="pl-k">=</span> <span class="pl-c1">func</span>(args<span class="pl-k">...</span>; kws<span class="pl-k">...</span>) <span class="pl-en">do_sth</span>(a, b, c) <span class="pl-k">=</span> <span class="pl-k">begin</span> <span class="pl-k">global</span> g <span class="pl-k">=</span> a <span class="pl-k">*</span> b <span class="pl-k">*</span> c <span class="pl-k">end</span> <span class="pl-k">macro</span> <span class="pl-en">time_forward</span>(ex) <span class="pl-k">quote</span> <span class="pl-c1">println</span>(<span class="pl-k">$</span>(<span class="pl-c1">Expr</span>(<span class="pl-c1">:quote</span>, ex))) <span class="pl-c1">gc</span>() <span class="pl-c1">@time</span> <span class="pl-k">for</span> i <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10000000</span> <span class="pl-k">$</span>(<span class="pl-c1">esc</span>(ex)) <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-c1">@time_forward</span> <span class="pl-c1">forward_nothing</span>(f) <span class="pl-c1">@time_forward</span> <span class="pl-c1">forward_pos_only</span>(f) <span class="pl-c1">@time_forward</span> <span class="pl-c1">forward_kw</span>(f) <span class="pl-c1">@time_forward</span> <span class="pl-c1">do_sth</span>(<span class="pl-s"><span class="pl-pds">"</span>a<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>c<span class="pl-pds">"</span></span>) <span class="pl-c1">@time_forward</span> <span class="pl-c1">do_sth</span>(<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>) <span class="pl-c1">@time_forward</span> <span class="pl-c1">do_sth</span>(<span class="pl-c1">1.2</span>, <span class="pl-c1">2.3</span>, <span class="pl-c1">3.4</span>) <span class="pl-c1">@time_forward</span> (<span class="pl-c1">do_sth</span>(<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>); <span class="pl-c1">do_sth</span>(<span class="pl-c1">1.2</span>, <span class="pl-c1">2.3</span>, <span class="pl-c1">3.4</span>)) </pre></div> <p dir="auto">The output of the script on my laptop</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="forward_nothing(f) elapsed time: 0.019369954 seconds (0 bytes allocated) forward_pos_only(f) elapsed time: 6.2e-8 seconds (0 bytes allocated) forward_kw(f) elapsed time: 0.95345393 seconds (960000000 bytes allocated, 33.34% gc time) do_sth(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;) elapsed time: 1.014413397 seconds (800000000 bytes allocated, 28.80% gc time) do_sth(1,2,3) elapsed time: 0.04512597 seconds (0 bytes allocated) do_sth(1.2,2.3,3.4) elapsed time: 0.125168819 seconds (160000000 bytes allocated, 37.53% gc time) begin do_sth(1,2,3) do_sth(1.2,2.3,3.4) end elapsed time: 0.157331348 seconds (160000000 bytes allocated, 30.24% gc time)"><pre class="notranslate"><span class="pl-c1">forward_nothing</span>(f) elapsed time<span class="pl-k">:</span> <span class="pl-c1">0.019369954</span> seconds (<span class="pl-c1">0</span> bytes allocated) <span class="pl-c1">forward_pos_only</span>(f) elapsed time<span class="pl-k">:</span> <span class="pl-c1">6.2e-8</span> seconds (<span class="pl-c1">0</span> bytes allocated) <span class="pl-c1">forward_kw</span>(f) elapsed time<span class="pl-k">:</span> <span class="pl-c1">0.95345393</span> seconds (<span class="pl-c1">960000000</span> bytes allocated, <span class="pl-c1">33.34</span><span class="pl-k">%</span> gc time) <span class="pl-c1">do_sth</span>(<span class="pl-s"><span class="pl-pds">"</span>a<span class="pl-pds">"</span></span>,<span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>,<span class="pl-s"><span class="pl-pds">"</span>c<span class="pl-pds">"</span></span>) elapsed time<span class="pl-k">:</span> <span class="pl-c1">1.014413397</span> seconds (<span class="pl-c1">800000000</span> bytes allocated, <span class="pl-c1">28.80</span><span class="pl-k">%</span> gc time) <span class="pl-c1">do_sth</span>(<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>) elapsed time<span class="pl-k">:</span> <span class="pl-c1">0.04512597</span> seconds (<span class="pl-c1">0</span> bytes allocated) <span class="pl-c1">do_sth</span>(<span class="pl-c1">1.2</span>,<span class="pl-c1">2.3</span>,<span class="pl-c1">3.4</span>) elapsed time<span class="pl-k">:</span> <span class="pl-c1">0.125168819</span> seconds (<span class="pl-c1">160000000</span> bytes allocated, <span class="pl-c1">37.53</span><span class="pl-k">%</span> gc time) <span class="pl-k">begin</span> <span class="pl-c1">do_sth</span>(<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>) <span class="pl-c1">do_sth</span>(<span class="pl-c1">1.2</span>,<span class="pl-c1">2.3</span>,<span class="pl-c1">3.4</span>) <span class="pl-k">end</span> elapsed time<span class="pl-k">:</span> <span class="pl-c1">0.157331348</span> seconds (<span class="pl-c1">160000000</span> bytes allocated, <span class="pl-c1">30.24</span><span class="pl-k">%</span> gc time)</pre></div> <p dir="auto">There are several interesting things here,</p> <ol dir="auto"> <li>It seems that the compiler can inline <code class="notranslate">f(args...)</code> and figure out it is useless and eliminate the loop altogether (I don't think my cpu can excute a million loops in tens of nanosecond) but it cannot do it for <code class="notranslate">f()</code>. This particular case isn't very interesting but I'm wondering if there's any missing optimizations here.</li> <li>Forwarding keyword argument is very costy, even when there's nothing to be forwarded (probably a big part of it is memory allocation?). Although it would be nice to make keyword argument fast in general, the slowness of forwarding empty keyword argument means that it is very costy to support keyword arguments. One example (also how I discover this issue) is a <a href="https://github.com/JuliaLang/julia/issues/7045#issuecomment-68486528" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/7045/hovercard">version of <code class="notranslate">invoke</code> that supports keyword arguments</a>. This version is ~3 times slower than the builtin invoke and a version without keyword argument support and simply forward to the builtin <code class="notranslate">invoke</code> is as fast as the builtin one.</li> <li>Just for comparison, I've also included some other random functions and it seems that keyword arguments are much more expensive than global variables and is as expensive as concatenating strings. What I don't quite understand either is that why is it necessary to allocate memory when assigning floating point numbers to a global variable but not for integers? (Edit: it seems that the integer version does no allocation because of the cache of boxed value.)</li> </ol> <p dir="auto">Anothing thing I've noticed is that the extra keyword argument got by the functions is in a different format (<code class="notranslate">Array{(Symbol, Any), 1}</code>) from the format of argument (<code class="notranslate">Array{Any, 1}</code>) to the <code class="notranslate">.env.kwsorter</code>. Is it necessary to do this conversion? This probably won't affect the performance for empty forwarding but feels inefficient in general.</p> <p dir="auto">Test done on current master as of a few hours ago.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 0.4.0-dev+2369 Commit bab9ec5* (2015-01-02 01:47 UTC) Platform Info: System: Linux (x86_64-unknown-linux-gnu) CPU: Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz WORD_SIZE: 64 BLAS: libblas LAPACK: liblapack LIBM: libm LLVM: libLLVM-3.3"><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 0.4.0-dev+2369 Commit bab9ec5* (2015-01-02 01:47 UTC) Platform Info: System: Linux (x86_64-unknown-linux-gnu) CPU: Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz WORD_SIZE: 64 BLAS: libblas LAPACK: liblapack LIBM: libm LLVM: libLLVM-3.3 </code></pre></div> <p dir="auto">The llvm version installed is 3.5 and I have no idea why it prints llvm-3.3....</p>
<p dir="auto">This may just be naiveté on my part with regards to writing Julia functions, but I'm seeing a performance hit when adding keyword arguments to function calls.</p> <p dir="auto">Basically, I was looking at the implementation of QuickSort and wanted to see if by adding a user-defined cutoff for insertion sort (rather than the built-in constant of 20) I could improve performance. What I found was that simply adding the keyword arguments to function definitions reduced performance substantially (even when the keywords aren't used in the calls). I ran the following both times (results further down):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="v = rand(1_000_000) @time sort(v) @time sort(v)"><pre class="notranslate"><code class="notranslate">v = rand(1_000_000) @time sort(v) @time sort(v) </code></pre></div> <p dir="auto">I'm calling <code class="notranslate">sort()</code> twice because the second time is always faster (presumably because of the VM generating code the first time around?) Before my change the first call took about 0.23 seconds and the second around 0.10. After the change the first call took about 0.30 seconds and the second 0.16.</p> <p dir="auto">Any ideas what is causing this to happen? I think if I reference this issue in a commit you'll be able to see my code. Otherwise, I'll just copy-and-paste the diff.</p>
1
<p dir="auto">After upgrading from numpy version 1.16.2 to 1.16.3, <code class="notranslate">f2py -c ... --fcompiler=intelem</code> fails with <code class="notranslate">CompilerNotFound</code>. Rolling back to version 1.16.2 everything works as expected.</p> <p dir="auto">This doesn't happen with <code class="notranslate">--fcompiler=gnu95</code> which works on both versions.</p> <p dir="auto">Just prior to the traceback I get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="customize IntelEM64TCCompiler using build_ext customize IntelEM64TFCompiler Found executable /opt/intel/compilers_and_libraries_2018.5.231/mac/bin/intel64/ifort Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.5.231 Build 20180823 Copyright (C) 1985-2018 Intel Corporation. All rights reserved."><pre class="notranslate"><code class="notranslate">customize IntelEM64TCCompiler using build_ext customize IntelEM64TFCompiler Found executable /opt/intel/compilers_and_libraries_2018.5.231/mac/bin/intel64/ifort Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.5.231 Build 20180823 Copyright (C) 1985-2018 Intel Corporation. All rights reserved. </code></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/Users/shahar/miniconda3/bin/f2py&quot;, line 10, in &lt;module&gt; sys.exit(main()) File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/f2py/f2py2e.py&quot;, line 683, in main run_compile() File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/f2py/f2py2e.py&quot;, line 650, in run_compile setup(ext_modules=[ext]) File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/core.py&quot;, line 171, in setup return old_setup(**new_attr) File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/core.py&quot;, line 148, in setup dist.run_commands() File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py&quot;, line 966, in run_commands self.run_command(cmd) File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py&quot;, line 985, in run_command cmd_obj.run() File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/command/build.py&quot;, line 47, in run old_build.run(self) File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/command/build.py&quot;, line 135, in run self.run_command(cmd_name) File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/cmd.py&quot;, line 313, in run_command self.distribution.run_command(command) File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py&quot;, line 985, in run_command cmd_obj.run() File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/command/build_ext.py&quot;, line 226, in run fcompiler.customize(self.distribution) File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 511, in customize get_flags('opt', oflags) File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 502, in get_flags flags.extend(getattr(self.flag_vars, tag)) File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/environment.py&quot;, line 40, in __getattr__ return self._get_var(name, conf_desc) File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/environment.py&quot;, line 56, in _get_var var = self._hook_handler(name, hook) File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 709, in _environment_hook return hook() File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/intel.py&quot;, line 128, in get_flags_opt v = self.get_version() File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 432, in get_version raise CompilerNotFound() numpy.distutils.fcompiler.CompilerNotFound"><pre class="notranslate"><span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/bin/f2py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">10</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-en">main</span>()) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/f2py/f2py2e.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">683</span>, <span class="pl-s1">in</span> <span class="pl-s1">main</span> <span class="pl-en">run_compile</span>() <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/f2py/f2py2e.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">650</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_compile</span> <span class="pl-en">setup</span>(<span class="pl-s1">ext_modules</span><span class="pl-c1">=</span>[<span class="pl-s1">ext</span>]) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/core.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">171</span>, <span class="pl-s1">in</span> <span class="pl-s1">setup</span> <span class="pl-k">return</span> <span class="pl-en">old_setup</span>(<span class="pl-c1">**</span><span class="pl-s1">new_attr</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/core.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">148</span>, <span class="pl-s1">in</span> <span class="pl-s1">setup</span> <span class="pl-s1">dist</span>.<span class="pl-en">run_commands</span>() <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">966</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_commands</span> <span class="pl-s1">self</span>.<span class="pl-en">run_command</span>(<span class="pl-s1">cmd</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">985</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_command</span> <span class="pl-s1">cmd_obj</span>.<span class="pl-en">run</span>() <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/command/build.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">47</span>, <span class="pl-s1">in</span> <span class="pl-s1">run</span> <span class="pl-s1">old_build</span>.<span class="pl-en">run</span>(<span class="pl-s1">self</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/command/build.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">135</span>, <span class="pl-s1">in</span> <span class="pl-s1">run</span> <span class="pl-s1">self</span>.<span class="pl-en">run_command</span>(<span class="pl-s1">cmd_name</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/cmd.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">313</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_command</span> <span class="pl-s1">self</span>.<span class="pl-s1">distribution</span>.<span class="pl-en">run_command</span>(<span class="pl-s1">command</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">985</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_command</span> <span class="pl-s1">cmd_obj</span>.<span class="pl-en">run</span>() <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/command/build_ext.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">226</span>, <span class="pl-s1">in</span> <span class="pl-s1">run</span> <span class="pl-s1">fcompiler</span>.<span class="pl-en">customize</span>(<span class="pl-s1">self</span>.<span class="pl-s1">distribution</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">511</span>, <span class="pl-s1">in</span> <span class="pl-s1">customize</span> <span class="pl-en">get_flags</span>(<span class="pl-s">'opt'</span>, <span class="pl-s1">oflags</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">502</span>, <span class="pl-s1">in</span> <span class="pl-s1">get_flags</span> <span class="pl-s1">flags</span>.<span class="pl-en">extend</span>(<span class="pl-en">getattr</span>(<span class="pl-s1">self</span>.<span class="pl-s1">flag_vars</span>, <span class="pl-s1">tag</span>)) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/environment.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">40</span>, <span class="pl-s1">in</span> <span class="pl-s1">__getattr__</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_get_var</span>(<span class="pl-s1">name</span>, <span class="pl-s1">conf_desc</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/environment.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">56</span>, <span class="pl-s1">in</span> <span class="pl-s1">_get_var</span> <span class="pl-s1">var</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_hook_handler</span>(<span class="pl-s1">name</span>, <span class="pl-s1">hook</span>) <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">709</span>, <span class="pl-s1">in</span> <span class="pl-s1">_environment_hook</span> <span class="pl-k">return</span> <span class="pl-en">hook</span>() <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/intel.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">128</span>, <span class="pl-s1">in</span> <span class="pl-s1">get_flags_opt</span> <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">get_version</span>() <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">432</span>, <span class="pl-s1">in</span> <span class="pl-s1">get_version</span> <span class="pl-k">raise</span> <span class="pl-v">CompilerNotFound</span>() <span class="pl-s1">numpy</span>.<span class="pl-s1">distutils</span>.<span class="pl-s1">fcompiler</span>.<span class="pl-v">CompilerNotFound</span></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.16.3 3.7.2 | packaged by conda-forge | (default, Mar 19 2019, 20:46:22) [Clang 4.0.1 (tags/RELEASE_401/final)]"><pre class="notranslate"><code class="notranslate">1.16.3 3.7.2 | packaged by conda-forge | (default, Mar 19 2019, 20:46:22) [Clang 4.0.1 (tags/RELEASE_401/final)] </code></pre></div>
<p dir="auto">Hi,<br> I have intel compilers installed, but get this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc customize IntelEM64TFCompiler Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifort Traceback (most recent call last): File &quot;setup.py&quot;, line 418, in &lt;module&gt;setup_package() File &quot;setup.py&quot;, line 414, in setup_packagesetup(**metadata) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/core.py&quot;, line 169, in setupreturn old_setup(**new_attr) File &quot;/usr/lib/python3.6/site-packages/setuptools/__init__.py&quot;, line 129, in setupreturn distutils.core.setup(**attrs) File &quot;/usr/lib/python3.6/distutils/core.py&quot;, line 148, in setupdist.run_commands() File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 955, in run_commandsself.run_command(cmd) File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 974, in run_commandcmd_obj.run() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_clib.py&quot;, line 75, in runself.run_command('build_src') File &quot;/usr/lib/python3.6/distutils/cmd.py&quot;, line 313, in run_commandself.distribution.run_command(command) File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 974, in run_commandcmd_obj.run() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 148, in runself.build_sources() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 165, in build_sourcesself.build_extension_sources(ext) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 324, in build_extension_sourcessources = self.generate_sources(sources, ext) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 377, in generate_sourcessource = func(extension, build_dir) File &quot;scipy/_lib/setup.py&quot;, line 32, in get_messagestream_configif config_cmd.check_func('open_memstream', decl=True, call=True): File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py&quot;, line 312, in check_funcself._check_compiler() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py&quot;, line 83, in _check_compilerself.fcompiler.customize(self.distribution) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 499, in customizeget_flags('opt', oflags) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 490, in get_flagsflags.extend(getattr(self.flag_vars, tag)) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/environment.py&quot;, line 39, in __getattr__return self._get_var(name, conf_desc) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/environment.py&quot;, line 53, in _get_varvar = self._hook_handler(name, hook) File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 697, in _environment_hookreturn hook() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/intel.py&quot;, line 125, in get_flags_optv = self.get_version() File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 430, in get_versionraise CompilerNotFound() numpy.distutils.fcompiler.CompilerNotFound"><pre class="notranslate"><code class="notranslate">Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc customize IntelEM64TFCompiler Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifort Traceback (most recent call last): File "setup.py", line 418, in &lt;module&gt;setup_package() File "setup.py", line 414, in setup_packagesetup(**metadata) File "/usr/lib/python3.6/site-packages/numpy/distutils/core.py", line 169, in setupreturn old_setup(**new_attr) File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setupreturn distutils.core.setup(**attrs) File "/usr/lib/python3.6/distutils/core.py", line 148, in setupdist.run_commands() File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commandsself.run_command(cmd) File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run() File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_clib.py", line 75, in runself.run_command('build_src') File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command) File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run() File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 148, in runself.build_sources() File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 165, in build_sourcesself.build_extension_sources(ext) File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 324, in build_extension_sourcessources = self.generate_sources(sources, ext) File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 377, in generate_sourcessource = func(extension, build_dir) File "scipy/_lib/setup.py", line 32, in get_messagestream_configif config_cmd.check_func('open_memstream', decl=True, call=True): File "/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py", line 312, in check_funcself._check_compiler() File "/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py", line 83, in _check_compilerself.fcompiler.customize(self.distribution) File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 499, in customizeget_flags('opt', oflags) File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 490, in get_flagsflags.extend(getattr(self.flag_vars, tag)) File "/usr/lib/python3.6/site-packages/numpy/distutils/environment.py", line 39, in __getattr__return self._get_var(name, conf_desc) File "/usr/lib/python3.6/site-packages/numpy/distutils/environment.py", line 53, in _get_varvar = self._hook_handler(name, hook) File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 697, in _environment_hookreturn hook() File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/intel.py", line 125, in get_flags_optv = self.get_version() File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 430, in get_versionraise CompilerNotFound() numpy.distutils.fcompiler.CompilerNotFound </code></pre></div>
1
<p dir="auto">Error messages are too abstract..<br> Link to circleci log: <a href="https://app.circleci.com/jobs/github/pytorch/pytorch/4513748" rel="nofollow">https://app.circleci.com/jobs/github/pytorch/pytorch/4513748</a><br> PR doesn't seem to be related to the failure: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="566045225" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/33409" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/33409/hovercard" href="https://github.com/pytorch/pytorch/pull/33409">#33409</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="====================================================================== ERROR: test_abs_cpu (__main__.TestFuser) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper fn(*args, **kwargs) File &quot;test_jit_fuser.py&quot;, line 79, in test_abs_cpu self._test_fused_abs() File &quot;test_jit_fuser.py&quot;, line 74, in _test_fused_abs self.assertAllFused(func.graph_for(a)) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py&quot;, line 2094, in _graph_for self(*args, **kwargs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call return prof_callable(func_call, *args, **kwargs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable return callable(*args, **kwargs) RuntimeError: Caught an unknown exception! ====================================================================== "><pre class="notranslate"><code class="notranslate">====================================================================== ERROR: test_abs_cpu (__main__.TestFuser) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py", line 592, in wrapper fn(*args, **kwargs) File "test_jit_fuser.py", line 79, in test_abs_cpu self._test_fused_abs() File "test_jit_fuser.py", line 74, in _test_fused_abs self.assertAllFused(func.graph_for(a)) File "C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py", line 2094, in _graph_for self(*args, **kwargs) File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py", line 87, in prof_func_call return prof_callable(func_call, *args, **kwargs) File "C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py", line 84, in prof_callable return callable(*args, **kwargs) RuntimeError: Caught an unknown exception! ====================================================================== </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/suo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/suo">@suo</a></p>
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">Error text:</p> <div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="====================================================================== ERROR: test_abs_cpu (__main__.TestFuser) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper fn(*args, **kwargs) File &quot;test_jit_fuser.py&quot;, line 79, in test_abs_cpu self._test_fused_abs() File &quot;test_jit_fuser.py&quot;, line 74, in _test_fused_abs self.assertAllFused(func.graph_for(a)) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py&quot;, line 2094, in _graph_for self(*args, **kwargs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call return prof_callable(func_call, *args, **kwargs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable return callable(*args, **kwargs) RuntimeError: Caught an unknown exception! ====================================================================== ERROR: test_chunk_correctness (__main__.TestFuser) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper fn(*args, **kwargs) File &quot;test_jit_fuser.py&quot;, line 223, in test_chunk_correctness return self._test_chunk_correctness(self, 'cpu') File &quot;test_jit_fuser.py&quot;, line 218, in _test_chunk_correctness self.checkScript(fn, [tensor]) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 398, in checkScript opt_script_outputs = scripted_fn(*recording_inputs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call return prof_callable(func_call, *args, **kwargs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable return callable(*args, **kwargs) RuntimeError: Caught an unknown exception! ====================================================================== ERROR: test_scalar (__main__.TestFuser) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper fn(*args, **kwargs) File &quot;test_jit_fuser.py&quot;, line 851, in test_scalar ge = self.checkScript(fn, (x, y)) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 398, in checkScript opt_script_outputs = scripted_fn(*recording_inputs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call return prof_callable(func_call, *args, **kwargs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable return callable(*args, **kwargs) RuntimeError: Caught an unknown exception! ====================================================================== ERROR: test_where_and_typing (__main__.TestFuser) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py&quot;, line 592, in wrapper fn(*args, **kwargs) File &quot;test_jit_fuser.py&quot;, line 906, in test_where_and_typing self.assertAllFused(script_f.graph_for(x, y), except_for={'prim::TupleConstruct'}) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py&quot;, line 2094, in _graph_for self(*args, **kwargs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 87, in prof_func_call return prof_callable(func_call, *args, **kwargs) File &quot;C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py&quot;, line 84, in prof_callable return callable(*args, **kwargs) RuntimeError: Caught an unknown exception! ---------------------------------------------------------------------- Ran 46 tests in 11.883s FAILED (errors=4, skipped=10) Traceback (most recent call last): File &quot;run_test.py&quot;, line 486, in &lt;module&gt; main() File &quot;run_test.py&quot;, line 479, in main raise RuntimeError(message) RuntimeError: test_jit_fuser failed!"><pre class="notranslate">====================================================================== <span class="pl-en">ERROR</span>: <span class="pl-s">test_abs_cpu (__main__.TestFuser)</span> ---------------------------------------------------------------------- Traceback (most recent call last): File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">592</span>, in <span class="pl-en">wrapper</span> fn(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">79</span>, in <span class="pl-en">test_abs_cpu</span> <span class="pl-c1">self</span>._test_fused_abs() File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">74</span>, in <span class="pl-en">_test_fused_abs</span> <span class="pl-c1">self</span>.assertAllFused(func.graph_for(a)) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py"</span>, line <span class="pl-c1">2094</span>, in <span class="pl-en">_graph_for</span> <span class="pl-c1">self</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">87</span>, in <span class="pl-en">prof_func_call</span> <span class="pl-k">return</span> prof_callable(func_call, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">84</span>, in <span class="pl-en">prof_callable</span> <span class="pl-k">return</span> <span class="pl-c1">callable</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) <span class="pl-en">RuntimeError</span>: <span class="pl-s">Caught an unknown exception!</span> ====================================================================== <span class="pl-en">ERROR</span>: <span class="pl-s">test_chunk_correctness (__main__.TestFuser)</span> ---------------------------------------------------------------------- Traceback (most recent call last): File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">592</span>, in <span class="pl-en">wrapper</span> fn(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">223</span>, in <span class="pl-en">test_chunk_correctness</span> <span class="pl-k">return</span> <span class="pl-c1">self</span>._test_chunk_correctness(<span class="pl-c1">self</span>, <span class="pl-s"><span class="pl-pds">'</span>cpu<span class="pl-pds">'</span></span>) File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">218</span>, in <span class="pl-en">_test_chunk_correctness</span> <span class="pl-c1">self</span>.checkScript(fn, [tensor]) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">398</span>, in <span class="pl-en">checkScript</span> opt_script_outputs <span class="pl-k">=</span> scripted_fn(<span class="pl-k">*</span>recording_inputs) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">87</span>, in <span class="pl-en">prof_func_call</span> <span class="pl-k">return</span> prof_callable(func_call, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">84</span>, in <span class="pl-en">prof_callable</span> <span class="pl-k">return</span> <span class="pl-c1">callable</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) <span class="pl-en">RuntimeError</span>: <span class="pl-s">Caught an unknown exception!</span> ====================================================================== <span class="pl-en">ERROR</span>: <span class="pl-s">test_scalar (__main__.TestFuser)</span> ---------------------------------------------------------------------- Traceback (most recent call last): File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">592</span>, in <span class="pl-en">wrapper</span> fn(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">851</span>, in <span class="pl-en">test_scalar</span> ge <span class="pl-k">=</span> <span class="pl-c1">self</span>.checkScript(fn, (x, y)) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">398</span>, in <span class="pl-en">checkScript</span> opt_script_outputs <span class="pl-k">=</span> scripted_fn(<span class="pl-k">*</span>recording_inputs) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">87</span>, in <span class="pl-en">prof_func_call</span> <span class="pl-k">return</span> prof_callable(func_call, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">84</span>, in <span class="pl-en">prof_callable</span> <span class="pl-k">return</span> <span class="pl-c1">callable</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) <span class="pl-en">RuntimeError</span>: <span class="pl-s">Caught an unknown exception!</span> ====================================================================== <span class="pl-en">ERROR</span>: <span class="pl-s">test_where_and_typing (__main__.TestFuser)</span> ---------------------------------------------------------------------- Traceback (most recent call last): File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\jit_utils.py"</span>, line <span class="pl-c1">592</span>, in <span class="pl-en">wrapper</span> fn(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"test_jit_fuser.py"</span>, line <span class="pl-c1">906</span>, in <span class="pl-en">test_where_and_typing</span> <span class="pl-c1">self</span>.assertAllFused(script_f.graph_for(x, y), <span class="pl-v">except_for</span><span class="pl-k">=</span>{<span class="pl-s"><span class="pl-pds">'</span>prim::TupleConstruct<span class="pl-pds">'</span></span>}) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\jit\__init__.py"</span>, line <span class="pl-c1">2094</span>, in <span class="pl-en">_graph_for</span> <span class="pl-c1">self</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">87</span>, in <span class="pl-en">prof_func_call</span> <span class="pl-k">return</span> prof_callable(func_call, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) File <span class="pl-s">"C:\Users\circleci\project\build\win_tmp\build\torch\testing\_internal\common_utils.py"</span>, line <span class="pl-c1">84</span>, in <span class="pl-en">prof_callable</span> <span class="pl-k">return</span> <span class="pl-c1">callable</span>(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs) <span class="pl-en">RuntimeError</span>: <span class="pl-s">Caught an unknown exception!</span> ---------------------------------------------------------------------- Ran 46 tests in 11.883s FAILED (errors=4, skipped=10) Traceback (most recent call last): File <span class="pl-s">"run_test.py"</span>, line <span class="pl-c1">486</span>, in <span class="pl-en">&lt;module&gt;</span> main() File <span class="pl-s">"run_test.py"</span>, line <span class="pl-c1">479</span>, in <span class="pl-en">main</span> <span class="pl-k">raise</span> <span class="pl-c1">RuntimeError</span>(message) <span class="pl-en">RuntimeError</span>: <span class="pl-s">test_jit_fuser failed!</span></pre></div> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>python setup.py build</li> <li>python run_test,py -i jit_fuser</li> </ol> <h2 dir="auto">Expected behavior</h2> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): master</li> <li>OS (e.g., Linux): Windows</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): source</li> <li>Build command you used (if compiling from source): source</li> <li>Python version: 3.6</li> <li>CUDA/cuDNN version: 10.1</li> <li>GPU models and configuration: Tesla P4</li> <li>Any other relevant information:</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">This is likely due to the AVX512 auto vectorizer supported in the latest build of VS 2019. I'll try to figure out how to correctly detect whether it is supported on a client machine.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/suo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/suo">@suo</a></p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery -A celeryacl report software -&gt; celery:4.3.0 (rhubarb) kombu:4.5.0 py:3.6.8 billiard:3.6.0.0 py-amqp:2.4.2 platform -&gt; system:Linux arch:64bit kernel version:4.18.0-1013-azure imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:db+mysql+pymysql://celery:**@X.X.X.X:XXXX/celeryresults"><pre class="notranslate"><code class="notranslate">celery -A celeryacl report software -&gt; celery:4.3.0 (rhubarb) kombu:4.5.0 py:3.6.8 billiard:3.6.0.0 py-amqp:2.4.2 platform -&gt; system:Linux arch:64bit kernel version:4.18.0-1013-azure imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:db+mysql+pymysql://celery:**@X.X.X.X:XXXX/celeryresults </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip freeze amqp==2.4.2 asn1crypto==0.24.0 bcrypt==3.1.6 billiard==3.6.0.0 celery==4.3.0 cffi==1.12.2 Click==7.0 cryptography==2.6.1 Flask==1.0.2 Flask-Cors==3.0.7 itsdangerous==1.1.0 Jinja2==2.10 kombu==4.5.0 MarkupSafe==1.1.1 mysql-connector-python==8.0.15 netmiko==2.3.3 paramiko==2.4.2 protobuf==3.7.1 pyasn1==0.4.5 pycparser==2.19 PyMySQL==0.9.3 PyNaCl==1.3.0 pyserial==3.4 pytz==2018.9 PyYAML==5.1 scp==0.13.2 six==1.12.0 SQLAlchemy==1.2.14 textfsm==0.4.1 vine==1.3.0 Werkzeug==0.15.2"><pre class="notranslate"><code class="notranslate">pip freeze amqp==2.4.2 asn1crypto==0.24.0 bcrypt==3.1.6 billiard==3.6.0.0 celery==4.3.0 cffi==1.12.2 Click==7.0 cryptography==2.6.1 Flask==1.0.2 Flask-Cors==3.0.7 itsdangerous==1.1.0 Jinja2==2.10 kombu==4.5.0 MarkupSafe==1.1.1 mysql-connector-python==8.0.15 netmiko==2.3.3 paramiko==2.4.2 protobuf==3.7.1 pyasn1==0.4.5 pycparser==2.19 PyMySQL==0.9.3 PyNaCl==1.3.0 pyserial==3.4 pytz==2018.9 PyYAML==5.1 scp==0.13.2 six==1.12.0 SQLAlchemy==1.2.14 textfsm==0.4.1 vine==1.3.0 Werkzeug==0.15.2 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">With the following configured "result_extended" to true I expected to see more meta data in the backend results DB but I don't. I just see the standard results.</p> <p dir="auto">app = Celery('tasks',<br> backend='db+mysql+pymysql://XXX:<a href="mailto:[email protected]">[email protected]</a>:XXXX/celeryresults',<br> broker='amqp://xxxx:<a href="mailto:[email protected]">[email protected]</a>/celery',<br> result_extended=True)</p> <h1 dir="auto">Actual Behavior</h1>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 4.3.0 and 4.4.0rc3</p> <details> <summary><b><code class="notranslate">celery report</code> Output: </b> </summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/lib/python3.6/dist-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use &quot;pip install psycopg2-binary&quot; instead. For details see: &lt;http://initd.org/psycopg/docs/install.html#binary-install-from-pypi&gt;. &quot;&quot;&quot;) Traceback (most recent call last): File &quot;/usr/local/bin/celery&quot;, line 11, in &lt;module&gt; sys.exit(main()) File &quot;/usr/local/lib/python3.6/dist-packages/celery/__main__.py&quot;, line 16, in main _main() File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 322, in main cmd.execute_from_commandline(argv) File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 496, in execute_from_commandline super(CeleryCommand, self).execute_from_commandline(argv))) File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 305, in execute_from_commandline return self.handle_argv(self.prog_name, argv[1:]) File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 488, in handle_argv return self.execute(command, argv) File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 420, in execute ).run_from_argv(self.prog_name, argv[1:], command=argv[0]) File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 309, in run_from_argv sys.argv if argv is None else argv, command) File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 393, in handle_argv return self(*args, **options) File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 253, in __call__ ret = self.run(*args, **kwargs) File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py&quot;, line 371, in run self.out(self.app.bugreport()) File &quot;/usr/local/lib/python3.6/dist-packages/celery/bin/base.py&quot;, line 413, in out print(s, file=fh or self.stdout) UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 6271: ordinal not in range(128)"><pre class="notranslate"><code class="notranslate">/usr/local/lib/python3.6/dist-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: &lt;http://initd.org/psycopg/docs/install.html#binary-install-from-pypi&gt;. """) Traceback (most recent call last): File "/usr/local/bin/celery", line 11, in &lt;module&gt; sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/celery/__main__.py", line 16, in main _main() File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 322, in main cmd.execute_from_commandline(argv) File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 496, in execute_from_commandline super(CeleryCommand, self).execute_from_commandline(argv))) File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 305, in execute_from_commandline return self.handle_argv(self.prog_name, argv[1:]) File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 488, in handle_argv return self.execute(command, argv) File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 420, in execute ).run_from_argv(self.prog_name, argv[1:], command=argv[0]) File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 309, in run_from_argv sys.argv if argv is None else argv, command) File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 393, in handle_argv return self(*args, **options) File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 253, in __call__ ret = self.run(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/celery/bin/celery.py", line 371, in run self.out(self.app.bugreport()) File "/usr/local/lib/python3.6/dist-packages/celery/bin/base.py", line 413, in out print(s, file=fh or self.stdout) UnicodeEncodeError: 'ascii' codec can't encode character '\xe5' in position 6271: ordinal not in range(128) </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.6.7</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==2.5.1 asn1crypto==0.24.0 billiard==3.6.1.0 celery==4.4.0rc3 certifi==2019.6.16 chardet==3.0.4 cryptography==2.1.4 Django==2.1.12 django-celery-beat==1.5.0 django-celery-results==1.1.2 django-pyodbc-azure==2.1.0.0 django-redis==4.8.0 django-rest-auth==0.9.5 django-timezone-field==3.0 djangorestframework==3.9.4 environs==4.2.0 flower==1.0.0 humanize==0.5.1 idna==2.6 importlib-metadata==0.20 keyring==10.6.0 keyrings.alt==3.0 kombu==4.6.4 marshmallow==3.0.1 more-itertools==7.2.0 psycopg2==2.7.5 pycrypto==2.6.1 pygobject==3.26.1 pyodbc==4.0.23 python-crontab==2.3.8 python-dateutil==2.8.0 python-dotenv==0.10.3 pytz==2019.2 pyxdg==0.25 redis==3.3.0 requests==2.22.0 SecretStorage==2.3.1 six==1.11.0 sqlparse==0.3.0 tornado==6.0.3 urllib3==1.25.3 vine==1.3.0 zipp==0.6.0"><pre class="notranslate"><code class="notranslate">amqp==2.5.1 asn1crypto==0.24.0 billiard==3.6.1.0 celery==4.4.0rc3 certifi==2019.6.16 chardet==3.0.4 cryptography==2.1.4 Django==2.1.12 django-celery-beat==1.5.0 django-celery-results==1.1.2 django-pyodbc-azure==2.1.0.0 django-redis==4.8.0 django-rest-auth==0.9.5 django-timezone-field==3.0 djangorestframework==3.9.4 environs==4.2.0 flower==1.0.0 humanize==0.5.1 idna==2.6 importlib-metadata==0.20 keyring==10.6.0 keyrings.alt==3.0 kombu==4.6.4 marshmallow==3.0.1 more-itertools==7.2.0 psycopg2==2.7.5 pycrypto==2.6.1 pygobject==3.26.1 pyodbc==4.0.23 python-crontab==2.3.8 python-dateutil==2.8.0 python-dotenv==0.10.3 pytz==2019.2 pyxdg==0.25 redis==3.3.0 requests==2.22.0 SecretStorage==2.3.1 six==1.11.0 sqlparse==0.3.0 tornado==6.0.3 urllib3==1.25.3 vine==1.3.0 zipp==0.6.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> The settings.py: </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CELERY_BROKER_URL = 'amqp://crunchy:[email protected]//' CELERY_RESULT_BACKEND = 'django-db' CELERY_CACHE_BACKEND = 'django-cache' # celery setting. CELERY_CACHE_BACKEND = 'default' # django setting. CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'my_cache_table', } } CELERY_BEAT_SCHEDULE = { 'mountPackages': { 'task': 'sge.tasks.mountPackages', 'schedule': crontab(),#crontab(minute='0', hour='7-22/1',day_of_week='mon-sat'), # execute every hour on day weeks from 7AM to 22PM 'options': {'queue': 'sender'} }, 'notProcessedPackages': { 'task': 'sge.tasks.notProcessedPackages', 'schedule': crontab(),#crontab(minute='30', hour='7-22/3' ,day_of_week='mon-sat'), # execute every three hours on day weeks from 7AM to 10PM 'options': {'queue': 'unused'} }, 'getNotas': { 'task': 'sge.tasks.getNotas', 'schedule': crontab(minute='50', hour='19' ,day_of_week='mon-sat'), # execute every 8PM from monday to saturdar 'options': {'queue': 'grades'} } }"><pre class="notranslate"><code class="notranslate">CELERY_BROKER_URL = 'amqp://crunchy:[email protected]//' CELERY_RESULT_BACKEND = 'django-db' CELERY_CACHE_BACKEND = 'django-cache' # celery setting. CELERY_CACHE_BACKEND = 'default' # django setting. CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'my_cache_table', } } CELERY_BEAT_SCHEDULE = { 'mountPackages': { 'task': 'sge.tasks.mountPackages', 'schedule': crontab(),#crontab(minute='0', hour='7-22/1',day_of_week='mon-sat'), # execute every hour on day weeks from 7AM to 22PM 'options': {'queue': 'sender'} }, 'notProcessedPackages': { 'task': 'sge.tasks.notProcessedPackages', 'schedule': crontab(),#crontab(minute='30', hour='7-22/3' ,day_of_week='mon-sat'), # execute every three hours on day weeks from 7AM to 10PM 'options': {'queue': 'unused'} }, 'getNotas': { 'task': 'sge.tasks.getNotas', 'schedule': crontab(minute='50', hour='19' ,day_of_week='mon-sat'), # execute every 8PM from monday to saturdar 'options': {'queue': 'grades'} } } </code></pre></div> <p dir="auto">celery.py</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from __future__ import absolute_import import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'iis.settings') app = Celery('iis',) app.config_from_object('django.conf:settings', namespace='CELERY',) app.autodiscover_tasks()"><pre class="notranslate"><code class="notranslate">from __future__ import absolute_import import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'iis.settings') app = Celery('iis',) app.config_from_object('django.conf:settings', namespace='CELERY',) app.autodiscover_tasks() </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">The URLs on celery should be replaced by the parameters defined in the settings.py</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">The result URL and transport URL in the config aren't update to the URLs placed in the Django settings.py.<br> shell&gt;&gt; celery -A iis worker -Q unused -l info<br> -------------- celery@celery-worker-unused-6bb747fcc5-ql4w5 v4.4.0rc3 (cliffs)<br> ---- **** -----<br> --- * *** * -- Linux-3.10.0-957.27.2.el7.x86_64-x86_64-with-Ubuntu-18.04-bionic 2019-09-02 15:07:10<br> -- * - **** ---</p> <ul dir="auto"> <li>** ---------- [config]</li> <li>** ---------- .&gt; app: iis:0x7fc6a4802f98</li> <li>** ---------- .&gt; transport: redis://redis:6379//</li> <li>** ---------- .&gt; results: redis://redis:6379/</li> <li>*** --- * --- .&gt; concurrency: 8 (prefork)<br> -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker)<br> --- ***** -----<br> -------------- [queues]<br> .&gt; unused exchange=unused(direct) key=unused</li> </ul> <p dir="auto">[tasks]<br> . sge.tasks.getNotas<br> . sge.tasks.mountPackages<br> . sge.tasks.notNeededPackage<br> . sge.tasks.notProcessedPackages<br> . sge.tasks.requestNotasAlunos<br> . sge.tasks.sendPackages</p> <p dir="auto">[2019-09-02 15:07:11,202: INFO/MainProcess] Connected to redis://redis:6379//<br> [2019-09-02 15:07:11,215: INFO/MainProcess] mingle: searching for neighbors<br> ^C</p>
0
<p dir="auto">The full page is considered extra small in actual pixel size, so it uses the xs styles for layout (col-xs-...).</p> <p dir="auto">This is a problem, in our case, we have a mobile view and a print view. The print view cannot be the same as the mobile view and the layout gets blown apart as a result.</p> <p dir="auto">My interim solution is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@media print { [class*=&quot;col-sm-&quot;] { float: left; } }"><pre class="notranslate"><code class="notranslate">@media print { [class*="col-sm-"] { float: left; } } </code></pre></div> <p dir="auto">Please consider adding col-print-... classes or addressing this conflict in some other way that allows extra small and print layouts.</p>
<p dir="auto">When printing in Safari 7 and Firefox 25 the grid carries over to the print style, but in Chrome 34 and IE 11 everything stacks when printed. Any insights here?</p>
1
<pre class="notranslate">What steps will reproduce the problem? 1. <a href="http://play.golang.org/p/lV4Ag-Fw_7" rel="nofollow">http://play.golang.org/p/lV4Ag-Fw_7</a> 2. 3. What is the expected output? program should terminate normally What do you see instead? deadlock Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? linux Which version are you using? (run 'go version') 1.0.3 Please provide any additional information below.</pre>
<p dir="auto">In CL 20489, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/crawshaw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/crawshaw">@crawshaw</a> observed that he was able to change the cmd/internal/obj's objfile writing code and cmd/link/internal/ld's objfile reading code, but no tests failed to indicate that cmd/internal/goobj should be updated too.</p> <p dir="auto">cmd/internal/goobj used to be used by cmd/newlink, but that was deleted in CL 20380 (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/golang/go/commit/fb880b8a03f33b6a1809d76e7673717875c74606/hovercard" href="https://github.com/golang/go/commit/fb880b8a03f33b6a1809d76e7673717875c74606"><tt>fb880b8</tt></a>).</p> <p dir="auto">It's also still used in cmd/internal/objfile/goobj.go, but that file isn't otherwise used either.</p> <p dir="auto">I imagine that because of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134645661" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/14386" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/14386/hovercard" href="https://github.com/golang/go/issues/14386">#14386</a>, we might as well just remove the dead code.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rsc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rsc">@rsc</a></p>
0
<p dir="auto">Using 0.209.0 on Windows 7 Pro 64-bit, Atom (even in safe mode) will no longer open a new first-and-only window with the session state (open folder and open files) from the previous last-to-be-closed Atom window.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="79667606" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/6917" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/6917/hovercard" href="https://github.com/atom/atom/issues/6917">#6917</a> seems similar, but that was fixed. I guess this might be a regression, unless it was a deliberate choice. I found no issue or changelog or release notes that mentioned it.</p> <p dir="auto">I believe 0.208.0 restored the previous session, and the last version in which the previous session wasn't restored was some time ago, maybe around 0.197.0 or so but not sure. Even then, File / Exit seemed to allow session restoring, while the window's close button did not. Now, neither seem to allow the previous session to be restored. (File / Close Window doesn't currently work either, but I hadn't checked it closely in previous versions.)</p>
<p dir="auto">Atom 0.209.0 doesn't save open files and folders on exit (0.208.0 made this). After restart, there is only empty "untitled" file.<br> Here's my config:</p> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;*&quot;: &quot;exception-reporting&quot;: userId: &quot;480b20de-e736-263e-a240-4205e8c90e87&quot; welcome: showOnStartup: false core: themes: [ &quot;one-dark-ui&quot; &quot;solarized-dark-syntax&quot; ] editor: fontFamily: &quot;'M+ 1mn regular'&quot; invisibles: {} minimap: plugins: &quot;git-diff&quot;: true bookmarks: true selection: true &quot;color-highlight&quot;: true &quot;find-and-replace&quot;: true &quot;atom-beautify&quot;: _analyticsUserId: &quot;13adc827-7ceb-4c02-bdb7-7a6d1b173567&quot; c_configPath: &quot;/usr/share/uncrustify/defaults.cfg&quot; cpp_configPath: &quot;/usr/share/uncrustify/defaults.cfg&quot; cs_configPath: &quot;/usr/share/uncrustify/defaults.cfg&quot; objectivec_configPath: &quot;/usr/share/uncrustify/defaults.cfg&quot; java_configPath: &quot;/usr/share/uncrustify/defaults.cfg&quot; tabs: usePreviewTabs: true linter: {} &quot;git-plus&quot;: wordDiff: false &quot;merge-conflicts&quot;: {} &quot;linter-clang&quot;: clangDefaultCFlags: &quot;-Wall -Wextra -std=c99&quot; clangDefaultCppFlags: &quot;-Wall -Wextra -std=c++11&quot; &quot;atom-color-highlight&quot;: {} &quot;autocomplete-clang&quot;: {} &quot;open-recent&quot;: {}"><pre class="notranslate"><span class="pl-s"><span class="pl-pds">"</span>*<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>exception-reporting<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">userId</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>480b20de-e736-263e-a240-4205e8c90e87<span class="pl-pds">"</span></span> <span class="pl-v">welcome</span><span class="pl-k">:</span> <span class="pl-v">showOnStartup</span><span class="pl-k">:</span> <span class="pl-c1">false</span> <span class="pl-v">core</span><span class="pl-k">:</span> <span class="pl-v">themes</span><span class="pl-k">:</span> [ <span class="pl-s"><span class="pl-pds">"</span>one-dark-ui<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>solarized-dark-syntax<span class="pl-pds">"</span></span> ] <span class="pl-v">editor</span><span class="pl-k">:</span> <span class="pl-v">fontFamily</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>'M+ 1mn regular'<span class="pl-pds">"</span></span> <span class="pl-v">invisibles</span><span class="pl-k">:</span> {} <span class="pl-v">minimap</span><span class="pl-k">:</span> <span class="pl-v">plugins</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>git-diff<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-v">bookmarks</span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-v">selection</span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-s"><span class="pl-pds">"</span>color-highlight<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-s"><span class="pl-pds">"</span>find-and-replace<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-s"><span class="pl-pds">"</span>atom-beautify<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">_analyticsUserId</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>13adc827-7ceb-4c02-bdb7-7a6d1b173567<span class="pl-pds">"</span></span> <span class="pl-v">c_configPath</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>/usr/share/uncrustify/defaults.cfg<span class="pl-pds">"</span></span> <span class="pl-v">cpp_configPath</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>/usr/share/uncrustify/defaults.cfg<span class="pl-pds">"</span></span> <span class="pl-v">cs_configPath</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>/usr/share/uncrustify/defaults.cfg<span class="pl-pds">"</span></span> <span class="pl-v">objectivec_configPath</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>/usr/share/uncrustify/defaults.cfg<span class="pl-pds">"</span></span> <span class="pl-v">java_configPath</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>/usr/share/uncrustify/defaults.cfg<span class="pl-pds">"</span></span> <span class="pl-v">tabs</span><span class="pl-k">:</span> <span class="pl-v">usePreviewTabs</span><span class="pl-k">:</span> <span class="pl-c1">true</span> <span class="pl-v">linter</span><span class="pl-k">:</span> {} <span class="pl-s"><span class="pl-pds">"</span>git-plus<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">wordDiff</span><span class="pl-k">:</span> <span class="pl-c1">false</span> <span class="pl-s"><span class="pl-pds">"</span>merge-conflicts<span class="pl-pds">"</span></span><span class="pl-k">:</span> {} <span class="pl-s"><span class="pl-pds">"</span>linter-clang<span class="pl-pds">"</span></span><span class="pl-k">:</span> <span class="pl-v">clangDefaultCFlags</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>-Wall -Wextra -std=c99<span class="pl-pds">"</span></span> <span class="pl-v">clangDefaultCppFlags</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">"</span>-Wall -Wextra -std=c++11<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>atom-color-highlight<span class="pl-pds">"</span></span><span class="pl-k">:</span> {} <span class="pl-s"><span class="pl-pds">"</span>autocomplete-clang<span class="pl-pds">"</span></span><span class="pl-k">:</span> {} <span class="pl-s"><span class="pl-pds">"</span>open-recent<span class="pl-pds">"</span></span><span class="pl-k">:</span> {}</pre></div> <p dir="auto">0.209.0 built from sources.</p>
1
<p dir="auto">When the name of a variable begins with "var",VSC will make "var" as a kind of color and make the end of its name as a different kind of color.<br> However,if the name of a variable is "<em>var</em>",it will make its name as a kind color.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8530043/13721271/95c81ab6-e85b-11e5-9c10-f021ec277584.png"><img src="https://cloud.githubusercontent.com/assets/8530043/13721271/95c81ab6-e85b-11e5-9c10-f021ec277584.png" alt="-1" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>VERSION:0.10.10</li> <li>THEME:Light+</li> <li>NODEJS(My Project):v4.2.3(I used ES6)</li> <li>PLATFORM:Windows 10</li> </ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10532611/13596334/26e5ec28-e512-11e5-8f45-298892f1d25a.png"><img src="https://cloud.githubusercontent.com/assets/10532611/13596334/26e5ec28-e512-11e5-8f45-298892f1d25a.png" alt="image" style="max-width: 100%;"></a></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="return new vscode.Variable(property.name, displayValue, variablesReference);"><pre class="notranslate"><span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-s1">vscode</span><span class="pl-kos">.</span><span class="pl-c1">Variable</span><span class="pl-kos">(</span><span class="pl-s1">property</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">,</span> <span class="pl-s1">displayValue</span><span class="pl-kos">,</span> <span class="pl-s1">variablesReference</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10532611/13596347/45992a0e-e512-11e5-847e-af3a2c6e32ad.png"><img src="https://cloud.githubusercontent.com/assets/10532611/13596347/45992a0e-e512-11e5-847e-af3a2c6e32ad.png" alt="image" style="max-width: 100%;"></a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="angular.module('app')"><pre class="notranslate"><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">'app'</span><span class="pl-kos">)</span></pre></div> <p dir="auto">This is since the VS Code February release.</p>
1
<p dir="auto">It would be great if Pandas Series got an info method, like Pandas DataFrame. My main interest is to find out memory usage.</p>
1
<p dir="auto">I'm getting a crash both with latest master and with 0.4.6 after loading CategoricalArrays.jl and calling <code class="notranslate">gc()</code>. You can get the code from the <code class="notranslate">nl/crash</code> branch.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type &quot;?help&quot; for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.6.0-dev.456 (2016-09-03 13:57 UTC) _/ |\__'_|_|_|\__'_| | Commit a9140fd* (0 days old master) |__/ | x86_64-redhat-linux julia&gt; using CategoricalArrays INFO: Recompiling stale cache file /home/milan/.julia/lib/v0.6/CategoricalArrays.ji for module CategoricalArrays. julia&gt; gc() GC error (probable corruption) : Allocations: 2519259 (Pool: 2518041; Big: 1218); GC: 2 &lt;?#0x7f85f4112870::&lt;circular reference @-1&gt;&gt; signal (6): Aborted while loading no file, in expression starting on line 0 gsignal at /lib64/libc.so.6 (unknown line) abort at /lib64/libc.so.6 (unknown line) push_root at /home/milan/Dev/julia/src/gc.c:1478 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] gc_mark_module at /home/milan/Dev/julia/src/gc.c:1218 push_root at /home/milan/Dev/julia/src/gc.c:1429 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] gc_mark_module at /home/milan/Dev/julia/src/gc.c:1218 push_root at /home/milan/Dev/julia/src/gc.c:1429 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] gc_mark_module at /home/milan/Dev/julia/src/gc.c:1218 push_root at /home/milan/Dev/julia/src/gc.c:1429 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] gc_mark_module at /home/milan/Dev/julia/src/gc.c:1218 push_root at /home/milan/Dev/julia/src/gc.c:1429 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] pre_mark at /home/milan/Dev/julia/src/gc.c:1515 _jl_gc_collect at /home/milan/Dev/julia/src/gc.c:1709 [inlined] jl_gc_collect at /home/milan/Dev/julia/src/gc.c:1865 gc at ./base.jl:145 unknown function (ip: 0x7f85e315de7f) jl_call_method_internal at /home/milan/Dev/julia/src/julia_internal.h:189 [inlined] jl_apply_generic at /home/milan/Dev/julia/src/gf.c:1931 do_call at /home/milan/Dev/julia/src/interpreter.c:66 eval at /home/milan/Dev/julia/src/interpreter.c:205 jl_toplevel_eval_flex at /home/milan/Dev/julia/src/toplevel.c:619 [inlined] jl_toplevel_eval at /home/milan/Dev/julia/src/toplevel.c:641 jl_toplevel_eval_in_warn at /home/milan/Dev/julia/src/builtins.c:590 eval at ./boot.jl:234 unknown function (ip: 0x7f87f6301cdf) jl_call_method_internal at /home/milan/Dev/julia/src/julia_internal.h:189 [inlined] jl_apply_generic at /home/milan/Dev/julia/src/gf.c:1931 eval_user_input at ./REPL.jl:66 unknown function (ip: 0x7f85e3156a06) jl_call_method_internal at /home/milan/Dev/julia/src/julia_internal.h:189 [inlined] jl_apply_generic at /home/milan/Dev/julia/src/gf.c:1931 macro expansion at ./REPL.jl:97 [inlined] #3 at ./event.jl:68 unknown function (ip: 0x7f85e314df2f) jl_call_method_internal at /home/milan/Dev/julia/src/julia_internal.h:189 [inlined] jl_apply_generic at /home/milan/Dev/julia/src/gf.c:1931 jl_apply at /home/milan/Dev/julia/src/julia.h:1364 [inlined] start_task at /home/milan/Dev/julia/src/task.c:259 unknown function (ip: 0xffffffffffffffff) Allocations: 2519259 (Pool: 2518041; Big: 1218); GC: 2 Aborted (core dumped) "><pre lang="_" class="notranslate"><code class="notranslate"> _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.6.0-dev.456 (2016-09-03 13:57 UTC) _/ |\__'_|_|_|\__'_| | Commit a9140fd* (0 days old master) |__/ | x86_64-redhat-linux julia&gt; using CategoricalArrays INFO: Recompiling stale cache file /home/milan/.julia/lib/v0.6/CategoricalArrays.ji for module CategoricalArrays. julia&gt; gc() GC error (probable corruption) : Allocations: 2519259 (Pool: 2518041; Big: 1218); GC: 2 &lt;?#0x7f85f4112870::&lt;circular reference @-1&gt;&gt; signal (6): Aborted while loading no file, in expression starting on line 0 gsignal at /lib64/libc.so.6 (unknown line) abort at /lib64/libc.so.6 (unknown line) push_root at /home/milan/Dev/julia/src/gc.c:1478 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] gc_mark_module at /home/milan/Dev/julia/src/gc.c:1218 push_root at /home/milan/Dev/julia/src/gc.c:1429 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1368 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] gc_mark_module at /home/milan/Dev/julia/src/gc.c:1218 push_root at /home/milan/Dev/julia/src/gc.c:1429 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] push_root at /home/milan/Dev/julia/src/gc.c:1466 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] gc_mark_module at /home/milan/Dev/julia/src/gc.c:1218 push_root at /home/milan/Dev/julia/src/gc.c:1429 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] gc_mark_module at /home/milan/Dev/julia/src/gc.c:1218 push_root at /home/milan/Dev/julia/src/gc.c:1429 gc_push_root at /home/milan/Dev/julia/src/gc.c:1189 [inlined] pre_mark at /home/milan/Dev/julia/src/gc.c:1515 _jl_gc_collect at /home/milan/Dev/julia/src/gc.c:1709 [inlined] jl_gc_collect at /home/milan/Dev/julia/src/gc.c:1865 gc at ./base.jl:145 unknown function (ip: 0x7f85e315de7f) jl_call_method_internal at /home/milan/Dev/julia/src/julia_internal.h:189 [inlined] jl_apply_generic at /home/milan/Dev/julia/src/gf.c:1931 do_call at /home/milan/Dev/julia/src/interpreter.c:66 eval at /home/milan/Dev/julia/src/interpreter.c:205 jl_toplevel_eval_flex at /home/milan/Dev/julia/src/toplevel.c:619 [inlined] jl_toplevel_eval at /home/milan/Dev/julia/src/toplevel.c:641 jl_toplevel_eval_in_warn at /home/milan/Dev/julia/src/builtins.c:590 eval at ./boot.jl:234 unknown function (ip: 0x7f87f6301cdf) jl_call_method_internal at /home/milan/Dev/julia/src/julia_internal.h:189 [inlined] jl_apply_generic at /home/milan/Dev/julia/src/gf.c:1931 eval_user_input at ./REPL.jl:66 unknown function (ip: 0x7f85e3156a06) jl_call_method_internal at /home/milan/Dev/julia/src/julia_internal.h:189 [inlined] jl_apply_generic at /home/milan/Dev/julia/src/gf.c:1931 macro expansion at ./REPL.jl:97 [inlined] #3 at ./event.jl:68 unknown function (ip: 0x7f85e314df2f) jl_call_method_internal at /home/milan/Dev/julia/src/julia_internal.h:189 [inlined] jl_apply_generic at /home/milan/Dev/julia/src/gf.c:1931 jl_apply at /home/milan/Dev/julia/src/julia.h:1364 [inlined] start_task at /home/milan/Dev/julia/src/task.c:259 unknown function (ip: 0xffffffffffffffff) Allocations: 2519259 (Pool: 2518041; Big: 1218); GC: 2 Aborted (core dumped) </code></pre></div> <p dir="auto">Is this a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174214021" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/18299" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/18299/hovercard" href="https://github.com/JuliaLang/julia/issues/18299">#18299</a>?</p>
<p dir="auto">Having recently gone through the updating of several packages for 0.4 and trying out the new doc system, I first have to say, I love it! Much kudos to everyone who put in so much effort to build and make the transition.</p> <p dir="auto">As an extension to the wonderful new functionality, I find myself wanting to document the daylight out of my packages, but then find myself in an awkward position when I go to write my package's <code class="notranslate">README</code>. Do I duplicate everything? (tedious) Do I just point users to the help system? (not ideal since it's hard to quickly skim over an entire package's contents).</p> <p dir="auto">I find myself wishing there was a quick script I could call on my package that would auto-generate a README from the combined docstrings in my package.</p> <p dir="auto">I think this would be a great little piece of functionality that would probably be pretty approachable for anyone interested in giving it a go.</p> <p dir="auto">I file the issue here, mainly because I'm not exactly sure where this would live. On the one hand, this could obviously go in a package by itself that package developers would then simply install and use. On the other hand, I could see this being something we include with our batteries for new bare packages, a single <code class="notranslate">generate_docs.jl</code> script that we maybe build into the package manager itself via <code class="notranslate">Pkg.docs(pkg)</code> or something like that. Happy to discuss more and get more concrete, but wanted to get the ball running for now.</p>
0
<p dir="auto">When downloading the latest nuget package lodash is getting two files: version 4.0 and version 3.10.<br> this causes compilation error due to duplicate declarations.</p>
<p dir="auto">I have found a change in the rx.js libraries that caused the typescript compiler to enter in an endless loop (and also put the VS in a freeze mode - bug in VS, I know, Intellij or even Eclipse is doing a better job with TS).</p> <p dir="auto">The problem happened because was renamed the IObservable interface to Observable and along others changes causing some duplicated declarations of interfaces, classes and variables with the same name, which is confused anyway.</p> <p dir="auto">I agree that the I prefix for interfaces is a C# convention, but in this case, I didn't see an alternative. After playing a little with this code, I don't agree with these last changes and I am reverting it by hand on my project, and if possible I would like to revert again these naming changes o the repository.</p>
0
<p dir="auto">Today I'm update a version of the Symfony using<br> $&gt;bin/vendors update</p> <p dir="auto">After the update, I need clear the cache, but I found this error.</p> <p dir="auto">$&gt;php app\console cache:clear</p> <p dir="auto">Catchable fatal error: Object of class Symfony\Component\ClassLoader\DebugUniversalClassLoader could not be converted to string in E:\Projetos\eMarketing\vendor\symfony\src\Symfony\Component\ClassLoader\DebugUniversalClassLoader.php on line 42</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>yes</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>4.0.3</td> </tr> </tbody> </table> <p dir="auto">TL;DR; <code class="notranslate">Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder</code> doesn't find templates inside the <code class="notranslate">templates/</code> folder.</p> <p dir="auto">This is because the <code class="notranslate">TemplateFinder</code> is unaware of the <code class="notranslate">paths</code> setting in the <code class="notranslate">twig</code> config. Changing the default directory structure in Symfony 4 means this setting is used more often now.</p> <p dir="auto">Related issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="197391187" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/21035" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/21035/hovercard" href="https://github.com/symfony/symfony/pull/21035">#21035</a><br> Example usage in the wild: <a href="https://github.com/hostnet/webpack-bundle/blob/master/src/Component/Asset/Tracker.php#L187-L189">Tracker</a></p> <p dir="auto">Steps to reproduce:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="composer create-project symfony/skeleton my_project cd my_project composer require templating twig frameworkbundle"><pre class="notranslate">composer create-project symfony/skeleton my_project <span class="pl-c1">cd</span> my_project composer require templating twig frameworkbundle</pre></div> <p dir="auto">Add to <code class="notranslate">config/services.yaml</code></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" App\Controller\MyController: arguments: $template_finder: &quot;@templating.finder&quot; public: true"><pre class="notranslate"> <span class="pl-ent">App\Controller\MyController</span>: <span class="pl-ent">arguments</span>: <span class="pl-ent">$template_finder</span>: <span class="pl-s"><span class="pl-pds">"</span>@templating.finder<span class="pl-pds">"</span></span> <span class="pl-ent">public</span>: <span class="pl-c1">true</span></pre></div> <p dir="auto">Add to <code class="notranslate">src/Controller/MyController.php</code></p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder; use Symfony\Component\HttpFoundation\Response; class MyController { private $twig; private $template_finder; public function __construct(\Twig_Environment $environment, TemplateFinder $template_finder) { $this-&gt;twig = $environment; $this-&gt;template_finder = $template_finder; } public function listTemplates() { return new Response( $this-&gt;twig-&gt;render('templates.html.twig', ['templates' =&gt; $this-&gt;template_finder-&gt;findAllTemplates()]) ); } }"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">namespace</span> <span class="pl-v">App</span>\<span class="pl-v">Controller</span>; <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Bundle</span>\<span class="pl-v">FrameworkBundle</span>\<span class="pl-v">CacheWarmer</span>\<span class="pl-v">TemplateFinder</span>; <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">HttpFoundation</span>\<span class="pl-v">Response</span>; <span class="pl-k">class</span> <span class="pl-v">MyController</span> { <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>twig</span>; <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>template_finder</span>; <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">__construct</span>(<span class="pl-smi"><span class="pl-smi">\<span class="pl-v">Twig_Environment</span></span></span> <span class="pl-s1"><span class="pl-c1">$</span>environment</span>, <span class="pl-smi"><span class="pl-smi">TemplateFinder</span></span> <span class="pl-s1"><span class="pl-c1">$</span>template_finder</span>) { <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">twig</span> = <span class="pl-s1"><span class="pl-c1">$</span>environment</span>; <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">template_finder</span> = <span class="pl-s1"><span class="pl-c1">$</span>template_finder</span>; } <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">listTemplates</span>() { <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Response</span>( <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">twig</span>-&gt;<span class="pl-en">render</span>(<span class="pl-s">'templates.html.twig'</span>, [<span class="pl-s">'templates'</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">template_finder</span>-&gt;<span class="pl-en">findAllTemplates</span>()]) ); } }</pre></div> <p dir="auto">Add to <code class="notranslate">config/routes.yaml</code></p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="index: path: / controller: App\Controller\MyController::listTemplates"><pre class="notranslate"><span class="pl-ent">index</span>: <span class="pl-ent">path</span>: <span class="pl-s">/</span> <span class="pl-ent">controller</span>: <span class="pl-s">App\Controller\MyController::listTemplates</span></pre></div> <p dir="auto">Finally, add to <code class="notranslate">templates/templates.html.twig</code></p> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% extends &quot;base.html.twig&quot; %} {% block body %} {% for template in templates %} {{ template }}&lt;br /&gt; {% endfor %} {% endblock %}"><pre class="notranslate">{% <span class="pl-k">extends</span> <span class="pl-s"><span class="pl-pds">"</span>base.html.twig<span class="pl-pds">"</span></span> %} {% <span class="pl-k">block</span> <span class="pl-smi">body</span> %} {% <span class="pl-k">for</span> <span class="pl-smi">template</span> <span class="pl-k">in</span> <span class="pl-smi">templates</span> %} {{ <span class="pl-smi">template</span> }}&lt;<span class="pl-ent">br</span> /&gt; {% <span class="pl-k">endfor</span> %} {% <span class="pl-k">endblock</span> %}</pre></div> <p dir="auto">Expected: <code class="notranslate">base.html.twig</code> and <code class="notranslate">templates.html.twig</code> part of the output<br> Result: Only files inside the <code class="notranslate">FrameworkBundle</code> and <code class="notranslate">TwigBundle</code> found.</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] 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">We don't have an SPA. And we can't go full SPA right now. So there are multiple root components placed in the DOM</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;my-app1&gt;&lt;/my-app1&gt; &lt;my-app2&gt;&lt;/my-app2&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">my-app1</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">my-app1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">my-app2</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">my-app2</span><span class="pl-kos">&gt;</span></pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@NgModule({ imports: [ BrowserModule ], providers: [ MyService ], }) export class BaseModule { ngDoBootstrap(applicationRef: ApplicationRef) { const zone = applicationRef.zone; platform._injector = applicationRef.injector; zone.runOutsideAngular(() =&gt; { // run several modules in same zone and with same parent injector platform._bootstrapModuleWithZone(AppModule1, [], zone); platform._bootstrapModuleWithZone(AppModule2, [], zone); }); } } const platform = platformBrowserDynamic(); platform.bootstrapModule(BaseModule);"><pre class="notranslate">@<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">imports</span>: <span class="pl-kos">[</span> <span class="pl-smi">BrowserModule</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">providers</span>: <span class="pl-kos">[</span> <span class="pl-smi">MyService</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">export</span> <span class="pl-k">class</span> <span class="pl-smi">BaseModule</span> <span class="pl-kos">{</span> <span class="pl-en">ngDoBootstrap</span><span class="pl-kos">(</span><span class="pl-s1">applicationRef</span>: <span class="pl-smi">ApplicationRef</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">zone</span> <span class="pl-c1">=</span> <span class="pl-s1">applicationRef</span><span class="pl-kos">.</span><span class="pl-c1">zone</span><span class="pl-kos">;</span> <span class="pl-s1">platform</span><span class="pl-kos">.</span><span class="pl-c1">_injector</span> <span class="pl-c1">=</span> <span class="pl-s1">applicationRef</span><span class="pl-kos">.</span><span class="pl-c1">injector</span><span class="pl-kos">;</span> <span class="pl-s1">zone</span><span class="pl-kos">.</span><span class="pl-en">runOutsideAngular</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// run several modules in same zone and with same parent injector</span> <span class="pl-s1">platform</span><span class="pl-kos">.</span><span class="pl-en">_bootstrapModuleWithZone</span><span class="pl-kos">(</span><span class="pl-smi">AppModule1</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">zone</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">platform</span><span class="pl-kos">.</span><span class="pl-en">_bootstrapModuleWithZone</span><span class="pl-kos">(</span><span class="pl-smi">AppModule2</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">zone</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-s1">platform</span> <span class="pl-c1">=</span> <span class="pl-en">platformBrowserDynamic</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">platform</span><span class="pl-kos">.</span><span class="pl-en">bootstrapModule</span><span class="pl-kos">(</span><span class="pl-smi">BaseModule</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">Have multiple root modules that share one base injector and zone. Don't have to override private properties and call private methods. Maybe a <code class="notranslate">applicationRef.bootstrapChildModule(AppModule1)</code> method.</p> <p dir="auto"><strong>Reproduction of the problem</strong></p> <p dir="auto">Plunkr: <a href="http://plnkr.co/edit/80s1jvwrqH3a3YEuxz6D?p=preview" rel="nofollow">http://plnkr.co/edit/80s1jvwrqH3a3YEuxz6D?p=preview</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">Not everyone that might want to switch to angular2 can go full single-page-app.</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.5</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">The Header class in the Http bundle uses the normalize function to normalize the header key, before adding the header key value pair to the header. In chrome the normalize function always transforms the header key to lower case. However, in the header we almost always want the first letter of the header key to be upper case.<br> <strong>Expected behavior</strong></p> <p dir="auto">Make sure, that the header key is not modified.<br> <strong>Reproduction of the problem</strong></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">This problem is especially a problem, when we want to set authorization headers<br> <strong>Please tell us about your environment:</strong></p> <p dir="auto">latest Chrome Browser on the latest Mac OS</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.X Angular 2.0.0 stable</li> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] This problem only occurs in Chrome (Firefox was also tested)</li> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</li> </ul>
0
<p dir="auto">The following syntax:</p> <p dir="auto">Model.query.filter('table_name.column_name % 'query_string'').all()</p> <p dir="auto">will generate a correct sql expression, except by the percentage sign, which will be duplicated, rendering: "model.column_name %% 'query_string'".</p> <p dir="auto">This duplication is unavoidable so far as I know by the docs, but it should be possible to provide literal SQL to the filter clause, in order to not disturb code which dynamically relies on concatenation of filters.</p> <p dir="auto">The above % syntax is compatible with posgres fuzzy search module.</p>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">Python 3.3 has added a <a href="http://docs.python.org/3.3/library/datetime.html#datetime.datetime.timestamp" rel="nofollow">timestamp() method to datetime.datetime objects</a>.</p> <p dir="auto">In this example SettingDefaults.start_time is defined as Column(DateTime, default=datetime.now, nullable=False).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" default_settings = session.query(SettingDefaults).\ filter(SettingDefaults.start_time.timestamp() &lt;= start_timestamp) gives: Traceback (most recent call last): File &quot;/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/sql/expression.py&quot;, line 2267, in __getattr__ return getattr(self.comparator, key) AttributeError: 'Comparator' object has no attribute 'timestamp' During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/orm/attributes.py&quot;, line 262, in __getattr__ return getattr(self.comparator, key) File &quot;/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/orm/properties.py&quot;, line 209, in __getattr__ return getattr(self.__clause_element__(), key) File &quot;/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/sql/expression.py&quot;, line 2273, in __getattr__ key) AttributeError: Neither 'AnnotatedColumn' object nor 'Comparator' object has an attribute 'timestamp' During handling of the above exception, another exception occurred: Traceback (most recent call last): [SNIP ***](***) filter(SettingDefaults.start_time.timestamp() &lt;= start_timestamp) File &quot;/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/orm/attributes.py&quot;, line 270, in __getattr__ key) AttributeError: Neither 'InstrumentedAttribute' object nor 'Comparator' object associated with SettingDefaults.start_time has an attribute 'timestamp'"><pre class="notranslate"><code class="notranslate"> default_settings = session.query(SettingDefaults).\ filter(SettingDefaults.start_time.timestamp() &lt;= start_timestamp) gives: Traceback (most recent call last): File "/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/sql/expression.py", line 2267, in __getattr__ return getattr(self.comparator, key) AttributeError: 'Comparator' object has no attribute 'timestamp' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/orm/attributes.py", line 262, in __getattr__ return getattr(self.comparator, key) File "/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/orm/properties.py", line 209, in __getattr__ return getattr(self.__clause_element__(), key) File "/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/sql/expression.py", line 2273, in __getattr__ key) AttributeError: Neither 'AnnotatedColumn' object nor 'Comparator' object has an attribute 'timestamp' During handling of the above exception, another exception occurred: Traceback (most recent call last): [SNIP ***](***) filter(SettingDefaults.start_time.timestamp() &lt;= start_timestamp) File "/sites/metrics_dev/env/lib/python3.3/site-packages/SQLAlchemy-0.8.0-py3.3.egg/sqlalchemy/orm/attributes.py", line 270, in __getattr__ key) AttributeError: Neither 'InstrumentedAttribute' object nor 'Comparator' object associated with SettingDefaults.start_time has an attribute 'timestamp' </code></pre></div>
0
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd class KV(object): def __init__(self, key, val): self.key = key self.val = val def __str__(self): return 'KV({!r}:{!r})'.format(self.key, self.val) def __hash__(self): return hash(self.key) def __eq__(self, other): if isinstance(other, basestring): return self.key == other elif isinstance(other, KV): return self.key == other.key and self.val == other.val return NotImplemented def __ne__(self, other): equals = self == other if equals is NotImplemented: return NotImplemented return not equals def __lt__(self, other): if isinstance(other, basestring): return self.key &lt; other return NotImplemented def __le__(self, other): if isinstance(other, basestring): return self.key &lt;= other return NotImplemented def __gt__(self, other): if isinstance(other, basestring): return self.key &gt; other return NotImplemented def __ge__(self, other): if isinstance(other, basestring): return self.key &gt;= other return NotImplemented # labels with transitive equality idx = pd.Index(['a', 'a']) assert idx.get_loc('a') == slice(0, 2) # string selects both values assert (idx == 'a').tolist() == [True, True] # string selects both values # labels with non-transitive equality a1 = KV('a', 1) a2 = KV('a', 2) assert a1 == 'a' # KV and string match on key assert a2 == 'a' # KV and string match on key assert a1 != a2 # KV and KV match on key, but not on value idx = pd.Index([a1, a2]) assert idx.get_loc('a') == 0 # string selects first KV assert (idx == 'a').tolist() == [True, True] # string selects both KVs"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">class</span> <span class="pl-v">KV</span>(<span class="pl-s1">object</span>): <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>, <span class="pl-s1">val</span>): <span class="pl-s1">self</span>.<span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-s1">key</span> <span class="pl-s1">self</span>.<span class="pl-s1">val</span> <span class="pl-c1">=</span> <span class="pl-s1">val</span> <span class="pl-k">def</span> <span class="pl-en">__str__</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s">'KV({!r}:{!r})'</span>.<span class="pl-en">format</span>(<span class="pl-s1">self</span>.<span class="pl-s1">key</span>, <span class="pl-s1">self</span>.<span class="pl-s1">val</span>) <span class="pl-k">def</span> <span class="pl-en">__hash__</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-en">hash</span>(<span class="pl-s1">self</span>.<span class="pl-s1">key</span>) <span class="pl-k">def</span> <span class="pl-en">__eq__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">other</span>): <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">other</span>, <span class="pl-s1">basestring</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">key</span> <span class="pl-c1">==</span> <span class="pl-s1">other</span> <span class="pl-k">elif</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">other</span>, <span class="pl-v">KV</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">key</span> <span class="pl-c1">==</span> <span class="pl-s1">other</span>.<span class="pl-s1">key</span> <span class="pl-c1">and</span> <span class="pl-s1">self</span>.<span class="pl-s1">val</span> <span class="pl-c1">==</span> <span class="pl-s1">other</span>.<span class="pl-s1">val</span> <span class="pl-k">return</span> <span class="pl-v">NotImplemented</span> <span class="pl-k">def</span> <span class="pl-en">__ne__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">other</span>): <span class="pl-s1">equals</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span> <span class="pl-c1">==</span> <span class="pl-s1">other</span> <span class="pl-k">if</span> <span class="pl-s1">equals</span> <span class="pl-c1">is</span> <span class="pl-v">NotImplemented</span>: <span class="pl-k">return</span> <span class="pl-v">NotImplemented</span> <span class="pl-k">return</span> <span class="pl-c1">not</span> <span class="pl-s1">equals</span> <span class="pl-k">def</span> <span class="pl-en">__lt__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">other</span>): <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">other</span>, <span class="pl-s1">basestring</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">key</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">other</span> <span class="pl-k">return</span> <span class="pl-v">NotImplemented</span> <span class="pl-k">def</span> <span class="pl-en">__le__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">other</span>): <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">other</span>, <span class="pl-s1">basestring</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">key</span> <span class="pl-c1">&lt;=</span> <span class="pl-s1">other</span> <span class="pl-k">return</span> <span class="pl-v">NotImplemented</span> <span class="pl-k">def</span> <span class="pl-en">__gt__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">other</span>): <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">other</span>, <span class="pl-s1">basestring</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">key</span> <span class="pl-c1">&gt;</span> <span class="pl-s1">other</span> <span class="pl-k">return</span> <span class="pl-v">NotImplemented</span> <span class="pl-k">def</span> <span class="pl-en">__ge__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">other</span>): <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">other</span>, <span class="pl-s1">basestring</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">key</span> <span class="pl-c1">&gt;=</span> <span class="pl-s1">other</span> <span class="pl-k">return</span> <span class="pl-v">NotImplemented</span> <span class="pl-c"># labels with transitive equality</span> <span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Index</span>([<span class="pl-s">'a'</span>, <span class="pl-s">'a'</span>]) <span class="pl-k">assert</span> <span class="pl-s1">idx</span>.<span class="pl-en">get_loc</span>(<span class="pl-s">'a'</span>) <span class="pl-c1">==</span> <span class="pl-en">slice</span>(<span class="pl-c1">0</span>, <span class="pl-c1">2</span>) <span class="pl-c"># string selects both values</span> <span class="pl-k">assert</span> (<span class="pl-s1">idx</span> <span class="pl-c1">==</span> <span class="pl-s">'a'</span>).<span class="pl-en">tolist</span>() <span class="pl-c1">==</span> [<span class="pl-c1">True</span>, <span class="pl-c1">True</span>] <span class="pl-c"># string selects both values</span> <span class="pl-c"># labels with non-transitive equality</span> <span class="pl-s1">a1</span> <span class="pl-c1">=</span> <span class="pl-v">KV</span>(<span class="pl-s">'a'</span>, <span class="pl-c1">1</span>) <span class="pl-s1">a2</span> <span class="pl-c1">=</span> <span class="pl-v">KV</span>(<span class="pl-s">'a'</span>, <span class="pl-c1">2</span>) <span class="pl-k">assert</span> <span class="pl-s1">a1</span> <span class="pl-c1">==</span> <span class="pl-s">'a'</span> <span class="pl-c"># KV and string match on key</span> <span class="pl-k">assert</span> <span class="pl-s1">a2</span> <span class="pl-c1">==</span> <span class="pl-s">'a'</span> <span class="pl-c"># KV and string match on key</span> <span class="pl-k">assert</span> <span class="pl-s1">a1</span> <span class="pl-c1">!=</span> <span class="pl-s1">a2</span> <span class="pl-c"># KV and KV match on key, but not on value</span> <span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Index</span>([<span class="pl-s1">a1</span>, <span class="pl-s1">a2</span>]) <span class="pl-k">assert</span> <span class="pl-s1">idx</span>.<span class="pl-en">get_loc</span>(<span class="pl-s">'a'</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span> <span class="pl-c"># string selects first KV</span> <span class="pl-k">assert</span> (<span class="pl-s1">idx</span> <span class="pl-c1">==</span> <span class="pl-s">'a'</span>).<span class="pl-en">tolist</span>() <span class="pl-c1">==</span> [<span class="pl-c1">True</span>, <span class="pl-c1">True</span>] <span class="pl-c"># string selects both KVs</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Selection by labels with non-transitive equality has inconsistent behavior with duplicate labels. I would expect duplicate labels to be selected in all cases.</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="assert idx.get_loc('a') == slice(0, 2) # string selects both KVs"><pre class="notranslate"><span class="pl-k">assert</span> <span class="pl-s1">idx</span>.<span class="pl-en">get_loc</span>(<span class="pl-s">'a'</span>) <span class="pl-c1">==</span> <span class="pl-en">slice</span>(<span class="pl-c1">0</span>, <span class="pl-c1">2</span>) <span class="pl-c"># string selects both KVs</span></pre></div> <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.6.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 3.13.0-96-generic<br> machine: x86_64<br> processor: x86_64<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.20.3<br> pytest: 3.1.3<br> pip: 9.0.1<br> setuptools: 36.2.0<br> Cython: 0.26<br> numpy: 1.13.1<br> scipy: 0.19.1<br> xarray: None<br> IPython: 5.4.1<br> sphinx: 1.6.3<br> patsy: 0.4.1<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.4.2<br> numexpr: 2.6.2<br> feather: None<br> matplotlib: 2.0.2<br> openpyxl: None<br> xlrd: None<br> xlwt: 0.7.5<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 0.999<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<p dir="auto">A few of the methods in <code class="notranslate">groupby_helper.pxi.in</code> have a pattern that goes:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" N, K = (&lt;object&gt; values).shape with nogil: if K &gt; 1: # loop over j in range(K) and do stuff ... else: # do stuff with j=0 ..."><pre class="notranslate"> <span class="pl-v">N</span>, <span class="pl-v">K</span> <span class="pl-c1">=</span> (<span class="pl-c1">&lt;</span><span class="pl-s1">object</span><span class="pl-c1">&gt;</span> <span class="pl-s1">values</span>).<span class="pl-s1">shape</span> <span class="pl-k">with</span> <span class="pl-s1">nogil</span>: <span class="pl-k">if</span> <span class="pl-v">K</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">1</span>: <span class="pl-c"># loop over j in range(K) and do stuff</span> ... <span class="pl-k">else</span>: <span class="pl-c"># do stuff with j=0</span> ...</pre></div> <p dir="auto">Unless I'm missing something simple I don't think there's a reason to have the conditional and duplicate code branches. In the case where K=1 (which is all the time?) then the <code class="notranslate">for j in range(K)</code> construct inherently sets <code class="notranslate">j=0</code>, bypassing the need for the conditional</p>
0
<p dir="auto">If a single element array is passed to <code class="notranslate">np.float64()</code> in the following way, it is returned not as an array but as a numpy scalar. I have not observed this behavior when converting in this way via other dtypes, though my tests are not exhaustive. Code to reproduce below:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np # Returns float 0.699..., not array([0.699]) np.float64(np.array([0.7], dtype=np.float64)) # Broken for conversion within floats; returns 0.5 np.float64(np.array([0.5], dtype=np.float32)) # Broken for conversion from uint; returns 42.0 np.float64(np.array([42], dtype=np.uint8)) # Works as expected for 2-element arrays np.float64(np.array([0.7, 0.7], dtype=np.float64)) # np.float32() and np.uint8() properly return arrays np.float32(np.array([0.7], dtype=np.float64) # array([0.699], dtype=float32) np.uint8(np.array([42.], dtype=np.float64) # array([4], dtype=uint8)"><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"># Returns float 0.699..., not array([0.699])</span> <span class="pl-s1">np</span>.<span class="pl-en">float64</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0.7</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float64</span>)) <span class="pl-c"># Broken for conversion within floats; returns 0.5</span> <span class="pl-s1">np</span>.<span class="pl-en">float64</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0.5</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)) <span class="pl-c"># Broken for conversion from uint; returns 42.0</span> <span class="pl-s1">np</span>.<span class="pl-en">float64</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">42</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">uint8</span>)) <span class="pl-c"># Works as expected for 2-element arrays</span> <span class="pl-s1">np</span>.<span class="pl-en">float64</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0.7</span>, <span class="pl-c1">0.7</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float64</span>)) <span class="pl-c"># np.float32() and np.uint8() properly return arrays</span> <span class="pl-s1">np</span>.<span class="pl-s1">float32</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0.7</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float64</span>) <span class="pl-c"># array([0.699], dtype=float32)</span> <span class="pl-s1">np</span>.<span class="pl-s1">uint8</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">42.</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float64</span>) <span class="pl-c"># array([4], dtype=uint8)</span></pre></div> <p dir="auto">This was observed on both NumPy 1.6.1 and 1.6.2. I realize a workaround is to use the <code class="notranslate">.astype()</code> method, and that would probably be more correct. However, this functionality is exposed and I do not believe it is expected behavior.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/764" rel="nofollow">http://projects.scipy.org/numpy/ticket/764</a> on 2008-04-29 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/charris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/charris">@charris</a>, assigned to unknown.</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: float32(array([[1]])) Out[1]: array([[ 1.]], dtype=float32) In [2]: float64(array([[1]])) Out[2]: 1.0 In [3]: int64(array([[1]])) Out[3]: array([[1]], dtype=int64) In [4]: int32(array([[1]])) Out[4]: 1"><pre class="notranslate"><code class="notranslate">In [1]: float32(array([[1]])) Out[1]: array([[ 1.]], dtype=float32) In [2]: float64(array([[1]])) Out[2]: 1.0 In [3]: int64(array([[1]])) Out[3]: array([[1]], dtype=int64) In [4]: int32(array([[1]])) Out[4]: 1 </code></pre></div> <p dir="auto">But also</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [5]: float64([[1]]) Out[5]: array([[ 1.]]) In [6]: int32([[1]]) Out[6]: array([[1]])"><pre class="notranslate"><code class="notranslate">In [5]: float64([[1]]) Out[5]: array([[ 1.]]) In [6]: int32([[1]]) Out[6]: array([[1]]) </code></pre></div>
1
<p dir="auto">Test case (the order is important):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print(type(numpy.exp(1) + Variable(torch.zeros(2, 5)))) # &lt;class 'numpy.ndarray'&gt; (of really strange shape)"><pre class="notranslate"><code class="notranslate">print(type(numpy.exp(1) + Variable(torch.zeros(2, 5)))) # &lt;class 'numpy.ndarray'&gt; (of really strange shape) </code></pre></div> <p dir="auto">I understand why this is happening but I'd prefer an error to be thrown here if possible when the "expected" behaviour cannot be achieved.</p>
<p dir="auto">Pytorch shows the following inconsistent behaviour.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import torch from torch.autograd import Variable 1.0 + Variable(torch.ones(1)) # returns as expected # Variable containing: # 2 # [torch.FloatTensor of size 1] np.sum(1.0) + Variable(torch.ones(1)) # returns an unexpected (depth of array is 32) # array([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[Variable containing: # 2 # [torch.FloatTensor of size 1] # ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]], dtype=object) # Switching their order Variable(torch.ones(1)) + np.sum(1.0) # returns the expected # Variable containing: # 2 # [torch.FloatTensor of size 1]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span>.<span class="pl-s1">autograd</span> <span class="pl-k">import</span> <span class="pl-v">Variable</span> <span class="pl-c1">1.0</span> <span class="pl-c1">+</span> <span class="pl-v">Variable</span>(<span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">1</span>)) <span class="pl-c"># returns as expected</span> <span class="pl-c"># Variable containing:</span> <span class="pl-c"># 2</span> <span class="pl-c"># [torch.FloatTensor of size 1]</span> <span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-c1">1.0</span>) <span class="pl-c1">+</span> <span class="pl-v">Variable</span>(<span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">1</span>)) <span class="pl-c"># returns an unexpected (depth of array is 32)</span> <span class="pl-c"># array([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[Variable containing:</span> <span class="pl-c"># 2</span> <span class="pl-c"># [torch.FloatTensor of size 1]</span> <span class="pl-c"># ]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]], dtype=object)</span> <span class="pl-c"># Switching their order </span> <span class="pl-v">Variable</span>(<span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">1</span>)) <span class="pl-c1">+</span> <span class="pl-s1">np</span>.<span class="pl-en">sum</span>(<span class="pl-c1">1.0</span>) <span class="pl-c"># returns the expected</span> <span class="pl-c"># Variable containing:</span> <span class="pl-c"># 2</span> <span class="pl-c"># [torch.FloatTensor of size 1]</span></pre></div>
1
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>yes</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>4.0</td> </tr> </tbody> </table> <p dir="auto">Hello,</p> <p dir="auto">Following <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="203174106" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/21409" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/21409/hovercard" href="https://github.com/symfony/symfony/issues/21409">#21409</a>, I think it would be very more user-friendly to enable passing parameters as objects to Router::generate().<br> Indeed, the user is used to get objects from parameters in the controller using explicit or implicit param converters, so it would be nice to be able to pass these very same objects to generate routes.<br> It should be possible insofar the task of the Router is exactly managing controller arguments for making routes.</p>
<p dir="auto">For Symfony2 Router with the help of standart bundle (sensio extra) we can write ParamConverters to convert request param=&gt;object. Is there any standart way to use reversed convertion?</p> <p dir="auto">Now we must do something like this:<br> path('DevBlogBundle_post_show',{'post':post.id})<br> While a better way would be:<br> path('DevBlogBundle_post_show',{'post':post})</p> <p dir="auto">I've found even example jist:<br> <a href="https://gist.github.com/stevelacey/3226510">https://gist.github.com/stevelacey/3226510</a></p> <ol dir="auto"> <li>Maybe, we should think about adding such functionality to future releases of, for example, sensioFrameworkExtra bundle?</li> <li>If there is no such functionality, is bundle providing such extension would be needed?</li> </ol> <p dir="auto">Thanks.</p>
1
<p dir="auto">Support for 3rd parties app or built in functionality to support a tiling windows manager instead of floating. Something similar to i3 or chunkwm.</p>
<p dir="auto">This was mentioned in the README so I'm creating the issue as it sounds like a neat idea to me</p> <p dir="auto">I'm assuming this would allow for more flexible window arrangements than the current quadrant snapping, etc.</p>
1
<p dir="auto">On a solaris 10 target with ansible 1.9.3 using template or copy with become fails with <code class="notranslate">fatal: [rpm-zone3] =&gt; ssh connection closed waiting for a privilege escalation password prompt</code></p> <p dir="auto">Full log from the failed section:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [web | Create CAM pasword file for agent install] *********************** &lt;rpm-zone3&gt; ESTABLISH CONNECTION FOR USER: gillingh &lt;rpm-zone3&gt; EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=&quot;/Users/gillingh/.ansible/cp/ansible-ssh-%h-%p-%r&quot; -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 rpm-zone3 /bin/sh -c 'sudo -k &amp;&amp; sudo -H -S -p &quot;[sudo via ansible, key=rcvzjadfoojvpwltuosfnxkbfmoztdvp] password: &quot; -u app-srv /bin/sh -c '&quot;'&quot;'echo BECOME-SUCCESS-rcvzjadfoojvpwltuosfnxkbfmoztdvp; rc=flag; [ -r /tmp/cam_agent_password ] || rc=2; [ -f /tmp/cam_agent_password ] || rc=1; [ -d /tmp/cam_agent_password ] &amp;&amp; rc=3; /tps/bin/python -V 2&gt;/dev/null || rc=4; [ x&quot;$rc&quot; != &quot;xflag&quot; ] &amp;&amp; echo &quot;${rc} &quot;/tmp/cam_agent_password &amp;&amp; exit 0; (/tps/bin/python -c '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1(); afile = open(&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'/tmp/cam_agent_password'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;, &quot;rb&quot;) buf = afile.read(BLOCKSIZE) while len(buf) &gt; 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;' 2&gt;/dev/null) || (/tps/bin/python -c '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'import sha; BLOCKSIZE = 65536; hasher = sha.sha(); afile = open(&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'/tmp/cam_agent_password'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;, &quot;rb&quot;) buf = afile.read(BLOCKSIZE) while len(buf) &gt; 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;' 2&gt;/dev/null) || (echo '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'0 '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'/tmp/cam_agent_password)'&quot;'&quot;''"><pre class="notranslate"><code class="notranslate">TASK: [web | Create CAM pasword file for agent install] *********************** &lt;rpm-zone3&gt; ESTABLISH CONNECTION FOR USER: gillingh &lt;rpm-zone3&gt; EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/gillingh/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 rpm-zone3 /bin/sh -c 'sudo -k &amp;&amp; sudo -H -S -p "[sudo via ansible, key=rcvzjadfoojvpwltuosfnxkbfmoztdvp] password: " -u app-srv /bin/sh -c '"'"'echo BECOME-SUCCESS-rcvzjadfoojvpwltuosfnxkbfmoztdvp; rc=flag; [ -r /tmp/cam_agent_password ] || rc=2; [ -f /tmp/cam_agent_password ] || rc=1; [ -d /tmp/cam_agent_password ] &amp;&amp; rc=3; /tps/bin/python -V 2&gt;/dev/null || rc=4; [ x"$rc" != "xflag" ] &amp;&amp; echo "${rc} "/tmp/cam_agent_password &amp;&amp; exit 0; (/tps/bin/python -c '"'"'"'"'"'"'"'"'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1(); afile = open("'"'"'"'"'"'"'"'"'/tmp/cam_agent_password'"'"'"'"'"'"'"'"'", "rb") buf = afile.read(BLOCKSIZE) while len(buf) &gt; 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())'"'"'"'"'"'"'"'"' 2&gt;/dev/null) || (/tps/bin/python -c '"'"'"'"'"'"'"'"'import sha; BLOCKSIZE = 65536; hasher = sha.sha(); afile = open("'"'"'"'"'"'"'"'"'/tmp/cam_agent_password'"'"'"'"'"'"'"'"'", "rb") buf = afile.read(BLOCKSIZE) while len(buf) &gt; 0: hasher.update(buf) buf = afile.read(BLOCKSIZE) afile.close() print(hasher.hexdigest())'"'"'"'"'"'"'"'"' 2&gt;/dev/null) || (echo '"'"'"'"'"'"'"'"'0 '"'"'"'"'"'"'"'"'/tmp/cam_agent_password)'"'"'' </code></pre></div> <p dir="auto">A sample copy task is:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Create CAM pasword file for agent install become: yes become_user: app-srv when: agent_list.stdout.find('No configured agents') != -1 copy: content=&quot;{{ CAM_agent_password }}&quot; dest=/tmp/cam_agent_password mode=0600 owner=app-srv group=app-adm register: cam_password_file"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Create CAM pasword file for agent install</span> <span class="pl-ent">become</span>: <span class="pl-s">yes</span> <span class="pl-ent">become_user</span>: <span class="pl-s">app-srv</span> <span class="pl-ent">when</span>: <span class="pl-s">agent_list.stdout.find('No configured agents') != -1</span> <span class="pl-ent">copy</span>: <span class="pl-s">content="{{ CAM_agent_password }}" dest=/tmp/cam_agent_password</span> <span class="pl-s">mode=0600 owner=app-srv group=app-adm</span> <span class="pl-ent">register</span>: <span class="pl-s">cam_password_file</span></pre></div> <p dir="auto">The odd thing is, this seems to be specific to the template and copy modules, I use become in the same set of tasks with no issues prior with the command, lineinfile, and user modules.</p>
<h5 dir="auto">Issue Type: Bug Report</h5> <h5 dir="auto">Ansible Version: 1.9.0.1</h5> <h5 dir="auto">Environment:</h5> <p dir="auto">Both Cent OS 6 for source machine and target machine</p> <h5 dir="auto">Summary:</h5> <p dir="auto">The template module fails(err: <code class="notranslate">ssh connection closed waiting for password prompt</code>) at creating files that require sudo permission with password.</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: create some init script template: src=tmpl.j2 dest=/etc/init.d/{{ item }} with_items: [1,2,3] sudo: yes"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">create some init script</span> <span class="pl-ent">template</span>: <span class="pl-s">src=tmpl.j2 dest=/etc/init.d/{{ item }}</span> <span class="pl-ent">with_items</span>: <span class="pl-s">[1,2,3]</span> <span class="pl-ent">sudo</span>: <span class="pl-s">yes</span></pre></div> <p dir="auto">with the command: <code class="notranslate">ansible-playbook -i inventory xxx.yml --ask-become-pass</code></p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">Login as a normal user, sudo as a root user and create the init script under /etc/init.d.</p> <h5 dir="auto">Actually Results:</h5> <p dir="auto"><code class="notranslate">ssh connection closed waiting for password prompt</code></p> <p dir="auto">However, I have tried other modules, for instance, <code class="notranslate">file</code> module, it's working fine with same setup.<br> For your information, I have turned off the pipelining.</p> <p dir="auto">Looking forward to your reply! Thanks.</p>
1
<p dir="auto">Hey, I am not sure if this is a duplicate or not, but I could not find this exact issue. I realize we are not running 3.1.7 so I will upgrade all machines to check</p> <p dir="auto">Running:<br> amqp==1.3.3<br> billiard==3.3.0.10<br> celery==3.1.6<br> eventlet==0.14.0<br> kombu==3.0.7</p> <p dir="auto">Getting the following issue:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[2014-01-10 12:13:17,420: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection... Traceback (most recent call last): File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 270, in start blueprint.start(self) File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/celery/bootsteps.py&quot;, line 123, in start step.start(parent) File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/celery/worker/consumer.py&quot;, line 790, in start c.loop(*c.loop_args()) File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/celery/worker/loops.py&quot;, line 99, in synloop connection.drain_events(timeout=2.0) File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/kombu/connection.py&quot;, line 279, in drain_events return self.transport.drain_events(self.connection, **kwargs) File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py&quot;, line 90, in drain_events return connection.drain_events(**kwargs) File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/amqp/connection.py&quot;, line 282, in drain_events chanmap, None, timeout=timeout, File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/amqp/connection.py&quot;, line 345, in _wait_multiple channel, method_sig, args, content = read_timeout(timeout) File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/amqp/connection.py&quot;, line 316, in read_timeout return self.method_reader.read_method() File &quot;/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/amqp/method_framing.py&quot;, line 195, in read_method raise m UnexpectedFrame: Received 0x2d while expecting 0xce"><pre class="notranslate">[2014-01-10 12:13:17,420: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection... Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/celery/worker/consumer.py<span class="pl-pds">"</span></span>, line 270, <span class="pl-k">in</span> start blueprint.start(self) File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/celery/bootsteps.py<span class="pl-pds">"</span></span>, line 123, <span class="pl-k">in</span> start step.start(parent) File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/celery/worker/consumer.py<span class="pl-pds">"</span></span>, line 790, <span class="pl-k">in</span> start <span class="pl-en">c.loop(*c.loop_args</span>()) File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/celery/worker/loops.py<span class="pl-pds">"</span></span>, line 99, <span class="pl-k">in</span> synloop connection.drain_events(timeout=2.0) File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/kombu/connection.py<span class="pl-pds">"</span></span>, line 279, <span class="pl-k">in</span> drain_events <span class="pl-k">return</span> self.transport.drain_events(self.connection, <span class="pl-k">**</span>kwargs) File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py<span class="pl-pds">"</span></span>, line 90, <span class="pl-k">in</span> drain_events <span class="pl-k">return</span> connection.drain_events(<span class="pl-k">**</span>kwargs) File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/amqp/connection.py<span class="pl-pds">"</span></span>, line 282, <span class="pl-k">in</span> drain_events chanmap, None, timeout=timeout, File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/amqp/connection.py<span class="pl-pds">"</span></span>, line 345, <span class="pl-k">in</span> _wait_multiple channel, method_sig, args, content = read_timeout(timeout) File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/amqp/connection.py<span class="pl-pds">"</span></span>, line 316, <span class="pl-k">in</span> read_timeout <span class="pl-k">return</span> <span class="pl-en">self.method_reader.read_method</span>() File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/virtualenvs/shapeup/local/lib/python2.7/site-packages/amqp/method_framing.py<span class="pl-pds">"</span></span>, line 195, <span class="pl-k">in</span> read_method raise m UnexpectedFrame: Received 0x2d <span class="pl-k">while</span> expecting 0xce</pre></div>
<p dir="auto">I'm encountering an <a href="https://groups.google.com/forum/#!topic/consul-tool/U1GXnuNmMN8" rel="nofollow">issue</a> using the Consul result backend which I suspect is NOT a Celery issue as such but rather <a href="https://github.com/cablehead/python-consul/issues/144" data-hovercard-type="issue" data-hovercard-url="/cablehead/python-consul/issues/144/hovercard">an issue in the lack of thread safety in the library the backend uses</a>.</p> <p dir="auto">The symptoms are consistent with confusion between the sorts of responses that Consul gives to the library when creating saved results, and expiring those saved results. So, if Celery both writes and expires saved results using threads and, the lack of thread-safety in the python-consul library could produce the results described.</p> <p dir="auto">Can somebody confirm if Celery access to a results backend involves multiple threads?</p>
0
<pre class="notranslate">Would be great if 6g had POPCNTQ/L/W and TZCNTQ/L/W instructions added. Real world usage: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="27667621" data-permission-text="Title is private" data-url="https://github.com/bits-and-blooms/bitset/issues/19" data-hovercard-type="pull_request" data-hovercard-url="/bits-and-blooms/bitset/pull/19/hovercard" href="https://github.com/bits-and-blooms/bitset/pull/19">bits-and-blooms/bitset#19</a></pre>
<pre class="notranslate">go version go version devel +bddf2a72f5e1 Wed Nov 27 19:32:15 2013 +1100 windows/amd64 cd $(GOROOT)/src/cmd/yacc make rename expr expr.exe expr.exe &gt; 1+2*3 2013/11/30 11:14:44 unrecognized character '\r' 7 &gt; 1. expr need append executable extension. 2. need support '\r' character.</pre>
0
<p dir="auto">when using typescript, <code class="notranslate">expect</code> assertions are not typechecked. since playwright supports typescript, i would expect the assertions to be typechecked, otherwise the typescript support is completely pointless</p> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.30.0</li> <li>Operating System: windows 10</li> <li>Browser: all</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// tests/test.ts test('asdf', async ({ page }) =&gt; { // this is wrong: expect(page.locator('li').count()).toBe(2) // the argument to expect needs to be awaited, like so: // expect(await page.locator('li').count()).toBe(2) });"><pre class="notranslate"><span class="pl-c">// tests/test.ts</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'asdf'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// this is wrong:</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'li'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">count</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">)</span> <span class="pl-c">// the argument to expect needs to be awaited, like so:</span> <span class="pl-c">// expect(await page.locator('li').count()).toBe(2)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ol dir="auto"> <li>run <code class="notranslate">tsc</code> on the test file</li> <li>run the test</li> </ol> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">compile error because it's comparing a <code class="notranslate">Promise</code> to a <code class="notranslate">number</code></p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">no compile error, fails at runtime with a misleading error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1) tests\test.ts:8:1 › asdf ==================================================== Error: expect(received).toBe(expected) // Object.is equality Expected: 1 Received: {}"><pre class="notranslate"><code class="notranslate"> 1) tests\test.ts:8:1 › asdf ==================================================== Error: expect(received).toBe(expected) // Object.is equality Expected: 1 Received: {} </code></pre></div> <p dir="auto">as well as an even more misleading error (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1399205346" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/17869" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/17869/hovercard?comment_id=1398721182&amp;comment_type=issue_comment" href="https://github.com/microsoft/playwright/issues/17869#issuecomment-1398721182">#17869 (comment)</a>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Test timeout of 30000ms exceeded while tearing down &quot;context&quot;."><pre class="notranslate"><code class="notranslate">Test timeout of 30000ms exceeded while tearing down "context". </code></pre></div>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.24]</li> <li>Operating System: [macOS 13.4.]</li> <li>Browser: [All, Chromium, Firefox, WebKit]</li> <li>Other info: nodejs v18</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import { defineConfig, devices } from '@playwright/test'; console.log(&quot;this in config file&quot;, this) export default defineConfig({ projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, });"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"this in config file"</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos"></span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test('test this keyword in test', async ({ page }) =&gt; { await page.goto('https://maps.google.com'); console.log(&quot;this in test&quot;,this) this.page=&quot;google page&quot; console.log(&quot;page:&quot;, this.page) });"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'test this keyword in test'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://maps.google.com'</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">"this in test"</span><span class="pl-kos">,</span><span class="pl-smi">this</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-c1">=</span><span class="pl-s">"google page"</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">"page:"</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">page</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="this in config should be {} this in test should be {} this.page=&quot;google page&quot;"><pre class="notranslate"><code class="notranslate">this in config should be {} this in test should be {} this.page="google page" </code></pre></div> <p dir="auto"><strong>Actual</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="this in config is: undefined this in test is: undefined error when executing line &quot;this.page&quot; since page is &quot;undefined&quot;"><pre class="notranslate"><code class="notranslate">this in config is: undefined this in test is: undefined error when executing line "this.page" since page is "undefined" </code></pre></div> <p dir="auto"><strong>When I test the same case in playwright v1.23, it works as expected.</strong></p>
0
<h3 dir="auto">Version</h3> <p dir="auto">2.5.2</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://github.com/Pistos/vue-unknown-custom-element-bug">https://github.com/Pistos/vue-unknown-custom-element-bug</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">See README, but I duplicate the steps here for your convenience:</p> <ol dir="auto"> <li><code class="notranslate">npm install</code></li> <li><code class="notranslate">npm run dev</code></li> <li>Browse to <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a></li> <li>Click "Example Tab" at top of page</li> <li>Observe lack of second tabset on page</li> <li>Observe console error: <code class="notranslate">[Vue warn]: Unknown custom element: &lt;tab-link&gt; - did you register the component correctly? For recursive components, make sure to provide the "name" option.</code></li> <li>Open App.vue in an editor</li> <li>Remove the three lines marked with comments; save file</li> <li>Refresh example page in browser</li> <li>Observe presence of expected tabset on page</li> <li>Put three lines back in App.vue</li> <li>Refresh browser</li> <li>Observe disappearance of tabset</li> </ol> <h3 dir="auto">What is expected?</h3> <ol dir="auto"> <li>No JS console errors or warnings about components that seem to be correctly defined, imported, named and referenced.</li> <li>Rendering of components (i.e. not missing)</li> </ol> <h3 dir="auto">What is actually happening?</h3> <ol dir="auto"> <li>JS console error: <code class="notranslate">[Vue warn]: Unknown custom element: &lt;tab-link&gt; - did you register the component correctly? For recursive components, make sure to provide the "name" option.</code></li> <li>Component and its children are absent.</li> </ol> <hr> <p dir="auto">See the repro steps and README for a clue or workaround. This might have something to do with the usage of a child component twice on a page, but via different parent components.</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.2.6</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsbin.com/pusozum/edit?html,js,console,output" rel="nofollow">https://jsbin.com/pusozum/edit?html,js,console,output</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Please check minimal reproduction:<br> 2 components which are parent and child, parent pass props to child.<br> Child component will not update if the props is not referred in its template.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">Child component trigger its updated hook.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Child component never trigger its updated hook</p>
0
<p dir="auto">On this page, <a href="https://doc.rust-lang.org/std/macro.unimplemented!.html" rel="nofollow">https://doc.rust-lang.org/std/macro.unimplemented!.html</a>, the [src] hyperlink points to <a href="https://doc.rust-lang.org/src/std/%3Ccore%20macros%3E.html#1" rel="nofollow">https://doc.rust-lang.org/src/std/%3Ccore%20macros%3E.html#1</a>, which does not exist.</p> <p dir="auto">The same problem happens on <a href="https://doc.rust-lang.org/std/macro.format!.html" rel="nofollow">https://doc.rust-lang.org/std/macro.format!.html</a>, which points to <a href="https://doc.rust-lang.org/src/std/%3Ccore_collections%20macros%3E.html#1-2" rel="nofollow">https://doc.rust-lang.org/src/std/%3Ccore_collections%20macros%3E.html#1-2</a>. The filename here is <code class="notranslate">&lt;core_collections macros&gt;.html</code>, which matches the name that <code class="notranslate">collections</code> is aliased to in libstd below.</p> <p dir="auto">I think the problem happens with macros that are reexported from another crate.</p> <p dir="auto">This seems to be a complete list of reexported macros in Rust's standard library:</p> <p dir="auto">src/libstd/lib.rs:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#[macro_use] #[macro_reexport(assert, assert_eq, debug_assert, debug_assert_eq, unreachable, unimplemented, write, writeln)] extern crate core; #[macro_use] #[macro_reexport(vec, format)] extern crate collections as core_collections;"><pre class="notranslate"><span class="pl-c1">#<span class="pl-kos">[</span>macro_use<span class="pl-kos">]</span></span> <span class="pl-c1">#<span class="pl-kos">[</span>macro_reexport<span class="pl-kos">(</span>assert, assert_eq, debug_assert, debug_assert_eq,</span> <span class="pl-c1"> unreachable, unimplemented, write, writeln<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">extern</span> <span class="pl-k">crate</span> core<span class="pl-kos">;</span> <span class="pl-c1">#<span class="pl-kos">[</span>macro_use<span class="pl-kos">]</span></span> <span class="pl-c1">#<span class="pl-kos">[</span>macro_reexport<span class="pl-kos">(</span>vec, format<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">extern</span> <span class="pl-k">crate</span> collections <span class="pl-k">as</span> core_collections<span class="pl-kos">;</span></pre></div>
<p dir="auto">see <a href="http://doc.rust-lang.org/std/macro.assert!.html" rel="nofollow">http://doc.rust-lang.org/std/macro.assert!.html</a></p>
1
<p dir="auto">On Windows, when I am behind a proxy server I am able to get the list of possible extensions to install but every time I try to install one of them it gives an error that it can't find the proxy server.</p> <p dir="auto">Note in the error message that I replaced the real address with the text proxyAddress. I did notice that some of the message has the port number appended twice.</p> <p dir="auto">I tried using both the system environment variable for http_proxy and https_proxy as well as setting it just in the VS Code settings.json file. Same error on both.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="getaddrinfo ENOTFOUND proxyAddress:911 proxyAddress:911:911: Error: getaddrinfo ENOTFOUND proxyAddress:911 proxyAddress:911:911, at errnoException (dns.js:25:10), at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)"><pre class="notranslate"><code class="notranslate">getaddrinfo ENOTFOUND proxyAddress:911 proxyAddress:911:911: Error: getaddrinfo ENOTFOUND proxyAddress:911 proxyAddress:911:911, at errnoException (dns.js:25:10), at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26) </code></pre></div> <p dir="auto">About screen version info:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/708423/12568443/2ddf7a7c-c383-11e5-94ee-9bf0287b0de5.png"><img src="https://cloud.githubusercontent.com/assets/708423/12568443/2ddf7a7c-c383-11e5-94ee-9bf0287b0de5.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Whenever I try to install any extension, using <em>ext install</em>, I get a <strong>connect ETIMEDOUT 191.238.172.191:443</strong> error.</p> <p dir="auto">Trying to navigate to <strong><a href="https://191.238.172.191" rel="nofollow">https://191.238.172.191</a></strong> in the browser produces a warning regarding the certificate being valid only for *<strong>.market.visualstudio.com</strong>, but I'm allowed to proceed.</p> <p dir="auto">Shouldn't VSCode try to connect to the name instead of the IP?</p> <p dir="auto">I'm behind a proxy, VSCode updates just fine behind it, and also lists the available extensions. The firewall here logs the invalid certificate but allows the connection to proceed. Doesn't look like a problem in my end...</p> <p dir="auto"><strong>OS:</strong> Windows 7<br> <strong>VSCode:</strong> 0.10.1</p>
1
<p dir="auto">When ever I get to a new challenge my cursor refuses to go to the end of a closing tag. I do that so I can start a new line for my code. Instead it will start in the middle of my code and then jump down two lines in the middle of other code. Seriously needs fixing.</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-remove-classes-from-an-element-with-jquery" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-remove-classes-from-an-element-with-jquery</a> has an issue. right now, whenever the camper write the removeClass() function -even before specifying the class he/she wants to be removed-. the application automatically marks the challenge as completed.</p> <p dir="auto">The reason: when the parameter isn't specified to removeClass() function it removes ALL classes of the selected element, which means that the "btn-default" class (as required by the challenge) is going to be removed but the problem is that it will remove all other classes at the same time.</p> <p dir="auto">I think the test should make sure that other classes still added to the element while "btn-default" is removed.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9061886/9359085/f410a694-4697-11e5-8c07-5af4017248fa.png"><img src="https://cloud.githubusercontent.com/assets/9061886/9359085/f410a694-4697-11e5-8c07-5af4017248fa.png" alt="screenshot from 2015-08-19 17-29-39" style="max-width: 100%;"></a></p>
0
<p dir="auto">Add color to link in panel header (hover, visited...)</p>
<p dir="auto"><a href="http://jsfiddle.net/7kJcG/" rel="nofollow">http://jsfiddle.net/7kJcG/</a></p> <p dir="auto">Idk, make them white or something</p>
1
<p dir="auto">As before we can have a private filed with unsupported named type, but in recently update(gomobile version +24a199a Wed Jan 13), it breaks this rule, that makes a huge impact to code, and make all types which want to be used for mobile narrows down to supported basic type....</p> <p dir="auto">Before:</p> <p dir="auto">The following type is working</p> <p dir="auto">type ABC struct {<br> WSClient<br> }</p> <p dir="auto">type WSClient struct {<br> conn *websocket.Conn<br> }</p> <p dir="auto">ABC is the struct exported for use in android.</p> <p dir="auto">After:<br> it is not working with an error message:<br> gomobile: unsupported named type xxxx</p>
<p dir="auto">as golang.org/s/gobind says:<br> Passing and returning a struct S promotes it to *S for the purpose of generating bindings.</p> <p dir="auto">Currently this is not implemented.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.8</li> <li>Operating System version: Ubuntu 20.04</li> <li>Java version: openjdk 1.8.0_265</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>create a rest service</li> <li>configure dubbo service as rest via servlet</li> <li>create junit test with annotation</li> <li>run junit tests, the first junit test will fail but the following tests run fine.</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.<br> <a href="https://github.com/abelli85/meterEff/blob/master/meff/src/test/kotlin/com/abel/bigwater/impl/CodeServiceImplTest.kt">https://github.com/abelli85/meterEff/blob/master/meff/src/test/kotlin/com/abel/bigwater/impl/CodeServiceImplTest.kt</a></p> <h3 dir="auto">Expected Result</h3> <p dir="auto">configuration for dubbo-rest via servlet:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dubbo:protocol name=&quot;rest&quot; port=&quot;8080&quot; threads=&quot;500&quot; contextpath=&quot;meff&quot; server=&quot;servlet&quot; accepts=&quot;500&quot; ..."><pre class="notranslate"><code class="notranslate">&lt;dubbo:protocol name="rest" port="8080" threads="500" contextpath="meff" server="servlet" accepts="500" ... </code></pre></div> <p dir="auto">here's junit test class:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// create junit test class with annotation @ContextConfiguration(locations = [&quot;classpath:/spring/rest-provider.xml&quot;, &quot;classpath:/spring-mybatis.xml&quot;]) @RunWith(SpringJUnit4ClassRunner::class) class CodeServiceImplTest { @Test fun test1() { // ... } @Test fun test2() { //... } ..."><pre class="notranslate"><code class="notranslate">// create junit test class with annotation @ContextConfiguration(locations = ["classpath:/spring/rest-provider.xml", "classpath:/spring-mybatis.xml"]) @RunWith(SpringJUnit4ClassRunner::class) class CodeServiceImplTest { @Test fun test1() { // ... } @Test fun test2() { //... } ... </code></pre></div> <p dir="auto">What do you expected from the above steps?<br> all junit tests including the first SHOULD run fine.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?<br> the first junit test in the list always FAILS.</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here! Caused by: org.apache.dubbo.rpc.RpcException: No servlet context found. If you are using server='servlet', make sure that you've configured org.apache.dubbo.remoting.http.servlet.BootstrapListener in web.xml at org.apache.dubbo.rpc.protocol.rest.DubboHttpProtocolServer.doStart(DubboHttpProtocolServer.java:62)"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! Caused by: org.apache.dubbo.rpc.RpcException: No servlet context found. If you are using server='servlet', make sure that you've configured org.apache.dubbo.remoting.http.servlet.BootstrapListener in web.xml at org.apache.dubbo.rpc.protocol.rest.DubboHttpProtocolServer.doStart(DubboHttpProtocolServer.java:62) </code></pre></div> <h3 dir="auto">Comments:</h3> <p dir="auto">seems that <strong>web.xml</strong> is loaded lazily during junit tests, so first junit test fails.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">Some reference code: <a href="https://glitch.com/edit/#!/occlusion-roughness-metalness" rel="nofollow">https://glitch.com/edit/#!/occlusion-roughness-metalness</a></p> <p dir="auto">Retrieving old discussion from : <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="361804875" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/14940" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/14940/hovercard" href="https://github.com/mrdoob/three.js/issues/14940">#14940</a></p> <blockquote> <p dir="auto">Merging metal/rough/AO textures on the same texture on different channels is something we had in our plan for features to support in the GLTFExporter since the beginning. Actually I had it on my backlog but I have not had time yet to take a look at it :)<br> So I agree with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/donmccurdy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/donmccurdy">@donmccurdy</a> on the proposal as something we should support soon:</p> </blockquote> <blockquote> <blockquote> <ul dir="auto"> <li>If metal/rough textures are different and have different sizes, use one, skip the other, and log a warning.</li> </ul> </blockquote> <ul dir="auto"> <li>If metal/rough textures are different and have the same size: combine them</li> </ul> <blockquote> <ul dir="auto"> <li>If only one of metal/rough is present, export that.</li> <li>If AO has the same size as the (combined) metal/rough, merge its red channel into that image.</li> </ul> </blockquote> </blockquote> <blockquote> <p dir="auto">And I'll add to the wishlist two things:</p> <ul dir="auto"> <li>An option as <code class="notranslate">convertSizeWhenCombineTextures</code> so it will try to combine them by reescaling the ones with different size.</li> <li>Comparing images to detect duplicates. This could be added on the exporting process itself or as a postprocess action including it on GLTFEXporter.Utils</li> </ul> </blockquote>
<p dir="auto">There're duplicate code:</p> <ul dir="auto"> <li><a href="https://github.com/mrdoob/three.js/blob/dev/examples/jsm/postprocessing/EffectComposer.js#L246-L316">https://github.com/mrdoob/three.js/blob/dev/examples/jsm/postprocessing/EffectComposer.js#L246-L316</a></li> <li><a href="https://github.com/mrdoob/three.js/blob/dev/examples/jsm/postprocessing/Pass.js#L8-L78">https://github.com/mrdoob/three.js/blob/dev/examples/jsm/postprocessing/Pass.js#L8-L78</a></li> </ul> <p dir="auto"><strong>Describe the solution you'd like</strong></p> <p dir="auto">Re-export Pass and FullScreenQuad in EffectComposer.js</p>
0
<p dir="auto">I'm interested in support for printing out code files.</p> <p dir="auto">Is there a way to cause the editor to render the full file into the DOM (as opposed to only the visible set of rows)? That seems like the main hurdle.</p>
<p dir="auto">At the moment these commands apply to the whole file. Could they apply to the selection if there is one?</p>
0
<p dir="auto">The validation works unexpected with my below steps to reproduce</p> <h3 dir="auto">Expected results</h3> <p dir="auto">The error "Control labeled "Metrics" cannot be empty" should not appear when delete Metrics</p> <h3 dir="auto">Actual results</h3> <p dir="auto">The error "Control labeled "Metrics" cannot be empty" appears when delete Metrics, but it not happens after refresh page</p> <h4 dir="auto">Screenshots</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/50986096/61705858-dbf94680-ad70-11e9-8c56-cba0c17dd09e.png"><img width="812" alt="Screen Shot 2019-07-23 at 5 39 08 PM" src="https://user-images.githubusercontent.com/50986096/61705858-dbf94680-ad70-11e9-8c56-cba0c17dd09e.png" style="max-width: 100%;"></a></p> #### How to reproduce the bug <ol dir="auto"> <li> <p dir="auto">Go to 'Sources/Tables'</p> </li> <li> <p dir="auto">Click on 'a table name'</p> </li> <li> <p dir="auto">It goes to chart screen, with Table type</p> </li> <li> <p dir="auto">Delete Metrics COUNT(*)<br> =&gt; It's show the error similar to attachment.</p> </li> <li> <p dir="auto">Try to select Columns on NOT GROUP BY or anything<br> =&gt; The error not disappear</p> </li> <li> <p dir="auto">Refresh page, and try to delete Metrics COUNT(*) again<br> =&gt; The error does not appear</p> </li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>superset version: Master branch on 2019, July 23</li> <li>python version: 3.7.3</li> <li>node.js version: 8.16.0</li> <li>npm version: 6.4.1</li> </ul>
<p dir="auto">PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="429372451" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/7231" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/7231/hovercard" href="https://github.com/apache/superset/pull/7231">#7231</a> updated visualization validation to take place in the exploreReducer.js <code class="notranslate">SET_FIELD_VALUE</code> action. This validation does not take into account any <code class="notranslate">controlOverrides</code> on the visualization.</p> <p dir="auto">Specifically, the Table viz removes any validatation from the <code class="notranslate">metrics</code> row control. This means attempting to create a Table with only "Not Grouped By" columns fails.</p> <h3 dir="auto">Expected results</h3> <p dir="auto">Be able to create a Table visualization with only "Not Grouped By" columns</p> <h3 dir="auto">Actual results</h3> <p dir="auto">Creating any Table without a "Metrics" results in an error</p> <h4 dir="auto">Screenshots</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/222699/56630031-623caa00-6615-11e9-815a-ff969664b2a2.png"><img src="https://user-images.githubusercontent.com/222699/56630031-623caa00-6615-11e9-815a-ff969664b2a2.png" alt="image" style="max-width: 100%;"></a></p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Create a Table Visualization</li> <li>Delete "Group by" and "Metrics" values</li> <li>Add "Not Grouped By" columns</li> </ol> <h3 dir="auto">Environment</h3> <p dir="auto">Master branch as of April 22 (commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/superset/commit/845218dd88ad2fe1284dcb7427c5bff20749dc74/hovercard" href="https://github.com/apache/superset/commit/845218dd88ad2fe1284dcb7427c5bff20749dc74"><tt>845218d</tt></a>)</p> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">n/a</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=attack7" rel="nofollow">Matt Young</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6859?redirect=false" rel="nofollow">SPR-6859</a></strong> and commented</p> <p dir="auto">I posted this on the forum, but with no response... I wondered if you all could look into it.</p> <p dir="auto">I was stubbing out some code that I'd like to run on a schedule, and just to test it, I have it running once every 60 seconds. I noticed that in my logging, the method seems to be executed twice. To make sure it wasn't a logging issue, I put a static int counter into the class and have it increment on each call. So I can confirm the method is actually being run twice.</p> <p dir="auto">I suspect that this is something like doing a context:component-scan twice-over and resulting in double execution, but can't seem to locate the problem. I thought I would check first if there were any pointers.</p> <p dir="auto">The class<br> Code:<br> /**</p> <ul dir="auto"> <li> <p dir="auto">Date: Feb 15, 2010</p> </li> <li> <p dir="auto">Time: 10:54:36 AM<br> */<br> <code class="notranslate">@Component</code><br> public class DataHarvestingServiceImpl implements DataHarvestingService {<br> private static final Logger logger = Logger.getLogger(DataHarvestingServiceImpl.class);</p> <p dir="auto">private static int count = 0;</p> <p dir="auto"><code class="notranslate">@Override</code><br> // Every night at 1 AM<br> // <code class="notranslate">@Scheduled</code>(cron = "* * 1 * * ?")</p> <p dir="auto"><code class="notranslate">@Scheduled</code>(cron = "0 * * * * ?")<br> public void collectSocialMediaData() {<br> logger.info("Starting data retrieval at " + new Date(System.currentTimeMillis()));</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="logger.info(&quot;Finished media data retrieval at &quot; + new Date(System.currentTimeMillis())); System.out.println(&quot;count is &quot; + count++);"><pre class="notranslate"><code class="notranslate">logger.info("Finished media data retrieval at " + new Date(System.currentTimeMillis())); System.out.println("count is " + count++); </code></pre></div> <p dir="auto">}</p> </li> </ul> <p dir="auto">}<br> The configuration</p> <p dir="auto">Code:</p> <p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p> <p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:task="<a href="http://www.springframework.org/schema/task" rel="nofollow">http://www.springframework.org/schema/task</a>"<br> xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a> <a href="http://www.springframework.org/schema/beans/spring-beans.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans.xsd</a> <a href="http://www.springframework.org/schema/task" rel="nofollow">http://www.springframework.org/schema/task</a> <a href="http://www.springframework.org/schema/task/spring-task-3.0.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/task/spring-task-3.0.xsd"&gt;</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!-- This is the bit of configuration that allows spring to search for annotations that indicate that particular methods should be run at particular times. --&gt; &lt;task:scheduler id=&quot;searchScheduler&quot;/&gt; &lt;task:executor id=&quot;searchExecutor&quot; pool-size=&quot;1&quot;/&gt; &lt;task:annotation-driven executor=&quot;searchExecutor&quot; scheduler=&quot;searchScheduler&quot;/&gt;"><pre class="notranslate"><code class="notranslate">&lt;!-- This is the bit of configuration that allows spring to search for annotations that indicate that particular methods should be run at particular times. --&gt; &lt;task:scheduler id="searchScheduler"/&gt; &lt;task:executor id="searchExecutor" pool-size="1"/&gt; &lt;task:annotation-driven executor="searchExecutor" scheduler="searchScheduler"/&gt; </code></pre></div> <p dir="auto">&lt;/beans&gt;<br> The output I see:<br> Code:<br> 11316 [searchScheduler-1] INFO com.vodori.cms.feature.socialMedia.service.impl.DataHarvestingServiceImpl - Starting data retrieval at Mon Feb 15 14:56:00 CST 2010<br> 11321 [searchScheduler-1] INFO com.vodori.cms.feature.socialMedia.service.impl.DataHarvestingServiceImpl - Finished media data retrieval at Mon Feb 15 14:56:00 CST 2010<br> count is 0<br> 11321 [searchScheduler-1] INFO com.vodori.cms.feature.socialMedia.service.impl.DataHarvestingServiceImpl - Starting data retrieval at Mon Feb 15 14:56:00 CST 2010<br> 11321 [searchScheduler-1] INFO com.vodori.cms.feature.socialMedia.service.impl.DataHarvestingServiceImpl - Finished media data retrieval at Mon Feb 15 14:56:00 CST 2010<br> count is 1<br> 71318 [searchScheduler-1] INFO xxx.service.impl.DataHarvestingServiceImpl - Starting data retrieval at Mon Feb 15 14:57:00 CST 2010<br> 71318 [searchScheduler-1] INFO xxx.service.impl.DataHarvestingServiceImpl - Finished media data retrieval at Mon Feb 15 14:57:00 CST 2010<br> count is 2<br> 71318 [searchScheduler-1] INFO xxx.service.impl.DataHarvestingServiceImpl - Starting data retrieval at Mon Feb 15 14:57:00 CST 2010<br> 71318 [searchScheduler-1] INFO xxx.service.impl.DataHarvestingServiceImpl - Finished media data retrieval at Mon Feb 15 14:57:00 CST 2010<br> count is 3<br> Any insight very much appreciated.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 GA</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=84747" rel="nofollow">http://forum.springsource.org/showthread.php?t=84747</a></p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398101633" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11322" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11322/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11322">#11322</a> ScheduledAnnotationBeanPostProcessor registers schedules twice in web application (<em><strong>"duplicates"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398150882" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14094" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14094/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14094">#14094</a> CronSequenceGenerator fails to accurately compute earliest next date when using second expression</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103939" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11669" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11669/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11669">#11669</a> CronTrigger is not triggered at correct time</li> </ul> <p dir="auto">5 votes, 21 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cmjartan" rel="nofollow">Carsten Mjartan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3202?redirect=false" rel="nofollow">SPR-3202</a></strong> and commented</p> <p dir="auto">I'm using Freemarkers TagLib-Support to make use of spring form tags in freemarker views.</p> <p dir="auto">Example: page.ftl</p> <p dir="auto">&lt;#assign form=JspTaglibs["http://www.springframework.org/tags/form"]&gt;<br> ...<br> &lt;<code class="notranslate">@form</code>.form commandName="registrationData" method="post"&gt;<br> ...<br> &lt;<code class="notranslate">@form</code>.errors path="surname"/&gt;</p> <p dir="auto"><a href="mailto:/@form.form">/@form.form</a></p> <p dir="auto">All tags render fine except for the ErrorsTag.</p> <p dir="auto">Debugging through the code, I can see that ErrorsTag.renderDefaultContent is successfully processed and finds the errors, but it doesn't show up in the generated HTML.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.2</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398077603" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8110" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8110/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8110">#8110</a> form:errors and form:option JSP tags don't render in FreeMarker templates (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto">Hi!</p> <p dir="auto"><strong>Postive:</strong><br> I've been so happy with Atom, it replaced my IntelliJ/PHPStorm and other IDE's incl. Vim and Sublime Text as a general purpose editor and sometimes IDE for a wide array of languages.</p> <p dir="auto"><strong>Negative:</strong><br> Now here is my problem: The startup-time is frustrating.</p> <p dir="auto">Can't I run atom as a daemon during startup and attach it to the <a href="http://www.emacswiki.org/emacs/EmacsAsDaemon" rel="nofollow">daemon like emacs-client</a>?</p> <p dir="auto">Hey, that's also a good business model for you <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/github/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/github">@github</a> 👍</p>
<p dir="auto">Status: This is an ongoing effort.</p> <p dir="auto">Via <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kevinsawicki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kevinsawicki">@kevinsawicki</a></p> <p dir="auto">The current plan is to investigate what is slow on startup, optimize it, and then investigate concatenating all the CoffeeScript requires to save eval time on startup.</p> <h3 dir="auto">Merged Changes</h3> <p dir="auto">Times below are were taken with a Macbook Pro on OS X 10.8.5 with 2.6 Ghz Intel Core i7 processors and 16 GB of memory</p> <ul dir="auto"> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/atom/less-cache/commit/dbddce5d34aee85f8b3687d5ec9e5837bdb9bb7a/hovercard" href="https://github.com/atom/less-cache/commit/dbddce5d34aee85f8b3687d5ec9e5837bdb9bb7a">atom/less-cache@<tt>dbddce5</tt></a> <ul dir="auto"> <li>Saves <code class="notranslate">~40ms</code> when starting Atom with a fully warm Less cache</li> </ul> </li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41972868" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/3453" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/3453/hovercard" href="https://github.com/atom/atom/pull/3453">#3453</a> <ul dir="auto"> <li>Cuts browser process launch time by <code class="notranslate">~33%</code></li> <li>Saves <code class="notranslate">~60ms</code> on startup</li> </ul> </li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42103599" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/3470" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/3470/hovercard" href="https://github.com/atom/atom/pull/3470">#3470</a> <ul dir="auto"> <li>Cuts time taken to apply stylesheets by <code class="notranslate">~66%</code></li> <li>Saves <code class="notranslate">~40ms</code> on startup</li> </ul> </li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42552587" data-permission-text="Title is private" data-url="https://github.com/atom/wrap-guide/issues/16" data-hovercard-type="pull_request" data-hovercard-url="/atom/wrap-guide/pull/16/hovercard" href="https://github.com/atom/wrap-guide/pull/16">atom/wrap-guide#16</a> <ul dir="auto"> <li>Saves <code class="notranslate">~10ms</code> on startup</li> </ul> </li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42578011" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/3519" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/3519/hovercard" href="https://github.com/atom/atom/pull/3519">#3519</a> <ul dir="auto"> <li>Saves <code class="notranslate">~250ms</code> on startup</li> </ul> </li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42436799" data-permission-text="Title is private" data-url="https://github.com/atom/tree-view/issues/219" data-hovercard-type="pull_request" data-hovercard-url="/atom/tree-view/pull/219/hovercard" href="https://github.com/atom/tree-view/pull/219">atom/tree-view#219</a> <ul dir="auto"> <li>Saves <code class="notranslate">~200ms</code> on startup for large projects.</li> </ul> </li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42836700" data-permission-text="Title is private" data-url="https://github.com/atom/status-bar/issues/35" data-hovercard-type="pull_request" data-hovercard-url="/atom/status-bar/pull/35/hovercard" href="https://github.com/atom/status-bar/pull/35">atom/status-bar#35</a> <ul dir="auto"> <li>Save <code class="notranslate">~30ms</code> on startup</li> </ul> </li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42933439" data-permission-text="Title is private" data-url="https://github.com/atom/tabs/issues/82" data-hovercard-type="pull_request" data-hovercard-url="/atom/tabs/pull/82/hovercard" href="https://github.com/atom/tabs/pull/82">atom/tabs#82</a> <ul dir="auto"> <li>Saves <code class="notranslate">~15ms</code> on startup</li> </ul> </li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46416489" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/3917" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/3917/hovercard" href="https://github.com/atom/atom/pull/3917">#3917</a> <ul dir="auto"> <li>Reduces number of files read at startup</li> </ul> </li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="45282920" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/3761" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/3761/hovercard" href="https://github.com/atom/atom/pull/3761">#3761</a> <ul dir="auto"> <li>Caches requires across all installed packages and speeds up require resolution</li> </ul> </li> </ul>
1
<h1 dir="auto">Description of the new feature/enhancement</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="As a user with multiple tabs opened in Windows Terminal When I click and drag one tab to an area clear of Windows Terminal I want the tab to open in a new instance of Windows Terminal So that I can see both terminals side by side"><pre class="notranslate"><code class="notranslate">As a user with multiple tabs opened in Windows Terminal When I click and drag one tab to an area clear of Windows Terminal I want the tab to open in a new instance of Windows Terminal So that I can see both terminals side by side </code></pre></div> <p dir="auto">Currently, in web browsers, we have the ability to grab a tab from a browser window which has multiple tabs opened, and drag it which then puts the tab that has been 'lifted' into its own browser window - this functionality doesn't appear to be currently available in Windows Terminal.</p> <p dir="auto">Similarly - if I have spilt tabs into 2 windows, being able to re-merge them would also be good :)</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows 10 1903 build 18362.418 Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows 10 1903 build 18362.418 Any other software? </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">This happened suddenly after a recent windows 10 update , left my laptop installing some updates at night , to find this strange error in the morning when trying to ssh from a debian WSL instance</p> <h1 dir="auto">Expected behavior</h1> <h1 dir="auto">Actual behavior</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43470049/68508266-3bbb2500-026e-11ea-82ae-bcbd8fccb83c.png"><img src="https://user-images.githubusercontent.com/43470049/68508266-3bbb2500-026e-11ea-82ae-bcbd8fccb83c.png" alt="image" style="max-width: 100%;"></a></p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var fs = require('fs'); var path = require('path'); for (var i = 0; i &lt; 1000; i++){ fs.open(path.join(__dirname, &quot;test.txt&quot;), &quot;a&quot;, function(err, fd) { if (err) { return; } fs.writeFile(fd, i + &quot;\n&quot;); }); }"><pre class="notranslate"><code class="notranslate">var fs = require('fs'); var path = require('path'); for (var i = 0; i &lt; 1000; i++){ fs.open(path.join(__dirname, "test.txt"), "a", function(err, fd) { if (err) { return; } fs.writeFile(fd, i + "\n"); }); } </code></pre></div> <p dir="auto">When run code above, DOM tree gone, DevTool show dialog: "Detached from the target. Remote debugging has been terminated with reason: Render process gone. Please re-attach to the new target"</p>
<p dir="auto">To repro:</p> <ol dir="auto"> <li>Upgrade Atom on Windows to 0.36.0 of Electron</li> <li>Open a file</li> <li>Renderer crash:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # ChildEBP RetAddr 00 0018dbf8 777f492e ntdll!NtTerminateProcess+0xc 01 0018dcd0 74ee7b42 ntdll!RtlExitUserProcess+0x9e 02 0018dce4 6d173fac KERNEL32!ExitProcessImplementation+0x12 03 0018dcf0 6d17427d MSVCR120!__crtExitProcess+0x15 [f:\dd\vctools\crt\crtw32\startup\crt0dat.c @ 774] 04 0018dd38 6d1bbbc7 MSVCR120!doexit+0x115 [f:\dd\vctools\crt\crtw32\startup\crt0dat.c @ 678] 05 0018dd4c 6d1e49ff MSVCR120!_exit+0xf [f:\dd\vctools\crt\crtw32\startup\crt0dat.c @ 433] 06 0018dd9c 5f3c4155 MSVCR120!raise+0xe3 [f:\dd\vctools\crt\crtw32\misc\winsig.c @ 526] 07 0018ddbc 5f3c41d5 node!node::Buffer::CallbackInfo::WeakCallback+0x1e [c:\users\paulb\code\atom\electron\vendor\node\src\node_buffer.cc @ 182] 08 0018ddcc 5f5880c0 node!node::Buffer::CallbackInfo::WeakCallback+0x13 [c:\users\paulb\code\atom\electron\vendor\node\src\node_buffer.cc @ 178] 09 0018ddfc 5f588240 node!v8::internal::GlobalHandles::Node::PostGarbageCollectionProcessing+0xb0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\global-handles.cc @ 324] 0a 0018de18 5f587fe3 node!v8::internal::GlobalHandles::PostScavengeProcessing+0x40 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\global-handles.cc @ 767] 0b 0018de30 5f56ea9d node!v8::internal::GlobalHandles::PostGarbageCollectionProcessing+0x33 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\global-handles.cc @ 904] 0c 0018de74 5f565b0b node!v8::internal::Heap::PerformGarbageCollection+0x33d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\heap\heap.cc @ 1297] 0d 0018dec8 5f6817bd node!v8::internal::Heap::CollectGarbage+0x19b [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\heap\heap.cc @ 973] 0e (Inline) -------- node!v8::internal::Heap::CollectGarbage+0x29 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\heap\heap-inl.h @ 528] 0f 0018def8 5f7328d1 node!v8::internal::Factory::NewFillerObject+0x8d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\factory.cc @ 82] 10 (Inline) -------- node!v8::internal::__RT_impl_Runtime_AllocateInTargetSpace+0xbb [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\runtime\runtime-internal.cc @ 246] 11 0018df28 3310a244 node!v8::internal::Runtime_AllocateInTargetSpace+0xc1 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\runtime\runtime-internal.cc @ 236] WARNING: Frame IP not in any known module. Following frames may be wrong. 12 0018df88 08b967b4 0x3310a244 13 0018dfd4 3b20d00f 0x8b967b4 14 0018e0b8 12682fa3 0x3b20d00f 15 0018e0dc 3312d401 0x12682fa3 16 0018e0f8 33129d1f 0x3312d401 17 0018e124 5f5fc9b0 0x33129d1f 18 0018e16c 5f5fc206 node!v8::internal::`anonymous namespace'::Invoke+0xf0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 98] 19 0018e1b8 5f6a2b50 node!v8::internal::Execution::Call+0x206 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 168] 1a 0018e1e0 5f6a2a7a node!v8::internal::Object::GetPropertyWithDefinedGetter+0x70 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 940] 1b 0018e248 5f6a1e81 node!v8::internal::Object::GetPropertyWithAccessor+0x25a [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 848] 1c 0018e274 5f6251cc node!v8::internal::Object::GetProperty+0x161 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 648] 1d 0018e354 5f626a9e node!v8::internal::LoadIC::Load+0x32c [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 749] 1e (Inline) -------- node!v8::internal::__RT_impl_Runtime_LoadIC_Miss+0xa4 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 2379] 1f 0018e430 3310ce3c node!v8::internal::Runtime_LoadIC_Miss+0xae [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 2361] 20 0018e44c 12682c0d 0x3310ce3c 21 0018e488 1267e4e3 0x12682c0d 22 0018e4ac 1267dd2d 0x1267e4e3 23 0018e4d4 1267da72 0x1267dd2d 24 0018e4f4 3310cd87 0x1267da72 25 0018e510 3f2a7376 0x3310cd87 26 0018e550 29b8a38a 0x3f2a7376 27 0018e57c 3310cd87 0x29b8a38a 28 0018e59c 1267d992 0x3310cd87 29 0018e5bc 1267d849 0x1267d992 2a 0018e5dc 1267cb6a 0x1267d849 2b 0018e620 1267c885 0x1267cb6a 2c 0018e64c 3312d401 0x1267c885 2d 0018e668 33129d1f 0x3312d401 2e 0018e694 5f5fc9b0 0x33129d1f 2f 0018e6dc 5f5fc206 node!v8::internal::`anonymous namespace'::Invoke+0xf0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 98] 30 0018e728 5f6a2b50 node!v8::internal::Execution::Call+0x206 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 168] 31 0018e750 5f6a2a7a node!v8::internal::Object::GetPropertyWithDefinedGetter+0x70 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 940] 32 0018e7b8 5f6a1e81 node!v8::internal::Object::GetPropertyWithAccessor+0x25a [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 848] 33 0018e7e4 5f6251cc node!v8::internal::Object::GetProperty+0x161 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 648] 34 0018e8c4 5f626a9e node!v8::internal::LoadIC::Load+0x32c [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 749] 35 (Inline) -------- node!v8::internal::__RT_impl_Runtime_LoadIC_Miss+0xa4 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 2379] 36 0018e9a0 3310ce3c node!v8::internal::Runtime_LoadIC_Miss+0xae [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 2361] 37 0018e9bc 1267c706 0x3310ce3c 38 0018e9dc 1267c20d 0x1267c706 39 0018ea28 3310cd87 0x1267c20d 3a 0018ea48 126c88fa 0x3310cd87 3b 0018ea64 126c8711 0x126c88fa 3c 0018ea80 29b29fc9 0x126c8711 3d 0018eaa0 3970b783 0x29b29fc9 3e 0018eac8 2c96bf85 0x3970b783 3f 0018eaf8 1294873d 0x2c96bf85 40 0018eb18 3970b5c7 0x1294873d 41 0018eb48 2c96bf85 0x3970b5c7 42 0018eb78 1294773d 0x2c96bf85 43 0018eb98 3970b399 0x1294773d 44 0018ebbc 3970ab52 0x3970b399 45 0018ebe4 3f284550 0x3970ab52 46 0018ec00 3f284114 0x3f284550 47 0018ec28 3f283dce 0x3f284114 48 0018ec50 3312d401 0x3f283dce 49 0018ec6c 33129d1f 0x3312d401 4a 0018ec98 5f5fc9b0 0x33129d1f 4b 0018ece0 5f5fc206 node!v8::internal::`anonymous namespace'::Invoke+0xf0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 98] 4c 0018ed2c 5f5fd01b node!v8::internal::Execution::Call+0x206 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 168] 4d 0018ed74 5f55ddb6 node!v8::internal::Execution::TryCall+0x6b [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 205] 4e 0018eddc 5f71a72e node!v8::internal::Isolate::RunMicrotasks+0x186 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\isolate.cc @ 2658] 4f 0018ee10 5f609c0c node!v8::internal::FunctionCallbackArguments::Call+0x7e [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\arguments.cc @ 34] 50 0018ee94 5f60c8bd node!v8::internal::HandleApiCallHelper&lt;0&gt;+0x33c [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\builtins.cc @ 1577] 51 0018eeb8 3310ce3c node!v8::internal::Builtin_implHandleApiCall+0x2d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\builtins.cc @ 1599] 52 0018eed8 08b70152 0x3310ce3c 53 0018ef04 3312d401 0x8b70152 54 0018ef20 33129d1f 0x3312d401 55 0018ef4c 5f5fc9b0 0x33129d1f 56 0018ef94 5f5fc206 node!v8::internal::`anonymous namespace'::Invoke+0xf0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 98] 57 0018efe0 5f660533 node!v8::internal::Execution::Call+0x206 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 168] 58 0018f028 5f660404 node!v8::Function::Call+0x103 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\api.cc @ 4364] 59 0018f04c 5f3abc83 node!v8::Function::Call+0x34 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\api.cc @ 4373] 5a 0018f0bc 5f3adebc node!node::AsyncWrap::MakeCallback+0x324 [c:\users\paulb\code\atom\electron\vendor\node\src\async-wrap.cc @ 263] 5b 0018f0e0 5f3cb6b9 node!node::AsyncWrap::MakeCallback+0x59 [c:\users\paulb\code\atom\electron\vendor\node\src\async-wrap-inl.h @ 98] 5c 0018f160 5f8e2d5f node!node::After+0x1d8 [c:\users\paulb\code\atom\electron\vendor\node\src\node_file.cc @ 248] 5d 0018f16c 5f8e4452 node!uv__fs_done+0x2e [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\win\fs.c @ 1765] 5e 0018f184 5f8d8544 node!uv__work_done+0x75 [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\threadpool.c @ 241] 5f 0018f190 5f8d71b3 node!uv_process_async_wakeup_req+0x33 [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\win\async.c @ 97] 60 0018f1b0 5f8d7285 node!uv_process_reqs+0x160 [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\win\req-inl.h @ 198] 61 0018f1d4 003ddf40 node!uv_run+0x52 [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\win\core.c @ 356] 62 0018f218 003ddd0f atom!atom::NodeBindings::UvRunOnce+0x94 [c:\users\paulb\code\atom\electron\atom\common\node_bindings.cc @ 234] 63 0018f228 003ddd6c atom!base::internal::InvokeHelper&lt;1,void,base::internal::RunnableAdapter&lt;void (__thiscall atom::NodeBindings::*)(void)&gt;,base::internal::TypeList&lt;base::WeakPtr&lt;atom::NodeBindings&gt; const &amp;&gt; &gt;::MakeItSo+0x33 [c:\users\paulb\code\atom\electron\vendor\brightray\vendor\download\libchromiumcontent\src\base\bind_internal.h @ 303] 64 0018f238 00533a75 atom!base::internal::Invoker&lt;base::IndexSequence&lt;0&gt;,base::internal::BindState&lt;base::internal::RunnableAdapter&lt;void (__thiscall atom::NodeBindings::*)(void)&gt;,void __cdecl(atom::NodeBindings *),base::internal::TypeList&lt;base::WeakPtr&lt;atom::NodeBindings&gt; &gt; &gt;,base::internal::TypeList&lt;base::internal::UnwrapTraits&lt;base::WeakPtr&lt;atom::NodeBindings&gt; &gt; &gt;,base::internal::InvokeHelper&lt;1,void,base::internal::RunnableAdapter&lt;void (__thiscall atom::NodeBindings::*)(void)&gt;,base::internal::TypeList&lt;base::WeakPtr&lt;atom::NodeBindings&gt; const &amp;&gt; &gt;,void __cdecl(void)&gt;::Run+0x12 [c:\users\paulb\code\atom\electron\vendor\brightray\vendor\download\libchromiumcontent\src\base\bind_internal.h @ 346] 65 (Inline) -------- atom!base::Callback&lt;void __cdecl(void)&gt;::Run+0x8 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\callback.h @ 396] 66 0018f294 0180c8d5 atom!base::debug::TaskAnnotator::RunTask+0xf5 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\debug\task_annotator.cc @ 51] 67 0018f370 0180c0fd atom!scheduler::TaskQueueManager::ProcessTaskFromWorkQueue+0x2e5 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\components\scheduler\base\task_queue_manager.cc @ 369] 68 0018f488 0180cb1f atom!scheduler::TaskQueueManager::DoWork+0x7d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\components\scheduler\base\task_queue_manager.cc @ 293] 69 (Inline) -------- atom!base::internal::RunnableAdapter&lt;void (__thiscall scheduler::TaskQueueManager::*)(bool)&gt;::Run+0x9 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\bind_internal.h @ 176] 6a (Inline) -------- atom!base::internal::InvokeHelper&lt;1,void,base::internal::RunnableAdapter&lt;void (__thiscall scheduler::TaskQueueManager::*)(bool)&gt;,base::internal::TypeList&lt;base::WeakPtr&lt;scheduler::TaskQueueManager&gt; const &amp;,bool const &amp;&gt; &gt;::MakeItSo+0x25 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\bind_internal.h @ 303] 6b 0018f4a0 00533a75 atom!base::internal::Invoker&lt;base::IndexSequence&lt;0,1&gt;,base::internal::BindState&lt;base::internal::RunnableAdapter&lt;void (__thiscall scheduler::TaskQueueManager::*)(bool)&gt;,void __cdecl(scheduler::TaskQueueManager *,bool),base::internal::TypeList&lt;base::WeakPtr&lt;scheduler::TaskQueueManager&gt;,bool&gt; &gt;,base::internal::TypeList&lt;base::internal::UnwrapTraits&lt;base::WeakPtr&lt;scheduler::TaskQueueManager&gt; &gt;,base::internal::UnwrapTraits&lt;bool&gt; &gt;,base::internal::InvokeHelper&lt;1,void,base::internal::RunnableAdapter&lt;void (__thiscall scheduler::TaskQueueManager::*)(bool)&gt;,base::internal::TypeList&lt;base::WeakPtr&lt;scheduler::TaskQueueManager&gt; const &amp;,bool const &amp;&gt; &gt;,void __cdecl(void)&gt;::Run+0x3f [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\bind_internal.h @ 346] 6c (Inline) -------- atom!base::Callback&lt;void __cdecl(void)&gt;::Run+0x8 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\callback.h @ 396] 6d 0018f4fc 004fd87c atom!base::debug::TaskAnnotator::RunTask+0xf5 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\debug\task_annotator.cc @ 51] 6e 0018f640 004fcf59 atom!base::MessageLoop::RunTask+0x1dc [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\message_loop\message_loop.cc @ 480] 6f (Inline) -------- atom!std::deque&lt;base::PendingTask,std::allocator&lt;base::PendingTask&gt; &gt;::empty+0x3 [c:\program files (x86)\microsoft visual studio 12.0\vc\include\deque @ 1362] 70 (Inline) -------- atom!std::queue&lt;base::PendingTask,std::deque&lt;base::PendingTask,std::allocator&lt;base::PendingTask&gt; &gt; &gt;::empty+0x3 [c:\program files (x86)\microsoft visual studio 12.0\vc\include\queue @ 122] 71 0018f6c4 00535cb7 atom!base::MessageLoop::DoWork+0x199 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\message_loop\message_loop.cc @ 605] 72 0018f6e8 004fd670 atom!base::MessagePumpDefault::Run+0xb7 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\message_loop\message_pump_default.cc @ 33] 73 0018f6f4 00539ab8 atom!base::MessageLoop::RunHandler+0x10 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\message_loop\message_loop.cc @ 438] 74 0018f718 004fd62d atom!base::RunLoop::Run+0x58 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\run_loop.cc @ 56] 75 0018f740 00b5a53b atom!base::internal::Invoker&lt;base::IndexSequence&lt;0&gt;,base::internal::BindState&lt;base::internal::RunnableAdapter&lt;void (__cdecl*)(void const *)&gt;,void __cdecl(void const *),base::internal::TypeList&lt;void const *&gt; &gt;,base::internal::TypeList&lt;base::internal::UnwrapTraits&lt;void const *&gt; &gt;,base::internal::InvokeHelper&lt;0,void,base::internal::RunnableAdapter&lt;void (__cdecl*)(void const *)&gt;,base::internal::TypeList&lt;void const * const &amp;&gt; &gt;,void __cdecl(void)&gt;::Run+0x1d 76 0018f854 0060d85e atom!content::RendererMain+0x3bb [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\content\renderer\renderer_main.cc @ 209] 77 0018f874 0060d70d atom!content::RunNamedProcessTypeMain+0x11e [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\content\app\content_main_runner.cc @ 378] 78 0018f8c0 0060ab93 atom!content::ContentMainRunnerImpl::Run+0x7d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\content\app\content_main_runner.cc @ 798] 79 0018f8d0 003b9fbd atom!content::ContentMain+0x23 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\content\app\content_main.cc @ 19] 7a 0018f974 0244fbcc atom!wWinMain+0x1bf [c:\users\paulb\code\atom\electron\atom\app\atom_main.cc @ 167] 7b 0018f9c0 74ed38f4 atom!__tmainCRTStartup+0x12f [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c @ 618] 7c 0018f9d4 778056c3 KERNEL32!BaseThreadInitThunk+0x24 7d 0018fa1c 7780568e ntdll!__RtlUserThreadStart+0x2f 7e 0018fa2c 00000000 ntdll!_RtlUserThreadStart+0x1b"><pre class="notranslate"><code class="notranslate"> # ChildEBP RetAddr 00 0018dbf8 777f492e ntdll!NtTerminateProcess+0xc 01 0018dcd0 74ee7b42 ntdll!RtlExitUserProcess+0x9e 02 0018dce4 6d173fac KERNEL32!ExitProcessImplementation+0x12 03 0018dcf0 6d17427d MSVCR120!__crtExitProcess+0x15 [f:\dd\vctools\crt\crtw32\startup\crt0dat.c @ 774] 04 0018dd38 6d1bbbc7 MSVCR120!doexit+0x115 [f:\dd\vctools\crt\crtw32\startup\crt0dat.c @ 678] 05 0018dd4c 6d1e49ff MSVCR120!_exit+0xf [f:\dd\vctools\crt\crtw32\startup\crt0dat.c @ 433] 06 0018dd9c 5f3c4155 MSVCR120!raise+0xe3 [f:\dd\vctools\crt\crtw32\misc\winsig.c @ 526] 07 0018ddbc 5f3c41d5 node!node::Buffer::CallbackInfo::WeakCallback+0x1e [c:\users\paulb\code\atom\electron\vendor\node\src\node_buffer.cc @ 182] 08 0018ddcc 5f5880c0 node!node::Buffer::CallbackInfo::WeakCallback+0x13 [c:\users\paulb\code\atom\electron\vendor\node\src\node_buffer.cc @ 178] 09 0018ddfc 5f588240 node!v8::internal::GlobalHandles::Node::PostGarbageCollectionProcessing+0xb0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\global-handles.cc @ 324] 0a 0018de18 5f587fe3 node!v8::internal::GlobalHandles::PostScavengeProcessing+0x40 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\global-handles.cc @ 767] 0b 0018de30 5f56ea9d node!v8::internal::GlobalHandles::PostGarbageCollectionProcessing+0x33 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\global-handles.cc @ 904] 0c 0018de74 5f565b0b node!v8::internal::Heap::PerformGarbageCollection+0x33d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\heap\heap.cc @ 1297] 0d 0018dec8 5f6817bd node!v8::internal::Heap::CollectGarbage+0x19b [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\heap\heap.cc @ 973] 0e (Inline) -------- node!v8::internal::Heap::CollectGarbage+0x29 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\heap\heap-inl.h @ 528] 0f 0018def8 5f7328d1 node!v8::internal::Factory::NewFillerObject+0x8d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\factory.cc @ 82] 10 (Inline) -------- node!v8::internal::__RT_impl_Runtime_AllocateInTargetSpace+0xbb [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\runtime\runtime-internal.cc @ 246] 11 0018df28 3310a244 node!v8::internal::Runtime_AllocateInTargetSpace+0xc1 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\runtime\runtime-internal.cc @ 236] WARNING: Frame IP not in any known module. Following frames may be wrong. 12 0018df88 08b967b4 0x3310a244 13 0018dfd4 3b20d00f 0x8b967b4 14 0018e0b8 12682fa3 0x3b20d00f 15 0018e0dc 3312d401 0x12682fa3 16 0018e0f8 33129d1f 0x3312d401 17 0018e124 5f5fc9b0 0x33129d1f 18 0018e16c 5f5fc206 node!v8::internal::`anonymous namespace'::Invoke+0xf0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 98] 19 0018e1b8 5f6a2b50 node!v8::internal::Execution::Call+0x206 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 168] 1a 0018e1e0 5f6a2a7a node!v8::internal::Object::GetPropertyWithDefinedGetter+0x70 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 940] 1b 0018e248 5f6a1e81 node!v8::internal::Object::GetPropertyWithAccessor+0x25a [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 848] 1c 0018e274 5f6251cc node!v8::internal::Object::GetProperty+0x161 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 648] 1d 0018e354 5f626a9e node!v8::internal::LoadIC::Load+0x32c [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 749] 1e (Inline) -------- node!v8::internal::__RT_impl_Runtime_LoadIC_Miss+0xa4 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 2379] 1f 0018e430 3310ce3c node!v8::internal::Runtime_LoadIC_Miss+0xae [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 2361] 20 0018e44c 12682c0d 0x3310ce3c 21 0018e488 1267e4e3 0x12682c0d 22 0018e4ac 1267dd2d 0x1267e4e3 23 0018e4d4 1267da72 0x1267dd2d 24 0018e4f4 3310cd87 0x1267da72 25 0018e510 3f2a7376 0x3310cd87 26 0018e550 29b8a38a 0x3f2a7376 27 0018e57c 3310cd87 0x29b8a38a 28 0018e59c 1267d992 0x3310cd87 29 0018e5bc 1267d849 0x1267d992 2a 0018e5dc 1267cb6a 0x1267d849 2b 0018e620 1267c885 0x1267cb6a 2c 0018e64c 3312d401 0x1267c885 2d 0018e668 33129d1f 0x3312d401 2e 0018e694 5f5fc9b0 0x33129d1f 2f 0018e6dc 5f5fc206 node!v8::internal::`anonymous namespace'::Invoke+0xf0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 98] 30 0018e728 5f6a2b50 node!v8::internal::Execution::Call+0x206 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 168] 31 0018e750 5f6a2a7a node!v8::internal::Object::GetPropertyWithDefinedGetter+0x70 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 940] 32 0018e7b8 5f6a1e81 node!v8::internal::Object::GetPropertyWithAccessor+0x25a [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 848] 33 0018e7e4 5f6251cc node!v8::internal::Object::GetProperty+0x161 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\objects.cc @ 648] 34 0018e8c4 5f626a9e node!v8::internal::LoadIC::Load+0x32c [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 749] 35 (Inline) -------- node!v8::internal::__RT_impl_Runtime_LoadIC_Miss+0xa4 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 2379] 36 0018e9a0 3310ce3c node!v8::internal::Runtime_LoadIC_Miss+0xae [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\ic\ic.cc @ 2361] 37 0018e9bc 1267c706 0x3310ce3c 38 0018e9dc 1267c20d 0x1267c706 39 0018ea28 3310cd87 0x1267c20d 3a 0018ea48 126c88fa 0x3310cd87 3b 0018ea64 126c8711 0x126c88fa 3c 0018ea80 29b29fc9 0x126c8711 3d 0018eaa0 3970b783 0x29b29fc9 3e 0018eac8 2c96bf85 0x3970b783 3f 0018eaf8 1294873d 0x2c96bf85 40 0018eb18 3970b5c7 0x1294873d 41 0018eb48 2c96bf85 0x3970b5c7 42 0018eb78 1294773d 0x2c96bf85 43 0018eb98 3970b399 0x1294773d 44 0018ebbc 3970ab52 0x3970b399 45 0018ebe4 3f284550 0x3970ab52 46 0018ec00 3f284114 0x3f284550 47 0018ec28 3f283dce 0x3f284114 48 0018ec50 3312d401 0x3f283dce 49 0018ec6c 33129d1f 0x3312d401 4a 0018ec98 5f5fc9b0 0x33129d1f 4b 0018ece0 5f5fc206 node!v8::internal::`anonymous namespace'::Invoke+0xf0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 98] 4c 0018ed2c 5f5fd01b node!v8::internal::Execution::Call+0x206 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 168] 4d 0018ed74 5f55ddb6 node!v8::internal::Execution::TryCall+0x6b [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 205] 4e 0018eddc 5f71a72e node!v8::internal::Isolate::RunMicrotasks+0x186 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\isolate.cc @ 2658] 4f 0018ee10 5f609c0c node!v8::internal::FunctionCallbackArguments::Call+0x7e [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\arguments.cc @ 34] 50 0018ee94 5f60c8bd node!v8::internal::HandleApiCallHelper&lt;0&gt;+0x33c [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\builtins.cc @ 1577] 51 0018eeb8 3310ce3c node!v8::internal::Builtin_implHandleApiCall+0x2d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\builtins.cc @ 1599] 52 0018eed8 08b70152 0x3310ce3c 53 0018ef04 3312d401 0x8b70152 54 0018ef20 33129d1f 0x3312d401 55 0018ef4c 5f5fc9b0 0x33129d1f 56 0018ef94 5f5fc206 node!v8::internal::`anonymous namespace'::Invoke+0xf0 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 98] 57 0018efe0 5f660533 node!v8::internal::Execution::Call+0x206 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\execution.cc @ 168] 58 0018f028 5f660404 node!v8::Function::Call+0x103 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\api.cc @ 4364] 59 0018f04c 5f3abc83 node!v8::Function::Call+0x34 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\v8\src\api.cc @ 4373] 5a 0018f0bc 5f3adebc node!node::AsyncWrap::MakeCallback+0x324 [c:\users\paulb\code\atom\electron\vendor\node\src\async-wrap.cc @ 263] 5b 0018f0e0 5f3cb6b9 node!node::AsyncWrap::MakeCallback+0x59 [c:\users\paulb\code\atom\electron\vendor\node\src\async-wrap-inl.h @ 98] 5c 0018f160 5f8e2d5f node!node::After+0x1d8 [c:\users\paulb\code\atom\electron\vendor\node\src\node_file.cc @ 248] 5d 0018f16c 5f8e4452 node!uv__fs_done+0x2e [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\win\fs.c @ 1765] 5e 0018f184 5f8d8544 node!uv__work_done+0x75 [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\threadpool.c @ 241] 5f 0018f190 5f8d71b3 node!uv_process_async_wakeup_req+0x33 [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\win\async.c @ 97] 60 0018f1b0 5f8d7285 node!uv_process_reqs+0x160 [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\win\req-inl.h @ 198] 61 0018f1d4 003ddf40 node!uv_run+0x52 [c:\users\paulb\code\atom\electron\vendor\node\deps\uv\src\win\core.c @ 356] 62 0018f218 003ddd0f atom!atom::NodeBindings::UvRunOnce+0x94 [c:\users\paulb\code\atom\electron\atom\common\node_bindings.cc @ 234] 63 0018f228 003ddd6c atom!base::internal::InvokeHelper&lt;1,void,base::internal::RunnableAdapter&lt;void (__thiscall atom::NodeBindings::*)(void)&gt;,base::internal::TypeList&lt;base::WeakPtr&lt;atom::NodeBindings&gt; const &amp;&gt; &gt;::MakeItSo+0x33 [c:\users\paulb\code\atom\electron\vendor\brightray\vendor\download\libchromiumcontent\src\base\bind_internal.h @ 303] 64 0018f238 00533a75 atom!base::internal::Invoker&lt;base::IndexSequence&lt;0&gt;,base::internal::BindState&lt;base::internal::RunnableAdapter&lt;void (__thiscall atom::NodeBindings::*)(void)&gt;,void __cdecl(atom::NodeBindings *),base::internal::TypeList&lt;base::WeakPtr&lt;atom::NodeBindings&gt; &gt; &gt;,base::internal::TypeList&lt;base::internal::UnwrapTraits&lt;base::WeakPtr&lt;atom::NodeBindings&gt; &gt; &gt;,base::internal::InvokeHelper&lt;1,void,base::internal::RunnableAdapter&lt;void (__thiscall atom::NodeBindings::*)(void)&gt;,base::internal::TypeList&lt;base::WeakPtr&lt;atom::NodeBindings&gt; const &amp;&gt; &gt;,void __cdecl(void)&gt;::Run+0x12 [c:\users\paulb\code\atom\electron\vendor\brightray\vendor\download\libchromiumcontent\src\base\bind_internal.h @ 346] 65 (Inline) -------- atom!base::Callback&lt;void __cdecl(void)&gt;::Run+0x8 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\callback.h @ 396] 66 0018f294 0180c8d5 atom!base::debug::TaskAnnotator::RunTask+0xf5 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\debug\task_annotator.cc @ 51] 67 0018f370 0180c0fd atom!scheduler::TaskQueueManager::ProcessTaskFromWorkQueue+0x2e5 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\components\scheduler\base\task_queue_manager.cc @ 369] 68 0018f488 0180cb1f atom!scheduler::TaskQueueManager::DoWork+0x7d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\components\scheduler\base\task_queue_manager.cc @ 293] 69 (Inline) -------- atom!base::internal::RunnableAdapter&lt;void (__thiscall scheduler::TaskQueueManager::*)(bool)&gt;::Run+0x9 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\bind_internal.h @ 176] 6a (Inline) -------- atom!base::internal::InvokeHelper&lt;1,void,base::internal::RunnableAdapter&lt;void (__thiscall scheduler::TaskQueueManager::*)(bool)&gt;,base::internal::TypeList&lt;base::WeakPtr&lt;scheduler::TaskQueueManager&gt; const &amp;,bool const &amp;&gt; &gt;::MakeItSo+0x25 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\bind_internal.h @ 303] 6b 0018f4a0 00533a75 atom!base::internal::Invoker&lt;base::IndexSequence&lt;0,1&gt;,base::internal::BindState&lt;base::internal::RunnableAdapter&lt;void (__thiscall scheduler::TaskQueueManager::*)(bool)&gt;,void __cdecl(scheduler::TaskQueueManager *,bool),base::internal::TypeList&lt;base::WeakPtr&lt;scheduler::TaskQueueManager&gt;,bool&gt; &gt;,base::internal::TypeList&lt;base::internal::UnwrapTraits&lt;base::WeakPtr&lt;scheduler::TaskQueueManager&gt; &gt;,base::internal::UnwrapTraits&lt;bool&gt; &gt;,base::internal::InvokeHelper&lt;1,void,base::internal::RunnableAdapter&lt;void (__thiscall scheduler::TaskQueueManager::*)(bool)&gt;,base::internal::TypeList&lt;base::WeakPtr&lt;scheduler::TaskQueueManager&gt; const &amp;,bool const &amp;&gt; &gt;,void __cdecl(void)&gt;::Run+0x3f [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\bind_internal.h @ 346] 6c (Inline) -------- atom!base::Callback&lt;void __cdecl(void)&gt;::Run+0x8 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\callback.h @ 396] 6d 0018f4fc 004fd87c atom!base::debug::TaskAnnotator::RunTask+0xf5 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\debug\task_annotator.cc @ 51] 6e 0018f640 004fcf59 atom!base::MessageLoop::RunTask+0x1dc [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\message_loop\message_loop.cc @ 480] 6f (Inline) -------- atom!std::deque&lt;base::PendingTask,std::allocator&lt;base::PendingTask&gt; &gt;::empty+0x3 [c:\program files (x86)\microsoft visual studio 12.0\vc\include\deque @ 1362] 70 (Inline) -------- atom!std::queue&lt;base::PendingTask,std::deque&lt;base::PendingTask,std::allocator&lt;base::PendingTask&gt; &gt; &gt;::empty+0x3 [c:\program files (x86)\microsoft visual studio 12.0\vc\include\queue @ 122] 71 0018f6c4 00535cb7 atom!base::MessageLoop::DoWork+0x199 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\message_loop\message_loop.cc @ 605] 72 0018f6e8 004fd670 atom!base::MessagePumpDefault::Run+0xb7 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\message_loop\message_pump_default.cc @ 33] 73 0018f6f4 00539ab8 atom!base::MessageLoop::RunHandler+0x10 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\message_loop\message_loop.cc @ 438] 74 0018f718 004fd62d atom!base::RunLoop::Run+0x58 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\base\run_loop.cc @ 56] 75 0018f740 00b5a53b atom!base::internal::Invoker&lt;base::IndexSequence&lt;0&gt;,base::internal::BindState&lt;base::internal::RunnableAdapter&lt;void (__cdecl*)(void const *)&gt;,void __cdecl(void const *),base::internal::TypeList&lt;void const *&gt; &gt;,base::internal::TypeList&lt;base::internal::UnwrapTraits&lt;void const *&gt; &gt;,base::internal::InvokeHelper&lt;0,void,base::internal::RunnableAdapter&lt;void (__cdecl*)(void const *)&gt;,base::internal::TypeList&lt;void const * const &amp;&gt; &gt;,void __cdecl(void)&gt;::Run+0x1d 76 0018f854 0060d85e atom!content::RendererMain+0x3bb [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\content\renderer\renderer_main.cc @ 209] 77 0018f874 0060d70d atom!content::RunNamedProcessTypeMain+0x11e [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\content\app\content_main_runner.cc @ 378] 78 0018f8c0 0060ab93 atom!content::ContentMainRunnerImpl::Run+0x7d [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\content\app\content_main_runner.cc @ 798] 79 0018f8d0 003b9fbd atom!content::ContentMain+0x23 [y:\jenkins\workspace\libchromiumcontent-win\vendor\chromium\src\content\app\content_main.cc @ 19] 7a 0018f974 0244fbcc atom!wWinMain+0x1bf [c:\users\paulb\code\atom\electron\atom\app\atom_main.cc @ 167] 7b 0018f9c0 74ed38f4 atom!__tmainCRTStartup+0x12f [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c @ 618] 7c 0018f9d4 778056c3 KERNEL32!BaseThreadInitThunk+0x24 7d 0018fa1c 7780568e ntdll!__RtlUserThreadStart+0x2f 7e 0018fa2c 00000000 ntdll!_RtlUserThreadStart+0x1b </code></pre></div> <p dir="auto">This check is failing:</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="void CallbackInfo::WeakCallback(Isolate* isolate, Local&lt;Object&gt; object) { CHECK(object-&gt;IsArrayBuffer()); /******** Kerplowie *********/ Local&lt;ArrayBuffer&gt; buf = object.As&lt;ArrayBuffer&gt;(); ArrayBuffer::Contents obj_c = buf-&gt;GetContents(); char* const obj_data = static_cast&lt;char*&gt;(obj_c.Data()); if (buf-&gt;ByteLength() != 0) CHECK_NE(obj_data, nullptr); if (buf-&gt;IsExternal()) buf-&gt;Neuter(); callback_(obj_data, hint_); int64_t change_in_bytes = -static_cast&lt;int64_t&gt;(sizeof(*this)); isolate-&gt;AdjustAmountOfExternalAllocatedMemory(change_in_bytes); delete this; }"><pre class="notranslate"><span class="pl-k">void</span> <span class="pl-en">CallbackInfo::WeakCallback</span>(Isolate* isolate, Local&lt;Object&gt; object) { <span class="pl-c1">CHECK</span>(object-&gt;<span class="pl-c1">IsArrayBuffer</span>()); <span class="pl-c"><span class="pl-c">/*</span>******* Kerplowie ********<span class="pl-c">*/</span></span> Local&lt;ArrayBuffer&gt; buf = object.<span class="pl-smi">As</span>&lt;ArrayBuffer&gt;(); ArrayBuffer::Contents obj_c = buf-&gt;<span class="pl-c1">GetContents</span>(); <span class="pl-k">char</span>* <span class="pl-k">const</span> obj_data = <span class="pl-k">static_cast</span>&lt;<span class="pl-k">char</span>*&gt;(obj_c.<span class="pl-c1">Data</span>()); <span class="pl-k">if</span> (buf-&gt;<span class="pl-c1">ByteLength</span>() != <span class="pl-c1">0</span>) <span class="pl-c1">CHECK_NE</span>(obj_data, <span class="pl-c1">nullptr</span>); <span class="pl-k">if</span> (buf-&gt;<span class="pl-c1">IsExternal</span>()) buf-&gt;<span class="pl-c1">Neuter</span>(); <span class="pl-c1">callback_</span>(obj_data, hint_); <span class="pl-c1">int64_t</span> change_in_bytes = -<span class="pl-k">static_cast</span>&lt;<span class="pl-c1">int64_t</span>&gt;(<span class="pl-k">sizeof</span>(*<span class="pl-c1">this</span>)); isolate-&gt;<span class="pl-c1">AdjustAmountOfExternalAllocatedMemory</span>(change_in_bytes); <span class="pl-k">delete</span> <span class="pl-c1">this</span>; }</pre></div>
1
<h3 dir="auto">System Info</h3> <p dir="auto">transformers-cli env</p> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 4.24.0</li> <li>Platform: Linux-5.4.0-99-generic-x86_64-with-glibc2.17</li> <li>Python version: 3.8.12</li> <li>Huggingface_hub version: 0.10.1</li> <li>PyTorch version (GPU?): 1.12.1+cu102 (True)</li> <li>onnxruntime-gpu: 1.13.1</li> <li>Tensorflow version (GPU?): not installed (NA)</li> <li>Flax version (CPU?/GPU?/TPU?): not installed (NA)</li> <li>Jax version: not installed</li> <li>JaxLib version: not installed</li> <li>Using GPU in script?: </li> <li>Using distributed or parallel set-up in script?: </li> </ul> <h3 dir="auto">Who can help?</h3> <p dir="auto">ONNX model conversion: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/morgan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/morgan">@morgan</a></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <p dir="auto">This command line:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python -m transformers.onnx --model pszemraj/long-t5-tglobal-base-16384-book-summary --feature seq2seq-lm-with-past --preprocessor tokenizer --framework pt ."><pre class="notranslate"><code class="notranslate">python -m transformers.onnx --model pszemraj/long-t5-tglobal-base-16384-book-summary --feature seq2seq-lm-with-past --preprocessor tokenizer --framework pt . </code></pre></div> <p dir="auto">Gives me the following error during export validation:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Validating ONNX model... Floating point exception (core dumped)"><pre class="notranslate"><code class="notranslate">Validating ONNX model... Floating point exception (core dumped) </code></pre></div> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Having a usable and validated ONNX model.</p>
<h2 dir="auto">Environment info</h2> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 4.8.2</li> <li>Platform: Databricks</li> <li>Python version: 3.7.10</li> <li>PyTorch version (GPU?): GPU</li> <li>Using GPU in script?: No</li> <li>Using distributed or parallel set-up in script?: Yes</li> </ul> <h2 dir="auto">Information</h2> <p dir="auto">Model I am using : camembert-base:</p> <p dir="auto">The problem arises when i try to use a tokenizer (from whatever model in my experiments) on multiple thread pools with an Autotokenizer, the error <strong>RuntimeError: Already borrowed</strong> get raised, i haven't tried if the same issues occure whith AutoModel, but i suspect it would, this makes it completly inefficient as it requires to duplicate the tokenizer on each thread (same for model), and is a real problem for packages like Petastorm / Horovod.</p> <h2 dir="auto">To reproduce</h2> <p dir="auto">Below you'll find a simple snippet of code to reproduce the error:<br> Steps to reproduce the behavior:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" from multiprocessing.dummy import Pool as ThreadPool tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path=&quot;camembert-base&quot;) def tokenizer_test(text): print(tokenizer(text)) pool = ThreadPool(10) data_list = ['this is a test'] * 10 pool.map(tokenizer_test, data_list) pool.close() pool.join()"><pre class="notranslate"> <span class="pl-k">from</span> <span class="pl-s1">multiprocessing</span>.<span class="pl-s1">dummy</span> <span class="pl-k">import</span> <span class="pl-v">Pool</span> <span class="pl-k">as</span> <span class="pl-v">ThreadPool</span> <span class="pl-s1">tokenizer</span> <span class="pl-c1">=</span> <span class="pl-v">AutoTokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s1">pretrained_model_name_or_path</span><span class="pl-c1">=</span><span class="pl-s">"camembert-base"</span>) <span class="pl-k">def</span> <span class="pl-en">tokenizer_test</span>(<span class="pl-s1">text</span>): <span class="pl-en">print</span>(<span class="pl-en">tokenizer</span>(<span class="pl-s1">text</span>)) <span class="pl-s1">pool</span> <span class="pl-c1">=</span> <span class="pl-v">ThreadPool</span>(<span class="pl-c1">10</span>) <span class="pl-s1">data_list</span> <span class="pl-c1">=</span> [<span class="pl-s">'this is a test'</span>] <span class="pl-c1">*</span> <span class="pl-c1">10</span> <span class="pl-s1">pool</span>.<span class="pl-en">map</span>(<span class="pl-s1">tokenizer_test</span>, <span class="pl-s1">data_list</span>) <span class="pl-s1">pool</span>.<span class="pl-en">close</span>() <span class="pl-s1">pool</span>.<span class="pl-en">join</span>()</pre></div> <p dir="auto">However this works fine if i switch the Autotokenizer with CamembertTokenizer.from_pretrained("camembert-base") for example.</p>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-serial/1724/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-serial/1724/</a></p> <p dir="auto">Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] ReplicaSet Should scale from 5 pods to 3 pods and from 3 to 1 {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/horizontal_pod_autoscaling.go:62 Expected error: &lt;*errors.errorString | 0xc821114a70&gt;: { s: &quot;Only 4 pods started out of 5&quot;, } Only 4 pods started out of 5 not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:62 Expected error: &lt;*errors.errorString | 0xc821114a70&gt;: { s: "Only 4 pods started out of 5", } Only 4 pods started out of 5 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="160282299" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27394" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27394/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27394">#27394</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161010739" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27660" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27660/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27660">#27660</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162316093" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28079" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28079/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28079">#28079</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/2033/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/2033/</a></p> <p dir="auto">Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] Deployment Should scale from 1 pod to 3 pods and from 3 to 5 {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/horizontal_pod_autoscaling.go:49 Aug 28 09:38:39.413: timeout waiting 15m0s for pods size to be 5 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:49 Aug 28 09:38:39.413: timeout waiting 15m0s for pods size to be 5 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284 </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="170291155" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30317" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30317/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30317">#30317</a></p>
1
<ul dir="auto"> <li>Electron version: 1.3.3</li> <li>Operating system: win10</li> </ul> <p dir="auto">What I do:</p> <ol dir="auto"> <li>Use typescript to compile a react project with sourcemap enabled.</li> <li>Do not use any package tools like webpack or browerify, aka, directly use require() in browser process.</li> <li>Open the electron instance to debug.</li> </ol> <p dir="auto">What I expect:</p> <ol dir="auto"> <li>The chromium source panel can display tsx files using sourcemaps.</li> </ol> <p dir="auto">What I get:</p> <ol dir="auto"> <li>The source panel can only display the tsx souce files in the root dir, which includes our index.html and main process js file. The components tsx files in some folders do not show up.</li> </ol> <p dir="auto">What I try:</p> <ol dir="auto"> <li>I try to use the inlineSourcemap or set the sourceRoot property, then I get a tsx blank page. What happened?</li> </ol> <p dir="auto">Please help me, thanks!</p>
<p dir="auto">Hey,</p> <p dir="auto">I've noticed that source maps are not applied on first run. After launching Electron, the user needs to re-load the page in order for the source maps to "kick in."</p> <p dir="auto">Here is a repo where you can reproduce the problem:</p> <p dir="auto"><a href="https://github.com/mattdesl/test-electron-source-maps/tree/test/first-run">test-electron-source-maps (in branch test/first-run)</a></p>
1
<p dir="auto">(This is a feature that I've been working on (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="453247002" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/21493" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/21493/hovercard?comment_id=500513129&amp;comment_type=issue_comment" href="https://github.com/pytorch/pytorch/pull/21493#issuecomment-500513129">#21493 (comment)</a>). I open this issue so that relevant PRs can be better tracked.)</p> <h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature and Motivation</h2> <p dir="auto">Better CMake integration. Currently there are a lot of inconsistency and redundancy between the Python setup scripts and CMake scripts (duplicated env check, overriding env check, inconsistent treatment of which results of checking will be used, etc.). I would like to improve the integration.</p> <h2 dir="auto">Pitch</h2> <p dir="auto">The improvement I would like to implement includes:</p> <ul dir="auto"> <li>Allowing build options to be directly specified using options specified in CMakeLists.txt (without explicitly being processed in Python setup scripts).</li> <li>Allowing users to adjust build options directly via cmake-gui/ccmake/editing CMakeCache.txt (currently users must take care of both options in CMakeCache.txt and environmental variables passed to setup.py and ensure they are consistent upon rebuild).</li> <li>removing a lot of system and library environment checks in Python setup scripts while CMake can already handle them pretty well.</li> <li>...</li> </ul> <h2 dir="auto">Existing PRs (including those that were made to clear the path)</h2> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="449423118" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/21034" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/21034/hovercard" href="https://github.com/pytorch/pytorch/pull/21034">#21034</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="451631812" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/21296" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/21296/hovercard" href="https://github.com/pytorch/pytorch/pull/21296">#21296</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="452638613" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/21417" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/21417/hovercard" href="https://github.com/pytorch/pytorch/pull/21417">#21417</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="453247002" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/21493" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/21493/hovercard" href="https://github.com/pytorch/pytorch/pull/21493">#21493</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="454910949" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/21653" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/21653/hovercard" href="https://github.com/pytorch/pytorch/pull/21653">#21653</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="457176905" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/21877" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/21877/hovercard" href="https://github.com/pytorch/pytorch/pull/21877">#21877</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="460049359" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/22153" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/22153/hovercard" href="https://github.com/pytorch/pytorch/pull/22153">#22153</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="460049393" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/22154" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/22154/hovercard" href="https://github.com/pytorch/pytorch/pull/22154">#22154</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="460568396" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/22215" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/22215/hovercard" href="https://github.com/pytorch/pytorch/pull/22215">#22215</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="462248945" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/22360" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/22360/hovercard" href="https://github.com/pytorch/pytorch/pull/22360">#22360</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">I am getting above error while doing inference after quantization of my model.<br> a. This happens after 62nd epoch. If I quantize using any weights till 62nd epoch, every thing is fine.<br> b. If I use partial (1/3) data to train my model, I see no issue.<br> c. Only with "qnnpack". No issue with 'fbgemm'<br> d. After executing operation in model that cause this error, the output becomes random (due to "qnnp_delete_operator(convolution);" in qnnpack/convolution.c)<br> e. Location of error (in model) changes with weights.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Train float model</li> <li>Load trained model</li> <li>Quantize float model with "qnnpack' backend: (my quantization script)</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def static_quantize(model, backend): if backend not in torch.backends.quantized.supported_engines: raise RuntimeError(&quot;Quantized backend not supported &quot;) model.eval() if backend == 'fbgemm': torch.backends.quantized.engine = 'fbgemm' model.qconfig = torch.quantization.get_default_qconfig('fbgemm') elif backend == 'qnnpack': torch.backends.quantized.engine = 'qnnpack' model.qconfig = torch.quantization.get_default_qconfig('qnnpack') print(model.qconfig) model.fuse_model() torch.quantization.prepare(model, inplace=True) # Calibrate first print(&quot;Calibrating model...&quot;) epochs = 10 validate(model, cfg, epochs) # calibration done torch.quantization.convert(model, inplace=True) # Test post quantization accuracy validate(model, cfg, epochs) &lt;------- **ERROR** seen here "><pre class="notranslate"><code class="notranslate">def static_quantize(model, backend): if backend not in torch.backends.quantized.supported_engines: raise RuntimeError("Quantized backend not supported ") model.eval() if backend == 'fbgemm': torch.backends.quantized.engine = 'fbgemm' model.qconfig = torch.quantization.get_default_qconfig('fbgemm') elif backend == 'qnnpack': torch.backends.quantized.engine = 'qnnpack' model.qconfig = torch.quantization.get_default_qconfig('qnnpack') print(model.qconfig) model.fuse_model() torch.quantization.prepare(model, inplace=True) # Calibrate first print("Calibrating model...") epochs = 10 validate(model, cfg, epochs) # calibration done torch.quantization.convert(model, inplace=True) # Test post quantization accuracy validate(model, cfg, epochs) &lt;------- **ERROR** seen here </code></pre></div> <ol start="4" dir="auto"> <li>Quantized model operation causing this issue</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" (3): Sequential( (0): QuantBlock( (skip_add): QFunctional(scale=0.11691034585237503, zero_point=0) (conv): Sequential( (0): ConvBN( (0): QuantizedConv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), scale=0.2153073400259018, zero_point=62, padding=(1, 1), groups=256) (1): Identity() ) (1): ConvBNReLU( (0): QuantizedConvReLU2d(256, 256, kernel_size=(1, 1), stride=(1, 1), scale=0.06376750022172928, zero_point=0) (1): Identity() (2): Identity() ) ) )"><pre class="notranslate"><code class="notranslate"> (3): Sequential( (0): QuantBlock( (skip_add): QFunctional(scale=0.11691034585237503, zero_point=0) (conv): Sequential( (0): ConvBN( (0): QuantizedConv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), scale=0.2153073400259018, zero_point=62, padding=(1, 1), groups=256) (1): Identity() ) (1): ConvBNReLU( (0): QuantizedConvReLU2d(256, 256, kernel_size=(1, 1), stride=(1, 1), scale=0.06376750022172928, zero_point=0) (1): Identity() (2): Identity() ) ) ) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="## Expected behavior output of qnnpack and fbgemm should be same. ## Environment - PyTorch Version (e.g., 1.0): '1.5.0.dev20200316' (nightly) - OS (e.g., Linux): Ubuntu 18.04 - How you installed PyTorch (`conda`, `pip`, source): Conda - Build command you used (if compiling from source): NA - Python version: 3.7 - CUDA/cuDNN version: 10.1 - GPU models and configuration: RTX 2060 - Any other relevant information: ## Additional context Working weights for Conv layer. tensor([[[[-9.8111e-02, -2.3818e-01, -1.0097e-01], [-8.6748e-02, -1.5611e+00, -3.7088e-02], [-7.2189e-02, 9.3585e-03, -2.1457e-01]]], [[[-9.0585e-01, -1.4491e+00, -1.0290e+00], [ 6.0444e-02, 1.7321e-02, 4.5470e-02], [ 2.0289e-01, 1.7305e-01, 2.3026e-01]]], [[[-3.9760e-01, -1.7248e-01, -4.0785e-01], [ 5.5625e-03, 7.6404e-01, -7.1765e-02], [-5.1368e-01, -3.6436e-01, -5.2025e-01]]], [[[-1.2394e-01, -4.8440e-01, -4.7897e-01], [-4.6179e-01, -4.1148e-01, -4.7571e-01], [-3.6709e-01, -2.5656e-01, -3.8935e-01]]], [[[ 3.8117e-01, 2.7804e-01, 4.4873e-01], [ 4.8555e-01, -2.8842e-01, 2.9044e-01], [ 2.5739e-01, 6.3275e-01, 3.8192e-01]]], [[[-2.5214e-01, 3.7439e-01, -3.5673e-01], [ 3.0839e-01, 1.0794e+00, 4.3154e-01], [-2.5715e-01, 3.6404e-01, -3.6204e-01]]], [[[-5.4990e-01, -2.2252e-01, -5.0191e-01], [-1.7313e-01, 3.8547e-01, -1.1505e-01], [-6.0288e-01, -2.6323e-01, -6.4934e-01]]], [[[ 2.3457e-01, 2.6993e-01, 3.5980e-01], [ 1.4922e-01, 1.1058e+00, 4.5924e-01], [ 5.3947e-01, 1.6402e-01, 1.4880e-01]]], [[[ 5.9202e-01, 5.5206e-02, 5.2480e-01], [ 4.3953e-02, -1.1449e-01, 1.7012e-01], [ 5.4099e-01, -1.3535e-01, 4.9393e-01]]], [[[-3.6607e-01, 2.1279e-01, -3.4666e-01], [ 1.9444e-01, 1.1031e+00, 2.0701e-01], [-3.1785e-01, 2.0595e-01, -3.7019e-01]]], [[[ 9.1770e-02, -2.8905e-02, 1.8759e-01], [-1.2641e-01, -1.3670e+00, 1.0820e-01], [ 3.7640e-01, 2.5282e-02, 1.6139e-01]]], [[[ 6.6392e-02, 4.7435e-01, 2.2360e-01], [ 1.1640e-01, 4.4550e-02, 1.0114e-01], [ 7.5970e-01, -2.6593e-02, 7.4978e-01]]], [[[-2.4952e-01, -2.9136e-01, -4.3275e-01], [-4.3836e-01, 5.7868e-01, -4.1796e-01], [-3.1188e-01, -4.1504e-01, -6.0209e-01]]], [[[-7.6740e-03, -1.2746e-01, 7.3953e-02], [ 1.1245e-01, 2.4729e+00, 2.5669e-01], [ 2.8247e-02, 1.6268e-01, -7.0686e-04]]], [[[ 6.0586e-01, -1.2779e-02, 6.1001e-01], [-9.3175e-02, -3.9671e-01, -1.0740e-01], [ 6.3908e-01, -1.3216e-01, 5.9539e-01]]], [[[ 3.3967e-01, -4.4094e-01, 3.3106e-01], [-2.6672e-01, 1.2313e+00, -2.3391e-01], [ 2.3279e-01, -2.8770e-01, 3.1637e-01]]], [[[-3.4574e-01, -1.9476e-01, -4.8610e-01], [-2.2992e-01, -1.4230e-02, -1.9174e-01], [-5.4567e-01, -3.5120e-01, -6.8289e-01]]], [[[ 4.5144e-01, -2.5136e-02, 5.3568e-01], [ 3.1801e-02, -5.8331e-01, -3.4960e-02], [-9.1540e-04, -4.8772e-01, -1.8636e-01]]], [[[ 1.0150e-01, -1.2134e-02, 1.6102e-02], [-4.1484e-02, 4.3275e-01, -6.8248e-02], [-7.1185e-01, -7.1240e-01, -7.0851e-01]]], [[[-3.6291e-01, 1.8500e-01, -4.4183e-01], [ 8.4609e-02, 5.8029e-01, 1.4827e-01], [-5.9297e-01, 1.8420e-02, -6.8263e-01]]], [[[-5.8049e-01, -3.5364e-01, -7.2523e-01], [-3.7166e-01, -3.1462e-01, -5.6026e-01], [-2.5259e-01, -2.0127e-01, -4.1163e-01]]], [[[-4.1470e-01, -2.7154e-01, -3.6831e-01], [-1.1561e-01, -3.8793e-01, -2.6043e-01], [-6.1500e-01, -1.8974e-01, -6.4628e-01]]], [[[-4.7443e-01, -3.7602e-01, -4.7216e-01], [-3.7285e-01, 2.5685e-01, -1.8080e-01], [-3.2134e-01, -4.7332e-01, -4.5040e-01]]], [[[-2.4336e-01, -2.8814e-01, -2.2455e-01], [-2.7187e-01, 9.4440e-01, -3.6674e-01], [-2.5768e-01, -2.6512e-01, -2.8699e-01]]], [[[ 5.1769e-01, -3.3097e-02, 5.4375e-01], [-5.0911e-02, 5.1187e-01, -2.4701e-01], [ 5.3332e-01, -1.9179e-01, 6.5832e-01]]], [[[ 8.7317e-02, -2.7439e-01, -2.3370e-01], [-1.5015e-02, -1.7981e+00, -2.3003e-01], [-1.8798e-01, -2.9342e-01, -1.4052e-01]]], [[[-4.0463e-01, -5.8371e-01, -6.1616e-01], [-6.3553e-01, 2.8725e-01, -4.3908e-01], [ 4.6381e-03, -4.6432e-01, 7.3069e-02]]], [[[-6.9479e-01, -2.8610e-01, -6.3922e-01], [-3.1537e-02, 1.7567e-01, -4.9486e-04], [-3.4923e-01, -5.3215e-01, -3.3615e-01]]], [[[-6.9439e-01, -5.9017e-01, -7.6260e-01], [-1.4265e-01, -8.5820e-01, -1.9734e-01], [ 2.0202e-01, 2.4088e-01, 3.1906e-01]]], [[[ 4.8009e-01, -2.1032e-01, 4.4050e-01], [ 1.6932e-01, 3.0352e-01, -5.3674e-02], [ 5.3025e-01, 1.7536e-01, 6.8803e-01]]], [[[ 2.6775e-01, 8.2845e-01, 1.2976e-01], [ 4.5156e-01, 2.0780e-01, 2.3832e-01], [ 4.6654e-01, 2.3515e-01, 3.9078e-01]]], [[[ 4.9575e-01, -4.8354e-02, 6.2080e-01], [ 1.2933e-01, 4.5557e-01, -1.2404e-01], [ 5.6906e-01, 4.3322e-01, 4.7213e-01]]]]) Not working weights of Conv layer tensor([[[[ 3.3279e-01, -2.0911e-01, 4.0976e-01], [-1.9482e-01, -2.8142e+00, -2.2299e-01], [ 3.9004e-01, -1.7411e-01, 4.2168e-01]]], [[[ 2.7489e-01, 9.7963e-01, 2.2939e-02], [ 7.0204e-01, 1.3131e+00, 5.6977e-01], [ 2.9443e-01, 8.0951e-01, 4.5278e-01]]], [[[ 8.4607e-01, 1.9752e-02, 1.0065e+00], [ 3.2082e-02, -2.1234e-01, 2.6094e-01], [ 1.0338e+00, 1.6526e-01, 9.6839e-01]]], [[[-2.5110e-01, -2.7901e-02, -2.9815e-01], [ 3.5116e-02, 2.2587e+00, 1.0436e-01], [-3.0516e-01, -1.5374e-02, -2.8045e-01]]], [[[-5.4234e-01, 7.3581e-02, -3.2796e-01], [ 4.3465e-02, 2.4696e+00, -1.4038e-02], [-2.6090e-01, -6.6863e-02, -2.2878e-01]]], [[[ 7.7577e-01, 1.6263e-01, 8.0620e-01], [ 1.2166e-01, -1.3349e+00, 2.2095e-02], [ 7.8446e-01, 1.8965e-01, 7.7734e-01]]], [[[ 2.8460e-01, 2.8625e-01, 2.8036e-01], [ 2.8995e-01, -2.0631e-01, 1.6038e-01], [ 2.2620e-01, 2.3574e-01, 4.5563e-01]]], [[[-8.2636e-01, 3.0475e-01, -4.1388e-01], [ 3.1593e-01, 1.9472e+00, 1.1006e-01], [-6.6613e-01, 2.9975e-01, -4.6172e-01]]], [[[-5.3745e-02, -1.6191e-01, -5.6559e-02], [-6.6030e-02, -5.9331e+00, -1.3726e-01], [-5.5640e-02, -1.1951e-01, -9.8351e-02]]], [[[-4.5139e-01, 3.0925e-01, -4.2166e-01], [ 1.5557e-01, 2.0291e+00, 9.6838e-02], [-5.0419e-01, 1.4905e-01, -4.8405e-01]]], [[[-5.9708e-02, -5.9127e-01, 2.7119e-01], [-7.0508e-01, -1.6482e+00, -6.5309e-01], [ 7.8688e-02, -1.0563e+00, 9.6375e-02]]], [[[ 7.2531e-01, 2.1859e-01, 8.1715e-01], [ 1.4592e-01, -1.3310e+00, 2.8370e-02], [ 7.2177e-01, 3.3575e-01, 7.5479e-01]]], [[[-6.9039e-01, -1.6698e-01, -8.5761e-01], [-7.3998e-02, -2.5820e-01, -3.2171e-02], [-9.9621e-01, -2.2918e-01, -1.1667e+00]]], [[[ 1.4400e-01, 1.5582e-01, 4.7007e-01], [ 6.2186e-03, 1.5049e+00, 1.3891e-01], [ 5.8765e-01, -9.2874e-02, 1.2079e+00]]], [[[-4.7601e-01, 1.7371e-01, -3.9373e-01], [-1.4278e-03, 2.3851e+00, 3.5437e-02], [-3.5845e-01, 7.5070e-02, -4.3677e-01]] [[[-3.9381e-01, -2.0094e-01, -3.3219e-01], [ 1.1169e-01, 1.8181e+00, -3.7194e-01], [-5.1897e-02, 1.7572e-01, -5.5085e-01]]], [[[ 8.1767e-01, 5.8831e-01, 7.3225e-01], [ 4.0319e-01, -8.8078e-01, 5.0771e-01], [ 8.4507e-01, 7.1296e-01, 7.6765e-01]]], [[[-6.0087e-02, -1.2139e+00, -1.1047e-03], [-6.6237e-01, -4.8200e-01, -8.6077e-01], [-1.8411e-01, -1.1920e+00, -7.4986e-02]]], [[[-9.4947e-01, -9.8611e-01, -1.8920e-01], [-8.7728e-02, 9.9390e-01, -3.6914e-01], [-7.8076e-01, -1.1616e-01, -6.4246e-01]]], [[[ 5.5130e-01, -3.4770e-01, 6.2945e-01], [-3.8659e-01, -1.4704e+00, -4.9395e-01], [ 5.3765e-01, -3.4119e-01, 6.7366e-01]]], [[[-4.4788e-01, -6.4880e-02, 5.1750e-01], [-6.9337e-01, -2.2426e+00, -1.9765e-02], [-6.0051e-01, -2.1296e-01, 2.9482e-01]]], [[[-2.9910e-01, -5.7485e-01, -5.7792e-01], [-6.2466e-01, -7.3714e-01, -7.8880e-01], [-7.6090e-01, -7.5296e-01, -1.1582e+00]]], [[[-9.3275e-01, -3.5397e-01, -9.9876e-01], [-2.0837e-01, -2.4731e-01, -2.6931e-01], [-9.3229e-01, -3.3563e-01, -8.7554e-01]]], [[[-7.8048e-01, -1.7040e-01, -8.7957e-01], [-1.0868e-01, 1.3689e+00, -1.6108e-01], [-8.2380e-01, -2.1541e-01, -8.2356e-01]]], [[[ 6.6214e-01, -2.8046e-01, 7.4298e-01], [-2.4776e-01, 2.3627e+00, -1.6467e-01], [ 5.6969e-01, -2.3224e-01, 6.5499e-01]]], [[[ 1.0392e+00, 7.8446e-02, 1.1745e+00], [-1.9321e-01, -5.8134e-01, -2.2323e-01], [ 7.3575e-01, 6.3480e-02, 1.2036e+00]]], [[[-7.4549e-01, 3.5171e-01, -7.4779e-01], [ 2.7267e-01, -1.0939e+00, 3.1744e-01], [-8.6094e-01, 1.8053e-01, -9.5986e-01]]], [[[-7.4761e-02, -7.4965e-02, -4.8395e-03], [-7.0916e-02, -9.4117e-02, 6.8479e-03], [-7.0671e-02, -5.7122e-02, 1.1384e-03]]], [[[ 2.0594e-02, -2.6332e-01, -2.0066e-01], [ 3.5086e-01, 2.8736e+00, 2.2054e-01], [ 1.2846e-01, 1.2652e-01, -2.1748e-01]]], [[[ 4.8172e-01, 4.0160e-01, 5.4478e-01], [ 4.1767e-01, -1.5756e+00, 4.4751e-01], [ 4.5373e-01, 4.2261e-01, 4.6070e-01]]], [[[-2.4105e-01, 6.2362e-02, 2.6139e-01], [-4.1651e-01, -1.4579e-01, -6.3829e-01], [-5.3446e-01, -7.7817e-01, -7.7269e-01]]], [[[ 9.1111e-02, 7.7725e-01, 7.9571e-01], [ 4.4018e-01, 1.0821e+00, 2.7830e-01], [ 5.1079e-01, 5.2820e-01, 4.4008e-01]]]]) cc @jerryzh168 @jianyuh @dzhulgakov @raghuramank100 @jamesr66a"><pre class="notranslate"><code class="notranslate">## Expected behavior output of qnnpack and fbgemm should be same. ## Environment - PyTorch Version (e.g., 1.0): '1.5.0.dev20200316' (nightly) - OS (e.g., Linux): Ubuntu 18.04 - How you installed PyTorch (`conda`, `pip`, source): Conda - Build command you used (if compiling from source): NA - Python version: 3.7 - CUDA/cuDNN version: 10.1 - GPU models and configuration: RTX 2060 - Any other relevant information: ## Additional context Working weights for Conv layer. tensor([[[[-9.8111e-02, -2.3818e-01, -1.0097e-01], [-8.6748e-02, -1.5611e+00, -3.7088e-02], [-7.2189e-02, 9.3585e-03, -2.1457e-01]]], [[[-9.0585e-01, -1.4491e+00, -1.0290e+00], [ 6.0444e-02, 1.7321e-02, 4.5470e-02], [ 2.0289e-01, 1.7305e-01, 2.3026e-01]]], [[[-3.9760e-01, -1.7248e-01, -4.0785e-01], [ 5.5625e-03, 7.6404e-01, -7.1765e-02], [-5.1368e-01, -3.6436e-01, -5.2025e-01]]], [[[-1.2394e-01, -4.8440e-01, -4.7897e-01], [-4.6179e-01, -4.1148e-01, -4.7571e-01], [-3.6709e-01, -2.5656e-01, -3.8935e-01]]], [[[ 3.8117e-01, 2.7804e-01, 4.4873e-01], [ 4.8555e-01, -2.8842e-01, 2.9044e-01], [ 2.5739e-01, 6.3275e-01, 3.8192e-01]]], [[[-2.5214e-01, 3.7439e-01, -3.5673e-01], [ 3.0839e-01, 1.0794e+00, 4.3154e-01], [-2.5715e-01, 3.6404e-01, -3.6204e-01]]], [[[-5.4990e-01, -2.2252e-01, -5.0191e-01], [-1.7313e-01, 3.8547e-01, -1.1505e-01], [-6.0288e-01, -2.6323e-01, -6.4934e-01]]], [[[ 2.3457e-01, 2.6993e-01, 3.5980e-01], [ 1.4922e-01, 1.1058e+00, 4.5924e-01], [ 5.3947e-01, 1.6402e-01, 1.4880e-01]]], [[[ 5.9202e-01, 5.5206e-02, 5.2480e-01], [ 4.3953e-02, -1.1449e-01, 1.7012e-01], [ 5.4099e-01, -1.3535e-01, 4.9393e-01]]], [[[-3.6607e-01, 2.1279e-01, -3.4666e-01], [ 1.9444e-01, 1.1031e+00, 2.0701e-01], [-3.1785e-01, 2.0595e-01, -3.7019e-01]]], [[[ 9.1770e-02, -2.8905e-02, 1.8759e-01], [-1.2641e-01, -1.3670e+00, 1.0820e-01], [ 3.7640e-01, 2.5282e-02, 1.6139e-01]]], [[[ 6.6392e-02, 4.7435e-01, 2.2360e-01], [ 1.1640e-01, 4.4550e-02, 1.0114e-01], [ 7.5970e-01, -2.6593e-02, 7.4978e-01]]], [[[-2.4952e-01, -2.9136e-01, -4.3275e-01], [-4.3836e-01, 5.7868e-01, -4.1796e-01], [-3.1188e-01, -4.1504e-01, -6.0209e-01]]], [[[-7.6740e-03, -1.2746e-01, 7.3953e-02], [ 1.1245e-01, 2.4729e+00, 2.5669e-01], [ 2.8247e-02, 1.6268e-01, -7.0686e-04]]], [[[ 6.0586e-01, -1.2779e-02, 6.1001e-01], [-9.3175e-02, -3.9671e-01, -1.0740e-01], [ 6.3908e-01, -1.3216e-01, 5.9539e-01]]], [[[ 3.3967e-01, -4.4094e-01, 3.3106e-01], [-2.6672e-01, 1.2313e+00, -2.3391e-01], [ 2.3279e-01, -2.8770e-01, 3.1637e-01]]], [[[-3.4574e-01, -1.9476e-01, -4.8610e-01], [-2.2992e-01, -1.4230e-02, -1.9174e-01], [-5.4567e-01, -3.5120e-01, -6.8289e-01]]], [[[ 4.5144e-01, -2.5136e-02, 5.3568e-01], [ 3.1801e-02, -5.8331e-01, -3.4960e-02], [-9.1540e-04, -4.8772e-01, -1.8636e-01]]], [[[ 1.0150e-01, -1.2134e-02, 1.6102e-02], [-4.1484e-02, 4.3275e-01, -6.8248e-02], [-7.1185e-01, -7.1240e-01, -7.0851e-01]]], [[[-3.6291e-01, 1.8500e-01, -4.4183e-01], [ 8.4609e-02, 5.8029e-01, 1.4827e-01], [-5.9297e-01, 1.8420e-02, -6.8263e-01]]], [[[-5.8049e-01, -3.5364e-01, -7.2523e-01], [-3.7166e-01, -3.1462e-01, -5.6026e-01], [-2.5259e-01, -2.0127e-01, -4.1163e-01]]], [[[-4.1470e-01, -2.7154e-01, -3.6831e-01], [-1.1561e-01, -3.8793e-01, -2.6043e-01], [-6.1500e-01, -1.8974e-01, -6.4628e-01]]], [[[-4.7443e-01, -3.7602e-01, -4.7216e-01], [-3.7285e-01, 2.5685e-01, -1.8080e-01], [-3.2134e-01, -4.7332e-01, -4.5040e-01]]], [[[-2.4336e-01, -2.8814e-01, -2.2455e-01], [-2.7187e-01, 9.4440e-01, -3.6674e-01], [-2.5768e-01, -2.6512e-01, -2.8699e-01]]], [[[ 5.1769e-01, -3.3097e-02, 5.4375e-01], [-5.0911e-02, 5.1187e-01, -2.4701e-01], [ 5.3332e-01, -1.9179e-01, 6.5832e-01]]], [[[ 8.7317e-02, -2.7439e-01, -2.3370e-01], [-1.5015e-02, -1.7981e+00, -2.3003e-01], [-1.8798e-01, -2.9342e-01, -1.4052e-01]]], [[[-4.0463e-01, -5.8371e-01, -6.1616e-01], [-6.3553e-01, 2.8725e-01, -4.3908e-01], [ 4.6381e-03, -4.6432e-01, 7.3069e-02]]], [[[-6.9479e-01, -2.8610e-01, -6.3922e-01], [-3.1537e-02, 1.7567e-01, -4.9486e-04], [-3.4923e-01, -5.3215e-01, -3.3615e-01]]], [[[-6.9439e-01, -5.9017e-01, -7.6260e-01], [-1.4265e-01, -8.5820e-01, -1.9734e-01], [ 2.0202e-01, 2.4088e-01, 3.1906e-01]]], [[[ 4.8009e-01, -2.1032e-01, 4.4050e-01], [ 1.6932e-01, 3.0352e-01, -5.3674e-02], [ 5.3025e-01, 1.7536e-01, 6.8803e-01]]], [[[ 2.6775e-01, 8.2845e-01, 1.2976e-01], [ 4.5156e-01, 2.0780e-01, 2.3832e-01], [ 4.6654e-01, 2.3515e-01, 3.9078e-01]]], [[[ 4.9575e-01, -4.8354e-02, 6.2080e-01], [ 1.2933e-01, 4.5557e-01, -1.2404e-01], [ 5.6906e-01, 4.3322e-01, 4.7213e-01]]]]) Not working weights of Conv layer tensor([[[[ 3.3279e-01, -2.0911e-01, 4.0976e-01], [-1.9482e-01, -2.8142e+00, -2.2299e-01], [ 3.9004e-01, -1.7411e-01, 4.2168e-01]]], [[[ 2.7489e-01, 9.7963e-01, 2.2939e-02], [ 7.0204e-01, 1.3131e+00, 5.6977e-01], [ 2.9443e-01, 8.0951e-01, 4.5278e-01]]], [[[ 8.4607e-01, 1.9752e-02, 1.0065e+00], [ 3.2082e-02, -2.1234e-01, 2.6094e-01], [ 1.0338e+00, 1.6526e-01, 9.6839e-01]]], [[[-2.5110e-01, -2.7901e-02, -2.9815e-01], [ 3.5116e-02, 2.2587e+00, 1.0436e-01], [-3.0516e-01, -1.5374e-02, -2.8045e-01]]], [[[-5.4234e-01, 7.3581e-02, -3.2796e-01], [ 4.3465e-02, 2.4696e+00, -1.4038e-02], [-2.6090e-01, -6.6863e-02, -2.2878e-01]]], [[[ 7.7577e-01, 1.6263e-01, 8.0620e-01], [ 1.2166e-01, -1.3349e+00, 2.2095e-02], [ 7.8446e-01, 1.8965e-01, 7.7734e-01]]], [[[ 2.8460e-01, 2.8625e-01, 2.8036e-01], [ 2.8995e-01, -2.0631e-01, 1.6038e-01], [ 2.2620e-01, 2.3574e-01, 4.5563e-01]]], [[[-8.2636e-01, 3.0475e-01, -4.1388e-01], [ 3.1593e-01, 1.9472e+00, 1.1006e-01], [-6.6613e-01, 2.9975e-01, -4.6172e-01]]], [[[-5.3745e-02, -1.6191e-01, -5.6559e-02], [-6.6030e-02, -5.9331e+00, -1.3726e-01], [-5.5640e-02, -1.1951e-01, -9.8351e-02]]], [[[-4.5139e-01, 3.0925e-01, -4.2166e-01], [ 1.5557e-01, 2.0291e+00, 9.6838e-02], [-5.0419e-01, 1.4905e-01, -4.8405e-01]]], [[[-5.9708e-02, -5.9127e-01, 2.7119e-01], [-7.0508e-01, -1.6482e+00, -6.5309e-01], [ 7.8688e-02, -1.0563e+00, 9.6375e-02]]], [[[ 7.2531e-01, 2.1859e-01, 8.1715e-01], [ 1.4592e-01, -1.3310e+00, 2.8370e-02], [ 7.2177e-01, 3.3575e-01, 7.5479e-01]]], [[[-6.9039e-01, -1.6698e-01, -8.5761e-01], [-7.3998e-02, -2.5820e-01, -3.2171e-02], [-9.9621e-01, -2.2918e-01, -1.1667e+00]]], [[[ 1.4400e-01, 1.5582e-01, 4.7007e-01], [ 6.2186e-03, 1.5049e+00, 1.3891e-01], [ 5.8765e-01, -9.2874e-02, 1.2079e+00]]], [[[-4.7601e-01, 1.7371e-01, -3.9373e-01], [-1.4278e-03, 2.3851e+00, 3.5437e-02], [-3.5845e-01, 7.5070e-02, -4.3677e-01]] [[[-3.9381e-01, -2.0094e-01, -3.3219e-01], [ 1.1169e-01, 1.8181e+00, -3.7194e-01], [-5.1897e-02, 1.7572e-01, -5.5085e-01]]], [[[ 8.1767e-01, 5.8831e-01, 7.3225e-01], [ 4.0319e-01, -8.8078e-01, 5.0771e-01], [ 8.4507e-01, 7.1296e-01, 7.6765e-01]]], [[[-6.0087e-02, -1.2139e+00, -1.1047e-03], [-6.6237e-01, -4.8200e-01, -8.6077e-01], [-1.8411e-01, -1.1920e+00, -7.4986e-02]]], [[[-9.4947e-01, -9.8611e-01, -1.8920e-01], [-8.7728e-02, 9.9390e-01, -3.6914e-01], [-7.8076e-01, -1.1616e-01, -6.4246e-01]]], [[[ 5.5130e-01, -3.4770e-01, 6.2945e-01], [-3.8659e-01, -1.4704e+00, -4.9395e-01], [ 5.3765e-01, -3.4119e-01, 6.7366e-01]]], [[[-4.4788e-01, -6.4880e-02, 5.1750e-01], [-6.9337e-01, -2.2426e+00, -1.9765e-02], [-6.0051e-01, -2.1296e-01, 2.9482e-01]]], [[[-2.9910e-01, -5.7485e-01, -5.7792e-01], [-6.2466e-01, -7.3714e-01, -7.8880e-01], [-7.6090e-01, -7.5296e-01, -1.1582e+00]]], [[[-9.3275e-01, -3.5397e-01, -9.9876e-01], [-2.0837e-01, -2.4731e-01, -2.6931e-01], [-9.3229e-01, -3.3563e-01, -8.7554e-01]]], [[[-7.8048e-01, -1.7040e-01, -8.7957e-01], [-1.0868e-01, 1.3689e+00, -1.6108e-01], [-8.2380e-01, -2.1541e-01, -8.2356e-01]]], [[[ 6.6214e-01, -2.8046e-01, 7.4298e-01], [-2.4776e-01, 2.3627e+00, -1.6467e-01], [ 5.6969e-01, -2.3224e-01, 6.5499e-01]]], [[[ 1.0392e+00, 7.8446e-02, 1.1745e+00], [-1.9321e-01, -5.8134e-01, -2.2323e-01], [ 7.3575e-01, 6.3480e-02, 1.2036e+00]]], [[[-7.4549e-01, 3.5171e-01, -7.4779e-01], [ 2.7267e-01, -1.0939e+00, 3.1744e-01], [-8.6094e-01, 1.8053e-01, -9.5986e-01]]], [[[-7.4761e-02, -7.4965e-02, -4.8395e-03], [-7.0916e-02, -9.4117e-02, 6.8479e-03], [-7.0671e-02, -5.7122e-02, 1.1384e-03]]], [[[ 2.0594e-02, -2.6332e-01, -2.0066e-01], [ 3.5086e-01, 2.8736e+00, 2.2054e-01], [ 1.2846e-01, 1.2652e-01, -2.1748e-01]]], [[[ 4.8172e-01, 4.0160e-01, 5.4478e-01], [ 4.1767e-01, -1.5756e+00, 4.4751e-01], [ 4.5373e-01, 4.2261e-01, 4.6070e-01]]], [[[-2.4105e-01, 6.2362e-02, 2.6139e-01], [-4.1651e-01, -1.4579e-01, -6.3829e-01], [-5.3446e-01, -7.7817e-01, -7.7269e-01]]], [[[ 9.1111e-02, 7.7725e-01, 7.9571e-01], [ 4.4018e-01, 1.0821e+00, 2.7830e-01], [ 5.1079e-01, 5.2820e-01, 4.4008e-01]]]]) cc @jerryzh168 @jianyuh @dzhulgakov @raghuramank100 @jamesr66a </code></pre></div>
0
<p dir="auto">For example, now I have a parameter 'D' in the model.</p> <p dir="auto">Now I want to replace the 'D' with 'C', where 'C = a+b'</p>
<p dir="auto">For example, now I have a parameter 'D' in the model.</p> <p dir="auto">Now I want to replace the 'D' with 'C', where 'C = a+b'. Is there anyway in pytorch that can achieve that replacement while keeping the backpropagation between 'C' and 'a+b'. (e.g., training the model will update the value of 'a' and 'b'.</p> <p dir="auto">I've tried D.data = C, but obviously that just changed the value and violate the backpropagation. Besides, '.copy' and '.clone' didn't work either.</p>
1
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.7.2</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Management: Mac OS X<br> Target: Debian stable</p> <h5 dir="auto">Summary:</h5> <p dir="auto">I have a SSL certificate stored in a vault file, one of my task copies it to a file (using the copy module) on the remote server.<br> This worked perfectly on 1.7.1, on 1.7.2 it adds an extra newline after every line which causes my webserver to fail.</p> <p dir="auto">Summary: copy module using content from ansible-vault variable -&gt; extra newlines in target file. Bug is not present in 1.7.1. Possibly unrelated to ansible-vault.</p> <h5 dir="auto">Steps To Reproduce:</h5> <ol dir="auto"> <li>Create a vault file</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ssl_crt: | -----BEGIN CERTIFICATE----- Content goes here -----END CERTIFICATE-----"><pre class="notranslate"><code class="notranslate">ssl_crt: | -----BEGIN CERTIFICATE----- Content goes here -----END CERTIFICATE----- </code></pre></div> <ol dir="auto"> <li>Have a task using vault (include the vault vars file)</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Copy the SSL certificate to the remote server copy: content=&quot;{{ ssl_crt }}&quot; dest=/etc/ssl/mycert.crt"><pre class="notranslate"><code class="notranslate">- name: Copy the SSL certificate to the remote server copy: content="{{ ssl_crt }}" dest=/etc/ssl/mycert.crt </code></pre></div> <h5 dir="auto">Expected Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/etc/ssl# cat -e mycert.crt -----BEGIN CERTIFICATE-----$ Content goes here$ -----END CERTIFICATE-----$"><pre class="notranslate"><code class="notranslate">/etc/ssl# cat -e mycert.crt -----BEGIN CERTIFICATE-----$ Content goes here$ -----END CERTIFICATE-----$ </code></pre></div> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/etc/ssl# cat -e mycert.crt -----BEGIN CERTIFICATE-----$ $ Content goes here$ $ -----END CERTIFICATE-----$"><pre class="notranslate"><code class="notranslate">/etc/ssl# cat -e mycert.crt -----BEGIN CERTIFICATE-----$ $ Content goes here$ $ -----END CERTIFICATE-----$ </code></pre></div>
<p dir="auto">I'm in Melbourne, Australia and I'm using ansible to set up a VM on Rackspace in their DFW location.</p> <p dir="auto">Ansible runs take a very, very long time mainly because paramiko sets up a new connection for every task.</p> <p dir="auto">I'm aware that I can switch to using "vanilla" ssh and thus gain the benefit of a ControlMaster/ControlPersist type arrangement but it seems to me that a better approach would be for ansible to cache connections in order to avoid having to wear the connection and authentication cost once per task.</p> <p dir="auto">I'm currently looking at refactoring the Connection classes to look more like ConnectionManager classes from which one requests a connection, thus allowing them to hand out cached connections on a (host, user) basis.</p> <p dir="auto">Is this an acceptable approach?</p>
0
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No</li> <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): source</li> <li>TensorFlow version (use command below): <code class="notranslate">42c4f4ab6b53bce8639c203d7839d27eac11bd2f</code></li> <li>Python version: 3.7</li> <li>Bazel version (if compiling from source): 0.21.0</li> <li>GCC/Compiler version (if compiling from source): 5.4.0-6ubuntu1~16.04.10</li> <li>CUDA/cuDNN version: 9.0 / 7</li> <li>GPU model and memory: 8x GTX 1080 Ti 12GB</li> </ul> <p dir="auto">You can collect some of this information using our environment capture <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br> You can also obtain the TensorFlow version with<br> python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p> <p dir="auto"><strong>Describe the current behavior</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In file included from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/platform/logging.h:25:0, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/lib/core/refcount.h:22, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/platform/tensor_coding.h:21, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/framework/resource_handle.h:19, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/framework/allocator.h:24, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/framework/tensor.h:22, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/public/session.h:24, from bug.cc:2: /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/platform/default/logging.h:95:0: warning: &quot;LOG&quot; redefined #define LOG(severity) _TF_LOG_##severity ^ In file included from bug.cc:1:0: /usr/local/include/glog/logging.h:506:0: note: this is the location of the previous definition #define LOG(severity) COMPACT_GOOGLE_LOG_ ## severity.stream() ^"><pre class="notranslate"><code class="notranslate">In file included from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/platform/logging.h:25:0, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/lib/core/refcount.h:22, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/platform/tensor_coding.h:21, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/framework/resource_handle.h:19, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/framework/allocator.h:24, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/framework/tensor.h:22, from /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/public/session.h:24, from bug.cc:2: /tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include/tensorflow/core/platform/default/logging.h:95:0: warning: "LOG" redefined #define LOG(severity) _TF_LOG_##severity ^ In file included from bug.cc:1:0: /usr/local/include/glog/logging.h:506:0: note: this is the location of the previous definition #define LOG(severity) COMPACT_GOOGLE_LOG_ ## severity.stream() ^ </code></pre></div> <p dir="auto"><strong>Describe the expected behavior</strong></p> <p dir="auto">No leaking <code class="notranslate">platform/logging.h</code> and no those warnings about redefining <code class="notranslate">glog</code> macros.</p> <p dir="auto"><strong>Code to reproduce the issue</strong><br> Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include &lt;glog/logging.h&gt; #include &quot;tensorflow/core/public/session.h&quot; int main() { tensorflow::SessionOptions gpu_option; }"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>glog/logging.h<span class="pl-pds">&gt;</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>tensorflow/core/public/session.h<span class="pl-pds">"</span></span> <span class="pl-k">int</span> <span class="pl-en">main</span>() { tensorflow::SessionOptions gpu_option; }</pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export TF_INC_DIR=/tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include g++ bug.cc -std=c++11 -I$TF_INC_DIR -I$TF_INC_DIR/external/com_google_absl"><pre class="notranslate"><span class="pl-k">export</span> TF_INC_DIR=/tmp/tensorflow/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/include g++ bug.cc -std=c++11 -I<span class="pl-smi">$TF_INC_DIR</span> -I<span class="pl-smi">$TF_INC_DIR</span>/external/com_google_absl</pre></div> <p dir="auto"><strong>Other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> <p dir="auto">I know TensorFlow has tried to avoid leaking the logging macros (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="207378417" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/7480" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/7480/hovercard" href="https://github.com/tensorflow/tensorflow/issues/7480">#7480</a>), but <a href="https://github.com/tensorflow/tensorflow/blob/42c4f4ab6b53bce8639c203d7839d27eac11bd2f/tensorflow/core/lib/core/refcount.h"><code class="notranslate">core/lib/core/refcount.h</code></a> is leaking them again. It seems that one way to fix it is to remove <code class="notranslate">#include "tensorflow/core/platform/logging.h"</code> from the headers and add them back in the <code class="notranslate">.cc</code> files. However, as said in <code class="notranslate">core/lib/core/refcount.h</code>, those are "Inlined routines, since these are performance critical" thus cannot be moved to a <code class="notranslate">.cc</code> file. But I'm sure there must be a way to stop leaking the logging macros.</p>
<p dir="auto">CHECK macros from <code class="notranslate">platform/logging.h</code> leak out into <code class="notranslate">core/public</code> headers which clash with users of glog.</p> <p dir="auto">One path is through <code class="notranslate">core/platform/allocator.h</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In file included from external/org_tensorflow/tensorflow/core/platform/logging.h:25:0, from external/org_tensorflow/tensorflow/core/framework/allocator.h:26, from external/org_tensorflow/tensorflow/core/framework/tensor.h:21, from external/org_tensorflow/tensorflow/core/public/session.h:23, (snip) external/org_tensorflow/tensorflow/core/platform/default/logging.h:224:0: note: this is the location of the previous definition #define CHECK_OP_LOG(name, op, val1, val2) \ ^"><pre class="notranslate"><code class="notranslate">In file included from external/org_tensorflow/tensorflow/core/platform/logging.h:25:0, from external/org_tensorflow/tensorflow/core/framework/allocator.h:26, from external/org_tensorflow/tensorflow/core/framework/tensor.h:21, from external/org_tensorflow/tensorflow/core/public/session.h:23, (snip) external/org_tensorflow/tensorflow/core/platform/default/logging.h:224:0: note: this is the location of the previous definition #define CHECK_OP_LOG(name, op, val1, val2) \ ^ </code></pre></div> <p dir="auto">This one is easy to fix by moving method implementation to allocator.cc.</p> <p dir="auto">Another is through <code class="notranslate">core/lib/core/status.h</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In file included from external/org_tensorflow/tensorflow/core/platform/logging.h:25:0, from external/org_tensorflow/tensorflow/core/lib/core/status.h:24, from external/org_tensorflow/tensorflow/core/lib/core/errors.h:19, from external/org_tensorflow/tensorflow/core/framework/tensor_shape.h:24, from external/org_tensorflow/tensorflow/core/framework/tensor.h:24, from external/org_tensorflow/tensorflow/core/public/session.h:23,"><pre class="notranslate"><code class="notranslate">In file included from external/org_tensorflow/tensorflow/core/platform/logging.h:25:0, from external/org_tensorflow/tensorflow/core/lib/core/status.h:24, from external/org_tensorflow/tensorflow/core/lib/core/errors.h:19, from external/org_tensorflow/tensorflow/core/framework/tensor_shape.h:24, from external/org_tensorflow/tensorflow/core/framework/tensor.h:24, from external/org_tensorflow/tensorflow/core/public/session.h:23, </code></pre></div> <p dir="auto">This one is more work to fix because <code class="notranslate">TF_CHECK_OK</code> is used all over the code, but it does not seem to be necessary for <code class="notranslate">core/public</code>.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">The application should compile without error</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When passing a component to the <code class="notranslate">withStyles</code> function I get this error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TS2345: Argument of type 'typeof ApplicationMenu' is not assignable to parameter of type 'ComponentType&lt;AppMenuProps &amp; WithStyles&lt;&quot;root&quot; | &quot;flex&quot; | &quot;menuButton&quot; | &quot;appBar&quot; | &quot;loginButton&quot;&gt;&gt;'. Type 'typeof ApplicationMenu' is not assignable to type 'StatelessComponent&lt;AppMenuProps &amp; WithStyles&lt;&quot;root&quot; | &quot;flex&quot; | &quot;menuButton&quot; | &quot;appBar&quot; | &quot;loginBu...'. Type 'typeof ApplicationMenu' provides no match for the signature '(props: AppMenuProps &amp; WithStyles&lt;&quot;root&quot; | &quot;flex&quot; | &quot;menuButton&quot; | &quot;appBar&quot; | &quot;loginButton&quot;&gt; &amp; { children?: ReactNode; }, context?: any): ReactElement&lt;any&gt; | null'."><pre class="notranslate"><code class="notranslate">TS2345: Argument of type 'typeof ApplicationMenu' is not assignable to parameter of type 'ComponentType&lt;AppMenuProps &amp; WithStyles&lt;"root" | "flex" | "menuButton" | "appBar" | "loginButton"&gt;&gt;'. Type 'typeof ApplicationMenu' is not assignable to type 'StatelessComponent&lt;AppMenuProps &amp; WithStyles&lt;"root" | "flex" | "menuButton" | "appBar" | "loginBu...'. Type 'typeof ApplicationMenu' provides no match for the signature '(props: AppMenuProps &amp; WithStyles&lt;"root" | "flex" | "menuButton" | "appBar" | "loginButton"&gt; &amp; { children?: ReactNode; }, context?: any): ReactElement&lt;any&gt; | null'. </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export interface AppMenuProps { classes: Record&lt;string, string | undefined&gt; } const styles = (theme : Theme) =&gt; ({ root: { width: '100%', }, flex: { flex: 1, }, menuButton: { marginLeft: -12, marginRight: 20, }, appBar: { background: theme.palette.common.black, color: theme.palette.common.white, }, loginButton: { color: theme.palette.common.white } }); class ApplicationMenu extends Component&lt;AppMenuProps, {}&gt; { render() { const {classes} = this.props; return ( &lt;div className={classes.root}&gt; &lt;AppBar position=&quot;static&quot; classes={{root: classes.appBar}}&gt; &lt;Toolbar&gt; &lt;IconButton className={classes.menuButton} color=&quot;primary&quot; aria-label=&quot;Menu&quot;&gt; &lt;MenuIcon/&gt; &lt;/IconButton&gt; &lt;Typography type=&quot;title&quot; color=&quot;inherit&quot; className={classes.flex}&gt; Supportworks Dashboard &lt;/Typography&gt; &lt;Button classes={{root: classes.loginButton}}&gt;Login&lt;/Button&gt; &lt;/Toolbar&gt; &lt;/AppBar&gt; &lt;/div&gt; ); } } export default withStyles(styles)(ApplicationMenu) // Error Here"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">AppMenuProps</span> <span class="pl-kos">{</span> <span class="pl-c1">classes</span>: <span class="pl-smi">Record</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span><span class="pl-kos">&gt;</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-en">styles</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">theme</span> : <span class="pl-smi">Theme</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">root</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-s">'100%'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">flex</span>: <span class="pl-kos">{</span> <span class="pl-c1">flex</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-c1">menuButton</span>: <span class="pl-kos">{</span> <span class="pl-c1">marginLeft</span>: <span class="pl-c1">-</span><span class="pl-c1">12</span><span class="pl-kos">,</span> <span class="pl-c1">marginRight</span>: <span class="pl-c1">20</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">appBar</span>: <span class="pl-kos">{</span> <span class="pl-c1">background</span>: <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">palette</span><span class="pl-kos">.</span><span class="pl-c1">common</span><span class="pl-kos">.</span><span class="pl-c1">black</span><span class="pl-kos">,</span> <span class="pl-c1">color</span>: <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">palette</span><span class="pl-kos">.</span><span class="pl-c1">common</span><span class="pl-kos">.</span><span class="pl-c1">white</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">loginButton</span>: <span class="pl-kos">{</span> <span class="pl-c1">color</span>: <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">palette</span><span class="pl-kos">.</span><span class="pl-c1">common</span><span class="pl-kos">.</span><span class="pl-c1">white</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">ApplicationMenu</span> <span class="pl-k">extends</span> <span class="pl-smi">Component</span><span class="pl-kos">&lt;</span><span class="pl-smi">AppMenuProps</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span>classes<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-s1">div</span> <span class="pl-smi">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">classes</span><span class="pl-kos">.</span><span class="pl-s1">root</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-smi">AppBar</span> <span class="pl-smi">position</span><span class="pl-c1">=</span><span class="pl-s">"static"</span> <span class="pl-s1">classes</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span><span class="pl-s1">root</span>: <span class="pl-s1">classes</span><span class="pl-kos">.</span><span class="pl-smi">appBar</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-smi">Toolbar</span><span class="pl-kos">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-smi">IconButton</span> <span class="pl-s1">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">classes</span><span class="pl-kos">.</span><span class="pl-c1">menuButton</span><span class="pl-kos">}</span> <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">"primary"</span> <span class="pl-s1">aria</span><span class="pl-c1">-</span><span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"Menu"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-smi">MenuIcon</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-c1">/</span><span class="pl-smi">IconButton</span><span class="pl-kos">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-smi">Typography</span> <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s">"title"</span> <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">"inherit"</span> <span class="pl-smi">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">classes</span><span class="pl-kos">.</span><span class="pl-c1">flex</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-smi">Supportworks</span> <span class="pl-smi">Dashboard</span> <span class="pl-c1">&lt;</span><span class="pl-pds"><span class="pl-c1">/</span>Typography&gt;</span><span class="pl-c1"></span> <span class="pl-c1">&lt;</span><span class="pl-smi">Button</span> <span class="pl-s1">classes</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span><span class="pl-c1">root</span>: <span class="pl-s1">classes</span><span class="pl-kos">.</span><span class="pl-c1">loginButton</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span><span class="pl-smi">Login</span><span class="pl-c1">&lt;</span><span class="pl-pds"><span class="pl-c1">/</span>Button&gt;</span><span class="pl-c1"></span> <span class="pl-c1">&lt;</span><span class="pl-pds"><span class="pl-c1">/</span>Toolbar&gt;</span><span class="pl-c1"></span> <span class="pl-c1">&lt;</span><span class="pl-pds"><span class="pl-c1">/</span>AppBar&gt;</span> <span class="pl-pds"> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span>div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">withStyles</span><span class="pl-kos">(</span><span class="pl-s1">styles</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-smi">ApplicationMenu</span><span class="pl-kos">)</span> <span class="pl-c">// Error Here</span></pre></div> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.22</td> </tr> <tr> <td>React</td> <td>^16.1.1</td> </tr> <tr> <td>browser</td> <td>NA</td> </tr> <tr> <td>etc</td> <td>Typescript 2.6.2</td> </tr> </tbody> </table>
<p dir="auto">This issue applies to the <code class="notranslate">v1-beta</code> branch. The typescript type definitions of <code class="notranslate">StyleRules</code> and <code class="notranslate">Theme</code> are not compatible and cause a typescript type conflict.</p> <p dir="auto">As an example consider the following typical case:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { withStyles, Theme, StyleRulesCallback } from 'material-ui/styles'; const styles: StyleRulesCallback = (theme: Theme) =&gt; ({ root: theme.typography.button, }); const Component = (props: any) =&gt; &lt;p className={props.classes.root}&gt;Test&lt;/p&gt;; export default withStyles(styles)(Component);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">withStyles</span><span class="pl-kos">,</span> <span class="pl-smi">Theme</span><span class="pl-kos">,</span> <span class="pl-smi">StyleRulesCallback</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui/styles'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-en">styles</span>: <span class="pl-smi">StyleRulesCallback</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">theme</span>: <span class="pl-smi">Theme</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">root</span>: <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">typography</span><span class="pl-kos">.</span><span class="pl-c1">button</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-smi">Component</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">props</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-s1">p</span> <span class="pl-s1">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-s1">classes</span><span class="pl-kos">.</span><span class="pl-smi">root</span><span class="pl-kos">}</span><span class="pl-kos">&gt;</span><span class="pl-smi">Test</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span>p&gt;; <span class="pl-s1">export</span> <span class="pl-k">default</span> <span class="pl-en">withStyles</span><span class="pl-kos">(</span><span class="pl-s1">styles</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-smi">Component</span><span class="pl-kos">)</span><span class="pl-kos">;</span></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/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">The constant <code class="notranslate">styles</code> should correctly type check.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The constant <code class="notranslate">styles</code> does not type check correctly. The problem is an incompatibility between the types <code class="notranslate">StyleRules</code> (defined in <code class="notranslate">src/styles/withStyles.d.ts</code>) and <code class="notranslate">Theme</code> (defined in <code class="notranslate">src/styles/createMuiTheme.d.ts</code>):</p> <ul dir="auto"> <li>the object <code class="notranslate">{root: theme.typography.button}</code> is supposed to be of type <code class="notranslate">StyleRule</code> (because <code class="notranslate">styles</code> is declared to be <code class="notranslate">StyleRulesCallback</code> as expected by the call to <code class="notranslate">withStyles</code>) <ul dir="auto"> <li>the entry <code class="notranslate">fontWeight</code> in a <code class="notranslate">StyleRule</code> object is defined to be as defined in <code class="notranslate">React.CSSProperties</code>, i.e., <code class="notranslate">"initial" | "inherit" | "unset" | "normal" | "bold" | "bolder" | "lighter" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900</code></li> </ul> </li> <li><code class="notranslate">theme.typography.button</code> is of type <code class="notranslate">TypographyStyle</code>, whose <code class="notranslate">fontWeight</code> property is of type <code class="notranslate">number | string</code></li> </ul> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Just take the code above and typecheck with TypeScript.</li> </ol> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v1-beta</td> </tr> <tr> <td>React</td> <td>15.6</td> </tr> </tbody> </table>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Toggle to remove/replace the shortcut arrows on desktop icons</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">It's a simple registry edit, detailed at <a href="https://www.windowscentral.com/how-get-rid-shortcut-arrows-windows-10" rel="nofollow">https://www.windowscentral.com/how-get-rid-shortcut-arrows-windows-10</a></p> <p dir="auto">That said, many people dislike mucking about in the registry due to the potential to bork the computer.</p> <p dir="auto">I would like a switch that toggles shortcut arrows on/off, even if the user needs to log out &amp; back in again to see the change (prefer it not be necessary, but code is code)</p>
<p dir="auto">Bring back the power toy for removing and replacing the overlay arrow on on shortcut icons.</p>
1
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import requests &gt;&gt;&gt; requests.get(&quot;https://r8---sn-q4f7snss.googlevideo.com&quot;) Traceback (most recent call last): File &quot;/usr/local/lib/python3.4/dist-packages/requests/models.py&quot;, line 370, in prepare_url host = idna.encode(host, uts46=True).decode('utf-8') File &quot;/usr/local/lib/python3.4/dist-packages/requests/packages/idna/core.py&quot;, line 355, in encode result.append(alabel(label)) File &quot;/usr/local/lib/python3.4/dist-packages/requests/packages/idna/core.py&quot;, line 276, in alabel check_label(label) File &quot;/usr/local/lib/python3.4/dist-packages/requests/packages/idna/core.py&quot;, line 253, in check_label raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not allowed'.format(_unot(cp_value), pos+1, repr(label))) requests.packages.idna.core.InvalidCodepoint: Codepoint U+0027 at position 2 of &quot;b'r8---sn-q4f7snss'&quot; not allowed During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/local/lib/python3.4/dist-packages/requests/api.py&quot;, line 70, in get return request('get', url, params=params, **kwargs) File &quot;/usr/local/lib/python3.4/dist-packages/requests/api.py&quot;, line 56, in request return session.request(method=method, url=url, **kwargs) File &quot;/usr/local/lib/python3.4/dist-packages/requests/sessions.py&quot;, line 474, in request prep = self.prepare_request(req) File &quot;/usr/local/lib/python3.4/dist-packages/requests/sessions.py&quot;, line 407, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File &quot;/usr/local/lib/python3.4/dist-packages/requests/models.py&quot;, line 302, in prepare self.prepare_url(url, params) File &quot;/usr/local/lib/python3.4/dist-packages/requests/models.py&quot;, line 372, in prepare_url raise InvalidURL('URL has an invalid label.') requests.exceptions.InvalidURL: URL has an invalid label."><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">requests</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">"https://r8---sn-q4f7snss.googlevideo.com"</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">"/usr/local/lib/python3.4/dist-packages/requests/models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">370</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare_url</span> <span class="pl-s1">host</span> <span class="pl-c1">=</span> <span class="pl-s1">idna</span>.<span class="pl-en">encode</span>(<span class="pl-s1">host</span>, <span class="pl-s1">uts46</span><span class="pl-c1">=</span><span class="pl-c1">True</span>).<span class="pl-en">decode</span>(<span class="pl-s">'utf-8'</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.4/dist-packages/requests/packages/idna/core.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">355</span>, <span class="pl-s1">in</span> <span class="pl-s1">encode</span> <span class="pl-s1">result</span>.<span class="pl-en">append</span>(<span class="pl-en">alabel</span>(<span class="pl-s1">label</span>)) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.4/dist-packages/requests/packages/idna/core.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">276</span>, <span class="pl-s1">in</span> <span class="pl-s1">alabel</span> <span class="pl-en">check_label</span>(<span class="pl-s1">label</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.4/dist-packages/requests/packages/idna/core.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">253</span>, <span class="pl-s1">in</span> <span class="pl-s1">check_label</span> <span class="pl-k">raise</span> <span class="pl-v">InvalidCodepoint</span>(<span class="pl-s">'Codepoint {0} at position {1} of {2} not allowed'</span>.<span class="pl-en">format</span>(<span class="pl-en">_unot</span>(<span class="pl-s1">cp_value</span>), <span class="pl-s1">pos</span><span class="pl-c1">+</span><span class="pl-c1">1</span>, <span class="pl-en">repr</span>(<span class="pl-s1">label</span>))) <span class="pl-s1">requests</span>.<span class="pl-s1">packages</span>.<span class="pl-s1">idna</span>.<span class="pl-s1">core</span>.<span class="pl-v">InvalidCodepoint</span>: <span class="pl-v">Codepoint</span> <span class="pl-v">U</span><span class="pl-c1">+</span><span class="pl-c1">0027</span> <span class="pl-s1">at</span> <span class="pl-s1">position</span> <span class="pl-c1">2</span> <span class="pl-s1">of</span> <span class="pl-s">"b'r8---sn-q4f7snss'"</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</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">"&lt;stdin&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.4/dist-packages/requests/api.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">70</span>, <span class="pl-s1">in</span> <span class="pl-s1">get</span> <span class="pl-k">return</span> <span class="pl-en">request</span>(<span class="pl-s">'get'</span>, <span class="pl-s1">url</span>, <span class="pl-s1">params</span><span class="pl-c1">=</span><span class="pl-s1">params</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.4/dist-packages/requests/api.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">56</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span> <span class="pl-k">return</span> <span class="pl-s1">session</span>.<span class="pl-en">request</span>(<span class="pl-s1">method</span><span class="pl-c1">=</span><span class="pl-s1">method</span>, <span class="pl-s1">url</span><span class="pl-c1">=</span><span class="pl-s1">url</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.4/dist-packages/requests/sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">474</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span> <span class="pl-s1">prep</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">prepare_request</span>(<span class="pl-s1">req</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.4/dist-packages/requests/sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">407</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare_request</span> <span class="pl-s1">hooks</span><span class="pl-c1">=</span><span class="pl-en">merge_hooks</span>(<span class="pl-s1">request</span>.<span class="pl-s1">hooks</span>, <span class="pl-s1">self</span>.<span class="pl-s1">hooks</span>), <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.4/dist-packages/requests/models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">302</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare</span> <span class="pl-s1">self</span>.<span class="pl-en">prepare_url</span>(<span class="pl-s1">url</span>, <span class="pl-s1">params</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python3.4/dist-packages/requests/models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">372</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare_url</span> <span class="pl-k">raise</span> <span class="pl-v">InvalidURL</span>(<span class="pl-s">'URL has an invalid label.'</span>) <span class="pl-s1">requests</span>.<span class="pl-s1">exceptions</span>.<span class="pl-v">InvalidURL</span>: <span class="pl-v">URL</span> <span class="pl-s1">has</span> <span class="pl-s1">an</span> <span class="pl-s1">invalid</span> <span class="pl-s1">label</span>.</pre></div> <p dir="auto">requests 2.12.0</p>
<p dir="auto">requests v2.12.0</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import requests &gt;&gt;&gt; requests.get('http://vluki_develop_624_solr:8983/solr/vluki') Traceback (most recent call last): File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; File &quot;/usr/local/lib/python2.7/dist-packages/requests/api.py&quot;, line 70, in get return request('get', url, params=params, **kwargs) File &quot;/usr/local/lib/python2.7/dist-packages/requests/api.py&quot;, line 56, in request return session.request(method=method, url=url, **kwargs) File &quot;/usr/local/lib/python2.7/dist-packages/requests/sessions.py&quot;, line 474, in request prep = self.prepare_request(req) File &quot;/usr/local/lib/python2.7/dist-packages/requests/sessions.py&quot;, line 407, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File &quot;/usr/local/lib/python2.7/dist-packages/requests/models.py&quot;, line 302, in prepare self.prepare_url(url, params) File &quot;/usr/local/lib/python2.7/dist-packages/requests/models.py&quot;, line 372, in prepare_url raise InvalidURL('URL has an invalid label.') requests.exceptions.InvalidURL: URL has an invalid label."><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">requests</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">'http://vluki_develop_624_solr:8983/solr/vluki'</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">"&lt;stdin&gt;"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/dist-packages/requests/api.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">70</span>, <span class="pl-s1">in</span> <span class="pl-s1">get</span> <span class="pl-k">return</span> <span class="pl-en">request</span>(<span class="pl-s">'get'</span>, <span class="pl-s1">url</span>, <span class="pl-s1">params</span><span class="pl-c1">=</span><span class="pl-s1">params</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/dist-packages/requests/api.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">56</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span> <span class="pl-k">return</span> <span class="pl-s1">session</span>.<span class="pl-en">request</span>(<span class="pl-s1">method</span><span class="pl-c1">=</span><span class="pl-s1">method</span>, <span class="pl-s1">url</span><span class="pl-c1">=</span><span class="pl-s1">url</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/dist-packages/requests/sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">474</span>, <span class="pl-s1">in</span> <span class="pl-s1">request</span> <span class="pl-s1">prep</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">prepare_request</span>(<span class="pl-s1">req</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/dist-packages/requests/sessions.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">407</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare_request</span> <span class="pl-s1">hooks</span><span class="pl-c1">=</span><span class="pl-en">merge_hooks</span>(<span class="pl-s1">request</span>.<span class="pl-s1">hooks</span>, <span class="pl-s1">self</span>.<span class="pl-s1">hooks</span>), <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/dist-packages/requests/models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">302</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare</span> <span class="pl-s1">self</span>.<span class="pl-en">prepare_url</span>(<span class="pl-s1">url</span>, <span class="pl-s1">params</span>) <span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/dist-packages/requests/models.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">372</span>, <span class="pl-s1">in</span> <span class="pl-s1">prepare_url</span> <span class="pl-k">raise</span> <span class="pl-v">InvalidURL</span>(<span class="pl-s">'URL has an invalid label.'</span>) <span class="pl-s1">requests</span>.<span class="pl-s1">exceptions</span>.<span class="pl-v">InvalidURL</span>: <span class="pl-v">URL</span> <span class="pl-s1">has</span> <span class="pl-s1">an</span> <span class="pl-s1">invalid</span> <span class="pl-s1">label</span>.</pre></div>
1
<p dir="auto">I have <code class="notranslate">DataFrame</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd import datetime as datetime a = pd.DataFrame({'id': [1, 2, 3, 2], 'my_date': [datetime.datetime(2017, 1, i) for i in range(1, 4)] + [datetime.datetime(2017, 1, 1)], 'num': [2, 3, 1, 4] }) print (a.dtypes) id int64 my_date datetime64[ns] num int64 dtype: object"><pre class="notranslate"><code class="notranslate">import pandas as pd import datetime as datetime a = pd.DataFrame({'id': [1, 2, 3, 2], 'my_date': [datetime.datetime(2017, 1, i) for i in range(1, 4)] + [datetime.datetime(2017, 1, 1)], 'num': [2, 3, 1, 4] }) print (a.dtypes) id int64 my_date datetime64[ns] num int64 dtype: object </code></pre></div> <p dir="auto">I try aggreagate by <code class="notranslate">pd.Series.nunique</code>, but get wrong output for datetimes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="grouped_a = a.groupby('id').agg({'my_date': pd.Series.nunique, 'num': pd.Series.nunique}).reset_index() grouped_a.columns = ['id', 'num_unique_num', 'num_unique_my_date'] print (grouped_a) id num_unique_num num_unique_my_date 0 1 1 1970-01-01 00:00:00.000000001 1 2 2 1970-01-01 00:00:00.000000002 2 3 1 1970-01-01 00:00:00.000000001"><pre class="notranslate"><code class="notranslate">grouped_a = a.groupby('id').agg({'my_date': pd.Series.nunique, 'num': pd.Series.nunique}).reset_index() grouped_a.columns = ['id', 'num_unique_num', 'num_unique_my_date'] print (grouped_a) id num_unique_num num_unique_my_date 0 1 1 1970-01-01 00:00:00.000000001 1 2 2 1970-01-01 00:00:00.000000002 2 3 1 1970-01-01 00:00:00.000000001 </code></pre></div> <p dir="auto">My solution is use <code class="notranslate">nunique</code> which works nice.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="grouped_a = a.groupby('id').agg({'my_date': 'nunique', 'num': 'nunique'}).reset_index() grouped_a.columns = ['id', 'num_unique_num', 'num_unique_my_date'] print (grouped_a) id num_unique_num num_unique_my_date 0 1 1 1 1 2 2 2 2 3 1 1"><pre class="notranslate"><code class="notranslate">grouped_a = a.groupby('id').agg({'my_date': 'nunique', 'num': 'nunique'}).reset_index() grouped_a.columns = ['id', 'num_unique_num', 'num_unique_my_date'] print (grouped_a) id num_unique_num num_unique_my_date 0 1 1 1 1 2 2 2 2 3 1 1 </code></pre></div> <p dir="auto">But why does not work first solution? Bug?</p> <p dir="auto"><a href="http://stackoverflow.com/questions/41597179/pandas-counting-unique-datetime-values-in-group-by-gives-weird-values" rel="nofollow">SO question</a>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print (pd.show_versions()) INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: sk_SK LOCALE: None.None pandas: 0.19.2+0.g825876c.dirty nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.23.4 numpy: 1.11.0 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.1 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.39.0 pandas_datareader: 0.2.1 None"><pre class="notranslate"><code class="notranslate">print (pd.show_versions()) INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: sk_SK LOCALE: None.None pandas: 0.19.2+0.g825876c.dirty nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.23.4 numpy: 1.11.0 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.1 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.39.0 pandas_datareader: 0.2.1 None </code></pre></div>
<p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="195199816" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14873" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14873/hovercard" href="https://github.com/pandas-dev/pandas/issues/14873">#14873</a> (boolean casts)<br> xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="194730027" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14849" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14849/hovercard" href="https://github.com/pandas-dev/pandas/issues/14849">#14849</a> (datetime)</p> <h4 dir="auto">A small, complete example of the issue</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd def predictions(tool): out = pd.Series(index=['p1', 'p2', 'useTime'], dtype=object) if 'step1' in list(tool.State): out['p1'] = str(tool[tool.State == 'step1'].Machine.values[0]) if 'step2' in list(tool.State): out['p2'] = str(tool[tool.State == 'step2'].Machine.values[0]) out['useTime'] = str(tool[tool.State == 'step2'].oTime.values[0]) return out df1 = pd.DataFrame({'Key': ['B', 'B', 'A', 'A'], 'State': ['step1', 'step2', 'step1', 'step2'], 'oTime': ['', '2016-09-19 05:24:33', '', '2016-09-19 23:59:04'], 'Machine': ['23', '36L', '36R', '36R']}) df2 = df1.copy() df2.oTime = pd.to_datetime(df2.oTime) pred1 = df1.groupby('Key').apply(predictions) pred2 = df2.groupby('Key').apply(predictions) print(pred1) print(pred2)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">def</span> <span class="pl-en">predictions</span>(<span class="pl-s1">tool</span>): <span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-s">'p1'</span>, <span class="pl-s">'p2'</span>, <span class="pl-s">'useTime'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">object</span>) <span class="pl-k">if</span> <span class="pl-s">'step1'</span> <span class="pl-c1">in</span> <span class="pl-en">list</span>(<span class="pl-s1">tool</span>.<span class="pl-v">State</span>): <span class="pl-s1">out</span>[<span class="pl-s">'p1'</span>] <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">tool</span>[<span class="pl-s1">tool</span>.<span class="pl-v">State</span> <span class="pl-c1">==</span> <span class="pl-s">'step1'</span>].<span class="pl-v">Machine</span>.<span class="pl-s1">values</span>[<span class="pl-c1">0</span>]) <span class="pl-k">if</span> <span class="pl-s">'step2'</span> <span class="pl-c1">in</span> <span class="pl-en">list</span>(<span class="pl-s1">tool</span>.<span class="pl-v">State</span>): <span class="pl-s1">out</span>[<span class="pl-s">'p2'</span>] <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">tool</span>[<span class="pl-s1">tool</span>.<span class="pl-v">State</span> <span class="pl-c1">==</span> <span class="pl-s">'step2'</span>].<span class="pl-v">Machine</span>.<span class="pl-s1">values</span>[<span class="pl-c1">0</span>]) <span class="pl-s1">out</span>[<span class="pl-s">'useTime'</span>] <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">tool</span>[<span class="pl-s1">tool</span>.<span class="pl-v">State</span> <span class="pl-c1">==</span> <span class="pl-s">'step2'</span>].<span class="pl-s1">oTime</span>.<span class="pl-s1">values</span>[<span class="pl-c1">0</span>]) <span class="pl-k">return</span> <span class="pl-s1">out</span> <span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'Key'</span>: [<span class="pl-s">'B'</span>, <span class="pl-s">'B'</span>, <span class="pl-s">'A'</span>, <span class="pl-s">'A'</span>], <span class="pl-s">'State'</span>: [<span class="pl-s">'step1'</span>, <span class="pl-s">'step2'</span>, <span class="pl-s">'step1'</span>, <span class="pl-s">'step2'</span>], <span class="pl-s">'oTime'</span>: [<span class="pl-s">''</span>, <span class="pl-s">'2016-09-19 05:24:33'</span>, <span class="pl-s">''</span>, <span class="pl-s">'2016-09-19 23:59:04'</span>], <span class="pl-s">'Machine'</span>: [<span class="pl-s">'23'</span>, <span class="pl-s">'36L'</span>, <span class="pl-s">'36R'</span>, <span class="pl-s">'36R'</span>]}) <span class="pl-s1">df2</span> <span class="pl-c1">=</span> <span class="pl-s1">df1</span>.<span class="pl-en">copy</span>() <span class="pl-s1">df2</span>.<span class="pl-s1">oTime</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">to_datetime</span>(<span class="pl-s1">df2</span>.<span class="pl-s1">oTime</span>) <span class="pl-s1">pred1</span> <span class="pl-c1">=</span> <span class="pl-s1">df1</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'Key'</span>).<span class="pl-en">apply</span>(<span class="pl-s1">predictions</span>) <span class="pl-s1">pred2</span> <span class="pl-c1">=</span> <span class="pl-s1">df2</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'Key'</span>).<span class="pl-en">apply</span>(<span class="pl-s1">predictions</span>) <span class="pl-en">print</span>(<span class="pl-s1">pred1</span>) <span class="pl-en">print</span>(<span class="pl-s1">pred2</span>)</pre></div> <h4 dir="auto">Actual Output:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" p1 p2 useTime Key A 36R 36R 2016-09-19 23:59:04 B 23 36L 2016-09-19 05:24:33 p1 p2 useTime Key A NaN 36R 2016-09-19T23:59:04.000000000 B 23.0 36L 2016-09-19T05:24:33.000000000"><pre class="notranslate"><code class="notranslate"> p1 p2 useTime Key A 36R 36R 2016-09-19 23:59:04 B 23 36L 2016-09-19 05:24:33 p1 p2 useTime Key A NaN 36R 2016-09-19T23:59:04.000000000 B 23.0 36L 2016-09-19T05:24:33.000000000 </code></pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">pred1 and pred2 should have the same values in column p1.<br> pred1 is correct whereas pred2 is changing type to float64.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> ## INSTALLED VERSIONS <p dir="auto">commit: None<br> python: 3.5.2.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 14.5.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: en_US.UTF-8<br> LANG: en_US.UTF-8<br> LOCALE: en_US.UTF-8</p> <p dir="auto">pandas: 0.19.0<br> nose: None<br> pip: 8.1.2<br> setuptools: 27.2.0<br> Cython: None<br> numpy: 1.11.2<br> scipy: 0.18.1<br> statsmodels: None<br> xarray: None<br> IPython: 5.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.5.3<br> pytz: 2016.7<br> blosc: None<br> bottleneck: None<br> tables: 3.2.3.1<br> numexpr: 2.6.1<br> matplotlib: 1.5.3<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.1.0<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: None<br> pandas_datareader: None</p> </details>
1
<h3 dir="auto">Description</h3> <p dir="auto">For instance, I have two dockerized FastApi application running. My <code class="notranslate">App1</code> always calls <code class="notranslate">App2</code>.<br> Is it possible to route calls to <code class="notranslate">App2</code> in a simple way from <code class="notranslate">App1</code>, without writing duplicate endpoints in <code class="notranslate">App1</code> and using requests lib to call endpoints in <code class="notranslate">App2</code>?</p> <p dir="auto">Something in lines of <a href="https://fastapi.tiangolo.com/advanced/sub-applications-proxy/" rel="nofollow">Sub Applications</a> but across two different dockerized application.</p>
<p dir="auto">Hi<br> I have identified a problem related to the way the integrated swagger interprets lists in formdata. So this is the endpoint I use:</p> <blockquote> <p dir="auto">@router.patch("/clients/{client_id}")<br> def patch_client(client_id: int,<br> db: Session = Depends(get_db),<br> email: typing.Optional[List[EmailStr]] = Form(None),<br> phone: typing.Optional[List[str]] = Form(None) ........</p> </blockquote> <p dir="auto">Basically for the Swagger auto-documentation to implement a form list all I have to do is use typing.List then in the Swagger UI appears the button "Add Item". Now the problem is it doesn't work as it should. For the email part it works only if you add a single email, on a second email I get 422 Unprocessable Entity. For phones instead of giving me a proper list of strings I get a list with a single string with each phone field separated by comma. The curl which is generated just doesn't work.</p> <p dir="auto">This is the curl which is generated:</p> <blockquote> <p dir="auto">curl -X PATCH "<a href="http://10.2.1.90:8000/clients/564" rel="nofollow">http://10.2.1.90:8000/clients/564</a>" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "<strong>email=user%40example.com,user%40example.com</strong>&amp;phone="</p> </blockquote> <p dir="auto">It doesn't work, simply because it expects a proper EmailStr instead it gets some kind of concatenated thing.</p> <p dir="auto">Now, this is change I made to the curl and it works as expected:</p> <blockquote> <p dir="auto">curl -X PATCH "<a href="http://10.2.1.90:8000/clients/564" rel="nofollow">http://10.2.1.90:8000/clients/564</a>" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "email=user%40example.com&amp;email=user%40example.com&amp;phone="<br> And I get a proper list:<br> ['<a href="mailto:[email protected]">[email protected]</a>', '<a href="mailto:[email protected]">[email protected]</a>']</p> </blockquote> <p dir="auto">As far as I know it's perfectly allowed and according to spec to specify duplicated keys which contain different values. Why does the integrated Swagger UI behave like this though?</p> <p dir="auto">The problem appears both for multipart and x-www-form-urlencoded because of that concatenation that uses a comma.</p>
0
<p dir="auto">I have found that the class "modal-open" is being applied too late to the body tag. Because of this, there is a brief appearance of double scroll bars. This is happening in Firefox (22.0) and Chrome (28.0.1500.72 m), both desktop. It happens in IE10 as well but because of the scroll bars overlaying content it is not noticeable.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/48bfce860c17e49d11b4b1b5a320a87b40425712df93214115af8d7c45654676/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3937363935312f3836393738382f37656338363733342d663831332d313165322d393632312d3733613362303331373338622e706e67"><img src="https://camo.githubusercontent.com/48bfce860c17e49d11b4b1b5a320a87b40425712df93214115af8d7c45654676/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3937363935312f3836393738382f37656338363733342d663831332d313165322d393632312d3733613362303331373338622e706e67" alt="bootstrapmodalbug" data-canonical-src="https://f.cloud.github.com/assets/976951/869788/7ec86734-f813-11e2-9621-73a3b031738b.png" style="max-width: 100%;"></a></p>
<p dir="auto">Hi, sorry for bad English. I want to tell that there is issue with opened modal (2 scrollbars) if javascripts included in head and not in the end of page as assumed in examples. The reason is here <a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/js/modal.js#L238">https://github.com/twbs/bootstrap/blob/3.0.0-wip/js/modal.js#L238</a> $body is empty</p>
1
<p dir="auto">Symfony's YAML parser/dumper behaves differently than the PHP PECL yaml parser/dumper.</p> <p dir="auto">Example code:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;?php require_once(&quot;Symfony/Component/Yaml/Parser.php&quot;); require_once(&quot;Symfony/Component/Yaml/Yaml.php&quot;); require_once(&quot;Symfony/Component/Yaml/Inline.php&quot;); require_once(&quot;Symfony/Component/Yaml/Dumper.php&quot;); require_once(&quot;Symfony/Component/Yaml/Unescaper.php&quot;); require_once(&quot;Symfony/Component/Yaml/Escaper.php&quot;); require_once(&quot;Symfony/Component/Yaml/Exception/ExceptionInterface.php&quot;); require_once(&quot;Symfony/Component/Yaml/Exception/DumpException.php&quot;); require_once(&quot;Symfony/Component/Yaml/Exception/ParseException.php&quot;); $data = array('data' =&gt; array('date' =&gt; array('cr=bla'), 'username' =&gt; 'foo')); $yaml = (yaml_emit($data)); $parser = new Symfony\Component\Yaml\Parser(); $data2 = $parser-&gt;parse($yaml); echo &quot;ORIG\n&quot;; var_dump($data); echo &quot;NEW:\n&quot;; var_dump($data2); ?&gt;"><pre class="notranslate"><span class="pl-ent">&lt;?php</span> <span class="pl-k">require_once</span>("<span class="pl-s">Symfony/Component/Yaml/Parser.php</span>"); <span class="pl-k">require_once</span>("<span class="pl-s">Symfony/Component/Yaml/Yaml.php</span>"); <span class="pl-k">require_once</span>("<span class="pl-s">Symfony/Component/Yaml/Inline.php</span>"); <span class="pl-k">require_once</span>("<span class="pl-s">Symfony/Component/Yaml/Dumper.php</span>"); <span class="pl-k">require_once</span>("<span class="pl-s">Symfony/Component/Yaml/Unescaper.php</span>"); <span class="pl-k">require_once</span>("<span class="pl-s">Symfony/Component/Yaml/Escaper.php</span>"); <span class="pl-k">require_once</span>("<span class="pl-s">Symfony/Component/Yaml/Exception/ExceptionInterface.php</span>"); <span class="pl-k">require_once</span>("<span class="pl-s">Symfony/Component/Yaml/Exception/DumpException.php</span>"); <span class="pl-k">require_once</span>("<span class="pl-s">Symfony/Component/Yaml/Exception/ParseException.php</span>"); <span class="pl-s1"><span class="pl-c1">$</span>data</span> = <span class="pl-en">array</span>(<span class="pl-s">'data'</span> =&gt; <span class="pl-en">array</span>(<span class="pl-s">'date'</span> =&gt; <span class="pl-en">array</span>(<span class="pl-s">'cr=bla'</span>), <span class="pl-s">'username'</span> =&gt; <span class="pl-s">'foo'</span>)); <span class="pl-s1"><span class="pl-c1">$</span>yaml</span> = (yaml_emit(<span class="pl-s1"><span class="pl-c1">$</span>data</span>)); <span class="pl-s1"><span class="pl-c1">$</span>parser</span> = <span class="pl-k">new</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Yaml</span>\<span class="pl-v">Parser</span>(); <span class="pl-s1"><span class="pl-c1">$</span>data2</span> = <span class="pl-s1"><span class="pl-c1">$</span>parser</span>-&gt;<span class="pl-en">parse</span>(<span class="pl-s1"><span class="pl-c1">$</span>yaml</span>); <span class="pl-k">echo</span> "<span class="pl-s">ORIG</span>\n"; var_dump(<span class="pl-s1"><span class="pl-c1">$</span>data</span>); <span class="pl-k">echo</span> "<span class="pl-s">NEW:</span>\n"; var_dump(<span class="pl-s1"><span class="pl-c1">$</span>data2</span>); <span class="pl-ent">?&gt;</span></pre></div> <p dir="auto">returns the following results:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ORIG array(1) { [&quot;data&quot;]=&gt; array(2) { [&quot;date&quot;]=&gt; array(1) { [0]=&gt; string(6) &quot;cr=bla&quot; } [&quot;username&quot;]=&gt; string(3) &quot;foo&quot; } } NEW: array(1) { [&quot;data&quot;]=&gt; array(3) { [&quot;date&quot;]=&gt; NULL [0]=&gt; string(6) &quot;cr=bla&quot; [&quot;username&quot;]=&gt; string(3) &quot;foo&quot; } }"><pre class="notranslate"><code class="notranslate">ORIG array(1) { ["data"]=&gt; array(2) { ["date"]=&gt; array(1) { [0]=&gt; string(6) "cr=bla" } ["username"]=&gt; string(3) "foo" } } NEW: array(1) { ["data"]=&gt; array(3) { ["date"]=&gt; NULL [0]=&gt; string(6) "cr=bla" ["username"]=&gt; string(3) "foo" } } </code></pre></div> <p dir="auto">This is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alex@debvirt:~/work/EPPTest$ php -v PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 13:13:26) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies alex@debvirt:~/work/EPPTest$ pecl list | fgrep yaml yaml 1.0.1 stable Installed packages, channel pear.symfony.com: ============================================= Package Version State Yaml 2.0.12 stable"><pre class="notranslate"><code class="notranslate">alex@debvirt:~/work/EPPTest$ php -v PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 13:13:26) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies alex@debvirt:~/work/EPPTest$ pecl list | fgrep yaml yaml 1.0.1 stable Installed packages, channel pear.symfony.com: ============================================= Package Version State Yaml 2.0.12 stable </code></pre></div>
<p dir="auto">Hey guys!</p> <p dir="auto">See the old discussion here: <a href="http://groups.google.com/group/symfony-devs/browse_thread/thread/d7da04699033ec07" rel="nofollow">http://groups.google.com/group/symfony-devs/browse_thread/thread/d7da04699033ec07</a></p> <p dir="auto">Currently, there's no standard way of (when you're not using a CDN) retrieving the absolute URL to an asset. This would be useful, for example, when generating asset paths in a template for an email. I believe the best <em>current</em> solution would be something like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{{ app.request.httpHost ~ asset('images/foo.jpg') }}"><pre class="notranslate"><code class="notranslate">{{ app.request.httpHost ~ asset('images/foo.jpg') }} </code></pre></div> <p dir="auto">Of course, that'll break if/when I start using a CDN :).</p> <p dir="auto">Question: is this something we should add?</p>
0
<p dir="auto">Using Firefox 22.0 on a MacBookPro,</p> <p dir="auto"><a href="http://twitter.github.io/bootstrap/components/" rel="nofollow">http://twitter.github.io/bootstrap/components/</a></p> <p dir="auto">The Scrollspy works, but when clicking on an actual item on the side nav,</p> <p dir="auto">Error console give this:<br> An empty string is passed to GetElementById()</p> <p dir="auto">cheers!</p>
<p dir="auto">You cannot access on any left-side menu link with Firefox.</p> <p dir="auto">Tested with Firefox 22.0 on Mac</p>
1
<p dir="auto">I've recently did a profile of my project, haven't done that in 4-5 months, since then three.js version has been upgraded several times. Currently on <code class="notranslate">0.132.2</code></p> <p dir="auto">So, profile shows up that <code class="notranslate">getProgramCacheKey</code> takes up close to 20% of the entire time:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5939063/132960860-3f9515fa-c08b-4301-ae20-0b75ce0b45e9.png"><img src="https://user-images.githubusercontent.com/5939063/132960860-3f9515fa-c08b-4301-ae20-0b75ce0b45e9.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">For a bit more context, this is in the scope of the entire game, with particle simulation, IK, sound and a bunch of other stuff going on. Not just pure rendering. Here's a screenshot of what's being rendered:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5939063/132960916-5ed6cb6a-2b72-47e0-bab1-5807cebc23e2.png"><img src="https://user-images.githubusercontent.com/5939063/132960916-5ed6cb6a-2b72-47e0-bab1-5807cebc23e2.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Here's the <code class="notranslate">WebGLRenderer.info</code>:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5939063/132960939-ab48901f-5918-46e8-b32d-af5a174fd977.png"><img src="https://user-images.githubusercontent.com/5939063/132960939-ab48901f-5918-46e8-b32d-af5a174fd977.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">If you have a look at the cache key computation code, there's a lot wrong there. It's building an array of strings, that's a lot of allocation, and then there's <code class="notranslate">array.join()</code> which results in another string being created. All of that, just to throw the result away in the end (since no new materials are created during profiling period).</p> <p dir="auto">I propose offering an override for the cache keys, or building keys in a way that avoids much of the allocation effort. Also, doing equality check on material against what's already cached can be done without materializing this "cache key" at all. I understand that it's "simple" to do what's currently being done, and I understand that doing what I propose is less easy, but we're talking about 20% of the CPU time being wasted on an application that's hardly pure rendering.</p> <p dir="auto">As an alternative - perhaps offer an override for cache key computation, something like "customComputeMaterialCacheKey", that would be dirty, but it would allow users like me to work around the issue.</p>
<p dir="auto">(*** This section is for bug reports and feature requests only. This is NOT a help site. Do not ask help questions here. If you need help, please use stackoverflow. ***)</p> <h5 dir="auto">Description of the problem</h5> <p dir="auto">As far as I understand, UVs cannot currently be applied by polygon-vertex and must be applied directly to the vertex. This creates issues with UV-unwrapping objects because the object must be unwrapped into one 2-D mesh rather than being able to split it into multiple parts, and the seams must have duplicated vertices to avoid wrapping issues at the seams.</p> <p dir="auto">I'm not 100% sure if it's possible to use two separate buffers for vertices and UVs and use separate indices to both in the Geometry Face, or if we are limited to only using one index for every buffer. It's not as big of an issue for things like normals, but it becomes an issue with UVs. If it's not possible to generate geometry buffers like so, then the loaders need to duplicate the vertices if there is data applied per face rather than per vertex, which is gonna be a large and annoying change, but a necessary one if there is no other option. Wanted to open a dialogue about this and determine the best way to approach this issue.</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r82</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</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"> 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> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
0
<p dir="auto">After several hours, still no success. Next 8 was ok. I created this issue to track investigations.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@app/web | &gt; Using external babel configuration | &gt; Location: &quot;/Users/steida/dev/nberg/packages/web/babel.config.js&quot; | [ info ] bundled successfully, waiting for typecheck results ... | [ wait ] compiling ... | [ info ] bundled successfully, waiting for typecheck results ... | [ ready ] compiled successfully - ready on http://localhost:3000 | [ event ] build page: / | [ wait ] compiling ... | [ info ] bundled successfully, waiting for typecheck results ... | [ ready ] compiled successfully - ready on http://localhost:3000 | { Error: Cannot find module '/Users/steida/dev/nberg/packages/web/.next/server/static/development/pages/_document' | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) | at Function.Module._load (internal/modules/cjs/loader.js:508:25) | at Module.require (internal/modules/cjs/loader.js:637:17) | at require (internal/modules/cjs/helpers.js:22:18) | at Object.loadComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/load-components.js:17:25) | at DevServer.findPageComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:298:40) | at DevServer.renderToHTML (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:313:21) | at DevServer.renderToHTML (/Users/steida/dev/nberg/node_modules/next/dist/server/next-dev-server.js:16:198) | at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' } | [ event ] build page: /next/dist/pages/_error | [ wait ] compiling ... | [ ready ] compiled successfully - ready on http://localhost:3000 | [ error ] { Error: Cannot find module '/Users/steida/dev/nberg/packages/web/.next/server/static/development/pages/_document' | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) | at Function.Module._load (internal/modules/cjs/loader.js:508:25) | at Module.require (internal/modules/cjs/loader.js:637:17) | at require (internal/modules/cjs/helpers.js:22:18) | at Object.loadComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/load-components.js:17:25) | at DevServer.findPageComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:298:40) | at DevServer.renderErrorToHTML (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:362:35) | at DevServer.renderErrorToHTML (/Users/steida/dev/nberg/node_modules/next/dist/server/next-dev-server.js:16:706) | at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' } | { Error: Cannot find module '/Users/steida/dev/nberg/packages/web/.next/server/static/development/pages/_document' | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) | at Function.Module._load (internal/modules/cjs/loader.js:508:25) | at Module.require (internal/modules/cjs/loader.js:637:17) | at require (internal/modules/cjs/helpers.js:22:18) | at Object.loadComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/load-components.js:17:25) | at DevServer.findPageComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:298:40) | at DevServer.renderErrorToHTML (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:362:35) | at DevServer.renderErrorToHTML (/Users/steida/dev/nberg/node_modules/next/dist/server/next-dev-server.js:16:839) | at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' }"><pre class="notranslate"><code class="notranslate">@app/web | &gt; Using external babel configuration | &gt; Location: "/Users/steida/dev/nberg/packages/web/babel.config.js" | [ info ] bundled successfully, waiting for typecheck results ... | [ wait ] compiling ... | [ info ] bundled successfully, waiting for typecheck results ... | [ ready ] compiled successfully - ready on http://localhost:3000 | [ event ] build page: / | [ wait ] compiling ... | [ info ] bundled successfully, waiting for typecheck results ... | [ ready ] compiled successfully - ready on http://localhost:3000 | { Error: Cannot find module '/Users/steida/dev/nberg/packages/web/.next/server/static/development/pages/_document' | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) | at Function.Module._load (internal/modules/cjs/loader.js:508:25) | at Module.require (internal/modules/cjs/loader.js:637:17) | at require (internal/modules/cjs/helpers.js:22:18) | at Object.loadComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/load-components.js:17:25) | at DevServer.findPageComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:298:40) | at DevServer.renderToHTML (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:313:21) | at DevServer.renderToHTML (/Users/steida/dev/nberg/node_modules/next/dist/server/next-dev-server.js:16:198) | at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' } | [ event ] build page: /next/dist/pages/_error | [ wait ] compiling ... | [ ready ] compiled successfully - ready on http://localhost:3000 | [ error ] { Error: Cannot find module '/Users/steida/dev/nberg/packages/web/.next/server/static/development/pages/_document' | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) | at Function.Module._load (internal/modules/cjs/loader.js:508:25) | at Module.require (internal/modules/cjs/loader.js:637:17) | at require (internal/modules/cjs/helpers.js:22:18) | at Object.loadComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/load-components.js:17:25) | at DevServer.findPageComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:298:40) | at DevServer.renderErrorToHTML (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:362:35) | at DevServer.renderErrorToHTML (/Users/steida/dev/nberg/node_modules/next/dist/server/next-dev-server.js:16:706) | at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' } | { Error: Cannot find module '/Users/steida/dev/nberg/packages/web/.next/server/static/development/pages/_document' | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) | at Function.Module._load (internal/modules/cjs/loader.js:508:25) | at Module.require (internal/modules/cjs/loader.js:637:17) | at require (internal/modules/cjs/helpers.js:22:18) | at Object.loadComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/load-components.js:17:25) | at DevServer.findPageComponents (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:298:40) | at DevServer.renderErrorToHTML (/Users/steida/dev/nberg/node_modules/next-server/dist/server/next-server.js:362:35) | at DevServer.renderErrorToHTML (/Users/steida/dev/nberg/node_modules/next/dist/server/next-dev-server.js:16:839) | at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' } </code></pre></div>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">We had a working worker file prior to the update to canary, afterwords we get a 'window is undefined' error and the functionality of our worker is never fired or fulfilled. We are already on the canary of <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-workers">next-workers</a> which has a similar bug fix.</p> <h2 dir="auto">To Reproduce</h2> <ol dir="auto"> <li>add <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-workers">next-workers</a>@canary to next.config.js</li> <li>import a worker file</li> <li>see that it loads correctly</li> <li>upgrade to next@canary</li> <li>visit the page that loads the worker and see window is undefined error.</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Expect the worker to load correctly</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: MacOS</li> <li>Browser: Firefox and Chrome tested</li> <li>The version of Next.js: Canary</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Didn't know whether to report here or <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-plugins">next-plugins</a></p>
1
<p dir="auto">When multiple versions of the documentation are available, it tends to pollute google results. As a way to prevent that, it would be good to always have the latest stable release available under /current/, and have all previous versions + the master docs contain canonical links to the current docs like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;link rel=&quot;canonical&quot; href=&quot;http://.../current/...&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;link rel="canonical" href="http://.../current/..." /&gt; </code></pre></div> <p dir="auto">That way it consolidates all results under the current URL which will always be correct, and it also encourages people linking to docs in blog posts and such to use links that will not rot.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexcrichton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexcrichton">@alexcrichton</a></p>
<h1 dir="auto">Motivation and Summary</h1> <p dir="auto">When someone uses a web search engine to find a crate’s documentation, they are likely to wind up on the documentation for a random older version of that crate. This can be confusing and frustrating if they are working on a project that depends on a more recent version of that crate. As an example: in April 2021, a Google search for [rustls serversession] links to version 0.5.5 of that crate, released Feb 2017. A Google search for [rustls clientsession] links to version 0.11.0, released Jan 2019. The latest version is 0.19.0, released Nov 2020.</p> <p dir="auto">To fix this, I propose that doc.rs’s URL structure should be more like crates.io: Each crate should have an unversioned URL (docs.rs/rustls/latest) that always shows the docs for the latest version of that crate. There would continue to be versioned URLs like today (<a href="https://docs.rs/rustls/0.19.0/rustls/" rel="nofollow">https://docs.rs/rustls/0.19.0/rustls/</a>), accessible as defined below. I believe this will, over time, lead search engines to more often find the unversioned URL.</p> <p dir="auto">This is a popular request:</p> <p dir="auto"><a href="https://github.com/rust-lang/docs.rs/issues/1006" data-hovercard-type="issue" data-hovercard-url="/rust-lang/docs.rs/issues/1006/hovercard">https://github.com/rust-lang/docs.rs/issues/1006<br> </a><a href="https://github.com/rust-lang/docs.rs/issues/854" data-hovercard-type="issue" data-hovercard-url="/rust-lang/docs.rs/issues/854/hovercard">https://github.com/rust-lang/docs.rs/issues/854<br> </a><a href="https://github.com/rust-lang/docs.rs/issues/74" data-hovercard-type="issue" data-hovercard-url="/rust-lang/docs.rs/issues/74/hovercard">https://github.com/rust-lang/docs.rs/issues/74<br> </a><a href="https://github.com/rust-lang/docs.rs/issues/1411" data-hovercard-type="issue" data-hovercard-url="/rust-lang/docs.rs/issues/1411/hovercard">https://github.com/rust-lang/docs.rs/issues/1411<br> </a></p> <p dir="auto">It's also a problem that disproportionately affects new users of the language who haven't gotten in the habit of looking for the "go to latest version" link. I know when I was first learning Rust, this problem was a particular headache for me.</p> <h1 dir="auto">Non-working solutions</h1> <p dir="auto"><code class="notranslate">&lt;link rel=canonical&gt;</code> is a commonly proposed solution, but <a href="https://datatracker.ietf.org/doc/html/rfc6596" rel="nofollow">it’s not the right fit</a>:</p> <blockquote> <p dir="auto">The target (canonical) IRI MUST identify content that is either<br> duplicative or a superset of the content at the context (referring)<br> IRI.</p> </blockquote> <p dir="auto">Since documentation of different versions is not duplicative, this won’t work. And in fact search engines verify the property, and will disregard canonical links on a site if it does not hold.</p> <p dir="auto">Here are some links about Google’s handling of canonical:</p> <p dir="auto"><a href="https://developers.google.com/search/docs/advanced/guidelines/duplicate-content" rel="nofollow">https://developers.google.com/search/docs/advanced/guidelines/duplicate-content</a><br> <a href="https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls" rel="nofollow">https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls</a></p> <h1 dir="auto">Proposed Solution</h1> <p dir="auto">For any given crate, <code class="notranslate">https://docs.rs/&lt;crate&gt;/latest</code> should exist and not be a redirect. It should serve the latest version of that crate. Crates.io should be updated so that the unversioned URL for a crate (e.g. <a href="https://crates.io/crates/ureq" rel="nofollow">https://crates.io/crates/ureq</a>) links to the unversioned URL on docs.rs.</p> <p dir="auto">Sometimes people will want to link to a specific version of the documentation rather than the generic “latest” URL. There will be two ways to do that:</p> <ul dir="auto"> <li>You can navigate explicitly to the versioned URL, using the version selector tools already available in docs.rs.</li> <li>Additionally, we should follow GitHub’s UI for when you click on a line number in a source file. When you click on an anchor within a doc page, a little “...” should appear with options to either copy the line or copy a permalink. We may even want to mimic the keystroke to go to a permalink for a page (<code class="notranslate">y</code>).</li> </ul> <h1 dir="auto">Caching issues</h1> <p dir="auto">Currently, only static files are cached. The things that change between versions of a crate are its HTML and some JS (containing JSON data used in displaying the pages). The HTML is currently not cached at all, so invalidating its cache is not a current concern. The JS is also not cached, but it has a unique URL per crate version so easily could be cached.</p> <p dir="auto">In case we later decide to start caching the HTML: <a href="https://github.com/rust-lang/docs.rs/issues/1006#issuecomment-725650039" data-hovercard-type="issue" data-hovercard-url="/rust-lang/docs.rs/issues/1006/hovercard">The CloudFront rates for cache invalidation are reasonable</a>: $0.005 per invalidation request, and purging a whole subdirectory (like <code class="notranslate">/crates/&lt;crate&gt;/*</code>) is considered a single invalidation request.</p> <h1 dir="auto">Will it work?</h1> <p dir="auto">I’m pretty sure it will work. Search engines these days take navigation events heavily into account, so if most navigation events go to an unversioned URL, that will help a lot. Also, once we make this change, the unversioned URLs will start accumulating “link juice,” which will also help a lot.</p> <p dir="auto">One good demonstration that it will work is that crates.io already follows a scheme like this, and does not have the "links go to old versions" problem at all.</p>
1
<ul dir="auto"> <li><strong>Electron Version:</strong><br> 4.0.^</li> <li><strong>Operating System:</strong><br> Ubuntu + Xfce 18.04 x64</li> </ul> <p dir="auto">hi, when i want to change my keyboard layout with "Alt+Shift" shortcut. in electron apps like</p> <ul dir="auto"> <li><a href="https://github.com/notable/notable">notable</a></li> <li><a href="https://www.getpostman.com/" rel="nofollow">post man</a></li> <li><a href="https://github.com/geeksesi/time_reminder">this test</a><br> one menu will open ( check screenshots ).<br> i don't have any shortcut on my app or OS for this action.</li> </ul> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28778964/54477533-03b62c00-481e-11e9-8c63-3c1f7402eaa5.png"><img src="https://user-images.githubusercontent.com/28778964/54477533-03b62c00-481e-11e9-8c63-3c1f7402eaa5.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28778964/54477564-4b3cb800-481e-11e9-80a6-02fe46b8dec8.png"><img src="https://user-images.githubusercontent.com/28778964/54477564-4b3cb800-481e-11e9-80a6-02fe46b8dec8.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional Information</h3> <p dir="auto">please read this issue : <a href="https://github.com/notable/notable/issues/557" data-hovercard-type="issue" data-hovercard-url="/notable/notable/issues/557/hovercard">issue</a></p>
<p dir="auto">I'm reluctantly convinced that <a href="https://deno.land/" rel="nofollow">Deno</a> will replace Node as the most used server-side javascript technology. Are there any plans in place already for the development of an Electron that runs on deno?</p> <p dir="auto">If not, my suggestion is that such development is inevitable and I'd like to see it started early versus late. This is controversial, but mark my words: Electron, or something like it will be running on Deno sooner than you think.</p> <p dir="auto">This is the best video I've watched, so far, that compares node to deno:<br> <a href="https://www.youtube.com/watch?v=mzfw9TwBiQc" rel="nofollow">https://www.youtube.com/watch?v=mzfw9TwBiQc</a></p> <p dir="auto">Watch it, and give it some thought.</p>
0