text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=raykrueger" rel="nofollow">Ray Krueger</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1743?redirect=false" rel="nofollow">SPR-1743</a></strong> and commented</p> <p dir="auto">The current hibernate3.LocalSessionFactoryBean does not allow for multiple listeners of the same type. There is no means to assign multiple PostLoadEventListeners to the "post-load" event type. Currently the setListners method takes a map that is defined as a Map of &lt;eventListenerType, Listener&gt;.</p> <p dir="auto">I propose changing the eventListeners configuration block to check to see if the entry value is a list...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if (eventListeners != null) { Set entries = eventListeners.entrySet(); for (Iterator iterator = entries.iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String listenerType = (String) entry.getKey(); Object value = entry.getValue(); if (value instanceof List) { List list = ((List) value); Class clazz = config.getEventListeners().getListenerClassFor(listenerType); Object[] listeners = (Object[]) Array.newInstance(clazz, list.size()); listeners = list.toArray(listeners); config.setListeners(listenerType, listeners); } else { config.setListener(listenerType, value); } } }"><pre class="notranslate"><code class="notranslate"> if (eventListeners != null) { Set entries = eventListeners.entrySet(); for (Iterator iterator = entries.iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String listenerType = (String) entry.getKey(); Object value = entry.getValue(); if (value instanceof List) { List list = ((List) value); Class clazz = config.getEventListeners().getListenerClassFor(listenerType); Object[] listeners = (Object[]) Array.newInstance(clazz, list.size()); listeners = list.toArray(listeners); config.setListeners(listenerType, listeners); } else { config.setListener(listenerType, value); } } } </code></pre></div> <p dir="auto">Then it is possible from the context configuration to do the following...<br> &lt;property name="eventListeners"&gt;<br> &lt;map&gt;<br> &lt;entry key="post-load"&gt;<br> &lt;list&gt;<br> &lt;bean class="com.blah.listeners.Listener1"/&gt;<br> &lt;bean class="com.blah.listneres.Listener2"/&gt;<br> &lt;property name="dataSource" ref="bopDataSource"/&gt;<br> &lt;/bean&gt;<br> &lt;/list&gt;<br> &lt;/entry&gt;<br> &lt;entry key="post-commit-insert" value-ref="com.blah.MyPostInsertListener"/&gt;<br> &lt;/map&gt;<br> &lt;/property&gt;</p> <hr> <p dir="auto"><strong>Affects:</strong> 1.2.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="398062648" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6304" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6304/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6304">#6304</a> Spring does not support setting multiple event listeners with Hibernate 3.1 (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5529?redirect=false" rel="nofollow">SPR-5529</a></strong> and commented</p> <p dir="auto">In alignment with Java 5 style and migration of JavaConfig features into core, support the following signature on the BeanFactory interface:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;T&gt; T getBean(Class&lt;T&gt; requiredType) throws BeansException;"><pre class="notranslate"><code class="notranslate">&lt;T&gt; T getBean(Class&lt;T&gt; requiredType) throws BeansException; </code></pre></div> <p dir="auto">This will need to be implemented by the following classes:</p> <p dir="auto">AbstractBeanFactory<br> SimpleJndiBeanFactory<br> StaticListableBeanFactory<br> AbstractApplicationContext</p> <p dir="auto">There are also several locations throughout the Spring test codebase that call getBean(null). These calls will have to be disambiguated as getBean((String)null).</p> <p dir="auto">With the above in mind, the addition of getBean(Class&lt;T&gt;) does introduce a minor backward compatibility issue for anyone calling getBean(null). Given that this is extremely unlikely (because it's meaningless to do so), it's probably not a significant concern.</p> <p dir="auto">Implementation approach:</p> <p dir="auto">Apply logic similar to that in getBeansOfType(), iterating through all beans, building up a collection of beans that match the given 'requiredType' parameter. If the resulting list contains exactly one bean, return it. If the list contains zero beans, throw a NoSuchBeanDefinitionException. If the list contains more than one matching bean, throw a BeansException specific to the issue. No suitable BeansException currently exists for this, so a suggestion would be 'AmbiguousBeanLookupException extends BeansException' with an appropriate error message, something to the effect of: "3 beans match requested type com.acme.Foo. Consider using getBean(String, Class&lt;T&gt;) to disambiguate. Matching bean names are: ['foo1', 'foo2', 'foo3']</p> <p dir="auto">Qualified access by type:</p> <p dir="auto">Currently we're supporting &lt;T&gt; T getBean(String, Class&lt;T&gt;). This is a qualification-by-bean-name scenario. We may also want to support qualification-by-<code class="notranslate">@Qualifier</code>. Haven't given much thought to this, but something to the effect of:</p> <p dir="auto">&lt;T&gt; T getBean(Class&lt;? extends Annotation&gt; qualifier, Class&lt;T&gt; requiredType)</p> <p dir="auto">Such that a client can define two classes of the same supertype:</p> <p dir="auto"><code class="notranslate">@Production</code><br> <code class="notranslate">@Service</code><br> public XyzCustomerService implements CustomerService { ... }</p> <p dir="auto"><code class="notranslate">@Testing</code><br> <code class="notranslate">@Service</code><br> public TestCustomerService implements CustomerService { ... }</p> <p dir="auto">Where <code class="notranslate">@Production</code> and <code class="notranslate">@Testing</code> are both meta-annotated as <code class="notranslate">@Qualifier</code></p> <p dir="auto">The user can then register bean definitions for both classes and access the production instance as follows:</p> <p dir="auto">ApplicationContext ctx = ...<br> CustomerService productionInstance = ctx.getBean(Production.class, CustomerService.class);</p> <p dir="auto">The latter portion of this issue may well be moved to an issue all its own. Just including it here for completeness &amp; concision.</p> <hr> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398065576" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6649" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6649/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6649">#6649</a> Support beanFactory.getBean(Bar.class) signature to instantiate a bean. (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398094525" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10353" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10353/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10353">#10353</a> Provide dedicated ApplicationContext implementations for use with (JavaConfig) <code class="notranslate">@Configuration</code> classes</li> </ul>
0
<p dir="auto">When I use <code class="notranslate">npm</code> to install <code class="notranslate">bootstrap</code> package, I want to be able to use <code class="notranslate">require.resolve('bootstrap')</code> to get exact location (since it's not necessarily in <code class="notranslate">node_modules</code> of my package) on filesystem. Bootstrap <code class="notranslate">package.json</code> misses <code class="notranslate">main</code> section and <code class="notranslate">require.resolve('bootstrap')</code> doesn't work.</p> <p dir="auto">I'm not creating pull request because I'm not sure about what file <code class="notranslate">main</code> section should point to. Either <code class="notranslate">dist/js/bootstrap.js</code> or specially created empty file like <code class="notranslate">dist/index.js</code> or even <code class="notranslate">dist/css/bootstrap.css</code>. Probably something else, but something enough for <code class="notranslate">require.resolve('bootstrap')</code> to work.</p> <p dir="auto">Thanks.</p>
<p dir="auto">Great work on getting bootstrap onto npmjs.org.</p> <p dir="auto">Maybe I am missing something but there is no main property defined in package.json.</p> <p dir="auto">Currently I have to do this</p> <p dir="auto">require('bootstrap/dist/js/bootstrap');</p> <p dir="auto">but I would prefer to do this,</p> <p dir="auto">require('bootstrap');</p> <p dir="auto">Also, I currently have to do the following to meet the jquery dependency before requiring bootstrap.</p> <p dir="auto">window.jQuery = $;</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto">When using React version 16.6.0, my app suddenly crashed with the error "Cannot read property replace of null". The exception happens when React tries to remove the string "topsecret-" from fiber.name. I tried to revert back to 16.5.2 to confirm the version where it happens, and it does indeed not happen in 16.5.2.</p> <p dir="auto">I'm not sure about steps to reproduce it, I've been using React 16.6.0 for a few days in this project without issues until now. Here's a screenshot of the exception and the file it happens in, along with the stack. Seems like a straightforward fix, so I hope a reproduction example isn't needed in this case.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/4bdc42e24bd0b50ec0193a39cc20a6901ba00fa6ca5c32cf50192f0437fd2db8/68747470733a2f2f692e696d6775722e636f6d2f573364376c6d4d2e706e67"><img src="https://camo.githubusercontent.com/4bdc42e24bd0b50ec0193a39cc20a6901ba00fa6ca5c32cf50192f0437fd2db8/68747470733a2f2f692e696d6775722e636f6d2f573364376c6d4d2e706e67" alt="Screenshot" data-canonical-src="https://i.imgur.com/W3d7lmM.png" style="max-width: 100%;"></a></p>
<p dir="auto">Ran <code class="notranslate">create-react-app react-test</code> then <code class="notranslate">npm start</code> on the fresh project with no changes and I get the following error when using [email protected] and [email protected]:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'displayName' of null at getDisplayName (backend.js:9159) at getDataFiber (backend.js:9888) at enqueueMount (backend.js:10158) at mountFiber (backend.js:10246) at backend.js:10306 at Set.forEach (&lt;anonymous&gt;) at Object.walkTree (backend.js:10304) at backend.js:8534 at &lt;anonymous&gt;:52:32 at Array.map (&lt;anonymous&gt;) at Object.emit (&lt;anonymous&gt;:51:66) at setupBackend (backend.js:8621) at module.exports (backend.js:8567) at Agent.&lt;anonymous&gt; (backend.js:116) at Agent.g (backend.js:981) at Agent.EventEmitter.emit (backend.js:894) at backend.js:302 at backend.js:7619 at Array.forEach (&lt;anonymous&gt;) at backend.js:7618 at Array.forEach (&lt;anonymous&gt;) at Bridge._handleMessage (backend.js:7611) at listener (backend.js:92)"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot read property 'displayName' of null at getDisplayName (backend.js:9159) at getDataFiber (backend.js:9888) at enqueueMount (backend.js:10158) at mountFiber (backend.js:10246) at backend.js:10306 at Set.forEach (&lt;anonymous&gt;) at Object.walkTree (backend.js:10304) at backend.js:8534 at &lt;anonymous&gt;:52:32 at Array.map (&lt;anonymous&gt;) at Object.emit (&lt;anonymous&gt;:51:66) at setupBackend (backend.js:8621) at module.exports (backend.js:8567) at Agent.&lt;anonymous&gt; (backend.js:116) at Agent.g (backend.js:981) at Agent.EventEmitter.emit (backend.js:894) at backend.js:302 at backend.js:7619 at Array.forEach (&lt;anonymous&gt;) at backend.js:7618 at Array.forEach (&lt;anonymous&gt;) at Bridge._handleMessage (backend.js:7611) at listener (backend.js:92) </code></pre></div> <p dir="auto">If I rollback the version to [email protected] and [email protected] then I get no errors. I believe I've tracked down the issue to </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/facebook/react-devtools/blob/faa4b630a8c055d5ab4ff51536f1e92604d5c09c/backend/getDisplayName.js#L27">react-devtools/backend/getDisplayName.js</a> </p> <p class="mb-0 color-fg-muted"> Line 27 in <a data-pjax="true" class="commit-tease-sha" href="/facebook/react-devtools/commit/faa4b630a8c055d5ab4ff51536f1e92604d5c09c">faa4b63</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="L27" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="27"></td> <td id="LC27" 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-k">typeof</span> <span class="pl-s1">type</span><span class="pl-kos">.</span><span class="pl-c1">displayName</span> <span class="pl-c1">===</span> <span class="pl-s">'string'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> </tbody></table> </div> </div> but not sure where to go from here.<p></p> <p dir="auto">I've also tried this on an existing project with the same results. Any help would be appreciated. Thanks in advance!</p>
1
<p dir="auto">I'm not sure of this, but did you remove the option of having the tabs on the bottom of the content?</p> <p dir="auto">Would be very glad to have it back. Thanks!</p>
<p dir="auto">This issue will eventually turn into the 3.0.1 release notes. Until then it serves as an index of the key changes coming in our first patch release for v3.</p> <h2 dir="auto">Please, no comments here.</h2> <h3 dir="auto">Docs</h3> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18269325" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9880" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9880/hovercard" href="https://github.com/twbs/bootstrap/issues/9880">#9880</a>: Use medium grid classes on jumbotron example</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18270638" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9887" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9887/hovercard" href="https://github.com/twbs/bootstrap/issues/9887">#9887</a>: Document <code class="notranslate">.show</code> and <code class="notranslate">.hide</code> classes</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18282560" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9908" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9908/hovercard" href="https://github.com/twbs/bootstrap/issues/9908">#9908</a>: Add <code class="notranslate">type="submit"</code> to Customizer compile button to prevent accidental submissions</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18286832" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9915" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9915/hovercard" href="https://github.com/twbs/bootstrap/issues/9915">#9915</a>: Fix inaccurate comment in media query docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18287676" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9917" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9917/hovercard" href="https://github.com/twbs/bootstrap/issues/9917">#9917</a>: Updated broken download link in README</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18289014" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9924" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9924/hovercard" href="https://github.com/twbs/bootstrap/issues/9924">#9924</a>: Removed non-ASCII character from non-responsive example CSS</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18291951" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9928" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9928/hovercard" href="https://github.com/twbs/bootstrap/issues/9928">#9928</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18296204" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9932" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9932/hovercard" href="https://github.com/twbs/bootstrap/issues/9932">#9932</a>: Update carousel example to work in IE10 and correctly display navbar in narrow viewports</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18294735" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9931" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/9931/hovercard" href="https://github.com/twbs/bootstrap/pull/9931">#9931</a>: Add ARIA <code class="notranslate">role="toolbar"</code> to elements with <code class="notranslate">.btn-toolbar</code> in docs examples</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18352033" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9991" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9991/hovercard" href="https://github.com/twbs/bootstrap/issues/9991">#9991</a>: Better docs for tabbable tab markup and it's fade option</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18383805" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10011" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10011/hovercard" href="https://github.com/twbs/bootstrap/pull/10011">#10011</a>: Update Grunt instruction links and wording</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18383856" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10012" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10012/hovercard" href="https://github.com/twbs/bootstrap/pull/10012">#10012</a>: Add David to project readme to monitor dependency currentness</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18424367" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10034" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10034/hovercard" href="https://github.com/twbs/bootstrap/pull/10034">#10034</a>: Use npm-registered recent version of <code class="notranslate">grunt-html-validation</code> instead of its git repo</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18434218" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10040" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10040/hovercard" href="https://github.com/twbs/bootstrap/pull/10040">#10040</a>: Better cross referencing of default and navbar pull utilities</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18437435" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10042" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10042/hovercard" href="https://github.com/twbs/bootstrap/issues/10042">#10042</a>: Updated JS Fiddle tooltip delegation example linked in docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18445866" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10045" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10045/hovercard" href="https://github.com/twbs/bootstrap/issues/10045">#10045</a>: Use v2.3.2 release ZIP instead of master zip for downloads from old docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18478716" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10081" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10081/hovercard" href="https://github.com/twbs/bootstrap/pull/10081">#10081</a>: Documents workaround for tooltips+popovers on disabled elements</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18482006" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10082" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10082/hovercard" href="https://github.com/twbs/bootstrap/issues/10082">#10082</a>: Documents <code class="notranslate">.navbar-form</code></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18486339" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10087" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10087/hovercard" href="https://github.com/twbs/bootstrap/issues/10087">#10087</a>: Add version number to all docs pages (in the footer)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18486506" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10088" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10088/hovercard" href="https://github.com/twbs/bootstrap/pull/10088">#10088</a>: Updates accessibility docs regarding nesting heading elements</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18507860" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10112" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10112/hovercard" href="https://github.com/twbs/bootstrap/pull/10112">#10112</a>: More <code class="notranslate">role</code> attributes in the docs, this time on link buttons</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18518253" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10131" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10131/hovercard" href="https://github.com/twbs/bootstrap/pull/10131">#10131</a>: Corrects button group selector in JavaScript docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18518645" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10136" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10136/hovercard" href="https://github.com/twbs/bootstrap/issues/10136">#10136</a>: Broken image link in Carousel example</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18525776" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10146" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10146/hovercard" href="https://github.com/twbs/bootstrap/pull/10146">#10146</a>: Document <code class="notranslate">data-ride</code> carousel feature</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18603357" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10209" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10209/hovercard" href="https://github.com/twbs/bootstrap/pull/10209">#10209</a>: Fixed broken dismissable alert example</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18611020" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10215" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10215/hovercard" href="https://github.com/twbs/bootstrap/pull/10215">#10215</a>: More compressed touch icons, updates Respond.js to v1.3.0 and html5shiv.js to v3.6.2, adds <code class="notranslate">bugs</code> to package.json</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18662114" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10249" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10249/hovercard" href="https://github.com/twbs/bootstrap/pull/10249">#10249</a>: Correct component name of jumbotron component in Jumbotron example</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18713858" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10272" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10272/hovercard" href="https://github.com/twbs/bootstrap/issues/10272">#10272</a>: Removed unused link for nav alignment in Components page</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18721789" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10277" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10277/hovercard" href="https://github.com/twbs/bootstrap/issues/10277">#10277</a>: Mention removal of navbar vertical dividers in migration docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18722957" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10278" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10278/hovercard" href="https://github.com/twbs/bootstrap/pull/10278">#10278</a>: Change Google Maps compatibility warning to a general <code class="notranslate">box-sizing</code> warning with optional reset</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18732108" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10282" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10282/hovercard" href="https://github.com/twbs/bootstrap/issues/10282">#10282</a>: Cross reference tabs and tabs plugin</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18770397" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10298" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10298/hovercard" href="https://github.com/twbs/bootstrap/pull/10298">#10298</a>: Add progress bar to migration docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18771368" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10299" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10299/hovercard" href="https://github.com/twbs/bootstrap/pull/10299">#10299</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18818039" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10323" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10323/hovercard" href="https://github.com/twbs/bootstrap/pull/10323">#10323</a>: Getting Started wording changes</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18807136" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10316" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10316/hovercard" href="https://github.com/twbs/bootstrap/issues/10316">#10316</a>: Document .active and :active for buttons</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18818077" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10324" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10324/hovercard" href="https://github.com/twbs/bootstrap/issues/10324">#10324</a>, 10338: Restore opt-in warning for tooltips and popovers</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18834337" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10342" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10342/hovercard" href="https://github.com/twbs/bootstrap/pull/10342">#10342</a>: Update affix docs to better communicate plugin behavior</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18835387" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10344" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10344/hovercard" href="https://github.com/twbs/bootstrap/issues/10344">#10344</a>: Update IE8-9 support section with table of specific CSS3 and HTML5 features and their support in Bootstrap</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18869503" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10372" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10372/hovercard" href="https://github.com/twbs/bootstrap/issues/10372">#10372</a>: Homepage now shows two download buttons, one for our assets (CSS, JS, and fonts) and one for the source code (the entire repo)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18883512" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10382" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10382/hovercard" href="https://github.com/twbs/bootstrap/pull/10382">#10382</a>: Update Disabling responsiveness docs section for brevity</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18945983" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10411" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10411/hovercard" href="https://github.com/twbs/bootstrap/pull/10411">#10411</a>: Color coded IE8-9 browser support table</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18947868" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10414" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10414/hovercard" href="https://github.com/twbs/bootstrap/pull/10414">#10414</a>: Carousel now uses Glyphicons as default left/right chevron icons (text icons are still supported)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18950249" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10417" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10417/hovercard" href="https://github.com/twbs/bootstrap/issues/10417">#10417</a>: Document <code class="notranslate">.hidden</code> in the Helper classes <em>Screen reader content</em> section</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18950845" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10419" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10419/hovercard" href="https://github.com/twbs/bootstrap/pull/10419">#10419</a>: Add nav lists to migration guide</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19009046" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10453" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10453/hovercard" href="https://github.com/twbs/bootstrap/pull/10453">#10453</a>: Add additional screen reader text to button group dropdown toggles</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19021858" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10459" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10459/hovercard" href="https://github.com/twbs/bootstrap/pull/10459">#10459</a>: Update Customization section in Getting started page</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19085538" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10492" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10492/hovercard" href="https://github.com/twbs/bootstrap/issues/10492">#10492</a>: Account for responsive tables in panels</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19103179" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10497" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10497/hovercard" href="https://github.com/twbs/bootstrap/issues/10497">#10497</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19349403" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10584" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10584/hovercard" href="https://github.com/twbs/bootstrap/pull/10584">#10584</a>: Fix Windows 8 and Windows Phone 8 behavior in Internet Explorer 10 and applies "bug fix" to docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19172040" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10528" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10528/hovercard" href="https://github.com/twbs/bootstrap/pull/10528">#10528</a>: Add new About page to the docs with backstory, core team, community links, and translations</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19320420" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10573" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10573/hovercard" href="https://github.com/twbs/bootstrap/pull/10573">#10573</a>: Un-hardcode tooltip arrow widths and padding for easier customization</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19359785" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10591" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10591/hovercard" href="https://github.com/twbs/bootstrap/pull/10591">#10591</a>: Add modal <code class="notranslate">remote</code> option semantics change to migration docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19658452" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10693" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10693/hovercard" href="https://github.com/twbs/bootstrap/pull/10693">#10693</a>; Include a copy of the docs license as a file in the repo</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19735709" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10711" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10711/hovercard" href="https://github.com/twbs/bootstrap/issues/10711">#10711</a>: Address 100% fluid layouts in grid docs and the required padding</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19931611" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10768" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10768/hovercard" href="https://github.com/twbs/bootstrap/pull/10768">#10768</a>: Fix mention of renamed <code class="notranslate">.img-polaroid</code> class in Migration docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19934654" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10770" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10770/hovercard" href="https://github.com/twbs/bootstrap/pull/10770">#10770</a>: Rename <code class="notranslate">/assets</code> to <code class="notranslate">/docs-assets</code> to reduce confusion between <code class="notranslate">/dist</code> and docs dependencies</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19995046" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10790" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10790/hovercard" href="https://github.com/twbs/bootstrap/pull/10790">#10790</a>: Disable IE compatibility mode in all docs pages and examples</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20223041" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10856" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10856/hovercard" href="https://github.com/twbs/bootstrap/pull/10856">#10856</a>: Update grid docs to better explain the sizing and interactions when using multiple grid tier classes</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20779141" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11013" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/11013/hovercard" href="https://github.com/twbs/bootstrap/pull/11013">#11013</a>: Use CDNs for jQuery and HTML5 shiv</li> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/3318a982290817b40b21a6405b85f791180b5129/hovercard" href="https://github.com/twbs/bootstrap/commit/3318a982290817b40b21a6405b85f791180b5129"><tt>3318a98</tt></a>: Add blog link back to docs homepage</li> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/8df05b95df85cdd636bcc47c5667c8a198b389df/hovercard" href="https://github.com/twbs/bootstrap/commit/8df05b95df85cdd636bcc47c5667c8a198b389df"><tt>8df05b9</tt></a>: Remove links to navbar examples from example navbars in Theme example</li> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/022e40404c283bc6f211cf3e5d55ef7a7d204cdb/hovercard" href="https://github.com/twbs/bootstrap/commit/022e40404c283bc6f211cf3e5d55ef7a7d204cdb"><tt>022e404</tt></a>: Delete smaller touch icons and only include one</li> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/5d1707a25c0ee68644a182196439a86be1beafbd/hovercard" href="https://github.com/twbs/bootstrap/commit/5d1707a25c0ee68644a182196439a86be1beafbd"><tt>5d1707a</tt></a>: Remove unused mention of <code class="notranslate">.prettyprint</code> styles from <code class="notranslate">code.less</code> (we no longer use that plugin and the class is undocumented, so we're nuking it)</li> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/6e064894db4a67ed2c1180212426a076a494d300/hovercard" href="https://github.com/twbs/bootstrap/commit/6e064894db4a67ed2c1180212426a076a494d300"><tt>6e06489</tt></a>: Remove unnecessary <code class="notranslate">left</code> and <code class="notranslate">right</code> properties from <code class="notranslate">.modal-dialog</code> since we use <code class="notranslate">margin</code> to center the modal</li> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/19db69c902bca678165cf6da8ade018923e05ead/hovercard" href="https://github.com/twbs/bootstrap/commit/19db69c902bca678165cf6da8ade018923e05ead"><tt>19db69c</tt></a>: Add Linux Firefox to supported browsers list</li> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/99b35150ee12d7a693de5ce45eded2f62e9e8354/hovercard" href="https://github.com/twbs/bootstrap/commit/99b35150ee12d7a693de5ce45eded2f62e9e8354"><tt>99b3515</tt></a>: update outdated JSFiddle example</li> </ul> <h3 dir="auto">Bug fixes and changes</h3> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18248472" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9855" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9855/hovercard" href="https://github.com/twbs/bootstrap/issues/9855">#9855</a>: Partial fix for open modal content shifting: removed all <code class="notranslate">margin</code> settings to prevent some of the content shifting. Still needs JS love to detect scrollbars and adjust content accordingly (will address in v3.0.2).</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18267704" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9877" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9877/hovercard" href="https://github.com/twbs/bootstrap/issues/9877">#9877</a>: Add improved <code class="notranslate">.active</code> state to navbar nav in theme</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18268362" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9879" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9879/hovercard" href="https://github.com/twbs/bootstrap/issues/9879">#9879</a>: Add hover state (move gradient up 15px) to theme buttons]</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18282695" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9909" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9909/hovercard" href="https://github.com/twbs/bootstrap/issues/9909">#9909</a>: Add <code class="notranslate">@component-active-color</code> variable to complement <code class="notranslate">@component-active-bg</code> (and apply it to dropdowns, nav pills, and list group items)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18330019" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9964" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/9964/hovercard" href="https://github.com/twbs/bootstrap/pull/9964">#9964</a>: Add fonts directory to bower.json <code class="notranslate">main</code> files list</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18334921" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9968" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/9968/hovercard" href="https://github.com/twbs/bootstrap/pull/9968">#9968</a>: Simplify striped progress bar mixin to remove unused color</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18337409" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9969" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/9969/hovercard" href="https://github.com/twbs/bootstrap/issues/9969">#9969</a>: Add support for <code class="notranslate">output</code> element by styling it more like our <code class="notranslate">.form-control</code></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18339743" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9973" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/9973/hovercard" href="https://github.com/twbs/bootstrap/pull/9973">#9973</a>: Removed unnecessary <code class="notranslate">-ms-linear-gradient</code> prefix</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18345377" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9981" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/9981/hovercard" href="https://github.com/twbs/bootstrap/pull/9981">#9981</a>: Account for hover and focus states on pagination disabled items</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18350198" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9989" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/9989/hovercard" href="https://github.com/twbs/bootstrap/pull/9989">#9989</a>: Set monospace <code class="notranslate">font-family</code> on <code class="notranslate">&lt;kbd&gt;</code> and <code class="notranslate">&lt;samp&gt;</code> to match browser defaults</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18366731" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9999" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/9999/hovercard" href="https://github.com/twbs/bootstrap/pull/9999">#9999</a>: Make <code class="notranslate">.table-hover</code> styling apply to <code class="notranslate">&lt;th&gt;</code> within contextual table rows too</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18385970" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10013" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10013/hovercard" href="https://github.com/twbs/bootstrap/pull/10013">#10013</a>: Position carousel left and right controls from the left and right, respectively</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18391069" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10014" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10014/hovercard" href="https://github.com/twbs/bootstrap/issues/10014">#10014</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18930662" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10406" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10406/hovercard" href="https://github.com/twbs/bootstrap/issues/10406">#10406</a>: Update grid to use <code class="notranslate">width</code> on <code class="notranslate">.container</code>s instead of <code class="notranslate">max-width</code> as IE8 doesn't fully support <code class="notranslate">box-sizing: border-box</code> when combined with min/max width/height</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18403225" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10022" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10022/hovercard" href="https://github.com/twbs/bootstrap/pull/10022">#10022</a>: Add <code class="notranslate">width: 1em;</code> to all empty Glyphicons to prevent loading flicker</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18406202" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10024" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10024/hovercard" href="https://github.com/twbs/bootstrap/issues/10024">#10024</a>: Use negative margin to fix the border between button and input in input groups</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18406621" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10025" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10025/hovercard" href="https://github.com/twbs/bootstrap/pull/10025">#10025</a>: Add additional transform mixins</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18456373" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10057" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10057/hovercard" href="https://github.com/twbs/bootstrap/pull/10057">#10057</a>: Autohiding scrollbars in responsive tables for Windows Phone 8</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18457178" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10059" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10059/hovercard" href="https://github.com/twbs/bootstrap/pull/10059">#10059</a>: Add <code class="notranslate">.transition-property()</code> mixin</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18477994" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10079" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10079/hovercard" href="https://github.com/twbs/bootstrap/pull/10079">#10079</a>: Native-style scrolling in responsive tables for iOS</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18502072" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10101" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10101/hovercard" href="https://github.com/twbs/bootstrap/issues/10101">#10101</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19215621" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10541" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10541/hovercard" href="https://github.com/twbs/bootstrap/issues/10541">#10541</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19296073" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10565" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10565/hovercard" href="https://github.com/twbs/bootstrap/pull/10565">#10565</a>: Generate CSS file banners via Gruntfile</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18507508" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10111" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10111/hovercard" href="https://github.com/twbs/bootstrap/issues/10111">#10111</a>: Use different colors for dropdown link hover and active states</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18508032" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10115" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10115/hovercard" href="https://github.com/twbs/bootstrap/issues/10115">#10115</a>: Default carousel controls and Glyphicon controls should behave the same on small devices and up</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18513293" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10126" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10126/hovercard" href="https://github.com/twbs/bootstrap/pull/10126">#10126</a>: Update responsive test cases to properly highlight hidden class examples</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18529524" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10153" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10153/hovercard" href="https://github.com/twbs/bootstrap/issues/10153">#10153</a>: Restore <code class="notranslate">@headings-color</code> variable</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18529909" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10154" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10154/hovercard" href="https://github.com/twbs/bootstrap/issues/10154">#10154</a>: Add <code class="notranslate">.small</code> to pair with our heading classes (e.g., <code class="notranslate">h1</code> and <code class="notranslate">.h1</code>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18544778" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10164" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10164/hovercard" href="https://github.com/twbs/bootstrap/issues/10164">#10164</a>: Document <code class="notranslate">.center-block()</code> mixin and update CSS to include it as a class</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18558852" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10169" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10169/hovercard" href="https://github.com/twbs/bootstrap/issues/10169">#10169</a>: Remove old <code class="notranslate">@navbar-inverse-search-*</code> variables</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18620260" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10223" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10223/hovercard" href="https://github.com/twbs/bootstrap/issues/10223">#10223</a>: Add <code class="notranslate">@input-color</code> to <code class="notranslate">.input-group-addon</code> to match the form controls</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18632368" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10227" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10227/hovercard" href="https://github.com/twbs/bootstrap/pull/10227">#10227</a>: Use correct <code class="notranslate">max-width</code> on Offcanvas example media query and add <code class="notranslate">overflow-x: hidden</code> to prevent scrollbar on narrow devices</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18642262" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10232" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10232/hovercard" href="https://github.com/twbs/bootstrap/pull/10232">#10232</a>: Scope <code class="notranslate">.table</code> styles to immediate <code class="notranslate">thead</code>, <code class="notranslate">tbody</code>, and <code class="notranslate">tfoot</code> elements</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18657583" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10245" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10245/hovercard" href="https://github.com/twbs/bootstrap/pull/10245">#10245</a>: Add <code class="notranslate">@breadcrumb-separator</code> variable for customizing breadcrumbs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18658980" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10246" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10246/hovercard" href="https://github.com/twbs/bootstrap/issues/10246">#10246</a>: Use correct variable for link hover color in Customizer</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18679658" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10256" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10256/hovercard" href="https://github.com/twbs/bootstrap/pull/10256">#10256</a>: Use <code class="notranslate">@navbar-default-brand-color</code> within the <code class="notranslate">@navbar-default-brand-hover-color</code> variable</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18681226" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10257" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10257/hovercard" href="https://github.com/twbs/bootstrap/issues/10257">#10257</a>: Remove <code class="notranslate">filter</code> on navbars in <code class="notranslate">theme.less</code> so that dropdowns can be triggered in IE&lt;10</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18701212" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10265" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10265/hovercard" href="https://github.com/twbs/bootstrap/pull/10265">#10265</a>: Scope <code class="notranslate">background-image</code> reset to Bootstrap buttons and form controls only to avoid Android Firefox bug</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18824339" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10336" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10336/hovercard" href="https://github.com/twbs/bootstrap/pull/10336">#10336</a>: Replace non-ASCII dash in LESS source file</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18832191" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10341" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10341/hovercard" href="https://github.com/twbs/bootstrap/issues/10341">#10341</a>: Don't change border color on contextual table classes</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18904612" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10399" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10399/hovercard" href="https://github.com/twbs/bootstrap/issues/10399">#10399</a>: Add hover styles to text emphasis classes</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18932670" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10407" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10407/hovercard" href="https://github.com/twbs/bootstrap/issues/10407">#10407</a>: Add line-height to progress bar for proper text alignment within</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18979976" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10436" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10436/hovercard" href="https://github.com/twbs/bootstrap/issues/10436">#10436</a>: Use <code class="notranslate">@screen-sm</code> variable instead of hardcoded pixel value in type.less</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19071663" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10484" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10484/hovercard" href="https://github.com/twbs/bootstrap/pull/10484">#10484</a>: Allow for <code class="notranslate">.table-bordered</code> in panels by removing side and bottom margins</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19151866" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10516" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10516/hovercard" href="https://github.com/twbs/bootstrap/issues/10516">#10516</a>: Use auto positioning for dropdowns in justified nav to fix Firefox rendering</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19159047" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10521" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10521/hovercard" href="https://github.com/twbs/bootstrap/issues/10521">#10521</a>: Only remove <code class="notranslate">bottom-border</code> from last row of cells in <code class="notranslate">tbody</code> and <code class="notranslate">tfoot</code> within responsive tables</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19159921" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10522" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10522/hovercard" href="https://github.com/twbs/bootstrap/issues/10522">#10522</a>: Enable use of form validation class on .radio, .checkbox, .radio-inline, and .checkbox-inline</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19168637" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10526" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10526/hovercard" href="https://github.com/twbs/bootstrap/issues/10526">#10526</a>: Remove custom background on responsive tables and set it in the docs where it should've been originally</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19286040" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10560" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10560/hovercard" href="https://github.com/twbs/bootstrap/pull/10560">#10560</a>: Remove <code class="notranslate">display: block;</code> from <code class="notranslate">address</code> element since browsers set that to start</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19359364" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10590" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10590/hovercard" href="https://github.com/twbs/bootstrap/pull/10590">#10590</a>: Mention required jQuery version in docs</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19375396" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10601" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10601/hovercard" href="https://github.com/twbs/bootstrap/issues/10601">#10601</a>: Use <code class="notranslate">overflow-y: auto;</code> for <code class="notranslate">.navbar-collapse</code> instead of <code class="notranslate">visible</code> to better enable scrolling on Android 4.x devices (see issue for more details on support and gotchas)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19462033" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10620" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10620/hovercard" href="https://github.com/twbs/bootstrap/issues/10620">#10620</a>: Remove <code class="notranslate">filter</code> on buttons for IE9 in <code class="notranslate">theme.less</code> due to bleed-through with rounded corners (matches behavior and style of Bootstrap 2.x)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19506078" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10641" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10641/hovercard" href="https://github.com/twbs/bootstrap/pull/10641">#10641</a>: Remove unused <code class="notranslate">.accordion-toggle</code> class from docs example</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19541566" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10656" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10656/hovercard" href="https://github.com/twbs/bootstrap/pull/10656">#10656</a>: Inherit link and caret colors for textual dropdowns in panel headers</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19661845" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10694" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10694/hovercard" href="https://github.com/twbs/bootstrap/issues/10694">#10694</a>: Remove unnecessary <code class="notranslate">content</code> property from <code class="notranslate">.caret</code></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19661886" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10695" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10695/hovercard" href="https://github.com/twbs/bootstrap/pull/10695">#10695</a>: Ensure carets in <code class="notranslate">.nav-pills</code> dropdown links inherit active color</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19773924" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10729" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10729/hovercard" href="https://github.com/twbs/bootstrap/pull/10729">#10729</a>: Removed the unnecessary override and the <code class="notranslate">!important</code> from <code class="notranslate">.wrap</code> in the sticky footer examples</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19867283" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10755" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10755/hovercard" href="https://github.com/twbs/bootstrap/issues/10755">#10755</a>: Don't remove quotes around <code class="notranslate">q</code> element by default</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19957895" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10778" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10778/hovercard" href="https://github.com/twbs/bootstrap/pull/10778">#10778</a>: Use newly-updated Glyphicons to workaround old Android WebKit bug</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19910019" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10763" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10763/hovercard" href="https://github.com/twbs/bootstrap/pull/10763">#10763</a>: Update html5shiv to v3.7.0</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20235222" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10863" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10863/hovercard" href="https://github.com/twbs/bootstrap/pull/10863">#10863</a>: Fix check for presence of jQuery</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20290567" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10893" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10893/hovercard" href="https://github.com/twbs/bootstrap/pull/10893">#10893</a>: Remove comma separating the color and the color-stop in <code class="notranslate">-webkit-linear-gradient</code> in <code class="notranslate">#gradient &gt; .vertical</code> mixin</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20444251" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10927" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10927/hovercard" href="https://github.com/twbs/bootstrap/issues/10927">#10927</a>: Scope <code class="notranslate">padding-top</code> on <code class="notranslate">.form-control-static</code> to horizontal forms only</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20558100" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10949" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10949/hovercard" href="https://github.com/twbs/bootstrap/pull/10949">#10949</a>: Use variable for jumbotron <code class="notranslate">font-size</code> instead of hard-coded value</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20586112" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10959" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10959/hovercard" href="https://github.com/twbs/bootstrap/issues/10959">#10959</a>: Round <code class="notranslate">.lead</code> <code class="notranslate">font-size</code> to nearest whole pixel</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20725838" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10997" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10997/hovercard" href="https://github.com/twbs/bootstrap/issues/10997">#10997</a>: Move <code class="notranslate">.hidden</code> from responsive utilities to utilities (where it belongs, especially on account of deprecated <code class="notranslate">.hide</code> per <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19933816" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10769" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10769/hovercard" href="https://github.com/twbs/bootstrap/pull/10769">#10769</a>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20905602" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11050" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/11050/hovercard" href="https://github.com/twbs/bootstrap/pull/11050">#11050</a>: Restore grid mixins</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21082755" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11126" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/11126/hovercard" href="https://github.com/twbs/bootstrap/issues/11126">#11126</a>: Remove <code class="notranslate">box-shadow</code> from <code class="notranslate">.btn-link.dropdown-toggle</code></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21083542" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11127" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/11127/hovercard" href="https://github.com/twbs/bootstrap/pull/11127">#11127</a>: <code class="notranslate">.navbar-fixed-bottom</code> should have a top border, not a bottom border</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21136314" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11139" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/11139/hovercard" href="https://github.com/twbs/bootstrap/issues/11139">#11139</a>: Add <code class="notranslate">position: relative;</code> to <code class="notranslate">.modal-dialog</code> so that the <code class="notranslate">z-index</code> takes effect</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21179587" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11151" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/11151/hovercard" href="https://github.com/twbs/bootstrap/issues/11151">#11151</a>: Remove rogue H5BP <code class="notranslate">.ir</code> class from print styles</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21290110" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11186" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/11186/hovercard" href="https://github.com/twbs/bootstrap/pull/11186">#11186</a>: Add <code class="notranslate">background-color</code> hacks so that clicking carousel indicators in IE8-9 works as intended</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21294069" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11188" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/11188/hovercard" href="https://github.com/twbs/bootstrap/pull/11188">#11188</a>: Refactor <code class="notranslate">z-index</code> on navbars. Removes the default <code class="notranslate">z-index: 1000;</code> and instead only applies it to static-top, fixed-top, and fixed-bottom. Also fixes up the broken default navbar example's fubared padding.</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21388620" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11206" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/11206/hovercard" href="https://github.com/twbs/bootstrap/pull/11206">#11206</a>: Remove <code class="notranslate">padding-left</code> from first list item within <code class="notranslate">.list-inline</code></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21632820" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11244" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/11244/hovercard" href="https://github.com/twbs/bootstrap/pull/11244">#11244</a>: Adds <code class="notranslate">.animation()</code> mixin to replace <code class="notranslate">.progress-bar</code>'s regular CSS animation properties (and drops the <code class="notranslate">-moz</code>, <code class="notranslate">-ms</code>, and <code class="notranslate">-o</code> prefies as they are not needed per <a href="http://caniuse.com/#feat=css-animation" rel="nofollow">http://caniuse.com/#feat=css-animation</a>).</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="21639948" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/11248/hovercard" href="https://github.com/twbs/bootstrap/pull/11248">#11248</a>: Apply <code class="notranslate">background-color: #fff;</code> to <code class="notranslate">select</code>s in print styles to fix Chrome bug</li> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/291a23aa4fc62e7593d4471af2b438aa1017a86a/hovercard" href="https://github.com/twbs/bootstrap/commit/291a23aa4fc62e7593d4471af2b438aa1017a86a"><tt>291a23a</tt></a>: Audited Customizer variables section and rearranged content</li> </ul> <h3 dir="auto">Deprecated</h3> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18329888" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/9963" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/9963/hovercard" href="https://github.com/twbs/bootstrap/pull/9963">#9963</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19304236" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10567" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10567/hovercard" href="https://github.com/twbs/bootstrap/pull/10567">#10567</a>: Deprecate <code class="notranslate">@screen-*</code> classes for <code class="notranslate">@screen-*-min</code> to better match the <code class="notranslate">@screen-*-max</code> variables and provide more context to their actual uses.</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18375088" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10005" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10005/hovercard" href="https://github.com/twbs/bootstrap/pull/10005">#10005</a>: Finish removing uses of <code class="notranslate">@screen-{device}</code> variables by deprecating them for <code class="notranslate">@screen-*-min</code> wherever possible.</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18501881" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10100" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10100/hovercard" href="https://github.com/twbs/bootstrap/pull/10100">#10100</a>: Deprecate <code class="notranslate">.hide-text</code> mixin for <code class="notranslate">.text-hide</code>. This matches our class-mixin strategy elsewhere (e.g., <code class="notranslate">.clearfix</code>) and ensures the class and mixin use the same name to avoid confusion.</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18512345" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10125" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10125/hovercard" href="https://github.com/twbs/bootstrap/pull/10125">#10125</a>: Deprecate inconsistent container variables for new <code class="notranslate">@container-{screen-size}</code> variables (e.g., use <code class="notranslate">@container-sm</code> instead of <code class="notranslate">@container-tablet</code>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19933816" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10769" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/10769/hovercard" href="https://github.com/twbs/bootstrap/pull/10769">#10769</a>: Deprecate <code class="notranslate">.hide</code> for <code class="notranslate">.hidden</code> so we don't duplicate functionality.</li> </ul> <p dir="auto">For a complete list of changes, see the <a href="https://github.com/twbs/bootstrap/issues?milestone=22&amp;page=1&amp;state=closed">3.0.1 milestone</a>.</p>
0
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <ul dir="auto"> <li>shardingsphere-jdbc-core-spring-boot-starter:5.0.0-beta</li> <li>mybatis-plus-boot-starter:3.4.3.1</li> </ul> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">only use ShardingSphere-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">The SQL exception information can be obtained.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Failed to obtain the SQL exception information.</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <ol dir="auto"> <li>The database field 'status' set to mandatory.</li> <li>use mybatis-plus provide the save function to save the entity not set status value.</li> <li>can print insert log without exception,but don't success to save the data.</li> </ol>
<h2 dir="auto">Bug Report</h2> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">5.1.0</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-Proxy</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">transaction rollback(proxy-db) when connection ( application-proxy) is closed</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">transaction no rollback(proxy-db) when connection ( application-proxy) is closed</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20919316/176368125-9b7c3595-f0f1-4534-bdcb-ff44acbcc4de.png"><img src="https://user-images.githubusercontent.com/20919316/176368125-9b7c3595-f0f1-4534-bdcb-ff44acbcc4de.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">When the above figure is executed to step 4-6, the disconnection of the upstream connection triggers the channelInactive method of Netty. At this time, the resources in the JDBCBackendConnection are still empty. Because step 7 has not been started, the subsequent step 7 is executed after the resources are cleaned up, and the subsequent connection will remain there.</p> <p dir="auto">JDBCBackendConnection Whether to add a new status to control the addition of connections?</p>
0
<p dir="auto">I'd like to have a type for a function which takes in zero or more parameters, and then use the type for the parameters, e.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Note: the syntax below of course doesn't do what I'm looking for, something like (params: ...args: T) would be closer let f = (params: T) =&gt; (params2: T) =&gt; 0; // these should be legal: f(5)(3); f(&quot;foo&quot;)(&quot;bar&quot;); f(5, &quot;foo&quot;)(3, &quot;bar&quot;); // these should be illegal f(5)(&quot;bar&quot;); f(&quot;foo&quot;)(3); f(5, 3)(&quot;foo&quot;, &quot;bar&quot;);"><pre class="notranslate"><code class="notranslate">// Note: the syntax below of course doesn't do what I'm looking for, something like (params: ...args: T) would be closer let f = (params: T) =&gt; (params2: T) =&gt; 0; // these should be legal: f(5)(3); f("foo")("bar"); f(5, "foo")(3, "bar"); // these should be illegal f(5)("bar"); f("foo")(3); f(5, 3)("foo", "bar"); </code></pre></div> <p dir="auto">This is useful in e.g. typing the spread function here:<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/DefinitelyTyped/DefinitelyTyped/commit/3eb67c9e8258d2894f728016a427b963a94f22ce/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/commit/3eb67c9e8258d2894f728016a427b963a94f22ce">DefinitelyTyped/DefinitelyTyped@<tt>3eb67c9</tt></a></p> <p dir="auto">I need to use the <code class="notranslate">...args: any[]</code>, which is not quite what I'm looking for.</p> <p dir="auto">In essence, the type I want to use is <code class="notranslate">[A?, B?, C?, ...]</code>, or maybe something like <code class="notranslate">Params&lt;T&gt;</code> if such an interface would exist.</p>
<p dir="auto">We can kind of already do this for functions by defining several overloads, but there is no corresponding mechanism for overloaded classes or interfaces. A typical use case would be defining a registry for callbacks which accept a number of parameters. Something like the following with loosely proposed variadic type syntax:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface IDispatcher&lt;...ArgTypes&gt; { add(callback: (...args: ArgTypes) =&gt; void): void { // store the callback } dispatch(...args: ArgTypes): void { // invoke the callbacks } } function createDispatcher&lt;...ArgTypes&gt;(): IDispatcher&lt;...ArgTypes&gt; { // create a concrete instance } var d = createDispatcher&lt;number, string&gt;();"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">IDispatcher</span><span class="pl-c1">&lt;</span>...<span class="pl-smi">ArgTypes</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">add</span><span class="pl-kos">(</span><span class="pl-s1">callback</span>: <span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">ArgTypes</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-kos">{</span> <span class="pl-c">// store the callback</span> <span class="pl-kos">}</span> <span class="pl-en">dispatch</span><span class="pl-kos">(</span>...<span class="pl-s1">args</span>: <span class="pl-smi">ArgTypes</span><span class="pl-kos">)</span>: <span class="pl-k">void</span> <span class="pl-kos">{</span> <span class="pl-c">// invoke the callbacks</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">createDispatcher</span><span class="pl-c1">&lt;</span>...<span class="pl-smi">ArgTypes</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">IDispatcher</span><span class="pl-kos">&lt;</span>...<span class="pl-smi">ArgTypes</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// create a concrete instance</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-en">createDispatcher</span><span class="pl-kos">&lt;</span><span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-smi">string</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
1
<pre class="notranslate">What steps will reproduce the problem? run tests What do you see instead? WARNING: DATA RACE Read by goroutine 17: go/token.(*FileSet).file() /build/go.tip/go/src/pkg/go/token/position.go:371 +0x38 go/token.(*FileSet).Position() /build/go.tip/go/src/pkg/go/token/position.go:403 +0x70 go/printer.(*printer).posFor() /build/go.tip/go/src/pkg/go/printer/printer.go:142 +0x58 go/printer.(*printer).print() /build/go.tip/go/src/pkg/go/printer/printer.go:894 +0xa70 go/printer.(*printer).expr1() /build/go.tip/go/src/pkg/go/printer/nodes.go:805 +0x1564 go/printer.(*printer).expr0() /build/go.tip/go/src/pkg/go/printer/nodes.go:878 +0x59 go/printer.(*printer).exprList() /build/go.tip/go/src/pkg/go/printer/nodes.go:243 +0x10b7 go/printer.(*printer).stmt() /build/go.tip/go/src/pkg/go/printer/nodes.go:1083 +0x2593 go/printer.(*printer).stmtList() /build/go.tip/go/src/pkg/go/printer/nodes.go:908 +0x29c go/printer.(*printer).block() /build/go.tip/go/src/pkg/go/printer/nodes.go:921 +0x132 go/printer.(*printer).adjBlock() /build/go.tip/go/src/pkg/go/printer/nodes.go:1483 +0x692 go/printer.(*printer).funcDecl() /build/go.tip/go/src/pkg/go/printer/nodes.go:1507 +0x38d go/printer.(*printer).decl() /build/go.tip/go/src/pkg/go/printer/nodes.go:1517 +0xb2 go/printer.(*printer).declList() /build/go.tip/go/src/pkg/go/printer/nodes.go:1558 +0x1c5 go/printer.(*printer).file() /build/go.tip/go/src/pkg/go/printer/nodes.go:1566 +0x1ef go/printer.(*printer).printNode() /build/go.tip/go/src/pkg/go/printer/printer.go:1057 +0x8f8 go/printer.(*Config).fprint() /build/go.tip/go/src/pkg/go/printer/printer.go:1196 +0xbe go/printer.(*Config).Fprint() /build/go.tip/go/src/pkg/go/printer/printer.go:1254 +0x89 go/printer.format() /build/go.tip/go/src/pkg/go/printer/printer_test.go:62 +0x3fc go/printer.runcheck() /build/go.tip/go/src/pkg/go/printer/printer_test.go:154 +0x6e7 go/printer.func·005() /build/go.tip/go/src/pkg/go/printer/printer_test.go:172 +0x99 Previous write by goroutine 19: go/token.(*FileSet).file() /build/go.tip/go/src/pkg/go/token/position.go:379 +0x17b go/token.(*FileSet).Position() /build/go.tip/go/src/pkg/go/token/position.go:403 +0x70 go/printer.(*printer).posFor() /build/go.tip/go/src/pkg/go/printer/printer.go:142 +0x58 go/printer.(*printer).nextComment() /build/go.tip/go/src/pkg/go/printer/printer.go:121 +0x246 go/printer.(*printer).printNode() /build/go.tip/go/src/pkg/go/printer/printer.go:1028 +0x4c0 go/printer.(*Config).fprint() /build/go.tip/go/src/pkg/go/printer/printer.go:1196 +0xbe go/printer.(*Config).Fprint() /build/go.tip/go/src/pkg/go/printer/printer.go:1254 +0x89 go/printer.format() /build/go.tip/go/src/pkg/go/printer/printer_test.go:62 +0x3fc go/printer.runcheck() /build/go.tip/go/src/pkg/go/printer/printer_test.go:123 +0x19e go/printer.func·005() /build/go.tip/go/src/pkg/go/printer/printer_test.go:172 +0x99 Goroutine 17 (running) created at: go/printer.check() /build/go.tip/go/src/pkg/go/printer/printer_test.go:174 +0x1a2 go/printer.TestFiles() /build/go.tip/go/src/pkg/go/printer/printer_test.go:209 +0x294 testing.tRunner() /build/go.tip/go/src/pkg/testing/testing.go:301 +0xe8 Goroutine 19 (running) created at: go/printer.check() /build/go.tip/go/src/pkg/go/printer/printer_test.go:174 +0x1a2 go/printer.TestFiles() /build/go.tip/go/src/pkg/go/printer/printer_test.go:209 +0x294 testing.tRunner() /build/go.tip/go/src/pkg/testing/testing.go:301 +0xe8 ================== --- FAIL: TestFiles-123 (30.73 seconds) printer_test.go:180: testdata/expressions.input: running too slowly printer_test.go:180: testdata/expressions.input: running too slowly FAIL FAIL go/printer 68.221s 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') 3fe40a41018d</pre>
<pre class="notranslate">As per Rob and Andrew's request: <a href="https://groups.google.com/forum/#" rel="nofollow">https://groups.google.com/forum/#</a>!topic/golang-nuts/Q7lwBDPmQh4</pre>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1528" rel="nofollow">http://projects.scipy.org/numpy/ticket/1528</a> on 2010-06-29 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sandrotosi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sandrotosi">@sandrotosi</a>, assigned to unknown.</em></p> <p dir="auto">Hello,<br> I'm here forwarding the bug filed in the Debian BTS at <a href="http://bugs.debian.org/564774" rel="nofollow">http://bugs.debian.org/564774</a> .</p> <p dir="auto">The bug refers to 1.3.0 but I'm able to replicate it with 1.4.1 too. The key part is (for the rest, please read the link above):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.savez('test.npz', N.ones((10000, 1000))) &gt;&gt;&gt; ll -h *.npz -rw-r--r-- 1 michael michael 77M 2010-01-11 15:52 test.npz &gt;&gt;&gt; !gzip test.npz &gt;&gt;&gt; ll -h test*.gz -rw-r--r-- 1 michael michael 114K 2010-01-11 15:52 test.npz.gz ^^^^"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.savez('test.npz', N.ones((10000, 1000))) &gt;&gt;&gt; ll -h *.npz -rw-r--r-- 1 michael michael 77M 2010-01-11 15:52 test.npz &gt;&gt;&gt; !gzip test.npz &gt;&gt;&gt; ll -h test*.gz -rw-r--r-- 1 michael michael 114K 2010-01-11 15:52 test.npz.gz ^^^^ </code></pre></div> <p dir="auto">Thanks for your support,<br> Sandro</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1527" rel="nofollow">http://projects.scipy.org/numpy/ticket/1527</a> on 2010-06-29 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sandrotosi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sandrotosi">@sandrotosi</a>, assigned to unknown.</em></p> <p dir="auto">Hello,<br> I'm here forwarding the bug filed in the Debian BTS at <a href="http://bugs.debian.org/564774" rel="nofollow">http://bugs.debian.org/564774</a> .</p> <p dir="auto">The bug refers to 1.3.0 but I'm able to replicate it with 1.4.1 too. The key part is (for the rest, please read the link above):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.savez('test.npz', N.ones((10000, 1000))) &gt;&gt;&gt; ll -h *.npz -rw-r--r-- 1 michael michael 77M 2010-01-11 15:52 test.npz &gt;&gt;&gt; !gzip test.npz &gt;&gt;&gt; ll -h test*.gz -rw-r--r-- 1 michael michael 114K 2010-01-11 15:52 test.npz.gz ^^^^"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; np.savez('test.npz', N.ones((10000, 1000))) &gt;&gt;&gt; ll -h *.npz -rw-r--r-- 1 michael michael 77M 2010-01-11 15:52 test.npz &gt;&gt;&gt; !gzip test.npz &gt;&gt;&gt; ll -h test*.gz -rw-r--r-- 1 michael michael 114K 2010-01-11 15:52 test.npz.gz ^^^^ </code></pre></div> <p dir="auto">Thanks for your support,<br> Sandro</p>
1
<p dir="auto"><strong>feature</strong></p> <p dir="auto"><strong>What is the current behavior?</strong><br> On the new developer tool you are unable to see what property type the value. You used to be able to see if the value was a string or int because of the quotation marks (for example id: "1" (string) or id: 1 (int)). Both string and int are shown without quotes.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> I want to see if the value inside the prop or state is an string or integer by using quotation marks on the value.<br> <code class="notranslate">id: "1"</code></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><br> I'm using version:<br> 4.0.5 (8/19/2019)</p> <p dir="auto">Did this work in previous versions of React?<br> Yes, 3.*</p>
<p dir="auto">Follow up to a discussion thread on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18562843" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/294" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/294/hovercard" href="https://github.com/facebook/react/pull/294">#294</a> and a Messenger chat with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gaearon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaearon">@gaearon</a>.</p> <p dir="auto">The current UI for editing props/state/hooks values has a couple of shortcomings:</p> <ul dir="auto"> <li>strings/numeric values are sometimes of an unclear type. (DevTools uses the correct <code class="notranslate">&lt;input type&gt;</code> but this is subtle. Showing e.g. quotation marks around strings could be more helpful.</li> <li><code class="notranslate">null</code> initial values can only become strings at the moment. (DevTools does not attempt to parse numeric or boolean values and change the input type. If it did, we would probably also need to enable a way for you to opt back out of that input type somehow in case it was incorrect.)</li> <li>fields that maybe support multiple types (e.g. string | number) are locked into a single type (whichever type they happen to be initially).</li> </ul> <p dir="auto">Additional quirks that might be worth ironing out:</p> <ul dir="auto"> <li>Non-editable strings are currently wrapped in quotation marks but editable ones aren't.</li> </ul> <hr> <p dir="auto">Originally reported via <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="455790472" data-permission-text="Title is private" data-url="https://github.com/bvaughn/react-devtools-experimental/issues/321" data-hovercard-type="issue" data-hovercard-url="/bvaughn/react-devtools-experimental/issues/321/hovercard" href="https://github.com/bvaughn/react-devtools-experimental/issues/321">bvaughn/react-devtools-experimental#321</a></p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows 10 188995 Latest nightly terminal build as-of 10/6 "><pre lang="none" class="notranslate"><code class="notranslate">Windows 10 188995 Latest nightly terminal build as-of 10/6 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Install PowerShell Core as a .NET Core global tool. <code class="notranslate">dotnet tool install -g powershell</code>. Confirm it works when you use <code class="notranslate">pwsh.exe</code>.</p> <p dir="auto">Create a new PowerShell Core profile and set "source": to "Windows.Terminal.PowershellCore". And open a new shell. Doesn't work. Commenting out <code class="notranslate">source</code> and using <code class="notranslate">"commandLine": "pwsh.exe"</code> works, as it is in the path.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">PowerShell Core should load.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Profile is skipped or doesn't load.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.239] Windows Terminal version : 0.2.1831 Any other software? Nope. "><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.239] Windows Terminal version : 0.2.1831 Any other software? Nope. </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Make tabs more then current terminal width. (tab name should be over the terminal topbar.)</li> <li>Scroll topbar Using Mouse Wheel.</li> <li>Tab does not appear. but topbar size has increased.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">topbar size has increase, and Tab have to appear.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">topbar size has increased, but Tab does not appear.</p> <p dir="auto">if close one tab, or increase window size. now appear hide tab.</p> <p dir="auto">On Two tab added, Topbar size has increased, but Tab does not appear.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21333789/61039192-41f8dc00-a409-11e9-8fee-fdc5df0a529d.png"><img src="https://user-images.githubusercontent.com/21333789/61039192-41f8dc00-a409-11e9-8fee-fdc5df0a529d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">increase window size, then Tab apeear.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21333789/61039262-60f76e00-a409-11e9-851b-9c84c7fbf400.png"><img src="https://user-images.githubusercontent.com/21333789/61039262-60f76e00-a409-11e9-851b-9c84c7fbf400.png" alt="image" style="max-width: 100%;"></a></p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.6.2951.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.6.2951.0 </code></pre></div> <h1 dir="auto">Epic</h1> <p dir="auto">Scrollback handling should be just like in VTE because that's the best (ahem ahem) <g-emoji class="g-emoji" alias="rofl" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f923.png">🤣</g-emoji></p> <h1 dir="auto">Steps to reproduce 1</h1> <ul dir="auto"> <li> <p dir="auto"><code class="notranslate">ssh</code> to a Linux box, and execute these:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="seq -f 'normal %.f' 100 echo -ne '\e[?1049h' # switch to alt screen seq -f 'alt %.f' 100 echo -ne '\e[?1049l' # switch back to normal screen"><pre class="notranslate"><code class="notranslate">seq -f 'normal %.f' 100 echo -ne '\e[?1049h' # switch to alt screen seq -f 'alt %.f' 100 echo -ne '\e[?1049l' # switch back to normal screen </code></pre></div> </li> <li> <p dir="auto">scroll back and examine the contents</p> </li> </ul> <h1 dir="auto">Expected behavior 1</h1> <p dir="auto">Outputs of these two <code class="notranslate">seq</code>s shouldn't interleave</p> <h1 dir="auto">Actual behavior 1</h1> <p dir="auto">Output consists of <code class="notranslate">normal 1</code> to <code class="notranslate">normal 74</code> (exact number depends on the window height), followed by <code class="notranslate">alt 1</code> to <code class="notranslate">alt 74</code>, and finally <code class="notranslate">normal 75</code> to <code class="notranslate">normal 100</code>. (<code class="notranslate">alt 75</code> onwards are gone.)</p> <h1 dir="auto">Steps to reproduce 2</h1> <ul dir="auto"> <li><code class="notranslate">ssh</code> to a Linux box.</li> <li>produce a few pages of output</li> <li>start a fullscreen app such as <code class="notranslate">mc</code></li> <li>resize the window in various ways (maybe even back and forth to smaller and then bigger)</li> <li>quit <code class="notranslate">mc</code></li> <li>examine the output, including the scrollback</li> </ul> <h1 dir="auto">Expected behavior 2</h1> <p dir="auto">This should look okay (see below).</p> <h1 dir="auto">Actual behavior 2</h1> <p dir="auto">The contents seem quite garbled. Most of the time you'll see remains of <code class="notranslate">mc</code>'s user interface in the scrollback buffer; sometimes even on the normal screen (this latter is harder to reproduce, and perhaps only happens with solid background colors).</p> <hr> <h1 dir="auto">VTE rocks</h1> <p dir="auto">The way this works amazingly in gnome-terminal is:</p> <p dir="auto">The alternate screen is pretty much only used by fullscreen apps that control the entire UI and repaint on window resize. Therefore it's unrelated to the normal screen and the scrollback. Data never travels between the (normal screen + scrollback) combo and the alternate screen. The scrollback buffer belongs to the normal screen only. Everything scrolled out from the alternate screen is lost for good.</p> <p dir="auto">On resize, the (normal screen + scrollback) is resized as a single unit, for the resizing operation it doesn't matter where the boundary is.</p> <p dir="auto">The (normal screen + scrollback) combo is resized the same way, regardless of whether it's the active one or the alternate screen is shown. Stress-test this: produce output on the normal screen, switch to the alternate one (e.g. <code class="notranslate">mc</code>), resize, quit <code class="notranslate">mc</code>. The normal screen's contents will be updated to the new width just as if you haven't switched to the alternate screen.</p> <p dir="auto">There's plenty of further tiny details to this story, e.g. how to vertically position the contents, some of which are documented in <a href="https://gitlab.gnome.org/GNOME/vte/blob/master/doc/rewrap.txt" rel="nofollow">VTE's doc/rewrap.txt</a>.</p> <p dir="auto">Of course there's no specification anywhere that all this has to behave like this. It's just what I believe makes the most sense. Obviously my opinion is quite biased since this was my first big contribution to VTE. :) Luckily I only had to do the rewrapping; the separation of the (normal screen + scrollback) vs. alternate screen was already as desired.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.295] Windows Terminal version : 0.4.2382.0 Input method: the system defaut microsoft pinyin input method."><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.295] Windows Terminal version : 0.4.2382.0 Input method: the system defaut microsoft pinyin input method. </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">always.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">the input method can switch to chinese mode, and can type chinese characters.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">the input method is always in english mode, and cannot type chinese characters .</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=stevestorey" rel="nofollow">Steve Storey</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8889?redirect=false" rel="nofollow">SPR-8889</a></strong> and commented</p> <p dir="auto">Having put RC2 to work and testing out the fix for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398115054" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13418" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13418/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13418">#13418</a> I now realise there's another problem. When the job I configured fires, I get the following exception2011-11-30 23:30:00,073 ERROR [JobRunShell] Job DEFAULT.job.reload.profiles threw an unhandled Exception:<br> java.lang.IncompatibleClassChangeError: Found interface org.quartz.JobExecutionContext, but class was expected<br> at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)<br> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)<br> at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)<br> 2011-11-30 23:30:00,075 ERROR [ErrorLogger] Job (DEFAULT.job.reload.profiles threw an exception.<br> org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.IncompatibleClassChangeError: Found interface org.quartz.JobExecutionContext, but class was expected]<br> at org.quartz.core.JobRunShell.run(JobRunShell.java:224)<br> at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)<br> Caused by: java.lang.IncompatibleClassChangeError: Found interface org.quartz.JobExecutionContext, but class was expected<br> at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)<br> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)<br> ... 1 more</p> <p dir="auto">Configuration for the job is:&lt;bean id="profileService.schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&gt;<br> &lt;property name="triggers"&gt;<br> &lt;list&gt;<br> &lt;bean class="org.quartz.impl.triggers.CronTriggerImpl"&gt;<br> &lt;property name="name" value="job.reload.profiles.trigger" /&gt;<br> &lt;property name="jobName" value="job.reload.profiles"/&gt;<br> &lt;property name="jobGroup" value="DEFAULT" /&gt;</p> <p dir="auto">&lt;!-- run every 10 mins --&gt;<br> &lt;property name="cronExpression" value="0 0,10,20,30,40,50 * * * ?" /&gt;<br> &lt;/bean&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;property name="jobDetails"&gt;<br> &lt;list&gt;<br> &lt;bean class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt;<br> &lt;property name="targetObject" ref="profileService"/&gt;<br> &lt;property name="targetMethod" value="reloadProfiles"/&gt;<br> &lt;property name="concurrent" value="false"/&gt;<br> &lt;property name="name" value="job.reload.profiles"/&gt;<br> &lt;property name="group" value="DEFAULT" /&gt;<br> &lt;/bean&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> I assume that this is a build issue for the Spring framework? Will there need to be a separate package and so on for Quartz 2, like Hibernate4</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 RC2</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/19158/MethodInvokingJobDetailFactoryBean.java" rel="nofollow">MethodInvokingJobDetailFactoryBean.java</a> (<em>11.56 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="398115838" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13528" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13528/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13528">#13528</a> QuartzJobBean throws IncompatibleClassChangeError when using Quartz 2.x (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/4831ca27d2a4e67b1811244049ea19140538f29a/hovercard" href="https://github.com/spring-projects/spring-framework/commit/4831ca27d2a4e67b1811244049ea19140538f29a"><tt>4831ca2</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/9506f8d883d4d2543784e459663e041c2afd2dfa/hovercard" href="https://github.com/spring-projects/spring-framework/commit/9506f8d883d4d2543784e459663e041c2afd2dfa"><tt>9506f8d</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/2b122816afa141c291fd269225366913d9b5d096/hovercard" href="https://github.com/spring-projects/spring-framework/commit/2b122816afa141c291fd269225366913d9b5d096"><tt>2b12281</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/00ff8fa2ccbaa4f689a74cc65a8bd20eda877484/hovercard" href="https://github.com/spring-projects/spring-framework/commit/00ff8fa2ccbaa4f689a74cc65a8bd20eda877484"><tt>00ff8fa</tt></a></p> <p dir="auto">1 votes, 4 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tomdewire" rel="nofollow">Tom DeWire</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3472?redirect=false" rel="nofollow">SPR-3472</a></strong> and commented</p> <p dir="auto">Repeated from my original forum post: (<a href="http://forum.springframework.org/showthread.php?t=38619" rel="nofollow">http://forum.springframework.org/showthread.php?t=38619</a>)</p> <p dir="auto">We have two pieces of advice that we would like to execute "around" a service method. The service method takes a single parameter.</p> <p dir="auto">The first piece of advice (AdviceA in this example) wants to capture all of the methods in the class. It does not care about the parameters passed into those methods.</p> <p dir="auto">The second piece of advice (AdviceB in this example) wants to capture a specific method. It does care about the parameter. It wants to record this transaction into the logs if certain criteria are met.</p> <p dir="auto">This was all working fine in spring 2.0.2. We recently attempted to upgrade to 2.0.5, and we ran into some failures. We backed off the versions and determined the root cause appears to be a change introduced with 2.0.3.</p> <p dir="auto">Specifically, we're receive this error immediately after calling proceed() from the first piece of advice:</p> <p dir="auto">Exception in thread "main" java.lang.IllegalStateException: Required to bind 2 arguments, but only bound 1 (JoinPointMatch was NOT bound in invocation)</p> <p dir="auto">It seems worth noting that either of these pieces of advice will execute just fine if they are allowed to execute alone. It is only when <strong>both</strong> pieces of advice are applied that we run into this issue.</p> <p dir="auto">I've managed to replicate this behavior in a very small test. I'll attempt to attach that to this bug (if i'm allowed to do that sort of thing).</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.3, 2.0.4, 2.0.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/12591/aop-test.zip" rel="nofollow">aop-test.zip</a> (<em>12.96 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/12595/aop-test-dependencies-corrected.zip" rel="nofollow">aop-test-dependencies-corrected.zip</a> (<em>13.13 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="398078267" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8202" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8202/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8202">#8202</a> around advice does not bind parameters if another advise is active on same join point (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<p dir="auto">I have a Bootstrap feature-request: Can you make the navbar in mobile to be displayed in the left and the navbar button also in the left?</p>
<p dir="auto">Please make lateral the navbar when it collapses on mobile devices such as foundation or purecss.<br> Tks</p>
1
<p dir="auto">This came up while trying to de-duplicate some DataFrame vs Series arithmetic logic in core.ops.</p>
<p dir="auto">I often work with pandas using big dataframes and series with multi-index or multi-column and I use the EMACS shell.</p> <p dir="auto">Often when I write <code class="notranslate">df.index</code> the output is so big that almost make my computer crash (and it is a powerful pc).</p> <p dir="auto">As when you output a dataframe <code class="notranslate">df</code> the output is truncated to the first and last <code class="notranslate">n</code> columns, also indices and columns should be truncated when printed to screen.</p>
0
<p dir="auto">I am currently unable to use <code class="notranslate">histplot</code> as it appears that the <code class="notranslate">pandas</code> option <code class="notranslate">use_inf_as_null</code> has been removed. Error log below.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File ~/miniconda3/envs/tf/lib/python3.9/site-packages/seaborn/distributions.py:1438, in histplot(data, x, y, hue, weights, stat, bins, binwidth, binrange, discrete, cumulative, common_bins, common_norm, multiple, element, fill, shrink, kde, kde_kws, line_kws, thresh, pthresh, pmax, cbar, cbar_ax, cbar_kws, palette, hue_order, hue_norm, color, log_scale, legend, ax, **kwargs) 1427 estimate_kws = dict( 1428 stat=stat, 1429 bins=bins, (...) 1433 cumulative=cumulative, 1434 ) 1436 if p.univariate: -&gt; 1438 p.plot_univariate_histogram( 1439 multiple=multiple, 1440 element=element, 1441 fill=fill, 1442 shrink=shrink, 1443 common_norm=common_norm, 1444 common_bins=common_bins, 1445 kde=kde, 1446 kde_kws=kde_kws, 1447 color=color, 1448 legend=legend, 1449 estimate_kws=estimate_kws, 1450 line_kws=line_kws, 1451 **kwargs, 1452 ) 1454 else: 1456 p.plot_bivariate_histogram( 1457 common_bins=common_bins, 1458 common_norm=common_norm, (...) 1468 **kwargs, 1469 ) File ~/miniconda3/envs/tf/lib/python3.9/site-packages/seaborn/distributions.py:431, in _DistributionPlotter.plot_univariate_histogram(self, multiple, element, fill, common_norm, common_bins, shrink, kde, kde_kws, color, legend, line_kws, estimate_kws, **plot_kws) 428 histograms = {} 430 # Do pre-compute housekeeping related to multiple groups --&gt; 431 all_data = self.comp_data.dropna() 432 all_weights = all_data.get(&quot;weights&quot;, None) 434 if set(self.variables) - {&quot;x&quot;, &quot;y&quot;}: # Check if we'll have multiple histograms File ~/miniconda3/envs/tf/lib/python3.9/site-packages/seaborn/_oldcore.py:1119, in VectorPlotter.comp_data(self) 1117 grouped = self.plot_data[var].groupby(self.converters[var], sort=False) 1118 for converter, orig in grouped: -&gt; 1119 with pd.option_context('mode.use_inf_as_null', True): 1120 orig = orig.dropna() 1121 if var in self.var_levels: 1122 # TODO this should happen in some centralized location 1123 # it is similar to GH2419, but more complicated because 1124 # supporting `order` in categorical plots is tricky File ~/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/_config/config.py:441, in option_context.__enter__(self) 440 def __enter__(self) -&gt; None: --&gt; 441 self.undo = [(pat, _get_option(pat, silent=True)) for pat, val in self.ops] 443 for pat, val in self.ops: 444 _set_option(pat, val, silent=True) File ~/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/_config/config.py:441, in &lt;listcomp&gt;(.0) 440 def __enter__(self) -&gt; None: --&gt; 441 self.undo = [(pat, _get_option(pat, silent=True)) for pat, val in self.ops] 443 for pat, val in self.ops: 444 _set_option(pat, val, silent=True) File ~/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/_config/config.py:135, in _get_option(pat, silent) 134 def _get_option(pat: str, silent: bool = False) -&gt; Any: --&gt; 135 key = _get_single_key(pat, silent) 137 # walk the nested dict 138 root, k = _get_root(key) File ~/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/_config/config.py:121, in _get_single_key(pat, silent) 119 if not silent: 120 _warn_if_deprecated(pat) --&gt; 121 raise OptionError(f&quot;No such keys(s): {repr(pat)}&quot;) 122 if len(keys) &gt; 1: 123 raise OptionError(&quot;Pattern matched multiple keys&quot;) OptionError: &quot;No such keys(s): 'mode.use_inf_as_null'&quot;"><pre class="notranslate"><code class="notranslate">File ~/miniconda3/envs/tf/lib/python3.9/site-packages/seaborn/distributions.py:1438, in histplot(data, x, y, hue, weights, stat, bins, binwidth, binrange, discrete, cumulative, common_bins, common_norm, multiple, element, fill, shrink, kde, kde_kws, line_kws, thresh, pthresh, pmax, cbar, cbar_ax, cbar_kws, palette, hue_order, hue_norm, color, log_scale, legend, ax, **kwargs) 1427 estimate_kws = dict( 1428 stat=stat, 1429 bins=bins, (...) 1433 cumulative=cumulative, 1434 ) 1436 if p.univariate: -&gt; 1438 p.plot_univariate_histogram( 1439 multiple=multiple, 1440 element=element, 1441 fill=fill, 1442 shrink=shrink, 1443 common_norm=common_norm, 1444 common_bins=common_bins, 1445 kde=kde, 1446 kde_kws=kde_kws, 1447 color=color, 1448 legend=legend, 1449 estimate_kws=estimate_kws, 1450 line_kws=line_kws, 1451 **kwargs, 1452 ) 1454 else: 1456 p.plot_bivariate_histogram( 1457 common_bins=common_bins, 1458 common_norm=common_norm, (...) 1468 **kwargs, 1469 ) File ~/miniconda3/envs/tf/lib/python3.9/site-packages/seaborn/distributions.py:431, in _DistributionPlotter.plot_univariate_histogram(self, multiple, element, fill, common_norm, common_bins, shrink, kde, kde_kws, color, legend, line_kws, estimate_kws, **plot_kws) 428 histograms = {} 430 # Do pre-compute housekeeping related to multiple groups --&gt; 431 all_data = self.comp_data.dropna() 432 all_weights = all_data.get("weights", None) 434 if set(self.variables) - {"x", "y"}: # Check if we'll have multiple histograms File ~/miniconda3/envs/tf/lib/python3.9/site-packages/seaborn/_oldcore.py:1119, in VectorPlotter.comp_data(self) 1117 grouped = self.plot_data[var].groupby(self.converters[var], sort=False) 1118 for converter, orig in grouped: -&gt; 1119 with pd.option_context('mode.use_inf_as_null', True): 1120 orig = orig.dropna() 1121 if var in self.var_levels: 1122 # TODO this should happen in some centralized location 1123 # it is similar to GH2419, but more complicated because 1124 # supporting `order` in categorical plots is tricky File ~/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/_config/config.py:441, in option_context.__enter__(self) 440 def __enter__(self) -&gt; None: --&gt; 441 self.undo = [(pat, _get_option(pat, silent=True)) for pat, val in self.ops] 443 for pat, val in self.ops: 444 _set_option(pat, val, silent=True) File ~/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/_config/config.py:441, in &lt;listcomp&gt;(.0) 440 def __enter__(self) -&gt; None: --&gt; 441 self.undo = [(pat, _get_option(pat, silent=True)) for pat, val in self.ops] 443 for pat, val in self.ops: 444 _set_option(pat, val, silent=True) File ~/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/_config/config.py:135, in _get_option(pat, silent) 134 def _get_option(pat: str, silent: bool = False) -&gt; Any: --&gt; 135 key = _get_single_key(pat, silent) 137 # walk the nested dict 138 root, k = _get_root(key) File ~/miniconda3/envs/tf/lib/python3.9/site-packages/pandas/_config/config.py:121, in _get_single_key(pat, silent) 119 if not silent: 120 _warn_if_deprecated(pat) --&gt; 121 raise OptionError(f"No such keys(s): {repr(pat)}") 122 if len(keys) &gt; 1: 123 raise OptionError("Pattern matched multiple keys") OptionError: "No such keys(s): 'mode.use_inf_as_null'" </code></pre></div>
<p dir="auto">So, I've been able to find how it was doable before (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44753009" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/313" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/313/hovercard" href="https://github.com/mwaskom/seaborn/issues/313">#313</a>), but it seems it is no longer possible ...</p> <p dir="auto">What is the way to work around this at the moment (if there is one)?<br> I have not been able to find a solution to this ....</p> <p dir="auto">Thanks a lot</p>
0
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:</p> <ol dir="auto"> <li>You might have mismatching versions of React and the renderer (such as React DOM)</li> <li>You might be breaking the Rules of Hooks</li> <li>You might have more than one copy of React in the same app<br> See <a href="https://fb.me/react-invalid-hook-call" rel="nofollow">https://fb.me/react-invalid-hook-call</a> for tips about how to debug and fix this problem.</li> </ol> <h2 dir="auto">To Reproduce</h2> <details> <summary>Details</summary> So the error points on this code <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" static async getInitialProps (ctx) { const sheet = new ServerStyleSheet() const originalRenderPage = ctx.renderPage const { req: { locale, localeDataScript } } = ctx try { ctx.renderPage = () =&gt; originalRenderPage({ enhanceApp: App =&gt; props =&gt; sheet.collectStyles(&lt;App {...props} /&gt;) }) const initialProps = await Document.getInitialProps(ctx) return { ...initialProps, userAgent: ctx.req.headers['user-agent'], helmet: Helmet.renderStatic(), locale, localeDataScript, styles: ( &lt;&gt; {initialProps.styles} {sheet.getStyleElement()} &lt;/&gt; ) } } finally { sheet.seal() } }"><pre class="notranslate"><code class="notranslate"> static async getInitialProps (ctx) { const sheet = new ServerStyleSheet() const originalRenderPage = ctx.renderPage const { req: { locale, localeDataScript } } = ctx try { ctx.renderPage = () =&gt; originalRenderPage({ enhanceApp: App =&gt; props =&gt; sheet.collectStyles(&lt;App {...props} /&gt;) }) const initialProps = await Document.getInitialProps(ctx) return { ...initialProps, userAgent: ctx.req.headers['user-agent'], helmet: Helmet.renderStatic(), locale, localeDataScript, styles: ( &lt;&gt; {initialProps.styles} {sheet.getStyleElement()} &lt;/&gt; ) } } finally { sheet.seal() } } </code></pre></div> </details> <h2 dir="auto">Screenshots</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15810023/59897059-8a7e3480-941d-11e9-942f-b082ce1ee766.png"><img src="https://user-images.githubusercontent.com/15810023/59897059-8a7e3480-941d-11e9-942f-b082ce1ee766.png" alt="Screen Shot 2019-06-21 at 12 10 08 PM" style="max-width: 100%;"></a></p> <h2 dir="auto">Additional context</h2> <p dir="auto">I suspect that it treats the <code class="notranslate">ctx.renderPage = () =&gt; </code> as a react hooks.</p>
<p dir="auto">We are working on a Very large project with several dependencies, when building the project we get a <code class="notranslate">FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory</code>.</p> <ul dir="auto"> <li>[ x] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">When running <code class="notranslate">yarn build</code> I should get a working production bundle</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When running <code class="notranslate">yarn build</code> I get <code class="notranslate">FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory</code>.</p> <p dir="auto">After several hours of debugging I found out that the origin of this problem comes from <a href="https://github.com/zeit/next.js/blob/canary/server/build/index.js#L72">https://github.com/zeit/next.js/blob/canary/server/build/index.js#L72</a><br> more exactly the <code class="notranslate">JSON.stringify</code> function, given that our stats file is 260MB, node can't handle it.</p> <p dir="auto">I was able to patch it using streams and make it work ok, I'll make a PR for this tomorrow.</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>4.1.4</td> </tr> <tr> <td>node</td> <td>8.9.1</td> </tr> <tr> <td>OS</td> <td>Ubuntu 16.04</td> </tr> <tr> <td>browser</td> <td>N/A</td> </tr> </tbody> </table>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: *</li> <li>Operating System version: *</li> <li>Java version: *</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">Run it in different system having multiple network adapters.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">Stably successful.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Fail sometimes.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7</li> <li>Operating System version: win64</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ConsistentHashSelector(List&lt;Invoker&lt;T&gt;&gt; invokers, String methodName, int identityHashCode) { this.virtualInvokers = new TreeMap&lt;Long, Invoker&lt;T&gt;&gt;(); this.identityHashCode = identityHashCode; URL url = invokers.get(0).getUrl(); this.replicaNumber = url.getMethodParameter(methodName, HASH_NODES, 160); String[] index = COMMA_SPLIT_PATTERN.split(url.getMethodParameter(methodName, HASH_ARGUMENTS, &quot;0&quot;)); argumentIndex = new int[index.length]; for (int i = 0; i &lt; index.length; i++) { argumentIndex[i] = Integer.parseInt(index[i]); } for (Invoker&lt;T&gt; invoker : invokers) { String address = invoker.getUrl().getAddress(); for (int i = 0; i &lt; replicaNumber / 4; i++) { //这里生成的16字节摘要为啥要分在四个节点 byte[] digest = md5(address + i); for (int h = 0; h &lt; 4; h++) { long m = hash(digest, h); virtualInvokers.put(m, invoker); } } } }"><pre class="notranslate"><code class="notranslate"> ConsistentHashSelector(List&lt;Invoker&lt;T&gt;&gt; invokers, String methodName, int identityHashCode) { this.virtualInvokers = new TreeMap&lt;Long, Invoker&lt;T&gt;&gt;(); this.identityHashCode = identityHashCode; URL url = invokers.get(0).getUrl(); this.replicaNumber = url.getMethodParameter(methodName, HASH_NODES, 160); String[] index = COMMA_SPLIT_PATTERN.split(url.getMethodParameter(methodName, HASH_ARGUMENTS, "0")); argumentIndex = new int[index.length]; for (int i = 0; i &lt; index.length; i++) { argumentIndex[i] = Integer.parseInt(index[i]); } for (Invoker&lt;T&gt; invoker : invokers) { String address = invoker.getUrl().getAddress(); for (int i = 0; i &lt; replicaNumber / 4; i++) { //这里生成的16字节摘要为啥要分在四个节点 byte[] digest = md5(address + i); for (int h = 0; h &lt; 4; h++) { long m = hash(digest, h); virtualInvokers.put(m, invoker); } } } } </code></pre></div>
0
<p dir="auto">I was doing some testing using unsigned and signed integers with NumPy 1.20.3, and found out that when you multiply them with each other, it results in a 64-bit float.<br> Same goes for addition/subtraction.<br> As far as I know, this was not the case for earlier NumPy versions (as currently many parts of my code no longer work that previously worked just fine with this).<br> To me, it sounds a bit strange that multiplying two integers with each other results in a float.</p> <h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np print(type(np.uint(1)*1)) &gt;&gt;&gt; &lt;class 'numpy.float64'&gt;"><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-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">np</span>.<span class="pl-en">uint</span>(<span class="pl-c1">1</span>)<span class="pl-c1">*</span><span class="pl-c1">1</span>)) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-k">class</span> <span class="pl-s">'numpy.float64'</span><span class="pl-c1">&gt;</span></pre></div> <h3 dir="auto">NumPy/Python version information:</h3> <p dir="auto">Python: 3.8.8<br> NumPy: 1.20.3</p>
<h1 dir="auto">Describe the issue:</h1> <h2 dir="auto">Expected Behavior:</h2> <p dir="auto">I expect to create a python <code class="notranslate">Fraction</code> from numpy integer types with no loss of precision</p> <h2 dir="auto">Actual Behavior:</h2> <p dir="auto">Types are coerced to <code class="notranslate">numpy.float64</code> and precision is lost</p> <h1 dir="auto">Reproducible code example:</h1> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np from fractions import Fraction nums = np.array([1]) denoms = np.array([18446744073709550592], dtype='uint64') f = Fraction(nums[0], denoms[0]) # denom has been rounded, is now a float print(f) # 1.0/1.8446744073709552e+19 print(type(f.denominator)) # &lt;class 'numpy.float64'&gt;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">from</span> <span class="pl-s1">fractions</span> <span class="pl-k">import</span> <span class="pl-v">Fraction</span> <span class="pl-s1">nums</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>]) <span class="pl-s1">denoms</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">18446744073709550592</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'uint64'</span>) <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-v">Fraction</span>(<span class="pl-s1">nums</span>[<span class="pl-c1">0</span>], <span class="pl-s1">denoms</span>[<span class="pl-c1">0</span>]) <span class="pl-c"># denom has been rounded, is now a float</span> <span class="pl-en">print</span>(<span class="pl-s1">f</span>) <span class="pl-c"># 1.0/1.8446744073709552e+19</span> <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">f</span>.<span class="pl-s1">denominator</span>)) <span class="pl-c"># &lt;class 'numpy.float64'&gt;</span></pre></div> <h1 dir="auto">Error message:</h1> <p dir="auto"><em>No response</em></p> <h1 dir="auto">NumPy/Python version information:</h1> <p dir="auto">Numpy: 1.21.2<br> Python: 3.7.9 (default, Aug 31 2020, 12:42:55) [GCC 7.3.0]<br> OS: Debian GNU/Linux 10 (buster)</p> <h1 dir="auto">Other information that may be helpful:</h1> <p dir="auto">I discovered this behavior while creating fractions from parallel arrays representing the numerators and denominators of fractions. This loss of precision is problematic because the float is rounded up so that it is out of range for <code class="notranslate">uint64</code>, despite the original value being valid. In my case I have a workaround, as converting the values to python <code class="notranslate">int</code> before inputting them to the <code class="notranslate">Fraction</code> constructor prevents this issue. However, I wanted to let you know because it is unexpected that an operation with two numpy integer types produced a value with floating point types.</p> <p dir="auto">I briefly looked into the <code class="notranslate">Fractions</code> constructor and I discovered that this behavior comes from lines 175-180 of <code class="notranslate">fractions.py</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" elif (isinstance(numerator, numbers.Rational) and isinstance(denominator, numbers.Rational)): numerator, denominator = ( numerator.numerator * denominator.denominator, denominator.numerator * numerator.denominator )"><pre class="notranslate"> <span class="pl-en">elif</span> (<span class="pl-en">isinstance</span>(<span class="pl-s1">numerator</span>, <span class="pl-s1">numbers</span>.<span class="pl-v">Rational</span>) <span class="pl-c1">and</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">denominator</span>, <span class="pl-s1">numbers</span>.<span class="pl-v">Rational</span>)): <span class="pl-s1">numerator</span>, <span class="pl-s1">denominator</span> <span class="pl-c1">=</span> ( <span class="pl-s1">numerator</span>.<span class="pl-s1">numerator</span> <span class="pl-c1">*</span> <span class="pl-s1">denominator</span>.<span class="pl-s1">denominator</span>, <span class="pl-s1">denominator</span>.<span class="pl-s1">numerator</span> <span class="pl-c1">*</span> <span class="pl-s1">numerator</span>.<span class="pl-s1">denominator</span> )</pre></div> <p dir="auto"><code class="notranslate">numpy.uint64</code> is an instance of <code class="notranslate">numbers.Rational</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 numbers &gt;&gt;&gt; denoms = np.array([18446744073709550592], dtype='uint64') &gt;&gt;&gt; isinstance(denoms[0], numbers.Rational) True"><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">numbers</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">denoms</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">18446744073709550592</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'uint64'</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">denoms</span>[<span class="pl-c1">0</span>], <span class="pl-s1">numbers</span>.<span class="pl-v">Rational</span>) <span class="pl-c1">True</span></pre></div> <p dir="auto">Inspecting the reproducible snippet above with <code class="notranslate">pdb</code> reveals that the multiplication on lines 178-179 of <code class="notranslate">fractions.py</code> is the moment when the type is changed.</p> <p dir="auto">Thank you for your time (:</p>
1
<p dir="auto">Observed a couple of runtime/pprof TestCPUProfileMultithreaded test failures<br> with the following error message.</p> <pre class="notranslate">--- FAIL: TestCPUProfileMultithreaded (0.26s) pprof_test.go:169: total 25 CPU profile samples collected pprof_test.go:185: runtime/pprof_test.cpuHog1: 25 pprof_test.go:185: runtime/pprof_test.cpuHog2: 0 pprof_test.go:199: runtime/pprof_test.cpuHog2 has 0 samples out of 25, want at least 1, ideally 12 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742433 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742433 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742433 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742433 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742433 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742433 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742433 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742430 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742433 0x0 -1 invalid spdelta __x86.get_pc_thunk.cx 0xf7742430 0xf7742433 0x0 -1 FAIL exitcode=1go_android_exec: adb shell rm -rf /data/local/tmp/pprof.test-11065 FAIL runtime/pprof 14.152s </pre>
<p dir="auto">Weird trybot failure in tsan:</p> <p dir="auto"><a href="https://storage.googleapis.com/go-build-log/78af9465/linux-amd64-race_91e55cda.log" rel="nofollow">https://storage.googleapis.com/go-build-log/78af9465/linux-amd64-race_91e55cda.log</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- FAIL: TestStackBarrierProfiling (4.60s) pprof_test.go:342: subprocess failed with signal: segmentation fault: invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a530f 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a530f 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a530f 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5304 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5304 0x0 -1 FAIL FAIL runtime/pprof 13.799s 2015/12/10 18:38:36 Failed: exit status 1"><pre class="notranslate"><code class="notranslate">--- FAIL: TestStackBarrierProfiling (4.60s) pprof_test.go:342: subprocess failed with signal: segmentation fault: invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a530f 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a530f 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a530f 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5304 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5307 0x0 -1 invalid spdelta _ZN6__tsanL14MemoryRangeSetEPNS_11ThreadStateEmmmy.isra.32.part.33 0x5a5270 0x5a5304 0x0 -1 FAIL FAIL runtime/pprof 13.799s 2015/12/10 18:38:36 Failed: exit status 1 </code></pre></div> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aclements/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aclements">@aclements</a></p>
1
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>Have I written custom code: No, I'm using MNIST Tensorboard example provided by Google.</li> <li>OS Platform and Distribution: Ubuntu 16.04</li> <li>Binary installation (sudo pip3 install tf-nightly-2.0-preview)</li> <li>TensorFlow version (use command below): 2.0.0-dev20190405</li> <li>Python version: 3.5.2</li> <li>CUDA/cuDNN version: 10.0</li> <li>GPU model and memory: NVIDIA GTX 1080 Ti 11GB</li> </ul> <p dir="auto"><strong>Describe the current behavior</strong><br> My code is provided below.</p> <p dir="auto">Running this code gives a directory called logs. I launch Tensorboard using <strong>tensorboard --logdir=./logs</strong><br> I go to localhost:6006, click the Graphs tab in my browser, and I get the message saying:<br> <strong>Graph: Failed Normalizing names</strong><br> Tensorboard console doesn't show any errors.</p> <p dir="auto">I'm using the MNIST Tensorboard example provided here: <a href="https://www.tensorflow.org/tensorboard/r2/graphs" rel="nofollow">https://www.tensorflow.org/tensorboard/r2/graphs</a><br> And it doesn't work in TensorFlow 2.0. Why?</p> <p dir="auto"><strong>Describe the expected behavior</strong><br> I expect it to show the graph for the model.</p> <p dir="auto"><strong>Code to reproduce the issue</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime #from packaging import version import tensorflow as tf from tensorflow import keras print(&quot;TensorFlow version: &quot;, tf.__version__) # Define the model. model = keras.models.Sequential([ keras.layers.Flatten(input_shape=(28, 28)), keras.layers.Dense(32, activation='relu'), keras.layers.Dropout(0.2), keras.layers.Dense(10, activation='softmax') ]) model.compile( optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['accuracy']) (train_images, train_labels), _ = keras.datasets.fashion_mnist.load_data() train_images = train_images / 255.0 logdir=&quot;logs/fit/&quot; + datetime.now().strftime(&quot;%Y%m%d-%H%M%S&quot;) tensorboard_callback = keras.callbacks.TensorBoard(log_dir=logdir) # Train the model. model.fit( train_images, train_labels, batch_size=64, epochs=5, callbacks=[tensorboard_callback])"><pre class="notranslate"><code class="notranslate">from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime #from packaging import version import tensorflow as tf from tensorflow import keras print("TensorFlow version: ", tf.__version__) # Define the model. model = keras.models.Sequential([ keras.layers.Flatten(input_shape=(28, 28)), keras.layers.Dense(32, activation='relu'), keras.layers.Dropout(0.2), keras.layers.Dense(10, activation='softmax') ]) model.compile( optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['accuracy']) (train_images, train_labels), _ = keras.datasets.fashion_mnist.load_data() train_images = train_images / 255.0 logdir="logs/fit/" + datetime.now().strftime("%Y%m%d-%H%M%S") tensorboard_callback = keras.callbacks.TensorBoard(log_dir=logdir) # Train the model. model.fit( train_images, train_labels, batch_size=64, epochs=5, callbacks=[tensorboard_callback]) </code></pre></div> <p dir="auto">Attached file is zipped logs directory to be viewed with Tensorboard.<br> <a href="https://github.com/tensorflow/tensorflow/files/3050778/logs.zip">logs.zip</a></p>
<p dir="auto">Code to reproduce:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import tensorflow as tf if tf.version.VERSION.startswith('1.'): tf.compat.v1.enable_eager_execution() tf = tf.compat.v2 LOGDIR = './logs' def main(): shutil.rmtree(LOGDIR, ignore_errors=True) model = tf.keras.models.Sequential([ tf.keras.layers.Dense(1, input_shape=(1,)), ]) model.compile(loss='mse', optimizer='adagrad') callback = tf.keras.callbacks.TensorBoard(LOGDIR) model.fit(x=[[0]], y=[[0]], callbacks=[callback]) if __name__ == '__main__': main()"><pre class="notranslate"><span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">absolute_import</span> <span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">division</span> <span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">print_function</span> <span class="pl-k">import</span> <span class="pl-s1">shutil</span> <span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-k">if</span> <span class="pl-s1">tf</span>.<span class="pl-s1">version</span>.<span class="pl-v">VERSION</span>.<span class="pl-en">startswith</span>(<span class="pl-s">'1.'</span>): <span class="pl-s1">tf</span>.<span class="pl-s1">compat</span>.<span class="pl-s1">v1</span>.<span class="pl-en">enable_eager_execution</span>() <span class="pl-s1">tf</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">compat</span>.<span class="pl-s1">v2</span> <span class="pl-v">LOGDIR</span> <span class="pl-c1">=</span> <span class="pl-s">'./logs'</span> <span class="pl-k">def</span> <span class="pl-en">main</span>(): <span class="pl-s1">shutil</span>.<span class="pl-en">rmtree</span>(<span class="pl-v">LOGDIR</span>, <span class="pl-s1">ignore_errors</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">models</span>.<span class="pl-v">Sequential</span>([ <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">layers</span>.<span class="pl-v">Dense</span>(<span class="pl-c1">1</span>, <span class="pl-s1">input_shape</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>,)), ]) <span class="pl-s1">model</span>.<span class="pl-en">compile</span>(<span class="pl-s1">loss</span><span class="pl-c1">=</span><span class="pl-s">'mse'</span>, <span class="pl-s1">optimizer</span><span class="pl-c1">=</span><span class="pl-s">'adagrad'</span>) <span class="pl-s1">callback</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">callbacks</span>.<span class="pl-v">TensorBoard</span>(<span class="pl-v">LOGDIR</span>) <span class="pl-s1">model</span>.<span class="pl-en">fit</span>(<span class="pl-s1">x</span><span class="pl-c1">=</span>[[<span class="pl-c1">0</span>]], <span class="pl-s1">y</span><span class="pl-c1">=</span>[[<span class="pl-c1">0</span>]], <span class="pl-s1">callbacks</span><span class="pl-c1">=</span>[<span class="pl-s1">callback</span>]) <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>: <span class="pl-en">main</span>()</pre></div> <p dir="auto">Expected behavior: Running this and then <code class="notranslate">tensorboard --logdir ./logs</code><br> provides a graph visualizer that shows the Keras implementation graph.</p> <p dir="auto">Actual behavior: On versions of TensorFlow from 2019-03-23 onward, the<br> “Default” graph in the graph visualizer gives the error, “Graph: Failed<br> Normalizing names”.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4317806/55033543-a74acd80-4fd0-11e9-884c-48f7362eb189.png"><img src="https://user-images.githubusercontent.com/4317806/55033543-a74acd80-4fd0-11e9-884c-48f7362eb189.png" alt="Screenshot of error" style="max-width: 100%;"></a></p> <p dir="auto">The stack trace in the JS console is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(index):10466 TypeError: d.list.shape.map is not a function at d ((index):10270) at new &lt;anonymous&gt; ((index):10276) at d ((index):10286) at (index):10285 at arrayEach ((index):80) at Function.forEach ((index):242) at a ((index):10285) at arrayEach ((index):80) at Function.forEach ((index):242) at (index):10286"><pre class="notranslate"><code class="notranslate">(index):10466 TypeError: d.list.shape.map is not a function at d ((index):10270) at new &lt;anonymous&gt; ((index):10276) at d ((index):10286) at (index):10285 at arrayEach ((index):80) at Function.forEach ((index):242) at a ((index):10285) at arrayEach ((index):80) at Function.forEach ((index):242) at (index):10286 </code></pre></div> <p dir="auto">(On all versions, the <code class="notranslate">batch_1</code> graph gives the error, <a href="https://github.com/tensorflow/tensorboard/blob/6de38d858b4ec19ed5e4088e863a8eba737292e1/tensorboard/plugins/graph/tf_graph_loader/tf-graph-loader.ts#L193-L197">“Error: The<br> graph is empty. […]”</a>, and the Keras conceptual graph works fine.)</p> <p dir="auto">The problem appears to be due to a change in the emitted graphs, not a<br> change in TensorBoard; the above-described behavior occurs independent<br> of the TensorBoard version.</p> <p dir="auto">The behavior is the same under tf-nightly and tf-nightly-2.0-preview<br> (but removing the <code class="notranslate">enable_eager_execution()</code> call causes the code to<br> work fine in tf-nightly).</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stephanwlee/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stephanwlee">@stephanwlee</a>; not sure whether this is a TensorBoard error or a<br> TensorFlow problem.</p>
1
<h1 dir="auto">Bug report</h1> <p dir="auto">I want to replace all the module name like <code class="notranslate">node:fs</code> to <code class="notranslate">fs</code>, so I set resolve.alias:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="resolve: { alias: { 'node:': '' }, },"><pre class="notranslate"><span class="pl-s1">resolve</span>: <span class="pl-kos">{</span> <span class="pl-c1">alias</span>: <span class="pl-kos">{</span> <span class="pl-s">'node:'</span>: <span class="pl-s">''</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span></pre></div> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="configuration.resolve.alias['node:'] should be a non-empty string"><pre class="notranslate"><code class="notranslate">configuration.resolve.alias['node:'] should be a non-empty string </code></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">No validate configuration failed error.</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.65.0<br> Node.js version: 16.13.1<br> Operating System: MacOS 12.1</p>
<p dir="auto">Hey there! I have a question.</p> <p dir="auto">I have two npm-packages: <code class="notranslate">sub</code> and <code class="notranslate">common</code>. I'm writing my app using this packages.</p> <p dir="auto"><strong><code class="notranslate">sub</code></strong> includes <code class="notranslate">common</code> as dependency.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import common from 'common'; // some code here"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">common</span> <span class="pl-k">from</span> <span class="pl-s">'common'</span><span class="pl-kos">;</span> <span class="pl-c">// some code here</span></pre></div> <p dir="auto"><strong>my app</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sub from 'sub'; import common from 'common'; // some code here"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sub</span> <span class="pl-k">from</span> <span class="pl-s">'sub'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">common</span> <span class="pl-k">from</span> <span class="pl-s">'common'</span><span class="pl-kos">;</span> <span class="pl-c">// some code here</span></pre></div> <p dir="auto">The final bundle contains two copies of <code class="notranslate">common</code> package. The first copy is for my app, and the second one - for package <code class="notranslate">sub</code>.<br> <strong>final bundle</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... // my app ({ /* some deps */ }) =&gt; { var sub = __webpack_require__(1); var common = __webpack_require__(2); } // end of my app ... // sub ({ /* some deps */ }) =&gt; { var common = __webpack_require__(3); // ^ not the same line in app (in app uses 2) } // end of sub ... // module 2 ({ /* some deps */ }) =&gt; { // code of common } // end module 2 ... // module 3 ({ /* some deps */ }) =&gt; { // code of common } // end module 3"><pre class="notranslate">... <span class="pl-c">// my app</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c">/* some deps */</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-k">var</span> <span class="pl-s1">sub</span> <span class="pl-c1">=</span> <span class="pl-en">__webpack_require__</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">common</span> <span class="pl-c1">=</span> <span class="pl-en">__webpack_require__</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// end of my app</span> <span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span> <span class="pl-c">// sub</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c">/* some deps */</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">var</span> common <span class="pl-c1">=</span> <span class="pl-en">__webpack_require__</span><span class="pl-kos">(</span><span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ^ not the same line in app (in app uses 2)</span> <span class="pl-kos">}</span> <span class="pl-c">// end of sub</span> ... <span class="pl-c">// module 2</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c">/* some deps */</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">// code of common </span> <span class="pl-kos">}</span> <span class="pl-c">// end module 2</span> <span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span> <span class="pl-c">// module 3</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c">/* some deps */</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// code of common</span> <span class="pl-kos">}</span> <span class="pl-c">// end module 3</span></pre></div> <p dir="auto">Could I combine <code class="notranslate">common</code> in one module to avoid duplication? Thanks!</p>
0
<p dir="auto">Hi,<br> in my system configuration windows 7,32 bit.</p> <p dir="auto">I have installed deno on my machine using this command</p> <p dir="auto"><code class="notranslate">iwr https://deno.land/x/install/install.ps1 -useb | iex</code></p> <p dir="auto">My pwershell version is 5.1</p> <p dir="auto">I got this error.</p> <p dir="auto"><code class="notranslate">Program 'deno.exe' failed to run: The specified executable is not a valid application for this OS platform.At line:1</code></p> <p dir="auto">How can i fix this pblm.Please advice me,</p> <p dir="auto">Thanks &amp; regards,</p> <p dir="auto">Anitha.G</p>
<h1 dir="auto">Could you please support windows 32 bit machines for the build.</h1> <p dir="auto">I'm using Windows NT 10 15063</p> <p dir="auto">Building the app is quite a sassle for me (as win32 users) because:</p> <ul dir="auto"> <li>My windows version does <strong>not</strong> support symlinks even though I enabled developer options.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37999241/70102942-5a7cc380-1642-11ea-8348-e32e15620b26.png"><img src="https://user-images.githubusercontent.com/37999241/70102942-5a7cc380-1642-11ea-8348-e32e15620b26.png" alt="Image attached" style="max-width: 100%;"></a></li> <li>Installing MSVC is quite a sassle (I tried 5 times; the download can't finish)</li> </ul> <p dir="auto">By the way, I have very limited resources; RAM, CPU even Storage<br> Needed requirements</p> <ul dir="auto"> <li><a href="https://support.microsoft.com/en-us/help/4027667/windows-10-update" rel="nofollow">Updated Windows version</a> with Dev Options enabled (.symlinks not working for me)</li> <li><a href="https://crates.io" rel="nofollow">Cargo</a> or <a href="https://www.rust-lang.org/" rel="nofollow">Rust</a> in general (not installable for me since it needs MSVC)</li> <li><a href="https://visualstudio.microsoft.com/vs/community/" rel="nofollow">MSVC</a> (not installable for me)</li> <li><a href="https://www.python.org/download/releases/2.7/" rel="nofollow">Python version 2</a>, not 3 (working for me)</li> </ul> <p dir="auto">I think anyone with the listed above resources .<br> can build it <em><strong>NOW</strong></em> and send it because I think it is not a difficult task and<br> I'm not even trying to go into node and I <em><strong>NEED</strong></em> it desperately. <strong>PLEASE HELP</strong>.</p>
1
<h4 dir="auto">Describe the bug</h4> <p dir="auto">When using an imputer, after training on a data frame with at least one of the columns completely missing, the imputer will drop this feature after a transform.</p> <p dir="auto">I would expect at least a warning or an option to fall back to a constant value fill.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd from sklearn.impute import SimpleImputer df = pd.DataFrame({'a':[1,2,3],'b':[None,None,None]}) print(SimpleImputer().fit_transform(df).shape)"><pre class="notranslate"><code class="notranslate">import pandas as pd from sklearn.impute import SimpleImputer df = pd.DataFrame({'a':[1,2,3],'b':[None,None,None]}) print(SimpleImputer().fit_transform(df).shape) </code></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">(3, 2)</p> <h4 dir="auto">Actual Results</h4> <p dir="auto">(3, 1)</p> <h4 dir="auto">Versions</h4>
<h3 dir="auto">Code sample</h3> <p dir="auto">In the sample code below, a column is removed from the dataset during the pipeline</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; from sklearn.impute import SimpleImputer &gt;&gt;&gt; import numpy as np &gt;&gt;&gt; imp = SimpleImputer() &gt;&gt;&gt; imp.fit([[0, np.nan], [1, np.nan]]) &gt;&gt;&gt; imp.transform([[0, np.nan], [1, 1]]) array([[0.], [1.]])"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">impute</span> <span class="pl-k">import</span> <span class="pl-v">SimpleImputer</span> <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-s1">imp</span> <span class="pl-c1">=</span> <span class="pl-v">SimpleImputer</span>() <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">imp</span>.<span class="pl-en">fit</span>([[<span class="pl-c1">0</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>], [<span class="pl-c1">1</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>]]) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">imp</span>.<span class="pl-en">transform</span>([[<span class="pl-c1">0</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>]]) <span class="pl-en">array</span>([[<span class="pl-c1">0.</span>], [<span class="pl-c1">1.</span>]])</pre></div> <h3 dir="auto">Problem description</h3> <p dir="auto">Currently <code class="notranslate">sklearn.impute.SimpleImputer</code> silently removes features that are <code class="notranslate">np.nan</code> on every training sample.</p> <p dir="auto">This may cause further issues on pipelines because the dataset's <code class="notranslate">shape</code> has changed, e.g.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dataset[:, columns_to_impute_with_median] = imp.fit_transform(dataset[:, columns_to_impute_with_median])"><pre class="notranslate"><span class="pl-s1">dataset</span>[:, <span class="pl-s1">columns_to_impute_with_median</span>] <span class="pl-c1">=</span> <span class="pl-s1">imp</span>.<span class="pl-en">fit_transform</span>(<span class="pl-s1">dataset</span>[:, <span class="pl-s1">columns_to_impute_with_median</span>])</pre></div> <h3 dir="auto">Possible solutions</h3> <p dir="auto">For the problematic features, either keep their values if valid or impute the <code class="notranslate">fill_value</code> during <code class="notranslate">transform</code>. I suggest adding a new parameter to trigger this behaviour with a warning highlighting the referred features.</p> <p dir="auto">As I'm willing to implement this feature, I look forward advices.</p>
1
<p dir="auto">Hi,</p> <p dir="auto">I have been trying to run wildcard queries against .kibana indices on ES 1.4.4. I am querying on _id. While prefix query runs, wildcard queries don't.</p> <p dir="auto">Example</p> <blockquote> <p dir="auto">curl localhost:9200/,kibana/_search?pretty -d '{"query":{"prefix":{"_id":"TC"}}}'</p> </blockquote> <p dir="auto">Gives results, but</p> <blockquote> <p dir="auto">curl localhost:9200/,kibana/_search?pretty -d '{"query":{"wildcard":{"_id":"TC*"}}}'</p> </blockquote> <p dir="auto">Gives me an empty result.</p>
<p dir="auto">I'm using Elasticsearch 1.3.4. Occasionally I see the following DEBUG stack trace (few of them are logged sequentially) in the log file. No search requests are failing around the same time though. There was nothing wrong with the cluster too when this exception was logged. Is this exception harmless? If not, what are the repercussions? I did some digging around the same exception on the internet and in the Issues list of Elasticsearch but I found most of those issues were related to <code class="notranslate">scan</code> and <code class="notranslate">scroll</code>. We don't use <code class="notranslate">scan</code> and <code class="notranslate">scroll</code> search requests. Let me know if you need more data.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DEBUG!!default!![2015-02-16 19:41:54,432][DEBUG][action.search.type ] [&lt;Query Node Name&gt;] [27419] Failed to execute fetch phase org.elasticsearch.transport.RemoteTransportException: [&lt;Data Node Name&gt;][inet[/xx.x.x.xxx:9300]][search/phase/fetch/id] Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [27419] at org.elasticsearch.search.SearchService.findContext(SearchService.java:481) at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:451) at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:793) at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:782) at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:275) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)"><pre class="notranslate"><code class="notranslate">DEBUG!!default!![2015-02-16 19:41:54,432][DEBUG][action.search.type ] [&lt;Query Node Name&gt;] [27419] Failed to execute fetch phase org.elasticsearch.transport.RemoteTransportException: [&lt;Data Node Name&gt;][inet[/xx.x.x.xxx:9300]][search/phase/fetch/id] Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [27419] at org.elasticsearch.search.SearchService.findContext(SearchService.java:481) at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:451) at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:793) at org.elasticsearch.search.action.SearchServiceTransportAction$SearchFetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:782) at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:275) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) </code></pre></div>
0
<p dir="auto">Image picker version: 0.4.10</p> <p dir="auto">When image without extension is selected this exception is thrown:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E/AndroidRuntime( 8438): FATAL EXCEPTION: main E/AndroidRuntime( 8438): Process: com.mepigu.mepigu, PID: 8438 E/AndroidRuntime( 8438): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/4461 flg=0x1 }} to activity {com.mepigu.mepigu/com.mepigu.mepigu.MainActivity}: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/4461 E/AndroidRuntime( 8438): at android.app.ActivityThread.deliverResults(ActivityThread.java:5035) E/AndroidRuntime( 8438): at android.app.ActivityThread.handleSendResult(ActivityThread.java:5078) E/AndroidRuntime( 8438): at android.app.ActivityThread.-wrap20(Unknown Source:0) E/AndroidRuntime( 8438): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053) E/AndroidRuntime( 8438): at android.os.Handler.dispatchMessage(Handler.java:108) E/AndroidRuntime( 8438): at android.os.Looper.loop(Looper.java:166) E/AndroidRuntime( 8438): at android.app.ActivityThread.main(ActivityThread.java:7523) E/AndroidRuntime( 8438): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 8438): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245) E/AndroidRuntime( 8438): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921) E/AndroidRuntime( 8438): Caused by: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/4461 E/AndroidRuntime( 8438): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165) E/AndroidRuntime( 8438): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135) E/AndroidRuntime( 8438): at android.content.ContentProviderProxy.query(ContentProviderNative.java:418) E/AndroidRuntime( 8438): at android.content.ContentResolver.query(ContentResolver.java:766) E/AndroidRuntime( 8438): at android.content.ContentResolver.query(ContentResolver.java:716) E/AndroidRuntime( 8438): at android.content.ContentResolver.query(ContentResolver.java:667) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.FileUtils.getDataColumn(FileUtils.java:117) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.FileUtils.getPathFromLocalUri(FileUtils.java:69) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.FileUtils.getPathFromUri(FileUtils.java:41) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:395) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:375) E/AndroidRuntime( 8438): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210) E/AndroidRuntime( 8438): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139) E/AndroidRuntime( 8438): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138) E/AndroidRuntime( 8438): at android.app.Activity.dispatchActivityResult(Activity.java:7701) E/AndroidRuntime( 8438): at android.app.ActivityThread.deliverResults(ActivityThread.java:5031) E/AndroidRuntime( 8438): ... 9 more I/Process ( 8438): Sending signal. PID: 8438 SIG: 9 Lost connection to device."><pre class="notranslate"><code class="notranslate">E/AndroidRuntime( 8438): FATAL EXCEPTION: main E/AndroidRuntime( 8438): Process: com.mepigu.mepigu, PID: 8438 E/AndroidRuntime( 8438): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/4461 flg=0x1 }} to activity {com.mepigu.mepigu/com.mepigu.mepigu.MainActivity}: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/4461 E/AndroidRuntime( 8438): at android.app.ActivityThread.deliverResults(ActivityThread.java:5035) E/AndroidRuntime( 8438): at android.app.ActivityThread.handleSendResult(ActivityThread.java:5078) E/AndroidRuntime( 8438): at android.app.ActivityThread.-wrap20(Unknown Source:0) E/AndroidRuntime( 8438): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053) E/AndroidRuntime( 8438): at android.os.Handler.dispatchMessage(Handler.java:108) E/AndroidRuntime( 8438): at android.os.Looper.loop(Looper.java:166) E/AndroidRuntime( 8438): at android.app.ActivityThread.main(ActivityThread.java:7523) E/AndroidRuntime( 8438): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 8438): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245) E/AndroidRuntime( 8438): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921) E/AndroidRuntime( 8438): Caused by: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/4461 E/AndroidRuntime( 8438): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165) E/AndroidRuntime( 8438): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135) E/AndroidRuntime( 8438): at android.content.ContentProviderProxy.query(ContentProviderNative.java:418) E/AndroidRuntime( 8438): at android.content.ContentResolver.query(ContentResolver.java:766) E/AndroidRuntime( 8438): at android.content.ContentResolver.query(ContentResolver.java:716) E/AndroidRuntime( 8438): at android.content.ContentResolver.query(ContentResolver.java:667) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.FileUtils.getDataColumn(FileUtils.java:117) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.FileUtils.getPathFromLocalUri(FileUtils.java:69) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.FileUtils.getPathFromUri(FileUtils.java:41) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:395) E/AndroidRuntime( 8438): at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:375) E/AndroidRuntime( 8438): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210) E/AndroidRuntime( 8438): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139) E/AndroidRuntime( 8438): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138) E/AndroidRuntime( 8438): at android.app.Activity.dispatchActivityResult(Activity.java:7701) E/AndroidRuntime( 8438): at android.app.ActivityThread.deliverResults(ActivityThread.java:5031) E/AndroidRuntime( 8438): ... 9 more I/Process ( 8438): Sending signal. PID: 8438 SIG: 9 Lost connection to device. </code></pre></div>
<p dir="auto">Tested on a real Pixel XL Android 9 (API 28)<br> image_picker version: 0.4.10</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15"><pre class="notranslate"><code class="notranslate">java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="D/AndroidRuntime(13697): Shutting down VM E/AndroidRuntime(13697): FATAL EXCEPTION: main E/AndroidRuntime(13697): Process: com.example.test, PID: 13697 E/AndroidRuntime(13697): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/15 flg=0x1 }} to activity {com.example.test/com.example.test.MainActivity}: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15 E/AndroidRuntime(13697): at android.app.ActivityThread.deliverResults(ActivityThread.java:4360) E/AndroidRuntime(13697): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4402) E/AndroidRuntime(13697): at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49) E/AndroidRuntime(13697): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) E/AndroidRuntime(13697): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) E/AndroidRuntime(13697): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) E/AndroidRuntime(13697): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime(13697): at android.os.Looper.loop(Looper.java:193) E/AndroidRuntime(13697): at android.app.ActivityThread.main(ActivityThread.java:6669) E/AndroidRuntime(13697): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(13697): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) E/AndroidRuntime(13697): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) E/AndroidRuntime(13697): Caused by: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15 E/AndroidRuntime(13697): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165) E/AndroidRuntime(13697): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135) E/AndroidRuntime(13697): at android.content.ContentProviderProxy.query(ContentProviderNative.java:418) E/AndroidRuntime(13697): at android.content.ContentResolver.query(ContentResolver.java:802) E/AndroidRuntime(13697): at android.content.ContentResolver.query(ContentResolver.java:752) E/AndroidRuntime(13697): at android.content.ContentResolver.query(ContentResolver.java:710) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.FileUtils.getDataColumn(FileUtils.java:117) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.FileUtils.getPathFromLocalUri(FileUtils.java:69) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.FileUtils.getPathFromUri(FileUtils.java:41) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:395) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:375) E/AndroidRuntime(13697): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210) E/AndroidRuntime(13697): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139) E/AndroidRuntime(13697): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138) E/AndroidRuntime(13697): at android.app.Activity.dispatchActivityResult(Activity.java:7454) E/AndroidRuntime(13697): at android.app.ActivityThread.deliverResults(ActivityThread.java:4353) E/AndroidRuntime(13697): ... 11 more I/Process (13697): Sending signal. PID: 13697 SIG: 9 Application finished."><pre class="notranslate"><code class="notranslate">D/AndroidRuntime(13697): Shutting down VM E/AndroidRuntime(13697): FATAL EXCEPTION: main E/AndroidRuntime(13697): Process: com.example.test, PID: 13697 E/AndroidRuntime(13697): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/15 flg=0x1 }} to activity {com.example.test/com.example.test.MainActivity}: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15 E/AndroidRuntime(13697): at android.app.ActivityThread.deliverResults(ActivityThread.java:4360) E/AndroidRuntime(13697): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4402) E/AndroidRuntime(13697): at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49) E/AndroidRuntime(13697): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) E/AndroidRuntime(13697): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) E/AndroidRuntime(13697): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) E/AndroidRuntime(13697): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime(13697): at android.os.Looper.loop(Looper.java:193) E/AndroidRuntime(13697): at android.app.ActivityThread.main(ActivityThread.java:6669) E/AndroidRuntime(13697): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(13697): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) E/AndroidRuntime(13697): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) E/AndroidRuntime(13697): Caused by: java.lang.IllegalArgumentException: Unknown URI: content://downloads/public_downloads/15 E/AndroidRuntime(13697): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165) E/AndroidRuntime(13697): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135) E/AndroidRuntime(13697): at android.content.ContentProviderProxy.query(ContentProviderNative.java:418) E/AndroidRuntime(13697): at android.content.ContentResolver.query(ContentResolver.java:802) E/AndroidRuntime(13697): at android.content.ContentResolver.query(ContentResolver.java:752) E/AndroidRuntime(13697): at android.content.ContentResolver.query(ContentResolver.java:710) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.FileUtils.getDataColumn(FileUtils.java:117) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.FileUtils.getPathFromLocalUri(FileUtils.java:69) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.FileUtils.getPathFromUri(FileUtils.java:41) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:395) E/AndroidRuntime(13697): at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:375) E/AndroidRuntime(13697): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210) E/AndroidRuntime(13697): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139) E/AndroidRuntime(13697): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138) E/AndroidRuntime(13697): at android.app.Activity.dispatchActivityResult(Activity.java:7454) E/AndroidRuntime(13697): at android.app.ActivityThread.deliverResults(ActivityThread.java:4353) E/AndroidRuntime(13697): ... 11 more I/Process (13697): Sending signal. PID: 13697 SIG: 9 Application finished. </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.8.2, on Mac OS X 10.14 18A384a, locale de-CH) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.0) [✓] Android Studio (version 3.1) [✓] Connected devices (3 available) • No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.8.2, on Mac OS X 10.14 18A384a, locale de-CH) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) [✓] iOS toolchain - develop for iOS devices (Xcode 10.0) [✓] Android Studio (version 3.1) [✓] Connected devices (3 available) • No issues found! </code></pre></div>
1
<p dir="auto">Requires additional selector added to CSS rule to ensure correct top margin as shown here</p> <p dir="auto"><a href="https://gist.github.com/1721864">https://gist.github.com/1721864</a></p>
<p dir="auto">There are (too) many differences and enhancements in the upcoming v3, plus there are a lot more things to be done, so I'd like to suggest a maintainance v2.3.2 for a few of the most important bugs/features, so people with the current version of bootstrap get some more support for their pages.</p>
0
<p dir="auto">Babel transpiled subclasses of Promise had been working as intended for as recent as the last nodejs version (6.4.0), however with 6.5.0, I'm seeing errors like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" return _possibleConstructorReturn(this, (subPromise.__proto__ || Object.getPrototypeOf(subPromise)).call(this, executor)); ^ TypeError: #&lt;subPromise&gt; is not a promise"><pre class="notranslate"><code class="notranslate"> return _possibleConstructorReturn(this, (subPromise.__proto__ || Object.getPrototypeOf(subPromise)).call(this, executor)); ^ TypeError: #&lt;subPromise&gt; is not a promise </code></pre></div> <p dir="auto">Subclassing itself works fine if I run the code as is on nodejs. This issue happens regardless of whether I import polyfill or not.</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; class subPromise extends Promise { constructor(executor) { super(executor); } } const testPromise = new subPromise((resolve, reject) =&gt; { resolve(42); }); testPromise.then(console.log);"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-s1">subPromise</span> <span class="pl-k">extends</span> <span class="pl-v">Promise</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">executor</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">executor</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">testPromise</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">subPromise</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-c1">42</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">testPromise</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Babel Configuration (.bablerc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [&quot;es2015&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"es2015"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">The test promise resolves into <code class="notranslate">42</code>.</p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Throws a type error.</p> <h3 dir="auto">Possible Solution</h3> <p dir="auto">Must be some sort of extra type checking introduced in 6.5.0? Bigger worry is how semantics of vanilla <code class="notranslate">class</code> keyword from nodejs and transpiled classes can diverge.</p> <h3 dir="auto">Context</h3> <p dir="auto">I'm working on a <a href="https://github.com/google/chained-promise">library</a> that extends Promise. Which I opened an issue (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176143009" data-permission-text="Title is private" data-url="https://github.com/google/chained-promise/issues/6" data-hovercard-type="issue" data-hovercard-url="/google/chained-promise/issues/6/hovercard" href="https://github.com/google/chained-promise/issues/6">google/chained-promise#6</a>). I've also opened an issue with NodeJS, initially thinking this might to do with nodejs itself regressing in any way. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176142730" data-permission-text="Title is private" data-url="https://github.com/nodejs/node/issues/8474" data-hovercard-type="issue" data-hovercard-url="/nodejs/node/issues/8474/hovercard" href="https://github.com/nodejs/node/issues/8474">nodejs/node#8474</a>)</p> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>tested on 6.4.0 and 6.14.0</td> </tr> <tr> <td>node</td> <td>6.5.0</td> </tr> <tr> <td>npm</td> <td>3.5.2</td> </tr> <tr> <td>Operating System</td> <td>Tested on Windows and Linux</td> </tr> </tbody> </table>
<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 ReadError extends Error {} new ReadError('Boom') instanceof ReadError // =&gt; false"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">ReadError</span> <span class="pl-k">extends</span> <span class="pl-v">Error</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">new</span> <span class="pl-v">ReadError</span><span class="pl-kos">(</span><span class="pl-s">'Boom'</span><span class="pl-kos">)</span> <span class="pl-k">instanceof</span> <span class="pl-v">ReadError</span> <span class="pl-c">// =&gt; false</span></pre></div> <h3 dir="auto">Babel Configuration (.bablerc, package.json, cli command)</h3> <p dir="auto"><a href="https://babeljs.io/repl/#?babili=false&amp;evaluate=true&amp;lineWrap=false&amp;presets=es2015&amp;experimental=true&amp;loose=false&amp;spec=false&amp;playground=false&amp;code=class%20ReadError%20extends%20Error%20%7B%7D%0A%0Aalert(new%20ReadError('Boom')%20instanceof%20ReadError)%20%2F%2F%20%3D%3E%20false" rel="nofollow">https://babeljs.io/repl/#?babili=false&amp;evaluate=true&amp;lineWrap=false&amp;presets=es2015&amp;experimental=true&amp;loose=false&amp;spec=false&amp;playground=false&amp;code=class%20ReadError%20extends%20Error%20%7B%7D%0A%0Aalert(new%20ReadError('Boom')%20instanceof%20ReadError)%20%2F%2F%20%3D%3E%20false</a></p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">should alert <code class="notranslate">true</code></p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">alerts <code class="notranslate">false</code></p>
1
<h4 dir="auto">Groupby Pct_change Bug Report</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from io import StringIO import pandas as pd txt = StringIO(&quot;&quot;&quot;Group;Date;Value A ;01-02-2016 ;16 A ;01-03-2016 ;15 A ;01-04-2016 ;14 A ;01-05-2016 ;17 A ;01-06-2016 ;19 A ;01-07-2016 ;20 B ;01-02-2016 ;16 B ;01-03-2016 ;13 B ;01-04-2016 ;13 C ;01-02-2016 ;16 C ;01-03-2016 ;16 &quot;&quot;&quot;) df = pd.read_table(txt,sep=';',parse_dates=[1]) d1 = df.set_index(['Date', 'Group']).Value d2 = d1.groupby(level='Group').pct_change() print(d2)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">io</span> <span class="pl-k">import</span> <span class="pl-v">StringIO</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">txt</span> <span class="pl-c1">=</span> <span class="pl-v">StringIO</span>(<span class="pl-s">"""Group;Date;Value</span> <span class="pl-s"> A ;01-02-2016 ;16 </span> <span class="pl-s"> A ;01-03-2016 ;15 </span> <span class="pl-s"> A ;01-04-2016 ;14 </span> <span class="pl-s"> A ;01-05-2016 ;17 </span> <span class="pl-s"> A ;01-06-2016 ;19 </span> <span class="pl-s"> A ;01-07-2016 ;20 </span> <span class="pl-s"> B ;01-02-2016 ;16 </span> <span class="pl-s"> B ;01-03-2016 ;13 </span> <span class="pl-s"> B ;01-04-2016 ;13 </span> <span class="pl-s"> C ;01-02-2016 ;16 </span> <span class="pl-s"> C ;01-03-2016 ;16 """</span>) <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_table</span>(<span class="pl-s1">txt</span>,<span class="pl-s1">sep</span><span class="pl-c1">=</span><span class="pl-s">';'</span>,<span class="pl-s1">parse_dates</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>]) <span class="pl-s1">d1</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">set_index</span>([<span class="pl-s">'Date'</span>, <span class="pl-s">'Group'</span>]).<span class="pl-v">Value</span> <span class="pl-s1">d2</span> <span class="pl-c1">=</span> <span class="pl-s1">d1</span>.<span class="pl-en">groupby</span>(<span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-s">'Group'</span>).<span class="pl-en">pct_change</span>() <span class="pl-en">print</span>(<span class="pl-s1">d2</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">I tried to calculate value changes by group in pandas , according this stackoverflow answer, <a href="https://stackoverflow.com/questions/41453325/python-pandas-groupby-calculate-change" rel="nofollow">https://stackoverflow.com/questions/41453325/python-pandas-groupby-calculate-change</a></p> <p dir="auto">the expected result should be</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="Date Group 2016-01-02 A NaN 2016-01-03 A -0.062500 2016-01-04 A -0.066667 2016-01-05 A 0.214286 2016-01-06 A 0.117647 2016-01-07 A 0.052632 2016-01-02 B NaN 2016-01-03 B -0.187500 2016-01-04 B 0.000000 2016-01-02 C NaN 2016-01-03 C 0.000000 Name: Value, dtype: float64"><pre class="notranslate"><span class="pl-v">Date</span> <span class="pl-v">Group</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">02</span> <span class="pl-v">A</span> <span class="pl-v">NaN</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">03</span> <span class="pl-v">A</span> <span class="pl-c1">-</span><span class="pl-c1">0.062500</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">04</span> <span class="pl-v">A</span> <span class="pl-c1">-</span><span class="pl-c1">0.066667</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">05</span> <span class="pl-v">A</span> <span class="pl-c1">0.214286</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">06</span> <span class="pl-v">A</span> <span class="pl-c1">0.117647</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-v">A</span> <span class="pl-c1">0.052632</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">02</span> <span class="pl-v">B</span> <span class="pl-v">NaN</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">03</span> <span class="pl-v">B</span> <span class="pl-c1">-</span><span class="pl-c1">0.187500</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">04</span> <span class="pl-v">B</span> <span class="pl-c1">0.000000</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">02</span> <span class="pl-v">C</span> <span class="pl-v">NaN</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">03</span> <span class="pl-v">C</span> <span class="pl-c1">0.000000</span> <span class="pl-v">Name</span>: <span class="pl-v">Value</span>, <span class="pl-s1">dtype</span>: <span class="pl-s1">float64</span></pre></div> <p dir="auto">First pecent change value of each group should be NaN, while in my computer with pandas version 0.23.1, the result shows as below.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Date Group 2016-01-02 A NaN 2016-01-03 A -0.062500 2016-01-04 A -0.066667 2016-01-05 A 0.214286 2016-01-06 A 0.117647 2016-01-07 A 0.052632 2016-01-02 B -0.200000 2016-01-03 B -0.187500 2016-01-04 B 0.000000 2016-01-02 C 0.230769 2016-01-03 C 0.000000 Name: Value, dtype: float64"><pre class="notranslate"><span class="pl-v">Date</span> <span class="pl-v">Group</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">02</span> <span class="pl-v">A</span> <span class="pl-v">NaN</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">03</span> <span class="pl-v">A</span> <span class="pl-c1">-</span><span class="pl-c1">0.062500</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">04</span> <span class="pl-v">A</span> <span class="pl-c1">-</span><span class="pl-c1">0.066667</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">05</span> <span class="pl-v">A</span> <span class="pl-c1">0.214286</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">06</span> <span class="pl-v">A</span> <span class="pl-c1">0.117647</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">07</span> <span class="pl-v">A</span> <span class="pl-c1">0.052632</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">02</span> <span class="pl-v">B</span> <span class="pl-c1">-</span><span class="pl-c1">0.200000</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">03</span> <span class="pl-v">B</span> <span class="pl-c1">-</span><span class="pl-c1">0.187500</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">04</span> <span class="pl-v">B</span> <span class="pl-c1">0.000000</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">02</span> <span class="pl-v">C</span> <span class="pl-c1">0.230769</span> <span class="pl-c1">2016</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">03</span> <span class="pl-v">C</span> <span class="pl-c1">0.000000</span> <span class="pl-v">Name</span>: <span class="pl-v">Value</span>, <span class="pl-s1">dtype</span>: <span class="pl-s1">float64</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: 3.6.5.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 10<br> machine: AMD64<br> processor: AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD<br> byteorder: little<br> LC_ALL: None<br> LANG: None<br> LOCALE: None.None</p> <p dir="auto">pandas: 0.23.1<br> pytest: 3.5.1<br> pip: 10.0.1<br> setuptools: 39.1.0<br> Cython: 0.28.2<br> numpy: 1.14.3<br> scipy: 1.1.0<br> pyarrow: None<br> xarray: None<br> IPython: 6.4.0<br> sphinx: 1.7.4<br> patsy: 0.5.0<br> dateutil: 2.7.3<br> pytz: 2018.4<br> blosc: None<br> bottleneck: 1.2.1<br> tables: 3.4.3<br> numexpr: 2.6.5<br> feather: None<br> matplotlib: 2.2.2<br> openpyxl: 2.5.3<br> xlrd: 1.1.0<br> xlwt: 1.3.0<br> xlsxwriter: 1.0.4<br> lxml: 4.2.1<br> bs4: 4.6.0<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="# Your code here df=pd.DataFrame([[1,2],[3,4]], columns=list('aa')) . # NOTICE TWO COLUMNS EACH CALLED 'a' df.drop_duplicates()"><pre class="notranslate"><span class="pl-c"># Your code here</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-c1">1</span>,<span class="pl-c1">2</span>],[<span class="pl-c1">3</span>,<span class="pl-c1">4</span>]], <span class="pl-s1">columns</span><span class="pl-c1">=</span><span class="pl-en">list</span>(<span class="pl-s">'aa'</span>)) . <span class="pl-c"># NOTICE TWO COLUMNS EACH CALLED 'a' </span> <span class="pl-s1">df</span>.<span class="pl-en">drop_duplicates</span>()</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">May be related to 10161</p> <p dir="auto">Above code blows up with exception:</p> <p dir="auto">[...]<br> /opt/virtualenvs/luigi/local/lib/python2.7/dist-packages/pandas/core/frame.pyc in f(vals)<br> 3095 labels, shape = algos.factorize(vals,<br> 3096 size_hint=min(len(self),<br> -&gt; 3097 _SIZE_HINT_LIMIT))<br> 3098 return labels.astype('i8', copy=False), len(shape)<br> 3099</p> <p dir="auto">/opt/virtualenvs/luigi/local/lib/python2.7/dist-packages/pandas/core/algorithms.pyc in factorize(values, sort, order, na_sentinel, size_hint)<br> 183 table = hash_klass(size_hint or len(vals))<br> 184 uniques = vec_klass()<br> --&gt; 185 labels = table.get_labels(vals, uniques, 0, na_sentinel, True)<br> 186<br> 187 labels = com._ensure_platform_int(labels)</p> <p dir="auto">pandas/hashtable.pyx in pandas.hashtable.Int64HashTable.get_labels (pandas/hashtable.c:7941)()</p> <p dir="auto">ValueError: Buffer has wrong number of dimensions (expected 1, got 2)</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">I was excepting simple dataframe output as there are no duplicate rows there.</p> <p dir="auto">a a<br> 0 1 2<br> 1 3 4</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.12.final.0<br> python-bits: 64<br> OS: Linux<br> OS-release: 4.9.32-15.41.amzn1.x86_64<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> nose: None<br> pip: 9.0.1<br> setuptools: 36.4.0<br> Cython: None<br> numpy: 1.11.0<br> scipy: 0.17.1<br> statsmodels: 0.8.0<br> xarray: None<br> IPython: 5.4.1<br> sphinx: None<br> patsy: 0.4.1<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: 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.999999999<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.1.14<br> pymysql: 0.7.11.None<br> psycopg2: None<br> jinja2: 2.7.3<br> boto: 2.48.0<br> pandas_datareader: None</p> </details>
0
<p dir="auto">Hi,<br> would be great if one could pass arguments to <code class="notranslate">issymmetric</code>, which specifies the absolut and/or relative tolerance between the upper and lower triangle, similar to <code class="notranslate">isapprox(x,y; atol=..., rtol=...)</code>.<br> Thanks!</p>
<p dir="auto">I was expecting the following code print two <code class="notranslate">true</code>s.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using LinearAlgebra siz = 8 base_space = qr(randn(Float64, siz, siz)).Q phases = rand(siz) signs = Diagonal(phases) A = base_space*signs*base_space' println(A ≈ A') println(ishermitian(A))"><pre class="notranslate"><code class="notranslate">using LinearAlgebra siz = 8 base_space = qr(randn(Float64, siz, siz)).Q phases = rand(siz) signs = Diagonal(phases) A = base_space*signs*base_space' println(A ≈ A') println(ishermitian(A)) </code></pre></div> <p dir="auto">Instead, I get <code class="notranslate">true</code> and <code class="notranslate">false</code>.</p> <p dir="auto">The <code class="notranslate">ishermitian</code> turns out using <code class="notranslate">==</code>. Isn't it better to use <code class="notranslate">≈</code> or add an <code class="notranslate">atol</code> keyword parameter?<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/JuliaLang/julia/blob/4498d27c3c3e11effdfdfdce822d025079f01a0a/stdlib/LinearAlgebra/src/generic.jl#L971">julia/stdlib/LinearAlgebra/src/generic.jl</a> </p> <p class="mb-0 color-fg-muted"> Line 971 in <a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/4498d27c3c3e11effdfdfdce822d025079f01a0a">4498d27</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="L971" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="971"></td> <td id="LC971" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">function</span> <span class="pl-en">ishermitian</span>(A<span class="pl-k">::</span><span class="pl-c1">AbstractMatrix</span>) </td> </tr> </tbody></table> </div> </div> <p></p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>... right click the project folders list</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.196.0<br> <strong>System</strong>: Microsoft Windows 7 Home Premium<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\user\AppData\Local\atom\app-0.196.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\user\AppData\Local\atom\app-0.196.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\user\AppData\Local\atom\app-0.196.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\user\AppData\Local\atom\app-0.196.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\user\AppData\Local\atom\app-0.196.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\user\AppData\Local\atom\app-0.196.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\user\AppData\Local\atom\app-0.196.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\user\AppData\Local\atom\app-0.196.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\user\AppData\Local\atom\app-0.196.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\user\AppData\Local\atom\app-0.196.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -0:30.4.0 pane:reopen-closed-item (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -0:30.4.0 pane:reopen-closed-item (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;disabledPackages&quot;: [ &quot;feedback&quot;, &quot;welcome&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>feedback<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>welcome<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 language-lua, v0.9.2 linter, v0.12.1 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> language<span class="pl-k">-</span>lua, v0.<span class="pl-ii">9</span>.<span class="pl-ii">2</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&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">Is there any particular reason to have <code class="notranslate">product</code> return different values depending on the number of iterators provided?</p> <p dir="auto">Demo</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; Base.iteratorsize(Base.product(1:2)) Base.HasShape() julia&gt; Base.iteratorsize(Base.product(1:2, 1:2)) Base.HasLength()"><pre class="notranslate"><code class="notranslate">julia&gt; Base.iteratorsize(Base.product(1:2)) Base.HasShape() julia&gt; Base.iteratorsize(Base.product(1:2, 1:2)) Base.HasLength() </code></pre></div> <p dir="auto">This currently happens because <code class="notranslate">Base.product(itr)</code> calls the <code class="notranslate">Zip1</code> constructor which has a different behaviour.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; Base.product(1:2) Base.Zip1{UnitRange{Int64}}(1:2) julia&gt; Base.product(1:2, 1:2) Base.Prod2{UnitRange{Int64},UnitRange{Int64}}(1:2,1:2)"><pre class="notranslate"><code class="notranslate">julia&gt; Base.product(1:2) Base.Zip1{UnitRange{Int64}}(1:2) julia&gt; Base.product(1:2, 1:2) Base.Prod2{UnitRange{Int64},UnitRange{Int64}}(1:2,1:2) </code></pre></div> <p dir="auto">At the cost of some code duplication the alternative would be to implement a <code class="notranslate">Prod1</code> type and add the required behaviour instead of calling the <code class="notranslate">Zip1</code> constructor.</p> <p dir="auto">(this is on master)</p>
<p dir="auto">Right now any <code class="notranslate">Pkg.add</code> can lead to a downgrade of some other installed package. That seems like a bad user experience: when I add a new package, I probably don't want my other packages to revert to an old version.</p> <p dir="auto">I think a better solution would be if <code class="notranslate">Pkg.add</code> detects that it needs to do some package downgrades, it should show the user the list of packages that would be downgraded and then confirm whether the user actually really wants to proceed or not. And then there could be a <code class="notranslate">force</code> argument to <code class="notranslate">Pkg.add</code> that would just go ahead without user confirmation.</p> <p dir="auto">The same logic might also apply to some other package commands. Probably <code class="notranslate">Pkg.clone</code>. Not sure about <code class="notranslate">Pkg.update</code>...</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.6-SNAPSHOT</li> <li>Operating System version: Mac</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">run dubbo-samples-stub sample</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">"stub - greeting dubbo"</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">return "greeting dubbo"</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: mac</li> <li>Java version: 1.8</li> </ul> <p dir="auto">org.apache.dubbo.rpc.cluster.support.ClusterUtils#mergeUrl 这个里面写死了哪些provider key不可被consumer覆盖,比如TagRouter 需要的tag字段不可覆盖:copyOfLocalMap.remove(TAG_KEY);。<br> 能否把这个能力开放出来,来定制provider url 中哪些key不可覆盖。</p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="trait MyTY { fn my_y(&amp;self) -&gt; uint; } trait MyTXY: MyTY { fn my_x(&amp;self) -&gt; uint; } fn bar(mt: &amp;MyTXY) { mt.my_x(); mt.my_y(); } fn main() { }"><pre class="notranslate"><code class="notranslate">trait MyTY { fn my_y(&amp;self) -&gt; uint; } trait MyTXY: MyTY { fn my_x(&amp;self) -&gt; uint; } fn bar(mt: &amp;MyTXY) { mt.my_x(); mt.my_y(); } fn main() { } </code></pre></div>
<p dir="auto">Bound type parameters can call supertrait methods, objects should be able to as well.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="trait A { fn f() } trait B: A { } fn foo(b: &amp;B) { b.f() }"><pre class="notranslate"><code class="notranslate">trait A { fn f() } trait B: A { } fn foo(b: &amp;B) { b.f() } </code></pre></div>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">Not sure if it is a bug or a feature yet. This relates to Hooks.</p> <p dir="auto">It could also be that this is all expected behaviour and one of the workarounds mentioned is required.</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">I have a hook that depends on the <code class="notranslate">useContext</code> hook. Using it as follows works perfectly:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const MyHookedComponent = () =&gt; { const contextValue = useContext(DemoContext); return ( //Do something with contextValue ) } const MyContextProviderComponent = () =&gt; { return ( &lt;DemoContext.Provider value={someContextValue}&gt; &lt;MyHookedComponent /&gt; &lt;/DemoContext.Provider&gt; ) }"><pre class="notranslate"><code class="notranslate">const MyHookedComponent = () =&gt; { const contextValue = useContext(DemoContext); return ( //Do something with contextValue ) } const MyContextProviderComponent = () =&gt; { return ( &lt;DemoContext.Provider value={someContextValue}&gt; &lt;MyHookedComponent /&gt; &lt;/DemoContext.Provider&gt; ) } </code></pre></div> <p dir="auto">What if I want to use the <code class="notranslate">getContext</code> hook inline in the same component that declares the <code class="notranslate">DemoContext.Provider</code> ?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const MyContextProviderComponent = () =&gt; { const contextValue = useContext(DemoContext); //Of course this fails due to the Context hierarchy. return ( &lt;DemoContext.Provider value={someContextValue}&gt; //Do something with contextValue &lt;/DemoContext.Provider&gt; ) }"><pre class="notranslate"><code class="notranslate">const MyContextProviderComponent = () =&gt; { const contextValue = useContext(DemoContext); //Of course this fails due to the Context hierarchy. return ( &lt;DemoContext.Provider value={someContextValue}&gt; //Do something with contextValue &lt;/DemoContext.Provider&gt; ) } </code></pre></div> <p dir="auto">I seem to be unable to get this working.</p> <p dir="auto"><strong>Please note</strong>:</p> <ul dir="auto"> <li>I have a very good reason for solving my issue with Context and not passing props.</li> <li>The implementation I show above looks trivial and dumb but it is the simplest way to illustrate what the use case is. In my implementation the <code class="notranslate">Provider</code> sits in a complex component that does a lot of data management which I really want to happen at this level.</li> <li>The usual way to use this will be the first working version I noted above, it is only in the case where the user would want to use the hook inline inside the <code class="notranslate">Provider</code>.</li> <li>I have searched for a couple of hours and tried various configurations without success, so my apologies if this is a duplicate of another issue.</li> </ul> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Any method to consume context inline in the provider using the same re-usable hook without having to revert back to render props.</p> <p dir="auto">I know I can solve this with <strong>render props</strong> but I am trying to convert an implementation using render props to hooks. I also know I can hoist the Context Provider higher up but in my implementation it would quadruple the code complexity to develop and maintain while introducing extra complexity into the user interface.</p> <p dir="auto">Also, by extracting the body inside the <code class="notranslate">Provider</code> to a new component I can also solve this but ideally I would not like to have a user do this for this use case.</p>
<h1 dir="auto">From maintainers: if you have this problem, please see the explanation in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157049204" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/6895" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/6895/hovercard?comment_id=281405036&amp;comment_type=issue_comment" href="https://github.com/facebook/react/issues/6895#issuecomment-281405036">#6895 (comment)</a>.</h1> <p dir="auto">I am getting a strange error I've never come across. Googling it doesn't help at all.<br> <code class="notranslate">Error: performUpdateIfNecessary: Unexcpeted batch number (current 36, pending 31)(...)</code><br> It has caused me a lot of headaches. I've reverted to 2 days ago and the error persists, even though 2 days ago everything was running smoothly and all tests were passing.</p> <p dir="auto">I would appreciate any sort of direction as to how I can begin to resolve this bug. My guesses are that it's an error with Redux, Webpack, Redux-Form, or React itself. I know, not that precise, but I'm quite lost.</p> <hr> <p dir="auto">Example redux logger information:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8007686/15585614/f6ef14e8-2334-11e6-9c44-a9380b028707.png"><img src="https://cloud.githubusercontent.com/assets/8007686/15585614/f6ef14e8-2334-11e6-9c44-a9380b028707.png" alt="screen shot 2016-05-26 at 11 18 43 am" style="max-width: 100%;"></a></p> <p dir="auto">Max OS X, El Capitan 10.11.5<br> React v15.0.1 (error persists on v15.1.0)</p> <p dir="auto"><em>I'm sorry if this isn't specific to React. I did look into the error message code and it appears to be coming from the Facebook/React code.</em></p> <p dir="auto">Thanks!</p>
0
<p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency</a></p>
<p dir="auto">We currently have an invented syntax for referencing a d.ts file. <a href="https://github.com/denoland/deno_std/blob/06958a4ada960665a48ac34f919423e0d8d16951/prettier/prettier.ts#L8-L9">Here's an example</a>:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// @deno-types=&quot;./vendor/parser_typescript.d.ts&quot; import &quot;./vendor/parser_typescript.js&quot;;"><pre class="notranslate"><span class="pl-c">// <span class="pl-k">@deno</span>-types="./vendor/parser_typescript.d.ts"</span> <span class="pl-k">import</span> <span class="pl-s">"./vendor/parser_typescript.js"</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I'm not so happy with this - but not sure what to replace it with. Adding this as an API to figure out before 1.0.</p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/922" rel="nofollow">http://projects.scipy.org/numpy/ticket/922</a> on 2008-10-02 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josef-pkt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josef-pkt">@josef-pkt</a>, assigned to unknown.</em></p> <p dir="auto">In my fuzz testing of scipy stats, I get sometimes a test failure. I think there is something wrong, random numbers are outside of support of the distribution, with numpy.random.hypergeometric for some cases:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.version.version '1.2.0rc2'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.version.version '1.2.0rc2' </code></pre></div> <p dir="auto">signature:<br> hypergeometric(ngood, nbad, nsample, size=None)</p> <p dir="auto">when sample size (number of draws, nsample) is small then random numbers look ok:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.random.hypergeometric(3,18,8,size=10) array([2, 1, 0, 2, 1, 1, 2, 1, 0, 3]) &gt;&gt;&gt; np.random.hypergeometric(3,18,9,size=10) array([2, 2, 0, 0, 1, 0, 1, 1, 3, 1]) &gt;&gt;&gt; np.random.hypergeometric(3,18,10,size=10) array([0, 2, 2, 0, 2, 2, 2, 0, 0, 2])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.random.hypergeometric(3,18,8,size=10) array([2, 1, 0, 2, 1, 1, 2, 1, 0, 3]) &gt;&gt;&gt; np.random.hypergeometric(3,18,9,size=10) array([2, 2, 0, 0, 1, 0, 1, 1, 3, 1]) &gt;&gt;&gt; np.random.hypergeometric(3,18,10,size=10) array([0, 2, 2, 0, 2, 2, 2, 0, 0, 2]) </code></pre></div> <p dir="auto">for sample size larger than 11 the random number are larger than possible (there are only 3 good balls in urn):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.random.hypergeometric(3,18,11,size=10) array([18, 16, 16, 17, 18, 17, 18, 17, 17, 16]) &gt;&gt;&gt; np.random.hypergeometric(3,18,12,size=10) array([17, 16, 16, 18, 17, 17, 18, 17, 16, 17]) &gt;&gt;&gt; np.random.hypergeometric(3,18,13,size=10) array([18, 17, 17, 16, 17, 17, 16, 16, 18, 16]) &gt;&gt;&gt; np.random.hypergeometric(3,18,14,size=10) array([16, 17, 17, 17, 17, 18, 17, 16, 18, 17]) &gt;&gt;&gt; np.random.hypergeometric(3,18,15,size=10) array([18, 18, 17, 16, 17, 16, 17, 17, 18, 18])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.random.hypergeometric(3,18,11,size=10) array([18, 16, 16, 17, 18, 17, 18, 17, 17, 16]) &gt;&gt;&gt; np.random.hypergeometric(3,18,12,size=10) array([17, 16, 16, 18, 17, 17, 18, 17, 16, 17]) &gt;&gt;&gt; np.random.hypergeometric(3,18,13,size=10) array([18, 17, 17, 16, 17, 17, 16, 16, 18, 16]) &gt;&gt;&gt; np.random.hypergeometric(3,18,14,size=10) array([16, 17, 17, 17, 17, 18, 17, 16, 18, 17]) &gt;&gt;&gt; np.random.hypergeometric(3,18,15,size=10) array([18, 18, 17, 16, 17, 16, 17, 17, 18, 18]) </code></pre></div> <p dir="auto">reversing the number of good and bad balls -&gt; ok for small sample size:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.random.hypergeometric(18,3,5,size=10) #ok array([5, 4, 5, 5, 4, 4, 4, 4, 5, 5]) &gt;&gt;&gt; np.random.hypergeometric(18,3,10,size=10) #ok array([9, 8, 9, 7, 8, 8, 7, 8, 8, 9])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.random.hypergeometric(18,3,5,size=10) #ok array([5, 4, 5, 5, 4, 4, 4, 4, 5, 5]) &gt;&gt;&gt; np.random.hypergeometric(18,3,10,size=10) #ok array([9, 8, 9, 7, 8, 8, 7, 8, 8, 9]) </code></pre></div> <p dir="auto">negative numbers for sample size &gt;= 11:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.random.hypergeometric(18,3,11,size=10) array([-5, -5, -5, -7, -4, -5, -5, -4, -6, -6]) &gt;&gt;&gt; np.random.hypergeometric(18,3,13,size=10) array([-3, -5, -5, -4, -4, -4, -5, -5, -3, -4]) &gt;&gt;&gt; np.random.hypergeometric(18,3,14,size=10) array([-4, -3, -4, -3, -2, -4, -3, -4, -2, -4]) &gt;&gt;&gt; np.random.hypergeometric(18,3,15,size=10) array([-2, -2, -1, -1, -3, -2, -2, -2, -1, -2]) &gt;&gt;&gt; np.random.hypergeometric(18,3,16,size=10) array([-1, -1, 0, -1, 0, -2, -1, -2, -1, -2])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.random.hypergeometric(18,3,11,size=10) array([-5, -5, -5, -7, -4, -5, -5, -4, -6, -6]) &gt;&gt;&gt; np.random.hypergeometric(18,3,13,size=10) array([-3, -5, -5, -4, -4, -4, -5, -5, -3, -4]) &gt;&gt;&gt; np.random.hypergeometric(18,3,14,size=10) array([-4, -3, -4, -3, -2, -4, -3, -4, -2, -4]) &gt;&gt;&gt; np.random.hypergeometric(18,3,15,size=10) array([-2, -2, -1, -1, -3, -2, -2, -2, -1, -2]) &gt;&gt;&gt; np.random.hypergeometric(18,3,16,size=10) array([-1, -1, 0, -1, 0, -2, -1, -2, -1, -2]) </code></pre></div>
<p dir="auto">Creating an array out of a list that (accidentally) has a circular reference sometimes causes the Python terminal to hang, and can not be terminated even by ctrl-C.</p> <p dir="auto">Ideally, this should be detected, and an exception should be raised.</p> <h3 dir="auto">Reproducing code example:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np a = [] a.append(a) np.array(a) # outputs `array([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[list([[...]])]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]], dtype=object)` a.append(a) np.array(a) # hangs"><pre class="notranslate"><code class="notranslate">import numpy as np a = [] a.append(a) np.array(a) # outputs `array([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[list([[...]])]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]], dtype=object)` a.append(a) np.array(a) # hangs </code></pre></div> <h3 dir="auto">Error message:</h3> <p dir="auto">No error - python simply hangs</p> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">1.16.4 3.6.8 (default, Apr 25 2019, 21:02:35)<br> [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]</p>
0
<p dir="auto"><code class="notranslate">error</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: C:\Dev\Personal_Projects\web-toolkit\src\ambient\particles\index.js: Property name expected type of string but got null at validate (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\definitions\utils.js:160:13) at Object.validate (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\definitions\utils.js:229:7) at validateField (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\validators\validate.js:24:9) at validate (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\validators\validate.js:17:3) at builder (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\builders\builder.js:38:27) at Object.Identifier (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\builders\generated\index.js:337:31) at C:\Dev\Personal_Projects\web-toolkit\node_modules\regenerator-transform\lib\hoist.js:32:29 at Array.forEach (&lt;anonymous&gt;) at varDeclToExpr (C:\Dev\Personal_Projects\web-toolkit\node_modules\regenerator-transform\lib\hoist.js:29:23) at exit (C:\Dev\Personal_Projects\web-toolkit\node_modules\regenerator-transform\lib\hoist.js:51:20) { code: 'BABEL_TRANSFORM_ERROR' "><pre class="notranslate"><code class="notranslate">TypeError: C:\Dev\Personal_Projects\web-toolkit\src\ambient\particles\index.js: Property name expected type of string but got null at validate (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\definitions\utils.js:160:13) at Object.validate (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\definitions\utils.js:229:7) at validateField (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\validators\validate.js:24:9) at validate (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\validators\validate.js:17:3) at builder (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\builders\builder.js:38:27) at Object.Identifier (C:\Dev\Personal_Projects\web-toolkit\node_modules\@babel\types\lib\builders\generated\index.js:337:31) at C:\Dev\Personal_Projects\web-toolkit\node_modules\regenerator-transform\lib\hoist.js:32:29 at Array.forEach (&lt;anonymous&gt;) at varDeclToExpr (C:\Dev\Personal_Projects\web-toolkit\node_modules\regenerator-transform\lib\hoist.js:29:23) at exit (C:\Dev\Personal_Projects\web-toolkit\node_modules\regenerator-transform\lib\hoist.js:51:20) { code: 'BABEL_TRANSFORM_ERROR' </code></pre></div> <p dir="auto"><code class="notranslate">particles\index.js</code></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const hello = async () =&gt; { const he = { ll: '2' } const { ll } = he }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">hello</span> <span class="pl-c1">=</span> <span class="pl-k">async</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-k">const</span> <span class="pl-s1">he</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">ll</span>: <span class="pl-s">'2'</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> ll <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">he</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><code class="notranslate">babel config</code></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { presets: [ [ require('@babel/preset-env'), { targets: 'defaults, not ie &lt;= 11, not edge &gt; 0, not IE_Mob 11', modules: false } ], require('@babel/preset-react') ], plugins: [ require('react-hot-loader/babel'), require('@babel/plugin-transform-regenerator'), require('@babel/plugin-syntax-dynamic-import'), require('@babel/plugin-syntax-throw-expressions'), require('@babel/plugin-transform-runtime'), require('babel-plugin-styled-components') ], env: { production: { plugins: [require('babel-plugin-transform-react-remove-prop-types')] } } }"><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-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/preset-env'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">targets</span>: <span class="pl-s">'defaults, not ie &lt;= 11, not edge &gt; 0, not IE_Mob 11'</span><span class="pl-kos">,</span> <span class="pl-c1">modules</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/preset-react'</span><span class="pl-kos">)</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'react-hot-loader/babel'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/plugin-transform-regenerator'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/plugin-syntax-dynamic-import'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/plugin-syntax-throw-expressions'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/plugin-transform-runtime'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'babel-plugin-styled-components'</span><span class="pl-kos">)</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">env</span>: <span class="pl-kos">{</span> <span class="pl-c1">production</span>: <span class="pl-kos">{</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'babel-plugin-transform-react-remove-prop-types'</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"><code class="notranslate">package.json</code></p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;dependencies&quot;: { &quot;@babel/core&quot;: &quot;^7.9.0&quot;, &quot;@babel/plugin-syntax-dynamic-import&quot;: &quot;^7.8.3&quot;, &quot;@babel/plugin-syntax-throw-expressions&quot;: &quot;^7.8.3&quot;, &quot;@babel/plugin-transform-regenerator&quot;: &quot;^7.8.7&quot;, &quot;@babel/plugin-transform-runtime&quot;: &quot;^7.9.0&quot;, &quot;@babel/preset-env&quot;: &quot;^7.9.0&quot;, &quot;@babel/preset-react&quot;: &quot;^7.9.4&quot;, &quot;babel-eslint&quot;: &quot;^10.1.0&quot;, &quot;babel-jest&quot;: &quot;^25.1.0&quot;, &quot;babel-loader&quot;: &quot;^8.1.0&quot;, &quot;babel-plugin-styled-components&quot;: &quot;^1.10.7&quot;, &quot;babel-plugin-transform-react-remove-prop-types&quot;: &quot;^0.4.24&quot;, &quot;react-hot-loader&quot;: &quot;^4.12.20&quot; },"><pre class="notranslate"> <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"@babel/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.9.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/plugin-syntax-dynamic-import"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.8.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/plugin-syntax-throw-expressions"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.8.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/plugin-transform-regenerator"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.8.7<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/plugin-transform-runtime"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.9.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/preset-env"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.9.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/preset-react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.9.4<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-eslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^10.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-jest"</span>: <span class="pl-s"><span class="pl-pds">"</span>^25.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^8.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-plugin-styled-components"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.10.7<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-plugin-transform-react-remove-prop-types"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.4.24<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-hot-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.12.20<span class="pl-pds">"</span></span> },</pre></div> <p dir="auto"><code class="notranslate">node</code> version <code class="notranslate">v12.13.1</code></p> <p dir="auto">Thanks</p>
<p dir="auto">Following code produces the error:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const hello = async () =&gt; { const he = { ll: '2' } const { ll } = he }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">hello</span> <span class="pl-c1">=</span> <span class="pl-k">async</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-k">const</span> <span class="pl-s1">he</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">ll</span>: <span class="pl-s">'2'</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> ll <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">he</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><code class="notranslate">babel config</code></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = { presets: [ [ require('@babel/preset-env'), { targets: 'defaults, not ie &lt;= 11, not edge &gt; 0, not IE_Mob 11', modules: false } ], require('@babel/preset-react') ], plugins: [ require('react-hot-loader/babel'), require('@babel/plugin-transform-regenerator'), require('@babel/plugin-syntax-dynamic-import'), require('@babel/plugin-syntax-throw-expressions'), require('@babel/plugin-transform-runtime'), require('babel-plugin-styled-components') ], env: { production: { plugins: [require('babel-plugin-transform-react-remove-prop-types')] } } }"><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-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/preset-env'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">targets</span>: <span class="pl-s">'defaults, not ie &lt;= 11, not edge &gt; 0, not IE_Mob 11'</span><span class="pl-kos">,</span> <span class="pl-c1">modules</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/preset-react'</span><span class="pl-kos">)</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'react-hot-loader/babel'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/plugin-transform-regenerator'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/plugin-syntax-dynamic-import'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/plugin-syntax-throw-expressions'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@babel/plugin-transform-runtime'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'babel-plugin-styled-components'</span><span class="pl-kos">)</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">env</span>: <span class="pl-kos">{</span> <span class="pl-c1">production</span>: <span class="pl-kos">{</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'babel-plugin-transform-react-remove-prop-types'</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"><code class="notranslate">package.json</code></p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;dependencies&quot;: { &quot;@babel/core&quot;: &quot;^7.9.0&quot;, &quot;@babel/plugin-syntax-dynamic-import&quot;: &quot;^7.8.3&quot;, &quot;@babel/plugin-syntax-throw-expressions&quot;: &quot;^7.8.3&quot;, &quot;@babel/plugin-transform-regenerator&quot;: &quot;^7.8.7&quot;, &quot;@babel/plugin-transform-runtime&quot;: &quot;^7.9.0&quot;, &quot;@babel/preset-env&quot;: &quot;^7.9.0&quot;, &quot;@babel/preset-react&quot;: &quot;^7.9.4&quot;, &quot;babel-eslint&quot;: &quot;^10.1.0&quot;, &quot;babel-jest&quot;: &quot;^25.1.0&quot;, &quot;babel-loader&quot;: &quot;^8.1.0&quot;, &quot;babel-plugin-styled-components&quot;: &quot;^1.10.7&quot;, &quot;babel-plugin-transform-react-remove-prop-types&quot;: &quot;^0.4.24&quot;, &quot;react-hot-loader&quot;: &quot;^4.12.20&quot; },"><pre class="notranslate"> <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"@babel/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.9.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/plugin-syntax-dynamic-import"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.8.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/plugin-syntax-throw-expressions"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.8.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/plugin-transform-regenerator"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.8.7<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/plugin-transform-runtime"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.9.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/preset-env"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.9.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"@babel/preset-react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.9.4<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-eslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^10.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-jest"</span>: <span class="pl-s"><span class="pl-pds">"</span>^25.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^8.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-plugin-styled-components"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.10.7<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-plugin-transform-react-remove-prop-types"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.4.24<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-hot-loader"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.12.20<span class="pl-pds">"</span></span> },</pre></div> <p dir="auto"><code class="notranslate">node</code> version <code class="notranslate">v12.13.1</code></p> <p dir="auto">Thanks</p> <p dir="auto">More context <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="596818928" data-permission-text="Title is private" data-url="https://github.com/facebook/regenerator/issues/390" data-hovercard-type="pull_request" data-hovercard-url="/facebook/regenerator/pull/390/hovercard" href="https://github.com/facebook/regenerator/pull/390">#390</a></p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=washley" rel="nofollow">William Ashley</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5959?redirect=false" rel="nofollow">SPR-5959</a></strong> and commented</p> <p dir="auto">Here is a condensed example of the problem I'm encountering:</p> <p dir="auto">Controller:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package com.test; import java.io.PrintWriter; import org.springframework.stereotype.Controller; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RequestMapping; @Controller @Transactional( readOnly=true ) public class Test { @ExceptionHandler public void exception( Throwable t ) { System.out.println( &quot;In exception handler&quot; ); } @RequestMapping( &quot;/&quot; ) public void get() { throw new RuntimeException( &quot;foo&quot; ); } }"><pre class="notranslate"><code class="notranslate">package com.test; import java.io.PrintWriter; import org.springframework.stereotype.Controller; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RequestMapping; @Controller @Transactional( readOnly=true ) public class Test { @ExceptionHandler public void exception( Throwable t ) { System.out.println( "In exception handler" ); } @RequestMapping( "/" ) public void get() { throw new RuntimeException( "foo" ); } } </code></pre></div> <p dir="auto">Dispatcher servlet config:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:tx=&quot;http://www.springframework.org/schema/tx&quot; xmlns:context=&quot;http://www.springframework.org/schema/context&quot; xsi:schemaLocation=&quot; http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd&quot;&gt; &lt;tx:annotation-driven transaction-manager=&quot;transactionManager&quot;/&gt; &lt;bean id=&quot;transactionManager&quot; class=&quot;com.test.MockTransactionManager&quot;/&gt; &lt;context:component-scan base-package=&quot;com.test&quot;/&gt; &lt;/beans&gt;"><pre class="notranslate"><code class="notranslate">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=" http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"&gt; &lt;tx:annotation-driven transaction-manager="transactionManager"/&gt; &lt;bean id="transactionManager" class="com.test.MockTransactionManager"/&gt; &lt;context:component-scan base-package="com.test"/&gt; &lt;/beans&gt; </code></pre></div> <p dir="auto">web.xml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;web-app xmlns=&quot;http://java.sun.com/xml/ns/j2ee&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd&quot; version=&quot;2.5&quot;&gt; &lt;servlet&gt; &lt;servlet-name&gt;action&lt;/servlet-name&gt; &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;action&lt;/servlet-name&gt; &lt;url-pattern&gt;/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;/web-app&gt;"><pre class="notranslate"><code class="notranslate">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd" version="2.5"&gt; &lt;servlet&gt; &lt;servlet-name&gt;action&lt;/servlet-name&gt; &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;action&lt;/servlet-name&gt; &lt;url-pattern&gt;/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;/web-app&gt; </code></pre></div> <p dir="auto">The exception handler is never invoked when the controller is proxied by CGLib (removing <code class="notranslate">@Transactional</code> removes the proxy and restores the exception handler). A little digging led me to org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerExceptionResolver where there is this iteration over methods of the controller</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ReflectionUtils.doWithMethods(handlerType, new ReflectionUtils.MethodCallback() { public void doWith(Method method) { method = ClassUtils.getMostSpecificMethod(method, handlerType); [snip] } });"><pre class="notranslate"><code class="notranslate"> ReflectionUtils.doWithMethods(handlerType, new ReflectionUtils.MethodCallback() { public void doWith(Method method) { method = ClassUtils.getMostSpecificMethod(method, handlerType); [snip] } }); </code></pre></div> <p dir="auto">which does arrive eventually at the proper exception handler method of my controller class, but because of the call to ClassUtils.getMostSpecificMethod() it winds up back at the overridden method on the CGLib-generated class (which from what I noticed it had already visited). I haven't researched enough to say this is the problem though.</p> <p dir="auto"><code class="notranslate">@RequestMapping</code> annotations appear to work normally through a proxied controller (and the <code class="notranslate">@Transactional</code> annotation does function correctly), so I'm hoping this can be fixed.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 M3</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="398097379" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10761" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10761/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10761">#10761</a> MVC Annotation Inheritance (<em><strong>"duplicates"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398106011" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11996" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11996/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11996">#11996</a> <code class="notranslate">@ExceptionHandler</code> doesn't work on CGLib-proxied controller in Portlet MVC</li> </ul> <p dir="auto">1 votes, 2 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=chrislee" rel="nofollow">Chris Lee</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2413?redirect=false" rel="nofollow">SPR-2413</a></strong> and commented</p> <p dir="auto">Upgrading from 2.0RC2 to 2.0RC3; aside from a couple of moved classes, everything went smooth, until we turned on DEBUG for org.springframework.</p> <p dir="auto">This resulting in a NPE:</p> <p dir="auto">java.lang.NullPointerException<br> at org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor$TransactionAttributeSourcePointcut.getTransactionAttributeSource(TransactionAttributeSourceAdvisor.java:102)<br> at org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor$TransactionAttributeSourcePointcut.hashCode(TransactionAttributeSourceAdvisor.java:121)<br> at java.lang.Object.toString(Object.java:209)<br> at java.lang.String.valueOf(String.java:2615)<br> at java.lang.StringBuffer.append(StringBuffer.java:220)<br> at org.springframework.aop.support.AbstractPointcutAdvisor.toString(AbstractPointcutAdvisor.java:71)<br> at java.lang.String.valueOf(String.java:2615)<br> at java.lang.StringBuffer.append(StringBuffer.java:220)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)<br> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:242)</p> <p dir="auto">...the bean that triggered this was:</p> <p dir="auto">&lt;bean id="apTransactionAttributeSourceAdvisor"<br> class="org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor"&gt;<br> &lt;property name="transactionInterceptor" ref="apTxInterceptor" /&gt;<br> &lt;property name="classFilter"&gt;<br> &lt;bean class="org.springframework.aop.aspectj.TypePatternClassFilter"&gt;<br> &lt;property name="typePattern" value="bridges.authPortal..*" /&gt;<br> &lt;/bean&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;</p> <p dir="auto">It looks like AbstractAutowireCapableBeanFactory logs a debug message (line 383) "Eagerly caching...", which forces a toString on the instantiated bean; since the TransactionAttributeSourceAdvisor.TransactionAttributeSourcePointcut does not have a toString() method, it uses Object.toString, which calls hashCode(), triggering the NPE (as the interceptor hasn't been injected yet).</p> <p dir="auto">Possible solutions are to remove the hashCode (presumably it is there for a reason though) or add a toString() method to TransactionAttributeSourceAdvisor.TransactionAttributeSourcePointcut</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 RC3</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="398070047" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7192" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7192/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7192">#7192</a> Change of logging level to debug causes bean creation failure in presence of tx:annotation-driven (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398069278" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7103" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7103/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7103">#7103</a> NPE when creating a TransactionAttributeSourceAdvisor bean w/debug enabled (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398070130" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7205" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7205/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7205">#7205</a> Bug with tx:annotation-driven/ and JPA with Spring 2 RC3: internal creation TransactionAttributeSourceAdvisor leads to NPE (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398070718" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7277" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7277/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7277">#7277</a> Turning on debugging causes NPE with aspects (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">1 votes, 2 watchers</p>
0
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): 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.): kubelet socat ubuntu</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>):<br> v1.4.4</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Ubuntu 16.04 with latest patches, running in a VMware VM</strong></li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 4.4.0-47-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35537532" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/68" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/68/hovercard" href="https://github.com/kubernetes/kubernetes/pull/68">#68</a>-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li> <li><strong>Install tools</strong>: <a href="http://apt.kubernetes.io/" rel="nofollow">http://apt.kubernetes.io/</a> kubernetes-xenial main via apt-get</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <h1 dir="auto">apt-get install -y kubelet kubeadm kubectl kubernetes-cni</h1> <p dir="auto">Reading package lists... Done<br> Building dependency tree<br> Reading state information... Done<br> Some packages could not be installed. This may mean that you have<br> requested an impossible situation or if you are using the unstable<br> distribution that some required packages have not yet been created<br> or been moved out of Incoming.<br> The following information may help to resolve the situation:</p> <p dir="auto">The following packages have unmet dependencies:<br> kubelet : Depends: socat but it is not installable<br> E: Unable to correct problems, you have held broken packages.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Installation should succeed.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto">Use plain Ubuntu 16.04 with latest patches and follow this guide: <a href="http://kubernetes.io/docs/getting-started-guides/kubeadm/" rel="nofollow">http://kubernetes.io/docs/getting-started-guides/kubeadm/</a></p>
<p dir="auto">We have performance testing infrastructure ready for use in GCE, all scripts are in <code class="notranslate">test/kubemark</code>, and the rest of the code is spread around <code class="notranslate">cluster</code> directory. Currently there's a performance problem, which causes kubemark to be a lot slower than ordinary cluster. We need to find a root cause for this if we want this tool to be useful.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fgrzadkowski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fgrzadkowski">@fgrzadkowski</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wojtek-t/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wojtek-t">@wojtek-t</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lavalamp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lavalamp">@lavalamp</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/quinton-hoole/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/quinton-hoole">@quinton-hoole</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/timothysc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/timothysc">@timothysc</a></p>
0
<p dir="auto"><strong>Migrated issue, originally created by jan.budinsky (<a href="https://github.com/janbudinsky">@janbudinsky</a>)</strong></p> <p dir="auto">Default column value is not overridden by <code class="notranslate">NULL</code> in <code class="notranslate">Declarative API</code> as it should be.</p> <p dir="auto">If a column has a non-null default value that is overridden by another non-null value, everything works as expected - the specified value is always inserted as the value of the column instead of the default one.</p> <p dir="auto">This however does not seem to be the case when overriding non-null default value with <code class="notranslate">NULL</code>. If a matching row (via primary key) has been already created (<code class="notranslate">merge</code> does <code class="notranslate">UPDATE</code>), the column will have <code class="notranslate">NULL</code> filled as its value, as expected. But if a matching row hasn't been created yet (<code class="notranslate">merge</code> does <code class="notranslate">INSERT INTO</code>), the column will have default value instead of expected <code class="notranslate">NULL</code>.</p> <p dir="auto">The issue is the same using both <code class="notranslate">postgresql</code> and <code class="notranslate">in-memory sqlite</code>.</p> <p dir="auto">Please see the script below reproducing the issue, thank you.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column from sqlalchemy.dialects.postgresql import BIGINT, VARCHAR CONN_STR = &quot;sqlite:///:memory:&quot; Base = declarative_base() class Table(Base): __tablename__ = &quot;table&quot; id = Column(BIGINT, primary_key=True) field = Column(VARCHAR, default=&quot;placeholder&quot;) def merge(session, row): session.begin() try: session.merge(row) session.commit() except: session.rollback() raise def select(session, table, **criteria): return session.query(table).filter_by(**criteria).all() def delete(session, table, **criteria): return session.query(table).filter_by(**criteria).delete() def main(): engine = create_engine(CONN_STR, echo=False) Base.metadata.create_all(engine) # create table session = scoped_session(sessionmaker(bind=engine, autocommit=True))() data_null = { &quot;id&quot;: 1, &quot;field&quot;: None } data_value = { &quot;id&quot;: 2, &quot;field&quot;: &quot;value&quot; } # cleanup delete(session=session, table=Table, id=data_null[&quot;id&quot;]) delete(session=session, table=Table, id=data_value[&quot;id&quot;]) merge(session=session, row=Table(**data_null)) print(select(session=session, table=Table, id=data_null[&quot;id&quot;])[0].field) # &quot;placeholder&quot; ??? merge(session=session, row=Table(**data_null)) print(select(session=session, table=Table, id=data_null[&quot;id&quot;])[0].field) # None merge(session=session, row=Table(**data_value)) print(select(session=session, table=Table, id=data_value[&quot;id&quot;])[0].field) # &quot;value&quot; merge(session=session, row=Table(**data_value)) print(select(session=session, table=Table, id=data_value[&quot;id&quot;])[0].field) # &quot;value&quot; if __name__ == &quot;__main__&quot;: main()"><pre class="notranslate"><code class="notranslate">from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column from sqlalchemy.dialects.postgresql import BIGINT, VARCHAR CONN_STR = "sqlite:///:memory:" Base = declarative_base() class Table(Base): __tablename__ = "table" id = Column(BIGINT, primary_key=True) field = Column(VARCHAR, default="placeholder") def merge(session, row): session.begin() try: session.merge(row) session.commit() except: session.rollback() raise def select(session, table, **criteria): return session.query(table).filter_by(**criteria).all() def delete(session, table, **criteria): return session.query(table).filter_by(**criteria).delete() def main(): engine = create_engine(CONN_STR, echo=False) Base.metadata.create_all(engine) # create table session = scoped_session(sessionmaker(bind=engine, autocommit=True))() data_null = { "id": 1, "field": None } data_value = { "id": 2, "field": "value" } # cleanup delete(session=session, table=Table, id=data_null["id"]) delete(session=session, table=Table, id=data_value["id"]) merge(session=session, row=Table(**data_null)) print(select(session=session, table=Table, id=data_null["id"])[0].field) # "placeholder" ??? merge(session=session, row=Table(**data_null)) print(select(session=session, table=Table, id=data_null["id"])[0].field) # None merge(session=session, row=Table(**data_value)) print(select(session=session, table=Table, id=data_value["id"])[0].field) # "value" merge(session=session, row=Table(**data_value)) print(select(session=session, table=Table, id=data_value["id"])[0].field) # "value" if __name__ == "__main__": main() </code></pre></div> <p dir="auto">Environment:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python version - 3.6.3 SQLAlchemy version - 1.2.8"><pre class="notranslate"><code class="notranslate">python version - 3.6.3 SQLAlchemy version - 1.2.8 </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Oleg Pidsadnyi (<a href="https://github.com/olegp">@olegp</a>)</strong></p> <p dir="auto">Mike, I've encountered a behavior that is a bit unexpected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Model(Base): a = Column(Integer, nullable=True, default=1) m = Model() m.a = None session.add(m) In: print m.a Out: None session.commit() In: print m.a Out: 1 "><pre class="notranslate"><code class="notranslate">class Model(Base): a = Column(Integer, nullable=True, default=1) m = Model() m.a = None session.add(m) In: print m.a Out: None session.commit() In: print m.a Out: 1 </code></pre></div> <p dir="auto">None is expected :(</p> <p dir="auto">I understand that the configuration is silly, but this is the existing code. Setting None to the column doesn't cancel the default and the default thinks that the column wasn't set, so it uses the default value in the end.</p>
1
<p dir="auto">When trying to redirect from a POST request to another page it seems that the request goes wrong. The redirect seems fine in the browser network debug tab and seems to pass normally from the POST method handling but when it tries to go to the new url it gets a status code of <strong>|405 Method Not Allowed|</strong>. The reason for this it seems by looking at the log is that the request gets mashed up with the query parameter somehow which seems like a bug:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19205853/165802744-4480c401-d772-47b8-802b-1aa7431cefa4.png"><img src="https://user-images.githubusercontent.com/19205853/165802744-4480c401-d772-47b8-802b-1aa7431cefa4.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Also it seems to work normally if there is no inputs in the form (but that is of no matter as there are no real life forms without any input).</p> <p dir="auto">Replication steps:</p> <p dir="auto">Happens on Edge, Chrome and Firefox for sure.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from flask import Flask, request, redirect app: Flask = Flask(__name__) @app.route(&quot;/&quot;, methods=[&quot;GET&quot;]) def hello(): return &quot;&lt;a href='/my_form'&gt;to form&lt;/a&gt;&quot; @app.route(&quot;/my_form&quot;, methods=[&quot;GET&quot;, &quot;POST&quot;]) def my_form(): if request.method == &quot;GET&quot;: return &quot;&lt;form action='/my_form' method='POST' &gt;&lt;input type='hidden' name='id' value='0'&gt;&lt;button type='submit'&gt;Submit&lt;/button&gt;&lt;/form&gt;&quot; else: return redirect(&quot;/&quot;) # app.run(host=&quot;127.0.0.1&quot;, port=80, debug=True)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span>, <span class="pl-s1">request</span>, <span class="pl-s1">redirect</span> <span class="pl-s1">app</span>: <span class="pl-v">Flask</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/"</span>, <span class="pl-s1">methods</span><span class="pl-c1">=</span>[<span class="pl-s">"GET"</span>])</span> <span class="pl-k">def</span> <span class="pl-en">hello</span>(): <span class="pl-k">return</span> <span class="pl-s">"&lt;a href='/my_form'&gt;to form&lt;/a&gt;"</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/my_form"</span>, <span class="pl-s1">methods</span><span class="pl-c1">=</span>[<span class="pl-s">"GET"</span>, <span class="pl-s">"POST"</span>])</span> <span class="pl-k">def</span> <span class="pl-en">my_form</span>(): <span class="pl-k">if</span> <span class="pl-s1">request</span>.<span class="pl-s1">method</span> <span class="pl-c1">==</span> <span class="pl-s">"GET"</span>: <span class="pl-k">return</span> <span class="pl-s">"&lt;form action='/my_form' method='POST' &gt;&lt;input type='hidden' name='id' value='0'&gt;&lt;button type='submit'&gt;Submit&lt;/button&gt;&lt;/form&gt;"</span> <span class="pl-k">else</span>: <span class="pl-k">return</span> <span class="pl-en">redirect</span>(<span class="pl-s">"/"</span>) <span class="pl-c"># app.run(host="127.0.0.1", port=80, debug=True)</span></pre></div> <p dir="auto">I would expect that the submission of a form allows for a redirect to the home page without any errors like 405. I don't expect any of the arguments to be passed to the redirected request.</p> <p dir="auto">Environment:</p> <ul dir="auto"> <li>Python version: 3.9</li> <li>Flask version: 2.1.1</li> </ul>
<p dir="auto">With the following example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from flask import Flask app = Flask(__name__) @app.route('/', methods=['POST']) def hello_world(): return 'Hello World!' if __name__ == '__main__': app.run()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">'/'</span>, <span class="pl-s1">methods</span><span class="pl-c1">=</span>[<span class="pl-s">'POST'</span>])</span> <span class="pl-k">def</span> <span class="pl-en">hello_world</span>(): <span class="pl-k">return</span> <span class="pl-s">'Hello World!'</span> <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>: <span class="pl-s1">app</span>.<span class="pl-en">run</span>()</pre></div> <p dir="auto">When you set the request body to <code class="notranslate">{}</code> with Postman or any HTTP clients, the first request will return 200, while the second request will return a 405 error response. The log shows the request method is <code class="notranslate">{}POST</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;{}POST / HTTP/1.1&quot; 405"><pre class="notranslate"><code class="notranslate">"{}POST / HTTP/1.1" 405 </code></pre></div> <p dir="auto">Notice the request body became the part of the request method.</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>PowerToys version: 0.21.1</li> <li>PowerToy Utility: Fancy Zones</li> <li>Running PowerToys as Admin: Yes</li> <li>Windows build number: 19041.508</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>(Checked) )Hold Shift key to activate zones while dragging</li> <li>Holds shift key to activate it</li> <li>Nothing happens</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <p dir="auto">Activate Zones While Dragging</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <p dir="auto">Does nothing</p> <h2 dir="auto">📷 Screenshots</h2> <p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/56634942/93656088-5e0afb00-fa5a-11ea-831a-ac8fa9597969.png"><img src="https://user-images.githubusercontent.com/56634942/93656088-5e0afb00-fa5a-11ea-831a-ac8fa9597969.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">ℹ Computer information</h2> <ul dir="auto"> <li>PowerToys version: v0.21.1</li> <li>PowerToy Utility: FancyZones</li> <li>Running PowerToys as Admin: No</li> <li>Windows build number: Windows 10 Version 2004: 19041.450</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>Check the <strong>Allow zones to span across monitors</strong> checkbox</li> <li>Configure a zone which uses multiple monitors via the <strong>Launch zones editor</strong> and Apply</li> <li>Attempt to snap window to zones, or use Shift key to highlight zones while dragging</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <ul dir="auto"> <li>A window should snap to a zone</li> <li>Zone highlighting ought to be functional</li> <li>The <strong>Allow zones to span across monitors</strong> setting should persist even when closing settings</li> <li>If there are errors "Activating" the zones, these should be raised to the user</li> </ul> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <ul dir="auto"> <li>A window will not snap to a zone when the <strong>Allow zones to span across monitors</strong> is configured</li> <li>Window zone highlighting is also not functional</li> <li>When FancyZones settings is closed and re-opened, the <strong>Allow zones to span across monitors</strong> checkbox is unchecked</li> <li>When <strong>Allow zones to span across monitors</strong> is toggled to checked, then unchecked, zone highlighting and snapping functions, though obviously not with the multi-monitor zones</li> </ul> <h3 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Other Notes</h3> <ul dir="auto"> <li>There is a difference in framerate/refresh rate between the two monitors--could that be an issue?</li> <li>System is a SurfaceBook 2 in a Surface Dock which drives a 2560 x 1440 monitor at <strong>60 fps</strong> and a 2560 x 1440 monitor at <strong>30 fps</strong> <ul dir="auto"> <li>The fps cannot be made the same as far as I can tell. Likely a hardware limitation.</li> </ul> </li> <li>Display is an LG 49 ultra-wide ( 5120 x 1440)</li> </ul> <h2 dir="auto">📷 Screenshots</h2> <ul dir="auto"> <li> <p dir="auto">FancyZones Settings:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16561584/92046816-9ca57380-ed40-11ea-8b1a-745150357616.png"><img src="https://user-images.githubusercontent.com/16561584/92046816-9ca57380-ed40-11ea-8b1a-745150357616.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">Zone Editor spanning monitors:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16561584/92046932-eee69480-ed40-11ea-8845-e7490a3e2687.png"><img src="https://user-images.githubusercontent.com/16561584/92046932-eee69480-ed40-11ea-8845-e7490a3e2687.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">Monitor configuration:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16561584/92046965-10e01700-ed41-11ea-8bc9-933e723b4998.png"><img src="https://user-images.githubusercontent.com/16561584/92046965-10e01700-ed41-11ea-8bc9-933e723b4998.png" alt="image" style="max-width: 100%;"></a></p> </li> </ul>
1
<p dir="auto">When using custom formatters/locators, duplicate axis labels are produced if the the formatters are set for both major and minor labels. I.e, this code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt from matplotlib import ticker # Setup the figure fig = plt.figure() ax = fig.add_subplot(111) # Setup a formatter (just returns the same label) fmt = ticker.StrMethodFormatter(&quot;{x:}&quot;) ax.xaxis.set_major_formatter(fmt) ax.xaxis.set_minor_formatter(fmt) # Setup a locator loc = ticker.LinearLocator(9) ax.xaxis.set_major_locator(loc) ax.xaxis.set_minor_locator(loc) # Rotate the labels, just to show that they are duplicated (one set of labels will get rotated, one will not) for lab in ax.xaxis.get_ticklabels(): lab.set_rotation(45) plt.draw() plt.show()"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt from matplotlib import ticker # Setup the figure fig = plt.figure() ax = fig.add_subplot(111) # Setup a formatter (just returns the same label) fmt = ticker.StrMethodFormatter("{x:}") ax.xaxis.set_major_formatter(fmt) ax.xaxis.set_minor_formatter(fmt) # Setup a locator loc = ticker.LinearLocator(9) ax.xaxis.set_major_locator(loc) ax.xaxis.set_minor_locator(loc) # Rotate the labels, just to show that they are duplicated (one set of labels will get rotated, one will not) for lab in ax.xaxis.get_ticklabels(): lab.set_rotation(45) plt.draw() plt.show() </code></pre></div> <p dir="auto">Produces duplicate labels (note: The set_rotation is not needed to produce the duplicates, but just shows that they actually are duplicated!)</p> <p dir="auto">If I remove the call to set_minor_locator/formatter, the code works as expected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt from matplotlib import ticker fig = plt.figure() ax = fig.add_subplot(111) fmt = ticker.StrMethodFormatter(&quot;{x:}&quot;) ax.xaxis.set_major_formatter(fmt) loc = ticker.LinearLocator(9) ax.xaxis.set_major_locator(loc) for lab in ax.xaxis.get_ticklabels(): lab.set_rotation(45) plt.draw() plt.show()"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt from matplotlib import ticker fig = plt.figure() ax = fig.add_subplot(111) fmt = ticker.StrMethodFormatter("{x:}") ax.xaxis.set_major_formatter(fmt) loc = ticker.LinearLocator(9) ax.xaxis.set_major_locator(loc) for lab in ax.xaxis.get_ticklabels(): lab.set_rotation(45) plt.draw() plt.show() </code></pre></div> <p dir="auto">I've been looking through the code for a day, but can't find anywhere where there is an obvious error and I don't think I am doing anything particularly unusual in my code...</p> <p dir="auto">Any idea what might be causing this?</p> <p dir="auto">As far as I can tell, in order to produce this behaviour you need to set both a formatter and a locator. I've only tested with the formatter/locator classes given in the code above so far.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong><br> I generated a very large dotplot (figsize=(100,10)), but it only shows partial x-axis.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env python import matplotlib matplotlib.use('Agg') # To solve remote session issues import matplotlib.pyplot as plt import sys, subprocess depth_file = sys.argv[1] window = int(100e3) total_job = int(subprocess.check_output(['wc', '-l', depth_file]).split(' ')[0]) plt.figure(figsize=(100,10), dpi=600) tick = int(10e6) # ticks interval: 10 Mb x, y = [], [] pre = -1 n = 0 depth = 0 with open(depth_file, 'r') as inf: for line in inf: n += 1 line = line.strip().split('\t')[1:] line[0] = int(line[0]) line[1] = int(line[1]) if n % window == 0 or line[0] == total_job: pos = (line[0] - 1) / window + 1 depth = depth*1.0 / n if depth &gt;= 100: depth = 100 c = 'y^' a = 0.4 elif depth &lt;= 10 and depth &gt;0: c = 'b.' a = 0.8 elif depth == 0: c = 'rv' a = 0.8 else: c = 'k.' a = 0.4 plt.plot(pos, depth, c, alpha=a, clip_on=False)#, ms=2) n = 0 depth = 0 else: depth += line[1] process = round(line[0] * 100.0 / total_job, 1) if process &gt; pre: print '\rProcessing: %s' % str(process) + &quot;%...&quot;, sys.stdout.flush() pre = process plt.xlim(0, 119556435/window+1) plt.ylim(0, 100) plt.xticks(map(lambda x: (x+1)*tick/window, range(total_job/tick)), map(lambda x: str((x+1)*10) + 'Mb', range(total_job/tick)), fontsize=28) plt.yticks([0, 50, 100], [&quot;0&quot;, &quot;50&quot;, &quot;100&quot;], fontsize=28) plt.xlabel('Position', fontsize=34) plt.ylabel('Depth', fontsize=34) #plt.gca().set_aspect('equal', adjustable='box') plt.title(depth_file, loc='left') plt.grid(b='on', lw=0.4, ls='--', axis='x') plt.tight_layout() plt.savefig('%s.w100k.png' % depth_file, dpi=600, transparent=True) print 'Done.'"><pre class="notranslate"><span class="pl-c">#!/usr/bin/env python</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-s1">matplotlib</span>.<span class="pl-en">use</span>(<span class="pl-s">'Agg'</span>) <span class="pl-c"># To solve remote session issues</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">subprocess</span> <span class="pl-s1">depth_file</span> <span class="pl-c1">=</span> <span class="pl-s1">sys</span>.<span class="pl-s1">argv</span>[<span class="pl-c1">1</span>] <span class="pl-s1">window</span> <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-c1">100e3</span>) <span class="pl-s1">total_job</span> <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-s1">subprocess</span>.<span class="pl-en">check_output</span>([<span class="pl-s">'wc'</span>, <span class="pl-s">'-l'</span>, <span class="pl-s1">depth_file</span>]).<span class="pl-en">split</span>(<span class="pl-s">' '</span>)[<span class="pl-c1">0</span>]) <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">100</span>,<span class="pl-c1">10</span>), <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">600</span>) <span class="pl-s1">tick</span> <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-c1">10e6</span>) <span class="pl-c"># ticks interval: 10 Mb</span> <span class="pl-s1">x</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> [], [] <span class="pl-s1">pre</span> <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span> <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-s1">depth</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">depth_file</span>, <span class="pl-s">'r'</span>) <span class="pl-k">as</span> <span class="pl-s1">inf</span>: <span class="pl-k">for</span> <span class="pl-s1">line</span> <span class="pl-c1">in</span> <span class="pl-s1">inf</span>: <span class="pl-s1">n</span> <span class="pl-c1">+=</span> <span class="pl-c1">1</span> <span class="pl-s1">line</span> <span class="pl-c1">=</span> <span class="pl-s1">line</span>.<span class="pl-en">strip</span>().<span class="pl-en">split</span>(<span class="pl-s">'<span class="pl-cce">\t</span>'</span>)[<span class="pl-c1">1</span>:] <span class="pl-s1">line</span>[<span class="pl-c1">0</span>] <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-s1">line</span>[<span class="pl-c1">0</span>]) <span class="pl-s1">line</span>[<span class="pl-c1">1</span>] <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-s1">line</span>[<span class="pl-c1">1</span>]) <span class="pl-k">if</span> <span class="pl-s1">n</span> <span class="pl-c1">%</span> <span class="pl-s1">window</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span> <span class="pl-c1">or</span> <span class="pl-s1">line</span>[<span class="pl-c1">0</span>] <span class="pl-c1">==</span> <span class="pl-s1">total_job</span>: <span class="pl-s1">pos</span> <span class="pl-c1">=</span> (<span class="pl-s1">line</span>[<span class="pl-c1">0</span>] <span class="pl-c1">-</span> <span class="pl-c1">1</span>) <span class="pl-c1">/</span> <span class="pl-s1">window</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span> <span class="pl-s1">depth</span> <span class="pl-c1">=</span> <span class="pl-s1">depth</span><span class="pl-c1">*</span><span class="pl-c1">1.0</span> <span class="pl-c1">/</span> <span class="pl-s1">n</span> <span class="pl-k">if</span> <span class="pl-s1">depth</span> <span class="pl-c1">&gt;=</span> <span class="pl-c1">100</span>: <span class="pl-s1">depth</span> <span class="pl-c1">=</span> <span class="pl-c1">100</span> <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s">'y^'</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">0.4</span> <span class="pl-k">elif</span> <span class="pl-s1">depth</span> <span class="pl-c1">&lt;=</span> <span class="pl-c1">10</span> <span class="pl-c1">and</span> <span class="pl-s1">depth</span> <span class="pl-c1">&gt;</span><span class="pl-c1">0</span>: <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s">'b.'</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">0.8</span> <span class="pl-k">elif</span> <span class="pl-s1">depth</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>: <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s">'rv'</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">0.8</span> <span class="pl-k">else</span>: <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s">'k.'</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-c1">0.4</span> <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">pos</span>, <span class="pl-s1">depth</span>, <span class="pl-s1">c</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-s1">a</span>, <span class="pl-s1">clip_on</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)<span class="pl-c">#, ms=2)</span> <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-s1">depth</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-k">else</span>: <span class="pl-s1">depth</span> <span class="pl-c1">+=</span> <span class="pl-s1">line</span>[<span class="pl-c1">1</span>] <span class="pl-s1">process</span> <span class="pl-c1">=</span> <span class="pl-en">round</span>(<span class="pl-s1">line</span>[<span class="pl-c1">0</span>] <span class="pl-c1">*</span> <span class="pl-c1">100.0</span> <span class="pl-c1">/</span> <span class="pl-s1">total_job</span>, <span class="pl-c1">1</span>) <span class="pl-k">if</span> <span class="pl-s1">process</span> <span class="pl-c1">&gt;</span> <span class="pl-s1">pre</span>: <span class="pl-k">print</span> <span class="pl-s">'<span class="pl-cce">\r</span>Processing: %s'</span> <span class="pl-c1">%</span> <span class="pl-en">str</span>(<span class="pl-s1">process</span>) <span class="pl-c1">+</span> <span class="pl-s">"%..."</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">stdout</span>.<span class="pl-en">flush</span>() <span class="pl-s1">pre</span> <span class="pl-c1">=</span> <span class="pl-s1">process</span> <span class="pl-s1">plt</span>.<span class="pl-en">xlim</span>(<span class="pl-c1">0</span>, <span class="pl-c1">119556435</span><span class="pl-c1">/</span><span class="pl-s1">window</span><span class="pl-c1">+</span><span class="pl-c1">1</span>) <span class="pl-s1">plt</span>.<span class="pl-en">ylim</span>(<span class="pl-c1">0</span>, <span class="pl-c1">100</span>) <span class="pl-s1">plt</span>.<span class="pl-en">xticks</span>(<span class="pl-en">map</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: (<span class="pl-s1">x</span><span class="pl-c1">+</span><span class="pl-c1">1</span>)<span class="pl-c1">*</span><span class="pl-s1">tick</span><span class="pl-c1">/</span><span class="pl-s1">window</span>, <span class="pl-en">range</span>(<span class="pl-s1">total_job</span><span class="pl-c1">/</span><span class="pl-s1">tick</span>)), <span class="pl-en">map</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-en">str</span>((<span class="pl-s1">x</span><span class="pl-c1">+</span><span class="pl-c1">1</span>)<span class="pl-c1">*</span><span class="pl-c1">10</span>) <span class="pl-c1">+</span> <span class="pl-s">'Mb'</span>, <span class="pl-en">range</span>(<span class="pl-s1">total_job</span><span class="pl-c1">/</span><span class="pl-s1">tick</span>)), <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-c1">28</span>) <span class="pl-s1">plt</span>.<span class="pl-en">yticks</span>([<span class="pl-c1">0</span>, <span class="pl-c1">50</span>, <span class="pl-c1">100</span>], [<span class="pl-s">"0"</span>, <span class="pl-s">"50"</span>, <span class="pl-s">"100"</span>], <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-c1">28</span>) <span class="pl-s1">plt</span>.<span class="pl-en">xlabel</span>(<span class="pl-s">'Position'</span>, <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-c1">34</span>) <span class="pl-s1">plt</span>.<span class="pl-en">ylabel</span>(<span class="pl-s">'Depth'</span>, <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-c1">34</span>) <span class="pl-c">#plt.gca().set_aspect('equal', adjustable='box')</span> <span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s1">depth_file</span>, <span class="pl-s1">loc</span><span class="pl-c1">=</span><span class="pl-s">'left'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">grid</span>(<span class="pl-s1">b</span><span class="pl-c1">=</span><span class="pl-s">'on'</span>, <span class="pl-s1">lw</span><span class="pl-c1">=</span><span class="pl-c1">0.4</span>, <span class="pl-s1">ls</span><span class="pl-c1">=</span><span class="pl-s">'--'</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s">'x'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">tight_layout</span>() <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'%s.w100k.png'</span> <span class="pl-c1">%</span> <span class="pl-s1">depth_file</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">600</span>, <span class="pl-s1">transparent</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-k">print</span> <span class="pl-s">'Done.'</span></pre></div> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating System: Ubuntu 14.04</li> <li>Matplotlib Version: 2.0.2</li> <li>Python Version: 2.7.13</li> <li>Jupyter Version (if applicable):</li> <li>Other Libraries:</li> </ul>
0
<h2 dir="auto">Video Conference: allow setting hotkeys for "on" and "off" (rather than toggle) for mic mute and camera mute</h2> <p dir="auto">My young kids are using Teams at school. They have to stay muted until asked to speak by the teacher. They are easily confused/distracted by having to look for mute/unmute in the Teams UX, esp. when a teacher asks them a difficult question.</p> <p dir="auto">I use an external device that emulates keyboards to provide a physical button to mute/unmute. This helps but leaves the challenge of kids not knowing if they are in a muted or unmuted state. A more intuitive option would be to have separate "mute" and "unmute" buttons.</p> <p dir="auto"><strong>PowerToys can enable this by allowing to define distinct "mute" and "unmute" hotkey combinations for mic and camera.</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18175040/95517968-f10ec500-0976-11eb-9356-e38683385613.png"><img src="https://user-images.githubusercontent.com/18175040/95517968-f10ec500-0976-11eb-9356-e38683385613.png" alt="image" style="max-width: 100%;"></a></p> <hr> <p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">This feature would prevent the OS from going to sleep with the options to set a timer for when it can go back to sleep. This functionality is provided by the following two sources for free; however, I choose not to use these since they are not open-source (or I couldn't find the source code). Also the caffeine software uses key strokes which is less than desirable than an API approach that amphetamine takes.</p> <p dir="auto"><a href="https://zhornsoftware.co.uk/caffeine/" rel="nofollow">https://zhornsoftware.co.uk/caffeine/</a><br> <a href="https://www.d7xtech.com/free-software/amphetamine/" rel="nofollow">https://www.d7xtech.com/free-software/amphetamine/</a></p> <h2 dir="auto">Basic implementation details</h2> <ul dir="auto"> <li>Right clicking on PowerToys system tray icon will display whether or not this feature is currently active</li> <li>Right clicking on PowerToys system tray icon will have an option to allow someone to start/end this feature with a default setting</li> <li>Right clicking on PowerToys system tray will also include options for this feature where you can quickly specify a time limit for this feature (e.g. Keep Awake for 5 min, 1 hour, Forever, etc)</li> <li>PowerToys Run can activate/deactivate this new feature quickly</li> </ul>
0
<p dir="auto">On a clean checkout I get segfaults in test/fft.jl when I run <code class="notranslate">make testall</code>. In particular, at least these lines in test/fft.jl seem to cause segfaults while the unmarked ones don't (line numbers included):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 10 fft_m4 = fft(m4) 11 fft2_m4 = fft2(m4) # segfault 12 fftd2_m4 = fft(m4,2) 13 ifft_fft_m4 = ifft(fft(m4)) 14 fftn_m4 = fftn(m4) # segfault 15 ifftn_fftn_m4 = ifftn(fftn(m4)) # segfault"><pre class="notranslate"><code class="notranslate"> 10 fft_m4 = fft(m4) 11 fft2_m4 = fft2(m4) # segfault 12 fftd2_m4 = fft(m4,2) 13 ifft_fft_m4 = ifft(fft(m4)) 14 fftn_m4 = fftn(m4) # segfault 15 ifftn_fftn_m4 = ifftn(fftn(m4)) # segfault </code></pre></div> <p dir="auto">I'm on an Arch box, and I built against MKL 10.319:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ uname -a Linux blah 3.4.4-1-ARCH #1 SMP PREEMPT Sat Jun 23 10:53:18 CEST 2012 x86_64 GNU/Linux"><pre class="notranslate"><code class="notranslate">$ uname -a Linux blah 3.4.4-1-ARCH #1 SMP PREEMPT Sat Jun 23 10:53:18 CEST 2012 x86_64 GNU/Linux </code></pre></div> <p dir="auto">I tried to get something useful out of running gdb on the debug build, but I don't really know what I'm doing:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="○ gdb --args ./usr/bin/julia-debug-basic test/fft.jl GNU gdb (GDB) 7.4.1 This GDB was configured as &quot;x86_64-unknown-linux-gnu&quot;. Reading symbols from /home/mattjj/builds/julia/usr/bin/julia-debug-basic...done. (gdb) run Starting program: /home/mattjj/builds/julia/usr/bin/julia-debug-basic test/fft.jl [Thread debugging using libthread_db enabled] Using host libthread_db library &quot;/lib/libthread_db.so.1&quot;. [New Thread 0x7ffff3f4d700 (LWP 10340)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff45b164d in fftw_execute () from /home/mattjj/builds/julia/usr/lib/libfftw3.so.3 (gdb) bt #0 0x00007ffff45b164d in fftw_execute () from /home/mattjj/builds/julia/usr/lib/libfftw3.so.3 #1 0x00007ffff5aef682 in ?? () #2 0x00007fffffffc110 in ?? () #3 0x0000000000000004 in ?? () #4 0x0000000000000000 in (gdb) info threads Id Target Id Frame 2 Thread 0x7ffff3f4d700 (LWP 10340) &quot;julia-debug-bas&quot; 0x00007ffff77be8f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 * 1 Thread 0x7ffff7fe2740 (LWP 10337) &quot;julia-debug-bas&quot; 0x00007ffff45b164d in fftw_execute () from /home/mattjj/builds/julia/usr/lib/libfftw3.so.3 (gdb) thread 2 [Switching to thread 2 (Thread 0x7ffff3f4d700 (LWP 10340))] #0 0x00007ffff77be8f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 (gdb) bt #0 0x00007ffff77be8f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007ffff6c167bc in run_io_thr (arg=0x0) at sys.c:304 #2 0x00007ffff77bae0e in start_thread () from /lib/libpthread.so.0 #3 0x00007ffff60751ed in clone () from /lib/libc.so.6"><pre class="notranslate"><code class="notranslate">○ gdb --args ./usr/bin/julia-debug-basic test/fft.jl GNU gdb (GDB) 7.4.1 This GDB was configured as "x86_64-unknown-linux-gnu". Reading symbols from /home/mattjj/builds/julia/usr/bin/julia-debug-basic...done. (gdb) run Starting program: /home/mattjj/builds/julia/usr/bin/julia-debug-basic test/fft.jl [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". [New Thread 0x7ffff3f4d700 (LWP 10340)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff45b164d in fftw_execute () from /home/mattjj/builds/julia/usr/lib/libfftw3.so.3 (gdb) bt #0 0x00007ffff45b164d in fftw_execute () from /home/mattjj/builds/julia/usr/lib/libfftw3.so.3 #1 0x00007ffff5aef682 in ?? () #2 0x00007fffffffc110 in ?? () #3 0x0000000000000004 in ?? () #4 0x0000000000000000 in (gdb) info threads Id Target Id Frame 2 Thread 0x7ffff3f4d700 (LWP 10340) "julia-debug-bas" 0x00007ffff77be8f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 * 1 Thread 0x7ffff7fe2740 (LWP 10337) "julia-debug-bas" 0x00007ffff45b164d in fftw_execute () from /home/mattjj/builds/julia/usr/lib/libfftw3.so.3 (gdb) thread 2 [Switching to thread 2 (Thread 0x7ffff3f4d700 (LWP 10340))] #0 0x00007ffff77be8f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 (gdb) bt #0 0x00007ffff77be8f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0x00007ffff6c167bc in run_io_thr (arg=0x0) at sys.c:304 #2 0x00007ffff77bae0e in start_thread () from /lib/libpthread.so.0 #3 0x00007ffff60751ed in clone () from /lib/libc.so.6 </code></pre></div>
<p dir="auto">The <code class="notranslate">__source__</code> macro meta-argument seems to lose its bearing when used inside of <code class="notranslate">Cmd</code> interpolation. Example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat test.jl z = `$(@__FILE__)` @show z $ julia test.jl z = `none`"><pre class="notranslate"><code class="notranslate">$ cat test.jl z = `$(@__FILE__)` @show z $ julia test.jl z = `none` </code></pre></div> <p dir="auto">This is particularly an issue for macros like <code class="notranslate">Pkg.Artifacts.@artifact_str</code> which use the <code class="notranslate">__source__.file</code> attribute to look up the location of the appropriate <code class="notranslate">Artifacts.toml</code> file.</p>
0
<p dir="auto">Traceback (most recent call last):<br> File "C:\Users\Scott Ward-Corderoy\Desktop\python_work\Projects\Data Visualisation\generating_data.py", line 1, in <br> import matplotlib.pyplot as plt<br> File "C:\Users\Scott Ward-Corderoy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\matplotlib_<em>init</em>_.py", line 174, in <br> <em>check_versions()<br> File "C:\Users\Scott Ward-Corderoy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\matplotlib_<em>init</em></em>.py", line 159, in _check_versions<br> from . import ft2font<br> ImportError: DLL load failed: The specified module could not be found.</p> <p dir="auto">I get the above error when trying to import matplotlib. I am new to programming and am unsure what I have done wrong. Any help would be massively appreciated. I assume more information is needed but I do not know what.</p> <p dir="auto">Thanks</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">On some Windows machines (including Windows 10 and Windows 7), we experienced <code class="notranslate">ImportError: DLL load failed: The specific module could not be found</code> after upgrading from Matplotlib 3.3.0 to 3.3.1.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto"><code class="notranslate">import matplotlib</code> would trigger the import error while trying to import ft2font.</p> <p dir="auto"><strong>Actual outcome</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: import matplotlib --------------------------------------------------------------------------- ImportError Traceback (most recent call last) &lt;ipython-input-1-0484cd13f94d&gt; in &lt;module&gt; ----&gt; 1 import matplotlib c:\users\nzlab\envs\nta-1465\lib\site-packages\matplotlib\__init__.py in &lt;module&gt; 172 173 --&gt; 174 _check_versions() 175 176 c:\users\nzlab\envs\nta-1465\lib\site-packages\matplotlib\__init__.py in _check_versions() 157 # Quickfix to ensure Microsoft Visual C++ redistributable 158 # DLLs are loaded before importing kiwisolver --&gt; 159 from . import ft2font 160 161 for modname, minver in [ ImportError: DLL load failed: The specified module could not be found. "><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">ImportError</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-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-c1">-</span><span class="pl-c1">0484</span><span class="pl-s1">cd13f94d</span><span class="pl-c1">&gt;</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-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-s1">c</span>:\u<span class="pl-s1">sers</span>\n<span class="pl-s1">zlab</span>\e<span class="pl-s1">nvs</span>\n<span class="pl-s1">ta</span><span class="pl-c1">-</span><span class="pl-c1">1465</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\m<span class="pl-s1">atplotlib</span>\_<span class="pl-s1">_init__</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-c1">172</span> <span class="pl-c1">173</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">174</span> <span class="pl-en">_check_versions</span>() <span class="pl-c1">175</span> <span class="pl-c1">176</span> <span class="pl-s1">c</span>:\u<span class="pl-s1">sers</span>\n<span class="pl-s1">zlab</span>\e<span class="pl-s1">nvs</span>\n<span class="pl-s1">ta</span><span class="pl-c1">-</span><span class="pl-c1">1465</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\m<span class="pl-s1">atplotlib</span>\_<span class="pl-s1">_init__</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_check_versions</span>() <span class="pl-c1">157</span> <span class="pl-c"># Quickfix to ensure Microsoft Visual C++ redistributable</span> <span class="pl-c1">158</span> <span class="pl-c"># DLLs are loaded before importing kiwisolver</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">159</span> <span class="pl-k">from</span> . <span class="pl-k">import</span> <span class="pl-s1">ft2font</span> <span class="pl-c1">160</span> <span class="pl-c1">161</span> <span class="pl-k">for</span> <span class="pl-s1">modname</span>, <span class="pl-s1">minver</span> <span class="pl-c1">in</span> [ <span class="pl-v">ImportError</span>: <span class="pl-v">DLL</span> <span class="pl-s1">load</span> <span class="pl-s1">failed</span>: <span class="pl-v">The</span> <span class="pl-s1">specified</span> <span class="pl-s1">module</span> <span class="pl-s1">could</span> <span class="pl-c1">not</span> <span class="pl-s1">be</span> <span class="pl-s1">found</span>.</pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">No error should be presented.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Windows 7 (64bit), Windows 10 (64bit)</li> <li>Matplotlib version: 3.3.1</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li> <li>Python version: Python 3.7.6</li> <li>Jupyter version (if applicable):</li> <li>Other libraries: Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 <strong>NOT INSTALLED</strong></li> </ul> <p dir="auto">**Further diagnose shows: **</p> <ul dir="auto"> <li>ft2font.cp37-win_amd64.pyd (Matplotlib 3.3.0) links VCRUNTIME140.dll</li> <li>ft2font.cp37-win_amd64.pyd (Matplotlib 3.3.1) links VCRUNTIME140_1.dll</li> </ul> <p dir="auto">Those computers which have DLL load failed don't have VCRUNTIME140_1.dll in DLL search path.</p> <p dir="auto"><strong>Solution</strong><br> Installing the latest <a href="https://support.microsoft.com/en-nz/help/2977003/the-latest-supported-visual-c-downloads" rel="nofollow">Visual Studio 2015, 2019 and 2019 redistributable</a> should address the issue.</p> <p dir="auto"><strong>Question</strong><br> Is changing in VC++ API (from 14 to 14.1) an intentional move on Matplotlib 3.3.1 for Windows release? If so, should the VC++ dependency to be added to Installation Guide?</p>
1
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">Many data visualization and graphics library do DOM manipulation and most of them the DOMElement can be extracted.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const rect = SVG.adopt(this.$refs.rect.elm) rect.node // this is the SVGElement and in chrome console will output &lt;rect id=&quot;r1&quot;&gt;&lt;/rect&gt;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">rect</span> <span class="pl-c1">=</span> <span class="pl-c1">SVG</span><span class="pl-kos">.</span><span class="pl-en">adopt</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$refs</span><span class="pl-kos">.</span><span class="pl-c1">rect</span><span class="pl-kos">.</span><span class="pl-c1">elm</span><span class="pl-kos">)</span> <span class="pl-s1">rect</span><span class="pl-kos">.</span><span class="pl-c1">node</span> <span class="pl-c">// this is the SVGElement and in chrome console will output &lt;rect id="r1"&gt;&lt;/rect&gt;</span></pre></div> <p dir="auto">Let's say we want to build an abstraction by design it as a component that can draw a rectangle and after the drawing is done (by hold&amp;drag mouse button) that rectangle will be placed in another section. The usage will be like this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;annotator&gt; &lt;img src=&quot;background&quot; /&gt; &lt;rect slot=&quot;drawing&quot; stroke=&quot;red&quot; /&gt; &lt;rect slot=&quot;annotation&quot; stroke=&quot;green&quot; x=&quot;100&quot; y=&quot;100&quot; width=&quot;100&quot; height=&quot;100&quot; /&gt; &lt;/annotator&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">annotator</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">background</span>" /&gt; <span class="pl-kos">&lt;</span><span class="pl-ent">rect</span> <span class="pl-c1">slot</span>="<span class="pl-s">drawing</span>" <span class="pl-c1">stroke</span>="<span class="pl-s">red</span>" /&gt; <span class="pl-kos">&lt;</span><span class="pl-ent">rect</span> <span class="pl-c1">slot</span>="<span class="pl-s">annotation</span>" <span class="pl-c1">stroke</span>="<span class="pl-s">green</span>" <span class="pl-c1">x</span>="<span class="pl-s">100</span>" <span class="pl-c1">y</span>="<span class="pl-s">100</span>" <span class="pl-c1">width</span>="<span class="pl-s">100</span>" <span class="pl-c1">height</span>="<span class="pl-s">100</span>" /&gt; <span class="pl-kos">&lt;/</span><span class="pl-ent">annotator</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">and <code class="notranslate">&lt;annotator&gt;</code> will be like this</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;template&gt; &lt;svg&gt; &lt;foreignObject&gt; &lt;slot&gt;&lt;/slot&gt; &lt;/foreignObject&gt; &lt;g fill=&quot;black&quot; transform=&quot;translate(100, 100)&quot;&gt; &lt;slot name=&quot;annotation&quot;&gt;&lt;/slot&gt; &lt;/g&gt; &lt;slot name=&quot;drawing&quot;&gt;&lt;/slot&gt; &lt;/svg&gt; &lt;/template&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">template</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">svg</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">foreignObject</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">slot</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">slot</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">foreignObject</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">g</span> <span class="pl-c1">fill</span>="<span class="pl-s">black</span>" <span class="pl-c1">transform</span>="<span class="pl-s">translate(100, 100)</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">slot</span> <span class="pl-c1">name</span>="<span class="pl-s">annotation</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">slot</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">g</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">slot</span> <span class="pl-c1">name</span>="<span class="pl-s">drawing</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">slot</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">svg</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">template</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">After the drawing is done, the rectangle will be moved and fill it with black (or SVG texture for the more complex case). This can be done by clone the element in <code class="notranslate">drawing</code> slots to <code class="notranslate">annotation</code> slot.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const rect = SVG.adopt(this.$slots.drawing[0].elm) rect.on('click', event =&gt; doDrawingLogic(event)) rect.on('drawfinish', event =&gt; { // the reason to clone and move slot is so any logic in annotation slot can be applied // the clone itself is to preserve `&lt;rect stroke=&quot;red&quot; slot=&quot;drawing&quot; /&gt;` so that it can be referenced again /** some logic here */ })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">rect</span> <span class="pl-c1">=</span> <span class="pl-c1">SVG</span><span class="pl-kos">.</span><span class="pl-en">adopt</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$slots</span><span class="pl-kos">.</span><span class="pl-c1">drawing</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">elm</span><span class="pl-kos">)</span> <span class="pl-s1">rect</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">,</span> <span class="pl-s1">event</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">doDrawingLogic</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-s1">rect</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'drawfinish'</span><span class="pl-kos">,</span> <span class="pl-s1">event</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// the reason to clone and move slot is so any logic in annotation slot can be applied</span> <span class="pl-c">// the clone itself is to preserve `&lt;rect stroke="red" slot="drawing" /&gt;` so that it can be referenced again</span> <span class="pl-c">/** some logic here */</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">In that case there is need to make createElement accept DOMElement for duplicating or maybe also converting Node to VNode.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="newRect = newRect.clone().animate().dmove(100, 100) const clone = this.$createElement(newRect.node) this.$slots.annotation.push(clone)"><pre class="notranslate"><span class="pl-s1">newRect</span> <span class="pl-c1">=</span> <span class="pl-s1">newRect</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">animate</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">dmove</span><span class="pl-kos">(</span><span class="pl-c1">100</span><span class="pl-kos">,</span> <span class="pl-c1">100</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">clone</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">$createElement</span><span class="pl-kos">(</span><span class="pl-s1">newRect</span><span class="pl-kos">.</span><span class="pl-c1">node</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$slots</span><span class="pl-kos">.</span><span class="pl-c1">annotation</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">clone</span><span class="pl-kos">)</span></pre></div> <blockquote> <p dir="auto">In above example, if createElement act as creating element then there will be 2 rectangles lol</p> </blockquote> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">Basic usage</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const div = document.getElementById(&quot;myDiv&quot;) this.$createElement(div)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">div</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">"myDiv"</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">$createElement</span><span class="pl-kos">(</span><span class="pl-s1">div</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Clone and move from 1 slots to another slot</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const clone = this.$createElement(this.$slots.mySlot[0].elm) this.$slots.default.push(clone)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">clone</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">$createElement</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$slots</span><span class="pl-kos">.</span><span class="pl-c1">mySlot</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">elm</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">$slots</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">clone</span><span class="pl-kos">)</span></pre></div>
<h3 dir="auto">Version</h3> <p dir="auto">2.5.13</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/mmestas/ca7v214w/1/" rel="nofollow">https://jsfiddle.net/mmestas/ca7v214w/1/</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto"></p> <p dir="auto">Type in 0-2 or any number value with a "-" after it.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">That only numbers are allowed</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">the v.model.number with type=number allows for the input of characters other than numbers, specifically, "-".<br> My guess is this is allowed because of numbers like "-3" but this enables someone to enter (eg: 0-2) into the input.<br> I had to create special functions using v-on:keypress and v-on:keyup to validate the inputs to not receive something like "0-2"</p>
0
<p dir="auto">Causes issue if you try to run a cron job as the ES user. Issue on centos 6, package from the repo.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[centos@ip-10-233-237-10 ~]$ sudo su - elasticsearch -s /bin/bash su: warning: cannot change directory to /home/elasticsearch: No such file or directory -bash-4.1$ grep elastic /etc/passwd elasticsearch:x:498:498:elasticsearch user:/home/elasticsearch:/sbin/nologin -bash-4.1$ ls -l /home/ total 4 drwx------. 3 centos centos 4096 Nov 2 20:23 centos"><pre class="notranslate"><code class="notranslate">[centos@ip-10-233-237-10 ~]$ sudo su - elasticsearch -s /bin/bash su: warning: cannot change directory to /home/elasticsearch: No such file or directory -bash-4.1$ grep elastic /etc/passwd elasticsearch:x:498:498:elasticsearch user:/home/elasticsearch:/sbin/nologin -bash-4.1$ ls -l /home/ total 4 drwx------. 3 centos centos 4096 Nov 2 20:23 centos </code></pre></div>
<p dir="auto">We have a entirely Windows-based environment with no options to setup dedicated Linux VMs for Elastic Stack. Elasticsearch comes with a well functioning service wrapper.<br> Unfortunately, Logstash and Kibana don't...<br> To be able to install Logstash and Kibana as a service on Windows one has to use some other service wrapper - like for example the Non-Sucking-Service-Manager (<a href="https://nssm.cc/" rel="nofollow">https://nssm.cc/</a>), which in contrary of its name, really sucks! Reason: terminating the service won't always also terminate all Logstash/Kibana related processes. Meaning if you restart a service, instead of killing all processes from the old one and instantiating new ones, you have duplicated processes running.<br> This is not how I imagine running Logstash and Kibana for a big project setup...<br> Both should come with as-easy-installable services as Elasticsearch.</p>
0
<p dir="auto">Stack:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fatal Exception: java.lang.IllegalStateException: Already released at com.bumptech.glide.util.pool.StateVerifier$DefaultStateVerifier.throwIfRecycled(StateVerifier.java:44) at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:518) at com.bumptech.glide.load.engine.EngineJob.handleResultOnMainThread(EngineJob.java:217) at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:322) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5584) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) at dalvik.system.NativeStart.main(NativeStart.java)"><pre class="notranslate"><code class="notranslate">Fatal Exception: java.lang.IllegalStateException: Already released at com.bumptech.glide.util.pool.StateVerifier$DefaultStateVerifier.throwIfRecycled(StateVerifier.java:44) at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:518) at com.bumptech.glide.load.engine.EngineJob.handleResultOnMainThread(EngineJob.java:217) at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:322) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5584) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) at dalvik.system.NativeStart.main(NativeStart.java) </code></pre></div> <p dir="auto"><a href="http://crashes.to/s/77a94a0d3c4" rel="nofollow">Fabric</a></p>
<p dir="auto"><strong>Glide Version</strong>:<br> 4.4.0</p> <p dir="auto"><strong>Integration libraries</strong>:<br> "com.squareup.okhttp3:okhttp:3.6.0",<br> "com.squareup.okhttp3:logging-interceptor:3.6.0",<br> "com.github.bumptech.glide:glide:4.4.0",<br> 'com.github.bumptech.glide:compiler:4.4.0',<br> "com.github.bumptech.glide:okhttp3-integration:4.4.0",</p> <p dir="auto"><strong>Device/Android Version</strong>:<br> Huawei P6-T00 4.4.2</p> <p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br> I come across a crash when i quickly drag RecyclerView. I want to load original picture when load failed the thumbnail. if i delete "error(Glide.with(applicationContext).load(url))", it will be good running.</p> <p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" Glide.with(applicationContext) .load(Utils.getImageCompress(url)) .error(Glide.with(applicationContext).load(url)) .into(mImageView);"><pre class="notranslate"> <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">applicationContext</span>) .<span class="pl-en">load</span>(<span class="pl-smi">Utils</span>.<span class="pl-en">getImageCompress</span>(<span class="pl-s1">url</span>)) .<span class="pl-en">error</span>(<span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">applicationContext</span>).<span class="pl-en">load</span>(<span class="pl-s1">url</span>)) .<span class="pl-en">into</span>(<span class="pl-s1">mImageView</span>);</pre></div> <p dir="auto"><strong>Layout XML</strong>:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;com.xxxx.views.AsyncRoundedImageView android:id=&quot;@id/imageview1&quot; android:layout_width=&quot;@dimen/_190px2dp&quot; android:layout_height=&quot;@dimen/_190px2dp&quot; android:layout_below=&quot;@id/imageview6&quot; android:layout_toRightOf=&quot;@id/imageview6&quot; android:src=&quot;@mipmap/ic_launcher&quot; app:riv_corner_radius=&quot;@dimen/_6px2dp&quot; /&gt;"><pre class="notranslate">&lt;<span class="pl-ent">com</span>.xxxx.views.AsyncRoundedImageView <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/imageview1<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/_190px2dp<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/_190px2dp<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_below</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/imageview6<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_toRightOf</span>=<span class="pl-s"><span class="pl-pds">"</span>@id/imageview6<span class="pl-pds">"</span></span> <span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">src</span>=<span class="pl-s"><span class="pl-pds">"</span>@mipmap/ic_launcher<span class="pl-pds">"</span></span> <span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">riv_corner_radius</span>=<span class="pl-s"><span class="pl-pds">"</span>@dimen/_6px2dp<span class="pl-pds">"</span></span> /&gt;</pre></div> <p dir="auto"><strong>Stack trace / LogCat</strong>:</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: Already released at com.bumptech.glide.util.pool.StateVerifier$DefaultStateVerifier.throwIfRecycled(StateVerifier.java:44) at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:595) at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:591) at com.bumptech.glide.load.engine.EngineJob.handleExceptionOnMainThread(EngineJob.java:292) at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:325) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5253) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:939) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132) at dalvik.system.NativeStart.main(Native Method)"><pre class="notranslate"><span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">IllegalStateException</span>: <span class="pl-en">Already</span> <span class="pl-en">released</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">pool</span><span class="pl-kos">.</span><span class="pl-en">StateVerifier</span>$DefaultStateVerifier<span class="pl-kos">.</span><span class="pl-en">throwIfRecycled</span><span class="pl-kos">(</span><span class="pl-v">StateVerifier</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:44</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">.</span><span class="pl-en">SingleRequest</span><span class="pl-kos">.</span><span class="pl-en">onLoadFailed</span><span class="pl-kos">(</span><span class="pl-v">SingleRequest</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:595</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">.</span><span class="pl-en">SingleRequest</span><span class="pl-kos">.</span><span class="pl-en">onLoadFailed</span><span class="pl-kos">(</span><span class="pl-v">SingleRequest</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:591</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">EngineJob</span><span class="pl-kos">.</span><span class="pl-en">handleExceptionOnMainThread</span><span class="pl-kos">(</span><span class="pl-v">EngineJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:292</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">EngineJob</span>$MainThreadCallback<span class="pl-kos">.</span><span class="pl-en">handleMessage</span><span class="pl-kos">(</span><span class="pl-v">EngineJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:325</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">Handler</span><span class="pl-kos">.</span><span class="pl-en">dispatchMessage</span><span class="pl-kos">(</span><span class="pl-v">Handler</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:98</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">Looper</span><span class="pl-kos">.</span><span class="pl-en">loop</span><span class="pl-kos">(</span><span class="pl-v">Looper</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:136</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">app</span><span class="pl-kos">.</span><span class="pl-en">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">ActivityThread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:5253</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">reflect</span><span class="pl-kos">.</span><span class="pl-en">Method</span><span class="pl-kos">.</span><span class="pl-en">invokeNative</span><span class="pl-kos">(</span><span class="pl-en">Native</span> <span class="pl-v">Method</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">reflect</span><span class="pl-kos">.</span><span class="pl-en">Method</span><span class="pl-kos">.</span><span class="pl-en">invoke</span><span class="pl-kos">(</span><span class="pl-v">Method</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:515</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">ZygoteInit</span>$MethodAndArgsCaller<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:939</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">internal</span><span class="pl-kos">.</span><span class="pl-en">os</span><span class="pl-kos">.</span><span class="pl-en">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">ZygoteInit</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:755</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">de</span><span class="pl-kos">.</span><span class="pl-en">robv</span><span class="pl-kos">.</span><span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">xposed</span><span class="pl-kos">.</span><span class="pl-en">XposedBridge</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-v">XposedBridge</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:132</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">dalvik</span><span class="pl-kos">.</span><span class="pl-en">system</span><span class="pl-kos">.</span><span class="pl-en">NativeStart</span><span class="pl-kos">.</span><span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-en">Native</span> <span class="pl-v">Method</span><span class="pl-kos">)</span></pre></div>
1
<h2 dir="auto">What is instance state, and why it exists</h2> <p dir="auto">On Android, an <a href="https://developer.android.com/reference/android/app/Activity.html" rel="nofollow">Activity</a> can be killed at any time by the system. This happens usually when Android needs memory when your Activity is not in the foreground, or because of a non-handled configuration change, such as a locale change.<br> To avoid the user having to restart what he did from scratch when Android killed the Activity, the system calls <code class="notranslate">onSaveInstanceState(…)</code> when the Activity is paused, where the app is supposed to save it's data in a <a href="https://developer.android.com/reference/android/os/Bundle.html" rel="nofollow"><code class="notranslate">Bundle</code></a>, and passes the saved bundle in both <code class="notranslate">onCreate(…)</code> and <code class="notranslate">onRestoreInstanceState(…)</code> when the task is resumed if the activity has been killed by the system.</p> <h2 dir="auto">The issue about it in flutter</h2> <p dir="auto">In the flutter apps I tried (Flutter Gallery, and the base project with the FAB tap counter), if I open enough apps to make Android kill the flutter app's Activity, all the state is lost when I come back to the flutter activity (while not having remove the task from recents).</p> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Install <a href="https://play.google.com/store/apps/details?id=io.flutter.gallery&amp;hl=en" rel="nofollow">Flutter Gallery</a></li> <li>Open the device's settings, and in developer options, switch "Don't keep activities" on. (see the screenshot)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/638bbb860d55c8bf2e17350342b1165037242d7e361f24e625ea0e0f7318a364/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f43773671646866575141414b6f5f4a2e6a70673a736d616c6c"><img src="https://camo.githubusercontent.com/638bbb860d55c8bf2e17350342b1165037242d7e361f24e625ea0e0f7318a364/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f43773671646866575141414b6f5f4a2e6a70673a736d616c6c" alt="dev_option" data-canonical-src="https://pbs.twimg.com/media/Cw6qdhfWQAAKo_J.jpg:small" style="max-width: 100%;"></a><br> This will allow to simulate when Android kills Activities because it lacks memory and you're not in the foreground.</li> <li>Open the Flutter Gallery app and go anywhere other than the main screen.</li> <li>Go to the launcher by pressing the device's home button.</li> <li>Press the overview button and return to Flutter Gallery. Here's the bug.</li> </ol> <p dir="auto"><strong>What's expected:</strong> The app is in the same state that where we left off, with untouched UI.<br> <strong>What happens:</strong> The activity is restarted from scratch, losing all the UI state, even really really long forms.</p>
<p dir="auto">When running apps on the ios simulator, flutter logs shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="May 27 14:22:36 --- last message repeated 1 time --- tapped: 17 May 27 14:22:36 --- last message repeated 1 time --- tapped: 18 May 27 14:22:37 --- last message repeated 1 time --- tapped: 19"><pre class="notranslate"><code class="notranslate">May 27 14:22:36 --- last message repeated 1 time --- tapped: 17 May 27 14:22:36 --- last message repeated 1 time --- tapped: 18 May 27 14:22:37 --- last message repeated 1 time --- tapped: 19 </code></pre></div> <p dir="auto">when run from xcode, the <code class="notranslate">last message repeated</code> messages are not present, and you just see:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tapped: 17 tapped: 18 tapped: 19"><pre class="notranslate"><code class="notranslate">tapped: 17 tapped: 18 tapped: 19 </code></pre></div> <p dir="auto">we should filter the messages out (and perhaps duplicate the last message n-1 times?).</p>
0
<p dir="auto">Let's say we have a component <code class="notranslate">Foo</code> which expects to get a single child:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" class Foo extends React.Component { render () { const {children} = this.props; return React.Children.only (children); } }"><pre class="notranslate"> <span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span> <span class="pl-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>children<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-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Children</span><span class="pl-kos">.</span><span class="pl-en">only</span> <span class="pl-kos">(</span><span class="pl-s1">children</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">This works as expected if I render <code class="notranslate">&lt;Foo&gt;&lt;div/&gt;&lt;/Foo&gt;</code> since <code class="notranslate">children</code> then maps to a single child, and <code class="notranslate">React.Children.only()</code> will happily return the only child.</p> <p dir="auto">However, when using <code class="notranslate">Foo</code> like this, it throws:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Bar extends React.Component { render () { const keys = ['a']; return &lt;Foo&gt;{keys.map (k =&gt; &lt;div key={k}/&gt;)}&lt;/Foo&gt;; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Bar</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span> <span class="pl-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-s1">keys</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">'a'</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Foo</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">keys</span><span class="pl-kos">.</span><span class="pl-en">map</span> <span class="pl-kos">(</span><span class="pl-s1">k</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">k</span><span class="pl-kos">}</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Foo</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Now, <code class="notranslate">Foo</code> gets an array with one <code class="notranslate">&lt;div&gt;</code> element.</p> <p dir="auto">I was expecting <code class="notranslate">React.Children.only()</code> to also handle this case and return the only child in the array. But obviously, it does not.</p> <p dir="auto">Now, I have to write this instead:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" class Foo extends React.Component { render () { const {children} = this.props; return (Array.isArray (children)) ? children[0] : React.Children.only (children); } }"><pre class="notranslate"> <span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span> <span class="pl-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>children<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-v">Array</span><span class="pl-kos">.</span><span class="pl-en">isArray</span> <span class="pl-kos">(</span><span class="pl-s1">children</span><span class="pl-kos">)</span><span class="pl-kos">)</span> ? <span class="pl-s1">children</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> : <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Children</span><span class="pl-kos">.</span><span class="pl-en">only</span> <span class="pl-kos">(</span><span class="pl-s1">children</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">Is this by design? Did I miss something here?</p>
<p dir="auto"><code class="notranslate">Children.only</code> is intended to be called on an opaque <code class="notranslate">Children</code> object (eg. <code class="notranslate">this.props.children</code>). Best as I can tell, <code class="notranslate">Children.map</code> is intended to return an opaque <code class="notranslate">Children</code> object. But <code class="notranslate">Children.only</code> can't be called on the return value of <code class="notranslate">Children.map</code>, as per <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="95567371" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/4410" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/4410/hovercard?comment_id=122199087&amp;comment_type=issue_comment" href="https://github.com/facebook/react/issues/4410#issuecomment-122199087">#4410 (comment)</a></p> <p dir="auto">It seems very reasonable to want to map your only child to another element (clone element, for instance), and then grab the only child from the map and use it to render. It is also very surprising for the identity operation to be passed into map, but the thing that comes out to not be semantically equivalent.</p> <p dir="auto">Issue demonstrated here: <a href="https://jsfiddle.net/9Ldyq5jk/4/" rel="nofollow">https://jsfiddle.net/9Ldyq5jk/4/</a></p>
1
<pre class="notranslate">net.TCPConn embeds net.conn, which has this: // File sets the underlying os.File to blocking mode and returns a copy. // It is the caller's responsibility to close f when finished. // Closing c does not affect f, and closing f does not affect c. // // The returned os.File's file descriptor is different from the connection's. // Attempting to change properties of the original using this duplicate // may or may not have the desired effect. func (c *conn) File() (f *os.File, err error) { return c.fd.dup() } And elsewhere: func (fd *netFD) dup() (f *os.File, err error) { syscall.ForkLock.RLock() ns, err := syscall.Dup(fd.sysfd) if err != nil { syscall.ForkLock.RUnlock() return nil, &amp;OpError{"dup", fd.net, fd.laddr, err} } syscall.CloseOnExec(ns) syscall.ForkLock.RUnlock() // We want blocking mode for the new fd, hence the double negative. // This also puts the old fd into blocking mode, meaning that // I/O will block the thread instead of letting us use the epoll server. // Everything will still work, just with more threads. if err = syscall.SetNonblock(ns, false); err != nil { return nil, &amp;OpError{"setnonblock", fd.net, fd.laddr, err} } return os.NewFile(uintptr(ns), fd.name()), nil } However, O_NONBLOCK is a property of the open file, not the fd. It is shared between all fds referring to the same file, *even across processes*. <a href="http://cr.yp.to/unix/nonblock.html" rel="nofollow">http://cr.yp.to/unix/nonblock.html</a> Hence, this protection does not actually work. To add insult to injury, calling .File() *actively* screws up the epoll by disabling O_NONBLOCK. Here's a demonstration that setting O_NONBLOCK on a dup'd socket affects the duplicates, also at <a href="http://play.golang.org/p/w9Fwqofegp" rel="nofollow">http://play.golang.org/p/w9Fwqofegp</a> though not runnable in the playground: package main import ( "fmt" "syscall" ) // copy-paste from src/pkg/syscall/zsyscall_linux_amd64.go func fcntl(fd int, cmd int, arg int) (val int, err error) { r0, _, e1 := syscall.Syscall(syscall.SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg)) val = int(r0) if e1 != 0 { err = e1 } return } func isBlocking(fd int) bool { val, err := fcntl(fd, syscall.F_GETFL, 0) if err != nil { panic(err) } return val&amp;syscall.O_NONBLOCK == 0 } func main() { dupped, err := syscall.Dup(0) if err != nil { panic(err) } fmt.Printf("before: stdin is blocking: %v\n", isBlocking(0)) fmt.Printf("before: dupped is blocking: %v\n", isBlocking(dupped)) err = syscall.SetNonblock(0, true) if err != nil { panic(err) } fmt.Printf("after: stdin is blocking: %v\n", isBlocking(0)) fmt.Printf("after: dupped is blocking: %v\n", isBlocking(dupped)) }</pre>
<pre class="notranslate"><a href="http://play.golang.org/p/icbjgkx71B" rel="nofollow">http://play.golang.org/p/icbjgkx71B</a> got: gc produces the initialization order: c b a . want: The variables b and c are independent of each other, and b is declared before c, so the order should be: b c a . gccgo reports the order: b c a . Based on spec clarification <a href="https://golang.org/cl/99020043" rel="nofollow">https://golang.org/cl/99020043</a> (<a href="https://golang.org/issue/6703" rel="nofollow">issue #6703</a>).</pre>
0
<p dir="auto">I just replace "Cloud" to "目录" in bottom_navigation_demo.dart file, then build and run in my iphone6s, the chinese "目录" can't display. How fix it?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2258120/21883756/8bb192ba-d8eb-11e6-9653-87b347546d16.png"><img width="768" alt="qq20170112-0 2x" src="https://cloud.githubusercontent.com/assets/2258120/21883756/8bb192ba-d8eb-11e6-9653-87b347546d16.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2258120/21883869/efc7213e-d8eb-11e6-8140-bf30795feb30.PNG"><img src="https://cloud.githubusercontent.com/assets/2258120/21883869/efc7213e-d8eb-11e6-8140-bf30795feb30.PNG" alt="img_0176" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">The chinese text 中文 is garbled:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="final Widget indexItem = new DrawerItem( icon: new Icon(Icons.home), child: new Row( children: &lt;Widget&gt;[ new Flexible(child: new Text('中文')), ], ), );"><pre class="notranslate"><code class="notranslate">final Widget indexItem = new DrawerItem( icon: new Icon(Icons.home), child: new Row( children: &lt;Widget&gt;[ new Flexible(child: new Text('中文')), ], ), ); </code></pre></div> <h2 dir="auto">Logs</h2> <p dir="auto">// ignore</p> <h2 dir="auto">Flutter Doctor</h2> <p dir="auto">[✓] Flutter (on Mac OS, channel master)<br> • Flutter at /Users/kuloud/Dev/flutter<br> • Framework revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/9c1a24fa728f397562cbf3f099ba2861a50a0d04/hovercard" href="https://github.com/flutter/flutter/commit/9c1a24fa728f397562cbf3f099ba2861a50a0d04"><tt>9c1a24f</tt></a> (6 hours ago), 2016-11-18 21:22:32<br> • Engine revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/cea5ed2b9be42a981eac762af3664e4a17d0a53f/hovercard" href="https://github.com/flutter/flutter/commit/cea5ed2b9be42a981eac762af3664e4a17d0a53f"><tt>cea5ed2</tt></a><br> • Tools Dart version 1.21.0-dev.6.0</p> <p dir="auto">[✓] Android toolchain - develop for Android devices (Android SDK 25.0.0)<br> • Android SDK at /usr/local/opt/android-sdk/<br> • Platform android-25, build-tools 25.0.0<br> • ANDROID_HOME = /usr/local/opt/android-sdk/<br> • Java(TM) SE Runtime Environment (build 1.8.0_92-b14)</p> <p dir="auto">[✓] iOS toolchain - develop for iOS devices (Xcode 8.1)<br> • XCode at /Applications/Xcode.app/Contents/Developer<br> • Xcode 8.1, Build version 8B62</p> <p dir="auto">[✓] IntelliJ IDEA Ultimate Edition (version 2016.2.5)<br> • Dart plugin installed<br> • Flutter plugin installed</p> <p dir="auto">[✓] Connected devices<br> • iPhone 7 • 3DC11AAB-EF8F-4810-B104-0C756CC86323 • ios • iOS 10.1 (simulator)</p>
1
<p dir="auto">I noticed the sample for <strong>firebase_auth</strong> is based on just <strong>phone</strong> and <strong>goggle</strong> authentication. (I got the <strong>googleSignin</strong> working following your example).</p> <p dir="auto"><strong>Question</strong><br> Will there be a <strong>Facebook</strong> and <strong>Twitter</strong> signin example from the firebase_auth team anytime soon -- since the firebase claims <strong>"supporting email and password accounts, phone auth, and Google, Twitter, Facebook, and GitHub login, and more"</strong> see <a href="https://firebase.google.com/products/auth/" rel="nofollow">https://firebase.google.com/products/auth/</a></p> <ol dir="auto"> <li>Are there any plans to to provide this functionality (samples)?</li> <li>Are there any plans to support Microsoft Azure/Azure B2C authentication? they are an OIDC provider; Azure B2C supports Google-Signin.</li> <li>In the absence of (2) are there plans to support 'generic' OIDC providers? This will help us fill in he 'gaps'</li> <li>Can you share some kind of a planned feature timeline with us?</li> </ol> <p dir="auto">BTW: the documentation on setting up/configuring the app was <strong>right-on.</strong> The only problem I had was in the integration with the Firebase Console. As you know we search the web for possible solutions. All my approaches failed until after the better part of an extended full day, I stumbled upon a codelabs 'tutorial' which pointed out that the SHA1 fingerprint for <strong>debugging</strong> must use the 'debug.keystore' in <strong>%USERINFO%</strong> (windows environment). Once I did that, my google Sign-in worked in seconds.</p> <p dir="auto">I suggest you either specify that on the setup page or provide a link to the relevant info. I know it might be obvious to you -- bust just that one sentence could have save me over 10 hours..</p>
<p dir="auto">Add an absolute path to assets in flutter.yaml.<br> Try to build (any flavor works).<br> Error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% flutter build flx Error: unable to locate asset entry in flutter.yaml: &quot;/my/valid/absolute/path.png&quot;. Error building build/app.flx: 1"><pre class="notranslate"><code class="notranslate">% flutter build flx Error: unable to locate asset entry in flutter.yaml: "/my/valid/absolute/path.png". Error building build/app.flx: 1 </code></pre></div>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1477" rel="nofollow">http://projects.scipy.org/numpy/ticket/1477</a> on 2010-05-05 by trac user egonschiele, assigned to <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>.</em></p> <p dir="auto">This might be just a question of precision. In the following code, A2 is a singular matrix. NumPy calculates it's inverse and prints out a non-zero determinant even though the matrix A2 is clearly singular:</p> <p dir="auto">A = array([[.1,.01,.3],[.2,.99,.3],[.7,0,.4]])<br> I = identity(3)</p> <p dir="auto">A2 = A - I # this should be singular<br> print inv(A2) # prints out a singular matrix(!!)<br> print det(A2) # prints -2.33146835171e-18 instead of 0</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/777" rel="nofollow">http://projects.scipy.org/numpy/ticket/777</a> on 2008-05-07 by trac user nick, assigned to unknown.</em></p> <p dir="auto">When resize is called on a 2d array, if the value of the "column resize" is greater than the current column size, a wrapping of the values occurs. I noticed this while trying to resize a diagonal matrix. Example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; from numpy import * &gt;&gt;&gt; from numpy.lib import twodim_base &gt;&gt;&gt; a = [1,2,3,4] &gt;&gt;&gt; a_diag = twodim_base.diag(a) &gt;&gt;&gt; print a_diag [[1 0 0 0] [0 2 0 0] [0 0 3 0] [0 0 0 4]] &gt;&gt;&gt; a_diag.resize((5,4)) &gt;&gt;&gt; print a_diag [[1 0 0 0] [0 2 0 0] [0 0 3 0] [0 0 0 4] [0 0 0 0]] &gt;&gt;&gt; a = [1,2,3,4] &gt;&gt;&gt; a_diag = twodim_base.diag(a) &gt;&gt;&gt; a_diag.resize((4,5)) &gt;&gt;&gt; print a_diag [[1 0 0 0 0] [2 0 0 0 0] [3 0 0 0 0] [4 0 0 0 0]] &gt;&gt;&gt;"><pre class="notranslate"><code class="notranslate">Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; from numpy import * &gt;&gt;&gt; from numpy.lib import twodim_base &gt;&gt;&gt; a = [1,2,3,4] &gt;&gt;&gt; a_diag = twodim_base.diag(a) &gt;&gt;&gt; print a_diag [[1 0 0 0] [0 2 0 0] [0 0 3 0] [0 0 0 4]] &gt;&gt;&gt; a_diag.resize((5,4)) &gt;&gt;&gt; print a_diag [[1 0 0 0] [0 2 0 0] [0 0 3 0] [0 0 0 4] [0 0 0 0]] &gt;&gt;&gt; a = [1,2,3,4] &gt;&gt;&gt; a_diag = twodim_base.diag(a) &gt;&gt;&gt; a_diag.resize((4,5)) &gt;&gt;&gt; print a_diag [[1 0 0 0 0] [2 0 0 0 0] [3 0 0 0 0] [4 0 0 0 0]] &gt;&gt;&gt; </code></pre></div> <p dir="auto">The documentation led me to believe that a column of 0's would be added (much like how a row of 0's was added when the number of rows was increased).</p> <p dir="auto">Nick Loadholtes - <a href="mailto:[email protected]">[email protected]</a></p>
0
<h4 dir="auto">Challenge Name</h4> <p dir="auto">Target the Children of an Element Using jQuery<br> <a href="https://www.freecodecamp.com/challenges/target-the-children-of-an-element-using-jquery" rel="nofollow">https://www.freecodecamp.com/challenges/target-the-children-of-an-element-using-jquery</a><br> and next challenge.</p> <h4 dir="auto">Issue Description</h4> <p dir="auto">Look at duplicating "#target5" on left-well when refresh page or run tests (ctrl+enter). But when typing code in middle area - everything is good.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Google Chrome 54.0.2840.99</li> <li>Operating System: Windows 7</li> <li>Mobile, Desktop, or Tablet: Desktop</li> </ul> <h4 dir="auto">Your Code</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;script&gt; $(document).ready(function() { $(&quot;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&quot;); $(&quot;#target1&quot;).parent().css(&quot;background-color&quot;, &quot;red&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"> <span class="pl-c1">&lt;</span><span class="pl-ent">script</span><span class="pl-c1">&gt;</span> $(document).ready(function() <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">parent</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"background-color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>); <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">script</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">!</span><span class="pl-c1">--</span> <span class="pl-v">Only</span> <span class="pl-s1">change</span> <span class="pl-s1">code</span> <span class="pl-s1">above</span> <span class="pl-s1">this</span> <span class="pl-s1">line</span><span class="pl-kos">.</span> <span class="pl-c1">--</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"container-fluid"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"text-primary text-center"</span><span class="pl-c1">&gt;</span>jQuery Playground<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h3</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"row"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-6"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h4</span><span class="pl-c1">&gt;</span>#left-well<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h4</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"well"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"left-well"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target1"</span><span class="pl-c1">&gt;</span>#target1<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target2"</span><span class="pl-c1">&gt;</span>#target2<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target3"</span><span class="pl-c1">&gt;</span>#target3<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-6"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h4</span><span class="pl-c1">&gt;</span>#right-well<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h4</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"well"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"right-well"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target4"</span><span class="pl-c1">&gt;</span>#target4<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target5"</span><span class="pl-c1">&gt;</span>#target5<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target6"</span><span class="pl-c1">&gt;</span>#target6<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> </pre></div> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8858451/20458136/e9407978-aeac-11e6-9db5-030f1c734504.PNG"><img src="https://cloud.githubusercontent.com/assets/8858451/20458136/e9407978-aeac-11e6-9db5-030f1c734504.PNG" alt="s" style="max-width: 100%;"></a></p>
<p dir="auto">This is a duplicate of a ticket I opened here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="104348391" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/2969" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/2969/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/2969">#2969</a></p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-mutations" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-mutations</a></p> <p dir="auto">I haven't actually managed to write a correct solution yet, but my last attempt passed even though I know it doesn't work. My solution:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function mutation(arr) { var match = true; var string = arr[0].toLowerCase(); var toCheck = arr[1].toLowerCase(); for(i=0; i&lt;toCheck.length; i++) { var matched = string.indexOf(toCheck[i]); if (matched == -1) { match = false; } else { match = true; } } arr = match; return(arr);"><pre class="notranslate"><code class="notranslate">function mutation(arr) { var match = true; var string = arr[0].toLowerCase(); var toCheck = arr[1].toLowerCase(); for(i=0; i&lt;toCheck.length; i++) { var matched = string.indexOf(toCheck[i]); if (matched == -1) { match = false; } else { match = true; } } arr = match; return(arr); </code></pre></div> <p dir="auto">}</p> <p dir="auto">A test that could be added that will cause this to fail:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="expect(mutation(['floor', 'xfor'])).to.be.false;"><pre class="notranslate"><code class="notranslate">expect(mutation(['floor', 'xfor'])).to.be.false; </code></pre></div>
<h1 dir="auto"></h1> <p dir="auto"><a href="https://github.com/FreeCodeCamp/FreeCodeCamp/files/465219/Coding.Bug.docx">Coding Bug.docx</a><br> Hi! After completing a few challenges, I think I encountered a bug. I followed the instructions on changing text color, and the text turned red, so I think I wrote this correctly. But the system won't send me to the next challenge, claiming I didn't do this right. See code input and the system response below. Can someone from CodeCamp admin fix this so I can continue funfun coding? Thanks!</p> <p dir="auto">My Code:</p> <h2 dir="auto">CatPhotoApp</h2> <p dir="auto">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p> <p dir="auto">Response:<br> Your h2 element should be red.</p>
0
<p dir="auto">I'm doing some customization work on an OpenCart site and I noticed that the syntax highlighting in <code class="notranslate">admin/model/catalog/product.php</code> is all messed up.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5471922/3343789/f36ac0a0-f8a3-11e3-8a82-0df981984c8d.png"><img src="https://cloud.githubusercontent.com/assets/5471922/3343789/f36ac0a0-f8a3-11e3-8a82-0df981984c8d.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Somewhere around the <code class="notranslate">subtract</code> field, Atom's highlighter gets stuck in "string" mode. This continues to line 137, where the code turns a uniform gray, and then it returns to normal on line 139.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5471922/3343849/9610bbb6-f8a4-11e3-8f1c-19f82765a7dc.png"><img src="https://cloud.githubusercontent.com/assets/5471922/3343849/9610bbb6-f8a4-11e3-8f1c-19f82765a7dc.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Komodo Edit parses the same file correctly:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5471922/3344001/17e676a2-f8a6-11e3-95e9-4c771656afe0.png"><img src="https://cloud.githubusercontent.com/assets/5471922/3344001/17e676a2-f8a6-11e3-95e9-4c771656afe0.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Atom 0.105.0, OS X 10.9.3.</p>
<p dir="auto">Consider a series of quoted strings in an array in ruby:</p> <div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="states = ['AL', 'AK', 'AZ', 'AR', 'CO', 'DE', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', 'RI', 'SC', 'SD', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY']"><pre class="notranslate"><span class="pl-s1">states</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">'AL'</span><span class="pl-kos">,</span> <span class="pl-s">'AK'</span><span class="pl-kos">,</span> <span class="pl-s">'AZ'</span><span class="pl-kos">,</span> <span class="pl-s">'AR'</span><span class="pl-kos">,</span> <span class="pl-s">'CO'</span><span class="pl-kos">,</span> <span class="pl-s">'DE'</span><span class="pl-kos">,</span> <span class="pl-s">'FL'</span><span class="pl-kos">,</span> <span class="pl-s">'GA'</span><span class="pl-kos">,</span> <span class="pl-s">'HI'</span><span class="pl-kos">,</span> <span class="pl-s">'ID'</span><span class="pl-kos">,</span> <span class="pl-s">'IL'</span><span class="pl-kos">,</span> <span class="pl-s">'IN'</span><span class="pl-kos">,</span> <span class="pl-s">'IA'</span><span class="pl-kos">,</span> <span class="pl-s">'KS'</span><span class="pl-kos">,</span> <span class="pl-s">'KY'</span><span class="pl-kos">,</span> <span class="pl-s">'LA'</span><span class="pl-kos">,</span> <span class="pl-s">'ME'</span><span class="pl-kos">,</span> <span class="pl-s">'MD'</span><span class="pl-kos">,</span> <span class="pl-s">'MI'</span><span class="pl-kos">,</span> <span class="pl-s">'MN'</span><span class="pl-kos">,</span> <span class="pl-s">'MS'</span><span class="pl-kos">,</span> <span class="pl-s">'MO'</span><span class="pl-kos">,</span> <span class="pl-s">'MT'</span><span class="pl-kos">,</span> <span class="pl-s">'NE'</span><span class="pl-kos">,</span> <span class="pl-s">'NV'</span><span class="pl-kos">,</span> <span class="pl-s">'NH'</span><span class="pl-kos">,</span> <span class="pl-s">'NJ'</span><span class="pl-kos">,</span> <span class="pl-s">'NM'</span><span class="pl-kos">,</span> <span class="pl-s">'NY'</span><span class="pl-kos">,</span> <span class="pl-s">'NC'</span><span class="pl-kos">,</span> <span class="pl-s">'ND'</span><span class="pl-kos">,</span> <span class="pl-s">'OH'</span><span class="pl-kos">,</span> <span class="pl-s">'OK'</span><span class="pl-kos">,</span> <span class="pl-s">'OR'</span><span class="pl-kos">,</span> <span class="pl-s">'RI'</span><span class="pl-kos">,</span> <span class="pl-s">'SC'</span><span class="pl-kos">,</span> <span class="pl-s">'SD'</span><span class="pl-kos">,</span> <span class="pl-s">'TX'</span><span class="pl-kos">,</span> <span class="pl-s">'UT'</span><span class="pl-kos">,</span> <span class="pl-s">'VT'</span><span class="pl-kos">,</span> <span class="pl-s">'VA'</span><span class="pl-kos">,</span> <span class="pl-s">'WA'</span><span class="pl-kos">,</span> <span class="pl-s">'WV'</span><span class="pl-kos">,</span> <span class="pl-s">'WI'</span><span class="pl-kos">,</span> <span class="pl-s">'WY'</span><span class="pl-kos">]</span></pre></div> <p dir="auto">In atom, if this list stopped at <code class="notranslate">MI</code> syntax highlighting would resume as normal. However, it acts as if the rest of the file has a single quote at the top:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/49549/2928565/eb0b968c-d77e-11e3-934c-1b7c165ada03.gif"><img src="https://cloud.githubusercontent.com/assets/49549/2928565/eb0b968c-d77e-11e3-934c-1b7c165ada03.gif" alt="quote-bug" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">I'm using the <a href="https://atom.io/themes/tomorrow" rel="nofollow">Tomorrow theme</a> but it shows up in others as well. This also happens in python, but the quote limit is one less and only the rest of the line is unquoted. Same with C, although again the quote limit changes. Very odd.</p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">The <code class="notranslate">npm</code> module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.2.0 config file = /home/drybjed/src/projects/devel/ansible.cfg configured module search path = ['/home/drybjed/src/projects/devel/ansible/library', '/home/drybjed/src/projects/devel/debops-playbooks/playbooks/library', '/usr/share/ansible/library']"><pre class="notranslate"><code class="notranslate">ansible 2.2.2.0 config file = /home/drybjed/src/projects/devel/ansible.cfg configured module search path = ['/home/drybjed/src/projects/devel/ansible/library', '/home/drybjed/src/projects/devel/debops-playbooks/playbooks/library', '/usr/share/ansible/library'] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Default configuration</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Debian, Ubuntu</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The invocation of the <code class="notranslate">npm</code> module always results in the <code class="notranslate">changed=True</code> status when the <code class="notranslate">production=True</code> option is enabled.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible localhost --become -m npm -a 'name=forever state=present global=True production=True'"><pre class="notranslate"><code class="notranslate">ansible localhost --become -m npm -a 'name=forever state=present global=True production=True' </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The requested module has been installed and hasn't been changed.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The module reports the changed status on each invocation.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="localhost | SUCCESS =&gt; { &quot;changed&quot;: true, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;executable&quot;: null, &quot;global&quot;: true, &quot;ignore_scripts&quot;: false, &quot;name&quot;: &quot;forever&quot;, &quot;path&quot;: null, &quot;production&quot;: true, &quot;registry&quot;: null, &quot;state&quot;: &quot;present&quot;, &quot;version&quot;: null }, &quot;module_name&quot;: &quot;npm&quot; } }"><pre class="notranslate"><code class="notranslate">localhost | SUCCESS =&gt; { "changed": true, "invocation": { "module_args": { "executable": null, "global": true, "ignore_scripts": false, "name": "forever", "path": null, "production": true, "registry": null, "state": "present", "version": null }, "module_name": "npm" } } </code></pre></div>
<p dir="auto">Similar to this issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8325983" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/1616" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/1616/hovercard" href="https://github.com/ansible/ansible/pull/1616">#1616</a></p> <p dir="auto">When a task is skipped, it should not update the registered variable, e.g</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: all user: ubuntu sudo: True vars: var1: True tasks: - name: one command: /bin/echo one when: var1 register: var2 - name: two command: /bin/echo two when: not var1 register: var2 - name: three command: /bin/echo three when: var2.changed"><pre class="notranslate"><code class="notranslate">- hosts: all user: ubuntu sudo: True vars: var1: True tasks: - name: one command: /bin/echo one when: var1 register: var2 - name: two command: /bin/echo two when: not var1 register: var2 - name: three command: /bin/echo three when: var2.changed </code></pre></div> <p dir="auto">I expect task three should not be skipped.</p> <p dir="auto">If I change task two to register other variable then task three will not be skipped - but as it is skipped, it should not affect the running state.</p>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/13759/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/13759/</a></p> <p dir="auto">Failed: [k8s.io] V1Job should fail a job {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/framework/framework.go:129 Aug 21 01:49:31.029: Couldn't delete ns &quot;e2e-tests-v1job-nxzhu&quot;: namespace e2e-tests-v1job-nxzhu was not deleted within limit: timed out waiting for the condition, pods remaining: [] /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:270"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:129 Aug 21 01:49:31.029: Couldn't delete ns "e2e-tests-v1job-nxzhu": namespace e2e-tests-v1job-nxzhu was not deleted within limit: timed out waiting for the condition, pods remaining: [] /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:270 </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="161129574" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27704" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27704/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27704">#27704</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169548612" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30127" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30127/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30127">#30127</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="171089180" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30602" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30602/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30602">#30602</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce/21728/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce/21728/</a></p> <p dir="auto">Failed: [k8s.io] V1Job should scale a job up {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/framework/framework.go:127 Aug 16 08:11:16.645: Couldn't delete ns &quot;e2e-tests-v1job-gmj3l&quot;: namespace e2e-tests-v1job-gmj3l was not deleted within limit: timed out waiting for the condition, pods remaining: [] /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:265"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:127 Aug 16 08:11:16.645: Couldn't delete ns "e2e-tests-v1job-gmj3l": namespace e2e-tests-v1job-gmj3l was not deleted within limit: timed out waiting for the condition, pods remaining: [] /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:265 </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="169069185" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29976" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29976/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29976">#29976</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170717834" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30464" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30464/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30464">#30464</a></p>
1
<p dir="auto"><a href="https://twisted.readthedocs.io/en/latest/core/howto/defer-intro.html#inline-callbacks-using-yield" rel="nofollow">https://twisted.readthedocs.io/en/latest/core/howto/defer-intro.html#inline-callbacks-using-yield</a> says "On Python 3, instead of writing returnValue(json.loads(responseBody)) you can instead write return json.loads(responseBody). This can be a significant readability advantage, but unfortunately if you need compatibility with Python 2, this isn’t an option.".</p>
<p dir="auto">Reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dangra/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dangra">@dangra</a></p> <p dir="auto">This issue manifests when mixing old paths and new ones for extensions and middlewares (this can happen for example while using a newer version of Scrapy in a project that hasn't updated to the new paths yet). Since paths aren't normalized, the same component can be loaded twice.</p> <p dir="auto">Take these settings for example:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# scrapy/settings/default_settings.py EXTENSIONS_BASE = { 'scrapy.extensions.debug.StackTraceDump': 100, # new path } "><pre class="notranslate"><span class="pl-c"># scrapy/settings/default_settings.py</span> <span class="pl-v">EXTENSIONS_BASE</span> <span class="pl-c1">=</span> { <span class="pl-s">'scrapy.extensions.debug.StackTraceDump'</span>: <span class="pl-c1">100</span>, <span class="pl-c"># new path</span> } </pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# myproject/settings.py EXTENSIONS = { 'scrapy.contrib.debug.StackTraceDump': 200, # old path }"><pre class="notranslate"><span class="pl-c"># myproject/settings.py</span> <span class="pl-v">EXTENSIONS</span> <span class="pl-c1">=</span> { <span class="pl-s">'scrapy.contrib.debug.StackTraceDump'</span>: <span class="pl-c1">200</span>, <span class="pl-c"># old path</span> }</pre></div> <p dir="auto">While merging both dictionaries to build the list of components, the same StackTraceDump class is going to be loaded twice since it appears in two different keys.</p>
0
<h4 dir="auto">Summary</h4> <p dir="auto">The theme chooser does not appear to work on my system. I cannot select a theme.</p> <h4 dir="auto">Setup</h4> <p dir="auto">Ubuntu 15.04 with atom 1.0.0 amd64 freshly installed from .deb package.</p> <h4 dir="auto">Observed behaviour</h4> <p dir="auto">Themes show up in the list of Core Themes and Installed Themes. However, when I click the drop-down selectors for UI Theme and Syntax Theme, they only show an empty white box, with 'One Dark' remaining selected.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7723154/8395764/8a14958c-1d7c-11e5-91b7-4b53dd41e2b0.png"><img src="https://cloud.githubusercontent.com/assets/7723154/8395764/8a14958c-1d7c-11e5-91b7-4b53dd41e2b0.png" alt="screenshot from 2015-06-28 09 53 40" style="max-width: 100%;"></a></p> <h4 dir="auto">Expected behaviour</h4> <p dir="auto">I would have expected the names of installed themes to appear in the drop-down box so that I could select another theme.</p> <h4 dir="auto">Notes</h4> <p dir="auto">Not sure if this is relevant or a separate bug, but searching for themes using the 'filter themes by name' box does not return any themes.</p>
<p dir="auto">I see that HiDPI support appears to mostly work in Atom, but with <code class="notranslate">org.gnome.desktop.interface</code> set to <code class="notranslate">2</code>, atom launches with menu items of a crazy size:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/218205/5790894/a9baed6a-9eaf-11e4-8534-27727a242867.png"><img src="https://cloud.githubusercontent.com/assets/218205/5790894/a9baed6a-9eaf-11e4-8534-27727a242867.png" alt="atom" style="max-width: 100%;"></a></p> <p dir="auto">Launching atom with <code class="notranslate">--force-device-scale-factor=1</code> appears to have no effect.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ atom --version 0.174.0-2f76597"><pre class="notranslate"><code class="notranslate">$ atom --version 0.174.0-2f76597 </code></pre></div> <p dir="auto">This was built from source on Gentoo Linux manually, because there's no ebuild available :-(</p>
1
<h3 dir="auto">Describe the workflow you want to enable</h3> <p dir="auto">It is not a new algorithm, I was just frustrated running Grid and Random SearchCV for hours without knowing when it ends. It should be easy to add a print statement to inform the user about the process. It could be a percentage (let's say 80% done), or just to inform which parameters have been used in each iteration, so the user knows it is working.</p> <h3 dir="auto">Describe your proposed solution</h3> <p dir="auto">Either print parameters in each iteration<br> or<br> calculate how many iteration there are, and print the percentage done so far.</p> <h3 dir="auto">Describe alternatives you've considered, if relevant</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto">By default writing to a logger would not go to STDOUT without a handler. One solution to this is to attach a handler when verbose is an integer and use the logger if it is passed in.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Do not log func(verbose=0) # will create a stream handler to stdout func(verbose=1) # will write to the logger passed in func(verbose=logger)"><pre class="notranslate"><span class="pl-c"># Do not log</span> <span class="pl-en">func</span>(<span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-c"># will create a stream handler to stdout</span> <span class="pl-en">func</span>(<span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c"># will write to the logger passed in</span> <span class="pl-en">func</span>(<span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-s1">logger</span>)</pre></div>
1
<p dir="auto">python -m transformers.onnx --model=facebook/bart-large /home/sysadmin/downlaod/onnx_models/bart-large</p> <p dir="auto">Pytorch version: 1.9.0<br> transformers version: 4.9.1<br> platform: centos 7<br> python version: 3.7</p> <p dir="auto">The original bart model is aroud 2GB, But the transferred bart-large model is more than 3gb. This could because some shared weights are are duplicated in the onnx model</p>
<h3 dir="auto">System Info</h3> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 4.25.1</li> <li>Platform: Linux-5.10.147+-x86_64-with-glibc2.29</li> <li>Python version: 3.8.10</li> <li>Huggingface_hub version: 0.11.1</li> <li>PyTorch version (GPU?): 1.13.1+cu116 (True)</li> <li>Tensorflow version (GPU?): 2.9.2 (True)</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?: yes</li> <li>Using distributed or parallel set-up in script?: no</li> </ul> <h3 dir="auto">Who can help?</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stas00/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stas00">@stas00</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ArthurZucker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ArthurZucker">@ArthurZucker</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</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"> 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" checked=""> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <p dir="auto">I am just trying to fine-tune "EleutherAI/gpt-neo-1.3B" for casuallm on google colab. Without anything, it gives out of memory error. I was checking what can I do and I found deepspeed. I added deepspeed='ds_config.json', to my training arguments in jupyter notebook and used configuration from the official page which is "ds_config_zero2.json".</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">start training.</p>
0
<p dir="auto">I use electron 1.7.9 with node 7.9.0 on a raspberry pi</p> <p dir="auto">input list does get the actual value from the datalist.</p> <p dir="auto">I have a input element with a datalist in my electron application and it works just fine if i run my .html file in Chrome. If I start the electron app with "electron ." the input element is not working. My datalist is displayed but if i choose one its set in my input list as suggested but if I do a alert of the input-element I just get what I typed in and not the actual element what is in the datalist. At this point I can not figure out how to fix that or is there any possible solution? Another problem is that if I run my application locally with "./node_modules/.bin/electron ." the datalist elements don´t even show up.</p> <p dir="auto">Maybe anyone can help me out if there is a solution for this or a way how I can solve this.</p> <p dir="auto">Regards Michael</p>
<p dir="auto">Electron version: 1.7.3 beta<br> Operating system: Windows 7 x86_64 Professional</p> <p dir="auto">Clicking the pyramid icon on an input control associated with a data list and picking a value from the list, then evaluating <code class="notranslate">value</code> property of the input control, the value is expected to match the text chosen from the data list, which the input control is now showing.</p> <p dir="auto">Instead, the text returned by <code class="notranslate">value</code> property is an empty string, or at least the string that was manually typed into the input control prior.</p> <p dir="auto">Only manual editing of value of the input control, as you would with an ordinary text input without a n associated datalist, causes the <code class="notranslate">value</code> property to yield the same text that the input control is showing.</p> <p dir="auto">Using following markup to reproduce by loading up default Electron distribution and typing <code class="notranslate">document.location = ...; /* path to file containing below text */</code> in Developer Tools console:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body&gt; &lt;input list=&quot;foobar&quot;&gt; &lt;datalist id=&quot;foobar&quot;&gt; &lt;option value=&quot;apple&quot;&gt; &lt;option value=&quot;orange&quot;&gt; &lt;option value=&quot;banana&quot;&gt; &lt;/datalist&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><code class="notranslate">&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body&gt; &lt;input list="foobar"&gt; &lt;datalist id="foobar"&gt; &lt;option value="apple"&gt; &lt;option value="orange"&gt; &lt;option value="banana"&gt; &lt;/datalist&gt; &lt;/body&gt; &lt;/html&gt; </code></pre></div>
1
<h1 dir="auto">Environment</h1> <p dir="auto">Microsoft Windows [Version 10.0.18362.30]</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Just type any command that will fill your terminal window.<br> eg. C:\Users\Microsoft&gt;dir</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">I should be able to scroll to top of the page to see previous results using mouse/touch pad.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">I am not able to scroll to the top in the new Windows Terminal but I am able to scroll in the old command prompt.</p>
<h1 dir="auto">Environment</h1> <p dir="auto">Windows build number: Microsoft Windows [Version 10.0.18898.1000]<br> Windows Terminal version (if applicable): pulled and built today (WindowsTerminalDev_0.0.1.0_x64__8wekyb3d8bbwe)</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Not entirely sure if this is intended behaviour or an issue to other users but I am not able to scroll through the new terminal with my touchpad on my Notebook (Alienware).</p> <p dir="auto">It works with my mouse but not with the touchpad. I can scroll through the native console/ poweshell though. Can somebody reproduce this?</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">That I can scroll through the curren window-history using two-finger-touch on the touchpad.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">It wont scroll.</p>
1
<p dir="auto">Hi, I used react-sortable-tree package im my react project in component named Tree:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React, { Component } from &quot;react&quot;; import axios from &quot;axios&quot;; import axios_config from &quot;./axios_config&quot;; import &quot;react-sortable-tree/style.css&quot;; import SortableTree, { } from &quot;react-sortable-tree&quot;; class Tree extends Component { constructor(props) { super(props); this.state = { treeData: [], }; } componentDidMount() { (async () =&gt; { axios_config.url = this.props.treeLink; axios_config.data = {}; try { let result = await axios(axios_config); console.log(&quot;response from server gotttt...&quot;); console.log(result); if (result.data.done === true) { this.setState({ treeData: result.data.tree, selectedNode: result.data.tree[0], }); this.props.disableLoading(); } else { console.log(result.err); this.props.disableLoading(); } } catch (err) { console.log(err); } })(); } render() { return ( &lt;SortableTree style={{ height: &quot;300px&quot; }} treeData={this.state.treeData} onChange={(treeData) =&gt; this.setState({ treeData })} /&gt; ); } }"><pre class="notranslate"><code class="notranslate">import React, { Component } from "react"; import axios from "axios"; import axios_config from "./axios_config"; import "react-sortable-tree/style.css"; import SortableTree, { } from "react-sortable-tree"; class Tree extends Component { constructor(props) { super(props); this.state = { treeData: [], }; } componentDidMount() { (async () =&gt; { axios_config.url = this.props.treeLink; axios_config.data = {}; try { let result = await axios(axios_config); console.log("response from server gotttt..."); console.log(result); if (result.data.done === true) { this.setState({ treeData: result.data.tree, selectedNode: result.data.tree[0], }); this.props.disableLoading(); } else { console.log(result.err); this.props.disableLoading(); } } catch (err) { console.log(err); } })(); } render() { return ( &lt;SortableTree style={{ height: "300px" }} treeData={this.state.treeData} onChange={(treeData) =&gt; this.setState({ treeData })} /&gt; ); } } </code></pre></div> <p dir="auto">when I use Tree component in my code it works pretty well in react 16.13.1, but fails and get this error is react 17.0.1:</p> <p dir="auto">`←→1 of 2 errors on the page<br> Error: Unable to find node on an unmounted component.<br> <g-emoji class="g-emoji" alias="arrow_forward" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/25b6.png">▶</g-emoji> 21 stack frames were collapsed.<br> (anonymous function)<br> src/components/utility/Tree.js:114<br> 111 | console.log(result);<br> 112 | if (result.data.done === true) {<br> 113 | //console.log(result.data.tree);</p> <blockquote> <p dir="auto">114 | this.setState({<br> | ^ 115 | treeData: result.data.tree,<br> 116 | selectedNode: result.data.tree[0],<br> 117 | });<br> <code class="notranslate"> </code>react-dom.development.js:24281 Uncaught Error: Unable to find node on an unmounted component.<br> at findHostInstanceWithWarning (react-dom.development.js:24281)<br> at findDOMNode (react-dom.development.js:24804)<br> at ScrollingComponent.componentDidMount (index.js:181)<br> at commitLifeCycles (react-dom.development.js:20663)<br> at commitLayoutEffects (react-dom.development.js:23426)<br> at HTMLUnknownElement.callCallback (react-dom.development.js:3945)<br> at Object.invokeGuardedCallbackDev (react-dom.development.js:3994)<br> at invokeGuardedCallback (react-dom.development.js:4056)<br> at commitRootImpl (react-dom.development.js:23151)<br> at unstable_runWithPriority (scheduler.development.js:646)<br> at runWithPriority$1 (react-dom.development.js:11276)<br> at commitRoot (react-dom.development.js:22990)<br> at performSyncWorkOnRoot (react-dom.development.js:22329)<br> at react-dom.development.js:11327<br> at unstable_runWithPriority (scheduler.development.js:646)<br> at runWithPriority$1 (react-dom.development.js:11276)<br> at flushSyncCallbackQueueImpl (react-dom.development.js:11322)<br> at flushSyncCallbackQueue (react-dom.development.js:11309)<br> at scheduleUpdateOnFiber (react-dom.development.js:21893)<br> at Object.enqueueSetState (react-dom.development.js:12467)<br> at Tree.push../node_modules/react/cjs/react.development.js.Component.setState (react.development.js:365)<br> at Tree.js:114`</p> </blockquote>
<p dir="auto">React version: 0.0.0-experimental-0cc724c77-20211125 (and <code class="notranslate">main</code>)</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>Build the current version of React in <code class="notranslate">main</code></li> <li><code class="notranslate">open fixtures/flight-browser/index.html</code></li> <li>Take note that the model never resolves, and the HTML in the fixture is never updated:</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/848147/149585758-7fd44bdd-f039-4da6-b069-fce798fb0a26.png"><img width="679" alt="Screen Shot 2022-01-14 at 3 10 58 PM" src="https://user-images.githubusercontent.com/848147/149585758-7fd44bdd-f039-4da6-b069-fce798fb0a26.png" style="max-width: 100%;"></a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">The model never resolves, and the data is never rendered to the DOM.</p> <h3 dir="auto">Other findings</h3> <ul dir="auto"> <li>If you <code class="notranslate">console.log</code> each chunk individually using <code class="notranslate">response.getReader().read() ...</code>, you'll see chunks written, but some are duplicates, and some are out of order. In the reader, <code class="notranslate">done</code> never gets called.</li> <li>If you remove the Suspense <code class="notranslate">read()</code> from the <code class="notranslate">Title</code> component in the fixture, everything <strong>works correctly</strong>.</li> <li>If you add add a <code class="notranslate">console.log</code> <em>after</em> <code class="notranslate">let blob = await responseToDisplay.blob();</code>, it <strong>never logs</strong>. This means that <code class="notranslate">response.blob()</code> is hanging.</li> <li>If you replace the contents of <code class="notranslate">display</code> with <code class="notranslate">renderResult(ReactServerDOMReader.createFromReadableStream(responseToDisplay.body))</code>, everything <strong>works correctly</strong>.</li> </ul> <p dir="auto">We're seeing this same behavior in Hydrogen: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1576966211" data-permission-text="Title is private" data-url="https://github.com/Shopify/hydrogen/issues/463" data-hovercard-type="pull_request" data-hovercard-url="/Shopify/hydrogen/pull/463/hovercard" href="https://github.com/Shopify/hydrogen/pull/463">Shopify/hydrogen#463</a> both when calling <code class="notranslate">renderToReadableStream</code> and passing that to <code class="notranslate">Response</code> in a Workers runtime, and when calling <code class="notranslate">renderToReadableStream</code> and consuming that stream in an SSR context. The chunks are written out of order and duplicated, and the response never resolves.</p> <p dir="auto">It's very odd that the automated tests in <code class="notranslate">react-dom-server-webpack/.../ReactFlightDOMBrowser-test.js</code> do not fail under these same conditions. I'm trying to pinpoint the conditions where this happens — e.g. is it when a ReadableStream gets sent through a <code class="notranslate">Response.body</code>? — but I can't nail it down yet.</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">The flight model resolves when using <code class="notranslate">renderToReadableStream</code> with Suspense, and the data is rendered to the DOM.</p>
0
<p dir="auto">Opening an issue to discuss this: <strong>should we think about moving the functionality to read online data sources to a separate package?</strong></p> <p dir="auto">This was mentioned recently here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49118275" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/8842" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/8842/hovercard?comment_id=63456052&amp;comment_type=issue_comment" href="https://github.com/pandas-dev/pandas/issues/8842#issuecomment-63456052">#8842 (comment)</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46802064" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/8631" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/8631/hovercard?comment_id=61805926&amp;comment_type=issue_comment" href="https://github.com/pandas-dev/pandas/pull/8631#issuecomment-61805926">#8631 (comment)</a></p> <p dir="auto">Some reasons why we would want to move it:</p> <ul dir="auto"> <li>This often needs much more urgent releases than pandas to fix changes in the remote sources. So with separate release cycle, this can speed up propagation of bugfixes to users</li> <li>More general: to limit the scope of pandas as the core project, and to encourage that some people take ownership of this subproject (which is easier as a separate project?), publicize it separately, ..</li> </ul> <p dir="auto">Some questions that come to mind:</p> <ul dir="auto"> <li>What should we move? (everything in <a href="http://pandas.pydata.org/pandas-docs/stable/remote_data.html" rel="nofollow">remote_data.rst</a>?) <ul dir="auto"> <li>Everything in <code class="notranslate">io.data</code>? (the <code class="notranslate">DataReader</code> function for Yahoo and Google Finance, FRED and Fama/French, and the <code class="notranslate">Options</code> class</li> <li>Also <code class="notranslate">io.wb</code> (certain World Bank data) and <code class="notranslate">io.ga</code> (google analytics interface)?</li> </ul> </li> <li>Should we move it all to one separate project, or to multiple?</li> <li>Are there outside of pandas already some packages like this? (possibilities to merge with that/collaborate/..)</li> <li>Who would be interested to take this up? To be a maintainer of such a package?</li> </ul> <p dir="auto">Pinging some of the people have worked on these subpackages (certainly add others if you know):<br> @dstephens99 <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MichaelWS/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MichaelWS">@MichaelWS</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kdiether/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kdiether">@kdiether</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cpcloud/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cpcloud">@cpcloud</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vincentarelbundock/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vincentarelbundock">@vincentarelbundock</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jnmclarty/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jnmclarty">@jnmclarty</a><br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jreback/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jreback">@jreback</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/immerrr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/immerrr">@immerrr</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/TomAugspurger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/TomAugspurger">@TomAugspurger</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hayd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hayd">@hayd</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jtratner/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jtratner">@jtratner</a></p>
<p dir="auto">Currently <code class="notranslate">Series</code> has a <code class="notranslate">name</code> member, which is useful for retaining the name of the sliced <code class="notranslate">index</code>/<code class="notranslate">column</code> when the <code class="notranslate">Series</code> is produced by slicing a <code class="notranslate">DataFrame</code>.</p> <p dir="auto">It would be useful for <code class="notranslate">DataFrame</code> similarly to have a <code class="notranslate">name</code> member, so that when a <code class="notranslate">DataFrame</code> is produced by slicing a <code class="notranslate">Panel</code>, the name of the sliced index is retained.</p> <p dir="auto">And while you're at it, may as well add <code class="notranslate">name</code> to <code class="notranslate">Panel</code> and even <code class="notranslate">Panel4D</code>...</p>
0
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> When setting a value to an object using a dynamic + numeric key<br> The key is converted to a string (expected)<br> When I then use destructuring to receive the value it works using the numeric key<br> When I also take the <code class="notranslate">...rest</code> of the object<br> Then I expect the rest not to contain the previously destructured key</p> <p dir="auto">BUT the key is still present in the rest</p> <p dir="auto"><strong>Input Code</strong><br> <a href="https://babeljs.io/repl#?babili=true&amp;browsers=&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=MYewdgzgLgBA1gUwJ4wLwwEwG4BQpKzQCGUCaMA3jANqJIC6AXDAOQBmIILANDAEZEATsxYCAXixgBfXPmiUadJjAAOAGwCuwOLwB0-wQnlTyxUrPDyq1AMpRBASzABzABR0AlMvVa4GPQZGUBjSplAkCBaQIGoIukQQEAiCUK44MDBQSCoIIGwwAPJ8AFYIwFC6dBCuZgge1AAM9Gio6CzQji486TAABgCiAB455QgAJjAAJBRFpeWVyNW19U0mUCD8ZEQwHU7OvTgeeJYxcQlJKWkZPtot6Dd-3D0Dw2WkE9MPaxt8ZJ-a2gwUgORwA9KCYAAVAAWDggMDYRAcaggjGO0Vi8USyVSPVmbwWSGqhmgHl0sRcUGhd0KJQJVVcJOCZIpzipTwyLxG7ymFAAUjYCgA5XS7FwONhIRlBDzfGAIACOGiIal5AuFovsewlUqZGFlIKAA&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=true&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=false&amp;presets=es2015%2Cstage-2%2Cbabili&amp;prettier=false&amp;targets=&amp;version=6.26.0&amp;envVersion=" rel="nofollow">REPL link (See console)</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const key = 2; const state = { [key]: 'foo', bar: 'baz' }; const { [key]: pluck, ...rest } = state; const { [String(key)]: pluck2, ...rest2 } = state; console.assert( typeof Object.keys(state)[0] === 'string', `Expected ${Object.keys(state)[0]} to be a string` ) console.assert( pluck === pluck2, `Expected ${pluck} to be ${pluck2}` ) // This fails: console.assert( Object.keys(rest).length === Object.keys(rest2).length, `Expected ${JSON.stringify(rest)} to equal ${JSON.stringify(rest2)}` )"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">state</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span>: <span class="pl-s">'foo'</span><span class="pl-kos">,</span> <span class="pl-c1">bar</span>: <span class="pl-s">'baz'</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span>: <span class="pl-s1">pluck</span><span class="pl-kos">,</span> ...<span class="pl-s1">rest</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">state</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-v">String</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">)</span><span class="pl-kos">]</span>: <span class="pl-s1">pluck2</span><span class="pl-kos">,</span> ...<span class="pl-s1">rest2</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">state</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span> <span class="pl-k">typeof</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> <span class="pl-c1">===</span> <span class="pl-s">'string'</span><span class="pl-kos">,</span> <span class="pl-s">`Expected <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">}</span></span> to be a string`</span> <span class="pl-kos">)</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span> <span class="pl-s1">pluck</span> <span class="pl-c1">===</span> <span class="pl-s1">pluck2</span><span class="pl-kos">,</span> <span class="pl-s">`Expected <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">pluck</span><span class="pl-kos">}</span></span> to be <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">pluck2</span><span class="pl-kos">}</span></span>`</span> <span class="pl-kos">)</span> <span class="pl-c">// This fails:</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">rest</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">length</span> <span class="pl-c1">===</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">rest2</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">,</span> <span class="pl-s">`Expected <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-s1">rest</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span> to equal <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-s1">rest2</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span> <span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>Expected behavior/code</strong></p> <ol dir="auto"> <li>The destructured key should not be contained in rest even if a numeric key is used for destructuring</li> <li>The assertions in above code should not throw when code is transpiled with babel and evaluated</li> </ol> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [&quot;preset-stage-3&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"preset-stage-3"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): <code class="notranslate">v6.26.0</code> (REPL), <code class="notranslate">v7.2.2</code> (my machine)</li> <li>Node/npm version: Node 11.4.0/npm 6.4.1</li> <li>OS: MacOS 10.14.1</li> <li>Monorepo: 🤷‍♂️</li> <li>How you are using Babel: loader</li> </ul> <p dir="auto"><strong>Additional context/Screenshots</strong><br> Works as expected in Chrome + Firefox Console</p>
<p dir="auto">Choose one: is this a bug report or feature request?<br> bug</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const a = { 1: 0, 2: 1, 3: 2 } const i = 1 const { [i]: val, ...rest } = a"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">1</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">2</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">3</span>: <span class="pl-c1">2</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span>: <span class="pl-s1">val</span><span class="pl-kos">,</span> ...<span class="pl-s1">rest</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span></pre></div> <h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [&quot;babel-preset-expo&quot;], &quot;env&quot;: { &quot;development&quot;: { &quot;plugins&quot;: [&quot;transform-react-jsx-source&quot;] } } }"><pre class="notranslate">{ <span class="pl-ent">"presets"</span>: [<span class="pl-s"><span class="pl-pds">"</span>babel-preset-expo<span class="pl-pds">"</span></span>], <span class="pl-ent">"env"</span>: { <span class="pl-ent">"development"</span>: { <span class="pl-ent">"plugins"</span>: [<span class="pl-s"><span class="pl-pds">"</span>transform-react-jsx-source<span class="pl-pds">"</span></span>] } } }</pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">rest should be</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;2&quot;: 1, &quot;3&quot;: 2, }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"2"</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">"3"</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Current Behavior</h3> <p dir="auto">rest is</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;1&quot;: 0, &quot;2&quot;: 1, &quot;3&quot;: 2, }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"1"</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s">"2"</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">"3"</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Possible Solution</h3> <p dir="auto">indexOf compares with 3 equals and the object key is represented as string<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/babel/babel/blob/88b7983e4f1b4d472f37c057afce0e86da7feb0b/packages/babel-helpers/src/helpers.js#L469">babel/packages/babel-helpers/src/helpers.js</a> </p> <p class="mb-0 color-fg-muted"> Line 469 in <a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/88b7983e4f1b4d472f37c057afce0e86da7feb0b">88b7983</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="L469" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="469"></td> <td id="LC469" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> if (excluded.indexOf(key) &gt;= 0) continue;</span> </td> </tr> </tbody></table> </div> </div> <p></p> <h3 dir="auto">Context</h3> <p dir="auto">running react-native application</p> <h3 dir="auto">Your Environment</h3> <p dir="auto">using react native with expo</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;expo&quot;: { &quot;sdkVersion&quot;: &quot;21.0.0&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"expo"</span>: { <span class="pl-ent">"sdkVersion"</span>: <span class="pl-s"><span class="pl-pds">"</span>21.0.0<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto">dont know about configuration</p>
1
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">Hello, I am writing a next-generation forum package in Python (somebody needs to beat out vBulletin and those other PHP ones, they dominate the market!) and instead of writing another SQL query builder, I decided to check out SQLAlchemy because of its good reputation and seeming power.</p> <p dir="auto">While I am very pleased with what it can do, I feel there is room for improvement, which is why I am bringing up these issues. If you want, I can write the patches to do this stuff but I figured I'd see what the consensus is on these ideas before I spent time writing code just to see patches rejected!</p> <p dir="auto">For the majority (if not all) of these examples, I am assuming the following tables for my examples.</p> <p dir="auto">user: id</p> <ul dir="auto"> <li>name</li> <li>pass</li> <li>email</li> </ul> <p dir="auto">post: id</p> <ul dir="auto"> <li>user_id</li> <li>subject</li> <li>text</li> </ul> <h1 dir="auto">JOIN is too hard to do with a partial select</h1> <p dir="auto">Partial selects seem to be overlooked in SQLAlchemy - which is odd, because they are extremely important for those of us who try to write extremely efficient code for redistribution.</p> <p dir="auto">Let's take the following example: I want to select all the posts we have and the corresponding username... but not the email and password because they are irrelevant for the task at hand. How would we do this?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" select([user.c.name, post](user.c.id,), user.c.id == post.c.user_id) # Oh come on, we have the foreign key established. This is a waste of typing, especially with huge multi-table joins! select([user.c.name, post](user.c.id,)).join(user, post) # Nah, this creates an incorrect query. Not only will it not execute, but it tries to add the join after the cartesian product. join(user,post).select([user.c.name, post](user.c.id,)) # What? selects on a join don't let you define what columns you want to retrieve. Weird... select([user.c.name, post](user.c.id,), from_obj=[join(user,post)](join(user,post))) # Here is how you do it, but man that's ugly."><pre class="notranslate"><code class="notranslate"> select([user.c.name, post](user.c.id,), user.c.id == post.c.user_id) # Oh come on, we have the foreign key established. This is a waste of typing, especially with huge multi-table joins! select([user.c.name, post](user.c.id,)).join(user, post) # Nah, this creates an incorrect query. Not only will it not execute, but it tries to add the join after the cartesian product. join(user,post).select([user.c.name, post](user.c.id,)) # What? selects on a join don't let you define what columns you want to retrieve. Weird... select([user.c.name, post](user.c.id,), from_obj=[join(user,post)](join(user,post))) # Here is how you do it, but man that's ugly. </code></pre></div> <p dir="auto">I feel as if setting a from_obj ruins the "cleanliness" of the code.</p> <h2 dir="auto">Solution 1: Auto-joins</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # Hypothetical. Syntax is up for debate - idea is what counts. select([post.r.user.name, post](post.r.user.id,)) # SQLAlchemy recognizes that you are trying to join because you are using the user table as a property of post, so it creates a JOIN instead of a cartesian product."><pre class="notranslate"><code class="notranslate"> # Hypothetical. Syntax is up for debate - idea is what counts. select([post.r.user.name, post](post.r.user.id,)) # SQLAlchemy recognizes that you are trying to join because you are using the user table as a property of post, so it creates a JOIN instead of a cartesian product. </code></pre></div> <p dir="auto">What on earth is post.r? Basically, it would stand for "relations", or what not - name isn't important. Of course, this is all related to table metadata... while we could detect basic joins with foreign keys, what if the default behavior of X is to do a LEFT JOIN?</p> <p dir="auto">I propose that relationships be added to the table metadata itself instead of an arbitrary ORM. Regardless of whether I use ORM, there IS a relationship between the tables; it doesn't go away when "business objects" are removed from the picture. Adding relationship data to the table metadata itself would allow built queries and partial selects to enjoy the power of relationships without being tied to using an ORM, which can be undesired. (I bring up ORMs later in this ticket)</p> <p dir="auto">Full example: Select all posts with the corresponding user id and user name. We had a few users who had alternate accounts and we deleted them but left the posts because they were informative. We can't use a regular JOIN here - it will skip over those posts!</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" user = Table ( 'user', ... ) post = Table ( 'post', ..., maybe_has ('user')) # Create a &quot;maybe&quot; link with all the defaults - i.e, the relation entry in post is called 'user', link using the foreign keys defined to the table 'user'. select([post.r.user.name, post](post.r.user.id,)).execute() # specifying post by itself only specifies post's columns - not it's relation tables. You could get all of posts' relation-joins by selecting post.r !"><pre class="notranslate"><code class="notranslate"> user = Table ( 'user', ... ) post = Table ( 'post', ..., maybe_has ('user')) # Create a "maybe" link with all the defaults - i.e, the relation entry in post is called 'user', link using the foreign keys defined to the table 'user'. select([post.r.user.name, post](post.r.user.id,)).execute() # specifying post by itself only specifies post's columns - not it's relation tables. You could get all of posts' relation-joins by selecting post.r ! </code></pre></div> <p dir="auto">I don't think this is too high level for the query builder. As I said earlier, the relation exists regardless of whether I am using an ORM or not.</p> <h2 dir="auto">Solution 2: select_join?</h2> <p dir="auto">This wouldn't require any relationship data to be stored.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" select_join([user.c.name, post](user.c.id,), join=[post](user,)) # Assume all columns matching with user and post are going to be joined with each other. select_join([user.c.name, post](user.c.id,), outerjoin=[post](user,)) # Oh my!"><pre class="notranslate"><code class="notranslate"> select_join([user.c.name, post](user.c.id,), join=[post](user,)) # Assume all columns matching with user and post are going to be joined with each other. select_join([user.c.name, post](user.c.id,), outerjoin=[post](user,)) # Oh my! </code></pre></div> <h1 dir="auto">ORM issues</h1> <p dir="auto">I like the idea of object -&gt; relation mapping, I really do. However, I believe the one present in SQLAlchemy is way too bulky for its own good. It needs to be further partitioned.</p> <h2 dir="auto">Partial Selects?</h2> <p dir="auto">You cannot partial select with an object in any sort of convenient way. This makes no sense whatsoever. It's not possible through the objects select(), it's not possible through providing a custom select() to the objects select() (SQLAlchemy will complain about missing fields!)</p> <p dir="auto">Complaining about missing fields is nonsense. It's commonplace to work on subsets of data - I don't need every possible field every time I use an object. If a field isn't there, don't set it. Big deal.</p> <h2 dir="auto">Sessions and Query</h2> <p dir="auto">Too verbose and unnecessary for projects who just want a simple row -&gt; object map. I should be able to get the benefits of relating rows to objects without having to jump through hurdles (I believe caching of objects is completely unnecessary for a well designed application that uses SQL efficiently... this should be delegated outside the scope of the basic ORM.)</p> <h1 dir="auto">use_label doesn't group tables.</h1> <p dir="auto">Even if I don't use an ORM, I should be able to have separation of tables within my queries. There should be an option to segregate the result set into tables, IE:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" row = select([user](post,), use_labels=True).execute().fetchone() # { post_id, post_user_id, post_subject, post_text, user_id, user_name, user_pass, user_email } # Oh shit! I have a function that just operates on the post. Why can't I just pass the post table of the result to my function, so it will work regardless of use_labels or aliases? row = select([post,user](post,user), segregate_tables=True).execute().fetchone() { post : { id, user_id, subject, text}, user : { id, name, pass, email } } my_func(row.post) # Alright! Cool!"><pre class="notranslate"><code class="notranslate"> row = select([user](post,), use_labels=True).execute().fetchone() # { post_id, post_user_id, post_subject, post_text, user_id, user_name, user_pass, user_email } # Oh shit! I have a function that just operates on the post. Why can't I just pass the post table of the result to my function, so it will work regardless of use_labels or aliases? row = select([post,user](post,user), segregate_tables=True).execute().fetchone() { post : { id, user_id, subject, text}, user : { id, name, pass, email } } my_func(row.post) # Alright! Cool! </code></pre></div> <h2 dir="auto">In conclusion</h2> <p dir="auto">I hope you all find my ideas interesting. I would be willing to help implement any one of these ideas. I don't know the SQLAlchemy code by heart, but I'm a very experienced programmer and DBA and would love to be apart of this project in any way I can. I mean, nobody wants me to write my own SQL package... right? Better to help others.</p>
<p dir="auto"><strong>Migrated issue, originally created by jmagnusson (<a href="https://github.com/jmagnusson">@jmagnusson</a>)</strong></p> <p dir="auto">As we all know <code class="notranslate">contains_eager</code> and <code class="notranslate">joinedload</code> queries can be very expensive to run as the amount of columns and rows in the result set start to grow. <code class="notranslate">subqueryload</code> helps a lot in these cases, but unfortunately there's no <code class="notranslate">contains_eager</code> version for it which could allow filtering of the related collections. There is kind of a way to get around this by using the <a href="https://bitbucket.org/zzzeek/sqlalchemy/wiki/UsageRecipes/DisjointEagerLoading" rel="nofollow">DisjointEagerLoading</a> recipe. But could this perhaps be achieved in a more generic way which could make it into the library?</p> <p dir="auto">One idea I have is to pass in a new option <code class="notranslate">sa.orm.enable_eagerloads_filtering()</code> to <code class="notranslate">.options()</code>, like this:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sqlalchemy as sa import sqlalchemy.orm # noqa from sqlalchemy.ext import declarative Base = declarative.declarative_base() Session = sa.orm.sessionmaker() class Product(Base): __tablename__ = 'product' id = sa.Column(sa.Integer, primary_key=True) artno = sa.Column(sa.Text) name = sa.Column(sa.Text) class Variant(Base): __tablename__ = 'variant' id = sa.Column(sa.Integer, primary_key=True) color = sa.Column(sa.Text) product_id = sa.Column(sa.Integer, sa.ForeignKey(Product.id)) product = sa.orm.relationship(Product, backref='variants') class SKU(Base): __tablename__ = 'sku' id = sa.Column(sa.Integer, primary_key=True) size = sa.Column(sa.Text) variant_id = sa.Column(sa.Integer, sa.ForeignKey(Variant.id)) variant = sa.orm.relationship(Variant, backref='skus') product = Product(name='T-shirt', artno='12345') variant = Variant(product=product, color='Black') sku2 = SKU(variant=variant, size='S') sku = SKU(variant=variant, size='M') sku = SKU(variant=variant, size='L') engine = sa.create_engine('sqlite://', echo=True) Session.configure(bind=engine) Base.metadata.create_all(bind=engine) session = Session() session.add_all([sku, sku2]) session.flush() query = ( session.query(Product) .outerjoin(Product.variants) .outerjoin(Variant.skus) .filter(Product.name == 'T-shirt') .filter(Variant.color == 'Black') .filter(SKU.size == 'M') .options( sa.orm.enable_eagerloads_filtering(), # &lt;-- This triggers filtering sa.orm.subqueryload('variants') .subqueryload('skus') ) )"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">as</span> <span class="pl-s1">sa</span> <span class="pl-k">import</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-c"># noqa</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span> <span class="pl-k">import</span> <span class="pl-s1">declarative</span> <span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-s1">declarative</span>.<span class="pl-en">declarative_base</span>() <span class="pl-v">Session</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-s1">orm</span>.<span class="pl-en">sessionmaker</span>() <span class="pl-k">class</span> <span class="pl-v">Product</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'product'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>(<span class="pl-s1">sa</span>.<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">artno</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>(<span class="pl-s1">sa</span>.<span class="pl-v">Text</span>) <span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>(<span class="pl-s1">sa</span>.<span class="pl-v">Text</span>) <span class="pl-k">class</span> <span class="pl-v">Variant</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'variant'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>(<span class="pl-s1">sa</span>.<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">color</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>(<span class="pl-s1">sa</span>.<span class="pl-v">Text</span>) <span class="pl-s1">product_id</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>(<span class="pl-s1">sa</span>.<span class="pl-v">Integer</span>, <span class="pl-s1">sa</span>.<span class="pl-v">ForeignKey</span>(<span class="pl-v">Product</span>.<span class="pl-s1">id</span>)) <span class="pl-s1">product</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-s1">orm</span>.<span class="pl-en">relationship</span>(<span class="pl-v">Product</span>, <span class="pl-s1">backref</span><span class="pl-c1">=</span><span class="pl-s">'variants'</span>) <span class="pl-k">class</span> <span class="pl-v">SKU</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'sku'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>(<span class="pl-s1">sa</span>.<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">size</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>(<span class="pl-s1">sa</span>.<span class="pl-v">Text</span>) <span class="pl-s1">variant_id</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-v">Column</span>(<span class="pl-s1">sa</span>.<span class="pl-v">Integer</span>, <span class="pl-s1">sa</span>.<span class="pl-v">ForeignKey</span>(<span class="pl-v">Variant</span>.<span class="pl-s1">id</span>)) <span class="pl-s1">variant</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-s1">orm</span>.<span class="pl-en">relationship</span>(<span class="pl-v">Variant</span>, <span class="pl-s1">backref</span><span class="pl-c1">=</span><span class="pl-s">'skus'</span>) <span class="pl-s1">product</span> <span class="pl-c1">=</span> <span class="pl-v">Product</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'T-shirt'</span>, <span class="pl-s1">artno</span><span class="pl-c1">=</span><span class="pl-s">'12345'</span>) <span class="pl-s1">variant</span> <span class="pl-c1">=</span> <span class="pl-v">Variant</span>(<span class="pl-s1">product</span><span class="pl-c1">=</span><span class="pl-s1">product</span>, <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">'Black'</span>) <span class="pl-s1">sku2</span> <span class="pl-c1">=</span> <span class="pl-v">SKU</span>(<span class="pl-s1">variant</span><span class="pl-c1">=</span><span class="pl-s1">variant</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-s">'S'</span>) <span class="pl-s1">sku</span> <span class="pl-c1">=</span> <span class="pl-v">SKU</span>(<span class="pl-s1">variant</span><span class="pl-c1">=</span><span class="pl-s1">variant</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-s">'M'</span>) <span class="pl-s1">sku</span> <span class="pl-c1">=</span> <span class="pl-v">SKU</span>(<span class="pl-s1">variant</span><span class="pl-c1">=</span><span class="pl-s1">variant</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-s">'L'</span>) <span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-s1">sa</span>.<span class="pl-en">create_engine</span>(<span class="pl-s">'sqlite://'</span>, <span class="pl-s1">echo</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-v">Session</span>.<span class="pl-en">configure</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">engine</span>) <span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">engine</span>) <span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-v">Session</span>() <span class="pl-s1">session</span>.<span class="pl-en">add_all</span>([<span class="pl-s1">sku</span>, <span class="pl-s1">sku2</span>]) <span class="pl-s1">session</span>.<span class="pl-en">flush</span>() <span class="pl-s1">query</span> <span class="pl-c1">=</span> ( <span class="pl-s1">session</span>.<span class="pl-en">query</span>(<span class="pl-v">Product</span>) .<span class="pl-en">outerjoin</span>(<span class="pl-v">Product</span>.<span class="pl-s1">variants</span>) .<span class="pl-en">outerjoin</span>(<span class="pl-v">Variant</span>.<span class="pl-s1">skus</span>) .<span class="pl-en">filter</span>(<span class="pl-v">Product</span>.<span class="pl-s1">name</span> <span class="pl-c1">==</span> <span class="pl-s">'T-shirt'</span>) .<span class="pl-en">filter</span>(<span class="pl-v">Variant</span>.<span class="pl-s1">color</span> <span class="pl-c1">==</span> <span class="pl-s">'Black'</span>) .<span class="pl-en">filter</span>(<span class="pl-v">SKU</span>.<span class="pl-s1">size</span> <span class="pl-c1">==</span> <span class="pl-s">'M'</span>) .<span class="pl-en">options</span>( <span class="pl-s1">sa</span>.<span class="pl-s1">orm</span>.<span class="pl-en">enable_eagerloads_filtering</span>(), <span class="pl-c"># &lt;-- This triggers filtering</span> <span class="pl-s1">sa</span>.<span class="pl-s1">orm</span>.<span class="pl-en">subqueryload</span>(<span class="pl-s">'variants'</span>) .<span class="pl-en">subqueryload</span>(<span class="pl-s">'skus'</span>) ) )</pre></div> <p dir="auto">Imagine that the commented line would change the behavior of how <code class="notranslate">subqueryloads</code> generates it's queries, and perhaps this could even be a replacement to <code class="notranslate">contains_eager</code> if both <code class="notranslate">subqueryload</code> and <code class="notranslate">joinedload</code> can be changed in this way. I imagine the generated queries to look something like what follows. Note how the inner queries look almost exactly the same.</p> <p dir="auto"><em>Main query</em></p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SELECT product.id, product.artno, product.name FROM product WHERE product.id IN ( SELECT DISTINCT product.id FROM product LEFT OUTER JOIN variant ON variant.product_id = product.id LEFT OUTER JOIN sku ON sku.variant_id = variant.id WHERE product.name = 'T-shirt' AND variant.color = 'Black' AND sku.size = 'M' )"><pre class="notranslate"><span class="pl-k">SELECT</span> <span class="pl-c1">product</span>.<span class="pl-c1">id</span>, <span class="pl-c1">product</span>.<span class="pl-c1">artno</span>, <span class="pl-c1">product</span>.<span class="pl-c1">name</span> <span class="pl-k">FROM</span> product <span class="pl-k">WHERE</span> <span class="pl-c1">product</span>.<span class="pl-c1">id</span> <span class="pl-k">IN</span> ( <span class="pl-k">SELECT DISTINCT</span> <span class="pl-c1">product</span>.<span class="pl-c1">id</span> <span class="pl-k">FROM</span> product <span class="pl-k">LEFT OUTER JOIN</span> variant <span class="pl-k">ON</span> <span class="pl-c1">variant</span>.<span class="pl-c1">product_id</span> <span class="pl-k">=</span> <span class="pl-c1">product</span>.<span class="pl-c1">id</span> <span class="pl-k">LEFT OUTER JOIN</span> sku <span class="pl-k">ON</span> <span class="pl-c1">sku</span>.<span class="pl-c1">variant_id</span> <span class="pl-k">=</span> <span class="pl-c1">variant</span>.<span class="pl-c1">id</span> <span class="pl-k">WHERE</span> <span class="pl-c1">product</span>.<span class="pl-c1">name</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>T-shirt<span class="pl-pds">'</span></span> <span class="pl-k">AND</span> <span class="pl-c1">variant</span>.<span class="pl-c1">color</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>Black<span class="pl-pds">'</span></span> <span class="pl-k">AND</span> <span class="pl-c1">sku</span>.<span class="pl-c1">size</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>M<span class="pl-pds">'</span></span> )</pre></div> <p dir="auto"><em>Variant subquery</em></p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SELECT variant.id, variant.product_id, variant.color FROM variant WHERE variant.id IN ( SELECT DISTINCT variant.id FROM product LEFT OUTER JOIN variant ON variant.product_id = product.id LEFT OUTER JOIN sku ON sku.variant_id = variant.id WHERE product.name = 'T-shirt' AND variant.color = 'Black' AND sku.size = 'M' )"><pre class="notranslate"><span class="pl-k">SELECT</span> <span class="pl-c1">variant</span>.<span class="pl-c1">id</span>, <span class="pl-c1">variant</span>.<span class="pl-c1">product_id</span>, <span class="pl-c1">variant</span>.<span class="pl-c1">color</span> <span class="pl-k">FROM</span> variant <span class="pl-k">WHERE</span> <span class="pl-c1">variant</span>.<span class="pl-c1">id</span> <span class="pl-k">IN</span> ( <span class="pl-k">SELECT DISTINCT</span> <span class="pl-c1">variant</span>.<span class="pl-c1">id</span> <span class="pl-k">FROM</span> product <span class="pl-k">LEFT OUTER JOIN</span> variant <span class="pl-k">ON</span> <span class="pl-c1">variant</span>.<span class="pl-c1">product_id</span> <span class="pl-k">=</span> <span class="pl-c1">product</span>.<span class="pl-c1">id</span> <span class="pl-k">LEFT OUTER JOIN</span> sku <span class="pl-k">ON</span> <span class="pl-c1">sku</span>.<span class="pl-c1">variant_id</span> <span class="pl-k">=</span> <span class="pl-c1">variant</span>.<span class="pl-c1">id</span> <span class="pl-k">WHERE</span> <span class="pl-c1">product</span>.<span class="pl-c1">name</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>T-shirt<span class="pl-pds">'</span></span> <span class="pl-k">AND</span> <span class="pl-c1">variant</span>.<span class="pl-c1">color</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>Black<span class="pl-pds">'</span></span> <span class="pl-k">AND</span> <span class="pl-c1">sku</span>.<span class="pl-c1">size</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>M<span class="pl-pds">'</span></span> )</pre></div> <p dir="auto"><em>SKU subquery</em></p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SELECT sku.id, sku.variant_id, sku.size FROM sku WHERE sku.id IN ( SELECT DISTINCT sku.id FROM product LEFT OUTER JOIN variant ON variant.product_id = product.id LEFT OUTER JOIN sku ON sku.variant_id = variant.id WHERE product.name = 'T-shirt' AND variant.color = 'Black' AND sku.size = 'M' )"><pre class="notranslate"><span class="pl-k">SELECT</span> <span class="pl-c1">sku</span>.<span class="pl-c1">id</span>, <span class="pl-c1">sku</span>.<span class="pl-c1">variant_id</span>, <span class="pl-c1">sku</span>.<span class="pl-c1">size</span> <span class="pl-k">FROM</span> sku <span class="pl-k">WHERE</span> <span class="pl-c1">sku</span>.<span class="pl-c1">id</span> <span class="pl-k">IN</span> ( <span class="pl-k">SELECT DISTINCT</span> <span class="pl-c1">sku</span>.<span class="pl-c1">id</span> <span class="pl-k">FROM</span> product <span class="pl-k">LEFT OUTER JOIN</span> variant <span class="pl-k">ON</span> <span class="pl-c1">variant</span>.<span class="pl-c1">product_id</span> <span class="pl-k">=</span> <span class="pl-c1">product</span>.<span class="pl-c1">id</span> <span class="pl-k">LEFT OUTER JOIN</span> sku <span class="pl-k">ON</span> <span class="pl-c1">sku</span>.<span class="pl-c1">variant_id</span> <span class="pl-k">=</span> <span class="pl-c1">variant</span>.<span class="pl-c1">id</span> <span class="pl-k">WHERE</span> <span class="pl-c1">product</span>.<span class="pl-c1">name</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>T-shirt<span class="pl-pds">'</span></span> <span class="pl-k">AND</span> <span class="pl-c1">variant</span>.<span class="pl-c1">color</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>Black<span class="pl-pds">'</span></span> <span class="pl-k">AND</span> <span class="pl-c1">sku</span>.<span class="pl-c1">size</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>M<span class="pl-pds">'</span></span> )</pre></div> <p dir="auto">SQLAlchemy then bakes in the <code class="notranslate">SKU</code> and <code class="notranslate">Variant</code> results into the main query results like it normally would.</p> <p dir="auto">I'm not very familiar at all with the internals of SQLAlchemy so I can't say anything about the feasibility of this method. Could it be achieved? And is it a good idea?</p>
0
<h3 dir="auto">Expected Behavior</h3> <p dir="auto">Place the following code into <code class="notranslate">main.py</code>.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from flask import Flask app = Flask(__name__) app.config['DEBUG'] = True @app.route('/') def root(): return &quot;:)&quot; app.run()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Flask</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Flask</span>(<span class="pl-s1">__name__</span>) <span class="pl-s1">app</span>.<span class="pl-s1">config</span>[<span class="pl-s">'DEBUG'</span>] <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">'/'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">root</span>(): <span class="pl-k">return</span> <span class="pl-s">":)"</span> <span class="pl-s1">app</span>.<span class="pl-en">run</span>()</pre></div> <p dir="auto">Set the execute bit on <code class="notranslate">main.py</code>:<br> <code class="notranslate">chmod +x main.py</code><br> Running the following command should start the server: <code class="notranslate">python main.py</code></p> <h3 dir="auto">Actual Behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python main.py * Serving Flask app &quot;main&quot; (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: on * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with stat Traceback (most recent call last): File &quot;main.py&quot;, line 11, in &lt;module&gt; app.run() File &quot;/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/site-packages/flask/app.py&quot;, line 943, in run run_simple(host, port, self, **options) File &quot;/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/site-packages/werkzeug/serving.py&quot;, line 988, in run_simple run_with_reloader(inner, extra_files, reloader_interval, reloader_type) File &quot;/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/site-packages/werkzeug/_reloader.py&quot;, line 332, in run_with_reloader sys.exit(reloader.restart_with_reloader()) File &quot;/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/site-packages/werkzeug/_reloader.py&quot;, line 176, in restart_with_reloader exit_code = subprocess.call(args, env=new_environ, close_fds=False) File &quot;/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/subprocess.py&quot;, line 323, in call with Popen(*popenargs, **kwargs) as p: File &quot;/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/subprocess.py&quot;, line 775, in __init__ restore_signals, start_new_session) File &quot;/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/subprocess.py&quot;, line 1522, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: '/Users/wadegilmer/lc101/flask_error/main.py'"><pre lang="pyb" class="notranslate"><code class="notranslate">$ python main.py * Serving Flask app "main" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: on * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with stat Traceback (most recent call last): File "main.py", line 11, in &lt;module&gt; app.run() File "/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/site-packages/flask/app.py", line 943, in run run_simple(host, port, self, **options) File "/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/site-packages/werkzeug/serving.py", line 988, in run_simple run_with_reloader(inner, extra_files, reloader_interval, reloader_type) File "/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/site-packages/werkzeug/_reloader.py", line 332, in run_with_reloader sys.exit(reloader.restart_with_reloader()) File "/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/site-packages/werkzeug/_reloader.py", line 176, in restart_with_reloader exit_code = subprocess.call(args, env=new_environ, close_fds=False) File "/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/subprocess.py", line 323, in call with Popen(*popenargs, **kwargs) as p: File "/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/subprocess.py", line 775, in __init__ restore_signals, start_new_session) File "/Users/wadegilmer/miniconda3/envs/hello-flask/lib/python3.7/subprocess.py", line 1522, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: '/Users/wadegilmer/lc101/flask_error/main.py' </code></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>osx version: 10.13.6</li> <li>Python version: 3.7.3</li> <li>Flask version: 1.0.2</li> <li>Werkzeug version: 0.15.2</li> </ul> <h3 dir="auto">Commentary</h3> <p dir="auto">Adding a shabang line to <code class="notranslate">main.py</code> resolves the issue but is kind of unexpected. Additionally removing the execute bit also resolves the issue. Is this the expected behavior?</p>
<p dir="auto">The new 0.15.0 does not run in Docker for Windows. Have not tried Docker on other platforms.</p> <p dir="auto">Minimal example with Flask.</p> <p dir="auto">app.py</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, world!' if __name__ == '__main__': app.run(debug=True, host='0.0.0.0')"><pre class="notranslate"><code class="notranslate">from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, world!' if __name__ == '__main__': app.run(debug=True, host='0.0.0.0') </code></pre></div> <p dir="auto">Dockerfile</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM python:3-onbuild COPY . /usr/src/app CMD [&quot;python&quot;, &quot;app.py&quot;]"><pre class="notranslate"><code class="notranslate">FROM python:3-onbuild COPY . /usr/src/app CMD ["python", "app.py"] </code></pre></div> <p dir="auto">requirements.txt</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Werkzeug==0.14.1 Flask"><pre class="notranslate"><code class="notranslate"># Werkzeug==0.14.1 Flask </code></pre></div> <p dir="auto">Run <code class="notranslate">docker build -t flask_test .</code> and then <code class="notranslate">docker run flask_test</code>.<br> Error in container:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="λ docker run flask_test * Serving Flask app &quot;app&quot; (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: on * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) * Restarting with stat Traceback (most recent call last): File &quot;app.py&quot;, line 11, in &lt;module&gt; app.run(debug=True, host='0.0.0.0') File &quot;/usr/local/lib/python3.6/site-packages/flask/app.py&quot;, line 943, in run run_simple(host, port, self, **options) File &quot;/usr/local/lib/python3.6/site-packages/werkzeug/serving.py&quot;, line 988, in run_simple run_with_reloader(inner, extra_files, reloader_interval, reloader_type) File &quot;/usr/local/lib/python3.6/site-packages/werkzeug/_reloader.py&quot;, line 332, in run_with_reloader sys.exit(reloader.restart_with_reloader()) File &quot;/usr/local/lib/python3.6/site-packages/werkzeug/_reloader.py&quot;, line 176, in restart_with_reloader exit_code = subprocess.call(args, env=new_environ, close_fds=False) File &quot;/usr/local/lib/python3.6/subprocess.py&quot;, line 267, in call with Popen(*popenargs, **kwargs) as p: File &quot;/usr/local/lib/python3.6/subprocess.py&quot;, line 709, in __init__ restore_signals, start_new_session) File &quot;/usr/local/lib/python3.6/subprocess.py&quot;, line 1344, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: '/usr/src/app/app.py"><pre class="notranslate"><code class="notranslate">λ docker run flask_test * Serving Flask app "app" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: on * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) * Restarting with stat Traceback (most recent call last): File "app.py", line 11, in &lt;module&gt; app.run(debug=True, host='0.0.0.0') File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 943, in run run_simple(host, port, self, **options) File "/usr/local/lib/python3.6/site-packages/werkzeug/serving.py", line 988, in run_simple run_with_reloader(inner, extra_files, reloader_interval, reloader_type) File "/usr/local/lib/python3.6/site-packages/werkzeug/_reloader.py", line 332, in run_with_reloader sys.exit(reloader.restart_with_reloader()) File "/usr/local/lib/python3.6/site-packages/werkzeug/_reloader.py", line 176, in restart_with_reloader exit_code = subprocess.call(args, env=new_environ, close_fds=False) File "/usr/local/lib/python3.6/subprocess.py", line 267, in call with Popen(*popenargs, **kwargs) as p: File "/usr/local/lib/python3.6/subprocess.py", line 709, in __init__ restore_signals, start_new_session) File "/usr/local/lib/python3.6/subprocess.py", line 1344, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) OSError: [Errno 8] Exec format error: '/usr/src/app/app.py </code></pre></div> <p dir="auto">Uncomment the first line in <code class="notranslate">requirements.txt</code> and it runs properly after rebuild.</p>
1
<h3 dir="auto">First Check</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li> </ul> <h3 dir="auto">Commit to Help</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li> </ul> <h3 dir="auto">Example Code</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import FastAPI, CronTasks from time import sleep app = FastAPI() @app.on_event(&quot;startup&quot;) async def startup_event(): await some_function() async def some_function(cron_tasks: CronTasks): cron_tasks.add_task(function = other_function, parameters = 'Some parameters', repeat_time = 216000) # Time in seconds; 24h = 216000 async def other_function(parameters): print(parameters) sleep(3)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>, <span class="pl-v">CronTasks</span> <span class="pl-k">from</span> <span class="pl-s1">time</span> <span class="pl-k">import</span> <span class="pl-s1">sleep</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>() <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">on_event</span>(<span class="pl-s">"startup"</span>)</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">startup_event</span>(): <span class="pl-k">await</span> <span class="pl-en">some_function</span>() <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">some_function</span>(<span class="pl-s1">cron_tasks</span>: <span class="pl-v">CronTasks</span>): <span class="pl-s1">cron_tasks</span>.<span class="pl-en">add_task</span>(<span class="pl-s1">function</span> <span class="pl-c1">=</span> <span class="pl-s1">other_function</span>, <span class="pl-s1">parameters</span> <span class="pl-c1">=</span> <span class="pl-s">'Some parameters'</span>, <span class="pl-s1">repeat_time</span> <span class="pl-c1">=</span> <span class="pl-c1">216000</span>) <span class="pl-c"># Time in seconds; 24h = 216000</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">other_function</span>(<span class="pl-s1">parameters</span>): <span class="pl-en">print</span>(<span class="pl-s1">parameters</span>) <span class="pl-en">sleep</span>(<span class="pl-c1">3</span>)</pre></div> <h3 dir="auto">Description</h3> <p dir="auto">Call a cron tasks class in my controllers or events to set up repetitive actions.</p> <h3 dir="auto">Wanted Solution</h3> <p dir="auto">When I launch my project with uvicorn I would like to have some cron tasks, like background tasks but repeated over time instead of in the background.</p> <h3 dir="auto">Wanted Code</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="I haven't thought about the solution yet, but I could do it if it is interesting for the community."><pre class="notranslate"><span class="pl-v">I</span> <span class="pl-s1">haven</span>'<span class="pl-s1">t</span> <span class="pl-s1">thought</span> <span class="pl-s1">about</span> <span class="pl-s1">the</span> <span class="pl-s1">solution</span> <span class="pl-s1">yet</span>, <span class="pl-s1">but</span> <span class="pl-v">I</span> <span class="pl-s1">could</span> <span class="pl-s1">do</span> <span class="pl-s1">it</span> <span class="pl-k">if</span> <span class="pl-s1">it</span> <span class="pl-c1">is</span> <span class="pl-s1">interesting</span> <span class="pl-s1">for</span> <span class="pl-s1">the</span> <span class="pl-s1">community</span>.</pre></div> <h3 dir="auto">Alternatives</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating System</h3> <p dir="auto">Linux</p> <h3 dir="auto">Operating System Details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">FastAPI Version</h3> <p dir="auto">0.87.0</p> <h3 dir="auto">Python Version</h3> <p dir="auto">3.10</p> <h3 dir="auto">Additional Context</h3> <p dir="auto"><em>No response</em></p>
<h3 dir="auto">First Check</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li> </ul> <h3 dir="auto">Commit to Help</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li> </ul> <h3 dir="auto">Example Code</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# main.py import uvicorn from fastapi import FastAPI, Form app = FastAPI() @app.post(&quot;/&quot;) def hello(arg: tuple[int, int] = Form(...)) -&gt; str: pass if __name__ == &quot;__main__&quot;: uvicorn.run(&quot;main:app&quot;, port=8080)"><pre class="notranslate"><span class="pl-c"># main.py</span> <span class="pl-k">import</span> <span class="pl-s1">uvicorn</span> <span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>, <span class="pl-v">Form</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>() <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">"/"</span>)</span> <span class="pl-k">def</span> <span class="pl-en">hello</span>(<span class="pl-s1">arg</span>: <span class="pl-s1">tuple</span>[<span class="pl-s1">int</span>, <span class="pl-s1">int</span>] <span class="pl-c1">=</span> <span class="pl-v">Form</span>(...)) <span class="pl-c1">-&gt;</span> <span class="pl-s1">str</span>: <span class="pl-k">pass</span> <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-s1">uvicorn</span>.<span class="pl-en">run</span>(<span class="pl-s">"main:app"</span>, <span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">8080</span>)</pre></div> <h3 dir="auto">Description</h3> <ol dir="auto"> <li>Run <code class="notranslate">pip install uvicorn fastapi==0.68.0</code>.</li> <li>Run <code class="notranslate">python ./main.py</code></li> <li>Hit <code class="notranslate">localhost:8080/docs</code>, observe internal server error with below validation errors:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pydantic.error_wrappers.ValidationError: 2 validation errors for OpenAPI components -&gt; schemas -&gt; Body_hello__post -&gt; properties -&gt; arg -&gt; items value is not a valid dict (type=type_error.dict) components -&gt; schemas -&gt; Body_hello__post -&gt; $ref field required (type=value_error.missing)"><pre class="notranslate"><code class="notranslate">pydantic.error_wrappers.ValidationError: 2 validation errors for OpenAPI components -&gt; schemas -&gt; Body_hello__post -&gt; properties -&gt; arg -&gt; items value is not a valid dict (type=type_error.dict) components -&gt; schemas -&gt; Body_hello__post -&gt; $ref field required (type=value_error.missing) </code></pre></div> <ol start="4" dir="auto"> <li>Run <code class="notranslate">pip install fastapi==0.67.0</code></li> <li>Hit <code class="notranslate">localhost:8080/docs</code>, observe that endpoint documentation is successfully generated.</li> </ol> <h3 dir="auto">Operating System</h3> <p dir="auto">Linux</p> <h3 dir="auto">Operating System Details</h3> <p dir="auto">Ubuntu 20.04</p> <h3 dir="auto">FastAPI Version</h3> <p dir="auto">0.68.0 has bug, 0.67.0 does not have bug.</p> <h3 dir="auto">Python Version</h3> <p dir="auto">3.9</p> <h3 dir="auto">Additional Context</h3> <p dir="auto">Any use of <code class="notranslate">tuple</code> in an input (<code class="notranslate">Form</code>, and <code class="notranslate">BaseModel</code> as JSON) or output (<code class="notranslate">BaseModel</code> as JSON) results in above error.</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>: 0.209.0<br> <strong>System</strong>: Mac OS X 10.10.3<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Failed to activate the find-and-replace package</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At ENOENT: no such file or directory, open '/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar' Error: ENOENT: no such file or directory, open '/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar' at Error (native) at fs.openSync (fs.js:544:18) at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:402:12) at Object.loadFile [as .js] (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/babel.js:138:21) at Module.load (module.js:347:32) at Function.Module._load (module.js:302:12) at Module.require (module.js:357:17) at require (module.js:376:17) at Package.module.exports.Package.requireMainModule (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/package.js:709:34) at Package.module.exports.Package.activateConfig (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/package.js:257:12) at Package.module.exports.Package.activateNow (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/package.js:236:14) at /Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/package.js:772:25 at Emitter.module.exports.Emitter.emit (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/command-registry.js:219:20) at CommandRegistry.handleCommandEvent (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61) at CommandRegistry.module.exports.CommandRegistry.dispatch (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/command-registry.js:153:19) at EventEmitter.&lt;anonymous&gt; (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:70:30) at emitOne (events.js:77:13) at EventEmitter.emit (events.js:166:7) "><pre class="notranslate"><code class="notranslate">At ENOENT: no such file or directory, open '/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar' Error: ENOENT: no such file or directory, open '/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar' at Error (native) at fs.openSync (fs.js:544:18) at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:402:12) at Object.loadFile [as .js] (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/babel.js:138:21) at Module.load (module.js:347:32) at Function.Module._load (module.js:302:12) at Module.require (module.js:357:17) at require (module.js:376:17) at Package.module.exports.Package.requireMainModule (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/package.js:709:34) at Package.module.exports.Package.activateConfig (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/package.js:257:12) at Package.module.exports.Package.activateNow (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/package.js:236:14) at /Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/package.js:772:25 at Emitter.module.exports.Emitter.emit (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11) at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/command-registry.js:219:20) at CommandRegistry.handleCommandEvent (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61) at CommandRegistry.module.exports.CommandRegistry.dispatch (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/command-registry.js:153:19) at EventEmitter.&lt;anonymous&gt; (/Users/jeffdorchester/Library/Application Support/com.github.atom.ShipIt/update.VYADDCy/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:70:30) at emitOne (events.js:77:13) at EventEmitter.emit (events.js:166:7) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -0:00.1.0 project-find:show (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -0:00.1.0 project-find:show (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;disabledPackages&quot;: [ &quot;angularjs-snippets&quot;, &quot;SFTP-deployment&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>angularjs-snippets<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>SFTP-deployment<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> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User No installed packages # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> <span class="pl-en">No</span> <span class="pl-en">installed</span> packages <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>Open editor from command line using git with it as default commit editor.</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.196.0<br> <strong>System</strong>: Mac OS X 10.10.3<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Failed to load the exception-reporting package</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At ENOENT: no such file or directory, open '/Applications/Atom.app/Contents/Resources/app.asar' Error: ENOENT: no such file or directory, open '/Applications/Atom.app/Contents/Resources/app.asar' at Error (native) at fs.openSync (fs.js:544:18) at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:402:12) at Object.loadFile [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/babel.js:138:21) at Module.load (module.js:347:32) at Function.Module._load (module.js:302:12) at Module.require (module.js:357:17) at require (module.js:376:17) at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:691:34) at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:170:28"><pre class="notranslate"><code class="notranslate">At ENOENT: no such file or directory, open '/Applications/Atom.app/Contents/Resources/app.asar' Error: ENOENT: no such file or directory, open '/Applications/Atom.app/Contents/Resources/app.asar' at Error (native) at fs.openSync (fs.js:544:18) at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:402:12) at Object.loadFile [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/babel.js:138:21) at Module.load (module.js:347:32) at Function.Module._load (module.js:302:12) at Module.require (module.js:357:17) at require (module.js:376:17) at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:691:34) at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:170:28 </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;atom-dark-ui&quot;, &quot;one-dark-syntax&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;fontSize&quot;: 15 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</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>one-dark-syntax<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">15</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 No installed packages # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> <span class="pl-en">No</span> <span class="pl-en">installed</span> packages <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">Dragging should be efficient in anywhere in the menu bar like all other text editors. The tab window should be dragged out to create a new window.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37213113/59999479-a93a3080-9694-11e9-900f-ee5f3b111cf0.png"><img src="https://user-images.githubusercontent.com/37213113/59999479-a93a3080-9694-11e9-900f-ee5f3b111cf0.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=alisonr" rel="nofollow">Alison Rosewarne</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5145?redirect=false" rel="nofollow">SPR-5145</a></strong> and commented</p> <p dir="auto">After upgrading to junit 4.5 my test class which uses the SpringJUnit4ClassRunner gets a NoClassDefFoundError:</p> <p dir="auto">org.apache.maven.surefire.booter.SurefireExecutionException: org/junit/Assume$AssumptionViolatedException; nested exception is java.lang.NoClassDefFoundError: org/junit/Assume$AssumptionViolatedException<br> java.lang.NoClassDefFoundError: org/junit/Assume$AssumptionViolatedException<br> at org.springframework.test.context.junit4.SpringMethodRoadie.runTestMethod(SpringMethodRoadie.java:240)<br> at org.springframework.test.context.junit4.SpringMethodRoadie$RunBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333)<br> at org.springframework.test.context.junit4.SpringMethodRoadie.runWithRepetitions(SpringMethodRoadie.java:217)<br> at org.springframework.test.context.junit4.SpringMethodRoadie.runTest(SpringMethodRoadie.java:197)<br> at org.springframework.test.context.junit4.SpringMethodRoadie.run(SpringMethodRoadie.java:143)<br> at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:142)<br> at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:59)</p> <p dir="auto">etc.</p> <p dir="auto">This is a Junit 4.5 issue. The static class AssumptionViolatedException within org.junit.Assume that existed in 4.4 has become org.junit.internal.AssumptionViolatedException.</p> <p dir="auto">The file tiger/mock/org/springframework/test/context/junit4/SpringMethodRoadie.java imports org.junit.Assume.AssumptionViolatedException which is why my test is failing.</p> <p dir="auto">Workaround is to stick with Junit 4.4.</p> <p dir="auto">(Aside: are there plans to create a "SpringTEST" component?).</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/14674/junit4.5.patch" rel="nofollow">junit4.5.patch</a> (<em>43.97 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="398091060" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9844" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9844/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9844">#9844</a> Incompatible with JUnit 4.5 (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398095979" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10557" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10557/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10557">#10557</a> Upgrade the Spring TestContext Framework to JUnit 4.6</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/d159195b79ab02c25217e0503e804e53dff28b43/hovercard" href="https://github.com/spring-projects/spring-framework/commit/d159195b79ab02c25217e0503e804e53dff28b43"><tt>d159195</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/c0c9501005750f06f4cac355ef576a3730665b2c/hovercard" href="https://github.com/spring-projects/spring-framework/commit/c0c9501005750f06f4cac355ef576a3730665b2c"><tt>c0c9501</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/9daae23e17c4294af5fdbf9dc10a0ce959534a24/hovercard" href="https://github.com/spring-projects/spring-framework/commit/9daae23e17c4294af5fdbf9dc10a0ce959534a24"><tt>9daae23</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/e5d2570c8d9a005a7f9e0dd5b667528895ef4321/hovercard" href="https://github.com/spring-projects/spring-framework/commit/e5d2570c8d9a005a7f9e0dd5b667528895ef4321"><tt>e5d2570</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/751e0f0eb77f5330169cf0fd6c046e5bbfb23af4/hovercard" href="https://github.com/spring-projects/spring-framework/commit/751e0f0eb77f5330169cf0fd6c046e5bbfb23af4"><tt>751e0f0</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/62c991f9d6ebaa404d71ac1fad84c8128fd47ca0/hovercard" href="https://github.com/spring-projects/spring-framework/commit/62c991f9d6ebaa404d71ac1fad84c8128fd47ca0"><tt>62c991f</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/6327b3484b2fe34bacc85b4e70641a6baec5274e/hovercard" href="https://github.com/spring-projects/spring-framework/commit/6327b3484b2fe34bacc85b4e70641a6baec5274e"><tt>6327b34</tt></a></p> <p dir="auto">3 votes, 11 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mrgcos" rel="nofollow">Gordon Cosgrave</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2669?redirect=false" rel="nofollow">SPR-2669</a></strong> and commented</p> <p dir="auto">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [testApplicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: SessionFactory not initialized yet<br> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [testApplicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: SessionFactory not initialized yet<br> Caused by: java.lang.IllegalStateException: SessionFactory not initialized yet<br> at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.getSessionFactory(AbstractSessionFactoryBean.java:175)<br> at org.springframework.orm.hibernate3.LocalSessionFactoryBean.updateDatabaseSchema(LocalSessionFactoryBean.java:918)<br> at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:762)<br> at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)<br> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)<br> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)<br> at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)<br> at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)<br> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)<br> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)<br> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)<br> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)<br> at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:92)<br> at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:77)<br> at SchemaUpdater.main(SchemaUpdater.java:13)</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 final</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="398071766" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7387" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7387/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7387">#7387</a> LocalSessionFactoryBean when schemaUpdate is true fail to build session factory (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398073598" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7611" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7611/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7611">#7611</a> Can't use the schemaupdate=true functionality in Spring 2.0.1 (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<p dir="auto">I'm using IncrementalPCA.partial_fit within a loop over a large array that I read in from a file sequentially to avoid memory limitations. After 5 iterations, I'm getting an explained variance ratio of just the first component of 31.8... Each iteration of partial_fit uses 500 samples with 840 features. IncrementalPCA is initialized to keep 100 components.</p> <p dir="auto">code snippet:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Xarray = np.genfromtxt(f, skip_header=start_row, max_rows=increment, delimiter=',') print &quot;Xarray shape: {}&quot;.format(Xarray.shape) while (Xarray is not None): ipca.partial_fit(Xarray) print &quot;PCA after {} samples seen&quot;.format(ipca.n_samples_seen_) print ipca.explained_variance_ratio_ start_row += increment print &quot;start_row: {}&quot;.format(start_row) Xarray = np.genfromtxt(f, skip_header=start_row, max_rows=increment, delimiter=',') print &quot;Xarray shape: {}&quot;.format(Xarray.shape)"><pre class="notranslate"><code class="notranslate"> Xarray = np.genfromtxt(f, skip_header=start_row, max_rows=increment, delimiter=',') print "Xarray shape: {}".format(Xarray.shape) while (Xarray is not None): ipca.partial_fit(Xarray) print "PCA after {} samples seen".format(ipca.n_samples_seen_) print ipca.explained_variance_ratio_ start_row += increment print "start_row: {}".format(start_row) Xarray = np.genfromtxt(f, skip_header=start_row, max_rows=increment, delimiter=',') print "Xarray shape: {}".format(Xarray.shape) </code></pre></div> <p dir="auto">output snippet:</p> <p dir="auto">PCA after 2500 samples seen<br> [ 3.18056975e+01 4.98029267e-01 4.43883664e-01 4.08451255e-01<br> 3.89128549e-01 3.77518999e-01 3.56542640e-01 3.33262109e-01<br> 3.14950109e-01 2.98874660e-01 2.85867538e-01 2.81010422e-01<br> 2.72842557e-01 2.63025294e-01 2.54989075e-01 2.50687686e-01<br> 2.48726216e-01 2.35796452e-01 2.30737988e-01 2.21640908e-01<br> 2.13462023e-01 2.01752219e-01 1.95959838e-01 1.95708886e-01<br> 1.87027547e-01 1.82996412e-01 1.79610949e-01 1.74964506e-01<br> 1.60011439e-01 1.49475301e-01 1.40894784e-01 1.35475019e-01<br> 1.25310298e-01 1.22854195e-01 1.13804103e-01 1.13238117e-01<br> 1.11017593e-01 1.07160756e-01 1.03961022e-01 9.42830621e-02<br> 8.58979109e-02 7.65082305e-02 6.75815877e-02 6.48157108e-02<br> 5.79329461e-02 5.49496091e-02 3.76775268e-02 2.08521555e-02<br> 1.96837250e-02 1.37371817e-02 7.19341856e-03 6.08796477e-03<br> 5.17738195e-03 4.85022397e-03 4.57451540e-03 3.69717201e-03<br> 3.61169834e-03 2.89407860e-03 2.09412930e-03 1.62549028e-03<br> 1.49595829e-03 1.30557971e-03 1.03945572e-03 9.26718009e-04<br> 8.26675398e-04 7.57518243e-04 7.17753386e-04 5.67656331e-04<br> 5.41295550e-04 4.92545563e-04 4.78711593e-04 4.42107099e-04<br> 3.65606069e-04 3.57073238e-04 2.96661647e-04 2.73361497e-04<br> 2.66919822e-04 2.45986959e-04 2.41616313e-04 2.34303943e-04<br> 2.25211473e-04 2.15443298e-04 2.10465870e-04 2.05961013e-04<br> 1.95109203e-04 1.85263196e-04 1.73445133e-04 1.69027180e-04<br> 1.56755129e-04 1.52948248e-04 1.51477907e-04 1.48012761e-04<br> 1.42888295e-04 1.40980522e-04 1.24088002e-04 1.14768643e-04<br> 4.43898504e-05 2.33152703e-05 2.06950098e-05 1.62836044e-05]<br> start_row: 2500<br> Xarray shape: (500, 840)</p>
<p dir="auto">FastICA uses print to tell a user about that the number of components is larger than the number of available features (<a href="https://github.com/scikit-learn/scikit-learn/blob/51a765a/sklearn/decomposition/fastica_.py#L296">https://github.com/scikit-learn/scikit-learn/blob/51a765a/sklearn/decomposition/fastica_.py#L296</a>). This makes it unnecessarily hard to catch the output and redirect it to a logger.</p> <p dir="auto">I propose to use <code class="notranslate">warnings.warn</code>, as in <a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/kernel_approximation.py#L463">kernel approximation</a> or <a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/discriminant_analysis.py#L690">qda</a>.</p>
0
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>Summary</strong></p> <p dir="auto">When using <code class="notranslate">splitChunks</code> with <code class="notranslate">chunks: 'all'</code>, and the <code class="notranslate">maxInitialRequests</code> limit is hit by certain entrypoints, the automatically generated chunk names are incorrect (they list the wrong pages between the <code class="notranslate">~</code>) and therefore can result in <code class="notranslate">minChunks</code> not being honoured.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <ol dir="auto"> <li><code class="notranslate">git clone https://github.com/edmorley/testcase-webpack-splitchunks-naming.git &amp;&amp; cd testcase-webpack-splitchunks-naming</code></li> <li><code class="notranslate">yarn install</code></li> <li><code class="notranslate">yarn build</code></li> </ol> <p dir="auto">(I've tried to reduce the testcase as much as possible, but if I remove any more the issue stops occurring. However there are 90% fewer source files, ~half the entrypoints and a much smaller webpack config than at the start, so hopefully that's enough :-))</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Since <code class="notranslate">splitChunks.maxInitialRequests: 5</code>, there should be no more than five files for each entrypoint (including the entrypoint itself) that contain the name of the entrypoint.</p> <p dir="auto">In addition, the <code class="notranslate">minChunks: 2</code> should be honoured, and so no non-vendor chunks created, that aren't used by at least 2 entrypoints.</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">There are 6 files containing the string <code class="notranslate">index</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ls -1 dist/*index* dist/index.js dist/index~logviewer~perf.js dist/vendors~index.js dist/vendors~index~logviewer~perf.js dist/vendors~index~logviewer~perf~userguide.js dist/vendors~index~perf.js"><pre class="notranslate"><code class="notranslate">$ ls -1 dist/*index* dist/index.js dist/index~logviewer~perf.js dist/vendors~index.js dist/vendors~index~logviewer~perf.js dist/vendors~index~logviewer~perf~userguide.js dist/vendors~index~perf.js </code></pre></div> <p dir="auto">...and similarly, 6 containing the string <code class="notranslate">perf</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ls -1 dist/*perf* dist/index~logviewer~perf.js dist/perf.js dist/vendors~index~logviewer~perf.js dist/vendors~index~logviewer~perf~userguide.js dist/vendors~index~perf.js dist/vendors~perf.js"><pre class="notranslate"><code class="notranslate">$ ls -1 dist/*perf* dist/index~logviewer~perf.js dist/perf.js dist/vendors~index~logviewer~perf.js dist/vendors~index~logviewer~perf~userguide.js dist/vendors~index~perf.js dist/vendors~perf.js </code></pre></div> <p dir="auto">However the build output only lists 5 files for each:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Entrypoints: index (937 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~index.js index.js perf (742 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~perf.js perf.js"><pre class="notranslate"><code class="notranslate">Entrypoints: index (937 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~index.js index.js perf (742 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~perf.js perf.js </code></pre></div> <p dir="auto">The file missing from above is <code class="notranslate">index~logviewer~perf.js</code>, which is only listed under the <code class="notranslate">logviewer</code> entrypoint:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" logviewer (591 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js index~logviewer~perf.js logviewer.js"><pre class="notranslate"><code class="notranslate"> logviewer (591 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js index~logviewer~perf.js logviewer.js </code></pre></div> <p dir="auto">Inspecting the generated output using <code class="notranslate">BundleAnalyzerPlugin</code> shows that the <code class="notranslate">index~logviewer~perf.js</code> file's content is repeated inside <code class="notranslate">index.js</code> and <code class="notranslate">perf.js</code>.</p> <p dir="auto">As such, my hunch is that due to <code class="notranslate">maxInitialRequests</code>, the extra chunk wasn't able to be used by <code class="notranslate">index.js</code> and <code class="notranslate">perf.js</code> (so the content duplicated in them), but that the naming function didn't adjust the name of <code class="notranslate">index~logviewer~perf.js</code> to no longer reference those page names (ie change it back to just <code class="notranslate">logviewer</code>).</p> <p dir="auto">This means that <code class="notranslate">index~logviewer~perf.js</code> is only referenced by one entrypoint (<code class="notranslate">logviewer</code>), but yet is in it's own separate chunk, thereby not adhering to the <code class="notranslate">minChunks: 2</code> requirement.</p> <p dir="auto">The full build output is:</p> <details> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="testcase-webpack-splitchunks-naming $ yarn build yarn run v1.6.0 (node:4376) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. $ webpack clean-webpack-plugin: C:\Users\Ed\src\testcase-webpack-splitchunks-naming\dist has been removed. Hash: 578af10f8f40529aee2f Version: webpack 4.8.3 Time: 1961ms Built at: 2018-05-16 21:58:12 Asset Size Chunks Chunk Names vendors~index~logviewer~perf~userguide.js 174 KiB 0 [emitted] vendors~index~logviewer~perf~userguide vendors~index~logviewer~perf.js 397 KiB 1 [emitted] [big] vendors~index~logviewer~perf vendors~index~perf.js 119 KiB 2 [emitted] vendors~index~perf index~logviewer~perf.js 13.5 KiB 3 [emitted] index~logviewer~perf vendors~perf.js 36.5 KiB 4 [emitted] vendors~perf vendors~index.js 218 KiB 5 [emitted] vendors~index userguide.js 1.27 KiB 6 [emitted] userguide logviewer.js 7.1 KiB 7 [emitted] logviewer perf.js 16.4 KiB 8, 3 [emitted] perf index.js 30.3 KiB 9, 3 [emitted] index Entrypoint index [big] = vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~index.js index.js Entrypoint perf [big] = vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~perf.js perf.js Entrypoint logviewer [big] = vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js index~logviewer~perf.js logviewer.js Entrypoint userguide = vendors~index~logviewer~perf~userguide.js userguide.js [0] ./src/js/treeherder.js 274 bytes {3} {8} {9} [built] [4] ./src/js/constants.js 12.4 KiB {3} {8} {9} [built] [5] ./src/js/services/taskcluster.js 1.73 KiB {3} {8} {9} [built] [8] ./src/helpers/urlHelper.js + 2 modules 6.22 KiB {3} {8} {9} [built] | ./src/helpers/urlHelper.js 5.23 KiB [built] | ./src/helpers/locationHelper.js 220 bytes [built] | ./src/helpers/revisionHelper.js 789 bytes [built] [10] ./src/partials/main/tcjobactions.html 1.95 KiB {3} {8} {9} [built] [18] ./src/helpers/jobHelper.js 4.58 KiB {7} {9} [built] [23] ./src/js/filters.js 2.09 KiB {3} {8} {9} [built] [28] ./src/js/services/tcactions.js 5.8 KiB {3} {8} {9} [built] [37] ./src/js/services/main.js 4.59 KiB {7} {8} [built] [68] ./src/partials/main/intermittent.html 5.26 KiB {9} [built] [72] ./src/entry-userguide.js + 1 modules 515 bytes {6} [built] | ./src/entry-userguide.js 25 bytes [built] | ./src/js/userguide.js 485 bytes [built] [73] ./src/entry-perf.js + 2 modules 1.74 KiB {8} [built] | ./src/entry-perf.js 169 bytes [built] | ./src/js/perf.js 401 bytes [built] | ./src/js/models/option_collection.js 1.13 KiB [built] [74] ./src/entry-logviewer.js + 2 modules 11.9 KiB {7} [built] | ./src/entry-logviewer.js 170 bytes [built] | ./src/js/logviewer.js 1.11 KiB [built] | ./src/js/controllers/logviewer.js 10.6 KiB [built] [75] ./src/entry-index.js + 2 modules 31.5 KiB {9} [built] | ./src/entry-index.js 139 bytes [built] | ./src/js/treeherder_app.js 2.25 KiB [built] | ./src/plugins/controller.js 29 KiB [built] [151] (webpack)/buildin/module.js 519 bytes {1} [built] + 146 hidden modules WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: vendors~index~logviewer~perf.js (397 KiB) WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: index (937 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~index.js index.js perf (742 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~perf.js perf.js logviewer (591 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js index~logviewer~perf.js logviewer.js WARNING in webpack performance recommendations: You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application. For more info visit https://webpack.js.org/guides/code-splitting/"><pre class="notranslate"><code class="notranslate">testcase-webpack-splitchunks-naming $ yarn build yarn run v1.6.0 (node:4376) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. $ webpack clean-webpack-plugin: C:\Users\Ed\src\testcase-webpack-splitchunks-naming\dist has been removed. Hash: 578af10f8f40529aee2f Version: webpack 4.8.3 Time: 1961ms Built at: 2018-05-16 21:58:12 Asset Size Chunks Chunk Names vendors~index~logviewer~perf~userguide.js 174 KiB 0 [emitted] vendors~index~logviewer~perf~userguide vendors~index~logviewer~perf.js 397 KiB 1 [emitted] [big] vendors~index~logviewer~perf vendors~index~perf.js 119 KiB 2 [emitted] vendors~index~perf index~logviewer~perf.js 13.5 KiB 3 [emitted] index~logviewer~perf vendors~perf.js 36.5 KiB 4 [emitted] vendors~perf vendors~index.js 218 KiB 5 [emitted] vendors~index userguide.js 1.27 KiB 6 [emitted] userguide logviewer.js 7.1 KiB 7 [emitted] logviewer perf.js 16.4 KiB 8, 3 [emitted] perf index.js 30.3 KiB 9, 3 [emitted] index Entrypoint index [big] = vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~index.js index.js Entrypoint perf [big] = vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~perf.js perf.js Entrypoint logviewer [big] = vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js index~logviewer~perf.js logviewer.js Entrypoint userguide = vendors~index~logviewer~perf~userguide.js userguide.js [0] ./src/js/treeherder.js 274 bytes {3} {8} {9} [built] [4] ./src/js/constants.js 12.4 KiB {3} {8} {9} [built] [5] ./src/js/services/taskcluster.js 1.73 KiB {3} {8} {9} [built] [8] ./src/helpers/urlHelper.js + 2 modules 6.22 KiB {3} {8} {9} [built] | ./src/helpers/urlHelper.js 5.23 KiB [built] | ./src/helpers/locationHelper.js 220 bytes [built] | ./src/helpers/revisionHelper.js 789 bytes [built] [10] ./src/partials/main/tcjobactions.html 1.95 KiB {3} {8} {9} [built] [18] ./src/helpers/jobHelper.js 4.58 KiB {7} {9} [built] [23] ./src/js/filters.js 2.09 KiB {3} {8} {9} [built] [28] ./src/js/services/tcactions.js 5.8 KiB {3} {8} {9} [built] [37] ./src/js/services/main.js 4.59 KiB {7} {8} [built] [68] ./src/partials/main/intermittent.html 5.26 KiB {9} [built] [72] ./src/entry-userguide.js + 1 modules 515 bytes {6} [built] | ./src/entry-userguide.js 25 bytes [built] | ./src/js/userguide.js 485 bytes [built] [73] ./src/entry-perf.js + 2 modules 1.74 KiB {8} [built] | ./src/entry-perf.js 169 bytes [built] | ./src/js/perf.js 401 bytes [built] | ./src/js/models/option_collection.js 1.13 KiB [built] [74] ./src/entry-logviewer.js + 2 modules 11.9 KiB {7} [built] | ./src/entry-logviewer.js 170 bytes [built] | ./src/js/logviewer.js 1.11 KiB [built] | ./src/js/controllers/logviewer.js 10.6 KiB [built] [75] ./src/entry-index.js + 2 modules 31.5 KiB {9} [built] | ./src/entry-index.js 139 bytes [built] | ./src/js/treeherder_app.js 2.25 KiB [built] | ./src/plugins/controller.js 29 KiB [built] [151] (webpack)/buildin/module.js 519 bytes {1} [built] + 146 hidden modules WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: vendors~index~logviewer~perf.js (397 KiB) WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: index (937 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~index.js index.js perf (742 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js vendors~index~perf.js vendors~perf.js perf.js logviewer (591 KiB) vendors~index~logviewer~perf~userguide.js vendors~index~logviewer~perf.js index~logviewer~perf.js logviewer.js WARNING in webpack performance recommendations: You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application. For more info visit https://webpack.js.org/guides/code-splitting/ </code></pre></div> </details> <hr> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 4.8.3<br> Node.js version: 10.1.0<br> Operating System: Windows 10<br> Additional tools: N/A</p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">I am trying to use my react webpack setup on my Android system but this watcher warning annoying I don't know why it trying to watch system root directory which should not be accessible to users unless they have root access : Watchpack Error (watcher): Error: EACCES: permission denied, watch '/data/data' Watchpack Error (watcher): Error: EACCES: permission denied, watch '/data' Watchpack Error (initial scan): Error: EACCES: permission denied, scandir '/data/data' Watchpack Error (initial scan): Error: EACCES: permission denied, scandir '/data'</p> <p dir="auto">This my project cwd where home directory is my $HOME I don't know why webpack trying to go beyond that :</p> <p dir="auto">/data/data/com.termux/files/home/react</p> <p dir="auto">I tried to ignore the data/ directory by adding this option in webpack config :</p> <p dir="auto">watchOptions: { ignored: [”../../../../../../"] } But this make hot reloading stop working anyone had experienced this before I will appreciate help</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">Just launch devServer it happened also with npx create-next-app<br> <strong>What is the expected behavior?</strong></p> <p dir="auto">No warrnigs</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.57.0<br> Node.js version: v17.4.0<br> Operating System: Android 10<br> Additional tools: termux terminal</p>
0
<h5 dir="auto">Bug Report</h5> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">docker inventory plugin</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0 (fix-docker-api 16c324eff6) last updated 2017/08/16 10:35:51 (GMT +200) config file = /home/yannig/.ansible.cfg configured module search path = [u'/home/yannig/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/yannig/dev/ansible/lib/ansible executable location = /home/yannig/dev/ansible/bin/ansible python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]"><pre class="notranslate"><code class="notranslate">ansible 2.4.0 (fix-docker-api 16c324eff6) last updated 2017/08/16 10:35:51 (GMT +200) config file = /home/yannig/.ansible.cfg configured module search path = [u'/home/yannig/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/yannig/dev/ansible/lib/ansible executable location = /home/yannig/dev/ansible/bin/ansible python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">None</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 17.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">With last docker-py 2.0, Docker inventory plugin is broken.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Install last version of docker-py (pip install docker-py --upgrade) then launch docker.py in contrib/inventory</p> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./docker.py --list --pretty { &quot;38af95bd3ea31&quot;: [ &quot;bla1&quot; ], &quot;38af95bd3ea3131f05cbe0021723cc360b8fd531ceba96611aa21bc299f6c205&quot;: [ &quot;bla2&quot; ], &quot;40b7bccc9f393&quot;: [ &quot;bla3&quot; ], "><pre class="notranslate"><code class="notranslate">$ ./docker.py --list --pretty { "38af95bd3ea31": [ "bla1" ], "38af95bd3ea3131f05cbe0021723cc360b8fd531ceba96611aa21bc299f6c205": [ "bla2" ], "40b7bccc9f393": [ "bla3" ], </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./docker.py --list --pretty Traceback (most recent call last): File &quot;./docker.py&quot;, line 418, in &lt;module&gt; class AnsibleDockerClient(Client): NameError: name 'Client' is not defined"><pre class="notranslate"><code class="notranslate">./docker.py --list --pretty Traceback (most recent call last): File "./docker.py", line 418, in &lt;module&gt; class AnsibleDockerClient(Client): NameError: name 'Client' is not defined </code></pre></div>
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hoall/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hoall">@hoall</a> on 2016-09-23T09:35:55Z</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">user</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version ansible 2.1.2.0 (stable-2.1 4c9ed1f4fb) last updated 2016/09/23 11:24:18 (GMT +200) lib/ansible/modules/core: (detached HEAD af67009d38) last updated 2016/09/23 11:27:16 (GMT +200) lib/ansible/modules/extras: (detached HEAD 1bde4310bc) last updated 2016/09/23 11:27:16 (GMT +200) config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible --version ansible 2.1.2.0 (stable-2.1 4c9ed1f4fb) last updated 2016/09/23 11:24:18 (GMT +200) lib/ansible/modules/core: (detached HEAD af67009d38) last updated 2016/09/23 11:27:16 (GMT +200) lib/ansible/modules/extras: (detached HEAD 1bde4310bc) last updated 2016/09/23 11:27:16 (GMT +200) config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <h5 dir="auto">SUMMARY</h5> <p dir="auto">I'm creating a user with primary group and some other groups.</p> <p dir="auto">When using the stable branch, the task from below keeps changed = true. I couldn't find out what is changed, though.</p> <p dir="auto">Running the same task with ansible and the modules from devel works correct. Maybe you can merge the changes in ansible-modules-core in stable. Unfortantly, I can't tell which commits.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: add oracle user user: name=oracle group=oinstall groups=oinstall,dba password=foobar update_password=on_create "><pre class="notranslate"><code class="notranslate">- name: add oracle user user: name=oracle group=oinstall groups=oinstall,dba password=foobar update_password=on_create </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">On second run, the change should be false and state ok.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [oracle-12c-preparation : add oracle user] ******************************** ok: [mysecret] =&gt; {&quot;append&quot;: false, &quot;changed&quot;: false, &quot;comment&quot;: &quot;&quot;, &quot;group&quot;: 1001, &quot;groups&quot;: &quot;oinstall,dba&quot;, &quot;home&quot;: &quot;/home/oracle&quot;, &quot;move_home&quot;: false, &quot;name&quot;: &quot;oracle&quot;, &quot;password&quot;: &quot;NOT_LOGGING_PASSWORD&quot;, &quot;shell&quot;: &quot;/bin/bash&quot;, &quot;state&quot;: &quot;present&quot;, &quot;uid&quot;: 1002}"><pre class="notranslate"><code class="notranslate">TASK [oracle-12c-preparation : add oracle user] ******************************** ok: [mysecret] =&gt; {"append": false, "changed": false, "comment": "", "group": 1001, "groups": "oinstall,dba", "home": "/home/oracle", "move_home": false, "name": "oracle", "password": "NOT_LOGGING_PASSWORD", "shell": "/bin/bash", "state": "present", "uid": 1002} </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">State keeps changed.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [oracle-12c-preparation : add oracle user] ******************************** changed: [mysecret] =&gt; {&quot;append&quot;: false, &quot;changed&quot;: true, &quot;comment&quot;: &quot;&quot;, &quot;group&quot;: 1001, &quot;groups&quot;: &quot;oinstall,dba&quot;, &quot;home&quot;: &quot;/home/oracle&quot;, &quot;move_home&quot;: false, &quot;name&quot;: &quot;oracle&quot;, &quot;password&quot;: &quot;NOT_LOGGING_PASSWORD&quot;, &quot;shell&quot;: &quot;/bin/bash&quot;, &quot;state&quot;: &quot;present&quot;, &quot;uid&quot;: 1002}"><pre class="notranslate"><code class="notranslate">TASK [oracle-12c-preparation : add oracle user] ******************************** changed: [mysecret] =&gt; {"append": false, "changed": true, "comment": "", "group": 1001, "groups": "oinstall,dba", "home": "/home/oracle", "move_home": false, "name": "oracle", "password": "NOT_LOGGING_PASSWORD", "shell": "/bin/bash", "state": "present", "uid": 1002} </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178829879" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/4982" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/4982/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/4982">ansible/ansible-modules-core#4982</a></p>
0
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">In PyTorch 1.5 (not 1.4) using cdist produces NANs instead of regular gradients. This happens on both CPU and GPU.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li><a href="https://figshare.com/s/47d6035b990fa62d730d" rel="nofollow">Download the tensors</a></li> <li>Run the code</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch emb1, emb2, cdist_grad = torch.load('cdist_grad.pt') emb1.retain_grad() d = torch.cdist(emb1, emb2) d.backward(cdist_grad) print(emb1.grad[0, 17])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-s1">emb1</span>, <span class="pl-s1">emb2</span>, <span class="pl-s1">cdist_grad</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">load</span>(<span class="pl-s">'cdist_grad.pt'</span>) <span class="pl-s1">emb1</span>.<span class="pl-en">retain_grad</span>() <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">cdist</span>(<span class="pl-s1">emb1</span>, <span class="pl-s1">emb2</span>) <span class="pl-s1">d</span>.<span class="pl-en">backward</span>(<span class="pl-s1">cdist_grad</span>) <span class="pl-en">print</span>(<span class="pl-s1">emb1</span>.<span class="pl-s1">grad</span>[<span class="pl-c1">0</span>, <span class="pl-c1">17</span>])</pre></div> <ol start="3" dir="auto"> <li>The printed gradients will be NAN.</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Actual numerical gradients.</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): 1.5.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): conda</li> <li>Build command you used (if compiling from source):</li> <li>Python version: 3.7.6</li> <li>CUDA/cuDNN version: 10.2</li> <li>GPU models and configuration: Nvidia 1080 Ti (but it also happens on CPU)</li> <li>Any other relevant information:</li> </ul>
<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">torch.cdist produces nan gradients in Pytorch 1.5, but not Pytorch 1.4</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li> <p dir="auto">Run the similarity example here: <a href="https://github.com/pytorch/vision/tree/master/references/similarity">https://github.com/pytorch/vision/tree/master/references/similarity</a></p> </li> <li> <p dir="auto">On Pytorch 1.4, training proceeds normally with the loss decreasing each iteration</p> </li> <li> <p dir="auto">On Pytorch 1.5, the gradients become nan after the first iteration, which breaks training</p> </li> <li> <p dir="auto">I used torch.autograd.detect_anomaly to identify that torch.cdist is the problem (error trace below)</p> </li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) ~/Projects/vision/references/similarity/train.py in &lt;module&gt; 171 if __name__ == '__main__': 172 args = parse_args() --&gt; 173 main(args) ~/Projects/vision/references/similarity/train.py in main(args) 132 for epoch in range(1, args.epochs + 1): 133 print('Training...') --&gt; 134 train_epoch(model, optimizer, criterion, train_loader, 135 device, epoch, args.print_freq) 136 ~/Projects/vision/references/similarity/train.py in train_epoch(model, optimizer, criterion, data_loader, device, epoch, print_freq) 25 with torch.autograd.detect_anomaly(): 26 loss, frac_pos_triplets = criterion(embeddings, targets) ---&gt; 27 loss.backward() 28 optimizer.step() 29 ~/miniconda3/envs/pytorch/lib/python3.8/site-packages/torch/tensor.py in backward(self, gradient, retain_graph, create_graph) 196 products. Defaults to ``False``. 197 &quot;&quot;&quot; --&gt; 198 torch.autograd.backward(self, gradient, retain_graph, create_graph) 199 200 def register_hook(self, hook): ~/miniconda3/envs/pytorch/lib/python3.8/site-packages/torch/autograd/__init__.py in backward(tensors, grad_tensors, retain_graph, create_graph, grad_variables) 96 retain_graph = create_graph 97 ---&gt; 98 Variable._execution_engine.run_backward( 99 tensors, grad_tensors, retain_graph, create_graph, 100 allow_unreachable=True) # allow_unreachable flag RuntimeError: Function 'SqrtBackward' returned nan values in its 0th output."><pre class="notranslate"><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">RuntimeError</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-c1">~</span><span class="pl-c1">/</span><span class="pl-v">Projects</span><span class="pl-c1">/</span><span class="pl-s1">vision</span><span class="pl-c1">/</span><span class="pl-s1">references</span><span class="pl-c1">/</span><span class="pl-s1">similarity</span><span class="pl-c1">/</span><span class="pl-s1">train</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-c1">171</span> <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>: <span class="pl-c1">172</span> <span class="pl-s1">args</span> <span class="pl-c1">=</span> <span class="pl-en">parse_args</span>() <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">173</span> <span class="pl-en">main</span>(<span class="pl-s1">args</span>) <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-v">Projects</span><span class="pl-c1">/</span><span class="pl-s1">vision</span><span class="pl-c1">/</span><span class="pl-s1">references</span><span class="pl-c1">/</span><span class="pl-s1">similarity</span><span class="pl-c1">/</span><span class="pl-s1">train</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">main</span>(<span class="pl-s1">args</span>) <span class="pl-c1">132</span> <span class="pl-s1">for</span> <span class="pl-s1">epoch</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">1</span>, <span class="pl-s1">args</span>.<span class="pl-s1">epochs</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>): <span class="pl-c1">133</span> <span class="pl-en">print</span>(<span class="pl-s">'Training...'</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">134</span> <span class="pl-en">train_epoch</span>(<span class="pl-s1">model</span>, <span class="pl-s1">optimizer</span>, <span class="pl-s1">criterion</span>, <span class="pl-s1">train_loader</span>, <span class="pl-c1">135</span> <span class="pl-s1">device</span>, <span class="pl-s1">epoch</span>, <span class="pl-s1">args</span>.<span class="pl-s1">print_freq</span>) <span class="pl-c1">136</span> <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-v">Projects</span><span class="pl-c1">/</span><span class="pl-s1">vision</span><span class="pl-c1">/</span><span class="pl-s1">references</span><span class="pl-c1">/</span><span class="pl-s1">similarity</span><span class="pl-c1">/</span><span class="pl-s1">train</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">train_epoch</span>(<span class="pl-s1">model</span>, <span class="pl-s1">optimizer</span>, <span class="pl-s1">criterion</span>, <span class="pl-s1">data_loader</span>, <span class="pl-s1">device</span>, <span class="pl-s1">epoch</span>, <span class="pl-s1">print_freq</span>) <span class="pl-c1">25</span> <span class="pl-k">with</span> <span class="pl-s1">torch</span>.<span class="pl-s1">autograd</span>.<span class="pl-en">detect_anomaly</span>(): <span class="pl-c1">26</span> <span class="pl-s1">loss</span>, <span class="pl-s1">frac_pos_triplets</span> <span class="pl-c1">=</span> <span class="pl-en">criterion</span>(<span class="pl-s1">embeddings</span>, <span class="pl-s1">targets</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">27</span> <span class="pl-s1">loss</span>.<span class="pl-en">backward</span>() <span class="pl-c1">28</span> <span class="pl-s1">optimizer</span>.<span class="pl-en">step</span>() <span class="pl-c1">29</span> <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">pytorch</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">torch</span><span class="pl-c1">/</span><span class="pl-s1">tensor</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">backward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">gradient</span>, <span class="pl-s1">retain_graph</span>, <span class="pl-s1">create_graph</span>) <span class="pl-c1">196</span> <span class="pl-s1">products</span>. <span class="pl-v">Defaults</span> <span class="pl-s1">to</span> <span class="pl-s">``</span><span class="pl-v">False</span><span class="pl-s">``</span>. <span class="pl-c1">197</span> """ <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">198</span> <span class="pl-s1">torch</span>.<span class="pl-s1">autograd</span>.<span class="pl-en">backward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">gradient</span>, <span class="pl-s1">retain_graph</span>, <span class="pl-s1">create_graph</span>) <span class="pl-c1">199</span> <span class="pl-c1">200</span> <span class="pl-k">def</span> <span class="pl-en">register_hook</span>(<span class="pl-s1">self</span>, <span class="pl-s1">hook</span>): <span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-s1">miniconda3</span><span class="pl-c1">/</span><span class="pl-s1">envs</span><span class="pl-c1">/</span><span class="pl-s1">pytorch</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">8</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">torch</span><span class="pl-c1">/</span><span class="pl-s1">autograd</span><span class="pl-c1">/</span><span class="pl-s1">__init__</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">backward</span>(<span class="pl-s1">tensors</span>, <span class="pl-s1">grad_tensors</span>, <span class="pl-s1">retain_graph</span>, <span class="pl-s1">create_graph</span>, <span class="pl-s1">grad_variables</span>) <span class="pl-c1">96</span> <span class="pl-s1">retain_graph</span> <span class="pl-c1">=</span> <span class="pl-s1">create_graph</span> <span class="pl-c1">97</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">98</span> <span class="pl-v">Variable</span>.<span class="pl-s1">_execution_engine</span>.<span class="pl-en">run_backward</span>( <span class="pl-c1">99</span> <span class="pl-s1">tensors</span>, <span class="pl-s1">grad_tensors</span>, <span class="pl-s1">retain_graph</span>, <span class="pl-s1">create_graph</span>, <span class="pl-c1">100</span> <span class="pl-s1">allow_unreachable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-c"># allow_unreachable flag</span> <span class="pl-v">RuntimeError</span>: <span class="pl-v">Function</span> <span class="pl-s">'SqrtBackward'</span> <span class="pl-s1">returned</span> <span class="pl-s1">nan</span> <span class="pl-s1">values</span> <span class="pl-c1">in</span> <span class="pl-s1">its</span> <span class="pl-c1">0</span><span class="pl-s1">th</span> <span class="pl-s1">output</span>.</pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Training proceeds normally without nan gradients due to torch.cdist</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): Pytorch 1.5</li> <li>OS (e.g., Linux): Ubuntu 18.04 LTS</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): conda install pytorch torchvision cudatoolkit=10.1 -c pytorch</li> <li>Python version: 3.8.2</li> <li>CUDA/cuDNN version: 10.1/7.6</li> <li>GPU models and configuration: RTX 2080 Ti/Titan Xp (tried both)</li> <li>Any other relevant information: I believe things work in Pytorch 1.4</li> </ul> <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/fmassa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fmassa">@fmassa</a></p>
1
<p dir="auto">Computer information</p> <ul dir="auto"> <li>Windows build number: Win 10 Pro v 2004 OS Build 19041.388</li> <li>PowerToys version: 0.20.0</li> <li>PowerToy module: PT Run</li> </ul> <h2 dir="auto">📝 Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>random crash with exception message when trying to open PowerToys app, not sure exactly what is causing it.</li> </ol> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/02/2020 18:29:03<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=eberhardwolff" rel="nofollow">Eberhard Wolff</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5001?redirect=false" rel="nofollow">SPR-5001</a></strong> and commented</p> <p dir="auto">Currently a parameter to a Web MVC method can be annotated using <code class="notranslate">@RequestMapping</code> so that a part of the HTTP request is bound to this parameter. I would suggest to add <code class="notranslate">@SessionMapping</code> that allows the same for the HTTP Session.</p> <hr> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398189020" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18468" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18468/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18468">#18468</a> Convenient access to session and request attributes in controller methods (<em><strong>"is superseded by"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=scottland" rel="nofollow">Scott Murphy</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5377?redirect=false" rel="nofollow">SPR-5377</a></strong> and commented</p> <p dir="auto">Add an additional Annotation for passing objects in the session to a function. Currently it is a little cumbersome to do this because you have to pass the HttpServletRequest object to your function even if that is all you use it for.</p> <p dir="auto">For example:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@RequestMapping(&quot;/myController.do&quot;) public String doGet(HttpServletRequest request) { MyObject object = (MyObject) WebUtils.getSessionAttribute(request, &quot;myObject&quot;); return &quot;MyJSP&quot;; }"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">RequestMapping</span>(<span class="pl-s">"/myController.do"</span>) <span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-s1">doGet</span>(<span class="pl-smi">HttpServletRequest</span> <span class="pl-s1">request</span>) { <span class="pl-smi">MyObject</span> <span class="pl-s1">object</span> = (<span class="pl-smi">MyObject</span>) <span class="pl-smi">WebUtils</span>.<span class="pl-en">getSessionAttribute</span>(<span class="pl-s1">request</span>, <span class="pl-s">"myObject"</span>); <span class="pl-k">return</span> <span class="pl-s">"MyJSP"</span>; }</pre></div> <p dir="auto">Should be replaced with:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@RequestMapping(&quot;/myController.do&quot;) public String doGet(@SessionParam(&quot;myObject&quot;) MyObject myObject) { return &quot;MyJSP&quot;; }"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">RequestMapping</span>(<span class="pl-s">"/myController.do"</span>) <span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-s1">doGet</span>(<span class="pl-c1">@</span><span class="pl-c1">SessionParam</span>(<span class="pl-s">"myObject"</span>) <span class="pl-smi">MyObject</span> <span class="pl-s1">myObject</span>) { <span class="pl-k">return</span> <span class="pl-s">"MyJSP"</span>; }</pre></div> <p dir="auto">If the object is not in the session, null is passed.</p> <p dir="auto">Furthermore, an additional boolean parameter can be supplied to initialize the object and put it in the Session if it is not already there:<br> e.g.:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@RequestMapping(&quot;/myController.do&quot;) public String doGet(@SessionParam(value=&quot;myObject&quot;, initialize=true) MyObject myObject) { return &quot;MyJSP&quot;; }"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">RequestMapping</span>(<span class="pl-s">"/myController.do"</span>) <span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-s1">doGet</span>(<span class="pl-c1">@</span><span class="pl-c1">SessionParam</span>(<span class="pl-s1">value</span>=<span class="pl-s">"myObject"</span>, <span class="pl-s1">initialize</span>=<span class="pl-c1">true</span>) <span class="pl-smi">MyObject</span> <span class="pl-s1">myObject</span>) { <span class="pl-k">return</span> <span class="pl-s">"MyJSP"</span>; }</pre></div> <p dir="auto">If myObject is not in the session, a MyObject object will be created and placed in the Session.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 M1</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="398166507" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/16171" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/16171/hovercard" href="https://github.com/spring-projects/spring-framework/issues/16171">#16171</a> Provide <code class="notranslate">@ModelAttribute</code>(required="false") for session attributes</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398189020" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18468" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18468/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18468">#18468</a> Convenient access to session and request attributes in controller methods (<em><strong>"is superseded by"</strong></em>)</li> </ul> <p dir="auto">4 votes, 4 watchers</p>
1
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1. symfony/workflow: 4.2</p> <p dir="auto"><strong>Description</strong><br> Hello. I've faced an issue when I placing two or more values in <code class="notranslate">from</code> section at transitions description in config. As far as I know, this is allowed, right?</p> <p dir="auto">So I'm getting false negative results when trying to apply for state transfer with allowed <code class="notranslate">from</code> values.</p> <p dir="auto"><strong>How to reproduce</strong><br> After some research, I believe that the problem is in the following <code class="notranslate">buildTransitionBlockerListForTransition</code> method. The method just iterates all over places and creates <code class="notranslate">TransitionBlockerList</code> on first false condition. But as far as I get - method have to iterate over all forms and only then create <code class="notranslate">TransitionBlockerList</code> if needed.</p> <p dir="auto">Here is the reference on code that I've described above.<br> <a href="https://github.com/symfony/workflow/blob/master/Workflow.php#L247">https://github.com/symfony/workflow/blob/master/Workflow.php#L247</a></p> <p dir="auto"><strong>Possible Solution</strong><br> Iterate over all places and create <code class="notranslate">TransitionBlockerList</code> only if <code class="notranslate">$marking-&gt;has($place)</code> have returned false for every <code class="notranslate">$place</code></p> <p dir="auto"><strong>Additional context</strong><br> My workflow config</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="framework: workflows: payment: type: 'workflow' supports: - App\Entity\Payment - App\Entity\RecurringPayment initial_place: new marking_store: type: 'single_state' arguments: - 'status' places: - new - accepted - error - declined - pending - refunded - cancelled transitions: pending: from: new to: pending accepted: from: [new, pending, accepted] to: accepted refunded: from: accepted to: refunded cancelled: from: [new, pending, accepted] to: cancelled error: from: [new, pending] to: error declined: from: [new, pending] to: declined"><pre class="notranslate"><span class="pl-ent">framework</span>: <span class="pl-ent">workflows</span>: <span class="pl-ent">payment</span>: <span class="pl-ent">type</span>: <span class="pl-s"><span class="pl-pds">'</span>workflow<span class="pl-pds">'</span></span> <span class="pl-ent">supports</span>: - <span class="pl-s">App\Entity\Payment</span> - <span class="pl-s">App\Entity\RecurringPayment</span> <span class="pl-ent">initial_place</span>: <span class="pl-s">new</span> <span class="pl-ent">marking_store</span>: <span class="pl-ent">type</span>: <span class="pl-s"><span class="pl-pds">'</span>single_state<span class="pl-pds">'</span></span> <span class="pl-ent">arguments</span>: - <span class="pl-s"><span class="pl-pds">'</span>status<span class="pl-pds">'</span></span> <span class="pl-ent">places</span>: - <span class="pl-s">new</span> - <span class="pl-s">accepted</span> - <span class="pl-s">error</span> - <span class="pl-s">declined</span> - <span class="pl-s">pending</span> - <span class="pl-s">refunded</span> - <span class="pl-s">cancelled</span> <span class="pl-ent">transitions</span>: <span class="pl-ent">pending</span>: <span class="pl-ent">from</span>: <span class="pl-s">new</span> <span class="pl-ent">to</span>: <span class="pl-s">pending</span> <span class="pl-ent">accepted</span>: <span class="pl-ent">from</span>: <span class="pl-s">[new, pending, accepted]</span> <span class="pl-ent">to</span>: <span class="pl-s">accepted</span> <span class="pl-ent">refunded</span>: <span class="pl-ent">from</span>: <span class="pl-s">accepted</span> <span class="pl-ent">to</span>: <span class="pl-s">refunded</span> <span class="pl-ent">cancelled</span>: <span class="pl-ent">from</span>: <span class="pl-s">[new, pending, accepted]</span> <span class="pl-ent">to</span>: <span class="pl-s">cancelled</span> <span class="pl-ent">error</span>: <span class="pl-ent">from</span>: <span class="pl-s">[new, pending]</span> <span class="pl-ent">to</span>: <span class="pl-s">error</span> <span class="pl-ent">declined</span>: <span class="pl-ent">from</span>: <span class="pl-s">[new, pending]</span> <span class="pl-ent">to</span>: <span class="pl-s">declined</span></pre></div>
<p dir="auto">Hi all,</p> <p dir="auto">I'm posting this RFC to submit a new validator constraint idea. I don't know if it's worth it or not and that's why I would like to get some feedbacks.</p> <p dir="auto">Something that annoys me with validation constraints is repeating the validation groups everytime in all constraints when dealing with multiple validation contexts. Below is a very simple example:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" class User { /** * @Assert\NotBlank(groups = { &quot;Signup&quot; }) * @Assert\Length(min = 6, max = 15, groups = { &quot;Signup&quot; }) * @Assert\Regex(pattern = &quot;^/[a-z0-9]+$/&quot;, groups = { &quot;Signup&quot; }) */ private $username; /** * @Assert\NotBlank(groups = { &quot;Signup&quot; }) * @Assert\Length(min = 8, groups = { &quot;Signup&quot;, &quot;Profile&quot; }) * */ private $password; }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">User</span> { <span class="pl-c">/**</span> <span class="pl-c"> * @Assert\NotBlank(groups = { "Signup" })</span> <span class="pl-c"> * @Assert\Length(min = 6, max = 15, groups = { "Signup" })</span> <span class="pl-c"> * @Assert\Regex(pattern = "^/[a-z0-9]+$/", groups = { "Signup" })</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>username</span>; <span class="pl-c">/**</span> <span class="pl-c"> * @Assert\NotBlank(groups = { "Signup" })</span> <span class="pl-c"> * @Assert\Length(min = 8, groups = { "Signup", "Profile" })</span> <span class="pl-c"> *</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>password</span>; }</pre></div> <p dir="auto">As you can see in the above code, for the <code class="notranslate">$username</code> property, we have to repeat the <code class="notranslate">groups</code> option to indicate for which context we want to validate that property. I think this is annonying to duplicate that <code class="notranslate">group</code> option.</p> <p dir="auto">That's why I suggest to introduce a new <code class="notranslate">Group</code> constraint that is a collection of constraints to be triggered only for a particular (set of) group(s).</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class User { /** * @Assert\Group(groups = { &quot;Signup&quot; }, constraints = { * @Assert\NotBlank(), * @Assert\Length(min = 6, max = 15), * @Assert\Regex(pattern = &quot;^/[a-z0-9]+$/&quot;) * }) */ private $username; /** * @Assert\NotBlank(groups = { &quot;Signup&quot; }) * @Assert\Length(min = 8, groups = { &quot;Signup&quot;, &quot;Profile&quot; }) * */ private $password; }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">User</span> { <span class="pl-c">/**</span> <span class="pl-c"> * @Assert\Group(groups = { "Signup" }, constraints = {</span> <span class="pl-c"> * @Assert\NotBlank(),</span> <span class="pl-c"> * @Assert\Length(min = 6, max = 15),</span> <span class="pl-c"> * @Assert\Regex(pattern = "^/[a-z0-9]+$/")</span> <span class="pl-c"> * })</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>username</span>; <span class="pl-c">/**</span> <span class="pl-c"> * @Assert\NotBlank(groups = { "Signup" })</span> <span class="pl-c"> * @Assert\Length(min = 8, groups = { "Signup", "Profile" })</span> <span class="pl-c"> *</span> <span class="pl-c"> */</span> <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>password</span>; }</pre></div> <p dir="auto">As you can see, I can embed my three constraints into one single <code class="notranslate">Group</code> constraint that tells for which context we want to execute that set of annotations. I find it a bit more readable and it also avoids to duplicate the goup name everywhere in the other constraints.</p> <p dir="auto">What do you think of such feature?<br> Is it something that you would need or help improve your efficiency?</p> <p dir="auto">Regards.</p>
0
<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"> 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><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="201701532" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/3772" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3772/hovercard" href="https://github.com/celery/celery/issues/3772">#3772</a></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>: <code class="notranslate">celery:4.3.0 (rhubarb)</code></p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.3.0 (rhubarb) kombu:4.6.1 py:3.7.3 billiard:3.6.0.0 redis:3.2.1 platform -&gt; system:Darwin arch:64bit kernel version:18.6.0 imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:disabled BROKER_URL: 'redis://localhost:6379/0' CELERY_DEFAULT_QUEUE: 'test'"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.3.0 (rhubarb) kombu:4.6.1 py:3.7.3 billiard:3.6.0.0 redis:3.2.1 platform -&gt; system:Darwin arch:64bit kernel version:18.6.0 imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:redis results:disabled BROKER_URL: 'redis://localhost:6379/0' CELERY_DEFAULT_QUEUE: 'test' </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="amqp==2.5.0 billiard==3.6.0.0 celery==4.3.0 kombu==4.6.1 pytz==2019.1 redis==3.2.1 vine==1.3.0"><pre class="notranslate"><code class="notranslate">amqp==2.5.0 billiard==3.6.0.0 celery==4.3.0 kombu==4.6.1 pytz==2019.1 redis==3.2.1 vine==1.3.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"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery class BaseConfig: BROKER_URL = 'redis://localhost:6379/0' CELERY_TASK_DEFAULT_QUEUE = 'test' celery_app = Celery() celery_app.config_from_object(BaseConfig) @celery_app.task def simple_task(): raise Exception(&quot;Testing Celery exception&quot;)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span> <span class="pl-k">class</span> <span class="pl-v">BaseConfig</span>: <span class="pl-v">BROKER_URL</span> <span class="pl-c1">=</span> <span class="pl-s">'redis://localhost:6379/0'</span> <span class="pl-v">CELERY_TASK_DEFAULT_QUEUE</span> <span class="pl-c1">=</span> <span class="pl-s">'test'</span> <span class="pl-s1">celery_app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>() <span class="pl-s1">celery_app</span>.<span class="pl-en">config_from_object</span>(<span class="pl-v">BaseConfig</span>) <span class="pl-en">@<span class="pl-s1">celery_app</span>.<span class="pl-s1">task</span></span> <span class="pl-k">def</span> <span class="pl-en">simple_task</span>(): <span class="pl-k">raise</span> <span class="pl-v">Exception</span>(<span class="pl-s">"Testing Celery exception"</span>)</pre></div> <p dir="auto">Then run with cmd:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery worker -A app:celery_app -l debug -f celery.log"><pre class="notranslate"><code class="notranslate">celery worker -A app:celery_app -l debug -f celery.log </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">I expect the routing <code class="notranslate">key=test</code> and <code class="notranslate">exchange=test</code>.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">The configuration <code class="notranslate">CELERY_TASK_DEFAULT_QUEUE = 'test'</code> is not picked up and defaults are used instead:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -------------- [email protected] v4.3.0 (rhubarb) ---- **** ----- --- * *** * -- Darwin-18.6.0-x86_64-i386-64bit 2019-06-09 01:15:55 -- * - **** --- - ** ---------- [config] - ** ---------- .&gt; app: __main__:0x10d316518 - ** ---------- .&gt; transport: redis://localhost:6379/0 - ** ---------- .&gt; results: disabled:// - *** --- * --- .&gt; concurrency: 8 (prefork) -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker) --- ***** ----- -------------- [queues] .&gt; celery exchange=celery(direct) key=celery [tasks] . app.simple_task . celery.accumulate . celery.backend_cleanup . celery.chain . celery.chord . celery.chord_unlock . celery.chunks . celery.group . celery.map . celery.starmap"><pre class="notranslate"><code class="notranslate"> -------------- [email protected] v4.3.0 (rhubarb) ---- **** ----- --- * *** * -- Darwin-18.6.0-x86_64-i386-64bit 2019-06-09 01:15:55 -- * - **** --- - ** ---------- [config] - ** ---------- .&gt; app: __main__:0x10d316518 - ** ---------- .&gt; transport: redis://localhost:6379/0 - ** ---------- .&gt; results: disabled:// - *** --- * --- .&gt; concurrency: 8 (prefork) -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker) --- ***** ----- -------------- [queues] .&gt; celery exchange=celery(direct) key=celery [tasks] . app.simple_task . celery.accumulate . celery.backend_cleanup . celery.chain . celery.chord . celery.chord_unlock . celery.chunks . celery.group . celery.map . celery.starmap </code></pre></div> <p dir="auto">Dropping the <code class="notranslate">TASK_</code> from the config property name to <code class="notranslate">CELERY_DEFAULT_QUEUE = 'test'</code> works as intended:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -------------- [email protected] v4.3.0 (rhubarb) ---- **** ----- --- * *** * -- Darwin-18.6.0-x86_64-i386-64bit 2019-06-09 01:19:19 -- * - **** --- - ** ---------- [config] - ** ---------- .&gt; app: __main__:0x1085be2b0 - ** ---------- .&gt; transport: redis://localhost:6379/0 - ** ---------- .&gt; results: disabled:// - *** --- * --- .&gt; concurrency: 8 (prefork) -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker) --- ***** ----- -------------- [queues] .&gt; test exchange=test(direct) key=test [tasks] . app.simple_task . celery.accumulate . celery.backend_cleanup . celery.chain . celery.chord . celery.chord_unlock . celery.chunks . celery.group . celery.map . celery.starmap"><pre class="notranslate"><code class="notranslate"> -------------- [email protected] v4.3.0 (rhubarb) ---- **** ----- --- * *** * -- Darwin-18.6.0-x86_64-i386-64bit 2019-06-09 01:19:19 -- * - **** --- - ** ---------- [config] - ** ---------- .&gt; app: __main__:0x1085be2b0 - ** ---------- .&gt; transport: redis://localhost:6379/0 - ** ---------- .&gt; results: disabled:// - *** --- * --- .&gt; concurrency: 8 (prefork) -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker) --- ***** ----- -------------- [queues] .&gt; test exchange=test(direct) key=test [tasks] . app.simple_task . celery.accumulate . celery.backend_cleanup . celery.chain . celery.chord . celery.chord_unlock . celery.chunks . celery.group . celery.map . celery.starmap </code></pre></div> <p dir="auto">Now, issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="201701532" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/3772" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3772/hovercard" href="https://github.com/celery/celery/issues/3772">#3772</a> was reporting incorrect documentation, i.e. <code class="notranslate">CELERY_DEFAULT_QUEUE</code> should be <code class="notranslate">CELERY_TASK_DEFAULT_QUEUE</code> and so all old configs without the <code class="notranslate">TASK_</code> have been updated in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="236581455" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4094" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/4094/hovercard" href="https://github.com/celery/celery/pull/4094">#4094</a> to have it. However, since the fix to the docs, the code actually <strong>regressed</strong> and now accepts the older settings.</p>
<h1 dir="auto">Checklist</h1> <ul dir="auto"> <li>[ x ] I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical enhancement to an existing feature.</li> <li>[ x ] I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed enhancements.</li> <li>[ x ] I have checked the <a href="https://github.com/celery/celery/commits/main">commit log</a><br> to find out if the if the same enhancement was already implemented in the<br> main branch.</li> <li>[ x ] I have included all related issues and possible duplicate issues in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1717873059" data-permission-text="Title is private" data-url="https://github.com/sontek/pyramid_celery/issues/101" data-hovercard-type="issue" data-hovercard-url="/sontek/pyramid_celery/issues/101/hovercard" href="https://github.com/sontek/pyramid_celery/issues/101">sontek/pyramid_celery#101</a></p> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Brief Summary</h1> <p dir="auto">The <a href="https://github.com/sontek/pyramid_celery">pyramid-celery</a> package adds <code class="notranslate">ini</code> and <code class="notranslate">ini-var</code> options to the standard commands. These allow the standard Pyramid <code class="notranslate">ini</code> configuration files to config Celery. With current Celery however, only the <code class="notranslate">worker</code>, <code class="notranslate">beat</code>, and <code class="notranslate">events</code> are able to be hooked into pyramid-celery's approach because those commands are set with.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="context_settings={ 'allow_extra_args': True }"><pre class="notranslate"><code class="notranslate">context_settings={ 'allow_extra_args': True } </code></pre></div> <p dir="auto">See <code class="notranslate">beat</code> for example: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/celery/celery/blob/f3a2cf45a69b443cac6c79a5c85583c8bd91b0a3/celery/bin/beat.py#L11">celery/celery/bin/beat.py</a> </p> <p class="mb-0 color-fg-muted"> Line 11 in <a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/f3a2cf45a69b443cac6c79a5c85583c8bd91b0a3">f3a2cf4</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="L11" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="11"></td> <td id="LC11" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en"> <span class="pl-s">'allow_extra_args'</span>: <span class="pl-c1">True</span></span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">The <code class="notranslate">shell</code> and <code class="notranslate">purge</code> commands for some reason do not have context_settings and so do not set <code class="notranslate">allow_extra_args</code>. See for example in <code class="notranslate">shell</code>, <a href="https://github.com/celery/celery/blob/f3a2cf45a69b443cac6c79a5c85583c8bd91b0a3/celery/bin/shell.py#LL82C1-L117C24">https://github.com/celery/celery/blob/f3a2cf45a69b443cac6c79a5c85583c8bd91b0a3/celery/bin/shell.py#LL82C1-L117C24</a></p> <p dir="auto">The consequence is that the <code class="notranslate">ini</code> command options cause errors since these are extra and unknown args to these commands. Excluding the <code class="notranslate">ini</code> config casues <code class="notranslate">shell</code> when it comes up to not get the task registration configs and <code class="notranslate">purge</code> isn't able to see queues.</p> <h1 dir="auto">Design</h1> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto"><a href="https://github.com/sontek/pyramid_celery">pyramid-celery</a> is on <a href="https://pypi.org/project/pyramid-celery" rel="nofollow">pypi</a>. Allows you to use pyramid .ini files to configure celery and have your pyramid configuration inside celery tasks.</p> <h2 dir="auto">Proposed Behavior</h2> <p dir="auto">This should not affect Celery functionality, but will allow pyramid-celery to function as expected. See related issue tracked in pyramid-celery here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1717873059" data-permission-text="Title is private" data-url="https://github.com/sontek/pyramid_celery/issues/101" data-hovercard-type="issue" data-hovercard-url="/sontek/pyramid_celery/issues/101/hovercard" href="https://github.com/sontek/pyramid_celery/issues/101">sontek/pyramid_celery#101</a></p> <h2 dir="auto">Proposed UI/UX</h2> <p dir="auto">Celery should add <code class="notranslate">context_settings</code> with <code class="notranslate">allow_extra_args</code>,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="context_settings={ 'allow_extra_args': True }"><pre class="notranslate"><code class="notranslate">context_settings={ 'allow_extra_args': True } </code></pre></div> <p dir="auto">to both the <code class="notranslate">shell</code> and <code class="notranslate">purge</code> commands. This will allow projects like pyramid-celery to hook in their own custom configuration options using the recommended (by Celery) <code class="notranslate">celery_app.user_options['preload'].add()</code> and/or <code class="notranslate">celery_app.user_options[option].add()</code> approaches. See <a href="https://github.com/celery/celery/blob/e7b47a62d789557cf18ed0e56e2dfb99a51a62f7/docs/userguide/extending.rst#adding-new-command-line-options">here</a>. This will also make <code class="notranslate">shell</code> and <code class="notranslate">purge</code> commands consistent with other commands like <code class="notranslate">worker</code>, <code class="notranslate">beat</code>, and <code class="notranslate">events</code> that already have these settings.</p> <h2 dir="auto">Diagrams</h2> <p dir="auto">N/A</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">None</p>
0
<p dir="auto">The Flask Mailinglist page:<br> <a href="http://flask.pocoo.org/mailinglist/" rel="nofollow">http://flask.pocoo.org/mailinglist/</a></p> <p dir="auto">mentions this page:<br> <a href="http://flask.pocoo.org/mailinglist/archive/" rel="nofollow">http://flask.pocoo.org/mailinglist/archive/</a><br> Which shows the latest email from 2012-10-29, giving the impression that the Flask community is no longer active</p> <p dir="auto">This page seems to be up to date:<br> <a href="http://librelist.com/browser/flask/" rel="nofollow">http://librelist.com/browser/flask/</a></p> <p dir="auto">Please update <a href="http://flask.pocoo.org/mailinglist/" rel="nofollow">http://flask.pocoo.org/mailinglist/</a> to reflect this change.<br> Thank you.</p>
<p dir="auto">Install flask:<br> <code class="notranslate">pip install flask</code></p> <p dir="auto">If <code class="notranslate">test.py</code> contains:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import flask "><pre class="notranslate"><code class="notranslate">import flask </code></pre></div> <p dir="auto">A <code class="notranslate">PendingDeprecationWarning</code> is emitted:</p> <p dir="auto"><code class="notranslate">python -Werror test.py</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;test.py&quot;, line 1, in &lt;module&gt; import flask File &quot;C:\Users\John Hagen\AppData\Local\Programs\Python\Python35-32\lib\site-packages\flask\__init__.py&quot;, line 21, in &lt;module&gt; from .app import Flask, Request, Response File &quot;C:\Users\John Hagen\AppData\Local\Programs\Python\Python35-32\lib\site-packages\flask\app.py&quot;, line 28, in &lt;module&gt; from .config import ConfigAttribute, Config File &quot;C:\Users\John Hagen\AppData\Local\Programs\Python\Python35-32\lib\site-packages\flask\config.py&quot;, line 12, in &lt;module&gt; import imp File &quot;C:\Users\John Hagen\AppData\Local\Programs\Python\Python35-32\lib\imp.py&quot;, line 33, in &lt;module&gt; PendingDeprecationWarning, stacklevel=2) PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "test.py", line 1, in &lt;module&gt; import flask File "C:\Users\John Hagen\AppData\Local\Programs\Python\Python35-32\lib\site-packages\flask\__init__.py", line 21, in &lt;module&gt; from .app import Flask, Request, Response File "C:\Users\John Hagen\AppData\Local\Programs\Python\Python35-32\lib\site-packages\flask\app.py", line 28, in &lt;module&gt; from .config import ConfigAttribute, Config File "C:\Users\John Hagen\AppData\Local\Programs\Python\Python35-32\lib\site-packages\flask\config.py", line 12, in &lt;module&gt; import imp File "C:\Users\John Hagen\AppData\Local\Programs\Python\Python35-32\lib\imp.py", line 33, in &lt;module&gt; PendingDeprecationWarning, stacklevel=2) PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses </code></pre></div>
0
<p dir="auto">when i push button to swap ime korean<br> but<br> not excute</p> <h1 dir="auto">Description of the new feature/enhancement</h1> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Currently the icon for the ubuntu shell is the linux icon. Would be nice to have to ubuntu logo for the ubuntu shell.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1368405/63847797-d6ee6f00-c98e-11e9-8dea-cf6480782462.png"><img src="https://user-images.githubusercontent.com/1368405/63847797-d6ee6f00-c98e-11e9-8dea-cf6480782462.png" alt="IMG_2019 08 28_12h24m32s_003_" style="max-width: 100%;"></a></p>
0
<p dir="auto">With a generic base class,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class GenericBase&lt;T&gt; { value: T; }"><pre class="notranslate"><code class="notranslate">class GenericBase&lt;T&gt; { value: T; } </code></pre></div> <p dir="auto">this compiles without errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class StringBase extends GenericBase&lt;string&gt; { } class Foo extends StringBase { } var foo = new Foo(); foo.value.charCodeAt(0); // OK"><pre class="notranslate"><code class="notranslate">class StringBase extends GenericBase&lt;string&gt; { } class Foo extends StringBase { } var foo = new Foo(); foo.value.charCodeAt(0); // OK </code></pre></div> <p dir="auto">but this produces an error that <code class="notranslate">Property 'charCodeAt' does not exist on type 'T'</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function makeBase&lt;T&gt;() { return class extends GenericBase&lt;T&gt; { }; } class Bar extends makeBase&lt;string&gt;() { } var bar = new Bar(); bar.value.charCodeAt(0); // compile error"><pre class="notranslate"><code class="notranslate">function makeBase&lt;T&gt;() { return class extends GenericBase&lt;T&gt; { }; } class Bar extends makeBase&lt;string&gt;() { } var bar = new Bar(); bar.value.charCodeAt(0); // compile error </code></pre></div> <p dir="auto">Since <code class="notranslate">string</code> has been used as the generic parameter for <code class="notranslate">makeBase</code>, it seems that none of the properties on <code class="notranslate">Bar</code> should be typed as <code class="notranslate">T</code>.</p>
<p dir="auto">When using <code class="notranslate">extends</code> in a class expression, the generic types do not propagate correctly to the super class of the expression. The below example should compile (I think!), but fails with <code class="notranslate">Type 'C' is not assignable to type 'T'</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class A&lt;T&gt; { genericVar: T } function B&lt;T&gt;() { return class extends A&lt;T&gt; { } } class C extends B&lt;C&gt;() { name: string; } var c = new C(); c.genericVar = c;"><pre class="notranslate"><code class="notranslate">class A&lt;T&gt; { genericVar: T } function B&lt;T&gt;() { return class extends A&lt;T&gt; { } } class C extends B&lt;C&gt;() { name: string; } var c = new C(); c.genericVar = c; </code></pre></div>
1
<h3 dir="auto">Bug report</h3> <p dir="auto">Babel is running translations on files which are inside ignored folder(s)</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Ignore everything inside ignored folder(s)</p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Babel translates items inside the folder if it finds things that tell babel to translate is</p> <h3 dir="auto">Possible Solution</h3> <p dir="auto">Properly ignore folders, don't even check inside them</p> <h3 dir="auto">Context</h3> <p dir="auto">Cross-linking reference: <a href="https://github.com/hueniverse/hawk/issues/227" data-hovercard-type="issue" data-hovercard-url="/mozilla/hawk/issues/227/hovercard">hawk#277</a></p> <p dir="auto">Basically we have our src folder in our repo, and our dist repo (uncommitted). The build server runs yarn in the src folder, runs all unit tests inside of it.<br> If this completes it runs babel translation with the following .babelrc</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;ignore&quot;: [ &quot;node_modules&quot;, &quot;test&quot; ], &quot;plugins&quot;: [ &quot;transform-async-to-generator&quot;, &quot;transform-runtime&quot; ], &quot;presets&quot;: [&quot;es2015&quot;] }"><pre class="notranslate"><code class="notranslate">{ "ignore": [ "node_modules", "test" ], "plugins": [ "transform-async-to-generator", "transform-runtime" ], "presets": ["es2015"] } </code></pre></div> <p dir="auto">However, taking a look in my build server, I can see the following log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="src/folder1/handler.js -&gt; dist/folder1/handler.js src/folder2/handler.js -&gt; dist/folder1/handler.js ... src/node_modules/hawk/client.js -&gt; dist/node_modules/hawk/client.js src/node_modules/hawk/dist/browser.js -&gt; dist/node_modules/hawk/dist/browser.js src/node_modules/hawk/lib/browser.js -&gt; dist/node_modules/hawk/lib/browser.js src/node_modules/hawk/lib/client.js -&gt; dist/node_modules/hawk/lib/client.js src/node_modules/hawk/lib/crypto.js -&gt; dist/node_modules/hawk/lib/crypto.js src/node_modules/hawk/lib/index.js -&gt; dist/node_modules/hawk/lib/index.js src/node_modules/hawk/lib/server.js -&gt; dist/node_modules/hawk/lib/server.js src/node_modules/hawk/lib/utils.js -&gt; dist/node_modules/hawk/lib/utils.js ... src/folder_last/index.js -&gt; dist/folder_last/index.js"><pre class="notranslate"><code class="notranslate">src/folder1/handler.js -&gt; dist/folder1/handler.js src/folder2/handler.js -&gt; dist/folder1/handler.js ... src/node_modules/hawk/client.js -&gt; dist/node_modules/hawk/client.js src/node_modules/hawk/dist/browser.js -&gt; dist/node_modules/hawk/dist/browser.js src/node_modules/hawk/lib/browser.js -&gt; dist/node_modules/hawk/lib/browser.js src/node_modules/hawk/lib/client.js -&gt; dist/node_modules/hawk/lib/client.js src/node_modules/hawk/lib/crypto.js -&gt; dist/node_modules/hawk/lib/crypto.js src/node_modules/hawk/lib/index.js -&gt; dist/node_modules/hawk/lib/index.js src/node_modules/hawk/lib/server.js -&gt; dist/node_modules/hawk/lib/server.js src/node_modules/hawk/lib/utils.js -&gt; dist/node_modules/hawk/lib/utils.js ... src/folder_last/index.js -&gt; dist/folder_last/index.js </code></pre></div> <p dir="auto">Hawk has the following items which (I think) is causing this issue:<br> <code class="notranslate">.babelrc</code></p> <p dir="auto">Hawk already has said they will not fix this issue, and technically, this is a babel issue imho.</p>
<h2 dir="auto">Feature Request</h2> <p dir="auto">This is related to @babel/preset-env and @babel/runtime</p> <p dir="auto">useBuiltIns:usage is a great feature that helps avoiding unnecessary polyfills. The drawback though is that other libraries still import core-js explicitly. Because of that, I usually have many core-js modules imported twice:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/671158/49209551-77454200-f3c3-11e8-9477-8bf9848da71f.png"><img src="https://user-images.githubusercontent.com/671158/49209551-77454200-f3c3-11e8-9477-8bf9848da71f.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Once as /core-js/modules (via @babel/runtime with 'useBuiltIns:usage') and the second time as /core-js/library/modules</p> <p dir="auto">I assume there should be the way to avoid that. Like, for @babel/runtime to import core-js as /core-js/library/modules or programmatically detect polyfills that are already imported</p>
0
<p dir="auto">(Using <code class="notranslate">tf 1.0.0</code>)<br> I tried to follow the following example (<a href="https://www.tensorflow.org/get_started/tflearn" rel="nofollow">https://www.tensorflow.org/get_started/tflearn</a>) from the TF website and I get the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO:tensorflow:Using default config. INFO:tensorflow:Using config: {'_cluster_spec': &lt;tensorflow.python.training.server_lib.ClusterSpec object at 0x7f9cfb283e80&gt;, '_task_id': 0, '_keep_checkpoint_every_n_hours': 10000, '_keep_checkpoint_max': 5, '_save_checkpoints_steps': None, '_task_type': None, '_environment': 'local', '_tf_config': gpu_options { per_process_gpu_memory_fraction: 1.0 } , '_master': '', '_save_checkpoints_secs': 600, '_is_chief': True, '_tf_random_seed': None, '_num_ps_replicas': 0, '_save_summary_steps': 100, '_evaluation_master': ''} WARNING:tensorflow:From &lt;ipython-input-131-b49d002a31c2&gt;:14: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with x is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -&gt; est = SKCompat(Estimator(...)) WARNING:tensorflow:From &lt;ipython-input-131-b49d002a31c2&gt;:14: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with y is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -&gt; est = SKCompat(Estimator(...)) WARNING:tensorflow:From /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:1362: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30. Instructions for updating: Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported. /opt/conda/lib/python3.5/site-packages/tensorflow/python/util/deprecation.py:247: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future. equality = a == b INFO:tensorflow:Create CheckpointSaverHook. --------------------------------------------------------------------------- TypeError Traceback (most recent call last) TypeError: expected bytes, tuple found During handling of the above exception, another exception occurred: SystemError Traceback (most recent call last) &lt;ipython-input-131-b49d002a31c2&gt; in &lt;module&gt;() 12 classifier.fit(x=results, 13 y=labels, ---&gt; 14 steps=2000) 15 16 # Evaluate accuracy. /opt/conda/lib/python3.5/site-packages/tensorflow/python/util/deprecation.py in new_func(*args, **kwargs) 278 _call_location(), decorator_utils.get_qualified_name(func), 279 func.__module__, arg_name, date, instructions) --&gt; 280 return func(*args, **kwargs) 281 new_func.__doc__ = _add_deprecated_arg_notice_to_docstring( 282 func.__doc__, date, instructions) /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py in fit(self, x, y, input_fn, steps, batch_size, monitors, max_steps) 408 _verify_input_args(x, y, input_fn, None, batch_size) 409 if x is not None: --&gt; 410 SKCompat(self).fit(x, y, batch_size, steps, max_steps, monitors) 411 return self 412 /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py in fit(self, x, y, batch_size, steps, max_steps, monitors) 1351 steps=steps, 1352 max_steps=max_steps, -&gt; 1353 monitors=all_monitors) 1354 return self 1355 /opt/conda/lib/python3.5/site-packages/tensorflow/python/util/deprecation.py in new_func(*args, **kwargs) 278 _call_location(), decorator_utils.get_qualified_name(func), 279 func.__module__, arg_name, date, instructions) --&gt; 280 return func(*args, **kwargs) 281 new_func.__doc__ = _add_deprecated_arg_notice_to_docstring( 282 func.__doc__, date, instructions) /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py in fit(self, x, y, input_fn, steps, batch_size, monitors, max_steps) 424 hooks.append(basic_session_run_hooks.StopAtStepHook(steps, max_steps)) 425 --&gt; 426 loss = self._train_model(input_fn=input_fn, hooks=hooks) 427 logging.info('Loss for final step: %s.', loss) 428 return self /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py in _train_model(self, input_fn, hooks) 982 loss = None 983 while not mon_sess.should_stop(): --&gt; 984 _, loss = mon_sess.run([model_fn_ops.train_op, model_fn_ops.loss]) 985 summary_io.SummaryWriterCache.clear() 986 return loss /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, fetches, feed_dict, options, run_metadata) 460 feed_dict=feed_dict, 461 options=options, --&gt; 462 run_metadata=run_metadata) 463 464 def should_stop(self): /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, fetches, feed_dict, options, run_metadata) 784 feed_dict=feed_dict, 785 options=options, --&gt; 786 run_metadata=run_metadata) 787 except errors.AbortedError: 788 logging.info('An AbortedError was raised. Closing the current session. ' /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, *args, **kwargs) 742 743 def run(self, *args, **kwargs): --&gt; 744 return self._sess.run(*args, **kwargs) 745 746 /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, fetches, feed_dict, options, run_metadata) 889 feed_dict=feed_dict, 890 options=options, --&gt; 891 run_metadata=run_metadata) 892 893 for hook in self._hooks: /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, *args, **kwargs) 742 743 def run(self, *args, **kwargs): --&gt; 744 return self._sess.run(*args, **kwargs) 745 746 /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata) 765 try: 766 result = self._run(None, fetches, feed_dict, options_ptr, --&gt; 767 run_metadata_ptr) 768 if run_metadata: 769 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr) /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata) 963 if final_fetches or final_targets: 964 results = self._do_run(handle, final_targets, final_fetches, --&gt; 965 feed_dict_string, options, run_metadata) 966 else: 967 results = [] /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata) 1013 if handle is None: 1014 return self._do_call(_run_fn, self._session, feed_dict, fetch_list, -&gt; 1015 target_list, options, run_metadata) 1016 else: 1017 return self._do_call(_prun_fn, self._session, handle, feed_dict, /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args) 1020 def _do_call(self, fn, *args): 1021 try: -&gt; 1022 return fn(*args) 1023 except errors.OpError as e: 1024 message = compat.as_text(e.message) /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata) 1002 return tf_session.TF_Run(session, options, 1003 feed_dict, fetch_list, target_list, -&gt; 1004 status, run_metadata) 1005 1006 def _prun_fn(session, handle, feed_dict, fetch_list): SystemError: &lt;built-in function TF_Run&gt; returned a result with an error set"><pre class="notranslate"><code class="notranslate">INFO:tensorflow:Using default config. INFO:tensorflow:Using config: {'_cluster_spec': &lt;tensorflow.python.training.server_lib.ClusterSpec object at 0x7f9cfb283e80&gt;, '_task_id': 0, '_keep_checkpoint_every_n_hours': 10000, '_keep_checkpoint_max': 5, '_save_checkpoints_steps': None, '_task_type': None, '_environment': 'local', '_tf_config': gpu_options { per_process_gpu_memory_fraction: 1.0 } , '_master': '', '_save_checkpoints_secs': 600, '_is_chief': True, '_tf_random_seed': None, '_num_ps_replicas': 0, '_save_summary_steps': 100, '_evaluation_master': ''} WARNING:tensorflow:From &lt;ipython-input-131-b49d002a31c2&gt;:14: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with x is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -&gt; est = SKCompat(Estimator(...)) WARNING:tensorflow:From &lt;ipython-input-131-b49d002a31c2&gt;:14: calling BaseEstimator.fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with y is deprecated and will be removed after 2016-12-01. Instructions for updating: Estimator is decoupled from Scikit Learn interface by moving into separate class SKCompat. Arguments x, y and batch_size are only available in the SKCompat class, Estimator will only accept input_fn. Example conversion: est = Estimator(...) -&gt; est = SKCompat(Estimator(...)) WARNING:tensorflow:From /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:1362: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30. Instructions for updating: Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported. /opt/conda/lib/python3.5/site-packages/tensorflow/python/util/deprecation.py:247: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future. equality = a == b INFO:tensorflow:Create CheckpointSaverHook. --------------------------------------------------------------------------- TypeError Traceback (most recent call last) TypeError: expected bytes, tuple found During handling of the above exception, another exception occurred: SystemError Traceback (most recent call last) &lt;ipython-input-131-b49d002a31c2&gt; in &lt;module&gt;() 12 classifier.fit(x=results, 13 y=labels, ---&gt; 14 steps=2000) 15 16 # Evaluate accuracy. /opt/conda/lib/python3.5/site-packages/tensorflow/python/util/deprecation.py in new_func(*args, **kwargs) 278 _call_location(), decorator_utils.get_qualified_name(func), 279 func.__module__, arg_name, date, instructions) --&gt; 280 return func(*args, **kwargs) 281 new_func.__doc__ = _add_deprecated_arg_notice_to_docstring( 282 func.__doc__, date, instructions) /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py in fit(self, x, y, input_fn, steps, batch_size, monitors, max_steps) 408 _verify_input_args(x, y, input_fn, None, batch_size) 409 if x is not None: --&gt; 410 SKCompat(self).fit(x, y, batch_size, steps, max_steps, monitors) 411 return self 412 /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py in fit(self, x, y, batch_size, steps, max_steps, monitors) 1351 steps=steps, 1352 max_steps=max_steps, -&gt; 1353 monitors=all_monitors) 1354 return self 1355 /opt/conda/lib/python3.5/site-packages/tensorflow/python/util/deprecation.py in new_func(*args, **kwargs) 278 _call_location(), decorator_utils.get_qualified_name(func), 279 func.__module__, arg_name, date, instructions) --&gt; 280 return func(*args, **kwargs) 281 new_func.__doc__ = _add_deprecated_arg_notice_to_docstring( 282 func.__doc__, date, instructions) /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py in fit(self, x, y, input_fn, steps, batch_size, monitors, max_steps) 424 hooks.append(basic_session_run_hooks.StopAtStepHook(steps, max_steps)) 425 --&gt; 426 loss = self._train_model(input_fn=input_fn, hooks=hooks) 427 logging.info('Loss for final step: %s.', loss) 428 return self /opt/conda/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py in _train_model(self, input_fn, hooks) 982 loss = None 983 while not mon_sess.should_stop(): --&gt; 984 _, loss = mon_sess.run([model_fn_ops.train_op, model_fn_ops.loss]) 985 summary_io.SummaryWriterCache.clear() 986 return loss /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, fetches, feed_dict, options, run_metadata) 460 feed_dict=feed_dict, 461 options=options, --&gt; 462 run_metadata=run_metadata) 463 464 def should_stop(self): /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, fetches, feed_dict, options, run_metadata) 784 feed_dict=feed_dict, 785 options=options, --&gt; 786 run_metadata=run_metadata) 787 except errors.AbortedError: 788 logging.info('An AbortedError was raised. Closing the current session. ' /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, *args, **kwargs) 742 743 def run(self, *args, **kwargs): --&gt; 744 return self._sess.run(*args, **kwargs) 745 746 /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, fetches, feed_dict, options, run_metadata) 889 feed_dict=feed_dict, 890 options=options, --&gt; 891 run_metadata=run_metadata) 892 893 for hook in self._hooks: /opt/conda/lib/python3.5/site-packages/tensorflow/python/training/monitored_session.py in run(self, *args, **kwargs) 742 743 def run(self, *args, **kwargs): --&gt; 744 return self._sess.run(*args, **kwargs) 745 746 /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata) 765 try: 766 result = self._run(None, fetches, feed_dict, options_ptr, --&gt; 767 run_metadata_ptr) 768 if run_metadata: 769 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr) /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata) 963 if final_fetches or final_targets: 964 results = self._do_run(handle, final_targets, final_fetches, --&gt; 965 feed_dict_string, options, run_metadata) 966 else: 967 results = [] /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_run(self, handle, target_list, fetch_list, feed_dict, options, run_metadata) 1013 if handle is None: 1014 return self._do_call(_run_fn, self._session, feed_dict, fetch_list, -&gt; 1015 target_list, options, run_metadata) 1016 else: 1017 return self._do_call(_prun_fn, self._session, handle, feed_dict, /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, *args) 1020 def _do_call(self, fn, *args): 1021 try: -&gt; 1022 return fn(*args) 1023 except errors.OpError as e: 1024 message = compat.as_text(e.message) /opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata) 1002 return tf_session.TF_Run(session, options, 1003 feed_dict, fetch_list, target_list, -&gt; 1004 status, run_metadata) 1005 1006 def _prun_fn(session, handle, feed_dict, fetch_list): SystemError: &lt;built-in function TF_Run&gt; returned a result with an error set </code></pre></div> <p dir="auto">To replicate:<br> (For better accuracy use Docker image <code class="notranslate">jupyter/datascience-notebook</code> and install tf)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf results = np.ndarray(10,2632) labels = [0,1] * 5 feature_columns = [tf.contrib.layers.real_valued_column(&quot;&quot;, dimension=4)] classifier = tf.contrib.learn.DNNClassifier(feature_columns=feature_columns, hidden_units=[2623,2], n_classes=2, model_dir='./model') # Fit model. classifier.fit(x=results, y=labels, steps=2000) # Evaluate accuracy. accuracy_score = classifier.evaluate(x=test_set.data, y=test_set.target)[&quot;accuracy&quot;] print('Accuracy: {0:f}'.format(accuracy_score))"><pre class="notranslate"><code class="notranslate">from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf results = np.ndarray(10,2632) labels = [0,1] * 5 feature_columns = [tf.contrib.layers.real_valued_column("", dimension=4)] classifier = tf.contrib.learn.DNNClassifier(feature_columns=feature_columns, hidden_units=[2623,2], n_classes=2, model_dir='./model') # Fit model. classifier.fit(x=results, y=labels, steps=2000) # Evaluate accuracy. accuracy_score = classifier.evaluate(x=test_set.data, y=test_set.target)["accuracy"] print('Accuracy: {0:f}'.format(accuracy_score)) </code></pre></div> <p dir="auto">I think this might be a problem with tensorflow badly interacting with the underlying file system? Not sure.</p>
<p dir="auto">Per the comment on <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/how_tos/distributed/index.md">this introduction</a>, i.e.</p> <blockquote> <p dir="auto">N.B. Manually specifying these cluster specifications can be tedious, especially for large clusters. We are working on tools for launching tasks programmatically, e.g. using a cluster manager like Kubernetes. If there are particular cluster managers for which you'd like to see support, please raise a GitHub issue.</p> </blockquote> <p dir="auto">Is there is any possibility of supporting <a href="http://slurm.schedmd.com/" rel="nofollow">Slurm</a>? Forgive my ignorance but I've really only played around with TensorFlow and I've only used Slurm for fairly simple MPI projects, but I recently got access to a cluster with some GPU nodes and I'd like to incorporate TF in my research project. It would be great if I was able to use all the resources I could to speed things along.</p> <p dir="auto">If it helps, specific info about the setup can be found <a href="https://wiki.auckland.ac.nz/display/CER/Centre+for+eResearch+User+Documentation+Start" rel="nofollow">here</a>.</p>
0
<p dir="auto">The objectives right now are pretty confusing:</p> <ul dir="auto"> <li>Your green-box class should give the bottom of elements 20px of padding.</li> <li>Your green-box class should give the left of elements 40px of padding.</li> <p dir="auto">This suggests, to me at least, that through Clockwise Notation it is possible to assign padding to just the Bottom and Just the Left. Total NewB here, but it seems to me that you have to assign it to the top/bottom and left/right. I can't find anyway other than padding-bottom, etc to change the top without changing the top.</p></ul>
<p dir="auto">Conflicting statements to confuse new beginners. In the Top portion it asks for "10-pixel-wide green border"; but below in your checks it states "Your image should have a border with a width of 10 pixels."; yet your code must have this:<br> .thick-green-border {<br> border-width: 10px;<br> border-color: green;<br> border-style: solid;<br> }</p> <p dir="auto">Nothing in there states to make the border solid, the top asks for color while the bottom doesn't not state the color.<br> I consider myself pretty well beyond beginners level HTML/CSS although not a master by any means, and this one stumped me for a few minutes where i had to ask for help.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10119077/7823980/f629d1c8-03c4-11e5-8e7a-b155353110cc.PNG"><img src="https://cloud.githubusercontent.com/assets/10119077/7823980/f629d1c8-03c4-11e5-8e7a-b155353110cc.PNG" alt="border2" style="max-width: 100%;"></a></p>
1
<p dir="auto"><a href="https://babeljs.slack.com/archives/general/p1438027027001390" rel="nofollow">From here:</a></p> <p dir="auto">Hey folks, I think this is a bug. When using ES7 async/await, if I require <code class="notranslate">"babel/polyfill"</code>, it's going to be used before polyfill is required (<code class="notranslate">regeneratorRuntime.mark</code>).</p> <p dir="auto">Following code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict'; import {} from 'babel/polyfill'; import fs from 'fs'; async function* foo () { console.log('foo'); } async function* bar () { console.log('bar'); }"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'babel/polyfill'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">fs</span> <span class="pl-k">from</span> <span class="pl-s">'fs'</span><span class="pl-kos">;</span> <span class="pl-k">async</span> <span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-s1">foo</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'foo'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">async</span> <span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-s1">bar</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'bar'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Will be transpiled to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict'; function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { 'default': obj }; } var marked0$0 = [foo, bar].map(regeneratorRuntime.mark); require('babel/polyfill'); var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs); function foo() { return regeneratorRuntime.async(function foo$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: console.log('foo'); case 1: case 'end': return context$1$0.stop(); } }, marked0$0[0], this); } function bar() { return regeneratorRuntime.async(function bar$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: console.log('bar'); case 1: case 'end': return context$1$0.stop(); } }, marked0$0[1], this); }"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">obj</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">__esModule</span> ? <span class="pl-s1">obj</span> : <span class="pl-kos">{</span> <span class="pl-s">'default'</span>: <span class="pl-s1">obj</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">marked0$0</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">foo</span><span class="pl-kos">,</span> <span class="pl-s1">bar</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-c1">mark</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'babel/polyfill'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_fs</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'fs'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_fs2</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_fs</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-en">async</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-en">foo$</span><span class="pl-kos">(</span><span class="pl-s1">context$1$0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">prev</span> <span class="pl-c1">=</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-c1">0</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">'foo'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">1</span>: <span class="pl-k">case</span> <span class="pl-s">'end'</span>: <span class="pl-k">return</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-en">stop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">marked0$0</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-en">async</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-en">bar$</span><span class="pl-kos">(</span><span class="pl-s1">context$1$0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">prev</span> <span class="pl-c1">=</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-c1">0</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">'bar'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">case</span> <span class="pl-c1">1</span>: <span class="pl-k">case</span> <span class="pl-s">'end'</span>: <span class="pl-k">return</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-en">stop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">marked0$0</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">as you can see, the require statement in line 7 comes too late.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="require(&quot;babel/polyfill&quot;); function *hello () {};"><pre class="notranslate"><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"babel/polyfill"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-c1">*</span><span class="pl-s1">hello</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">After babelification:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; var hello = regeneratorRuntime.mark(function hello() { return regeneratorRuntime.wrap(function hello$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: case &quot;end&quot;: return context$1$0.stop(); } }, hello, this); }); require(&quot;babel/polyfill&quot;); ;"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">hello</span> <span class="pl-c1">=</span> <span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-en">mark</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-s1">hello</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">regeneratorRuntime</span><span class="pl-kos">.</span><span class="pl-en">wrap</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-en">hello$</span><span class="pl-kos">(</span><span class="pl-s1">context$1$0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span> <span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">prev</span> <span class="pl-c1">=</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-c1">0</span>: <span class="pl-k">case</span> <span class="pl-s">"end"</span>: <span class="pl-k">return</span> <span class="pl-s1">context$1$0</span><span class="pl-kos">.</span><span class="pl-en">stop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">hello</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"babel/polyfill"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">;</span></pre></div> <p dir="auto">This would result in <code class="notranslate">ReferenceError: regeneratorRuntime is not defined</code> was found when discussion this issue with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zeusdeux/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zeusdeux">@zeusdeux</a></p>
1
<p dir="auto"><strong>Elasticsearch version</strong>: 2.3.2</p> <p dir="auto"><strong>JVM version</strong>: java version "1.8.0_45"<br> Java(TM) SE Runtime Environment (build 1.8.0_45-b14)<br> Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)</p> <p dir="auto"><strong>OS version</strong>: Centos 7 SELinux enabled</p> <p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br> We have hardened Centos 7 where /tmp is not writeable<br> We have elasticsearch homedir in custom location and we link that custom location into /var/lib/elasticsearch.<br> We define tmp dir path in /etc/sysconfig/elasticserach as</p> <h1 dir="auto">Additional Java OPTS</h1> <p dir="auto">ES_JAVA_OPTS="-Djna.tmpdir=/var/lib/elasticsearch/tmp" (we also tried without "" and with java.io.tmpdir=)</p> <p dir="auto"><strong>Steps to reproduce</strong>:</p> <ol dir="auto"> <li>change tmpdir path in sysconfig</li> <li>restart application</li> </ol> <p dir="auto"><strong>Provide logs (if relevant)</strong>:<br> <code class="notranslate">[2016-05-17 12:31:30,875][WARN ][bootstrap ] unable to load JNA native support library, native methods will be disabled. java.lang.UnsatisfiedLinkError: /tmp/jna--1985354563/jna306419785920339930.tmp: /tmp/jna--1985354563/jna306419785920339930.tmp: failed to map segment from shared object: Operation not permitted at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.load0(Unknown Source) at java.lang.System.load(Unknown Source) at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:761) at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736) at com.sun.jna.Native.&lt;clinit&gt;(Native.java:131) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.elasticsearch.bootstrap.Natives.&lt;clinit&gt;(Natives.java:45) at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:89) at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:144) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)</code><br> <a href="https://github.com/elastic/elasticsearch/files/268267/elasticsearch_dump.txt">elasticsearch_dump.txt</a></p>
<p dir="auto"><strong>Elasticsearch version</strong>: 2.3.2</p> <p dir="auto"><strong>JVM version</strong>: java version "1.8.0_45"<br> Java(TM) SE Runtime Environment (build 1.8.0_45-b14)<br> Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)</p> <p dir="auto"><strong>OS version</strong>: Centos 7 SELinux enabled</p> <p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br> We have hardened Centos 7 where /tmp is not writeable<br> We have elasticsearch homedir in custom location and we link that custom location into /var/lib/elasticsearch.<br> We define tmp dir path in /etc/sysconfig/elasticserach as</p> <h1 dir="auto">Additional Java OPTS</h1> <p dir="auto">ES_JAVA_OPTS="-Djna.tmpdir=/var/lib/elasticsearch/tmp" (we also tried without "" and with java.io.tmpdir=)</p> <p dir="auto"><strong>Steps to reproduce</strong>:</p> <ol dir="auto"> <li>change tmpdir path in sysconfig</li> <li>restart application</li> </ol> <p dir="auto"><strong>Provide logs (if relevant)</strong>:<br> <code class="notranslate">[2016-05-17 12:31:30,875][WARN ][bootstrap ] unable to load JNA native support library, native methods will be disabled. java.lang.UnsatisfiedLinkError: /tmp/jna--1985354563/jna306419785920339930.tmp: /tmp/jna--1985354563/jna306419785920339930.tmp: failed to map segment from shared object: Operation not permitted at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.load0(Unknown Source) at java.lang.System.load(Unknown Source) at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:761) at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736) at com.sun.jna.Native.&lt;clinit&gt;(Native.java:131) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.elasticsearch.bootstrap.Natives.&lt;clinit&gt;(Natives.java:45) at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:89) at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:144) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)</code><br> <a href="https://github.com/elastic/elasticsearch/files/268267/elasticsearch_dump.txt">elasticsearch_dump.txt</a></p>
1
<p dir="auto">The comma and right parenthesis emitted from JSX-transforming a line like that in the title will result in the following:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// source JSX var ExampleCommaIssue = React.createClass({ render: function () { return &lt;div style={({'margin':'42px'})} className=&quot;test&quot; /&gt;; } }); // transforms to ... React.createElement(&quot;div&quot;, {style: ({'margin':'42px'}, )className: &quot;test&quot;}); ... // instead of ... React.createElement(&quot;div&quot;, {style: ({'margin':'42px'}), className: &quot;test&quot;}); ..."><pre class="notranslate"><span class="pl-c">// source JSX</span> <span class="pl-k">var</span> <span class="pl-v">ExampleCommaIssue</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">render</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-s">'margin'</span>:<span class="pl-s">'42px'</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"test"</span> <span class="pl-c1">/</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-kos">;</span> <span class="pl-c">// transforms to </span> ... <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"div"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">style</span>: <span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-s">'margin'</span>:<span class="pl-s">'42px'</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">)</span><span class="pl-s1">className</span>: <span class="pl-s">"test"</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> ... <span class="pl-c">// instead of</span> ... <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">"div"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">style</span>: <span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-s">'margin'</span>:<span class="pl-s">'42px'</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">className</span>: <span class="pl-s">"test"</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> ...</pre></div> <p dir="auto">Notably, this only seems to be a problem if some attribute follows the one with the paren-hugged object literal.</p> <p dir="auto">Also, I did not test to see if arbitrary values in parentheses also result in this.</p>
<p dir="auto">I'm keeping the last values passed as props without force a re-render, I'm using the <code class="notranslate">useRef</code> to store the elements without re-render the output.</p> <p dir="auto">The weird part is that the values showed are different from what I'm storing, duplicating the last elements.</p> <p dir="auto">React version: 17.0.2<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14454/137406585-c89f359b-7777-4d66-ba2d-ecaebae5ac47.png"><img src="https://user-images.githubusercontent.com/14454/137406585-c89f359b-7777-4d66-ba2d-ecaebae5ac47.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Link to code example:</p> <p dir="auto"><a href="https://codesandbox.io/s/stupefied-ride-m1did?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/stupefied-ride-m1did?file=/src/App.js</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from &quot;react&quot;; const ComR = React.memo(function Compo({ id, value }) { const lastElements = React.useRef([0, 0, 0, 0, 0]); const [_, ...m] = [...lastElements.current, value]; // remove first and insert last lastElements.current = m; console.log(&quot;rendering&quot;, id, value, memo.current); return ( &lt;div&gt; {id} - {lastElements.current.join(&quot;, &quot;)} &lt;/div&gt; ); }); export default function App() { const [value, setValue] = React.useState(0); React.useEffect(() =&gt; { setInterval(() =&gt; { setValue(Math.ceil(Math.random() * 10000)); }, 7000); }, [setValue]); return ( &lt;div className=&quot;App&quot;&gt; &lt;ComR id=&quot;1&quot; value={value} /&gt; &lt;/div&gt; ); }"><pre class="notranslate"><code class="notranslate">import React from "react"; const ComR = React.memo(function Compo({ id, value }) { const lastElements = React.useRef([0, 0, 0, 0, 0]); const [_, ...m] = [...lastElements.current, value]; // remove first and insert last lastElements.current = m; console.log("rendering", id, value, memo.current); return ( &lt;div&gt; {id} - {lastElements.current.join(", ")} &lt;/div&gt; ); }); export default function App() { const [value, setValue] = React.useState(0); React.useEffect(() =&gt; { setInterval(() =&gt; { setValue(Math.ceil(Math.random() * 10000)); }, 7000); }, [setValue]); return ( &lt;div className="App"&gt; &lt;ComR id="1" value={value} /&gt; &lt;/div&gt; ); } </code></pre></div> <h2 dir="auto">The current behavior</h2> <p dir="auto">The console.log is showing different what is printing into the component</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14454/137407532-d1fff912-0542-43f8-8c99-5d87da094da2.png"><img src="https://user-images.githubusercontent.com/14454/137407532-d1fff912-0542-43f8-8c99-5d87da094da2.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">expects work as linear array operations, since was called/rendered once</p>
0
<p dir="auto">I find myself in many situations executing Ansible to deploy systems but frequently want to use the same credential set to SSH to those machines. Currently for static hosts I am keeping two lists of the same information <code class="notranslate">.ssh/config</code> and a hosts file.</p> <p dir="auto">So what I am suggesting would be to use Ansible's inventory to enable more rapid SSH connections including but not limited to connecting to static hosts and to dynamic inventory when the result set is a single node.</p>
<p dir="auto">There's a lot of useful information in the ansible inventory, including remote usernames, connection methods, etc. I wish I could take advantage of that when I need a shell on a "remote" host by running something like 'ansible-connect hostname'.</p> <p dir="auto">This would, ideally, launch an interactive shell on the target host taking into account ansible_host, remote_user, become, become_user, connection type, etc.</p>
1
<p dir="auto"><a href="https://drive.google.com/file/d/0BxmeIv484tR5R1JhRjlYTTRIVUk/view?usp=sharing" rel="nofollow">https://drive.google.com/file/d/0BxmeIv484tR5R1JhRjlYTTRIVUk/view?usp=sharing</a></p> <p dir="auto">This is bug? Or how to disable...</p> <p dir="auto">My system:<br> Ubuntu 14.04<br> Resolution 1920x1080 (13 inch display)</p>
<p dir="auto">I've just installed Atom from a git checkout on Ubuntu 12.10, and the attached screenshot is what I see (I've shrunk the editor font size). I'm assuming that fonts aren't really meant to be that large.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/362/4632693/3be39dee-53c0-11e4-8e64-4458a73ae4ae.png"><img src="https://cloud.githubusercontent.com/assets/362/4632693/3be39dee-53c0-11e4-8e64-4458a73ae4ae.png" alt="huge-fonts" style="max-width: 100%;"></a></p>
1
<h3 dir="auto">Current Behavior:</h3> <p dir="auto">git-dependencies do not get deduped in workspaces. ex:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./a ./a/node_modules ./a/node_modules/b ./a/node_modules/c ./b ./b/node_modules ./b/node_modules/c ./c ./node_modules ./node_modules/esm ./node_modules/c -&gt; ./c ./node_modules/b -&gt; ./b ./node_modules/a -&gt; ./a"><pre class="notranslate"><code class="notranslate">./a ./a/node_modules ./a/node_modules/b ./a/node_modules/c ./b ./b/node_modules ./b/node_modules/c ./c ./node_modules ./node_modules/esm ./node_modules/c -&gt; ./c ./node_modules/b -&gt; ./b ./node_modules/a -&gt; ./a </code></pre></div> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">git-dependencies in the workspace get deduped/linked<br> ex:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./a ./b ./c ./node_modules ./node_modules/esm ./node_modules/c -&gt; ./c ./node_modules/b -&gt; ./b ./node_modules/a -&gt; ./a"><pre class="notranslate"><code class="notranslate">./a ./b ./c ./node_modules ./node_modules/esm ./node_modules/c -&gt; ./c ./node_modules/b -&gt; ./b ./node_modules/a -&gt; ./a </code></pre></div> <h3 dir="auto">Steps To Reproduce:</h3> <p dir="auto">Clone <a href="https://github.com/jsg2021/npm7-workspace-test">https://github.com/jsg2021/npm7-workspace-test</a><br> Install</p> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS: Fedora 32</li> <li>Node: 14.13.0</li> <li>npm: 7.0.0-rc.4</li> </ul>
<h1 dir="auto">What / Why</h1> <p dir="auto">npm ci seems to install an optional dependency for the linux os when running on a mac and seems to install the optional dependency for mac when running on linux.</p> <h2 dir="auto">When</h2> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ npm init -y; npm i [email protected]; npm ls; npm ci; npm ls"><pre class="notranslate">$ npm init -y<span class="pl-k">;</span> npm i [email protected]<span class="pl-k">;</span> npm ls<span class="pl-k">;</span> npm ci<span class="pl-k">;</span> npm ls</pre></div> <details> <summary>click to view output of above command</summary> <pre class="notranslate">Wrote to /private/tmp/d/package.json: <p dir="auto">{<br> "name": "d",<br> "version": "1.0.0",<br> "description": "",<br> "main": "index.js",<br> "scripts": {<br> "test": "echo "Error: no test specified" &amp;&amp; exit 1"<br> },<br> "keywords": [],<br> "author": "",<br> "license": "ISC"<br> }</p> <blockquote> <p dir="auto">[email protected] postinstall /private/tmp/d/node_modules/oax<br> node ./postinstall.js</p> </blockquote> <p dir="auto">npm notice created a lockfile as package-lock.json. You should commit this file.<br> npm WARN [email protected] No description<br> npm WARN [email protected] No repository field.<br> npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/oax/node_modules/oax-windows-64):<br> npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"win32","arch":"x64"} (current: {"os":"darwin","arch":"x64"})<br> npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/oax/node_modules/oax-linux-64):<br> npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"linux","arch":"x64"} (current: {"os":"darwin","arch":"x64"})</p> <ul dir="auto"> <li>[email protected]<br> added 2 packages and audited 4 packages in 1.1s<br> found 0 vulnerabilities</li> </ul> <p dir="auto">[email protected] /private/tmp/d<br> └─┬ [email protected]<br> ├── [email protected]<br> ├── UNMET OPTIONAL DEPENDENCY [email protected]<br> └── UNMET OPTIONAL DEPENDENCY [email protected]</p> <p dir="auto">npm WARN prepare removing existing node_modules/ before installation</p> <blockquote> <p dir="auto">[email protected] postinstall /private/tmp/d/node_modules/oax<br> node ./postinstall.js</p> </blockquote> <p dir="auto">added 3 packages in 0.722s<br> [email protected] /private/tmp/d<br> └─┬ [email protected]<br> ├── [email protected]<br> ├── [email protected]<br> └── UNMET OPTIONAL DEPENDENCY [email protected]<br> </p></pre><p dir="auto"></p> </details> <h2 dir="auto">Where</h2> <ul dir="auto"> <li>n/a</li> </ul> <h2 dir="auto">How</h2> <h3 dir="auto">Current Behavior</h3> <p dir="auto">currently it looks like npm ci is broken for optional dependencies which use the os and arch fields of package.json</p> <h3 dir="auto">Steps to Reproduce</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ npm init -y; npm i [email protected]; npm ls; npm ci; npm ls"><pre class="notranslate">$ npm init -y<span class="pl-k">;</span> npm i [email protected]<span class="pl-k">;</span> npm ls<span class="pl-k">;</span> npm ci<span class="pl-k">;</span> npm ls</pre></div> <p dir="auto">You should see that <code class="notranslate">npm i</code> works correctly and installs a single optional dependency for oax.<br> You should also see that <code class="notranslate">npm ci</code> works incorrectly and installs two of the optional dependencies for oax, this should never happen as each optional dependency is targeting a different operating system and architecture, it should be impossible to have more than one of the optional dependencies installed.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">it should install oax-darwin when running on darwin and should install oax-linux when running on linux</p> <h2 dir="auto">Who</h2> <ul dir="auto"> <li>n/a</li> </ul> <h2 dir="auto">References</h2> <ul dir="auto"> <li>n/a</li> </ul>
0
<h1 dir="auto">Feature request</h1> <p dir="auto">Is it possible to use next.config.ts instead of next.config.js?<br> Currently none of the typescript examples use typescript in the config file. Is it even possible?</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/resir014/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/resir014">@resir014</a></p>
<p dir="auto">Hi, I'm developing web using Next and Express. Currently i'm facing issue when applying moment locale on the web. It shows that mark up that generated on server and client is different (Screenshot attached).<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5382429/28250611-268901fa-6a97-11e7-8187-588e3b260cb9.png"><img width="1394" alt="Different markup on server and client" src="https://user-images.githubusercontent.com/5382429/28250611-268901fa-6a97-11e7-8187-588e3b260cb9.png" style="max-width: 100%;"></a><br> I'm applying moment's locale on <strong>custom _document.js</strong>. How to fix this 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/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">It should generate same markup on server and client</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It generate different markup on server and client</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://github.com/adrianha/next-routes-demo">Repository</a></p> <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>^3.0.1-beta.8</td> </tr> <tr> <td>express</td> <td>^4.15.3</td> </tr> <tr> <td>moment</td> <td>^2.18.1</td> </tr> <tr> <td>react</td> <td>^15.6.1</td> </tr> <tr> <td>node</td> <td>v6.11.0</td> </tr> <tr> <td>OS</td> <td>macOS Sierra 10.12.1</td> </tr> <tr> <td>browser</td> <td>Chrome Version 59.0.3071.115</td> </tr> </tbody> </table>
0
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.211.0<br> <strong>System</strong>: Microsoft Windows 8.1 Pro<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\k.steinmetz\AppData\Local\atom\app-0.211.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\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.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\k.steinmetz\AppData\Local\atom\app-0.211.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\k.steinmetz\AppData\Local\atom\app-0.211.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\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.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\k.steinmetz\AppData\Local\atom\app-0.211.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\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\k.steinmetz\AppData\Local\atom\app-0.211.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -0:57.1.0 core:delete (atom-text-editor.editor.is-focused) -0:56.8.0 editor:newline (atom-text-editor.editor.is-focused) -0:56 snippets:next-tab-stop (atom-text-editor.editor.is-focused) -0:56 snippets:expand (atom-text-editor.editor.is-focused) -0:56 editor:indent (atom-text-editor.editor.is-focused) -0:54.1.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active) -0:47.3.0 pane:show-next-item (atom-text-editor.editor.is-focused) 2x -0:45.9.0 core:backspace (atom-text-editor.editor.is-focused) -0:41.3.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active) -0:37.4.0 core:move-left (atom-text-editor.editor.is-focused) -0:35.6.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active) 2x -0:34 core:backspace (atom-text-editor.editor.is-focused) -0:33 core:move-left (atom-text-editor.editor.is-focused) -0:29 core:undo (atom-text-editor.editor.is-focused) -0:27.6.0 core:save (atom-text-editor.editor.is-focused) -0:27.6.0 linter:lint (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -0:57.1.0 core:delete (atom-text-editor.editor.is-focused) -0:56.8.0 editor:newline (atom-text-editor.editor.is-focused) -0:56 snippets:next-tab-stop (atom-text-editor.editor.is-focused) -0:56 snippets:expand (atom-text-editor.editor.is-focused) -0:56 editor:indent (atom-text-editor.editor.is-focused) -0:54.1.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active) -0:47.3.0 pane:show-next-item (atom-text-editor.editor.is-focused) 2x -0:45.9.0 core:backspace (atom-text-editor.editor.is-focused) -0:41.3.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active) -0:37.4.0 core:move-left (atom-text-editor.editor.is-focused) -0:35.6.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active) 2x -0:34 core:backspace (atom-text-editor.editor.is-focused) -0:33 core:move-left (atom-text-editor.editor.is-focused) -0:29 core:undo (atom-text-editor.editor.is-focused) -0:27.6.0 core:save (atom-text-editor.editor.is-focused) -0:27.6.0 linter:lint (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;editor&quot;: { &quot;invisibles&quot;: {}, &quot;fontSize&quot;: 17 } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: {}, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">17</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 .bin, vundefined atom-typescript, v4.6.4 linter, v1.0.2 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> .<span class="pl-smi">bin</span>, vundefined atom<span class="pl-k">-</span>typescript, v4.<span class="pl-ii">6</span>.<span class="pl-ii">4</span> linter, v1.<span class="pl-ii">0</span>.<span class="pl-ii">2</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">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"><strong>TypeScript Version:</strong></p> <p dir="auto">nightly (1.9.0-dev.20160429)</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function isFoo(value: any): value is Foo { return value &amp;&amp; typeof value.foo === 'function'; } interface Foo { foo(): string; } interface Bar { bar(): string; } function convertBar(input: Foo | Bar): () =&gt; string { return isFoo(input) ? function () { return input.foo(); // &lt;-- Property 'foo' does not exist on type 'Foo | Bar'. } : input.bar; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">isFoo</span><span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-s1">value</span> is <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">value</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-k">typeof</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">===</span> <span class="pl-s">'function'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">Bar</span> <span class="pl-kos">{</span> <span class="pl-c1">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">convertBar</span><span class="pl-kos">(</span><span class="pl-s1">input</span>: <span class="pl-smi">Foo</span> <span class="pl-c1">|</span> <span class="pl-smi">Bar</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-smi">string</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">isFoo</span><span class="pl-kos">(</span><span class="pl-s1">input</span><span class="pl-kos">)</span> ? <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">input</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// &lt;-- Property 'foo' does not exist on type 'Foo | Bar'.</span> <span class="pl-kos">}</span> : <span class="pl-s1">input</span><span class="pl-kos">.</span><span class="pl-c1">bar</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">Receive no errors (<a href="http://www.typescriptlang.org/play/#src=function%20isFoo%28value%3A%20any%29%3A%20value%20is%20Foo%20%7B%0A%09return%20value%20%26%26%20typeof%20value.foo%20%3D%3D%3D%20'function'%3B%0A%7D%0A%0Ainterface%20Foo%20%7B%0A%09foo%28%29%3A%20string%3B%0A%7D%0A%0Ainterface%20Bar%20%7B%0A%09bar%28%29%3A%20string%3B%0A%7D%0A%0Afunction%20convertBar%28input%3A%20Foo%20%7C%20Bar%29%3A%20%28%29%20%3D%3E%20string%20%7B%0A%09return%20isFoo%28input%29%20%3F%20function%20%28%29%20%7B%0A%09%09return%20input.foo%28%29%3B%0A%09%7D%20%3A%20input.bar%3B%0A%7D%0A" rel="nofollow">as per 1.8</a>)</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">Receive the error <code class="notranslate">Property 'foo' does not exist on type 'Foo | Bar'.</code></p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.7.5 (TS6029)</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// var t = 0; if(t) { document.write('defined'); } else { document.write('undefined'); } "><pre class="notranslate"><span class="pl-c">// var t = 0; if(t) { document.write('defined'); } else { document.write('undefined'); }</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">the variable is defined</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">the variable is undefined</p> <p dir="auto"><strong>Prove at Playground:</strong><br> <a href="http://goo.gl/UI4ymi" rel="nofollow">http://goo.gl/UI4ymi</a></p>
0
<p dir="auto"><strong>Apache Airflow version</strong>:</p> <p dir="auto">2.0.0</p> <p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto">1.15.x</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: AWS</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">Apparently <code class="notranslate">removed</code> task state causes Airflow to consider <code class="notranslate">dag_run</code> as active, due to <code class="notranslate">removed</code> not being part of <code class="notranslate">finished</code> frozenset:</p> <p dir="auto"><a href="https://github.com/apache/airflow/blob/v2-0-stable/airflow/utils/state.py#L103">https://github.com/apache/airflow/blob/v2-0-stable/airflow/utils/state.py#L103</a></p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">Removed state is counted as finished</p> <p dir="auto"><strong>How to reproduce it</strong>:</p> <p dir="auto">Create a dag run, backfill with success (-m) and then deploy a change removing some tasks. Airflow will now count it as active</p>
<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.0<br> <strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):<br> <strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>OS</strong> (e.g. from /etc/os-release): Debian GNU/Linux 10 (buster)</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux 6ae65b86e112 5.4.0-52-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="90004785" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/57" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/57/hovercard" href="https://github.com/apache/airflow/issues/57">#57</a>-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 GNU/Linux</li> <li><strong>Others</strong>: Python 3.8</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">After migrating one of our development Airflow instances from 1.10.14 to 2.0.0, the scheduler started to refuse to schedule tasks for a DAG that did not actually exceed its <code class="notranslate">max_active_runs</code>.</p> <p dir="auto">When it did this the following error would be logged:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DAG &lt;dag_name&gt; already has 577 active runs, not queuing any tasks for run 2020-12-17 08:05:00+00:00"><pre class="notranslate"><code class="notranslate">DAG &lt;dag_name&gt; already has 577 active runs, not queuing any tasks for run 2020-12-17 08:05:00+00:00 </code></pre></div> <p dir="auto">A bit of digging revealed that this DAG had task instances associated with it that are in the <code class="notranslate">removed</code> state. As soon as I forced the task instances that are in the <code class="notranslate">removed</code> state into the <code class="notranslate">failed</code> state, the tasks would be scheduled.</p> <p dir="auto">I believe the root cause of the issue is that <a href="https://github.com/apache/airflow/blob/master/airflow/jobs/scheduler_job.py#L1506">this filter</a> does not filter out tasks that are in the <code class="notranslate">removed</code> state.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">I expected the task instances in the DAG to be scheduled, because the DAG did not actually exceed the number of <code class="notranslate">max_active_runs</code>.</p> <p dir="auto"><strong>How to reproduce it</strong>:</p> <p dir="auto">I think the best approach to reproduce it is as follows:</p> <ol dir="auto"> <li>Create a DAG and set <code class="notranslate">max_active_runs</code> to 1.</li> <li>Ensure the DAG has ran successfully a number of times, such that it has some history associated with it.</li> <li>Set one historical task instance to the <code class="notranslate">removed</code> state (either by directly updating it in the DB, or deleting a task from a DAG before it has been able to execute).</li> </ol> <p dir="auto"><strong>Anything else we need to know</strong>:</p> <p dir="auto">The Airflow instance that I ran into this issue with contains about 3 years of task history, which means that we actually had quite a few task instances that are in the <code class="notranslate">removed</code> state, but there is no easy way to delete those from the Web UI.</p> <p dir="auto">A work around is to set the tasks to <code class="notranslate">failed</code>, which will allow the scheduler to proceed.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Expected at least nested objects be supported and parsed correctly from query</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It takes the whole thing as a key, instead of creating an nested object<br> Doesn't matter the format, none of them works<br> <code class="notranslate">/?nested[key]=value</code><br> or<br> <code class="notranslate">/?nested.key=value</code></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Open the page with the pattern above</li> <li>Print the this.props.url.query in top level page component</li> <li>Does not work</li> <li></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I can't pass nested object over arbitrarily if I am not using <code class="notranslate">&lt;Link /&gt;</code> component, actually I'm not sure if <code class="notranslate">&lt;Link /&gt;</code> would work with nested object since it is using npm 'url' which does not supported nested object parsing...</p> <p dir="auto">Btw, I'm currently using <a href="https://github.com/ljharb/qs">https://github.com/ljharb/qs</a> for parsing atm, I hope this saves you all time if you are looking for alternatives.</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>2.4.6</td> </tr> <tr> <td>node</td> <td>8.1.3</td> </tr> <tr> <td>OS</td> <td>macOS Sierra</td> </tr> <tr> <td>browser</td> <td>chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">Specific to the with-apollo-auth example:</p> <p dir="auto">When I try to access a page when NOT authenticated, I get errors "Network error: document is not defined", which is coming from with-data.js, "document.cookie" in the parseCookies function.<br> This behavior looks like to happens on the SSR side (when the page is refreshed or directly accessed for example).</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I should be able to access a page with graphQL queries even if the user is not authenticated.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Install with-apollo-auth example repo.</li> <li>Add a page using a react component with a graphQL query.</li> <li>Access with page with an unauthenticated user.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I have a bunch of pages on the app that should be public, with authenticated users having edit privileges.</p> <h2 dir="auto">My Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>3.2.1</td> </tr> <tr> <td>node</td> <td>8.4.0</td> </tr> <tr> <td>OS</td> <td>Mac</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
0