text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">Why this margin is needed?</p> <p dir="auto">bootstrap.css (5648 line)</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="body.modal-open, .modal-open .navbar-fixed-top, .modal-open .navbar-fixed-bottom { margin-right: 15px; }"><pre class="notranslate"><span class="pl-ent">body</span>.<span class="pl-c1">modal-open</span><span class="pl-kos">,</span> .<span class="pl-c1">modal-open</span> .<span class="pl-c1">navbar-fixed-top</span><span class="pl-kos">,</span> .<span class="pl-c1">modal-open</span> .<span class="pl-c1">navbar-fixed-bottom</span> { <span class="pl-c1">margin-right</span><span class="pl-kos">:</span> <span class="pl-c1">15<span class="pl-smi">px</span></span>; }</pre></div>
<p dir="auto">When launching the modal component (<a href="http://getbootstrap.com/javascript/#modals" rel="nofollow">http://getbootstrap.com/javascript/#modals</a>) the entire content will slightly move to the left on mac OS (haven't tried it on windows yet). With the active modal the scrollbar seem to disappear, while the content width still changes.</p> <p dir="auto">You can observer the problem on the bootstrap page</p>
1
<p dir="auto">Maybe I'm missing something in the debug UI experience but I see no way to add a condition to a function breakpoint even though the debug protocol supports it.</p>
<ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version: El Captian (10.11.5)</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12817/15313107/a7c149ea-1c3b-11e6-8185-b3e2113c08ed.png"><img width="465" alt="2016-05-17 14 24 23" src="https://cloud.githubusercontent.com/assets/12817/15313107/a7c149ea-1c3b-11e6-8185-b3e2113c08ed.png" style="max-width: 100%;"></a></p> <p dir="auto">How can I remove those ugly brackets in the menu? are they shortcut hints? No use to me at all.</p>
0
<p dir="auto">Cast renders an anonymous alias contrary to the <a href="https://docs.sqlalchemy.org/en/latest/core/sqlelement.html#sqlalchemy.sql.expression.cast" rel="nofollow">documentation</a></p> <p dir="auto">The example used in the documantation</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import cast, Numeric, select stmt = select([ cast(product_table.c.unit_price, Numeric(10, 4)) ])"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">cast</span>, <span class="pl-v">Numeric</span>, <span class="pl-s1">select</span> <span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-en">select</span>([ <span class="pl-en">cast</span>(<span class="pl-s1">product_table</span>.<span class="pl-s1">c</span>.<span class="pl-s1">unit_price</span>, <span class="pl-v">Numeric</span>(<span class="pl-c1">10</span>, <span class="pl-c1">4</span>)) ])</pre></div> <p dir="auto">renders as</p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SELECT CAST(product_table.unit_price AS NUMERIC(10, 4)) AS anon_1 FROM product_table"><pre class="notranslate"><span class="pl-k">SELECT</span> CAST(<span class="pl-c1">product_table</span>.<span class="pl-c1">unit_price</span> <span class="pl-k">AS</span> <span class="pl-k">NUMERIC</span>(<span class="pl-c1">10</span>, <span class="pl-c1">4</span>)) <span class="pl-k">AS</span> anon_1 <span class="pl-k">FROM</span> product_table</pre></div> <p dir="auto">instead of</p> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SELECT CAST(unit_price AS NUMERIC(10, 4)) FROM product"><pre class="notranslate"><span class="pl-k">SELECT</span> CAST(unit_price <span class="pl-k">AS</span> <span class="pl-k">NUMERIC</span>(<span class="pl-c1">10</span>, <span class="pl-c1">4</span>)) <span class="pl-k">FROM</span> product</pre></div> <p dir="auto">I've tried sqlalchemy version 1.2.7 and 1.2.16 and both return the same result</p>
<p dir="auto">We're having some issues with <code class="notranslate">back_populates</code> of relationships referring to other relationships with <code class="notranslate">viewonly=True</code>. We get duplicates in the relationship list that the <code class="notranslate">back_populates</code> refers to. Test case:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sqlalchemy from sqlalchemy import Column from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import attributes from sqlalchemy.orm import relationship Base = declarative_base() class User(Base): __tablename__ = 'user' id = Column(Integer, primary_key=True) name = Column(String) boston_addresses = relationship( &quot;Address&quot;, # primaryjoin=&quot;and_(User.id==Address.user_id, Address.city=='Boston')&quot;, # Not necessary but shows the use case viewonly=True) # Setting viewonly = False prevents the issue class Address(Base): __tablename__ = 'address' id = Column(Integer, primary_key=True) user_id = Column(Integer, ForeignKey('user.id')) user = relationship('User', back_populates='boston_addresses') city = Column(String) def main(): session = setup_database_and_session() user = User() session.add(user) session.commit() # user.boston_addresses # Reading the value here prevents the issue address = Address(user=user, city='Boston') actual = user.boston_addresses expected = [address] assert actual == expected, f&quot;{actual} != {expected}&quot; def setup_database_and_session(): engine = sqlalchemy.create_engine(&quot;sqlite://&quot;) session_maker = sqlalchemy.orm.sessionmaker(bind=engine) session = session_maker() Base.metadata.create_all(engine) return session if __name__ == &quot;__main__&quot;: main()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">Column</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">ForeignKey</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">Integer</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">String</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">declarative</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">attributes</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">relationship</span> <span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>() <span class="pl-k">class</span> <span class="pl-v">User</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'user'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>) <span class="pl-s1">boston_addresses</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>( <span class="pl-s">"Address"</span>, <span class="pl-c"># primaryjoin="and_(User.id==Address.user_id, Address.city=='Boston')", # Not necessary but shows the use case</span> <span class="pl-s1">viewonly</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-c"># Setting viewonly = False prevents the issue</span> <span class="pl-k">class</span> <span class="pl-v">Address</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'address'</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">user_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-v">ForeignKey</span>(<span class="pl-s">'user.id'</span>)) <span class="pl-s1">user</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">'User'</span>, <span class="pl-s1">back_populates</span><span class="pl-c1">=</span><span class="pl-s">'boston_addresses'</span>) <span class="pl-s1">city</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>) <span class="pl-k">def</span> <span class="pl-en">main</span>(): <span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-en">setup_database_and_session</span>() <span class="pl-s1">user</span> <span class="pl-c1">=</span> <span class="pl-v">User</span>() <span class="pl-s1">session</span>.<span class="pl-en">add</span>(<span class="pl-s1">user</span>) <span class="pl-s1">session</span>.<span class="pl-en">commit</span>() <span class="pl-c"># user.boston_addresses # Reading the value here prevents the issue</span> <span class="pl-s1">address</span> <span class="pl-c1">=</span> <span class="pl-v">Address</span>(<span class="pl-s1">user</span><span class="pl-c1">=</span><span class="pl-s1">user</span>, <span class="pl-s1">city</span><span class="pl-c1">=</span><span class="pl-s">'Boston'</span>) <span class="pl-s1">actual</span> <span class="pl-c1">=</span> <span class="pl-s1">user</span>.<span class="pl-s1">boston_addresses</span> <span class="pl-s1">expected</span> <span class="pl-c1">=</span> [<span class="pl-s1">address</span>] <span class="pl-k">assert</span> <span class="pl-s1">actual</span> <span class="pl-c1">==</span> <span class="pl-s1">expected</span>, <span class="pl-s">f"<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">actual</span><span class="pl-kos">}</span></span> != <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">expected</span><span class="pl-kos">}</span></span>"</span> <span class="pl-k">def</span> <span class="pl-en">setup_database_and_session</span>(): <span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-en">create_engine</span>(<span class="pl-s">"sqlite://"</span>) <span class="pl-s1">session_maker</span> <span class="pl-c1">=</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span>.<span class="pl-en">sessionmaker</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">engine</span>) <span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-en">session_maker</span>() <span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">engine</span>) <span class="pl-k">return</span> <span class="pl-s1">session</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">Result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AssertionError: [&lt;__main__.Address object at 0x10d95aeb8&gt;, &lt;__main__.Address object at 0x10d95aeb8&gt;] != [&lt;__main__.Address object at 0x10d95aeb8&gt;]"><pre class="notranslate"><code class="notranslate">AssertionError: [&lt;__main__.Address object at 0x10d95aeb8&gt;, &lt;__main__.Address object at 0x10d95aeb8&gt;] != [&lt;__main__.Address object at 0x10d95aeb8&gt;] </code></pre></div>
0
<p dir="auto">This bug-tracker is monitored by Windows Console development team and other technical types. <strong>We like detail!</strong></p> <p dir="auto">If you have a feature request, please post to <a href="https://wpdev.uservoice.com/forums/266908" rel="nofollow">the UserVoice</a>.</p> <blockquote> <p dir="auto"><strong>Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues</strong>. Instead, send dumps/traces to <a href="mailto:secure@microsoft.com">secure@microsoft.com</a>, referencing this GitHub issue.</p> </blockquote> <p dir="auto">Please use this form and describe your issue, concisely but precisely, with as much detail as possible</p> <ul dir="auto"> <li> <p dir="auto">Your Windows build number: 10.0.18362.30</p> </li> <li> <p dir="auto">What you're doing and what's happening: Resize the terminal window to minimum, then resize the window to normal, the text will disappear.</p> </li> </ul> <h3 dir="auto">The normal window size</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/50d41197423d464d81b42fe4184f4c1d3e267d1a5bf84f736de144467da5558e/68747470733a2f2f692e7a65726f647265616d2e6e65742f32353466376533343035633366653931343161323138646464326663393232632e706e67"><img src="https://camo.githubusercontent.com/50d41197423d464d81b42fe4184f4c1d3e267d1a5bf84f736de144467da5558e/68747470733a2f2f692e7a65726f647265616d2e6e65742f32353466376533343035633366653931343161323138646464326663393232632e706e67" alt="img" data-canonical-src="https://i.zerodream.net/254f7e3405c3fe9141a218ddd2fc922c.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Resize it to minimum</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f451d1167a1b8eb8fb295030a06b46a6f85892508a5f78b7e52fb9b0b1a1714a/68747470733a2f2f692e7a65726f647265616d2e6e65742f35333834663035353565306239653032653434626536656238336336646630362e706e67"><img src="https://camo.githubusercontent.com/f451d1167a1b8eb8fb295030a06b46a6f85892508a5f78b7e52fb9b0b1a1714a/68747470733a2f2f692e7a65726f647265616d2e6e65742f35333834663035353565306239653032653434626536656238336336646630362e706e67" alt="img" data-canonical-src="https://i.zerodream.net/5384f0555e0b9e02e44be6eb83c6df06.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Then resize to normal, the text disappear</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b1727c5ee9ca0fef5f218c0bc4a27ee70ed57566edd557760864ee01e4ac77f7/68747470733a2f2f692e7a65726f647265616d2e6e65742f34636335396430393063363032633836613536323630326436313636346665652e706e67"><img src="https://camo.githubusercontent.com/b1727c5ee9ca0fef5f218c0bc4a27ee70ed57566edd557760864ee01e4ac77f7/68747470733a2f2f692e7a65726f647265616d2e6e65742f34636335396430393063363032633836613536323630326436313636346665652e706e67" alt="img" data-canonical-src="https://i.zerodream.net/4cc59d090c602c86a562602d61664fee.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Scroll up the window</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f64c0b59c98a535dad0994373c8062f0dddc90b2105a08f8f5ff7d003b86f391/68747470733a2f2f692e7a65726f647265616d2e6e65742f31643766366132666263326236373536393739323932653034343866306132382e706e67"><img src="https://camo.githubusercontent.com/f64c0b59c98a535dad0994373c8062f0dddc90b2105a08f8f5ff7d003b86f391/68747470733a2f2f692e7a65726f647265616d2e6e65742f31643766366132666263326236373536393739323932653034343866306132382e706e67" alt="img" data-canonical-src="https://i.zerodream.net/1d7f6a2fbc2b6756979292e0448f0a28.png" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>What's wrong / what should be happening instead: I don't know. Is this a bug?</li> </ul>
<p dir="auto">When we paste anything in the Windows Terminal ubuntu instance using any command like <strong>vim abc.txt</strong>, it automatically inserts new line after each line, and eats up some characters from the beginning of the pasted text.<br> Here is the screenshot: <a href="https://i.imgur.com/pJ0Fsbw.png" rel="nofollow">https://i.imgur.com/pJ0Fsbw.png</a></p> <p dir="auto">Here the text copied to my clipboard copied was:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7"><pre class="notranslate"><code class="notranslate">Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 </code></pre></div> <p dir="auto">I ran command: <strong>vim abc.txt</strong><br> And after paste, it became</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ne 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 "><pre class="notranslate"><code class="notranslate">ne 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 </code></pre></div>
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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.5.10</li> <li>Operating System version: windows7</li> <li>Java version: jdk1.8</li> </ul> <p dir="auto">when is use dubbo-2.5.10 startup my application ,show me the log is</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[DUBBO] Using select timeout of 500, dubbo version: 2.0.1, current host: 192.168.1.18"><pre class="notranslate"><code class="notranslate">[DUBBO] Using select timeout of 500, dubbo version: 2.0.1, current host: 192.168.1.18 </code></pre></div> <p dir="auto">About the issue of using the dubbo-2.5.10 boot log output version is 2.0.1<br> but if i use dubbo of 2.6.x ,it is no problem;<br> and when i see the MANIFEST.MF of 2.5.10 and 2.6.2,i found them:</p> <p dir="auto">dubbo-2.5.10 MANIFEST.MF file</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Manifest-Version: 1.0 Implementation-Vendor: The Dubbo Project Implementation-Title: Dubbo Implementation-Version: 2.0.1 Implementation-Vendor-Id: com.alibaba Built-By: ken.lj Build-Jdk: 1.7.0_80 Specification-Vendor: The Dubbo Project Specification-Title: Dubbo Created-By: Apache Maven 3.1.1 Specification-Version: 2.0.0 Archiver-Version: Plexus Archiver"><pre class="notranslate"><code class="notranslate">Manifest-Version: 1.0 Implementation-Vendor: The Dubbo Project Implementation-Title: Dubbo Implementation-Version: 2.0.1 Implementation-Vendor-Id: com.alibaba Built-By: ken.lj Build-Jdk: 1.7.0_80 Specification-Vendor: The Dubbo Project Specification-Title: Dubbo Created-By: Apache Maven 3.1.1 Specification-Version: 2.0.0 Archiver-Version: Plexus Archiver </code></pre></div> <p dir="auto">but when i see the dubbo-2.6.2 MANIFEST.MF file</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Manifest-Version: 1.0 Implementation-Vendor: The Apache Software Foundation Implementation-Title: dubbo-all Implementation-Version: 2.6.2 Implementation-Vendor-Id: com.alibaba Built-By: ken.lj Build-Jdk: 1.7.0_80 Specification-Vendor: The Apache Software Foundation Specification-Title: dubbo-all Created-By: Apache Maven 3.5.0 Implementation-URL: https://github.com/apache/incubator-dubbo/dubbo Specification-Version: 2.6"><pre class="notranslate"><code class="notranslate">Manifest-Version: 1.0 Implementation-Vendor: The Apache Software Foundation Implementation-Title: dubbo-all Implementation-Version: 2.6.2 Implementation-Vendor-Id: com.alibaba Built-By: ken.lj Build-Jdk: 1.7.0_80 Specification-Vendor: The Apache Software Foundation Specification-Title: dubbo-all Created-By: Apache Maven 3.5.0 Implementation-URL: https://github.com/apache/incubator-dubbo/dubbo Specification-Version: 2.6 </code></pre></div> <p dir="auto">and the source code of<br> com.alibaba.dubbo.common.logger.support.FailsafeLogger</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package com.alibaba.dubbo.common.logger.support; import com.alibaba.dubbo.common.Version; import com.alibaba.dubbo.common.logger.Logger; import com.alibaba.dubbo.common.utils.NetUtils; public class FailsafeLogger implements Logger { private Logger logger; public FailsafeLogger(Logger logger) { this.logger = logger; } public Logger getLogger() { return logger; } public void setLogger(Logger logger) { this.logger = logger; } private String appendContextMessage(String msg) { return &quot; [DUBBO] &quot; + msg + &quot;, dubbo version: &quot; + Version.getVersion() + &quot;, current host: &quot; + NetUtils.getLogHost(); } .... other code "><pre class="notranslate"><code class="notranslate">package com.alibaba.dubbo.common.logger.support; import com.alibaba.dubbo.common.Version; import com.alibaba.dubbo.common.logger.Logger; import com.alibaba.dubbo.common.utils.NetUtils; public class FailsafeLogger implements Logger { private Logger logger; public FailsafeLogger(Logger logger) { this.logger = logger; } public Logger getLogger() { return logger; } public void setLogger(Logger logger) { this.logger = logger; } private String appendContextMessage(String msg) { return " [DUBBO] " + msg + ", dubbo version: " + Version.getVersion() + ", current host: " + NetUtils.getLogHost(); } .... other code </code></pre></div> <p dir="auto">source code of com.alibaba.dubbo.common.Version</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public static String getVersion(Class&lt;?&gt; cls, String defaultVersion) { try { // 首先查找MANIFEST.MF规范中的版本号 String version = cls.getPackage().getImplementationVersion(); if (version == null || version.length() == 0) { version = cls.getPackage().getSpecificationVersion(); } if (version == null || version.length() == 0) { // 如果规范中没有版本号,基于jar包名获取版本号 CodeSource codeSource = cls.getProtectionDomain().getCodeSource(); if(codeSource == null) { logger.info(&quot;No codeSource for class &quot; + cls.getName() + &quot; when getVersion, use default version &quot; + defaultVersion); } else { String file = codeSource.getLocation().getFile(); if (file != null &amp;&amp; file.length() &gt; 0 &amp;&amp; file.endsWith(&quot;.jar&quot;)) { file = file.substring(0, file.length() - 4); int i = file.lastIndexOf('/'); if (i &gt;= 0) { file = file.substring(i + 1); } i = file.indexOf(&quot;-&quot;); if (i &gt;= 0) { file = file.substring(i + 1); } while (file.length() &gt; 0 &amp;&amp; ! Character.isDigit(file.charAt(0))) { i = file.indexOf(&quot;-&quot;); if (i &gt;= 0) { file = file.substring(i + 1); } else { break; } } version = file; } } } // 返回版本号,如果为空返回缺省版本号 return version == null || version.length() == 0 ? defaultVersion : version; } catch (Throwable e) { // 防御性容错 // 忽略异常,返回缺省版本号 logger.error(&quot;return default version, ignore exception &quot; + e.getMessage(), e); return defaultVersion; } }"><pre class="notranslate"><code class="notranslate">public static String getVersion(Class&lt;?&gt; cls, String defaultVersion) { try { // 首先查找MANIFEST.MF规范中的版本号 String version = cls.getPackage().getImplementationVersion(); if (version == null || version.length() == 0) { version = cls.getPackage().getSpecificationVersion(); } if (version == null || version.length() == 0) { // 如果规范中没有版本号,基于jar包名获取版本号 CodeSource codeSource = cls.getProtectionDomain().getCodeSource(); if(codeSource == null) { logger.info("No codeSource for class " + cls.getName() + " when getVersion, use default version " + defaultVersion); } else { String file = codeSource.getLocation().getFile(); if (file != null &amp;&amp; file.length() &gt; 0 &amp;&amp; file.endsWith(".jar")) { file = file.substring(0, file.length() - 4); int i = file.lastIndexOf('/'); if (i &gt;= 0) { file = file.substring(i + 1); } i = file.indexOf("-"); if (i &gt;= 0) { file = file.substring(i + 1); } while (file.length() &gt; 0 &amp;&amp; ! Character.isDigit(file.charAt(0))) { i = file.indexOf("-"); if (i &gt;= 0) { file = file.substring(i + 1); } else { break; } } version = file; } } } // 返回版本号,如果为空返回缺省版本号 return version == null || version.length() == 0 ? defaultVersion : version; } catch (Throwable e) { // 防御性容错 // 忽略异常,返回缺省版本号 logger.error("return default version, ignore exception " + e.getMessage(), e); return defaultVersion; } } </code></pre></div> <p dir="auto">why the dubbo-2.5.x boot log output 2.0.1 ,can fix it?</p>
<h1 dir="auto">Weekly Report of Dubbo</h1> <p dir="auto">This is a weekly report of Dubbo. It summarizes what have changed in the project during the passed week, including pr merged, new contributors, and more things in the future.<br> It is all done by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dubbo-bot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dubbo-bot">@dubbo-bot</a> which is a collaborate robot.</p> <h2 dir="auto">Repo Overview</h2> <h3 dir="auto">Basic data</h3> <p dir="auto">Baisc data shows how the watch, star, fork and contributors count changed in the passed week.</p> <table role="table"> <thead> <tr> <th align="center">Watch</th> <th align="center">Star</th> <th align="center">Fork</th> <th align="center">Contributors</th> </tr> </thead> <tbody> <tr> <td align="center">3200</td> <td align="center">24432 (↑79)</td> <td align="center">13832 (↑61)</td> <td align="center">175 (↑2)</td> </tr> </tbody> </table> <h3 dir="auto">Issues &amp; PRs</h3> <p dir="auto">Issues &amp; PRs show the new/closed issues/pull requests count in the passed week.</p> <table role="table"> <thead> <tr> <th align="center">New Issues</th> <th align="center">Closed Issues</th> <th align="center">New PR</th> <th align="center">Merged PR</th> </tr> </thead> <tbody> <tr> <td align="center">17</td> <td align="center">31</td> <td align="center">23</td> <td align="center">15</td> </tr> </tbody> </table> <h2 dir="auto">PR Overview</h2> <p dir="auto">Thanks to contributions from community, Dubbo team merged <strong>15</strong> pull requests in the repository last week. They are:</p> <ul dir="auto"> <li>Apache parent pom version is updated to 21. (<a href="https://github.com/apache/incubator-dubbo/pull/3470" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3470/hovercard">#3470</a>)</li> <li>possibly bug fix (<a href="https://github.com/apache/incubator-dubbo/pull/3460" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3460/hovercard">#3460</a>)</li> <li>extract method to cache default extension name (<a href="https://github.com/apache/incubator-dubbo/pull/3456" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3456/hovercard">#3456</a>)</li> <li>[Dubbo-3237]fix connectionMonitor in RestProtocol seems not work <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="399364595" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3237" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/3237/hovercard" href="https://github.com/apache/dubbo/issues/3237">#3237</a> (<a href="https://github.com/apache/incubator-dubbo/pull/3455" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3455/hovercard">#3455</a>)</li> <li>extract 2 methods: isSetter and getSetterProperty (<a href="https://github.com/apache/incubator-dubbo/pull/3453" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3453/hovercard">#3453</a>)</li> <li>Bugfix/timeout queue full (<a href="https://github.com/apache/incubator-dubbo/pull/3451" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3451/hovercard">#3451</a>)</li> <li>fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="368048090" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/2619" data-hovercard-type="issue" data-hovercard-url="/apache/dubbo/issues/2619/hovercard" href="https://github.com/apache/dubbo/issues/2619">#2619</a>: is there a problem in NettyBackedChannelBuffer.setBytes(...)? (<a href="https://github.com/apache/incubator-dubbo/pull/3448" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3448/hovercard">#3448</a>)</li> <li>Add delay export test case (<a href="https://github.com/apache/incubator-dubbo/pull/3447" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3447/hovercard">#3447</a>)</li> <li>remove duplicated unused method and move unit test (<a href="https://github.com/apache/incubator-dubbo/pull/3446" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3446/hovercard">#3446</a>)</li> <li>Add checkstyle rule for redundant import (<a href="https://github.com/apache/incubator-dubbo/pull/3444" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3444/hovercard">#3444</a>)</li> <li>Update junit to 5.4.0 release version (<a href="https://github.com/apache/incubator-dubbo/pull/3441" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3441/hovercard">#3441</a>)</li> <li>remove duplicated import (<a href="https://github.com/apache/incubator-dubbo/pull/3440" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3440/hovercard">#3440</a>)</li> <li>[Dubbo-Container] Fix Enhance the java doc of dubbo-container module (<a href="https://github.com/apache/incubator-dubbo/pull/3437" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3437/hovercard">#3437</a>)</li> <li>refactor javassist compiler: extract class CtClassBuilder (<a href="https://github.com/apache/incubator-dubbo/pull/3424" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3424/hovercard">#3424</a>)</li> <li>refactor adaptive extension class code creation: extract class AdaptiveClassCodeGenerator (<a href="https://github.com/apache/incubator-dubbo/pull/3419" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3419/hovercard">#3419</a>)</li> </ul> <h2 dir="auto">Code Review Statistics</h2> <p dir="auto">Dubbo encourages everyone to participant in code review, in order to improve software quality. Every week <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dubbo-bot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dubbo-bot">@dubbo-bot</a> would automatically help to count pull request reviews of single github user as the following. So, try to help review code in this project.</p> <table role="table"> <thead> <tr> <th align="center">Contributor ID</th> <th align="center">Pull Request Reviews</th> </tr> </thead> <tbody> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lixiaojiee/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lixiaojiee">@lixiaojiee</a></td> <td align="center">6</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kezhenxu94/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kezhenxu94">@kezhenxu94</a></td> <td align="center">4</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/LiZhenNet/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LiZhenNet">@LiZhenNet</a></td> <td align="center">3</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CrazyHZM/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CrazyHZM">@CrazyHZM</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/beiwei30/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/beiwei30">@beiwei30</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/carryxyh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/carryxyh">@carryxyh</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kexianjun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kexianjun">@kexianjun</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/scxwhite/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/scxwhite">@scxwhite</a></td> <td align="center">2</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chickenlj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chickenlj">@chickenlj</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wanghbxxxx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wanghbxxxx">@wanghbxxxx</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/khanimteyaz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/khanimteyaz">@khanimteyaz</a></td> <td align="center">1</td> </tr> <tr> <td align="center"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/htynkn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/htynkn">@htynkn</a></td> <td align="center">1</td> </tr> </tbody> </table> <h2 dir="auto">Contributors Overview</h2> <p dir="auto">It is Dubbo team's great honor to have new contributors from community. We really appreciate your contributions. Feel free to tell us if you have any opinion and please share this open source project with more people if you could. If you hope to be a contributor as well, please start from <a href="https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md">https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md</a> .<br> Here is the list of new contributors:</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kamaci/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kamaci">@kamaci</a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dreamer-nitj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dreamer-nitj">@dreamer-nitj</a></p> <p dir="auto">Thanks to you all.</p> <p dir="auto"><em>Note: This robot is supported by <a href="https://github.com/AlibabaDR/Collabobot">Collabobot</a>.</em></p>
0
<p dir="auto">Use case: for classifiers with predict_proba I like to see precision/recall data across different probability values. This would be really easy to return from current cross_validation.py master if not for<br> if not isinstance(score, numbers.Number):<br> raise ValueError<br> in _cross_val_score<br> with this changed to a warning, cross_val_score can do the check before converting scores to np.array, and return plain list for incompatible types.</p>
<p dir="auto">I'd like to use cross_validation.cross_val_score with metrics.precision_recall_fscore_support so that I can get all relevant cross-validation metrics without having to run my cross-validation once for accuracy, once for precision, once for recall, and once for f1. But when I try this I get a ValueError:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.datasets import fetch_20newsgroups from sklearn.svm import LinearSVC from sklearn.feature_extraction.text import TfidfVectorizer from sklearn import metrics from sklearn import cross_validation import numpy as np data_train = fetch_20newsgroups(subset='train', #categories=categories, shuffle=True, random_state=42) clf = LinearSVC(loss='l1', penalty='l2') vectorizer = TfidfVectorizer( sublinear_tf=False, max_df=0.5, min_df=2, ngram_range = (1,1), use_idf=False, stop_words='english') X_train = vectorizer.fit_transform(data_train.data) # Cross-validate: scores = cross_validation.cross_val_score( clf, X_train, data_train.target, cv=5, scoring=metrics.precision_recall_fscore_support)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">fetch_20newsgroups</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">svm</span> <span class="pl-k">import</span> <span class="pl-v">LinearSVC</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">feature_extraction</span>.<span class="pl-s1">text</span> <span class="pl-k">import</span> <span class="pl-v">TfidfVectorizer</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span> <span class="pl-k">import</span> <span class="pl-s1">metrics</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span> <span class="pl-k">import</span> <span class="pl-s1">cross_validation</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-s1">data_train</span> <span class="pl-c1">=</span> <span class="pl-en">fetch_20newsgroups</span>(<span class="pl-s1">subset</span><span class="pl-c1">=</span><span class="pl-s">'train'</span>, <span class="pl-c">#categories=categories,</span> <span class="pl-s1">shuffle</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">42</span>) <span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-v">LinearSVC</span>(<span class="pl-s1">loss</span><span class="pl-c1">=</span><span class="pl-s">'l1'</span>, <span class="pl-s1">penalty</span><span class="pl-c1">=</span><span class="pl-s">'l2'</span>) <span class="pl-s1">vectorizer</span> <span class="pl-c1">=</span> <span class="pl-v">TfidfVectorizer</span>( <span class="pl-s1">sublinear_tf</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">max_df</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>, <span class="pl-s1">min_df</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">ngram_range</span> <span class="pl-c1">=</span> (<span class="pl-c1">1</span>,<span class="pl-c1">1</span>), <span class="pl-s1">use_idf</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">stop_words</span><span class="pl-c1">=</span><span class="pl-s">'english'</span>) <span class="pl-v">X_train</span> <span class="pl-c1">=</span> <span class="pl-s1">vectorizer</span>.<span class="pl-en">fit_transform</span>(<span class="pl-s1">data_train</span>.<span class="pl-s1">data</span>) <span class="pl-c"># Cross-validate:</span> <span class="pl-s1">scores</span> <span class="pl-c1">=</span> <span class="pl-s1">cross_validation</span>.<span class="pl-en">cross_val_score</span>( <span class="pl-s1">clf</span>, <span class="pl-v">X_train</span>, <span class="pl-s1">data_train</span>.<span class="pl-s1">target</span>, <span class="pl-s1">cv</span><span class="pl-c1">=</span><span class="pl-c1">5</span>, <span class="pl-s1">scoring</span><span class="pl-c1">=</span><span class="pl-s1">metrics</span>.<span class="pl-s1">precision_recall_fscore_support</span>)</pre></div>
1
<p dir="auto">Referring the documentation provided by playwright, seems like the hooks (example: afterAll / beforeAll) can be used only inside a spec/ test file as below:</p> <p dir="auto">// example.spec.ts<br> import { test, expect } from '@playwright/test';</p> <p dir="auto">test.beforeAll(async () =&gt; {<br> console.log('Before tests');<br> });</p> <p dir="auto">test.afterAll(async () =&gt; {<br> console.log('After tests');<br> });</p> <p dir="auto">test('my test', async ({ page }) =&gt; {<br> // ...<br> });</p> <p dir="auto">My question: is there any support where there can be only one AfterAll() or beforeAll() hook in one single file which will be called for every test files ? the piece of code that i want to have inside the afterAll and beforeAll is common for all the test/ specs files and i dont want to have the same duplicated in all the spec files/ test file.<br> Any suggestion or thoughts on this?</p> <p dir="auto">TIA<br> Allen</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.32.3]</li> <li>Operating System: [All, Windows] I only has Windows</li> <li>Browser: [Chromium, Firefox]</li> </ul> <p dir="auto">Page Visibility API : <a href="https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API</a></p> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Start a test and wait for the browser opens (let the test wait log, we need do following steps manually )</li> <li>open inspect/'dev tool' in a tab</li> <li>In console panel run the following script</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="document.addEventListener(&quot;visibilitychange&quot;, () =&gt; { console.log('visibilitychange work', document.visibilityState === 'visible') }); "><pre class="notranslate"><code class="notranslate">document.addEventListener("visibilitychange", () =&gt; { console.log('visibilitychange work', document.visibilityState === 'visible') }); </code></pre></div> <ul dir="auto"> <li>open another new tab --just open it manually</li> <li>switch to the previous tab and watch the console log</li> </ul> <p dir="auto"><strong>Expected</strong><br> We can see the console log:<br> "visibilitychange work false"<br> "visibilitychange work true"</p> <p dir="auto"><strong>Actual</strong><br> There is not such log. looks 'visibilitychange' event never triggered</p> <p dir="auto">Note: open the browser(Chromium) manually , Page Visibility API works OK.<br> But when running in test env, Page Visibility API does not work OK.</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">???</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.6.0 (skipped_false 39251fc27b) last updated 2018/02/10 00:32:41 (GMT +200) config file = None configured module search path = ['/home/nikos/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/nikos/Projects/ansible/lib/ansible executable location = /home/nikos/Projects/ansible/bin/ansible python version = 3.6.4 (default, Jan 5 2018, 02:35:40) [GCC 7.2.1 20171224]"><pre class="notranslate"><code class="notranslate">ansible 2.6.0 (skipped_false 39251fc27b) last updated 2018/02/10 00:32:41 (GMT +200) config file = None configured module search path = ['/home/nikos/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/nikos/Projects/ansible/lib/ansible executable location = /home/nikos/Projects/ansible/bin/ansible python version = 3.6.4 (default, Jan 5 2018, 02:35:40) [GCC 7.2.1 20171224] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Default</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Arch linux latest, tasks run against localhost</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">It is not possible to define task vars from a dict variable</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost tasks: - set_fact: dict: {'key': 'value'} - debug: msg: Test vars: &quot;{{ dict }}&quot;"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">set_fact</span>: <span class="pl-ent">dict</span>: <span class="pl-s">{'key': 'value'}</span> - <span class="pl-ent">debug</span>: <span class="pl-ent">msg</span>: <span class="pl-s">Test</span> <span class="pl-ent">vars</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ dict }}<span class="pl-pds">"</span></span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The second task should be executed successfully and the dict's contents should become available as variables in the context of the task.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR! Vars in a Task must be specified as a dictionary, or a list of dictionaries The error appears to have been in '/home/nikos/Projects/playbook.yml': line 8, column 9, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: vars: - dict ^ here "><pre class="notranslate"><code class="notranslate">ERROR! Vars in a Task must be specified as a dictionary, or a list of dictionaries The error appears to have been in '/home/nikos/Projects/playbook.yml': line 8, column 9, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: vars: - dict ^ here </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">lib/ansible/playbook/base.py</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0 config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0 config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">I am trying to set the vars for either a block: or an include_role: from a dictionary.</p> <p dir="auto">I get one of these messages (depending on the case):<br> ERROR! Vars in a Block must be specified as a dictionary, or a list of dictionaries<br> ERROR! Vars in a IncludeRole must be specified as a dictionary, or a list of dictionaries</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- set_fact: _T_m3_inv_vars: one_setting: &quot;{{ some_other_var1 |mandatory }}&quot; two_setting: &quot;{{ some_other_var2 |mandatory }}&quot; - block: - debug: msg=&quot;YYYYYYYY&quot; vars: &quot;{{ _T_m3_inv_vars }}&quot; - include_role: name: &quot;some_nice_role&quot; static: yes private: yes vars: &quot;{{ _T_m3_inv_vars }}&quot; "><pre class="notranslate"><code class="notranslate">- set_fact: _T_m3_inv_vars: one_setting: "{{ some_other_var1 |mandatory }}" two_setting: "{{ some_other_var2 |mandatory }}" - block: - debug: msg="YYYYYYYY" vars: "{{ _T_m3_inv_vars }}" - include_role: name: "some_nice_role" static: yes private: yes vars: "{{ _T_m3_inv_vars }}" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I would expect a similar result as having done the following</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- block: - debug: msg=&quot;YYYYYYYY&quot; vars: one_setting: &quot;{{ some_other_var1 |mandatory }}&quot; two_setting: &quot;{{ some_other_var2 |mandatory }}&quot; - include_role: name: &quot;some_nice_role&quot; static: yes private: yes vars: one_setting: &quot;{{ some_other_var1 |mandatory }}&quot; two_setting: &quot;{{ some_other_var2 |mandatory }}&quot;"><pre class="notranslate"><code class="notranslate">- block: - debug: msg="YYYYYYYY" vars: one_setting: "{{ some_other_var1 |mandatory }}" two_setting: "{{ some_other_var2 |mandatory }}" - include_role: name: "some_nice_role" static: yes private: yes vars: one_setting: "{{ some_other_var1 |mandatory }}" two_setting: "{{ some_other_var2 |mandatory }}" </code></pre></div> <p dir="auto">This is because I am indeed passing a dictionary to the vars: setting.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">One of these messages (obtained by running the previous snippets separatellyI<br> ERROR! Vars in a Block must be specified as a dictionary, or a list of dictionaries<br> ERROR! Vars in a IncludeRole must be specified as a dictionary, or a list of dictionaries</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.1 (master seems to be same)</li> <li>Operating System / Platform =&gt; cygwin 64 bit</li> <li>Compiler =&gt; g++ (gcc 7.3.0)</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">In some (very rare) condition, "Error: Assertion failed" happens at:<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/opencv/opencv/blob/da7e1cfb495be131fe7d4668b163cd1cd75e7670/modules/core/src/types.cpp#L154">opencv/modules/core/src/types.cpp</a> </p> <p class="mb-0 color-fg-muted"> Line 154 in <a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/da7e1cfb495be131fe7d4668b163cd1cd75e7670">da7e1cf</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L154" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="154"></td> <td id="LC154" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">CV_Assert</span>( <span class="pl-c1">abs</span>(vecs[<span class="pl-c1">0</span>].<span class="pl-c1">dot</span>(vecs[<span class="pl-c1">1</span>])) / (<span class="pl-c1">norm</span>(vecs[<span class="pl-c1">0</span>]) * <span class="pl-c1">norm</span>(vecs[<span class="pl-c1">1</span>])) &lt;= FLT_EPSILON ); </td> </tr> </tbody></table> </div> </div> <br> <code class="notranslate">CV_Assert(abs(vecs[0].dot(vecs[1])) / (cv::norm(vecs[0]) * cv::norm(vecs[1])) &lt;= FLT_EPSILON);</code><br> because <code class="notranslate">FLT_EPSILON</code> is too small to compare.<p></p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">I made a reproducible example:<br> <a href="https://github.com/takotakot/opencv_debug/tree/0a5d37dc2cc4aef22a33012bdcbb54597ae852a1">https://github.com/takotakot/opencv_debug/tree/0a5d37dc2cc4aef22a33012bdcbb54597ae852a1</a><br> .<br> If we have <code class="notranslate">Point2d</code> rectangle, using <code class="notranslate">RotatedRect_2d</code> can eliminate the problem.</p> <p dir="auto">Part of the code:</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" cv::Mat points = (cv::Mat_&lt;double&gt;(10, 2) &lt;&lt; 1357., 1337., 1362., 1407., 1367., 1474., 1372., 1543., 1375., 1625., 1375., 1696., 1377., 1734., 1378., 1742., 1382., 1801., 1372., 1990.); cv::PCA pca_points(points, cv::Mat(), CV_PCA_DATA_AS_ROW, 2); cv::Point2d p1(564.45, 339.8819), p2, p3; p2 = p1 - 1999 * cv::Point2d(pca_points.eigenvectors.row(0)); p3 = p2 - 1498.5295 * cv::Point2d(pca_points.eigenvectors.row(1)); cv::RotatedRect(p1, p2, p3);"><pre class="notranslate"> cv::Mat points = (cv::Mat_&lt;<span class="pl-k">double</span>&gt;(<span class="pl-c1">10</span>, <span class="pl-c1">2</span>) &lt;&lt; <span class="pl-c1">1357</span>., <span class="pl-c1">1337</span>., <span class="pl-c1">1362</span>., <span class="pl-c1">1407</span>., <span class="pl-c1">1367</span>., <span class="pl-c1">1474</span>., <span class="pl-c1">1372</span>., <span class="pl-c1">1543</span>., <span class="pl-c1">1375</span>., <span class="pl-c1">1625</span>., <span class="pl-c1">1375</span>., <span class="pl-c1">1696</span>., <span class="pl-c1">1377</span>., <span class="pl-c1">1734</span>., <span class="pl-c1">1378</span>., <span class="pl-c1">1742</span>., <span class="pl-c1">1382</span>., <span class="pl-c1">1801</span>., <span class="pl-c1">1372</span>., <span class="pl-c1">1990</span>.); cv::PCA <span class="pl-en">pca_points</span>(points, cv::Mat(), CV_PCA_DATA_AS_ROW, 2); cv::Point2d <span class="pl-en">p1</span>(<span class="pl-c1">564.45</span>, <span class="pl-c1">339.8819</span>), p2, p3; p2 = p1 - <span class="pl-c1">1999</span> * <span class="pl-en">cv::Point2d</span>(pca_points.eigenvectors.row(<span class="pl-c1">0</span>)); p3 = p2 - <span class="pl-c1">1498.5295</span> * <span class="pl-en">cv::Point2d</span>(pca_points.eigenvectors.row(<span class="pl-c1">1</span>)); <span class="pl-en">cv::RotatedRect</span>(p1, p2, p3);</pre></div> <h5 dir="auto">Plans</h5> <p dir="auto">I have some plans:</p> <ol dir="auto"> <li>Multiple 2, 4 or some value to FLT_EPSILON</li> <li>Make another constructor using <code class="notranslate">Point2d</code> for <code class="notranslate">Point2f</code> (and <code class="notranslate">Vec2d</code> for <code class="notranslate">Vec2f</code> etc. inside)<br> Note 1: If we use <code class="notranslate">DBL_EPSILON</code>, same problem may occur.<br> Note 2: If we only have <code class="notranslate">Point2f</code> rectangle, we cannot avoid assertion.</li> <li>Calcurate the angle between two vectors and introduce another assersion.</li> </ol> <p dir="auto">I want to create PR for solving this issue. But I want some direction.</p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1.0</li> <li>Operating System / Platform =&gt; Ubuntu 18.04 LTS</li> <li>Compiler =&gt; clang-7</li> </ul> <h5 dir="auto">Detailed description</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An issue was discovered in opencv 4.1.0, there is an out of bounds read in function cv::predictOrdered&lt;cv::HaarEvaluator&gt; in cascadedetect.hpp, which leads to denial of service."><pre class="notranslate"><code class="notranslate">An issue was discovered in opencv 4.1.0, there is an out of bounds read in function cv::predictOrdered&lt;cv::HaarEvaluator&gt; in cascadedetect.hpp, which leads to denial of service. </code></pre></div> <p dir="auto">source</p> <div class="highlight highlight-source-c notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" 511 double val = featureEvaluator(node.featureIdx); 512 idx = val &lt; node.threshold ? node.left : node.right; 513 } 514 while( idx &gt; 0 ); &gt; 515 sum += \*bug=&gt;*\ cascadeLeaves[leafOfs - idx]; 516 nodeOfs += weak.nodeCount; 517 leafOfs += weak.nodeCount + 1; 518 } 519 if( sum &lt; stage.threshold ) 520 return -si;"><pre class="notranslate"> <span class="pl-c1">511</span> <span class="pl-smi">double</span> <span class="pl-s1">val</span> <span class="pl-c1">=</span> <span class="pl-en">featureEvaluator</span>(<span class="pl-s1">node</span>.<span class="pl-c1">featureIdx</span>); <span class="pl-c1">512</span> <span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">val</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">node</span>.<span class="pl-c1">threshold</span> ? <span class="pl-s1">node</span>.<span class="pl-c1">left</span> : <span class="pl-s1">node</span>.<span class="pl-c1">right</span>; <span class="pl-c1">513</span> } <span class="pl-c1">514</span> <span class="pl-k">while</span>( <span class="pl-s1">idx</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">0</span> ); <span class="pl-c1">&gt;</span> <span class="pl-c1">515</span> <span class="pl-s1">sum</span> <span class="pl-c1">+=</span> \*<span class="pl-s1">bug</span><span class="pl-c1">=</span><span class="pl-c1">&gt;</span><span class="pl-c1">*</span>\ <span class="pl-s1">cascadeLeaves</span>[<span class="pl-s1">leafOfs</span> <span class="pl-c1">-</span> <span class="pl-s1">idx</span>]; <span class="pl-c1">516</span> <span class="pl-s1">nodeOfs</span> <span class="pl-c1">+=</span> <span class="pl-s1">weak</span>.<span class="pl-c1">nodeCount</span>; <span class="pl-c1">517</span> <span class="pl-s1">leafOfs</span> <span class="pl-c1">+=</span> <span class="pl-s1">weak</span>.<span class="pl-c1">nodeCount</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>; <span class="pl-c1">518</span> } <span class="pl-c1">519</span> <span class="pl-k">if</span>( <span class="pl-s1">sum</span> <span class="pl-c1">&lt;</span> <span class="pl-s1">stage</span>.<span class="pl-c1">threshold</span> ) <span class="pl-c1">520</span> <span class="pl-k">return</span> <span class="pl-c1">-</span><span class="pl-s1">si</span>;</pre></div> <p dir="auto">debug</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In file: /home/pwd/SofterWare/opencv-4.1.0/modules/objdetect/src/cascadedetect.hpp 510 CascadeClassifierImpl::Data::DTreeNode&amp; node = cascadeNodes[root + idx]; 511 double val = featureEvaluator(node.featureIdx); 512 idx = val &lt; node.threshold ? node.left : node.right; 513 } 514 while( idx &gt; 0 ); ► 515 sum += cascadeLeaves[leafOfs - idx]; 516 nodeOfs += weak.nodeCount; 517 leafOfs += weak.nodeCount + 1; 518 } 519 if( sum &lt; stage.threshold ) 520 return -si; ─────────────────────────────────────────────────────────────────────────────────────────────────────[ STACK ]───────────────────────────────────────────────────────────────────────────────────────────────────── 00:0000│ rsp 0x7fffc7ffe300 ◂— 0x8d80169006580d8 01:0008│ 0x7fffc7ffe308 ◂— 0xbba5787f80000000 02:0010│ 0x7fffc7ffe310 —▸ 0x7fffd53a5de0 ◂— 0xb1088000af4cb 03:0018│ 0x7fffc7ffe318 ◂— 0xffedb5a100000003 04:0020│ 0x7fffc7ffe320 ◂— 0xbf74af0fe0000000 05:0028│ 0x7fffc7ffe328 —▸ 0x6b7b70 ◂— 0x0 06:0030│ 0x7fffc7ffe330 ◂— 0x800000000000005d /* ']' */ 07:0038│ 0x7fffc7ffe338 —▸ 0x66f4a4 ◂— 0x100000000 ───────────────────────────────────────────────────────────────────────────────────────────────────[ BACKTRACE ]─────────────────────────────────────────────────────────────────────────────────────────────────── ► f 0 7ffff5e2c500 f 1 7ffff5e2bb21 f 2 7ffff5e3bd74 f 3 7fffef87dc59 f 4 7fffef87ea3b cv::ParallelJob::execute(bool)+603 f 5 7fffef87e21a cv::WorkerThread::thread_body()+890 f 6 7fffef880e05 cv::WorkerThread::thread_loop_wrapper(void*)+21 f 7 7fffee3d46db start_thread+219 Program received signal SIGSEGV (fault address 0xfffffffe006630f8) pwndbg&gt; p cascadeLeaves $1 = (float *) 0x662e10 pwndbg&gt; p leafOfs $2 = 186 pwndbg&gt; p idx $3 = -2147483648"><pre class="notranslate"><code class="notranslate">In file: /home/pwd/SofterWare/opencv-4.1.0/modules/objdetect/src/cascadedetect.hpp 510 CascadeClassifierImpl::Data::DTreeNode&amp; node = cascadeNodes[root + idx]; 511 double val = featureEvaluator(node.featureIdx); 512 idx = val &lt; node.threshold ? node.left : node.right; 513 } 514 while( idx &gt; 0 ); ► 515 sum += cascadeLeaves[leafOfs - idx]; 516 nodeOfs += weak.nodeCount; 517 leafOfs += weak.nodeCount + 1; 518 } 519 if( sum &lt; stage.threshold ) 520 return -si; ─────────────────────────────────────────────────────────────────────────────────────────────────────[ STACK ]───────────────────────────────────────────────────────────────────────────────────────────────────── 00:0000│ rsp 0x7fffc7ffe300 ◂— 0x8d80169006580d8 01:0008│ 0x7fffc7ffe308 ◂— 0xbba5787f80000000 02:0010│ 0x7fffc7ffe310 —▸ 0x7fffd53a5de0 ◂— 0xb1088000af4cb 03:0018│ 0x7fffc7ffe318 ◂— 0xffedb5a100000003 04:0020│ 0x7fffc7ffe320 ◂— 0xbf74af0fe0000000 05:0028│ 0x7fffc7ffe328 —▸ 0x6b7b70 ◂— 0x0 06:0030│ 0x7fffc7ffe330 ◂— 0x800000000000005d /* ']' */ 07:0038│ 0x7fffc7ffe338 —▸ 0x66f4a4 ◂— 0x100000000 ───────────────────────────────────────────────────────────────────────────────────────────────────[ BACKTRACE ]─────────────────────────────────────────────────────────────────────────────────────────────────── ► f 0 7ffff5e2c500 f 1 7ffff5e2bb21 f 2 7ffff5e3bd74 f 3 7fffef87dc59 f 4 7fffef87ea3b cv::ParallelJob::execute(bool)+603 f 5 7fffef87e21a cv::WorkerThread::thread_body()+890 f 6 7fffef880e05 cv::WorkerThread::thread_loop_wrapper(void*)+21 f 7 7fffee3d46db start_thread+219 Program received signal SIGSEGV (fault address 0xfffffffe006630f8) pwndbg&gt; p cascadeLeaves $1 = (float *) 0x662e10 pwndbg&gt; p leafOfs $2 = 186 pwndbg&gt; p idx $3 = -2147483648 </code></pre></div> <p dir="auto">bug report</p> <div class="highlight highlight-text-adblock notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="AddressSanitizer:DEADLYSIGNAL ================================================================= ==9176==ERROR: AddressSanitizer: SEGV on unknown address 0x623e000443e8 (pc 0x7fc9fc661bfa bp 0x7fc9daee70b0 sp 0x7fc9daee6f80 T1) ==9176==The signal is caused by a READ memory access. AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL #0 0x7fc9fc661bf9 in int cv::predictOrdered&lt;cv::HaarEvaluator&gt;(cv::CascadeClassifierImpl&amp;, cv::Ptr&lt;cv::FeatureEvaluator&gt;&amp;, double&amp;) /src/opencv/modules/objdetect/src/cascadedetect.hpp:515:17 #1 0x7fc9fc65f736 in cv::CascadeClassifierImpl::runAt(cv::Ptr&lt;cv::FeatureEvaluator&gt;&amp;, cv::Point_&lt;int&gt;, int, double&amp;) /src/opencv/modules/objdetect/src/cascadedetect.cpp:962:20 #2 0x7fc9fc692083 in cv::CascadeClassifierInvoker::operator()(cv::Range const&amp;) const /src/opencv/modules/objdetect/src/cascadedetect.cpp:1029:46 #3 0x7fc9f294b0c3 in (anonymous namespace)::ParallelLoopBodyWrapper::operator()(cv::Range const&amp;) const /src/opencv/modules/core/src/parallel.cpp:343:17 #4 0x7fc9f2d737e7 in cv::ParallelJob::execute(bool) /src/opencv/modules/core/src/parallel_impl.cpp:315:22 #5 0x7fc9f2d7125b in cv::WorkerThread::thread_body() /src/opencv/modules/core/src/parallel_impl.cpp:415:24 #6 0x7fc9f2d7f719 in cv::WorkerThread::thread_loop_wrapper(void*) /src/opencv/modules/core/src/parallel_impl.cpp:265:41 #7 0x7fc9f15e46b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9) #8 0x7fc9f0cf841c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10741c) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /src/opencv/modules/objdetect/src/cascadedetect.hpp:515:17 in int cv::predictOrdered&lt;cv::HaarEvaluator&gt;(cv::CascadeClassifierImpl&amp;, cv::Ptr&lt;cv::FeatureEvaluator&gt;&amp;, double&amp;) Thread T1 created by T0 here: #0 0x43428d in __interceptor_pthread_create /work/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:204 #1 0x7fc9f2d79d58 in cv::WorkerThread::WorkerThread(cv::ThreadPool&amp;, unsigned int) /src/opencv/modules/core/src/parallel_impl.cpp:227:15 #2 0x7fc9f2d76240 in cv::ThreadPool::reconfigure_(unsigned int) /src/opencv/modules/core/src/parallel_impl.cpp:510:53 #3 0x7fc9f2d7bb07 in cv::ThreadPool::run(cv::Range const&amp;, cv::ParallelLoopBody const&amp;, double) /src/opencv/modules/core/src/parallel_impl.cpp:548:9 #4 0x7fc9f2949a99 in parallel_for_impl(cv::Range const&amp;, cv::ParallelLoopBody const&amp;, double) /src/opencv/modules/core/src/parallel.cpp:590:9 #5 0x7fc9f2949a99 in cv::parallel_for_(cv::Range const&amp;, cv::ParallelLoopBody const&amp;, double) /src/opencv/modules/core/src/parallel.cpp:518 #6 0x7fc9fc673269 in cv::CascadeClassifierImpl::detectMultiScaleNoGrouping(cv::_InputArray const&amp;, std::vector&lt;cv::Rect_&lt;int&gt;, std::allocator&lt;cv::Rect_&lt;int&gt; &gt; &gt;&amp;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;&amp;, std::vector&lt;double, std::allocator&lt;double&gt; &gt;&amp;, double, cv::Size_&lt;int&gt;, cv::Size_&lt;int&gt;, bool) /src/opencv/modules/objdetect/src/cascadedetect.cpp:1346:9 #7 0x7fc9fc677cb8 in cv::CascadeClassifierImpl::detectMultiScale(cv::_InputArray const&amp;, std::vector&lt;cv::Rect_&lt;int&gt;, std::allocator&lt;cv::Rect_&lt;int&gt; &gt; &gt;&amp;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;&amp;, std::vector&lt;double, std::allocator&lt;double&gt; &gt;&amp;, double, int, int, cv::Size_&lt;int&gt;, cv::Size_&lt;int&gt;, bool) /src/opencv/modules/objdetect/src/cascadedetect.cpp:1365:5 #8 0x7fc9fc6786ee in cv::CascadeClassifierImpl::detectMultiScale(cv::_InputArray const&amp;, std::vector&lt;cv::Rect_&lt;int&gt;, std::allocator&lt;cv::Rect_&lt;int&gt; &gt; &gt;&amp;, double, int, int, cv::Size_&lt;int&gt;, cv::Size_&lt;int&gt;) /src/opencv/modules/objdetect/src/cascadedetect.cpp:1386:5 #9 0x7fc9fc686370 in cv::CascadeClassifier::detectMultiScale(cv::_InputArray const&amp;, std::vector&lt;cv::Rect_&lt;int&gt;, std::allocator&lt;cv::Rect_&lt;int&gt; &gt; &gt;&amp;, double, int, int, cv::Size_&lt;int&gt;, cv::Size_&lt;int&gt;) /src/opencv/modules/objdetect/src/cascadedetect.cpp:1659:9 #10 0x51d4bc in main /work/funcs/classifier.cc:34:24 #11 0x7fc9f0c1182f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) ==9176==ABORTING "><pre class="notranslate">AddressSanitizer:DEADLYSIGNAL ================================================================= ==9176==ERROR: AddressSanitizer: SEGV on unknown address 0x623e000443e8 (pc 0x7fc9fc661bfa bp 0x7fc9daee70b0 sp 0x7fc9daee6f80 T1) ==9176==The signal is caused by a READ memory access. AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL AddressSanitizer:DEADLYSIGNAL #0 0x7fc9fc661bf9 in int cv::predictOrdered&lt;cv::HaarEvaluator&gt;(cv::CascadeClassifierImpl&amp;, cv::Ptr&lt;cv::FeatureEvaluator&gt;&amp;, double&amp;) /src/opencv/modules/objdetect/src/cascadedetect.hpp:515:17 #1 0x7fc9fc65f736 in cv::CascadeClassifierImpl::runAt(cv::Ptr&lt;cv::FeatureEvaluator&gt;&amp;, cv::Point_&lt;int&gt;, int, double&amp;) /src/opencv/modules/objdetect/src/cascadedetect.cpp:962:20 #2 0x7fc9fc692083 in cv::CascadeClassifierInvoker::operator()(cv::Range const&amp;) const /src/opencv/modules/objdetect/src/cascadedetect.cpp:1029:46 #3 0x7fc9f294b0c3 in (anonymous namespace)::ParallelLoopBodyWrapper::operator()(cv::Range const&amp;) const /src/opencv/modules/core/src/parallel.cpp:343:17 #4 0x7fc9f2d737e7 in cv::ParallelJob::execute(bool) /src/opencv/modules/core/src/parallel_impl.cpp:315:22 #5 0x7fc9f2d7125b in cv::WorkerThread::thread_body() /src/opencv/modules/core/src/parallel_impl.cpp:415:24 #6 0x7fc9f2d7f719 in cv::WorkerThread::thread_loop_wrapper(void<span class="pl-k">*</span>) /src/opencv/modules/core/src/parallel_impl.cpp:265:41 #7 0x7fc9f15e46b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9) #8 0x7fc9f0cf841c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10741c) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /src/opencv/modules/objdetect/src/cascadedetect.hpp:515:17 in int cv::predictOrdered&lt;cv::HaarEvaluator&gt;(cv::CascadeClassifierImpl&amp;, cv::Ptr&lt;cv::FeatureEvaluator&gt;&amp;, double&amp;) Thread T1 created by T0 here: #0 0x43428d in __interceptor_pthread_create /work/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:204 #1 0x7fc9f2d79d58 in cv::WorkerThread::WorkerThread(cv::ThreadPool&amp;, unsigned int) /src/opencv/modules/core/src/parallel_impl.cpp:227:15 #2 0x7fc9f2d76240 in cv::ThreadPool::reconfigure_(unsigned int) /src/opencv/modules/core/src/parallel_impl.cpp:510:53 #3 0x7fc9f2d7bb07 in cv::ThreadPool::run(cv::Range const&amp;, cv::ParallelLoopBody const&amp;, double) /src/opencv/modules/core/src/parallel_impl.cpp:548:9 #4 0x7fc9f2949a99 in parallel_for_impl(cv::Range const&amp;, cv::ParallelLoopBody const&amp;, double) /src/opencv/modules/core/src/parallel.cpp:590:9 #5 0x7fc9f2949a99 in cv::parallel_for_(cv::Range const&amp;, cv::ParallelLoopBody const&amp;, double) /src/opencv/modules/core/src/parallel.cpp:518 #6 0x7fc9fc673269 in cv::CascadeClassifierImpl::detectMultiScaleNoGrouping(cv::_InputArray const&amp;, std::vector&lt;cv::Rect_&lt;int&gt;, std::allocator&lt;cv::Rect_&lt;int&gt; &gt; &gt;&amp;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;&amp;, std::vector&lt;double, std::allocator&lt;double&gt; &gt;&amp;, double, cv::Size_&lt;int&gt;, cv::Size_&lt;int&gt;, bool) /src/opencv/modules/objdetect/src/cascadedetect.cpp:1346:9 #7 0x7fc9fc677cb8 in cv::CascadeClassifierImpl::detectMultiScale(cv::_InputArray const&amp;, std::vector&lt;cv::Rect_&lt;int&gt;, std::allocator&lt;cv::Rect_&lt;int&gt; &gt; &gt;&amp;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;&amp;, std::vector&lt;double, std::allocator&lt;double&gt; &gt;&amp;, double, int, int, cv::Size_&lt;int&gt;, cv::Size_&lt;int&gt;, bool) /src/opencv/modules/objdetect/src/cascadedetect.cpp:1365:5 #8 0x7fc9fc6786ee in cv::CascadeClassifierImpl::detectMultiScale(cv::_InputArray const&amp;, std::vector&lt;cv::Rect_&lt;int&gt;, std::allocator&lt;cv::Rect_&lt;int&gt; &gt; &gt;&amp;, double, int, int, cv::Size_&lt;int&gt;, cv::Size_&lt;int&gt;) /src/opencv/modules/objdetect/src/cascadedetect.cpp:1386:5 #9 0x7fc9fc686370 in cv::CascadeClassifier::detectMultiScale(cv::_InputArray const&amp;, std::vector&lt;cv::Rect_&lt;int&gt;, std::allocator&lt;cv::Rect_&lt;int&gt; &gt; &gt;&amp;, double, int, int, cv::Size_&lt;int&gt;, cv::Size_&lt;int&gt;) /src/opencv/modules/objdetect/src/cascadedetect.cpp:1659:9 #10 0x51d4bc in main /work/funcs/classifier.cc:34:24 #11 0x7fc9f0c1182f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) ==9176==ABORTING </pre></div> <p dir="auto">others</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from fuzz project pwd-opencv-classifier-00 crash name pwd-opencv-classifier-00-00000253-20190703.xml Auto-generated by pyspider at 2019-07-03 07:57:31 please send email to teamseri0us360@gmail.com if you have any questions."><pre class="notranslate"><code class="notranslate">from fuzz project pwd-opencv-classifier-00 crash name pwd-opencv-classifier-00-00000253-20190703.xml Auto-generated by pyspider at 2019-07-03 07:57:31 please send email to teamseri0us360@gmail.com if you have any questions. </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">commandline</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="classifier /work/funcs/appname.bmp @@"><pre class="notranslate"><code class="notranslate">classifier /work/funcs/appname.bmp @@ </code></pre></div> <p dir="auto"><a href="https://github.com/opencv/opencv/files/3420073/poc2.tar.gz">poc2.tar.gz</a></p>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto">I don't know if it is expected or if I miss something, but it looks like the envmap textures generated by PMREGenerator and the renderer specified at that time cannot be re-used with another renderer.</p> <p dir="auto">In this example, the envmap is generated using <strong>renderer</strong>.<br> If the scene is rendered with <strong>renderer2</strong>, it doesn't work.</p> <ul dir="auto"> <li><a href="https://jsfiddle.net/uhzg3Lyv/2/" rel="nofollow">jsfiddle</a></li> </ul> <p dir="auto">Replace <code class="notranslate">var pmremGenerator = new THREE.PMREMGenerator( renderer );</code><br> by <code class="notranslate">var pmremGenerator = new THREE.PMREMGenerator( renderer2 );</code><br> on line 49 to check the difference.</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r115</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> </ul>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Using <code class="notranslate">PMREMGenerator.fromEquirectangular</code> in multiple simultaneous three.js renderers causes only the last renderer to have a correctly functioning texture (at least for use as an envMap)<br> This happens even when each renderer has its own instance of <code class="notranslate">pmremGenerator</code> and calls <code class="notranslate">dispose</code> after use.</p> <p dir="auto">Here's a fiddle: <a href="https://jsfiddle.net/h37k2ztv/10/" rel="nofollow">https://jsfiddle.net/h37k2ztv/10/</a></p> <p dir="auto">I would expect that initializing a different <code class="notranslate">pmremGenerator</code> for each renderer should be sufficient, but I had to work around it by reinstantiating and recompiling the <code class="notranslate">pmremGenerator</code> immediately before each time it is used (uncomment lines 63 and 64 in the fiddle to do this)</p> <p dir="auto">Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="577602852" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/18842" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/18842/hovercard" href="https://github.com/mrdoob/three.js/issues/18842">#18842</a> reports this same issue, but perhaps even without multiple renderers.<br> <a href="https://github.com/mrdoob/three.js/pull/15330" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/15330/hovercard">This merge request</a> may have introduced the unexpected behavior.</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r115</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul>
1
<h2 dir="auto">Bug Report</h2> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">5.0.0</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">execute well</p> <h3 dir="auto">Actual behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="11-19 17:53:11.212 INFO 59884 --- [nio-8088-exec-1] ShardingSphere-SQL : Logic SQL: insert into coupon_limit(id, fk_coupon_id, type, sold_qty, sold_date) values (null, ?, ?, 1, str_to_date('9999-12-31','%Y-%m-%d') ) on DUPLICATE key update sold_qty = IF(sold_qty + 1 &lt;= ?,sold_qty + 1, -1) 2021-11-19 17:53:11.213 INFO 59884 --- [nio-8088-exec-1] ShardingSphere-SQL : SQLStatement: MySQLInsertStatement(setAssignment=Optional.empty, onDuplicateKeyColumns=Optional[org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.OnDuplicateKeyColumnsSegment@5ee2c53c]) 2021-11-19 17:53:11.213 INFO 59884 --- [nio-8088-exec-1] ShardingSphere-SQL : Actual SQL: ds-0 ::: insert into coupon_limit(id, fk_coupon_id, type, sold_qty, sold_date) values (null, ?, ?, 1, str_to_date('9999-12-31','%Y-%m-%d')) on DUPLICATE key update sold_qty = IF(sold_qty + 1 &lt;= ?,sold_qty + 1, -1) ::: [1, 2] 2021-11-19 17:53:11.259 ERROR 59884 --- [nio-8088-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.sql.SQLException: No value specified for parameter 3] with root cause java.sql.SQLException: No value specified for parameter 3 at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-java-8.0.26.jar:8.0.26] at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.26.jar:8.0.26] at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:396) ~[mysql-connector-java-8.0.26.jar:8.0.26] at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44) ~[HikariCP-3.4.2.jar:na] at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java) ~[HikariCP-3.4.2.jar:na] at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement$2.executeSQL(ShardingSpherePreparedStatement.java:322) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement$2.executeSQL(ShardingSpherePreparedStatement.java:318) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:85) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:64) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.syncExecute(ExecutorEngine.java:101) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.parallelExecute(ExecutorEngine.java:97) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.execute(ExecutorEngine.java:82) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor.execute(JDBCExecutor.java:65) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor.execute(JDBCExecutor.java:49) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.executor.JDBCLockEngine.doExecute(JDBCLockEngine.java:116) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.executor.JDBCLockEngine.execute(JDBCLockEngine.java:93) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.executor.DriverJDBCExecutor.execute(DriverJDBCExecutor.java:127) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.execute(ShardingSpherePreparedStatement.java:298) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at com.example.org.shardingjdbcmetadatatest.ShardingJdbcMetaDataTestApplication.simpleExecute(ShardingJdbcMetaDataTestApplication.java:82) ~[classes/:na] at com.example.org.shardingjdbcmetadatatest.ShardingJdbcMetaDataTestApplication.sql(ShardingJdbcMetaDataTestApplication.java:46) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_292] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_292] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_292] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_292] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.10.jar:5.3.10] at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) ~[tomcat-embed-core-9.0.53.jar:4.0.FR] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.10.jar:5.3.10] at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[tomcat-embed-core-9.0.53.jar:4.0.FR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.10.jar:5.3.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.10.jar:5.3.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.10.jar:5.3.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.53.jar:9.0.53] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_292]"><pre class="notranslate"><code class="notranslate">11-19 17:53:11.212 INFO 59884 --- [nio-8088-exec-1] ShardingSphere-SQL : Logic SQL: insert into coupon_limit(id, fk_coupon_id, type, sold_qty, sold_date) values (null, ?, ?, 1, str_to_date('9999-12-31','%Y-%m-%d') ) on DUPLICATE key update sold_qty = IF(sold_qty + 1 &lt;= ?,sold_qty + 1, -1) 2021-11-19 17:53:11.213 INFO 59884 --- [nio-8088-exec-1] ShardingSphere-SQL : SQLStatement: MySQLInsertStatement(setAssignment=Optional.empty, onDuplicateKeyColumns=Optional[org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.OnDuplicateKeyColumnsSegment@5ee2c53c]) 2021-11-19 17:53:11.213 INFO 59884 --- [nio-8088-exec-1] ShardingSphere-SQL : Actual SQL: ds-0 ::: insert into coupon_limit(id, fk_coupon_id, type, sold_qty, sold_date) values (null, ?, ?, 1, str_to_date('9999-12-31','%Y-%m-%d')) on DUPLICATE key update sold_qty = IF(sold_qty + 1 &lt;= ?,sold_qty + 1, -1) ::: [1, 2] 2021-11-19 17:53:11.259 ERROR 59884 --- [nio-8088-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.sql.SQLException: No value specified for parameter 3] with root cause java.sql.SQLException: No value specified for parameter 3 at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-java-8.0.26.jar:8.0.26] at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.26.jar:8.0.26] at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:396) ~[mysql-connector-java-8.0.26.jar:8.0.26] at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44) ~[HikariCP-3.4.2.jar:na] at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java) ~[HikariCP-3.4.2.jar:na] at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement$2.executeSQL(ShardingSpherePreparedStatement.java:322) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement$2.executeSQL(ShardingSpherePreparedStatement.java:318) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:85) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:64) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.syncExecute(ExecutorEngine.java:101) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.parallelExecute(ExecutorEngine.java:97) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.execute(ExecutorEngine.java:82) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor.execute(JDBCExecutor.java:65) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor.execute(JDBCExecutor.java:49) ~[shardingsphere-infra-executor-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.executor.JDBCLockEngine.doExecute(JDBCLockEngine.java:116) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.executor.JDBCLockEngine.execute(JDBCLockEngine.java:93) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.executor.DriverJDBCExecutor.execute(DriverJDBCExecutor.java:127) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement.execute(ShardingSpherePreparedStatement.java:298) ~[shardingsphere-jdbc-core-5.0.0.jar:5.0.0] at com.example.org.shardingjdbcmetadatatest.ShardingJdbcMetaDataTestApplication.simpleExecute(ShardingJdbcMetaDataTestApplication.java:82) ~[classes/:na] at com.example.org.shardingjdbcmetadatatest.ShardingJdbcMetaDataTestApplication.sql(ShardingJdbcMetaDataTestApplication.java:46) ~[classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_292] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_292] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_292] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_292] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.10.jar:5.3.10] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.10.jar:5.3.10] at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) ~[tomcat-embed-core-9.0.53.jar:4.0.FR] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.10.jar:5.3.10] at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[tomcat-embed-core-9.0.53.jar:4.0.FR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.10.jar:5.3.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.10.jar:5.3.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.10.jar:5.3.10] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.3.10.jar:5.3.10] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1726) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) [tomcat-embed-core-9.0.53.jar:9.0.53] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.53.jar:9.0.53] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_292] </code></pre></div> <h3 dir="auto">Actual behavior</h3>
<p dir="auto">For example:<br> insert into the_biz(id,ser_id,biz_time) values (1,1,now())</p> <p dir="auto">NoneShardingStrategy is default for no sharding tables,but error occurs .because of sql checking?<br> When in no-sharding table cases,could we make shardingsphere look like it doesn't exist?</p>
0
<p dir="auto">[ yes ] I've searched for any related issues and avoided creating a duplicate<br> issue.<br> Description<br> Announcement, it's not a bug probably。</p> <p dir="auto">Firstly ,I run the standard wss ( ws over https server ) code by a single js file, It worked.<br> and then , I copy the same code into the electron main.js, it can't be worked.<br> so ,i open wireshark to capture the package , and then I found the electron svr send a little bytes other then never see any piece about how to handle the upgrade handshake. :(</p> <p dir="auto">ps: i use the self-singed certification</p> <p dir="auto">Reproducible in:<br> version: ws ^7.1.2<br> Node.js version(s): v10.16.1<br> OS version(s): osx 10.14<br> Steps to reproduce:<br> 1.server code :<br> const fs = require('fs');<br> const https = require('https');<br> const WebSocket = require('ws');<br> const path = require('path');</p> <p dir="auto">const hostname = 'aaa.abc.com';<br> const server = https.createServer({<br> cert: fs.readFileSync(path.resolve(certs/${hostname}.crt)),<br> key: fs.readFileSync(path.resolve(certs/${hostname}.key)),<br> // rejectUnauthorized: false<br> });<br> const wss = new WebSocket.Server({ server });</p> <p dir="auto">wss.on('connection', function connection(ws) {<br> ws.on('message', function incoming(message) {<br> console.log('received: %s', message);<br> });<br> ws.send('something');<br> });</p> <p dir="auto">server.listen(443,()=&gt;{<br> console.log('start svr002')<br> });</p> <p dir="auto">client code<br> ws=new WebSocket('wss://aaa.abc.com/echo',{<br> rejectUnauthorized: false<br> });<br> ws.on('error',function (e) {<br> connectFlag=false;<br> console.error('error',e);<br> ws=null;<br> });</p> <p dir="auto">ws.on('close',function (e) {<br> connectFlag=false;<br> console.warn('close',e)<br> });</p> <p dir="auto">ws.on('open', function open() {<br> connectFlag=true;<br> console.log('connected');<br> ws.send('something');</p> <p dir="auto">ws.on('message', function incoming(data) {<br> console.log(data);<br> });<br> });</p> <p dir="auto">run in single.js : yes<br> node svr.js<br> node cli001.js or open in ie,ff,chrome</p> <p dir="auto">run embed in electron : not work<br> electrion .<br> node cli001.js or open in ie,ff,chrome</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6058537/63348655-47dcc800-c38c-11e9-8a4b-14920f0a8184.jpg"><img src="https://user-images.githubusercontent.com/6058537/63348655-47dcc800-c38c-11e9-8a4b-14920f0a8184.jpg" alt="err" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="https://i.imgur.com/mYtRTmJ.png" rel="nofollow">https://i.imgur.com/mYtRTmJ.png</a></p> <p dir="auto"><a href="https://electronjs.org/docs/api/browser-window" rel="nofollow">https://electronjs.org/docs/api/browser-window</a></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 verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://github.com/celery/celery/discussions">discussions forum</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="https://docs.celeryq.dev/en/master/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"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <p dir="auto">Little bit related -<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="826311180" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6672" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6672/hovercard" href="https://github.com/celery/celery/issues/6672">#6672</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="542193436" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5890" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5890/hovercard" href="https://github.com/celery/celery/issues/5890">#5890</a></p> <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>: 5.2.7 (dawn-chorus)</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ celery report software -&gt; celery:5.2.7 (dawn-chorus) kombu:5.2.4 py:3.9.9 billiard:3.6.4.0 py-amqp:5.1.1 platform -&gt; system:Darwin arch:64bit kernel version:21.4.0 imp:CPython loader -&gt; celery.loaders.default.Loader settings -&gt; transport:amqp results:disabled deprecated_settings: None "><pre class="notranslate"><code class="notranslate">$ celery report software -&gt; celery:5.2.7 (dawn-chorus) kombu:5.2.4 py:3.9.9 billiard:3.6.4.0 py-amqp:5.1.1 platform -&gt; system:Darwin arch:64bit kernel version:21.4.0 imp:CPython loader -&gt; celery.loaders.default.Loader settings -&gt; transport:amqp results:disabled deprecated_settings: None </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <ol dir="auto"> <li>Here the global serializer is <code class="notranslate">json</code> which is the default setting in celery. Now we will declare a task with serialization set to <code class="notranslate">pickle</code>.</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# In tasks.py from celery import shared_task @serial_task(serializer='pickle') def pickle_seriliazable_args_task(nice_set): print('Starting Task') # This delay would indicate a long running task # So that we have enough time to request the task stats from shell sleep(200) print('Task Finished') "><pre class="notranslate"><span class="pl-c"># In tasks.py</span> <span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-s1">shared_task</span> <span class="pl-en">@<span class="pl-en">serial_task</span>(<span class="pl-s1">serializer</span><span class="pl-c1">=</span><span class="pl-s">'pickle'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">pickle_seriliazable_args_task</span>(<span class="pl-s1">nice_set</span>): <span class="pl-en">print</span>(<span class="pl-s">'Starting Task'</span>) <span class="pl-c"># This delay would indicate a long running task</span> <span class="pl-c"># So that we have enough time to request the task stats from shell</span> <span class="pl-en">sleep</span>(<span class="pl-c1">200</span>) <span class="pl-en">print</span>(<span class="pl-s">'Task Finished'</span>)</pre></div> <ol start="2" dir="auto"> <li>Open a django-manage shell and run</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: from myapp.apps.niceapp.tasks import pickle_serialized_task In [2]: task = pickle_serialized_task.delay(set([1, 2, 3])) In [3]: celery_hostname = 'celery@work' # update hostname as per your config In [4]: celery_inspect = task.app.control.inspect([celery_hostname]) In [5]: celery_inspect.active()"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">from</span> <span class="pl-s1">myapp</span>.<span class="pl-s1">apps</span>.<span class="pl-s1">niceapp</span>.<span class="pl-s1">tasks</span> <span class="pl-s1">import</span> <span class="pl-s1">pickle_serialized_task</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">task</span> <span class="pl-c1">=</span> <span class="pl-s1">pickle_serialized_task</span>.<span class="pl-en">delay</span>(<span class="pl-en">set</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>])) <span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">celery_hostname</span> <span class="pl-c1">=</span> <span class="pl-s">'celery@work'</span> <span class="pl-c"># update hostname as per your config</span> <span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">celery_inspect</span> <span class="pl-c1">=</span> <span class="pl-s1">task</span>.<span class="pl-s1">app</span>.<span class="pl-s1">control</span>.<span class="pl-en">inspect</span>([<span class="pl-s1">celery_hostname</span>]) <span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">celery_inspect</span>.<span class="pl-en">active</span>()</pre></div> <p dir="auto">On running <code class="notranslate">celery_inspect.active()</code> following error is thrown.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2022-07-01 15:07:50,791: INFO/MainProcess] Task myapp.apps.niceapp.tasks.pickle_serialized_task[e61f2103-1e19-4593-b2bd-6d69bd273a3c] received [2022-07-01 15:07:50,815: WARNING/ForkPoolWorker-6] Starting Task [2022-07-01 15:09:09,906: ERROR/MainProcess] Control command error: EncodeError(TypeError('Object of type set is not JSON serializable')) Traceback (most recent call last): File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py&quot;, line 39, in _reraise_errors yield File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py&quot;, line 210, in dumps payload = encoder(data) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/utils/json.py&quot;, line 68, in dumps return _dumps(s, cls=cls or _default_encoder, File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/__init__.py&quot;, line 234, in dumps return cls( File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py&quot;, line 199, in encode chunks = self.iterencode(o, _one_shot=True) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py&quot;, line 257, in iterencode return _iterencode(o, 0) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/utils/json.py&quot;, line 58, in default return super().default(o) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py&quot;, line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type set is not JSON serializable During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/celery/worker/pidbox.py&quot;, line 44, in on_message self.node.handle_message(body, message) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/pidbox.py&quot;, line 141, in handle_message return self.dispatch(**body) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/pidbox.py&quot;, line 108, in dispatch self.reply({self.hostname: reply}, File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/pidbox.py&quot;, line 145, in reply self.mailbox._publish_reply(data, exchange, routing_key, ticket, File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/pidbox.py&quot;, line 275, in _publish_reply producer.publish( File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/messaging.py&quot;, line 166, in publish body, content_type, content_encoding = self._prepare( File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/messaging.py&quot;, line 254, in _prepare body) = dumps(body, serializer=serializer) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py&quot;, line 210, in dumps payload = encoder(data) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/contextlib.py&quot;, line 137, in __exit__ self.gen.throw(typ, value, traceback) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py&quot;, line 43, in _reraise_errors reraise(wrapper, wrapper(exc), sys.exc_info()[2]) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/exceptions.py&quot;, line 21, in reraise raise value.with_traceback(tb) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py&quot;, line 39, in _reraise_errors yield File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py&quot;, line 210, in dumps payload = encoder(data) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/utils/json.py&quot;, line 68, in dumps return _dumps(s, cls=cls or _default_encoder, File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/__init__.py&quot;, line 234, in dumps return cls( File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py&quot;, line 199, in encode chunks = self.iterencode(o, _one_shot=True) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py&quot;, line 257, in iterencode return _iterencode(o, 0) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/utils/json.py&quot;, line 58, in default return super().default(o) File &quot;/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py&quot;, line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' kombu.exceptions.EncodeError: Object of type set is not JSON serializable"><pre class="notranslate"><code class="notranslate">2022-07-01 15:07:50,791: INFO/MainProcess] Task myapp.apps.niceapp.tasks.pickle_serialized_task[e61f2103-1e19-4593-b2bd-6d69bd273a3c] received [2022-07-01 15:07:50,815: WARNING/ForkPoolWorker-6] Starting Task [2022-07-01 15:09:09,906: ERROR/MainProcess] Control command error: EncodeError(TypeError('Object of type set is not JSON serializable')) Traceback (most recent call last): File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py", line 39, in _reraise_errors yield File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py", line 210, in dumps payload = encoder(data) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/utils/json.py", line 68, in dumps return _dumps(s, cls=cls or _default_encoder, File "/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/__init__.py", line 234, in dumps return cls( File "/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/utils/json.py", line 58, in default return super().default(o) File "/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type set is not JSON serializable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/celery/worker/pidbox.py", line 44, in on_message self.node.handle_message(body, message) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/pidbox.py", line 141, in handle_message return self.dispatch(**body) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/pidbox.py", line 108, in dispatch self.reply({self.hostname: reply}, File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/pidbox.py", line 145, in reply self.mailbox._publish_reply(data, exchange, routing_key, ticket, File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/pidbox.py", line 275, in _publish_reply producer.publish( File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/messaging.py", line 166, in publish body, content_type, content_encoding = self._prepare( File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/messaging.py", line 254, in _prepare body) = dumps(body, serializer=serializer) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py", line 210, in dumps payload = encoder(data) File "/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/contextlib.py", line 137, in __exit__ self.gen.throw(typ, value, traceback) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py", line 43, in _reraise_errors reraise(wrapper, wrapper(exc), sys.exc_info()[2]) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/exceptions.py", line 21, in reraise raise value.with_traceback(tb) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py", line 39, in _reraise_errors yield File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/serialization.py", line 210, in dumps payload = encoder(data) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/utils/json.py", line 68, in dumps return _dumps(s, cls=cls or _default_encoder, File "/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/__init__.py", line 234, in dumps return cls( File "/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/Users/amitphulera/.pyenv/versions/3.9.9/envs/hq_celery/lib/python3.9/site-packages/kombu/utils/json.py", line 58, in default return super().default(o) File "/Users/amitphulera/.pyenv/versions/3.9.9/lib/python3.9/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' kombu.exceptions.EncodeError: Object of type set is not JSON serializable </code></pre></div> <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="alabaster==0.7.12 alembic==1.7.7 amqp==5.1.1 appnope==0.1.3 architect==0.6.0 asgiref==3.5.0 asttokens==2.0.5 attrs==21.4.0 Babel==2.9.1 backcall==0.2.0 Beaker==1.11.0 beautifulsoup4==4.10.0 billiard==3.6.4.0 black==22.1.0 boto3==1.17.85 botocore==1.20.85 cachetools==5.0.0 case==1.5.3 celery==5.2.7 certifi==2020.6.20 cffi==1.14.3 chardet==3.0.4 click==8.1.3 click-didyoumean==0.3.0 click-plugins==1.1.1 click-repl==0.2.0 cloudant==2.14.0 colorama==0.4.3 contextlib2==21.6.0 coverage==5.5 cryptography==3.4.8 csiphash==0.0.5 datadog==0.39.0 ddtrace==0.44.0 debugpy==1.6.0 decorator==4.0.11 defusedxml==0.7.1 Deprecated==1.2.10 diff-match-patch==20200713 dimagi-memoized==1.1.3 Django==3.2.13 django-appconf==1.0.5 django-autoslug==1.9.8 django-braces==1.14.0 django-bulk-update==2.2.0 django-celery-results==2.4.0 django-compressor==2.4 django-countries==7.3.2 django-crispy-forms==1.10.0 django-cte==1.2.0 django-extensions==3.1.3 django-formtools==2.3 django-logentry-admin==1.0.6 django-oauth-toolkit==1.5.0 django-otp==0.9.4 django-phonenumber-field==5.2.0 django-prbac==1.0.1 django-recaptcha==2.0.6 django-redis==4.12.1 django-redis-sessions==0.6.2 django-statici18n==1.9.0 django-tastypie==0.14.4 django-transfer==0.4 django-two-factor-auth==1.13.2 django-user-agents==0.4.0 djangorestframework==3.12.2 dnspython==1.15.0 docutils==0.16 dropbox==9.3.0 elasticsearch2==2.5.1 elasticsearch5==5.5.6 email-validator==1.1.3 et-xmlfile==1.0.1 ethiopian-date-converter==0.1.5 eulxml==1.1.3 executing==0.8.3 fakecouch==0.0.15 Faker==5.0.2 fixture==1.5.11 flake8==3.9.2 flaky==3.7.0 flower==1.0.0 freezegun==1.1.0 future==0.18.2 gevent==21.8.0 ghdiff==0.4 git-build-branch==0.1.13 gnureadline==8.0.0 google-api-core==2.5.0 google-api-python-client==2.32.0 google-auth==2.6.0 google-auth-httplib2==0.1.0 google-auth-oauthlib==0.4.6 googleapis-common-protos==1.54.0 greenlet==1.1.2 gunicorn==20.0.4 hiredis==2.0.0 httpagentparser==1.9.0 httplib2==0.20.4 humanize==4.1.0 idna==2.10 imagesize==1.2.0 importlib-metadata==4.11.3 iniconfig==1.1.1 intervaltree==3.1.0 ipython==8.2.0 iso8601==0.1.13 isodate==0.6.1 jedi==0.18.1 Jinja2==2.11.3 jmespath==0.10.0 json-delta==2.0 jsonfield==2.1.1 jsonobject==2.0.0 jsonobject-couchdbkit==1.0.1 jsonschema==3.2.0 jwcrypto==0.8 kafka-python==1.4.7 kombu==5.2.4 laboratory==0.2.0 linecache2==1.0.0 lxml==4.7.1 Mako==1.1.3 mando==0.6.4 Markdown==3.3.6 MarkupSafe==1.1.1 matplotlib-inline==0.1.3 mccabe==0.6.1 mock==4.0.3 mypy-extensions==0.4.3 ndg-httpsclient==0.5.1 nose==1.3.7 nose-exclude==0.5.0 oauthlib==3.1.0 oic==1.3.0 openpyxl==3.0.9 packaging==20.4 parso==0.8.3 pathspec==0.9.0 pep517==0.10.0 pexpect==4.8.0 phonenumberslite==8.12.48 pickle5==0.0.11 pickleshare==0.7.5 Pillow==9.0.1 pip-tools==6.6.0 platformdirs==2.4.1 pluggy==1.0.0 ply==3.11 polib==1.1.1 prometheus-client==0.14.1 prompt-toolkit==3.0.26 protobuf==3.15.0 psutil==5.8.0 psycogreen==1.0.2 psycopg2==2.8.6 psycopg2cffi==2.9.0 ptyprocess==0.7.0 pure-eval==0.2.2 py==1.11.0 py-cpuinfo==8.0.0 py-KISSmetrics==1.1.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycodestyle==2.7.0 pycparser==2.20 pycryptodome==3.10.1 pycryptodomex==3.14.1 pyflakes==2.3.1 PyGithub==1.54.1 Pygments==2.11.2 pygooglechart==0.4.0 pyjwkest==1.4.2 PyJWT==1.7.1 pyOpenSSL==20.0.1 pyparsing==3.0.7 pyphonetics==0.5.3 pyrsistent==0.17.3 PySocks==1.7.1 pytest==7.1.2 pytest-benchmark==3.4.1 pytest-django==4.5.2 python-dateutil==2.8.2 python-editor==1.0.4 python-imap==1.0.0 python-magic==0.4.22 python-mimeparse==1.6.0 python-termstyle==0.1.10 python3-saml==1.12.0 pytz==2022.1 PyYAML==5.4.1 pyzxcvbn==0.8.0 qrcode==4.0.4 quickcache==0.5.4 radon==5.1.0 rcssmin==1.0.6 redis==3.5.3 reportlab==3.6.9 requests==2.25.1 requests-mock==1.9.3 requests-oauthlib==1.3.1 requests-toolbelt==0.9.1 rjsmin==1.1.0 rsa==4.8 s3transfer==0.4.2 schema==0.7.5 sentry-sdk==0.19.5 setproctitle==1.2.2 sh==1.14.2 simpleeval==0.9.10 simplejson==3.17.2 six==1.16.0 sniffer==0.4.1 snowballstemmer==2.0.0 socketpool==0.5.3 sortedcontainers==2.3.0 soupsieve==2.0.1 Sphinx==4.1.2 sphinx-rtd-theme==0.5.2 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-django==0.5.1 sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sqlagg==0.17.2 SQLAlchemy==1.3.19 sqlalchemy-postgres-copy==0.5.0 sqlparse==0.3.1 stack-data==0.1.4 stripe==2.54.0 suds-py3==1.4.5.0 tenacity==6.2.0 testil==1.1 text-unidecode==1.3 tinys3==0.1.12 toml==0.10.2 tomli==2.0.1 toposort==1.7 tornado==6.1 traceback2==1.4.0 traitlets==5.1.1 tropo-webapi-python==0.1.3 turn-python==0.0.1 twilio==6.5.1 typing_extensions==4.1.1 ua-parser==0.10.0 Unidecode==1.2.0 unittest2==1.1.0 uritemplate==4.1.1 urllib3==1.26.5 user-agents==2.2.0 uWSGI==2.0.19.1 vine==5.0.0 wcwidth==0.2.5 Werkzeug==1.0.1 wrapt==1.12.1 xlrd==2.0.1 xlwt==1.3.0 xmlsec==1.3.12 yapf==0.31.0 zipp==3.7.0 zope.event==4.5.0 zope.interface==5.4.0"><pre class="notranslate"><code class="notranslate">alabaster==0.7.12 alembic==1.7.7 amqp==5.1.1 appnope==0.1.3 architect==0.6.0 asgiref==3.5.0 asttokens==2.0.5 attrs==21.4.0 Babel==2.9.1 backcall==0.2.0 Beaker==1.11.0 beautifulsoup4==4.10.0 billiard==3.6.4.0 black==22.1.0 boto3==1.17.85 botocore==1.20.85 cachetools==5.0.0 case==1.5.3 celery==5.2.7 certifi==2020.6.20 cffi==1.14.3 chardet==3.0.4 click==8.1.3 click-didyoumean==0.3.0 click-plugins==1.1.1 click-repl==0.2.0 cloudant==2.14.0 colorama==0.4.3 contextlib2==21.6.0 coverage==5.5 cryptography==3.4.8 csiphash==0.0.5 datadog==0.39.0 ddtrace==0.44.0 debugpy==1.6.0 decorator==4.0.11 defusedxml==0.7.1 Deprecated==1.2.10 diff-match-patch==20200713 dimagi-memoized==1.1.3 Django==3.2.13 django-appconf==1.0.5 django-autoslug==1.9.8 django-braces==1.14.0 django-bulk-update==2.2.0 django-celery-results==2.4.0 django-compressor==2.4 django-countries==7.3.2 django-crispy-forms==1.10.0 django-cte==1.2.0 django-extensions==3.1.3 django-formtools==2.3 django-logentry-admin==1.0.6 django-oauth-toolkit==1.5.0 django-otp==0.9.4 django-phonenumber-field==5.2.0 django-prbac==1.0.1 django-recaptcha==2.0.6 django-redis==4.12.1 django-redis-sessions==0.6.2 django-statici18n==1.9.0 django-tastypie==0.14.4 django-transfer==0.4 django-two-factor-auth==1.13.2 django-user-agents==0.4.0 djangorestframework==3.12.2 dnspython==1.15.0 docutils==0.16 dropbox==9.3.0 elasticsearch2==2.5.1 elasticsearch5==5.5.6 email-validator==1.1.3 et-xmlfile==1.0.1 ethiopian-date-converter==0.1.5 eulxml==1.1.3 executing==0.8.3 fakecouch==0.0.15 Faker==5.0.2 fixture==1.5.11 flake8==3.9.2 flaky==3.7.0 flower==1.0.0 freezegun==1.1.0 future==0.18.2 gevent==21.8.0 ghdiff==0.4 git-build-branch==0.1.13 gnureadline==8.0.0 google-api-core==2.5.0 google-api-python-client==2.32.0 google-auth==2.6.0 google-auth-httplib2==0.1.0 google-auth-oauthlib==0.4.6 googleapis-common-protos==1.54.0 greenlet==1.1.2 gunicorn==20.0.4 hiredis==2.0.0 httpagentparser==1.9.0 httplib2==0.20.4 humanize==4.1.0 idna==2.10 imagesize==1.2.0 importlib-metadata==4.11.3 iniconfig==1.1.1 intervaltree==3.1.0 ipython==8.2.0 iso8601==0.1.13 isodate==0.6.1 jedi==0.18.1 Jinja2==2.11.3 jmespath==0.10.0 json-delta==2.0 jsonfield==2.1.1 jsonobject==2.0.0 jsonobject-couchdbkit==1.0.1 jsonschema==3.2.0 jwcrypto==0.8 kafka-python==1.4.7 kombu==5.2.4 laboratory==0.2.0 linecache2==1.0.0 lxml==4.7.1 Mako==1.1.3 mando==0.6.4 Markdown==3.3.6 MarkupSafe==1.1.1 matplotlib-inline==0.1.3 mccabe==0.6.1 mock==4.0.3 mypy-extensions==0.4.3 ndg-httpsclient==0.5.1 nose==1.3.7 nose-exclude==0.5.0 oauthlib==3.1.0 oic==1.3.0 openpyxl==3.0.9 packaging==20.4 parso==0.8.3 pathspec==0.9.0 pep517==0.10.0 pexpect==4.8.0 phonenumberslite==8.12.48 pickle5==0.0.11 pickleshare==0.7.5 Pillow==9.0.1 pip-tools==6.6.0 platformdirs==2.4.1 pluggy==1.0.0 ply==3.11 polib==1.1.1 prometheus-client==0.14.1 prompt-toolkit==3.0.26 protobuf==3.15.0 psutil==5.8.0 psycogreen==1.0.2 psycopg2==2.8.6 psycopg2cffi==2.9.0 ptyprocess==0.7.0 pure-eval==0.2.2 py==1.11.0 py-cpuinfo==8.0.0 py-KISSmetrics==1.1.0 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycodestyle==2.7.0 pycparser==2.20 pycryptodome==3.10.1 pycryptodomex==3.14.1 pyflakes==2.3.1 PyGithub==1.54.1 Pygments==2.11.2 pygooglechart==0.4.0 pyjwkest==1.4.2 PyJWT==1.7.1 pyOpenSSL==20.0.1 pyparsing==3.0.7 pyphonetics==0.5.3 pyrsistent==0.17.3 PySocks==1.7.1 pytest==7.1.2 pytest-benchmark==3.4.1 pytest-django==4.5.2 python-dateutil==2.8.2 python-editor==1.0.4 python-imap==1.0.0 python-magic==0.4.22 python-mimeparse==1.6.0 python-termstyle==0.1.10 python3-saml==1.12.0 pytz==2022.1 PyYAML==5.4.1 pyzxcvbn==0.8.0 qrcode==4.0.4 quickcache==0.5.4 radon==5.1.0 rcssmin==1.0.6 redis==3.5.3 reportlab==3.6.9 requests==2.25.1 requests-mock==1.9.3 requests-oauthlib==1.3.1 requests-toolbelt==0.9.1 rjsmin==1.1.0 rsa==4.8 s3transfer==0.4.2 schema==0.7.5 sentry-sdk==0.19.5 setproctitle==1.2.2 sh==1.14.2 simpleeval==0.9.10 simplejson==3.17.2 six==1.16.0 sniffer==0.4.1 snowballstemmer==2.0.0 socketpool==0.5.3 sortedcontainers==2.3.0 soupsieve==2.0.1 Sphinx==4.1.2 sphinx-rtd-theme==0.5.2 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-django==0.5.1 sphinxcontrib-htmlhelp==2.0.0 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.5 sqlagg==0.17.2 SQLAlchemy==1.3.19 sqlalchemy-postgres-copy==0.5.0 sqlparse==0.3.1 stack-data==0.1.4 stripe==2.54.0 suds-py3==1.4.5.0 tenacity==6.2.0 testil==1.1 text-unidecode==1.3 tinys3==0.1.12 toml==0.10.2 tomli==2.0.1 toposort==1.7 tornado==6.1 traceback2==1.4.0 traitlets==5.1.1 tropo-webapi-python==0.1.3 turn-python==0.0.1 twilio==6.5.1 typing_extensions==4.1.1 ua-parser==0.10.0 Unidecode==1.2.0 unittest2==1.1.0 uritemplate==4.1.1 urllib3==1.26.5 user-agents==2.2.0 uWSGI==2.0.19.1 vine==5.0.0 wcwidth==0.2.5 Werkzeug==1.0.1 wrapt==1.12.1 xlrd==2.0.1 xlwt==1.3.0 xmlsec==1.3.12 yapf==0.31.0 zipp==3.7.0 zope.event==4.5.0 zope.interface==5.4.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="# run celery with `pickle_serialized_task` as defined in reproduction steps and run the snippet below from myapp.apps.niceapp.tasks import pickle_serialized_task task = pickle_serialized_task.delay(set([1, 2, 3])) celery_hostname = 'celery@work' celery_inspect = task.app.control.inspect([celery_hostname]) celery_inspect.active() "><pre class="notranslate"><span class="pl-c"># run celery with `pickle_serialized_task` as defined in reproduction steps and run the snippet below</span> <span class="pl-k">from</span> <span class="pl-s1">myapp</span>.<span class="pl-s1">apps</span>.<span class="pl-s1">niceapp</span>.<span class="pl-s1">tasks</span> <span class="pl-k">import</span> <span class="pl-s1">pickle_serialized_task</span> <span class="pl-s1">task</span> <span class="pl-c1">=</span> <span class="pl-s1">pickle_serialized_task</span>.<span class="pl-en">delay</span>(<span class="pl-en">set</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>])) <span class="pl-s1">celery_hostname</span> <span class="pl-c1">=</span> <span class="pl-s">'celery@work'</span> <span class="pl-s1">celery_inspect</span> <span class="pl-c1">=</span> <span class="pl-s1">task</span>.<span class="pl-s1">app</span>.<span class="pl-s1">control</span>.<span class="pl-en">inspect</span>([<span class="pl-s1">celery_hostname</span>]) <span class="pl-s1">celery_inspect</span>.<span class="pl-en">active</span>()</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">This should list the details about the task.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">It is erroring out with the stack trace shared above.</p>
<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="826311180" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6672" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6672/hovercard" href="https://github.com/celery/celery/issues/6672">#6672</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="542193436" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/5890" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/5890/hovercard" href="https://github.com/celery/celery/issues/5890">#5890</a></li> </ul> <h4 dir="auto">Related PRs</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="877298707" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6757" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/6757/hovercard" href="https://github.com/celery/celery/pull/6757">#6757</a></li> </ul> <h1 dir="auto">Steps to Reproduce</h1> <p dir="auto">Here is the script that reproduces the issue:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import time from celery import Celery app = Celery('example') app.conf.update( backend_url='redis://localhost:6379', broker_url='redis://localhost:6379', result_backend='redis://localhost:6379', task_serializer='json', accept_content=['pickle', 'json'], ) @app.task(name='task1', serializer='pickle') def task1(*args, **kwargs): print('Start', args, kwargs) time.sleep(30) print('Finish', args, kwargs) def main(): task1.delay({1, 2, 3}) # set is not JSON serializable. # inspect queue items inspected = app.control.inspect() active_tasks = inspected.active() print(active_tasks) if __name__ == '__main__': main()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">time</span> <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-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'example'</span>) <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-en">update</span>( <span class="pl-s1">backend_url</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost:6379'</span>, <span class="pl-s1">broker_url</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost:6379'</span>, <span class="pl-s1">result_backend</span><span class="pl-c1">=</span><span class="pl-s">'redis://localhost:6379'</span>, <span class="pl-s1">task_serializer</span><span class="pl-c1">=</span><span class="pl-s">'json'</span>, <span class="pl-s1">accept_content</span><span class="pl-c1">=</span>[<span class="pl-s">'pickle'</span>, <span class="pl-s">'json'</span>], ) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'task1'</span>, <span class="pl-s1">serializer</span><span class="pl-c1">=</span><span class="pl-s">'pickle'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">task1</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): <span class="pl-en">print</span>(<span class="pl-s">'Start'</span>, <span class="pl-s1">args</span>, <span class="pl-s1">kwargs</span>) <span class="pl-s1">time</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">30</span>) <span class="pl-en">print</span>(<span class="pl-s">'Finish'</span>, <span class="pl-s1">args</span>, <span class="pl-s1">kwargs</span>) <span class="pl-k">def</span> <span class="pl-en">main</span>(): <span class="pl-s1">task1</span>.<span class="pl-en">delay</span>({<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>}) <span class="pl-c"># set is not JSON serializable.</span> <span class="pl-c"># inspect queue items</span> <span class="pl-s1">inspected</span> <span class="pl-c1">=</span> <span class="pl-s1">app</span>.<span class="pl-s1">control</span>.<span class="pl-en">inspect</span>() <span class="pl-s1">active_tasks</span> <span class="pl-c1">=</span> <span class="pl-s1">inspected</span>.<span class="pl-en">active</span>() <span class="pl-en">print</span>(<span class="pl-s1">active_tasks</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">See also following discussion: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="877298707" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6757" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/6757/hovercard?comment_id=833386042&amp;comment_type=issue_comment" href="https://github.com/celery/celery/pull/6757#issuecomment-833386042">#6757 (comment)</a></p> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Control/Inspect serialization should support custom per-task serializer</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Control/Inspect serialization is driven only by <code class="notranslate">task_serializer</code> configuration.</p>
1
<p dir="auto">At the moment, index signature parameter type must be string or number.<br> Now that Typescript supports String literal types, it would be great if it could be used for index signature parameter type as well.</p> <p dir="auto">For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type MyString = &quot;a&quot; | &quot;b&quot; | &quot;c&quot;; var MyMap:{[id:MyString] : number} = {}; MyMap[&quot;a&quot;] = 1; // valid MyMap[&quot;asd&quot;] = 2; //invalid"><pre class="notranslate"><code class="notranslate">type MyString = "a" | "b" | "c"; var MyMap:{[id:MyString] : number} = {}; MyMap["a"] = 1; // valid MyMap["asd"] = 2; //invalid </code></pre></div> <hr> <p dir="auto">It would be also useful if it could also work with Enums. For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enum MyEnum { a = &lt;any&gt;&quot;a&quot;, b = &lt;any&gt;&quot;b&quot;, c = &lt;any&gt;&quot;c&quot;, d = &lt;any&gt;&quot;d&quot;, } var MyMap:{[id:MyEnum] : number} = {}; MyMap[MyEnum.a] = 1; // valid MyMap[&quot;asd&quot;] = 2; //invalid var MyMap:{[id:MyEnum] : number} = { [MyEnum.a]:1, // valid &quot;asdas&quot;:2, //invalid }"><pre class="notranslate"><code class="notranslate">enum MyEnum { a = &lt;any&gt;"a", b = &lt;any&gt;"b", c = &lt;any&gt;"c", d = &lt;any&gt;"d", } var MyMap:{[id:MyEnum] : number} = {}; MyMap[MyEnum.a] = 1; // valid MyMap["asd"] = 2; //invalid var MyMap:{[id:MyEnum] : number} = { [MyEnum.a]:1, // valid "asdas":2, //invalid } </code></pre></div>
<p dir="auto">Typescript requires that enums have number value types (hopefully soon, this will also include string value types).</p> <p dir="auto">Attempting to use an enum as a key type for a hash results in this error: "Index signature parameter type much be 'string' or 'number' ".-- An enum is actually a number type.-- This shouldn't be an error.</p> <p dir="auto">Enums are a convenient way of defining the domain of number and string value types, in cases such as</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export interface UserInterfaceColors { [index: UserInterfaceElement]: ColorInfo; } export interface ColorInfo { r: number; g: number; b: number; a: number; } export enum UserInterfaceElement { ActiveTitleBar = 0, InactiveTitleBar = 1, }"><pre class="notranslate"><code class="notranslate">export interface UserInterfaceColors { [index: UserInterfaceElement]: ColorInfo; } export interface ColorInfo { r: number; g: number; b: number; a: number; } export enum UserInterfaceElement { ActiveTitleBar = 0, InactiveTitleBar = 1, } </code></pre></div>
1
<p dir="auto">Hello community and devs of PowerToys,<br> this is my first time here and I was ok with these tools until it stopped working and an error message appears when I try to start it.<br> I followed istructions and copied the message below.</p> <p dir="auto">You can find the log <a href="https://drive.google.com/file/d/1MRKtEa1osM7ppUNjspOCOTb6on_Ajn8o/view?usp=sharing" rel="nofollow">here</a></p> <p dir="auto">Error Message:</p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/05/2020 11:06:02<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">So far I really like Atom 1.0 - it's got a long way to go, but it will get there. We needed an editor like this.</p> <p dir="auto">Anyway: the only thing bothering me was how quickly it installed itself (Windows 8.1, 64 bit). Even though that might sound like a _good_¨thing, it isn't. When I double-click the installer I get no options, no information whatsoever. Only a screen "Atom is installing and will launch when ready." For some people this might be the best approach, but for a whole lot of others it isn't.</p> <p dir="auto">Some options would be great. I am thinking: file association, installation directory, packages to include with installation (I for one don't need all packages that are included on default install) and so on. I could understand that file association and package control aren't included (though I'd really like that) but why not the ability to choose your own installation directory?</p>
<p dir="auto">So far I really like Atom 1.0 - it's got a long way to go, but it will get there. We needed an editor like this.</p> <p dir="auto">Anyway: the only thing bothering me was how quickly it installed itself (Windows 8.1, 64 bit). Even though that might sound like a _good_¨thing, it isn't. When I double-click the installer I get no options, no information whatsoever. Only a screen "Atom is installing and will launch when ready." For some people this might be the best approach, but for a whole lot of others it isn't.</p> <p dir="auto">Some options would be great. I am thinking: file association, installation directory, packages to include with installation (I for one don't need all packages that are included on default install) and so on. I could understand that file association and package control aren't included (though I'd really like that) but why not the ability to choose your own installation directory?</p>
1
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xfix/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xfix">@xfix</a></p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.2.1</li> <li><strong>Node version:</strong> 5.1.0</li> <li><strong>npm version:</strong> 3.5.0</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--presets es2015"><pre class="notranslate"><code class="notranslate">--presets es2015 </code></pre></div> <h3 dir="auto">Input code</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let results = [] for (let i = 0; i &lt; 3; i++) { switch ('x') { case 'x': const x = i results.push(() =&gt; x) } } for (const result of results) { console.log(result()) }"><pre class="notranslate"><code class="notranslate">let results = [] for (let i = 0; i &lt; 3; i++) { switch ('x') { case 'x': const x = i results.push(() =&gt; x) } } for (const result of results) { console.log(result()) } </code></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">When I declare a block scoped variable in a switch block, it's not recognized as a block scoped variable for purpose of functions, even when it's declared inside a for loop. This example prints 2, 2, 2, when it should print 0, 1, 2.</p> <p dir="auto">(I outright apologize if this is a duplicate, finding duplicates with that bug tracker is annoying)</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> I am getting following error. Can't figure out solution. I found many post which looks duplicate here but, nothing work.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules@babel\helper-plugin-utils\lib\index.js throw Object.assign(err, { Error: Requires Babel &quot;^7.0.0-0&quot;, but was loaded with &quot;6.26.3&quot;. If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention &quot;@babel/core&quot; or &quot;babel-core&quot; to see what is calling Babel. "><pre class="notranslate"><code class="notranslate">node_modules@babel\helper-plugin-utils\lib\index.js throw Object.assign(err, { Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel. </code></pre></div> <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;dependencies&quot;: { &quot;express&quot;: &quot;^4.16.4&quot;, &quot;isomorphic-fetch&quot;: &quot;^2.2.1&quot;, &quot;react&quot;: &quot;^16.6.3&quot;, &quot;react-dom&quot;: &quot;^16.6.3&quot;, &quot;react-redux&quot;: &quot;^5.1.1&quot;, &quot;react-router&quot;: &quot;^4.3.1&quot;, &quot;react-router-config&quot;: &quot;^1.0.0-beta.4&quot;, &quot;react-router-dom&quot;: &quot;^4.3.1&quot;, &quot;redux&quot;: &quot;^4.0.1&quot;, &quot;redux-thunk&quot;: &quot;^2.3.0&quot; }, &quot;devDependencies&quot;: { &quot;@babel/cli&quot;: &quot;^7.2.3&quot;, &quot;@babel/core&quot;: &quot;^7.2.2&quot;, &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.2.0&quot;, &quot;@babel/plugin-transform-runtime&quot;: &quot;^7.2.0&quot;, &quot;@babel/preset-env&quot;: &quot;^7.3.1&quot;, &quot;@babel/preset-react&quot;: &quot;^7.0.0&quot;, &quot;babel-core&quot;: &quot;^7.0.0-bridge.0&quot;, &quot;babel-jest&quot;: &quot;^24.0.0&quot;, &quot;babel-loader&quot;: &quot;^7.1.5&quot;, &quot;css-loader&quot;: &quot;^1.0.1&quot;, &quot;cypress&quot;: &quot;^3.1.3&quot;, &quot;enzyme&quot;: &quot;^3.8.0&quot;, &quot;enzyme-adapter-react-16&quot;: &quot;^1.7.1&quot;, &quot;enzyme-to-json&quot;: &quot;^3.3.5&quot;, &quot;extract-text-webpack-plugin&quot;: &quot;^4.0.0-beta.0&quot;, &quot;html-webpack-plugin&quot;: &quot;^3.2.0&quot;, &quot;jest&quot;: &quot;^24.0.0&quot;, &quot;jest-fetch-mock&quot;: &quot;^2.0.1&quot;, &quot;json-loader&quot;: &quot;^0.5.7&quot;, &quot;nodemon&quot;: &quot;^1.18.9&quot;, &quot;npm-run-all&quot;: &quot;^4.1.5&quot;, &quot;open&quot;: &quot;0.0.5&quot;, &quot;redux-devtools&quot;: &quot;^3.4.2&quot;, &quot;redux-mock-store&quot;: &quot;^1.5.3&quot;, &quot;regenerator-runtime&quot;: &quot;^0.13.1&quot;, &quot;style-loader&quot;: &quot;^0.23.1&quot;, &quot;uglifyjs-webpack-plugin&quot;: &quot;^2.0.1&quot;, &quot;webpack&quot;: &quot;^4.26.1&quot;, &quot;webpack-cli&quot;: &quot;^3.1.2&quot;, &quot;webpack-dev-server&quot;: &quot;^3.1.14&quot;, &quot;webpack-node-externals&quot;: &quot;^1.7.2&quot; }, &quot;babel&quot;: { &quot;presets&quot;: [ &quot;@babel/preset-env&quot;, &quot;@babel/preset-react&quot; ], &quot;plugins&quot;: [ &quot;@babel/plugin-transform-runtime&quot;, &quot;@babel/plugin-proposal-class-properties&quot; ] }"><pre class="notranslate"><span class="pl-s">"dependencies"</span>: <span class="pl-kos">{</span> <span class="pl-s">"express"</span>: <span class="pl-s">"^4.16.4"</span><span class="pl-kos">,</span> <span class="pl-s">"isomorphic-fetch"</span>: <span class="pl-s">"^2.2.1"</span><span class="pl-kos">,</span> <span class="pl-s">"react"</span>: <span class="pl-s">"^16.6.3"</span><span class="pl-kos">,</span> <span class="pl-s">"react-dom"</span>: <span class="pl-s">"^16.6.3"</span><span class="pl-kos">,</span> <span class="pl-s">"react-redux"</span>: <span class="pl-s">"^5.1.1"</span><span class="pl-kos">,</span> <span class="pl-s">"react-router"</span>: <span class="pl-s">"^4.3.1"</span><span class="pl-kos">,</span> <span class="pl-s">"react-router-config"</span>: <span class="pl-s">"^1.0.0-beta.4"</span><span class="pl-kos">,</span> <span class="pl-s">"react-router-dom"</span>: <span class="pl-s">"^4.3.1"</span><span class="pl-kos">,</span> <span class="pl-s">"redux"</span>: <span class="pl-s">"^4.0.1"</span><span class="pl-kos">,</span> <span class="pl-s">"redux-thunk"</span>: <span class="pl-s">"^2.3.0"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"devDependencies"</span>: <span class="pl-kos">{</span> <span class="pl-s">"@babel/cli"</span>: <span class="pl-s">"^7.2.3"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/core"</span>: <span class="pl-s">"^7.2.2"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/plugin-proposal-class-properties"</span>: <span class="pl-s">"^7.2.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/plugin-transform-runtime"</span>: <span class="pl-s">"^7.2.0"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-env"</span>: <span class="pl-s">"^7.3.1"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-react"</span>: <span class="pl-s">"^7.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-core"</span>: <span class="pl-s">"^7.0.0-bridge.0"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-jest"</span>: <span class="pl-s">"^24.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-loader"</span>: <span class="pl-s">"^7.1.5"</span><span class="pl-kos">,</span> <span class="pl-s">"css-loader"</span>: <span class="pl-s">"^1.0.1"</span><span class="pl-kos">,</span> <span class="pl-s">"cypress"</span>: <span class="pl-s">"^3.1.3"</span><span class="pl-kos">,</span> <span class="pl-s">"enzyme"</span>: <span class="pl-s">"^3.8.0"</span><span class="pl-kos">,</span> <span class="pl-s">"enzyme-adapter-react-16"</span>: <span class="pl-s">"^1.7.1"</span><span class="pl-kos">,</span> <span class="pl-s">"enzyme-to-json"</span>: <span class="pl-s">"^3.3.5"</span><span class="pl-kos">,</span> <span class="pl-s">"extract-text-webpack-plugin"</span>: <span class="pl-s">"^4.0.0-beta.0"</span><span class="pl-kos">,</span> <span class="pl-s">"html-webpack-plugin"</span>: <span class="pl-s">"^3.2.0"</span><span class="pl-kos">,</span> <span class="pl-s">"jest"</span>: <span class="pl-s">"^24.0.0"</span><span class="pl-kos">,</span> <span class="pl-s">"jest-fetch-mock"</span>: <span class="pl-s">"^2.0.1"</span><span class="pl-kos">,</span> <span class="pl-s">"json-loader"</span>: <span class="pl-s">"^0.5.7"</span><span class="pl-kos">,</span> <span class="pl-s">"nodemon"</span>: <span class="pl-s">"^1.18.9"</span><span class="pl-kos">,</span> <span class="pl-s">"npm-run-all"</span>: <span class="pl-s">"^4.1.5"</span><span class="pl-kos">,</span> <span class="pl-s">"open"</span>: <span class="pl-s">"0.0.5"</span><span class="pl-kos">,</span> <span class="pl-s">"redux-devtools"</span>: <span class="pl-s">"^3.4.2"</span><span class="pl-kos">,</span> <span class="pl-s">"redux-mock-store"</span>: <span class="pl-s">"^1.5.3"</span><span class="pl-kos">,</span> <span class="pl-s">"regenerator-runtime"</span>: <span class="pl-s">"^0.13.1"</span><span class="pl-kos">,</span> <span class="pl-s">"style-loader"</span>: <span class="pl-s">"^0.23.1"</span><span class="pl-kos">,</span> <span class="pl-s">"uglifyjs-webpack-plugin"</span>: <span class="pl-s">"^2.0.1"</span><span class="pl-kos">,</span> <span class="pl-s">"webpack"</span>: <span class="pl-s">"^4.26.1"</span><span class="pl-kos">,</span> <span class="pl-s">"webpack-cli"</span>: <span class="pl-s">"^3.1.2"</span><span class="pl-kos">,</span> <span class="pl-s">"webpack-dev-server"</span>: <span class="pl-s">"^3.1.14"</span><span class="pl-kos">,</span> <span class="pl-s">"webpack-node-externals"</span>: <span class="pl-s">"^1.7.2"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"babel"</span>: <span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span> <span class="pl-s">"@babel/preset-env"</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-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-s">"@babel/plugin-transform-runtime"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/plugin-proposal-class-properties"</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): [&gt; v7]</li> <li>Node/npm version: [Node 8.12.0/npm 6.4.1]</li> <li>OS: [Windows 10]</li> </ul> <p dir="auto"><a href="https://stackoverflow.com/questions/54400675/something-in-your-build-process-is-loading-the-wrong-version" rel="nofollow">Stackoverflow</a></p>
0
<h3 dir="auto">Vue.js version</h3> <p dir="auto">2.0.0-rc.4</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="https://jsbin.com/rifuxuxuxa/1/edit?js,console,output" rel="nofollow">https://jsbin.com/rifuxuxuxa/1/edit?js,console,output</a></p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>After hitting 'Run with JS', click the 'click here' button</li> <li>Wait till <code class="notranslate">this.show</code> is <code class="notranslate">true</code>(8 seconds), click the 'click here' button again</li> </ol> <h3 dir="auto">What is Expected?</h3> <p dir="auto">In step 1, prints '2333'<br> In step 2, prints '2333'</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">In step 1, prints '2333'<br> In step 2, an error occurs 'o.fn is not a function'</p> <p dir="auto">This can only be reproduced when there is a <code class="notranslate">v-show</code> element around. I have tried to put the <code class="notranslate">v-show</code> element (in this case, the 'balabalabala' span) before the <code class="notranslate">slot</code>, after the <code class="notranslate">slot</code>, outside the <code class="notranslate">div</code>, and they all report the same error after <code class="notranslate">this.show</code> is set to <code class="notranslate">true</code>.<br> This may have something to do with <a href="https://github.com/vuejs/vue/commit/e6c5f21f86c3d2de4821c99566dba364c18b4c19#diff-607630de25f071aeb86d9962152e26bdR132">this</a>.</p>
<p dir="auto">I reported the <a href="https://github.com/vuejs/vue/issues/3518" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/3518/hovercard">same issue for <code class="notranslate">v-if</code></a> which got fixed in <code class="notranslate">vue@2.0.0-rc.4</code>. However, with this version the same code using <code class="notranslate">v-show</code> – which previously worked perfectly – does not work anymore.</p> <h3 dir="auto">Vue.js version</h3> <p dir="auto">2.0.0-rc.4</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="http://codepen.io/analog-nico/pen/KgPKRq" rel="nofollow">http://codepen.io/analog-nico/pen/KgPKRq</a></p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>Click the link "Open popup using v-show"</li> <li>A badly designed popup opens</li> <li>Click the "Close" link</li> </ol> <h3 dir="auto">What is Expected?</h3> <ul dir="auto"> <li>The popup closes successfully</li> </ul> <h3 dir="auto">What is actually happening?</h3> <ul dir="auto"> <li>Vue fails to call an internal function and throws: <code class="notranslate">TypeError: o.fn is not a function. (In 'o.fn(ev)', 'o.fn' is an instance of Object)</code></li> <li>The <code class="notranslate">closePopupUsingVShow</code> function attached to the "Close" link's click event never gets called.</li> <li>The popup does not close.</li> </ul> <p dir="auto">For reference the codepen contains the exact same implementation of the popup with the only difference that it uses <code class="notranslate">v-if</code> instead of <code class="notranslate">v-show</code> to show/hide the popup. <code class="notranslate">v-if</code> works perfectly.</p>
1
<p dir="auto"><strong>Description</strong></p> <p dir="auto">I'd like to propose a few steps to improve the validation constraints:</p> <ul dir="auto"> <li>Deprecate empty strings (<code class="notranslate">""</code>) currently happily passing in string constraints (e.g. <code class="notranslate">Email</code>) <ul dir="auto"> <li><a href="https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Email.html" rel="nofollow">https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/Email.html</a></li> </ul> </li> <li>Deprecate non string values in <code class="notranslate">NotBlank</code> / <code class="notranslate">Blank</code> and 'whitespaced' strings passing (<code class="notranslate">" "</code>) <ul dir="auto"> <li><a href="https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/NotBlank.html" rel="nofollow">https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/NotBlank.html</a></li> <li>allow for null (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="338907755" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/27876" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/27876/hovercard" href="https://github.com/symfony/symfony/issues/27876">#27876</a>)</li> </ul> </li> <li>Consider <code class="notranslate">NotEmpty</code> / <code class="notranslate">Empty</code> as the current <code class="notranslate">NotBlank</code> / <code class="notranslate">Blank</code> constraints <ul dir="auto"> <li><a href="https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/NotEmpty.html" rel="nofollow">https://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validation/constraints/NotEmpty.html</a></li> <li>I dont think we should add these (but favor specific constraints) as <code class="notranslate">empty</code> in PHP is different as described above (ints, bools, etc). Not sure we should follow either one :) thus possible confusion</li> </ul> </li> </ul> <p dir="auto">If this happens we'd do simply</p> <ul dir="auto"> <li><code class="notranslate">@Email</code></li> <li><code class="notranslate">@NotNull @Email</code></li> <li><code class="notranslate">@NotNull @Length(min=3) @NotBlank</code></li> <li><code class="notranslate">@NotNull @NotBlank</code></li> <li><code class="notranslate">@Type(array) @Count(3)</code></li> </ul> <p dir="auto">Thoughts?</p>
<p dir="auto"><strong>Description</strong><br> In most validators, there's a failsafe mecanism that prevent the validator from validating if it's a <code class="notranslate">null</code> value, as there's a validator for that (<code class="notranslate">NotNull</code>). I think <code class="notranslate">NotBlank</code> shouldn't bother on <code class="notranslate">null</code> values, especially as <code class="notranslate">NotBlank</code> and <code class="notranslate">NotNull</code> are used together to prevent <code class="notranslate">null</code> values too.</p> <p dir="auto">Not really a feature request, but not really a bug too... more like a RFC but for all versions. But I guess this would be a BC break though. :/ So maybe add a deprecated on the validator if it's a null value or something, and remove the <code class="notranslate">null</code> invalidation from the <code class="notranslate">NotBlank</code> on 5.0 ?</p> <p dir="auto">Currently, we need to reimplement the validator just to skip <code class="notranslate">null</code> values...</p> <p dir="auto"><strong>Possible Solution</strong><br> Either deprecate the validation on <code class="notranslate">null</code> value in <code class="notranslate">NotBlank</code>, or do as in most validators, (if <code class="notranslate">null</code> value, then skip). But as I mentionned, this would probably be a bc break.</p>
1
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1880" rel="nofollow">http://projects.scipy.org/numpy/ticket/1880</a> on 2011-06-26 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to unknown.</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="====================================================================== FAIL: test_timedelta_scalar_construction (test_datetime.TestDateTime) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/nwagner/local/lib64/python2.6/site-packages/numpy/core/tests/test_datetime.py&quot;, line 189, in test_timedelta_scalar_construction assert_equal(str(np.timedelta64(3, 's')), '3 seconds') File &quot;/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py&quot;, line 313, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: '%lld seconds' DESIRED: '3 seconds'"><pre class="notranslate"><code class="notranslate">====================================================================== FAIL: test_timedelta_scalar_construction (test_datetime.TestDateTime) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/nwagner/local/lib64/python2.6/site-packages/numpy/core/tests/test_datetime.py", line 189, in test_timedelta_scalar_construction assert_equal(str(np.timedelta64(3, 's')), '3 seconds') File "/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py", line 313, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: '%lld seconds' DESIRED: '3 seconds' </code></pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1887" rel="nofollow">http://projects.scipy.org/numpy/ticket/1887</a> on 2011-06-29 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dhomeier/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dhomeier">@dhomeier</a>, assigned to unknown.</em></p> <p dir="auto">With Python versions 2.4-2.6, the output of np.timedelta only produces the format string since (probably) merging the datetime branch, like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.__version__ '2.0.0.dev-f7c16d7' &gt;&gt;&gt; np.timedelta64(3) numpy.timedelta64(%lld,'generic') &gt;&gt;&gt; str(np.timedelta64(3, 's')) '%lld seconds'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.__version__ '2.0.0.dev-f7c16d7' &gt;&gt;&gt; np.timedelta64(3) numpy.timedelta64(%lld,'generic') &gt;&gt;&gt; str(np.timedelta64(3, 's')) '%lld seconds' </code></pre></div> <p dir="auto">or in the most recent version</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.__version__ '2.0.0.dev-192ac74' &gt;&gt;&gt; np.timedelta64(3) numpy.timedelta64(%lld)"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.__version__ '2.0.0.dev-192ac74' &gt;&gt;&gt; np.timedelta64(3) numpy.timedelta64(%lld) </code></pre></div> <p dir="auto">making the corresponding tests fail, whereas with 2.7 and 3.2 the intended output is produced:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.timedelta64(3) numpy.timedelta64(3) &gt;&gt;&gt; str(np.timedelta64(3, 's')) '3 seconds'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.timedelta64(3) numpy.timedelta64(3) &gt;&gt;&gt; str(np.timedelta64(3, 's')) '3 seconds' </code></pre></div> <p dir="auto">(Tested on MacOS X 10.5/ppc and 10.6/x86_64)</p>
1
<p dir="auto">This is using a fresh install of Anaconda in an Ubuntu 15.10 based Google Cloud VM. At first glance it seemed to relate to difficulties getting console encoding (see <code class="notranslate">from pandas.core.format import detect_console_encoding</code> below)?</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas --------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-1-f0ee645c240d&gt; in &lt;module&gt;() ----&gt; 1 import pandas as pd 2 import dask.dataframe as dd 3 from dask.diagostics import ProgressBar as pb /home/michael/anaconda3/lib/python3.5/site-packages/pandas/__init__.py in &lt;module&gt;() 40 41 # let init-time option registration happen ---&gt; 42 import pandas.core.config_init 43 44 from pandas.core.api import * /home/michael/anaconda3/lib/python3.5/site-packages/pandas/core/config_init.py in &lt;module&gt;() 15 is_instance_factory, is_one_of_factory, 16 get_default_val) ---&gt; 17 from pandas.core.format import detect_console_encoding 18 19 /home/michael/anaconda3/lib/python3.5/site-packages/pandas/core/format.py in &lt;module&gt;() 8 from pandas.core.base import PandasObject 9 from pandas.core.common import adjoin, notnull ---&gt; 10 from pandas.core.index import Index, MultiIndex, _ensure_index 11 from pandas import compat 12 from pandas.compat import(StringIO, lzip, range, map, zip, reduce, u, /home/michael/anaconda3/lib/python3.5/site-packages/pandas/core/index.py in &lt;module&gt;() 29 from pandas.core.strings import StringAccessorMixin 30 from pandas.core.config import get_option ---&gt; 31 from pandas.io.common import PerformanceWarning 32 33 /home/michael/anaconda3/lib/python3.5/site-packages/pandas/io/common.py in &lt;module&gt;() 66 67 try: ---&gt; 68 from boto.s3 import key 69 class BotoFileLikeReader(key.Key): 70 &quot;&quot;&quot;boto Key modified to be more file-like /home/michael/anaconda3/lib/python3.5/site-packages/boto/__init__.py in &lt;module&gt;() 1214 return storage_uri(uri_str) 1215 -&gt; 1216 boto.plugin.load_plugins(config) /home/michael/anaconda3/lib/python3.5/site-packages/boto/plugin.py in load_plugins(config) 90 return 91 directory = config.get('Plugin', 'plugin_directory') ---&gt; 92 for file in glob.glob(os.path.join(directory, '*.py')): 93 _import_module(file) /home/michael/anaconda3/lib/python3.5/posixpath.py in join(a, *p) 87 path += sep + b 88 except (TypeError, AttributeError, BytesWarning): ---&gt; 89 genericpath._check_arg_types('join', a, *p) 90 raise 91 return path /home/michael/anaconda3/lib/python3.5/genericpath.py in _check_arg_types(funcname, *args) 141 else: 142 raise TypeError('%s() argument must be str or bytes, not %r' % --&gt; 143 (funcname, s.__class__.__name__)) from None 144 if hasstr and hasbytes: 145 raise TypeError(&quot;Can't mix strings and bytes in path components&quot;) from None TypeError: join() argument must be str or bytes, not 'NoneType'"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</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">TypeError</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-s1">f0ee645c240d</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">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-c1">2</span> <span class="pl-k">import</span> <span class="pl-s1">dask</span>.<span class="pl-s1">dataframe</span> <span class="pl-k">as</span> <span class="pl-s1">dd</span> <span class="pl-c1">3</span> <span class="pl-k">from</span> <span class="pl-s1">dask</span>.<span class="pl-s1">diagostics</span> <span class="pl-k">import</span> <span class="pl-v">ProgressBar</span> <span class="pl-k">as</span> <span class="pl-s1">pb</span> <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">michael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</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">5</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">pandas</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-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">40</span> <span class="pl-c1">41</span> <span class="pl-c"># let init-time option registration happen</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">42</span> <span class="pl-s1">import</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">config_init</span> <span class="pl-c1">43</span> <span class="pl-c1">44</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">api</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">michael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</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">5</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">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">config_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">15</span> <span class="pl-s1">is_instance_factory</span>, <span class="pl-s1">is_one_of_factory</span>, <span class="pl-c1">16</span> <span class="pl-s1">get_default_val</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">17</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">format</span> <span class="pl-k">import</span> <span class="pl-s1">detect_console_encoding</span> <span class="pl-c1">18</span> <span class="pl-c1">19</span> <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">michael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</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">5</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">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">format</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">8</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">base</span> <span class="pl-k">import</span> <span class="pl-v">PandasObject</span> <span class="pl-c1">9</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">common</span> <span class="pl-k">import</span> <span class="pl-s1">adjoin</span>, <span class="pl-s1">notnull</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">10</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">index</span> <span class="pl-k">import</span> <span class="pl-v">Index</span>, <span class="pl-v">MultiIndex</span>, <span class="pl-s1">_ensure_index</span> <span class="pl-c1">11</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span> <span class="pl-k">import</span> <span class="pl-s1">compat</span> <span class="pl-c1">12</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">compat</span> <span class="pl-k">import</span>(<span class="pl-v">StringIO</span>, <span class="pl-s1">lzip</span>, <span class="pl-s1">range</span>, <span class="pl-s1">map</span>, <span class="pl-s1">zip</span>, <span class="pl-s1">reduce</span>, <span class="pl-s1">u</span>, <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">michael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</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">5</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">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">py</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">29</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">strings</span> <span class="pl-k">import</span> <span class="pl-v">StringAccessorMixin</span> <span class="pl-c1">30</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">config</span> <span class="pl-k">import</span> <span class="pl-s1">get_option</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">31</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">io</span>.<span class="pl-s1">common</span> <span class="pl-k">import</span> <span class="pl-v">PerformanceWarning</span> <span class="pl-c1">32</span> <span class="pl-c1">33</span> <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">michael</span><span class="pl-c1">/</span><span class="pl-s1">anaconda3</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">5</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">pandas</span><span class="pl-c1">/</span><span class="pl-s1">io</span><span class="pl-c1">/</span><span class="pl-s1">common</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">66</span> <span class="pl-c1">67</span> <span class="pl-k">try</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">68</span> <span class="pl-k">from</span> <span class="pl-s1">boto</span>.<span class="pl-s1">s3</span> <span class="pl-k">import</span> <span class="pl-s1">key</span> <span class="pl-c1">69</span> <span class="pl-k">class</span> <span class="pl-v">BotoFileLikeReader</span>(<span class="pl-s1">key</span>.<span class="pl-v">Key</span>): <span class="pl-c1">70</span> """boto Key modified to be more file-like /home/michael/anaconda3/lib/python3.5/site-packages/boto/__init__.py in &lt;module&gt;() 1214 return storage_uri(uri_str) 1215 -&gt; 1216 boto.plugin.load_plugins(config) /home/michael/anaconda3/lib/python3.5/site-packages/boto/plugin.py in load_plugins(config) 90 return 91 directory = config.get('Plugin', 'plugin_directory') ---&gt; 92 for file in glob.glob(os.path.join(directory, '*.py')): 93 _import_module(file) /home/michael/anaconda3/lib/python3.5/posixpath.py in join(a, *p) 87 path += sep + b 88 except (TypeError, AttributeError, BytesWarning): ---&gt; 89 genericpath._check_arg_types('join', a, *p) 90 raise 91 return path /home/michael/anaconda3/lib/python3.5/genericpath.py in _check_arg_types(funcname, *args) 141 else: 142 raise TypeError('%s() argument must be str or bytes, not %r' % --&gt; 143 (funcname, s.__class__.__name__)) from None 144 if hasstr and hasbytes: 145 raise TypeError("Can't mix strings and bytes in path components") <span class="pl-k">from</span> <span class="pl-c1">None</span> <span class="pl-v">TypeError</span>: <span class="pl-en">join</span>() <span class="pl-s1">argument</span> <span class="pl-s1">must</span> <span class="pl-s1">be</span> <span class="pl-s1">str</span> <span class="pl-c1">or</span> <span class="pl-s1">bytes</span>, <span class="pl-c1">not</span> <span class="pl-s">'NoneType'</span></pre></div>
<p dir="auto">When using the <code class="notranslate">read_gbq()</code> function on a BigQuery table, incorrect results are returned.</p> <p dir="auto">I compare the output from <code class="notranslate">read_gbq()</code> to that of a CSV export from BigQuery directly. Interestingly, there are the same number of rows in each output - however, there are many duplicates in the <code class="notranslate">read_gbq()</code> output.</p> <p dir="auto">I'm using Pandas '0.13.0rc1-125-g4952858' on a Mac 10.9 using Python 2.7. Numpy '1.8.0'.</p> <p dir="auto">The code I execute to load the data in pandas:<br> <code class="notranslate">churn_data = gbq.read_gbq(train_query, project_id = projectid)</code></p> <p dir="auto">I can't share the underlying data. What additional data/info would be useful for root causing?</p> <p dir="auto">The output data is ~400k lines.</p>
0
<p dir="auto">It would be nice to have a busy indicator component. Almost every site I build today uses ajax in some way, usually to handle form submissions so I have a constant need for these indicators.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/085593e5d469a4e7d6e5777c3f01c54c2f0849ee5ee703c86226c9645a4e4ea8/68747470733a2f2f7261772e6769746875622e636f6d2f61646f62652f627261636b6574732f6d61737465722f7372632f7374796c65732f696d616765732f7370696e6e65725f6c617267655f7370726974657333362e706e67"><img src="https://camo.githubusercontent.com/085593e5d469a4e7d6e5777c3f01c54c2f0849ee5ee703c86226c9645a4e4ea8/68747470733a2f2f7261772e6769746875622e636f6d2f61646f62652f627261636b6574732f6d61737465722f7372632f7374796c65732f696d616765732f7370696e6e65725f6c617267655f7370726974657333362e706e67" alt="" data-canonical-src="https://raw.github.com/adobe/brackets/master/src/styles/images/spinner_large_sprites36.png" style="max-width: 100%;"></a></p>
<p dir="auto">Since v3.0 is on the horizon, perhaps <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3010395" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/1371" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/1371/hovercard" href="https://github.com/twbs/bootstrap/issues/1371">#1371</a> could be revisited? Even just including a GIF would be very convenient.</p>
1
<p dir="auto"><a href="https://github.com/kevin1024/pytest-httpbin">https://github.com/kevin1024/pytest-httpbin</a></p>
<p dir="auto"><a href="https://github.com/kevin1024/pytest-httpbin">https://github.com/kevin1024/pytest-httpbin</a></p>
1
<p dir="auto">Auto generated links are broken -- all google links points to Not Found page.</p> <p dir="auto">Example link from google:<br> <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_rel.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_rel.html</a></p> <p dir="auto">working link:<br> <a href="https://docs.scipy.org/doc/scipy/reference/reference/generated/scipy.stats.ttest_rel.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/reference/generated/scipy.stats.ttest_rel.html</a><br> doubled part '/reference'</p>
<p dir="auto">The new theme seems to have introduced a duplicate <code class="notranslate">reference</code> in the URL, e.g.,</p> <ul dir="auto"> <li>Before: <a href="https://docs.scipy.org/doc/scipy/reference/linalg.interpolative.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/linalg.interpolative.html</a></li> <li>After: <a href="https://docs.scipy.org/doc/scipy/reference/reference/linalg.interpolative.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/reference/linalg.interpolative.html</a></li> </ul> <p dir="auto">The effect was that today all SciPy search engine results I found were broken.</p> <p dir="auto">The search engines will update eventually. But the double <code class="notranslate">/reference/reference/</code> in the url is unnecessary, so it might be better removed?</p>
1
<p dir="auto">Getting script error while define more than on complex property in <strong><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/input/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/input">@input</a>()</strong> or</p> <p dir="auto">How to define complex property. Please find plnkr link.</p> <p dir="auto"><a href="https://plnkr.co/edit/NcvjuqZvo6jilmrdeZ1R?p=preview" rel="nofollow">https://plnkr.co/edit/NcvjuqZvo6jilmrdeZ1R?p=preview</a></p> <p dir="auto">`VM1920 zone.js:420 Unhandled Promise rejection: Template parse errors:<br> Can't bind to 'content.value' since it isn't a known property of 'custom-div'.</p> <ol dir="auto"> <li> <p dir="auto">If 'custom-div' is an Angular component and it has 'content.value' input, then verify that it is part of this module.</p> </li> <li> <p dir="auto">If 'custom-div' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message.<br> ("</p> <p dir="auto">&lt;custom-div [ERROR -&gt;][content.value] = "content"&gt;<br> "): App@5:17 ; Zone: ; Task: Promise.then ; Value: SyntaxError {__zone_symbol__error: Error: Template parse errors:<br> Can't bind to 'content.value' since it isn't a known property of 'cust…, _nativeError: ZoneAwareError, __zone_symbol__stack: "Error: Template parse errors:↵Can't bind to 'conte…ps://unpkg.com/zone.js@0.7.6/dist/zone.js:433:35)", __zone_symbol__message: "Template parse errors:↵Can't bind to 'content.valu…t.value] = "content"&gt;↵ "): App@5:17"} Error: Template parse errors:<br> Can't bind to 'content.value' since it isn't a known property of 'custom-div'.</p> </li> <li> <p dir="auto">If 'custom-div' is an Angular component and it has 'content.value' input, then verify that it is part of this module.</p> </li> <li> <p dir="auto">If 'custom-div' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message.<br> ("</p> <p dir="auto">&lt;custom-div [ERROR -&gt;][content.value] = "content"&gt;<br> "): App@5:17<br> at SyntaxError.ZoneAwareError (<a href="https://unpkg.com/zone.js@0.7.6/dist/zone.js:811:33" rel="nofollow">https://unpkg.com/zone.js@0.7.6/dist/zone.js:811:33</a>)<br> at SyntaxError.BaseError [as constructor] (<a href="https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:1592:20" rel="nofollow">https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:1592:20</a>)<br> at new SyntaxError (<a href="https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:1795:20" rel="nofollow">https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:1795:20</a>)<br> at TemplateParser.parse (<a href="https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:11434:23" rel="nofollow">https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:11434:23</a>)<br> at JitCompiler._compileTemplate (<a href="https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27568:72" rel="nofollow">https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27568:72</a>)<br> at eval (<a href="https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27451:66" rel="nofollow">https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27451:66</a>)<br> at Set.forEach (native)<br> at JitCompiler._compileComponents (<a href="https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27451:23" rel="nofollow">https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27451:23</a>)<br> at createResult (<a href="https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27333:23" rel="nofollow">https://unpkg.com/@angular/compiler/bundles/compiler.umd.js:27333:23</a>)<br> at ZoneDelegate.invoke (<a href="https://unpkg.com/zone.js@0.7.6/dist/zone.js:242:26" rel="nofollow">https://unpkg.com/zone.js@0.7.6/dist/zone.js:242:26</a>)<br> at Zone.run (<a href="https://unpkg.com/zone.js@0.7.6/dist/zone.js:113:43" rel="nofollow">https://unpkg.com/zone.js@0.7.6/dist/zone.js:113:43</a>)<br> at <a href="https://unpkg.com/zone.js@0.7.6/dist/zone.js:535:57" rel="nofollow">https://unpkg.com/zone.js@0.7.6/dist/zone.js:535:57</a><br> at ZoneDelegate.invokeTask (<a href="https://unpkg.com/zone.js@0.7.6/dist/zone.js:275:35" rel="nofollow">https://unpkg.com/zone.js@0.7.6/dist/zone.js:275:35</a>)<br> at Zone.runTask (<a href="https://unpkg.com/zone.js@0.7.6/dist/zone.js:151:47" rel="nofollow">https://unpkg.com/zone.js@0.7.6/dist/zone.js:151:47</a>)<br> at drainMicroTaskQueue (<a href="https://unpkg.com/zone.js@0.7.6/dist/zone.js:433:35)%60" rel="nofollow">https://unpkg.com/zone.js@0.7.6/dist/zone.js:433:35)`</a></p> </li> </ol>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Right now it is possible to create a Directive using several selectors, but it is not possible to assign several binding property names to the same property. Consider the following example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Directive({ selector: 'my-group,[group]', }) export class MyGroup { @Input('group') instance; ..... }"><pre class="notranslate"><code class="notranslate">@Directive({ selector: 'my-group,[group]', }) export class MyGroup { @Input('group') instance; ..... } </code></pre></div> <p dir="auto">As I have got an additional attribute selector, I am kind of forced to use the same property name for "instance", but I am not free to choose another name in case I am using <code class="notranslate">&lt;my-group&gt;</code> selector. <code class="notranslate">&lt;my-group group="myInstance"&gt;</code> looks ugly and redundant.</p> <p dir="auto"><strong>Expected behavior</strong><br> It should be possible to have something like:<br> <code class="notranslate">@Input("group", "instance") instance;</code></p>
1
<ul dir="auto"> <li>VSCode Version: 1.0.0</li> <li>OS Version: Ubuntu 16.04</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Ctrl+Shift+Alt+Down - default ubuntu hotkeys to move window to other desktop</li> </ol> <p dir="auto">I set Ctrl+Shift+D for me right now, but it will be nice to have OS dependency of hotkeys out of the box</p>
<ol dir="auto"> <li>Create a new extension with yo code (just a TypeScript basic extension.</li> <li>Publish to the gallery</li> <li>Install on VS Code</li> <li>Update the extension version and republish to the gallery</li> <li>Extensions: Show Outdated Extensions</li> <li>You see that a new version of the extension is available. Click Update extension.<br> The dropdown stays open with the Update extension button swirling. It never stops.<br> If you change focus, the dropdown goes away but no Restart message comes up.<br> If you look under .vscode/extensions, the extension folder is still there containing just the node-modules folder and the .vsixmanifest files.</li> </ol>
0
<p dir="auto">Is it possible to install TF in windows environment?<br> I checked "pip install" is not supported in windows.</p> <p dir="auto">Any plan for it?</p>
<p dir="auto">I was excited to see tensorflow, but as many other users, we are on Windows, would be nice to see this support happen. Will you accept Windows port contributions?</p> <p dir="auto">In the meantime, Microsoft recently released their Deep Learning toolkit which scales on multiple machines with GPUs for both Linux and Windows. <a href="https://github.com/Microsoft/CNTK">https://github.com/Microsoft/CNTK</a></p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions &amp; Help</h2> <p dir="auto">I want to use <code class="notranslate">mixed_precision</code>, and I found <a href="https://www.tensorflow.org/api_docs/python/tf/keras/mixed_precision/experimental/Policy" rel="nofollow">tf.keras.mixed_precision.experimental.Policy</a>.</p> <p dir="auto">So I put <code class="notranslate">tf.keras.mixed_precision.experimental.set_policy("mixed_float16")</code> before <code class="notranslate">TFBertModel.from_pretrained(pretrained_weights)</code>. When I run the code, I got the following error:</p> <blockquote> <p dir="auto">InvalidArgumentError: cannot compute AddV2 as input <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="377057813" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/huggingface/transformers/pull/1/hovercard" href="https://github.com/huggingface/transformers/pull/1">#1</a>(zero-based) was expected to be a half tensor but is a float tensor [Op:AddV2] name: tf_bert_model_1/bert/embeddings/add/</p> </blockquote> <p dir="auto">which happened at <code class="notranslate">ret = model(model.dummy_inputs, training=False) # build the network with dummy inputs</code>.</p> <p dir="auto">I am not sure if I used it correctly. I think <code class="notranslate">tf.keras.mixed_precision.experimental.set_policy</code> is supposed to be used before constructing / build the model, as the tf page says <code class="notranslate">Policies can be passed to the 'dtype' argument of layer constructors, or a global policy can be set with 'tf.keras.mixed_precision.experimental.set_policy'</code>.</p> <p dir="auto">I wonder if I can use AMP with tf based transformer models and how. Thanks.</p> <p dir="auto"><a href="https://github.com/huggingface/transformers/files/3907032/error.txt">error.txt</a></p>
<h1 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h1> <h2 dir="auto">Information</h2> <p dir="auto">Model I am using (Bert, XLNet ...): 'ner' pipeline</p> <p dir="auto">Language I am using the model on (English, Chinese ...): English</p> <p dir="auto">The problem arises when using:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> the official example scripts: (give details below)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> my own modified scripts: (give details below)</li> </ul> <p dir="auto">The tasks I am working on is:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> an official GLUE/SQUaD task: (give the name)</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> <h2 dir="auto">To reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Have transformers 3.0.2 installed</li> <li>Run the below code</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from transformers import pipeline nlp = pipeline('ner', grouped_entities=True) nlp('Welcome to New York')"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-s1">pipeline</span> <span class="pl-s1">nlp</span> <span class="pl-c1">=</span> <span class="pl-en">pipeline</span>(<span class="pl-s">'ner'</span>, <span class="pl-s1">grouped_entities</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-en">nlp</span>(<span class="pl-s">'Welcome to New York'</span>)</pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">We should receive <code class="notranslate">[{'entity_group': 'I-LOC', 'score': 0.9984402656555176, 'word': 'New York'}</code>, but instead the output has duplicated 'New York': <code class="notranslate">[{'entity_group': 'I-LOC', 'score': 0.9984402656555176, 'word': 'New York'}, {'entity_group': 'I-LOC', 'score': 0.9984402656555176, 'word': 'New York'}]</code>.</p> <h3 dir="auto">The Cause of the Issue According to Me</h3> <p dir="auto">After reading 3.0.2, I noticed that lines 1047-1049 were added. I think this was done to fix a prior issue that caused the last named entity in the sequence to be occasionally omitted when <code class="notranslate">grouped_entities=True</code>. Long story short, I think this snippet was a patch that only shifted the problem from being an occasional named entity omission to an occasional named entity duplicate.</p> <p dir="auto">The for-loop that precedes this snippet is inconsistent in that sometimes the last named entity gets successfully added anyway (e.g. if the <code class="notranslate">if</code> clause on 1025 (first iteration) or 1032 is entered on the last iteration). In this case, there is a duplicate entry upon the calling of the new code at 1047. On the converse, the last named entity won’t be added if the <code class="notranslate">else</code> clause in line 1041 is entered on the last iteration. In this case, the final named entity correctly gets added after the new code snippet is run.</p> <p dir="auto">In short, there is a duplicate (I think) if (i) there is only one recognized named entity or (ii) the last named entity is one such that the tokenizer cut it up into multiple tokens. Otherwise, there is no duplicate.</p> <p dir="auto">nlp(‘Welcome to Dallas’) -&gt; duplicate 'Dallas' because 'Dallas' is the only named entity<br> nlp(‘HuggingFace is not located in Dallas’) -&gt; no duplicate because there are multiple entities and the final one 'Dallas' is not tokenized into multiple tokens<br> nlp(‘HuggingFace is located in New York City’) -&gt; duplicate ‘New York City’ because the final named entity 'New York City' is tokenized into multiple tokens</p> <h2 dir="auto">Environment info</h2> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 3.0.2</li> <li>Platform: Linux-5.3.0-1031-azure-x86_64-with-glibc2.10</li> <li>Python version: 3.8.1</li> <li>PyTorch version (GPU?): 1.5.1 (False)</li> <li>Tensorflow version (GPU?): not installed (NA)</li> <li>Using GPU in script?: no</li> <li>Using distributed or parallel set-up in script?: no</li> </ul>
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.4.1</li> <li>Operating System version: win7</li> <li>Java version: 1.8</li> </ul> <p dir="auto">Java Code:<br> package com.ghy.www;</p> <p dir="auto">import com.ghy.www.dubbo.provider.service.ISayHello;<br> import com.ghy.www.dubbo.provider.service.SayHello;<br> import org.apache.dubbo.config.ApplicationConfig;<br> import org.apache.dubbo.config.RegistryConfig;<br> import org.apache.dubbo.config.ServiceConfig;</p> <p dir="auto">import java.io.IOException;</p> <p dir="auto">public class Application1 {<br> public static void main(String[] args) throws IOException {<br> SayHello helloService = new SayHello();<br> // 服务配置<br> ServiceConfig serviceConfig = new ServiceConfig();<br> // 设置应用名称<br> serviceConfig.setApplication(new ApplicationConfig("dubbo2-server"));<br> // 设置注册中心<br> serviceConfig.setRegistry(new RegistryConfig("multicast://224.5.6.7:1234?unicast=false"));<br> // 设置业务接口<br> serviceConfig.setInterface(ISayHello.class);<br> // 设置业务实现类<br> serviceConfig.setRef(helloService);<br> // 发布服务<br> serviceConfig.export();<br> // 进程不销毁<br> System.in.read();</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="}"><pre class="notranslate"><code class="notranslate">} </code></pre></div> <p dir="auto">}</p> <p dir="auto">run after show WARN:<br> main WARN multicast.MulticastRegistry: [DUBBO] Ignore empty notify urls for subscribe url provider://192.168.61.250:20880/com.ghy.www.dubbo.provider.service.ISayHello?anyhost=true&amp;application=dubbo2-server&amp;bind.ip=192.168.61.250&amp;bind.port=20880&amp;category=configurators&amp;check=false&amp;deprecated=false&amp;dubbo=2.0.2&amp;dynamic=true&amp;generic=false&amp;interface=com.ghy.www.dubbo.provider.service.ISayHello&amp;methods=sayHello&amp;pid=9900&amp;release=2.7.4.1&amp;side=provider&amp;timestamp=1572321725880, dubbo version: 2.7.4.1, current host: 192.168.61.250</p> <p dir="auto">why ?<br> thank very much!</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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0</li> <li>Operating System version: mac</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li><code class="notranslate">AbstractClient#initConnectStatusCheckCommand</code> set break point at <code class="notranslate"> !isConnected()</code>.</li> <li><code class="notranslate">AbstractClient#close()</code> set break point here.</li> <li>start client first, start provider and then shutdown provider gracefully , let method <code class="notranslate">AbstractClient.close()</code> be executed. Then select step <code class="notranslate">1</code> and trigger the thread to execute <code class="notranslate">!isConnected</code>, here will always try to connect the offline machine.</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <p dir="auto">When the server goes offline, the client will not reconnect the offline machine.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">The client reconnects the offline machine every 2 seconds and causes a large number of arp packets(because ip is recycled and not available now).</p>
0
<p dir="auto">by <strong><a href="mailto:jaq@spacepants.org">jaq@spacepants.org</a></strong>:</p> <pre class="notranslate">I just downloaded the source code release branch from code.google.com per the instructions, then ran all.bash: hg clone ... hg update release cd go/src ./all.bash ... --- FAIL: TestLookupHost (0.00 seconds) hosts_test.go:65: LookupHost("localhost") = [127.0.0.1 127.0.0.1], has duplicate addresses FAIL FAIL net 2.379s ... My /etc/hosts is managed by a config management tool and just happens to have put two localhost entries in there (I didn't know this until now ;-) cat /etc/hosts ... 127.0.0.1 gunstar localhost ... 127.0.0.1 localhost The test seems a bit fragile because it relies on config outside the control of the Go source code.</pre>
<p dir="auto">by <strong><a href="mailto:dave@lytics.io">dave@lytics.io</a></strong>:</p> <pre class="notranslate">Building with the race detector enabled sometimes blows up and consumes all available memory. This happens for me with the package "labix.org/v2/mgo" . What steps will reproduce the problem? Download labix.org/v2/mgo and build it with -race: {{{ $ mkdir ~/gopathtemp $ export GOPATH=~/gopathtemp $ go get labix.org/v2/mgo $ cd $GOPATH/src/labix.org/v2/mgo $ free -h total used free shared buffers cached Mem: 31G 11G 19G 0B 154M 1.4G -/+ buffers/cache: 10G 20G Swap: 0B 0B 0B $ go build -v -race labix.org/v2/mgo/bson labix.org/v2/mgo go build labix.org/v2/mgo: signal: killed }}} The final command "go build -race" takes about 30 seconds and uses 18G of RAM before being OOM-killed. In /var/log/syslog, the following appears: {{{Aug 20 13:55:34 dave2 kernel: [12453.191018] 6g invoked oom-killer: gfp_mask=0x280da, order=0, oom_score_adj=0 Aug 20 13:55:34 dave2 kernel: [12453.191022] 6g cpuset=/ mems_allowed=0 Aug 20 13:55:34 dave2 kernel: [12453.191025] Pid: 6445, comm: 6g Tainted: GF 3.8.0-29-generic #42-Ubuntu Aug 20 13:55:34 dave2 kernel: [12453.191026] Call Trace: Aug 20 13:55:34 dave2 kernel: [12453.191042] [&lt;ffffffff816c199e&gt;] dump_header+0x80/0x1c3 Aug 20 13:55:34 dave2 kernel: [12453.191046] [&lt;ffffffff81132ec7&gt;] oom_kill_process+0x1b7/0x320 Aug 20 13:55:34 dave2 kernel: [12453.191049] [&lt;ffffffff81065a45&gt;] ? has_ns_capability_noaudit+0x15/0x20 Aug 20 13:55:34 dave2 kernel: [12453.191051] [&lt;ffffffff81065a67&gt;] ? has_capability_noaudit+0x17/0x20 Aug 20 13:55:34 dave2 kernel: [12453.191053] [&lt;ffffffff81133607&gt;] out_of_memory+0x417/0x450 Aug 20 13:55:34 dave2 kernel: [12453.191056] [&lt;ffffffff81138b96&gt;] __alloc_pages_nodemask+0x7e6/0x920 Aug 20 13:55:34 dave2 kernel: [12453.191060] [&lt;ffffffff81175a75&gt;] alloc_pages_vma+0xa5/0x150 Aug 20 13:55:34 dave2 kernel: [12453.191063] [&lt;ffffffff81158739&gt;] handle_pte_fault+0x2d9/0x450 Aug 20 13:55:34 dave2 kernel: [12453.191065] [&lt;ffffffff81159209&gt;] handle_mm_fault+0x299/0x670 Aug 20 13:55:34 dave2 kernel: [12453.191068] [&lt;ffffffff8115fa63&gt;] ? mmap_region+0x2a3/0x640 Aug 20 13:55:34 dave2 kernel: [12453.191071] [&lt;ffffffff816d0c7d&gt;] __do_page_fault+0x18d/0x500 Aug 20 13:55:34 dave2 kernel: [12453.191073] [&lt;ffffffff8116004d&gt;] ? do_mmap_pgoff+0x24d/0x340 Aug 20 13:55:34 dave2 kernel: [12453.191076] [&lt;ffffffff8109297f&gt;] ? __dequeue_entity+0x2f/0x50 Aug 20 13:55:34 dave2 kernel: [12453.191079] [&lt;ffffffff8114b7c8&gt;] ? vm_mmap_pgoff+0x88/0xb0 Aug 20 13:55:34 dave2 kernel: [12453.191082] [&lt;ffffffff816d0ffe&gt;] do_page_fault+0xe/0x10 Aug 20 13:55:34 dave2 kernel: [12453.191084] [&lt;ffffffff816cd618&gt;] page_fault+0x28/0x30 }}} I'm running Ubuntu 13.04 AMD64, with 32G of RAM (see the "free -h" command above): {{{ $ uname -a Linux dave2 3.8.0-29-generic #42-Ubuntu SMP Tue Aug 13 19:40:39 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.04 DISTRIB_CODENAME=raring DISTRIB_DESCRIPTION="Ubuntu 13.04" }}} What is the expected output? "go build -race" should produce a binary and terminate. It does neither. What do you see instead? "go build -race" runs for 30 seconds before using all available memory and being killed by the OOM killer. Which compiler are you using (5g, 6g, 8g, gccgo)? I'm using the go 1.1.2 tar distribution from golang.org and running "go build -race". Which operating system are you using? Ubuntu 13.04 AMD64. Which version are you using? (run 'go version') 1.1.2 Please provide any additional information below.</pre>
0
<p dir="auto">Compare these <a href="https://docs.scipy.org/doc/numpy-1.15.0/reference/arrays.indexing.html" rel="nofollow">1.15 docs</a> with these <a href="https://docs.scipy.org/doc/numpy-1.13.0/reference/arrays.indexing.html" rel="nofollow">1.13 docs</a></p>
<p dir="auto">I'm having difficulties displaying the NumPy reference in HTML format. There seems to be some formatting shining through which isn't correctly translated to HTML, or the rendering engine can't display the content properly.</p> <p dir="auto">The problem shows, for example, when looking at <a href="https://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html" rel="nofollow">the ndarray reference</a>, subsection "Internal memory layout of an ndarray". Here I get garbled formulae like this:</p> <p dir="auto">n_{\mathrm{offset}} = \sum_{k=0}^{N-1} s_k n_k</p> <p dir="auto">The problem occurs both with firefox and chromium on kubuntu 18.04, the docu is version 1.15.</p>
1
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Trying to access Components tab in Chrome Dev tools</li> <li></li> <li></li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.10.0-11a2ae3a0d</p> <p dir="auto">Call stack: at store_Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21215:35)<br> at store_Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21231:26)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28667:63<br> at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22923:18)<br> at si (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13506:76)<br> at ri (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13497:10)<br> at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16068:86)<br> at ik (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15450:11)<br> at hk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15442:23)<br> at Zj (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15426:5)</p> <p dir="auto">Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22618:30)<br> at div<br> at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:3002:5)<br> at div<br> at div<br> at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28418:47)<br> at div<br> at div<br> at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28910:3)<br> at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27547:3)<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28195:3)<br> at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33372:52)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29208:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29325:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32923:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24311:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24800:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29393:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36196:3)</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Open React Devtool</li> <li>Select the Component tab</li> <li>Got below error</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.8.2-fed4ae024</p> <p dir="auto">Call stack: at Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19359:35)<br> at Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19376:26)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26594:18<br> at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21229:18)<br> at li (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11802:76)<br> at ki (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11793:10)<br> at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14433:86)<br> at bk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13779:11)<br> at ak (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13768:5)<br> at Sj (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13750:7)</p> <p dir="auto">Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20924:30)<br> at div<br> at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:2786:5)<br> at div<br> at div<br> at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26368:45)<br> at div<br> at div<br> at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26848:23)<br> at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25520:23)<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26139:23)<br> at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30926:50)<br> at ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27172:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27303:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30463:23)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22538:23)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23040:27)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28328:23)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33797:21)</p>
1
<pre class="notranslate">This is how I broke our build. % pwd /home/rog/src/go/src/local/gobug % ls % cat &gt; foo.go package foo var X = 0 ^D % cat &gt; bar.go package foo var Y = 0 ^D % cat &gt; foo_test.go package foo_test import ( "testing" foo "local/gobug" ) func TestX(t *testing.T){ _ = foo.X } ^D % go test PASS ok local/gobug 0.011s % go install % rm foo.go # as it happens, i actually moved it elsewhere. % go build % go install % go test PASS ok local/gobug 0.011s # everything looks just fine, so i pushed to trunk here, breaking # the build. % touch *.go % go test # local/gobug_test ./foo_test.go:7: undefined: foo.X FAIL local/gobug [build failed] % I wonder if the go tool should look at the mtime of the directory as well as the source files when determining whether to rebuild.</pre>
<pre class="notranslate">What steps will reproduce the problem? If possible, include a link to a program on play.golang.org. 1. hg pull ;hg update;hg id gobuild@raspberrypi:~/go/src$ hg id 5e3661048f2e+ tip gobuild@raspberrypi:~/go/src$ 2. check GOARM setting. gobuild@raspberrypi:~/go/src$ echo $GOARM gobuild@raspberrypi:~/go/src$ 3. cd src;./all.bash What is the expected output? No errors. What do you see instead? two test errors, fmt and eoncoding/gob(this is logged in another ticket). ok flag 0.120s --- FAIL: TestNaN (0.00 seconds) scan_test.go:459: didn't get NaNs scanning "nan nan nan": got NaN +Inf NaN scan_test.go:459: didn't get NaNs scanning "NAN NAN NAN": got NaN +Inf NaN scan_test.go:459: didn't get NaNs scanning "NaN NaN NaN": got NaN +Inf NaN FAIL FAIL fmt 0.876s ok go/ast 0.171s Which operating system are you using? gobuild@raspberrypi:~/go/src$ uname -a Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux gobuild@raspberrypi:~/go/src$ Which version are you using? (run 'go version') gobuild@raspberrypi:~/go/src$ go version go version weekly.2012-03-27 +5e3661048f2e gobuild@raspberrypi:~/go/src$ Please provide any addgobuild@raspberrypi:~/go/src$ hg id 5e3661048f2e+ tip gobuild@raspberrypi:~/go/src$ itional information below.</pre>
0
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p> <p dir="auto">re: the "creator" function.</p> <p dir="auto">see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384611532" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/647" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/647/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/647">#647</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384628403" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2808" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2808/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2808">#2808</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384632282" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3235" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3235/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3235">#3235</a> for what keeps coming up.</p>
<p dir="auto"><strong>Migrated issue, originally created by Sorin Sbarnea (<a href="https://github.com/sorin">@sorin</a>)</strong></p> <p dir="auto">Instead of hardcoding the backend engine to use for postgresql, sql alchemy should try to use pg8000 if the native module is not present.</p>
0
<p dir="auto">I want to know how to handle cases where everything goes wrong, I am not too much worry for the workers, queue or db. I already know how their up time or how they handle crashes.</p> <p dir="auto">But, I am still not sure to understand how works airflow. I assume that you a server or a process that know when to add stuff in the queue to respect the dag. Am I right ? if yes, how can I handle a crashes ? (can I duplicate this server/process on a other container ?).</p>
<p dir="auto">--&gt;</p> <p dir="auto"><strong>Apache Airflow version</strong>: 1.10.10<br> <strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>): NA</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>: AWS</li> <li><strong>OS</strong> (e.g. from /etc/os-release): CentOS Linux release 7.7.1908 (Core)</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 3.10.0-1062.12.1.el7.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="69689814" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/1/hovercard" href="https://github.com/apache/airflow/pull/1">#1</a> SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> After upgrading 1.10.2 to 1.10.10 cant get into WebUI</p> <ul dir="auto"> <li>no RBAC</li> <li>no DAG Serialization</li> <li>postgres source\dest 11.5</li> <li>prepare new db from 1.10.2 snapshot</li> <li>connect it to Airflow 1.10.10 python env</li> <li>double check no live connections to db</li> <li>run airflow upgradedb</li> </ul> <details> <summary>Alembic log</summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(airflow)$ airflow upgradedb /opt/python-envs/airflow/lib/python3.6/site-packages/airflow/configuration.py:631: DeprecationWarning: Specifying both AIRFLOW_HOME environment variable and airflow_home in the config file is deprecated. Please use only the AIRFLOW_HOME environment variable and remove the config file entry. warnings.warn(msg, category=DeprecationWarning) [2020-06-14 08:30:14,925] {rest_api_plugin.py:48} WARNING - [rest_api_plugin/REST_API_PLUGIN_EXPECTED_HTTP_TOKEN] value is empty DB: postgresql://airflow:***@airflow-aws-test-airflowdb.*.us-east-1.rds.amazonaws.com:5432/airflow [2020-06-14 08:30:15,214] {db.py:378} INFO - Creating tables INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.runtime.migration] Running upgrade 41f5f12752f8 -&gt; c8ffec048a3b, add fields to dag INFO [alembic.runtime.migration] Running upgrade c8ffec048a3b -&gt; dd4ecb8fbee3, Add schedule interval to dag INFO [alembic.runtime.migration] Running upgrade dd4ecb8fbee3 -&gt; 939bb1e647c8, task reschedule fk on cascade delete INFO [alembic.runtime.migration] Running upgrade 939bb1e647c8 -&gt; 6e96a59344a4, Make TaskInstance.pool not nullable INFO [alembic.runtime.migration] Running upgrade 6e96a59344a4 -&gt; d38e04c12aa2, add serialized_dag table Revision ID: d38e04c12aa2 Revises: 6e96a59344a4 Create Date: 2019-08-01 14:39:35.616417 INFO [alembic.runtime.migration] Running upgrade d38e04c12aa2 -&gt; b3b105409875, add root_dag_id to DAG Revision ID: b3b105409875 Revises: d38e04c12aa2 Create Date: 2019-09-28 23:20:01.744775 INFO [alembic.runtime.migration] Running upgrade 6e96a59344a4 -&gt; 74effc47d867, change datetime to datetime2(6) on MSSQL tables INFO [alembic.runtime.migration] Running upgrade 939bb1e647c8 -&gt; 004c1210f153, increase queue name size limit INFO [alembic.runtime.migration] Running upgrade c8ffec048a3b -&gt; a56c9515abdc, Remove dag_stat table INFO [alembic.runtime.migration] Running upgrade a56c9515abdc, 004c1210f153, 74effc47d867, b3b105409875 -&gt; 08364691d074, Merge the four heads back together INFO [alembic.runtime.migration] Running upgrade 08364691d074 -&gt; fe461863935f, increase_length_for_connection_password INFO [alembic.runtime.migration] Running upgrade fe461863935f -&gt; 7939bcff74ba, Add DagTags table INFO [alembic.runtime.migration] Running upgrade 7939bcff74ba -&gt; a4c2fd67d16b, add pool_slots field to task_instance INFO [alembic.runtime.migration] Running upgrade a4c2fd67d16b -&gt; 852ae6c715af, Add RenderedTaskInstanceFields table INFO [alembic.runtime.migration] Running upgrade 852ae6c715af -&gt; 952da73b5eff, add dag_code table"><pre class="notranslate"><code class="notranslate">(airflow)$ airflow upgradedb /opt/python-envs/airflow/lib/python3.6/site-packages/airflow/configuration.py:631: DeprecationWarning: Specifying both AIRFLOW_HOME environment variable and airflow_home in the config file is deprecated. Please use only the AIRFLOW_HOME environment variable and remove the config file entry. warnings.warn(msg, category=DeprecationWarning) [2020-06-14 08:30:14,925] {rest_api_plugin.py:48} WARNING - [rest_api_plugin/REST_API_PLUGIN_EXPECTED_HTTP_TOKEN] value is empty DB: postgresql://airflow:***@airflow-aws-test-airflowdb.*.us-east-1.rds.amazonaws.com:5432/airflow [2020-06-14 08:30:15,214] {db.py:378} INFO - Creating tables INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.runtime.migration] Running upgrade 41f5f12752f8 -&gt; c8ffec048a3b, add fields to dag INFO [alembic.runtime.migration] Running upgrade c8ffec048a3b -&gt; dd4ecb8fbee3, Add schedule interval to dag INFO [alembic.runtime.migration] Running upgrade dd4ecb8fbee3 -&gt; 939bb1e647c8, task reschedule fk on cascade delete INFO [alembic.runtime.migration] Running upgrade 939bb1e647c8 -&gt; 6e96a59344a4, Make TaskInstance.pool not nullable INFO [alembic.runtime.migration] Running upgrade 6e96a59344a4 -&gt; d38e04c12aa2, add serialized_dag table Revision ID: d38e04c12aa2 Revises: 6e96a59344a4 Create Date: 2019-08-01 14:39:35.616417 INFO [alembic.runtime.migration] Running upgrade d38e04c12aa2 -&gt; b3b105409875, add root_dag_id to DAG Revision ID: b3b105409875 Revises: d38e04c12aa2 Create Date: 2019-09-28 23:20:01.744775 INFO [alembic.runtime.migration] Running upgrade 6e96a59344a4 -&gt; 74effc47d867, change datetime to datetime2(6) on MSSQL tables INFO [alembic.runtime.migration] Running upgrade 939bb1e647c8 -&gt; 004c1210f153, increase queue name size limit INFO [alembic.runtime.migration] Running upgrade c8ffec048a3b -&gt; a56c9515abdc, Remove dag_stat table INFO [alembic.runtime.migration] Running upgrade a56c9515abdc, 004c1210f153, 74effc47d867, b3b105409875 -&gt; 08364691d074, Merge the four heads back together INFO [alembic.runtime.migration] Running upgrade 08364691d074 -&gt; fe461863935f, increase_length_for_connection_password INFO [alembic.runtime.migration] Running upgrade fe461863935f -&gt; 7939bcff74ba, Add DagTags table INFO [alembic.runtime.migration] Running upgrade 7939bcff74ba -&gt; a4c2fd67d16b, add pool_slots field to task_instance INFO [alembic.runtime.migration] Running upgrade a4c2fd67d16b -&gt; 852ae6c715af, Add RenderedTaskInstanceFields table INFO [alembic.runtime.migration] Running upgrade 852ae6c715af -&gt; 952da73b5eff, add dag_code table </code></pre></div> </details> <p dir="auto">After auth getting next screen constantly</p> <details> <summary>Crush log from web-ui</summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="------------------------------------------------------------------------------- Node: airflow-master-test-1-10-10.dev.somehost.net ------------------------------------------------------------------------------- Traceback (most recent call last): File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py&quot;, line 2446, in wsgi_app response = self.full_dispatch_request() File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py&quot;, line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py&quot;, line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask/_compat.py&quot;, line 39, in reraise raise value File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py&quot;, line 1949, in full_dispatch_request rv = self.dispatch_request() File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py&quot;, line 1935, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask_admin/base.py&quot;, line 69, in inner return self._run_view(f, *args, **kwargs) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask_admin/base.py&quot;, line 368, in _run_view return fn(self, *args, **kwargs) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask_login/utils.py&quot;, line 261, in decorated_view return func(*args, **kwargs) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/utils/db.py&quot;, line 74, in wrapper return func(*args, **kwargs) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/views.py&quot;, line 2330, in index auto_complete_data=auto_complete_data) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/views.py&quot;, line 389, in render return super(AirflowViewMixin, self).render(template, **kwargs) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask_admin/base.py&quot;, line 308, in render return render_template(template, **kwargs) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask/templating.py&quot;, line 140, in render_template ctx.app, File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask/templating.py&quot;, line 120, in _render rv = template.render(context) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/jinja2/asyncsupport.py&quot;, line 76, in render return original_render(self, *args, **kwargs) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/jinja2/environment.py&quot;, line 1008, in render return self.environment.handle_exception(exc_info, True) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/jinja2/environment.py&quot;, line 780, in handle_exception reraise(exc_type, exc_value, tb) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/jinja2/_compat.py&quot;, line 37, in reraise raise value.with_traceback(tb) File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/airflow/dags.html&quot;, line 20, in top-level template code {% extends &quot;airflow/master.html&quot; %} File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/airflow/master.html&quot;, line 20, in top-level template code {% extends &quot;admin/master.html&quot; %} File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/admin/master.html&quot;, line 20, in top-level template code {% extends 'admin/base.html' %} File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/flask_admin/templates/bootstrap3/admin/base.html&quot;, line 38, in top-level template code {% block page_body %} File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/admin/master.html&quot;, line 191, in block &quot;page_body&quot; {% block body %} File &quot;/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/airflow/dags.html&quot;, line 84, in block &quot;body&quot; &lt;a href=&quot;{{ url_for('airflow.'+ dag.get_default_view(), dag_id=dag.dag_id) }}&quot; title=&quot;{{ dag.description[0:80] + '...' if dag.description|length &gt; 80 else dag.description }}&quot;&gt; TypeError: object of type 'NoneType' has no len() "><pre class="notranslate"><code class="notranslate">------------------------------------------------------------------------------- Node: airflow-master-test-1-10-10.dev.somehost.net ------------------------------------------------------------------------------- Traceback (most recent call last): File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise raise value File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask_admin/base.py", line 69, in inner return self._run_view(f, *args, **kwargs) File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask_admin/base.py", line 368, in _run_view return fn(self, *args, **kwargs) File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask_login/utils.py", line 261, in decorated_view return func(*args, **kwargs) File "/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/utils/db.py", line 74, in wrapper return func(*args, **kwargs) File "/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/views.py", line 2330, in index auto_complete_data=auto_complete_data) File "/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/views.py", line 389, in render return super(AirflowViewMixin, self).render(template, **kwargs) File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask_admin/base.py", line 308, in render return render_template(template, **kwargs) File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask/templating.py", line 140, in render_template ctx.app, File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask/templating.py", line 120, in _render rv = template.render(context) File "/opt/python-envs/airflow/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/opt/python-envs/airflow/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/opt/python-envs/airflow/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/opt/python-envs/airflow/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/airflow/dags.html", line 20, in top-level template code {% extends "airflow/master.html" %} File "/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/airflow/master.html", line 20, in top-level template code {% extends "admin/master.html" %} File "/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/admin/master.html", line 20, in top-level template code {% extends 'admin/base.html' %} File "/opt/python-envs/airflow/lib/python3.6/site-packages/flask_admin/templates/bootstrap3/admin/base.html", line 38, in top-level template code {% block page_body %} File "/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/admin/master.html", line 191, in block "page_body" {% block body %} File "/opt/python-envs/airflow/lib/python3.6/site-packages/airflow/www/templates/airflow/dags.html", line 84, in block "body" &lt;a href="{{ url_for('airflow.'+ dag.get_default_view(), dag_id=dag.dag_id) }}" title="{{ dag.description[0:80] + '...' if dag.description|length &gt; 80 else dag.description }}"&gt; TypeError: object of type 'NoneType' has no len() </code></pre></div> </details> <p dir="auto"><strong>What you expected to happen</strong>: WebUI works</p> <p dir="auto"><strong>How to reproduce it</strong>:</p> <ul dir="auto"> <li>Prepare some DAGs without description executed under Airflow 1.10.2</li> <li>Upgrade to Airflow 1.10.10</li> </ul> <p dir="auto"><strong>Anything else we need to know</strong>:</p> <details><summary>DB data which wont work (sensitive data removed)</summary> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" airflow=&gt; select dag_id,default_view,description from dag where (description = '') IS NOT FALSE limit 10; dag_id | default_view | description ---------------------------------------------------------------------+--------------+------------- hello_world | | (10 rows)"><pre class="notranslate">airflow<span class="pl-k">=&gt;</span> <span class="pl-k">select</span> dag_id,default_view,description <span class="pl-k">from</span> dag <span class="pl-k">where</span> (description <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>) IS NOT FALSE <span class="pl-k">limit</span> <span class="pl-c1">10</span>; dag_id | default_view | description <span class="pl-c"><span class="pl-c">--</span>-------------------------------------------------------------------+--------------+-------------</span> hello_world | | (<span class="pl-c1">10</span> rows)</pre></div> </details> <details> <summary>Quick fix which helped (sensitive data removed)</summary> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="airflow=&gt; update dag SET description = 'Desc' where (description = '') IS NOT FALSE; UPDATE 14"><pre class="notranslate">airflow<span class="pl-k">=&gt;</span> <span class="pl-k">update</span> dag <span class="pl-k">SET</span> description <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>Desc<span class="pl-pds">'</span></span> <span class="pl-k">where</span> (description <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>) IS NOT FALSE; <span class="pl-k">UPDATE</span> <span class="pl-c1">14</span></pre></div> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="airflow=&gt; select dag_id,default_view,description from dag where (description = '') IS NOT FALSE limit 10; dag_id | default_view | description --------+--------------+------------- (0 rows)"><pre class="notranslate">airflow<span class="pl-k">=&gt;</span> <span class="pl-k">select</span> dag_id,default_view,description <span class="pl-k">from</span> dag <span class="pl-k">where</span> (description <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>) IS NOT FALSE <span class="pl-k">limit</span> <span class="pl-c1">10</span>; dag_id | default_view | description <span class="pl-c"><span class="pl-c">--</span>------+--------------+-------------</span> (<span class="pl-c1">0</span> rows)</pre></div> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="airflow=&gt; select dag_id,default_view,description from dag limit 10; dag_id | default_view | description ---------------------------------------------------------------------+--------------+------------- hello_world | | Desc (10 rows) "><pre class="notranslate">airflow<span class="pl-k">=&gt;</span> <span class="pl-k">select</span> dag_id,default_view,description <span class="pl-k">from</span> dag <span class="pl-k">limit</span> <span class="pl-c1">10</span>; dag_id | default_view | description <span class="pl-c"><span class="pl-c">--</span>-------------------------------------------------------------------+--------------+-------------</span> hello_world | | <span class="pl-k">Desc</span> (<span class="pl-c1">10</span> rows) </pre></div> </details>
0
<p dir="auto">I am interested in implementing a new connector for Superset to add MongoDB support, and would like to know if others have started similar work too so as to avoid duplicate effort.</p> <h3 dir="auto">Inspiration</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/priyankajuyal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/priyankajuyal">@priyankajuyal</a> I think there're 3 methods to support mongodb in superset:</p> <ul dir="auto"> <li>Implement a mongodb in sqlalchemy, this requires a lot of work and may not be easy to do cause sqlalchemy is a object relational mapper library, while mongodb is not relational.</li> <li>Implement a new connector for superset. Right now superset has two connectors, one is for sqlalchemy, one is for druid, and similar things can be implemented for mongodb, this should be the right choice.</li> <li>Transform mongodb to some relational db, stripe has a deprecated project for this job: <a href="https://github.com/stripe/mosql">https://github.com/stripe/mosql</a>.</li> </ul> <p dir="auto"><em>Originally posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xiaohanyu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xiaohanyu">@xiaohanyu</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="289542969" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/4231" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/4231/hovercard?comment_id=358608747&amp;comment_type=issue_comment" href="https://github.com/apache/superset/issues/4231#issuecomment-358608747">#4231 (comment)</a></em></p>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Superset version</h3> <p dir="auto">Lastest commit on master</p> <h3 dir="auto">Expected results</h3> <p dir="auto">Docker compose working</p> <h3 dir="auto">Actual results</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ docker-compose up superset_postgres_1 is up-to-date superset_redis_1 is up-to-date Creating superset_superset_1 ... done Attaching to superset_postgres_1, superset_redis_1, superset_superset_1 superset_1 | + '[' 0 -ne 0 ']' superset_1 | + '[' development = development ']' superset_1 | + celery worker --app=superset.sql_lab:celery_app --pool=gevent -Ofair superset_1 | + cd superset/assets/ superset_1 | + npm ci postgres_1 | 2019-02-07 15:41:55.069 UTC [1] LOG: listening on IPv4 address &quot;0.0.0.0&quot;, port 5432 postgres_1 | 2019-02-07 15:41:55.069 UTC [1] LOG: listening on IPv6 address &quot;::&quot;, port 5432 postgres_1 | 2019-02-07 15:41:55.109 UTC [1] LOG: listening on Unix socket &quot;/var/run/postgresql/.s.PGSQL.5432&quot; postgres_1 | 2019-02-07 15:41:55.235 UTC [22] LOG: database system was shut down at 2019-02-07 15:31:58 UTC postgres_1 | 2019-02-07 15:41:55.249 UTC [1] LOG: database system is ready to accept connections postgres_1 | 2019-02-07 15:42:51.678 UTC [30] ERROR: duplicate key value violates unique constraint &quot;ab_user_username_key&quot; postgres_1 | 2019-02-07 15:42:51.678 UTC [30] DETAIL: Key (username)=(admin) already exists. postgres_1 | 2019-02-07 15:42:51.678 UTC [30] STATEMENT: INSERT INTO ab_user (id, first_name, last_name, username, password, active, email, last_login, login_count, fail_login_count, created_on, changed_on, created_by_fk, changed_by_fk) VALUES (nextval('ab_user_id_seq'), 'admin', 'user', 'admin', 'pbkdf2:sha256:50000$fgf6eYlb$bb1e6c1f420de4d894f7a917a72712c0b846dd969f51afb7cf386f0848508422', true, 'admin@fab.org', NULL, NULL, NULL, '2019-02-07T15:42:51.677213'::timestamp, '2019-02-07T15:42:51.677242'::timestamp, NULL, NULL) RETURNING ab_user.id redis_1 | 1:C 07 Feb 15:41:55.444 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf redis_1 | _._ redis_1 | _.-``__ ''-._ redis_1 | _.-`` `. `_. ''-._ Redis 3.2.12 (00000000/0) 64 bit redis_1 | .-`` .-```. ```\/ _.,_ ''-._ redis_1 | ( ' , .-` | `, ) Running in standalone mode redis_1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 redis_1 | | `-._ `._ / _.-' | PID: 1 redis_1 | `-._ `-._ `-./ _.-' _.-' redis_1 | |`-._`-._ `-.__.-' _.-'_.-'| redis_1 | | `-._`-._ _.-'_.-' | http://redis.io redis_1 | `-._ `-._`-.__.-'_.-' _.-' redis_1 | |`-._`-._ `-.__.-' _.-'_.-'| redis_1 | | `-._`-._ _.-'_.-' | redis_1 | `-._ `-._`-.__.-'_.-' _.-' redis_1 | `-._ `-.__.-' _.-' redis_1 | `-._ _.-' redis_1 | `-.__.-' redis_1 | redis_1 | 1:M 07 Feb 15:41:55.446 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. redis_1 | 1:M 07 Feb 15:41:55.446 # Server started, Redis version 3.2.12 redis_1 | 1:M 07 Feb 15:41:55.446 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never &gt; /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. redis_1 | 1:M 07 Feb 15:41:55.446 * DB loaded from disk: 0.000 seconds redis_1 | 1:M 07 Feb 15:41:55.446 * The server is now ready to accept connections on port 6379 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T15_47_06_436Z-debug.log postgres_1 | 2019-02-07 15:47:06.572 UTC [36] LOG: unexpected EOF on client connection with an open transaction superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T15_50_51_169Z-debug.log postgres_1 | 2019-02-07 15:50:51.297 UTC [44] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T15_54_35_445Z-debug.log postgres_1 | 2019-02-07 15:54:35.595 UTC [52] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T15_58_19_852Z-debug.log postgres_1 | 2019-02-07 15:58:19.963 UTC [61] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T16_02_04_350Z-debug.log postgres_1 | 2019-02-07 16:02:04.473 UTC [69] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T16_05_48_096Z-debug.log postgres_1 | 2019-02-07 16:05:48.222 UTC [78] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation"><pre class="notranslate"><code class="notranslate">$ docker-compose up superset_postgres_1 is up-to-date superset_redis_1 is up-to-date Creating superset_superset_1 ... done Attaching to superset_postgres_1, superset_redis_1, superset_superset_1 superset_1 | + '[' 0 -ne 0 ']' superset_1 | + '[' development = development ']' superset_1 | + celery worker --app=superset.sql_lab:celery_app --pool=gevent -Ofair superset_1 | + cd superset/assets/ superset_1 | + npm ci postgres_1 | 2019-02-07 15:41:55.069 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 postgres_1 | 2019-02-07 15:41:55.069 UTC [1] LOG: listening on IPv6 address "::", port 5432 postgres_1 | 2019-02-07 15:41:55.109 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" postgres_1 | 2019-02-07 15:41:55.235 UTC [22] LOG: database system was shut down at 2019-02-07 15:31:58 UTC postgres_1 | 2019-02-07 15:41:55.249 UTC [1] LOG: database system is ready to accept connections postgres_1 | 2019-02-07 15:42:51.678 UTC [30] ERROR: duplicate key value violates unique constraint "ab_user_username_key" postgres_1 | 2019-02-07 15:42:51.678 UTC [30] DETAIL: Key (username)=(admin) already exists. postgres_1 | 2019-02-07 15:42:51.678 UTC [30] STATEMENT: INSERT INTO ab_user (id, first_name, last_name, username, password, active, email, last_login, login_count, fail_login_count, created_on, changed_on, created_by_fk, changed_by_fk) VALUES (nextval('ab_user_id_seq'), 'admin', 'user', 'admin', 'pbkdf2:sha256:50000$fgf6eYlb$bb1e6c1f420de4d894f7a917a72712c0b846dd969f51afb7cf386f0848508422', true, 'admin@fab.org', NULL, NULL, NULL, '2019-02-07T15:42:51.677213'::timestamp, '2019-02-07T15:42:51.677242'::timestamp, NULL, NULL) RETURNING ab_user.id redis_1 | 1:C 07 Feb 15:41:55.444 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf redis_1 | _._ redis_1 | _.-``__ ''-._ redis_1 | _.-`` `. `_. ''-._ Redis 3.2.12 (00000000/0) 64 bit redis_1 | .-`` .-```. ```\/ _.,_ ''-._ redis_1 | ( ' , .-` | `, ) Running in standalone mode redis_1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 redis_1 | | `-._ `._ / _.-' | PID: 1 redis_1 | `-._ `-._ `-./ _.-' _.-' redis_1 | |`-._`-._ `-.__.-' _.-'_.-'| redis_1 | | `-._`-._ _.-'_.-' | http://redis.io redis_1 | `-._ `-._`-.__.-'_.-' _.-' redis_1 | |`-._`-._ `-.__.-' _.-'_.-'| redis_1 | | `-._`-._ _.-'_.-' | redis_1 | `-._ `-._`-.__.-'_.-' _.-' redis_1 | `-._ `-.__.-' _.-' redis_1 | `-._ _.-' redis_1 | `-.__.-' redis_1 | redis_1 | 1:M 07 Feb 15:41:55.446 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. redis_1 | 1:M 07 Feb 15:41:55.446 # Server started, Redis version 3.2.12 redis_1 | 1:M 07 Feb 15:41:55.446 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never &gt; /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. redis_1 | 1:M 07 Feb 15:41:55.446 * DB loaded from disk: 0.000 seconds redis_1 | 1:M 07 Feb 15:41:55.446 * The server is now ready to accept connections on port 6379 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T15_47_06_436Z-debug.log postgres_1 | 2019-02-07 15:47:06.572 UTC [36] LOG: unexpected EOF on client connection with an open transaction superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T15_50_51_169Z-debug.log postgres_1 | 2019-02-07 15:50:51.297 UTC [44] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T15_54_35_445Z-debug.log postgres_1 | 2019-02-07 15:54:35.595 UTC [52] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T15_58_19_852Z-debug.log postgres_1 | 2019-02-07 15:58:19.963 UTC [61] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T16_02_04_350Z-debug.log postgres_1 | 2019-02-07 16:02:04.473 UTC [69] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T16_05_48_096Z-debug.log postgres_1 | 2019-02-07 16:05:48.222 UTC [78] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 superset_1 | npm WARN prepare removing existing node_modules/ before installation </code></pre></div> <p dir="auto">Note that the execution started on 2019-02-07 15:41:55.069 and the "screenshot" was taken on 2019-02-07 16:05:48.222 without any result. It seems that it is always repeating the:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T16_05_48_096Z-debug.log postgres_1 | 2019-02-07 16:05:48.222 UTC [78] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217"><pre class="notranslate"><code class="notranslate">superset_1 | npm WARN prepare removing existing node_modules/ before installation superset_1 | npm ERR! path /home/superset/superset/assets/node_modules/core-js/fn/array/virtual superset_1 | npm ERR! code ENOTEMPTY superset_1 | npm ERR! errno -39 superset_1 | npm ERR! syscall rmdir superset_1 | npm ERR! ENOTEMPTY: directory not empty, rmdir '/home/superset/superset/assets/node_modules/core-js/fn/array/virtual' superset_1 | superset_1 | npm ERR! A complete log of this run can be found in: superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-07T16_05_48_096Z-debug.log postgres_1 | 2019-02-07 16:05:48.222 UTC [78] LOG: unexpected EOF on client connection with an open transaction superset_superset_1 exited with code 217 </code></pre></div> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">I followed these steps: <a href="https://github.com/apache/incubator-superset/blob/master/docs/installation.rst">https://github.com/apache/incubator-superset/blob/master/docs/installation.rst</a><br> based on that commit <a href="https://github.com/apache/incubator-superset/commit/823555e07db883c7d59ea4e867cca3efb784c721">823555e</a></p>
0
<p dir="auto">Several of the types in the Iterators package are widely useful, plus have very small implementations that perform well. I would say these are: Count, Take, Drop, Cycle, Repeat, and RepeatForever. It would make sense to have these in Base.</p> <p dir="auto">Also, iterators are afflicted by a mild case of "lettercase hell". We export both <code class="notranslate">Enumerate</code> and <code class="notranslate">enumerate</code>, etc. I would prefer to minimize the number of exported things that differ only in case. There are a few ways to deal with this:</p> <ol dir="auto"> <li>Remove the lowercase versions entirely, and stick with the "uppercase means lazy" convention.</li> <li>Rename the uppercase versions to something less appealing like <code class="notranslate">EnumerateIterator</code> so they are less easily confused.</li> <li>Un-export (and possibly rename as well) the uppercase versions.</li> </ol>
<p dir="auto">Mutually recursive type declarations such as</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type A a :: B b end type B c :: A d end"><pre class="notranslate"><code class="notranslate">type A a :: B b end type B c :: A d end </code></pre></div> <p dir="auto">appear to be presently unsupported, as per this discussion:</p> <p dir="auto"><a href="https://groups.google.com/forum/#!msg/julia-users/LctRzct1R-M/s_vLVUxSyVcJ" rel="nofollow">https://groups.google.com/forum/#!msg/julia-users/LctRzct1R-M/s_vLVUxSyVcJ</a></p> <p dir="auto">More generally, "out of order" type declarations also appear to be unsupported.</p> <p dir="auto">Mutually recursive declarations are important for many recursive data structures: in complex cases, the workarounds required to produce singly recursive declarations can produce highly unreadable code with excessive redundancy and obscure relationships to the original concept.</p> <p dir="auto">"Out of order" declarations are important for some forms of generic programming that depend on altering a subset of type definitions: in complex cases, the workarounds required to organize the inclusions in ordered form defeat much of the purpose of avoiding the unnecessary code duplication.</p> <p dir="auto">I believe this issue is already well known, but I did not find an open issue on Github, which prevents easily checking its status.</p>
0
<h1 dir="auto">Description of the new enhancement</h1> <p dir="auto">Currently windows terminal does not support vim (vim for windows) completely. When vim is launched from the windows terminal, the document opens fine and all of the vim features are available. The only issue is that the rendering of the document is with blue color as opposed to normal terminal background-color (say black)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7105293/64915982-73877e00-d791-11e9-974d-2a7e76ecf212.png"><img src="https://user-images.githubusercontent.com/7105293/64915982-73877e00-d791-11e9-974d-2a7e76ecf212.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Due to the improper rendering, the syntax highlighting feature of vim no longer works.<br> When vim is launched from the terminal it should respect <code class="notranslate">.vimrc</code> file of the user.</p> <p dir="auto">It will be helpful if I can use vim in the windows terminal directly :)</p> <h3 dir="auto">A clear and concise description of what the problem is that the new enhancement would solve.</h3> <p dir="auto">Describe why and how a user would use this new functionality (if applicable).</p> <p dir="auto">It would be really helpful if I can use vim for windows on the windows terminal. Ever since the new terminal was announced I was looking forward to using vim on it. Currently, I use vim software for windows.</p> <h3 dir="auto">A clear and concise description of what you want to happen.</h3> <p dir="auto">It would be useful if something close to below happens:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7105293/64916013-5ef7b580-d792-11e9-9fb2-1f14ecc65fdd.png"><img src="https://user-images.githubusercontent.com/7105293/64916013-5ef7b580-d792-11e9-9fb2-1f14ecc65fdd.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I just installed Windows Terminal for the first time this morning and the first thing I noticed -- before trying to make ANY changes to settings or even using the command lines -- was the semi-transparent background in the CMD tabs. I think it looks neat, but I am confused about why it is transparent when the terminal window is in use but becomes solid when the terminal window loses focus?</p> <p dir="auto">It would seem to make much more sense with those states reversed as it is much easier to read text on a single, solid background color and it may be useful to have an idea what is behind the inactive terminal window.</p> <h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.239] Windows Terminal version (if applicable): 0.3.2171.0 Any other software? no"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.239] Windows Terminal version (if applicable): 0.3.2171.0 Any other software? no </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Open a CMD tab and focus then unfocus the terminal window to see the background opacity change.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">My preference would be for solid when in use and some transparency when inactive. Or at least, I would like an option to choose that mode.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The CMD tab is semi-transparent when in use and becomes solid when inactive.</p>
0
<p dir="auto">The get started part has a section MNIST for ML Beginners. In this tutorial you should download the test data via:</p> <p dir="auto">from tensorflow.examples.tutorials.mnist import input_data<br> mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)</p> <p dir="auto">Unfortunately that's not working because of an connection error.</p>
<p dir="auto">I was able to run the Inception-v3 model on Android just fine, and I now want to run my own trained TensorFlow model on Android. I'm following the approach from <a href="https://www.tensorflow.org/versions/r0.11/tutorials/image_recognition/index.html" rel="nofollow">TensorFlow's image recognition tutorial</a> and the Android TensorFlow demo, and adapting as necessary. My changes include: (a) integrating Android OpenCV as part of the bazel build (b) using own model and label file and (c) adjusting parameters (img_size, input_mean, input_std, etc.) accordingly.</p> <p dir="auto">From Android logcat, running my model with the tensorflow android demo app gives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E/native: tensorflow_inference_jni.cc:202 Error during inference: Invalid argument: Session was not created with a graph before Run()! ... E/native: tensorflow_inference_jni.cc:159 Output [output/Softmax:0] not found, aborting! "><pre class="notranslate"><code class="notranslate">E/native: tensorflow_inference_jni.cc:202 Error during inference: Invalid argument: Session was not created with a graph before Run()! ... E/native: tensorflow_inference_jni.cc:159 Output [output/Softmax:0] not found, aborting! </code></pre></div> <h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3> <p dir="auto">Own (duplicate) SO thread: <a href="http://stackoverflow.com/questions/40555749/running-own-tensorflow-model-on-android-gives-native-inference-error-session-w" rel="nofollow">http://stackoverflow.com/questions/40555749/running-own-tensorflow-model-on-android-gives-native-inference-error-session-w</a></p> <h3 dir="auto">Environment info</h3> <p dir="auto">OS X Yosemite (10.10.5), LGE Nexus 5 (Android 6.0.1), Android SDK 23, Android OpenCV SDK 23, Bazel 0.4.0.</p> <h3 dir="auto">Steps taken</h3> <ol dir="auto"> <li>Saved own model's checkpoint (.ckpt) and graph definition (.pb) files separately using <code class="notranslate">tf.train.Saver()</code> then <code class="notranslate">tf.train.write_graph()</code></li> <li>Froze graph using freeze_graph.py (using bazel), gives 227.5 MB file</li> <li>Optimized the graph using optimize_for_inference.py (additionally tried strip_unused.py)</li> <li>Copied frozen, optimized, or stripped graph to android/assets</li> <li>Doubled the total byte limit using <code class="notranslate">coded_stream.SetTotalBytesLimit()</code> in jni_utils.cc to handle my large model size</li> <li>Built the tensorflow android app using bazel</li> <li>Installed on android device using adb and bazel</li> </ol> <p dir="auto">As a sanity check, I have tested my model in C++ built with bazel following the tutorial here <a href="https://www.tensorflow.org/versions/r0.8/how_tos/image_retraining/index.html" rel="nofollow">label_image</a>, and my model correctly outputs a prediction. I have also tried playing with the order by which I save my graph def and checkpoint files before freezing, but no change.</p> <p dir="auto">Any help would be great.<br> cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drpngx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drpngx">@drpngx</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andrewharp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andrewharp">@andrewharp</a></p>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request "><pre class="notranslate"><code class="notranslate">[x] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">When a web component is used inside an Angular component, attributes specified on web component are not available inside <code class="notranslate">attachedCallback</code> of web component. Also, when an attribute value for a web component is specified using an interpolation operator <code class="notranslate">value="{{value}}"</code>, Angular changes attribute name with a <code class="notranslate">ng-reflect-</code> prefix and manages it internally. Because of this there is no way <code class="notranslate">attributeChangedCallback</code> could trigger appropriately.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">There should be a way to use web component inside Angular component in a way such that attributes are available inside <code class="notranslate">attachedCallback</code> and <code class="notranslate">attributeChangedCallback</code> is triggered correctly for appropriate attributes.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">This shows a sample Toggle Button web component used inside Angular component.<br> <a href="https://plnkr.co/edit/MwLh8ssnjOdqA8C4PhZq?p=preview" rel="nofollow">https://plnkr.co/edit/MwLh8ssnjOdqA8C4PhZq?p=preview</a></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> [Chrome]</li> </ul> <ul dir="auto"> <li><strong>Language:</strong> [ES6]</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> I'm trying to integrate ChartIQ library which has HTML Custom Elements to my angular 2 application.<br> Some of these elements have logic in createdCallback, but when it is firing innerHTML of Custom element is empty.</p> <p dir="auto"><strong>Expected behavior</strong><br> If I use Custom Elements without Angular, createdCallback is firing when the full element (with all childrens added into it) inserted into DOM.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> <a href="http://plnkr.co/edit/OW500u9fr27aVteo3zJh" rel="nofollow">http://plnkr.co/edit/OW500u9fr27aVteo3zJh</a></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> For now Angular 2 breaks some part of expected behavior of Custom Elements. It needs to be fixed to allow using Custom Elements in Angular apps.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Windows 8, WebStorm, npm</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong><br> 2.2.1</p> </li> <li> <p dir="auto"><strong>Browser:</strong><br> Chrome 55</p> </li> <li> <p dir="auto"><strong>Language:</strong><br> all</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> 6.7.0</p> </li> </ul>
1
<p dir="auto">The code completion functionality often gets in the way when typing prose into a text file. For example, if I were writing this comment in a .txt file with VS Code and tried to type the word fun immediately followed by the Enter key, I'd automatically have the word "functionality" instead, because Code "learned" from the first sentence above that "fun" might be the beginning of "functionality."</p> <p dir="auto">It's great that this is apparently turned off by default in Markdown files. Can the same default be applied to .txt files? It's unlikely that any useful word-completion heuristic can be deduced from the content of most text files.</p>
<p dir="auto">At the moment when none of the contributed completion processors returns any proposals, the textual completion processor starts adding proposals.<br> That's fine for languages where we have no sophisticated completion processor, but looks bad for languages that pretend to have a 'smart' completion processor.</p>
1
<p dir="auto">On current master (on macOS), I get these warnings when building Julia. I suppose they are safe to ignore.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" LINK usr/lib/julia/sys.dylib ld: warning: could not create compact unwind for _julia_Dict_17462: stack subq instruction is too different from dwarf stack size ld: warning: could not create compact unwind for _julia_Dict_17470: stack subq instruction is too different from dwarf stack size ➜ julia git:(master) ./julia _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type &quot;?&quot; for help, &quot;]?&quot; for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.8.0-DEV.86 (2021-06-28) _/ |\__'_|_|_|\__'_| | Commit 74fab49ffb (0 days old master) |__/ | "><pre class="notranslate"><code class="notranslate"> LINK usr/lib/julia/sys.dylib ld: warning: could not create compact unwind for _julia_Dict_17462: stack subq instruction is too different from dwarf stack size ld: warning: could not create compact unwind for _julia_Dict_17470: stack subq instruction is too different from dwarf stack size ➜ julia git:(master) ./julia _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.8.0-DEV.86 (2021-06-28) _/ |\__'_|_|_|\__'_| | Commit 74fab49ffb (0 days old master) |__/ | </code></pre></div>
<p dir="auto">On macOS 10.14.6, I've started to get these warning when building Julia, at the very end:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ make ... LINK usr/lib/julia/sys.dylib ld: warning: could not create compact unwind for _julia_Dict_16937: stack subq instruction is too different from dwarf stack size ld: warning: could not create compact unwind for _julia_Dict_16945: stack subq instruction is too different from dwarf stack size $"><pre class="notranslate"><code class="notranslate">$ make ... LINK usr/lib/julia/sys.dylib ld: warning: could not create compact unwind for _julia_Dict_16937: stack subq instruction is too different from dwarf stack size ld: warning: could not create compact unwind for _julia_Dict_16945: stack subq instruction is too different from dwarf stack size $ </code></pre></div> <p dir="auto">This also happens in the release-1.7 branch, but not in release-1.6, and also didn't happen like a month or so ago.</p>
1
<p dir="auto">Please add support for selecting multiple images at once using the image_picker plugin.</p>
<p dir="auto">Right now the picker defaults to single mode, it would be nice to be able to have a multi-mode, by passing a parameter when you launch it, then an array is returned of files instead of just one.</p> <p dir="auto">for android this might help speed things up<br> unique code</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);"><pre class="notranslate"><span class="pl-s1">intent</span>.<span class="pl-en">putExtra</span>(<span class="pl-smi">Intent</span>.<span class="pl-c1">EXTRA_ALLOW_MULTIPLE</span>, <span class="pl-c1">true</span>);</pre></div> <p dir="auto">full example</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Intent intent = new Intent(); intent.setType(&quot;image/*&quot;); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent,&quot;Select Picture&quot;), 1);"><pre class="notranslate"><span class="pl-smi">Intent</span> <span class="pl-s1">intent</span> = <span class="pl-k">new</span> <span class="pl-smi">Intent</span>(); <span class="pl-s1">intent</span>.<span class="pl-en">setType</span>(<span class="pl-s">"image/*"</span>); <span class="pl-s1">intent</span>.<span class="pl-en">putExtra</span>(<span class="pl-smi">Intent</span>.<span class="pl-c1">EXTRA_ALLOW_MULTIPLE</span>, <span class="pl-c1">true</span>); <span class="pl-s1">intent</span>.<span class="pl-en">setAction</span>(<span class="pl-smi">Intent</span>.<span class="pl-c1">ACTION_GET_CONTENT</span>); <span class="pl-en">startActivityForResult</span>(<span class="pl-smi">Intent</span>.<span class="pl-en">createChooser</span>(<span class="pl-s1">intent</span>,<span class="pl-s">"Select Picture"</span>), <span class="pl-c1">1</span>);</pre></div> <p dir="auto">for iOS I think maybe using this library might help, and seems up to date.</p> <p dir="auto"><a href="https://github.com/hackiftekhar/IQMediaPickerController">https://github.com/hackiftekhar/IQMediaPickerController</a></p>
1
<h3 dir="auto">Describe the issue:</h3> <p dir="auto">Hi,</p> <p dir="auto">I have recently created a new python environment using the 3.10.4 python version.<br> I have installed the latest public version (1.22.3) and when I am trying to catch the epsilon, I have an error that cannot allow me to use the command: numpy.finfo(float).eps or numpy.finfo(numpy.float32).eps</p> <p dir="auto">This can be very inconvenient because I hwill use some solutions of Scikit-Learn that calls this.</p> <p dir="auto">Sorry for the inconvenience. Best.</p> <h3 dir="auto">Reproduce the code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np eps = np.finfo(float).eps"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">eps</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">finfo</span>(<span class="pl-s1">float</span>).<span class="pl-s1">eps</span></pre></div> <h3 dir="auto">Error message:</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):** File &quot;C:\Users\ME\2022_deepl\lib\site-packages\numpy\core\getlimits.py&quot;, line 459, in __new__ dtype = numeric.dtype(dtype) TypeError: 'numpy.dtype[bool_]' object is not callable During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;C:\Users\ME\AppData\Local\Temp\ipykernel_10948\2225752278.py&quot;, line 1, in &lt;cell line: 1&gt; np.finfo(float).eps File &quot;C:\Users\ME\2022_deepl\lib\site-packages\numpy\core\getlimits.py&quot;, line 462, in __new__ dtype = numeric.dtype(type(dtype)) TypeError: 'numpy.dtype[bool_]' object is not callable"><pre class="notranslate">Traceback (most recent call last):<span class="pl-k">**</span> File <span class="pl-s"><span class="pl-pds">"</span>C:\Users\ME\2022_deepl\lib\site-packages\numpy\core\getlimits.py<span class="pl-pds">"</span></span>, line 459, <span class="pl-k">in</span> __new__ dtype = numeric.dtype(dtype) TypeError: <span class="pl-s"><span class="pl-pds">'</span>numpy.dtype[bool_]<span class="pl-pds">'</span></span> object is not callable During handling of the above exception, another exception occurred: Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>C:\Users\ME\AppData\Local\Temp\ipykernel_10948\2225752278.py<span class="pl-pds">"</span></span>, line 1, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>cell line: <span class="pl-k">1&gt;</span> np.finfo(float).eps File <span class="pl-s"><span class="pl-pds">"</span>C:\Users\ME\2022_deepl\lib\site-packages\numpy\core\getlimits.py<span class="pl-pds">"</span></span>, line 462, <span class="pl-k">in</span> __new__ dtype = numeric.dtype(type(dtype)) TypeError: <span class="pl-s"><span class="pl-pds">'</span>numpy.dtype[bool_]<span class="pl-pds">'</span></span> object is not callable</pre></div> <h3 dir="auto">NumPy/Python version information:</h3> <p dir="auto">1.22.3 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)]</p>
<p dir="auto">Ravel and unravel are <strong>synonyms</strong>, but the methods where they appear accomplish inverse operations.<br> See my <a href="http://stackoverflow.com/questions/32336913/numpy-ravel-unravel-naming-rage" rel="nofollow">SO question</a> for details and example.</p> <p dir="auto">Can you consider introducing alternative methods that contain <code class="notranslate">unravel</code> in their name (even functions containing ravel are IMHO not a happy choice)?</p> <p dir="auto">I propose to change e.g.</p> <table role="table"> <thead> <tr> <th>before</th> <th>after</th> </tr> </thead> <tbody> <tr> <td><code class="notranslate">unravel_index()</code></td> <td><code class="notranslate">index_to_coord()</code></td> </tr> <tr> <td><code class="notranslate">ravel_multi_index()</code></td> <td><code class="notranslate">index_to_flat</code></td> </tr> </tbody> </table>
0
<p dir="auto">Consider the following code from <code class="notranslate">numpy/distutils/fcompiler/gnu.py</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" import sysconfig target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') if not target: target = '10.9' s = f'Env. variable MACOSX_DEPLOYMENT_TARGET set to {target}' warnings.warn(s, stacklevel=2) os.environ['MACOSX_DEPLOYMENT_TARGET'] = target "><pre class="notranslate"><code class="notranslate"> import sysconfig target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') if not target: target = '10.9' s = f'Env. variable MACOSX_DEPLOYMENT_TARGET set to {target}' warnings.warn(s, stacklevel=2) os.environ['MACOSX_DEPLOYMENT_TARGET'] = target </code></pre></div> <p dir="auto">With OS X Big Sur, <code class="notranslate">sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')</code> can return the int 11, but <code class="notranslate">os.environ[..] = target</code> wants <code class="notranslate">target</code> to be a string. As a result, <code class="notranslate">numpy</code> won't compile from source. This arose in the context of Sagemath, in which numpy is compiled from source.</p> <h3 dir="auto">Error message:</h3> <p dir="auto">Building from source results in</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="building library &quot;npymath&quot; sources Traceback (most recent call last): File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/setup.py&quot;, line 508, in &lt;module&gt; setup_package() File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/setup.py&quot;, line 500, in setup_package setup(**metadata) File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/core.py&quot;, line 169, in setup return old_setup(**new_attr) File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/lib/python3.9/site-packages/setuptools/__init__.py&quot;, line 163, in setup return distutils.core.setup(**attrs) File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py&quot;, line 148, in setup dist.run_commands() File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 966, in run_commands self.run_command(cmd) File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command cmd_obj.run() File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/lib/python3.9/site-packages/wheel/bdist_wheel.py&quot;, line 299, in run self.run_command('build') File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py&quot;, line 313, in run_command self.distribution.run_command(command) File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command cmd_obj.run() File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build.py&quot;, line 40, in run old_build.run(self) File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py&quot;, line 135, in run self.run_command(cmd_name) File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py&quot;, line 313, in run_command self.distribution.run_command(command) File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command cmd_obj.run() File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build_src.py&quot;, line 144, in run self.build_sources() File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build_src.py&quot;, line 155, in build_sources self.build_library_sources(*libname_info) File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build_src.py&quot;, line 288, in build_library_sources sources = self.generate_sources(sources, (lib_name, build_info)) File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build_src.py&quot;, line 378, in generate_sources source = func(extension, build_dir) File &quot;numpy/core/setup.py&quot;, line 658, in get_mathlib_info st = config_cmd.try_link('int main(void) { return 0;}') File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/config.py&quot;, line 241, in try_link self._check_compiler() File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/config.py&quot;, line 80, in _check_compiler self.fcompiler = new_fcompiler(compiler=self.fcompiler, File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py&quot;, line 880, in new_fcompiler compiler = get_default_fcompiler(plat, requiref90=requiref90, File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py&quot;, line 851, in get_default_fcompiler compiler_type = _find_existing_fcompiler(matching_compiler_types, File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py&quot;, line 802, in _find_existing_fcompiler c.customize(dist) File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py&quot;, line 526, in customize linker_so_flags = self.flag_vars.linker_so File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/environment.py&quot;, line 37, in __getattr__ return self._get_var(name, conf_desc) File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/environment.py&quot;, line 53, in _get_var var = self._hook_handler(name, hook) File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py&quot;, line 705, in _environment_hook return hook() File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/gnu.py&quot;, line 346, in get_flags_linker_so flags = GnuFCompiler.get_flags_linker_so(self) File &quot;/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/gnu.py&quot;, line 136, in get_flags_linker_so os.environ['MACOSX_DEPLOYMENT_TARGET'] = target File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py&quot;, line 684, in __setitem__ value = self.encodevalue(value) File &quot;/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py&quot;, line 756, in encode raise TypeError(&quot;str expected, not %s&quot; % type(value).__name__) TypeError: str expected, not int"><pre class="notranslate"><code class="notranslate">building library "npymath" sources Traceback (most recent call last): File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/setup.py", line 508, in &lt;module&gt; setup_package() File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/setup.py", line 500, in setup_package setup(**metadata) File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/core.py", line 169, in setup return old_setup(**new_attr) File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/lib/python3.9/site-packages/setuptools/__init__.py", line 163, in setup return distutils.core.setup(**attrs) File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run self.run_command('build') File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build.py", line 40, in run old_build.run(self) File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build_src.py", line 144, in run self.build_sources() File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build_src.py", line 155, in build_sources self.build_library_sources(*libname_info) File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build_src.py", line 288, in build_library_sources sources = self.generate_sources(sources, (lib_name, build_info)) File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/build_src.py", line 378, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 658, in get_mathlib_info st = config_cmd.try_link('int main(void) { return 0;}') File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/config.py", line 241, in try_link self._check_compiler() File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/command/config.py", line 80, in _check_compiler self.fcompiler = new_fcompiler(compiler=self.fcompiler, File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py", line 880, in new_fcompiler compiler = get_default_fcompiler(plat, requiref90=requiref90, File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py", line 851, in get_default_fcompiler compiler_type = _find_existing_fcompiler(matching_compiler_types, File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py", line 802, in _find_existing_fcompiler c.customize(dist) File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py", line 526, in customize linker_so_flags = self.flag_vars.linker_so File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/environment.py", line 37, in __getattr__ return self._get_var(name, conf_desc) File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/environment.py", line 53, in _get_var var = self._hook_handler(name, hook) File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/__init__.py", line 705, in _environment_hook return hook() File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/gnu.py", line 346, in get_flags_linker_so flags = GnuFCompiler.get_flags_linker_so(self) File "/Users/palmieri/Desktop/Sage/sage_builds/TESTING/sage-9.3.beta5/local/var/tmp/sage/build/numpy-1.19.4/src/numpy/distutils/fcompiler/gnu.py", line 136, in get_flags_linker_so os.environ['MACOSX_DEPLOYMENT_TARGET'] = target File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 684, in __setitem__ value = self.encodevalue(value) File "/usr/local/Cellar/python@3.9/3.9.1_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 756, in encode raise TypeError("str expected, not %s" % type(value).__name__) TypeError: str expected, not int </code></pre></div> <h3 dir="auto">NumPy/Python version information:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; print(sys.version) 3.9.1 (default, Dec 24 2020, 16:23:16) [Clang 12.0.0 (clang-1200.0.32.28)]"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-en">print</span>(<span class="pl-s1">sys</span>.<span class="pl-s1">version</span>) <span class="pl-c1">3.9</span>.<span class="pl-c1">1</span> (<span class="pl-s1">default</span>, <span class="pl-v">Dec</span> <span class="pl-c1">24</span> <span class="pl-c1">2020</span>, <span class="pl-c1">16</span>:<span class="pl-c1">23</span>:<span class="pl-c1">16</span>) [<span class="pl-v">Clang</span> <span class="pl-c1">12.0</span><span class="pl-c1">.0</span> (<span class="pl-s1">clang</span><span class="pl-c1">-</span><span class="pl-c1">1200.0</span>.<span class="pl-c1">32.28</span>)]</pre></div> <p dir="auto">Attempting to build numpy-1.19.4.</p> <p dir="auto">Suggested fix:</p> <div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index caa0854..ff8bfdd 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -133,7 +133,7 @@ class GnuFCompiler(FCompiler): target = '10.9' s = f'Env. variable MACOSX_DEPLOYMENT_TARGET set to {target}' warnings.warn(s, stacklevel=2) - os.environ['MACOSX_DEPLOYMENT_TARGET'] = target + os.environ['MACOSX_DEPLOYMENT_TARGET'] = str(target) opt.extend(['-undefined', 'dynamic_lookup', '-bundle']) else: opt.append(&quot;-shared&quot;)"><pre class="notranslate"><span class="pl-c1">diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py</span> index caa0854..ff8bfdd 100644 <span class="pl-md">--- a/numpy/distutils/fcompiler/gnu.py</span> <span class="pl-mi1">+++ b/numpy/distutils/fcompiler/gnu.py</span> <span class="pl-mdr">@@ -133,7 +133,7 @@</span> class GnuFCompiler(FCompiler): target = '10.9' s = f'Env. variable MACOSX_DEPLOYMENT_TARGET set to {target}' warnings.warn(s, stacklevel=2) <span class="pl-md"><span class="pl-md">-</span> os.environ['MACOSX_DEPLOYMENT_TARGET'] = target</span> <span class="pl-mi1"><span class="pl-mi1">+</span> os.environ['MACOSX_DEPLOYMENT_TARGET'] = str(target)</span> opt.extend(['-undefined', 'dynamic_lookup', '-bundle']) else: opt.append("-shared")</pre></div> <p dir="auto">or insert a call to <code class="notranslate">str</code> when defining <code class="notranslate">target</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="target = str(sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET'))"><pre class="notranslate"><code class="notranslate">target = str(sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')) </code></pre></div>
<p dir="auto">Not sure that this issue is related to NumPy.<br> When I try to install NumPy with Pipenv, it fails with a <code class="notranslate">TypeError</code> exception.<br> This issue doesn't seem to happen if using <code class="notranslate">pip</code> directly.</p> <h3 dir="auto">Steps to reproduce:</h3> <p dir="auto">I could reproduce with this config:</p> <ul dir="auto"> <li>macOS 11.0 (Intel)</li> <li>Python 3.9.0</li> <li>pip 20.3.1</li> <li>pipenv, version 2020.11.15</li> </ul> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ mkdir my_project &amp;&amp; cd my_project $ pipenv --three $ pipenv install numpy"><pre class="notranslate">$ <span class="pl-s1">mkdir my_project <span class="pl-k">&amp;&amp;</span> <span class="pl-c1">cd</span> my_project</span> $ <span class="pl-s1">pipenv --three</span> $ <span class="pl-s1">pipenv install numpy</span></pre></div> <h3 dir="auto">Error message:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/usr/local/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py&quot;, line 257, in &lt;module&gt; main() File &quot;/usr/local/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py&quot;, line 240, in main json_out['return_val'] = hook(**hook_input['kwargs']) File &quot;/usr/local/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py&quot;, line 110, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/build_meta.py&quot;, line 157, in prepare_metadata_for_build_wheel self.run_setup() File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/build_meta.py&quot;, line 248, in run_setup super(_BuildMetaLegacyBackend, File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/build_meta.py&quot;, line 142, in run_setup exec(compile(code, __file__, 'exec'), locals()) File &quot;setup.py&quot;, line 508, in &lt;module&gt; setup_package() File &quot;setup.py&quot;, line 500, in setup_package setup(**metadata) File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/core.py&quot;, line 169, in setup return old_setup(**new_attr) File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/__init__.py&quot;, line 165, in setup return distutils.core.setup(**attrs) File &quot;/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py&quot;, line 148, in setup dist.run_commands() File &quot;/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 966, in run_commands self.run_command(cmd) File &quot;/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command cmd_obj.run() File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/command/dist_info.py&quot;, line 31, in run egg_info.run() File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/egg_info.py&quot;, line 24, in run self.run_command(&quot;build_src&quot;) File &quot;/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py&quot;, line 313, in run_command self.distribution.run_command(command) File &quot;/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py&quot;, line 985, in run_command cmd_obj.run() File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/build_src.py&quot;, line 144, in run self.build_sources() File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/build_src.py&quot;, line 155, in build_sources self.build_library_sources(*libname_info) File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/build_src.py&quot;, line 288, in build_library_sources sources = self.generate_sources(sources, (lib_name, build_info)) File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/build_src.py&quot;, line 378, in generate_sources source = func(extension, build_dir) File &quot;numpy/core/setup.py&quot;, line 658, in get_mathlib_info st = config_cmd.try_link('int main(void) { return 0;}') File &quot;/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/config.py&quot;, line 241, in try_link self._check_compiler() File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/config.py&quot;, line 80, in _check_compiler self.fcompiler = new_fcompiler(compiler=self.fcompiler, File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py&quot;, line 880, in new_fcompiler compiler = get_default_fcompiler(plat, requiref90=requiref90, File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py&quot;, line 851, in get_default_fcompiler compiler_type = _find_existing_fcompiler(matching_compiler_types, File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py&quot;, line 802, in _find_existing_fcompiler c.customize(dist) File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py&quot;, line 526, in customize linker_so_flags = self.flag_vars.linker_so File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/environment.py&quot;, line 37, in __getattr__ return self._get_var(name, conf_desc) File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/environment.py&quot;, line 53, in _get_var var = self._hook_handler(name, hook) File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py&quot;, line 705, in _environment_hook return hook() File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/gnu.py&quot;, line 346, in get_flags_linker_so flags = GnuFCompiler.get_flags_linker_so(self) File &quot;/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/gnu.py&quot;, line 136, in get_flags_linker_so os.environ['MACOSX_DEPLOYMENT_TARGET'] = target File &quot;/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py&quot;, line 684, in __setitem__ value = self.encodevalue(value) File &quot;/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py&quot;, line 756, in encode raise TypeError(&quot;str expected, not %s&quot; % type(value).__name__) TypeError: str expected, not int"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py", line 257, in &lt;module&gt; main() File "/usr/local/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py", line 240, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/usr/local/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py", line 110, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel self.run_setup() File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 248, in run_setup super(_BuildMetaLegacyBackend, File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 142, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 508, in &lt;module&gt; setup_package() File "setup.py", line 500, in setup_package setup(**metadata) File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/core.py", line 169, in setup return old_setup(**new_attr) File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 165, in setup return distutils.core.setup(**attrs) File "/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-build-env-uhf9fd_v/overlay/lib/python3.9/site-packages/setuptools/command/dist_info.py", line 31, in run egg_info.run() File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/egg_info.py", line 24, in run self.run_command("build_src") File "/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/build_src.py", line 144, in run self.build_sources() File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources self.build_library_sources(*libname_info) File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources sources = self.generate_sources(sources, (lib_name, build_info)) File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 658, in get_mathlib_info st = config_cmd.try_link('int main(void) { return 0;}') File "/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/config.py", line 241, in try_link self._check_compiler() File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/command/config.py", line 80, in _check_compiler self.fcompiler = new_fcompiler(compiler=self.fcompiler, File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py", line 880, in new_fcompiler compiler = get_default_fcompiler(plat, requiref90=requiref90, File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py", line 851, in get_default_fcompiler compiler_type = _find_existing_fcompiler(matching_compiler_types, File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py", line 802, in _find_existing_fcompiler c.customize(dist) File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py", line 526, in customize linker_so_flags = self.flag_vars.linker_so File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/environment.py", line 37, in __getattr__ return self._get_var(name, conf_desc) File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/environment.py", line 53, in _get_var var = self._hook_handler(name, hook) File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/__init__.py", line 705, in _environment_hook return hook() File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/gnu.py", line 346, in get_flags_linker_so flags = GnuFCompiler.get_flags_linker_so(self) File "/private/var/folders/6n/lncv_nl546ndn321m0fgdsfm0000gn/T/pip-resolver-wlds30r_/numpy/numpy/distutils/fcompiler/gnu.py", line 136, in get_flags_linker_so os.environ['MACOSX_DEPLOYMENT_TARGET'] = target File "/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 684, in __setitem__ value = self.encodevalue(value) File "/usr/local/Cellar/python@3.9/3.9.0_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 756, in encode raise TypeError("str expected, not %s" % type(value).__name__) TypeError: str expected, not int </code></pre></div>
1
<ul dir="auto"> <li>Electron version: 1.7.x</li> <li>Operating system: Windows 10</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">You should be able to share any screen connected on the computer, see the content of the screen you selected locally, as well as the other participants.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Once you select the screen you want to share on a multi-screen computer running Windows 10, you immediately get a black screen as the local stream when you select some of the screens. The other participants also get a black screen as the remote stream.</p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>On a Windows 10 computer or VM, with multiple screens connected, start sharing your screen with any Electron-based app. I reproduced the issue with the Symphony client, but also with this one which is fully open source:<br> $ git clone <a href="https://github.com/jitsi/jitsi-meet-electron/">https://github.com/jitsi/jitsi-meet-electron/</a><br> $ npm install<br> $ npm start</li> <li>Once you select the screen you want to share, you immediately get a black screen as the local stream. The other participants also get a black screen as the remote stream. The issue appears to affect the screens randomly, sometimes the impacted screens are the screens number 2, 4, 6, sometimes after a reboot, 4, 5, 6, etc...</li> </ol> <h3 dir="auto">Root cause analysis</h3> <p dir="auto">At the system level, the way Windows 10 enumerates the screens is slightly different when a virtual video driver is involved.</p> <p dir="auto">On Electron, the picker window is managed by the DesktopCapturerSource object: <a href="https://github.com/electron/electron/blob/master/docs/api/structures/desktop-capturer-source.md">https://github.com/electron/electron/blob/master/docs/api/structures/desktop-capturer-source.md</a> and the mapping relies on a naming rule <a href="https://github.com/electron/electron/blob/master/atom/browser/api/atom_api_desktop_capturer.cc">https://github.com/electron/electron/blob/master/atom/browser/api/atom_api_desktop_capturer.cc</a> that fails when a non-conventional video driver is involved.</p> <p dir="auto">At Symphony, we experienced the exact same issue with CEF/Paragon. This is how we fixed the problem of the screen IDs enumeration: <a class="commit-link" href="https://github.com/symphonyoss/SFE-DesktopClient-pgx/commit/85f0d719a11ffa9c03587ebe192b0009a721b7ff#diff-7e750064e4ad7245e99d95316f830119">symphonyoss/SFE-DesktopClient-pgx@<tt>85f0d71</tt>#diff-7e750064e4ad7245e99d95316f830119</a><br> This fix also addresses a similar issue we had with one monitor, but with Citrix XenDesktop installed (<a href="https://www.citrix.com/products/xenapp-xendesktop/" rel="nofollow">https://www.citrix.com/products/xenapp-xendesktop/</a>), which also alters how Windows enumerates the screens.<br> FYI, this is how the WebRTC native code that does enumeration: <a href="https://webrtc.googlesource.com/src/+/master/modules/desktop_capture/win/screen_capture_utils.cc" rel="nofollow">https://webrtc.googlesource.com/src/+/master/modules/desktop_capture/win/screen_capture_utils.cc</a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1677767/34426920-971be4e8-ebf0-11e7-916d-53a8dc53fa8a.png"><img src="https://user-images.githubusercontent.com/1677767/34426920-971be4e8-ebf0-11e7-916d-53a8dc53fa8a.png" alt="2017-12-21_18-19-38" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1677767/34426919-970559e4-ebf0-11e7-9c30-4b3e2d1798aa.png"><img src="https://user-images.githubusercontent.com/1677767/34426919-970559e4-ebf0-11e7-9c30-4b3e2d1798aa.png" alt="2017-12-21_18-18-07" style="max-width: 100%;"></a></p>
<ul dir="auto"> <li>Electron version: 1.7.3 - not sure when this was introduced, works fine in latest production build based on 1.4.15</li> <li>Operating system: Windows</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">I have three screens connected to my computer. <code class="notranslate">desktopCapturer.getSources({types: ['screen']})</code> correctly identifies three sources.</p> <p dir="auto">I want to share my first screen and set <code class="notranslate">chromeMediaSourceId</code> to the matching id <code class="notranslate">screen:0:0</code> in the constraints when requesting the MediaStream using <code class="notranslate">navigator.mediaDevices.getUserMedia()</code>. I should get a MediaStream containing a video track with the content of the first screen.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">The stream returned will show the content of the second screen. If I ask for the second screen, I get the third screen. If I ask for the third screen, I get a black screen.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto"><a href="https://github.com/wireapp/wire-desktop">https://github.com/wireapp/wire-desktop</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/wireapp/wire-desktop.git npm install npm run prod"><pre class="notranslate"><code class="notranslate">git clone https://github.com/wireapp/wire-desktop.git npm install npm run prod </code></pre></div> <ul dir="auto"> <li>Log in or create a Wire account. Feel free to connect to me (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gregor/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gregor">@gregor</a>)</li> <li>Start audio or video call</li> <li>Click on share your screen</li> <li>Select screen to be shared</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10243309/27835989-b897f902-60dd-11e7-8dfc-555b4958fc99.png"><img src="https://user-images.githubusercontent.com/10243309/27835989-b897f902-60dd-11e7-8dfc-555b4958fc99.png" alt="electron" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10243309/27835988-b8943060-60dd-11e7-881c-f3dfdad6cc65.png"><img src="https://user-images.githubusercontent.com/10243309/27835988-b8943060-60dd-11e7-881c-f3dfdad6cc65.png" alt="electron2" style="max-width: 100%;"></a></p>
1
<p dir="auto">I believe this is a bug, or if it isn't, I couldn't find anything in the documentation that says it should act this way.</p> <p dir="auto">It seems like random.choice is ignoring the masked values. As you can see in the code below, the output of random.choice gives values that have been previously masked on the array.</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 x = np.linspace(0,100,100) xmask = np.ma.masked_where(x&gt;75,x) print(np.nanmax(xmask)) random_choice = np.random.choice(xmask,50) print(np.nanmax(random_choice))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>,<span class="pl-c1">100</span>,<span class="pl-c1">100</span>) <span class="pl-s1">xmask</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">ma</span>.<span class="pl-en">masked_where</span>(<span class="pl-s1">x</span><span class="pl-c1">&gt;</span><span class="pl-c1">75</span>,<span class="pl-s1">x</span>) <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">nanmax</span>(<span class="pl-s1">xmask</span>)) <span class="pl-s1">random_choice</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">choice</span>(<span class="pl-s1">xmask</span>,<span class="pl-c1">50</span>) <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">nanmax</span>(<span class="pl-s1">random_choice</span>))</pre></div> <p dir="auto">Output:</p> <blockquote> <p dir="auto">74.74747474747475<br> 96.96969696969697</p> </blockquote> <p dir="auto">I've tried this several times, and the maximum value of random_choice always seems to be between 90 and 100.</p> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">1.18.1 3.7.6 (default, Jan 8 2020, 19:59:22)<br> [GCC 7.3.0]</p>
<p dir="auto">The subject says it all, but in case you missed it: the function <code class="notranslate">numpy.show_config()</code> (an alias for <code class="notranslate">numpy.__config__.show()</code>) doesn't have a docstring, and it does not appear in the <a href="https://docs.scipy.org/doc/numpy/genindex.html#S" rel="nofollow">online docs</a>.</p> <p dir="auto">A docstring that explains the information printed by <code class="notranslate">show_config()</code> would be helpful.</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dharrigan" rel="nofollow">David Harrigan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8986?redirect=false" rel="nofollow">SPR-8986</a></strong> and commented</p> <p dir="auto">Hi,</p> <p dir="auto">In our application we have a rapidly growing number of JAXB2 annotated classes. It is a right pain to add these classes manually to the "classesToBeBound" property in the Jaxb2Marshaller. Given that other components (I'm looking at you Hibernate : AnnotationSessionFactoryBean) have the ability to automatically add classes from packages that match annotations, why not then for the Jaxb2Marshaller (having to key in the classes manually is <strong>so</strong> old skool).</p> <p dir="auto">I've extended Jaxb2Marshaller (file attached) that scans on the classpath for appropriately annotated classes. Please do review and I hope that this can be incorporated into the next release. I'm happy to make changes to the codebase if required to bring it up to Spring coding standards.</p> <p dir="auto">It's a pity that afterPropertiesSet is marked as Final in Jaxb2Marshaller since I can't override that method to set up the setClassesToBeBound before then calling the super afterPropertiesSet. Currently as the code stands, I have to provide a dummy setClassesToBeBound and setLazyInit to be true. This dummy is then replaced by overriding the getJaxbContext. I think this needs rewriting.</p> <p dir="auto">An example of use:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;marshaller&quot; class=&quot;foo.bar.AnnotationJaxb2Marshaller&quot;&gt; &lt;property name=&quot;lazyInit&quot; value=&quot;true&quot; /&gt; &lt;property name=&quot;classesToBeBound&quot;&gt; &lt;list&gt; &lt;value&gt;foo.bar.Class&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;property name=&quot;packagesToScan&quot;&gt; &lt;list&gt; &lt;value&gt;foo.bar.jaxb.model&lt;/value&gt; &lt;/list&gt; &lt;/property&gt; &lt;/bean&gt;"><pre class="notranslate">&lt;<span class="pl-ent">bean</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>marshaller<span class="pl-pds">"</span></span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>foo.bar.AnnotationJaxb2Marshaller<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>lazyInit<span class="pl-pds">"</span></span> <span class="pl-e">value</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>classesToBeBound<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">list</span>&gt; &lt;<span class="pl-ent">value</span>&gt;foo.bar.Class&lt;/<span class="pl-ent">value</span>&gt; &lt;/<span class="pl-ent">list</span>&gt; &lt;/<span class="pl-ent">property</span>&gt; &lt;<span class="pl-ent">property</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>packagesToScan<span class="pl-pds">"</span></span>&gt; &lt;<span class="pl-ent">list</span>&gt; &lt;<span class="pl-ent">value</span>&gt;foo.bar.jaxb.model&lt;/<span class="pl-ent">value</span>&gt; &lt;/<span class="pl-ent">list</span>&gt; &lt;/<span class="pl-ent">property</span>&gt; &lt;/<span class="pl-ent">bean</span>&gt;</pre></div> <p dir="auto">-=david=-</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 GA</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/19255/AnnotationJaxb2Marshaller_v2.java" rel="nofollow">AnnotationJaxb2Marshaller_v2.java</a> (<em>5.10 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/19254/AnnotationJaxb2Marshaller.java" rel="nofollow">AnnotationJaxb2Marshaller.java</a> (<em>4.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="398117760" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13835" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13835/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13835">#13835</a> HTTP response code 308 (<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="398117841" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13844" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13844/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13844">#13844</a> Add ClasspathScanningJaxb2Marshaller for spring OXM (<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/8980ce712da209aa5cf742dd4bd58f09e5d46870/hovercard" href="https://github.com/spring-projects/spring-framework/commit/8980ce712da209aa5cf742dd4bd58f09e5d46870"><tt>8980ce7</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/79f32c7f33489bf9e746928d9e33fb29b53e0a96/hovercard" href="https://github.com/spring-projects/spring-framework/commit/79f32c7f33489bf9e746928d9e33fb29b53e0a96"><tt>79f32c7</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/ff9ad7adc603fd395c212b7329a2b0b2804a82bc/hovercard" href="https://github.com/spring-projects/spring-framework/commit/ff9ad7adc603fd395c212b7329a2b0b2804a82bc"><tt>ff9ad7a</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=loren%20rosen" rel="nofollow">Loren Rosen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-305?redirect=false" rel="nofollow">SPR-305</a></strong> and commented</p> <p dir="auto">The shell scripts in samples/jpetstore/db/hsqldb has DOS line delimiters instead of Unix delimiters. This can cause attempts to run this sample application to fail.</p> <p dir="auto">What happens is that, when you start up the database via server.sh, the shell sees the end of the command as '-database jpetstore\c', where by \c I mean the carriage return character. Then when the sample code itself attempts to query the database, it gets an error since the database jpetstore (with no terminating carriage return) doesn't exist:</p> <p dir="auto">org.springframework.jdbc.BadSqlGrammarException: Bad SQL grammar [(mapped statement)] in task 'SqlMapTemplate'; nested exception is java.sql.SQLException: Table not found: CATEGORY in statement [select CATID, NAME, DESCN from CATEGORY where CATID = 'CATS']<br> org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:254)<br> org.springframework.orm.ibatis.SqlMapTemplate.execute(SqlMapTemplate.java:116)<br> org.springframework.orm.ibatis.SqlMapTemplate.executeQueryForObject(SqlMapTemplate.java:152)<br> org.springframework.samples.jpetstore.dao.ibatis.SqlMapCategoryDao.getCategory(SqlMapCategoryDao.java:17)<br> org.springframework.samples.jpetstore.domain.logic.PetStoreImpl.getCategory(PetStoreImpl.java:124)<br> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br> java.lang.reflect.Method.invoke(Method.java:324)<br> org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:60)<br> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:150)<br> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:119)<br> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)<br> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)<br> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)<br> $Proxy0.getCategory(Unknown Source)<br> org.springframework.samples.jpetstore.web.spring.ViewCategoryController.handleRequest(ViewCategoryController.java:31)<br> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)<br> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:495)<br> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:321)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)</p> <p dir="auto">To the beginning user it simply appears that the samples are broken. Some beginning users might even jump to the conclusion that spring itself doesn't work, since here even the sample code gets errors about bad SQL grammar. It took me most of a morning to figure out the problem.</p> <p dir="auto">Presumably the problem occurs with the scripts in the petclinic sample as well, though I haven't tried them.</p> <p dir="auto">Note also that it's possible some Unix shells could treat DOS line delimiters the same as Unix delimiters, and so not exhibit this bug. Here I'm using<br> GNU bash, version 2.05b.0(1)-release (powerpc-apple-darwin7.0)</p> <hr> <p dir="auto"><strong>Affects:</strong> 1.1 RC2</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="398075607" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7861" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7861/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7861">#7861</a> DOS chars in sample app shell scripts (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<pre class="notranslate">1. What is a short input program that triggers the error? (compile with -race enabled) package pdl var ( codec1 = codec{newE, "application/pdf"} codec2 = codec{newE, "text/plain"} availableCodecs = [...]codec{codec1, codec2} ) type encoder interface{} type codec struct { NewWriter func() encoder MimeType string } type E struct{} func newE() encoder { return new(E) } 2. What is the full compiler output? ./y.go:7: internal compiler error: found non-orig name node availableCodecs 3. What version of the compiler are you using? (Run it with the -V flag.) go version go1.3beta2 +e165495e81bf Fri May 23 12:29:29 2014 +1000 linux/amd64</pre>
<pre class="notranslate">What steps will reproduce the problem? 1. Set your $INCLUDE environment variable to be longer than 500 characters. 2. Try to assemble any .s file. (I've been using $GOROOT/src/pkg/runtime/$GOARCH/asm.s) 3. Get a segmentation fault. I've reproduced with both 6a and 8a. I'm assuming 5a does the same thing. Which revision are you using? (hg identify) 4d7f5eddd695 tip The problem is due to a buffer overflow in macinc cc/macbody. symb is an array of 500 characters and it's filled using strcpy without checking the length of the source. $INCLUDE happens to be one of these sources and it's easier than you might think to exceed 500 characters -- particularly in cygwin. There might be other buffer overflows possible in this file through similar means. There are a number of strcpy calls.</pre>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.8-SNAPSHOT</li> <li>Operating System version: MacOS</li> <li>Java version: oraclejdk1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16585330/84270350-20462e80-ab5d-11ea-99ca-8dbb68b55e3c.png"><img src="https://user-images.githubusercontent.com/16585330/84270350-20462e80-ab5d-11ea-99ca-8dbb68b55e3c.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I will submit a pr.</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.6.9</li> <li>Operating System version: centos 6.4</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>dubbo服务端口20880,服务启动成功。</li> <li>执行如下命令:<br> [root@serv87 ~]# telnet 192.168.128.187 20880<br> Trying 192.168.128.187...<br> Connected to 192.168.128.187.<br> Escape character is '^]'.<br> status -l<br> +------------+--------+--------------------------------------------------------+<br> | resource | status | message |<br> +------------+--------+--------------------------------------------------------+<br> | threadpool | OK | Pool status:OK, max:200, core:200, largest:19, active:1, task:19, service port: 20880 |<br> | load | OK | load:0.51,cpu:8 |<br> | memory | OK | max:1969M,total:1969M,used:289M,free:1680M |<br> | registry | OK | 192.168.128.187:2880(connected) |<br> | server | OK | /192.168.128.187:20880(clients:13) |<br> | spring | OK | classpath*:spring-config/*.xml |<br> | summary | OK | |<br> +------------+--------+--------------------------------------------------------+</li> </ol> <p dir="auto">显示dubbo服务信息,客户安全扫描认为不安全<br> 请问,如何解决这个问题?</p>
0
<p dir="auto">Right now, it seems like the only way to set <a href="http://docs.celeryproject.org/en/latest/reference/celery.bin.worker.html?highlight=fair#cmdoption-celery-worker-O" rel="nofollow">-Ofair</a> is via the command line.</p> <p dir="auto">Is there also a way to set this programmatically in <code class="notranslate">celeryconfig.py</code>, or in Django's <code class="notranslate">settings.py</code>?</p>
<p dir="auto">Can Celery expose a configuration parameter for the optimisation parameter(currently only passable on the command line as <code class="notranslate">-Ofair</code>.</p>
1
<p dir="auto">Hey,</p> <p dir="auto">I found something weird... I have a routing system with a modular structure, inside my general routing.yml there's an api_routing.yml and, inside it, there's one .yml for every 'module' of my application, those are:</p> <p dir="auto">benefits_routing.yml<br> entities_routing.yml<br> user_routing.yml</p> <p dir="auto">Focusing on benefits, the general routing.yml take all /api routes to go to api_routing.yml, that takes all /benefits routes to go to benefits_routing.yml. Thus, if routes inside my benefits_routing.yml are:</p> <h5 dir="auto">benefits_routing.yml</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="api_list_benefits: path: / defaults: {_controller: &quot;AppBundle:Benefits:list&quot; } methods: [GET] api_new_benefits: path: / defaults: {_controller: &quot;AppBundle:Benefits:new&quot; } methods: [POST]"><pre class="notranslate"><code class="notranslate">api_list_benefits: path: / defaults: {_controller: "AppBundle:Benefits:list" } methods: [GET] api_new_benefits: path: / defaults: {_controller: "AppBundle:Benefits:new" } methods: [POST] </code></pre></div> <p dir="auto">Then, if I make a POST request to <a href="http://domain/api/benefits" rel="nofollow">http://domain/api/benefits</a>, the router should match to the second route, right? Nope.</p> <p dir="auto">When I post to '/api/benefits' router throw a 405. Though, if I post to '/api/benefits/' it works. Weird, huh? In addition, both '/api/benefits' or '/api/benefits/' with GET method works...</p> <p dir="auto">I had a terrible hard time with this trouble and opened a question in stack overflow:</p> <p dir="auto"><a href="http://stackoverflow.com/questions/37834923/symfony3-routing-in-production" rel="nofollow">http://stackoverflow.com/questions/37834923/symfony3-routing-in-production</a></p> <p dir="auto">And then I started playing with Symfony code. Suprise! In my generated appProdUrlMatcher.php I found the following. For the first (GET) route, I could see:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (rtrim($pathinfo, '/') === '/api/entities') { if (!in_array($this-&gt;context-&gt;getMethod(), array('GET', 'HEAD'))) { //bla bla } }"><pre class="notranslate"><code class="notranslate">if (rtrim($pathinfo, '/') === '/api/entities') { if (!in_array($this-&gt;context-&gt;getMethod(), array('GET', 'HEAD'))) { //bla bla } } </code></pre></div> <p dir="auto">Perfect, that's why GET works! It's "rtrimming" the route making the final slash mean nothing.</p> <p dir="auto">Although, with the POST one:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if ($pathinfo === '/api/entities/') { if ($this-&gt;context-&gt;getMethod() != 'POST') { //bla bla } }"><pre class="notranslate"><code class="notranslate">if ($pathinfo === '/api/entities/') { if ($this-&gt;context-&gt;getMethod() != 'POST') { //bla bla } } </code></pre></div> <p dir="auto">Wait... what? Why isn't it rtrimming my route?</p> <p dir="auto">Okey... Once found this, the solution was clear: go to the place where it's generated and fix it. Several minutes later I found it:</p> <h5 dir="auto">/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php::compileRoute</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... // GET and HEAD are equivalent if (in_array('GET', $methods) &amp;&amp; !in_array('HEAD', $methods)) { $methods[] = 'HEAD'; } .... $supportsTrailingSlash = $supportsRedirections &amp;&amp; (!$methods || in_array('HEAD', $methods)); .... if ($supportsTrailingSlash &amp;&amp; substr($m['url'], -1) === '/') { $conditions[] = sprintf(&quot;rtrim(\$pathinfo, '/') === %s&quot;, var_export(rtrim(str_replace('\\', '', $m['url']), '/'), true)); $hasTrailingSlash = true; } else { $conditions[] = sprintf('$pathinfo === %s', var_export(str_replace('\\', '', $m['url']), true)); } ...."><pre class="notranslate"><code class="notranslate">... // GET and HEAD are equivalent if (in_array('GET', $methods) &amp;&amp; !in_array('HEAD', $methods)) { $methods[] = 'HEAD'; } .... $supportsTrailingSlash = $supportsRedirections &amp;&amp; (!$methods || in_array('HEAD', $methods)); .... if ($supportsTrailingSlash &amp;&amp; substr($m['url'], -1) === '/') { $conditions[] = sprintf("rtrim(\$pathinfo, '/') === %s", var_export(rtrim(str_replace('\\', '', $m['url']), '/'), true)); $hasTrailingSlash = true; } else { $conditions[] = sprintf('$pathinfo === %s', var_export(str_replace('\\', '', $m['url']), true)); } .... </code></pre></div> <p dir="auto">GET falls in the first condition, where it adds the rtrim, but POST does not.</p> <p dir="auto">I hope I have explained well the matter, it was not easy...</p> <p dir="auto">Question: Is this deliberated? If yes (I guess so), why? How can we fix then the final slash problem?</p> <p dir="auto">Best and many thanks,</p> <p dir="auto">Ignacio</p> <h6 dir="auto">Edit:</h6> <p dir="auto">I just realized that, if the request "supports trailing slash" it also adds:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (substr($pathinfo, -1) !== '/') { return $this-&gt;redirect($pathinfo.'/', 'api_list_entities'); }"><pre class="notranslate"><code class="notranslate">if (substr($pathinfo, -1) !== '/') { return $this-&gt;redirect($pathinfo.'/', 'api_list_entities'); } </code></pre></div> <p dir="auto">Which actually breaks in POST, because the redirect is always GET, I guess that's why the condition of GET or HEAD...</p> <p dir="auto">How to fix this? I have a patch for the PhpMatcherDumper.php::compileRoute function, but I guess that's not the way to proceed.</p> <p dir="auto">Thanks!</p>
<p dir="auto">There is currently a known limitation when using route imports that makes it impossible to to have a root route <code class="notranslate">/</code> be imported under a prefix without a trailing slash. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4639548" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/4322" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/4322/hovercard" href="https://github.com/symfony/symfony/issues/4322">#4322</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1409350" data-permission-text="Title is private" data-url="https://github.com/silexphp/Silex/issues/149" data-hovercard-type="issue" data-hovercard-url="/silexphp/Silex/issues/149/hovercard" href="https://github.com/silexphp/Silex/issues/149">silexphp/Silex#149</a></p> <p dir="auto">I propose to solve this problem in a generic way by offering an option when importing routes to remove or add trailing slashes (which defaults to null, meaning not modifying anything):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AcmeBusinessBundle_client: resource: &quot;@AcmeBusinessBundle/Resources/config/routing/client.yml&quot; prefix: /clients trailing_slashes: true|false|null"><pre class="notranslate"><code class="notranslate">AcmeBusinessBundle_client: resource: "@AcmeBusinessBundle/Resources/config/routing/client.yml" prefix: /clients trailing_slashes: true|false|null </code></pre></div> <p dir="auto">This way, the users can unify the path on import the way they want.</p> <p dir="auto">So for example</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="acme_business_client_list: path: / defaults: { _controller: AcmeBusinessBundle:Client:list }"><pre class="notranslate"><code class="notranslate">acme_business_client_list: path: / defaults: { _controller: AcmeBusinessBundle:Client:list } </code></pre></div> <p dir="auto">imported with <code class="notranslate">trailing_slashes: false</code> under <code class="notranslate">prefix: /clients</code> will result in path <code class="notranslate">/clients</code> instead of <code class="notranslate">/clients/</code>.</p> <p dir="auto">The other case with <code class="notranslate">trailing_slashes: true</code> is helpful when you import third party routes without trailing slash but you decided that you app should use training slashes everywhere consistently.</p>
1
<p dir="auto">Any <code class="notranslate">enum</code> type that references itself in a constructor appears to cause the compiler to run out of stack. As a simple example, here's <code class="notranslate">ll.rs</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enum list { nil, cons(int, list) } fn main() {}"><pre class="notranslate"><code class="notranslate">enum list { nil, cons(int, list) } fn main() {} </code></pre></div> <p dir="auto">On compiling with backtrace:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ RUST_LOG=rustc=0,::rt::backtrace rustc ll.rs rust: task eaed20 ran out of stack /usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x25)[0x7f44bdd105f5] /usr/local/bin/../lib/librustrt.so(+0x199b5)[0x7f44bdd109b5] /usr/local/bin/../lib/librustrt.so(_ZN9rust_task9new_stackEmPvm+0x3c)[0x7f44bdd10d1c] /usr/local/bin/../lib/librustrt.so(upcall_s_new_stack+0x1d)[0x7f44bdd1305d] /usr/local/bin/../lib/librustrt.so(+0x2cd39)[0x7f44bdd23d39] /usr/local/bin/../lib/librustrt.so(upcall_new_stack+0x42)[0x7f44bdd14192] /usr/local/bin/../lib/libstd-79ca5fac56b63fde-0.1.so(+0x5d7d5)[0x7f44be6517d5] /usr/local/bin/../lib/libstd-79ca5fac56b63fde-0.1.so(_ZN3map7chained3get17_b22fd9d6e1cb5e02E+0x1dd)[0x7f44be62173d] /usr/local/bin/../lib/libstd-79ca5fac56b63fde-0.1.so(+0x4ee94)[0x7f44be642e94] /usr/local/bin/../lib/librustc-4171d83aef249987-0.1.so(_ZN6middle2ty12tag_variants17_438379e850418683E+0x5c)[0x7f44be06e0bc] /usr/local/bin/../lib/librustc-4171d83aef249987-0.1.so(_ZN6middle2ty26type_structurally_contains17_ebae492368cb31bcE+0xa5)[0x7f44be060fb5] /usr/local/bin/../lib/librustc-4171d83aef249987-0.1.so(_ZN6middle2ty26type_structurally_contains17_ebae492368cb31bcE+0x27d)[0x7f44be06118d] error: internal compiler error unexpected failure note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues rust: upcall fail 'explicit failure', src/comp/driver/rustc.rs:176 /usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x25)[0x7f44bdd105f5] /usr/local/bin/../lib/librustrt.so(+0x2cd39)[0x7f44bdd23d39] /usr/local/bin/../lib/librustrt.so(upcall_fail+0x39)[0x7f44bdd13ad9] rustc[0x405222] rustc[0x40545c] /usr/local/bin/../lib/librustrt.so(task_start_wrapper+0x32)[0x7f44bdd0f812] rust: domain main @0xe9cc60 root task failed $ rustc --version rustc 0.1 host: x86_64-unknown-linux-gnu $"><pre class="notranslate">$ RUST_LOG=rustc=0,::rt::backtrace rustc ll.rs rust: task eaed20 ran out of stack /usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x25)[0x7f44bdd105f5] /usr/local/bin/../lib/librustrt.so(+0x199b5)[0x7f44bdd109b5] /usr/local/bin/../lib/librustrt.so(_ZN9rust_task9new_stackEmPvm+0x3c)[0x7f44bdd10d1c] /usr/local/bin/../lib/librustrt.so(upcall_s_new_stack+0x1d)[0x7f44bdd1305d] /usr/local/bin/../lib/librustrt.so(+0x2cd39)[0x7f44bdd23d39] /usr/local/bin/../lib/librustrt.so(upcall_new_stack+0x42)[0x7f44bdd14192] /usr/local/bin/../lib/libstd-79ca5fac56b63fde-0.1.so(+0x5d7d5)[0x7f44be6517d5] /usr/local/bin/../lib/libstd-79ca5fac56b63fde-0.1.so(_ZN3map7chained3get17_b22fd9d6e1cb5e02E+0x1dd)[0x7f44be62173d] /usr/local/bin/../lib/libstd-79ca5fac56b63fde-0.1.so(+0x4ee94)[0x7f44be642e94] /usr/local/bin/../lib/librustc-4171d83aef249987-0.1.so(_ZN6middle2ty12tag_variants17_438379e850418683E+0x5c)[0x7f44be06e0bc] /usr/local/bin/../lib/librustc-4171d83aef249987-0.1.so(_ZN6middle2ty26type_structurally_contains17_ebae492368cb31bcE+0xa5)[0x7f44be060fb5] /usr/local/bin/../lib/librustc-4171d83aef249987-0.1.so(_ZN6middle2ty26type_structurally_contains17_ebae492368cb31bcE+0x27d)[0x7f44be06118d] error: internal compiler error unexpected failure note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues rust: upcall fail <span class="pl-s"><span class="pl-pds">'</span>explicit failure<span class="pl-pds">'</span></span>, src/comp/driver/rustc.rs:176 /usr/local/bin/../lib/librustrt.so(_ZN9rust_task4failEv+0x25)[0x7f44bdd105f5] /usr/local/bin/../lib/librustrt.so(+0x2cd39)[0x7f44bdd23d39] /usr/local/bin/../lib/librustrt.so(upcall_fail+0x39)[0x7f44bdd13ad9] rustc[0x405222] rustc[0x40545c] /usr/local/bin/../lib/librustrt.so(task_start_wrapper+0x32)[0x7f44bdd0f812] rust: domain main @0xe9cc60 root task failed $ rustc --version rustc 0.1 host: x86_64-unknown-linux-gnu $</pre></div> <p dir="auto">(There appears to be many issues similar to this but I lack the expertise to determine whether they are the same bug. Those issues include <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1286474" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/742" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/742/hovercard" href="https://github.com/rust-lang/rust/issues/742">#742</a>. Is <code class="notranslate">tag</code> an old keyword for <code class="notranslate">enum</code>? My compiler doesn't know about it.)</p>
<p dir="auto">The <code class="notranslate">net</code> module has a few things which I would like to consider improving:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Must the <code class="notranslate">Acceptor</code> and <code class="notranslate">Listener</code> traits exists? It's a shame having to import the traits just to make a simple server.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Does the layout make sense? <code class="notranslate">std::io::net::ip</code> is quite long. Possibly a top-level <code class="notranslate">net</code> module? Possibly shorten using reexports?</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> What more needs to be exported? The current primitives implement the basic Reader/Writer traits, but not much beyond that. There are many methods provided by librustuv/libnative which are not exported. Need to make sure the signatures are correct.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> "Unix pipes" are not unix pipes on windows (they are named pipes)</li> </ul> <p dir="auto">Wish list</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">TcpStream::open("google.com:80")</code> does not work</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I can clone a tcp stream, but I cannot close that duplicate tcp stream (from my owned stream)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Creating a server is quite wordy. There are a number of imports, lots of ip addr configuration, lots of listening/accepting, etc.</li> </ul> <p dir="auto">Nominating, I believe it is quite important to have a solid networking story.</p>
0
<p dir="auto">This is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="47678610" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/2461" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/2461/hovercard" href="https://github.com/facebook/react/issues/2461">#2461</a>. Essentially if we wrap a render call in a try catch this works the first time. It seems like when <code class="notranslate">React.render</code> is called a second time (the update case) it does not work. It seems that <code class="notranslate">React.render</code> is async when updating an existing component tree.</p> <p dir="auto">I may be missing something but it seems like this leaves no way for developers to catch errors when rendering children components.</p> <p dir="auto">I have a JSBin demoing this issue here: <a href="http://jsbin.com/mifedepada/edit?js,console,output" rel="nofollow">http://jsbin.com/mifedepada/edit?js,console,output</a></p>
<p dir="auto">So I'm trying to put some graceful error handling in case 1 of my views crap out:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var MyGoodView = React.createClass({ render: function () { return &lt;p&gt;Cool&lt;/p&gt;; } }); var MyBadView = React.createClass({ render: function () { throw new Error('crap'); } }); try { React.render(&lt;MyBadView/&gt;, document.body); } catch (e) { React.render(&lt;MyGoodView/&gt;, document.body); }"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">MyGoodView</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">p</span><span class="pl-c1">&gt;</span>Cool<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">p</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-k">var</span> <span class="pl-v">MyBadView</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">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'crap'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-v">MyBadView</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-v">MyGoodView</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">However, <code class="notranslate">MyGoodView</code> does not get rendered w/ the following stack trace:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/fd284309818d836a1305ff759d73533cd3b2e9668c4a179d0e76c1b975190cc4/687474703a2f2f662e636c2e6c792f6974656d732f304733643373314734353270336731713054326a2f53637265656e25323053686f74253230323031342d31312d3034253230617425323031322e31312e3433253230414d2e706e67"><img src="https://camo.githubusercontent.com/fd284309818d836a1305ff759d73533cd3b2e9668c4a179d0e76c1b975190cc4/687474703a2f2f662e636c2e6c792f6974656d732f304733643373314734353270336731713054326a2f53637265656e25323053686f74253230323031342d31312d3034253230617425323031322e31312e3433253230414d2e706e67" alt="stack trace" data-canonical-src="http://f.cl.ly/items/0G3d3s1G452p3g1q0T2j/Screen%20Shot%202014-11-04%20at%2012.11.43%20AM.png" style="max-width: 100%;"></a></p> <p dir="auto">Seems like error throw React in a bad state where <code class="notranslate">renderedComponent</code> is <code class="notranslate">undefined</code>, thus cannot be unmounted. How do I handle this scenario?</p>
1
<p dir="auto">The docs pages for <a href="http://doc.rust-lang.org/std/marker/trait.Send.html" rel="nofollow">Send</a> and <a href="http://doc.rust-lang.org/std/marker/trait.Sync.html" rel="nofollow">Sync</a> show duplicated and incorrect items in the "Implementors" section.</p> <p dir="auto">Specifically, an incorrect positive impl for <code class="notranslate">Rc</code> is present and the correct negative impl is present twice.<br> Also, impls for <code class="notranslate">Arc</code> and <code class="notranslate">ArcInner</code> appear multiple times, with and without trait bounds and <code class="notranslate">where</code> clauses, with <code class="notranslate">Arc</code> having three appearances:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="impl&lt;T&gt; Send for Arc&lt;T&gt; where T: Send + Sync impl&lt;T: Sync + Send&gt; Send for Arc&lt;T&gt; impl&lt;T&gt; Send for Arc&lt;T&gt;"><pre class="notranslate"><span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Send</span> <span class="pl-k">for</span> <span class="pl-smi">Arc</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-k">where</span> <span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">Send</span> + <span class="pl-smi">Sync</span><span class="pl-kos"></span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">Sync</span> + <span class="pl-smi">Send</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Send</span> <span class="pl-k">for</span> <span class="pl-smi">Arc</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos"></span> <span class="pl-k">impl</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-smi">Send</span> <span class="pl-k">for</span> <span class="pl-smi">Arc</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos"></span></pre></div>
<h1 dir="auto">Issue</h1> <p dir="auto">I noticed with a few of my crates that I have some redundancies between my docs and the code in the crate, specifically testcases. As a example, here <code class="notranslate">nice_example()</code> is duplicated:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//! docs docs docs //! docs docs docs //! ``` //! fn nice_example() { ... } //! ``` ... #[test] fn nice_example() { ... }"><pre class="notranslate"><code class="notranslate">//! docs docs docs //! docs docs docs //! ``` //! fn nice_example() { ... } //! ``` ... #[test] fn nice_example() { ... } </code></pre></div> <p dir="auto">Now, there are right now two ways to deal with this:</p> <ul dir="auto"> <li>Keep both copies <ul dir="auto"> <li>Con: redundant copies, code can start drifting apart unintentionally.</li> <li>Pro: If docs and tests diverge intentional, no additional work is needed.</li> </ul> </li> <li>Remove the separate unit test copy of the code. <ul dir="auto"> <li>Pro: The docs will get tested anyway</li> <li>Pro: No redundancy</li> <li>Con: Unit tests get split between two locations</li> <li>Con: Unit tests start mixing with documentation, a change to either might cause changes to both and/or moving the unit test code back and forth between the docs and the crate.</li> </ul> </li> </ul> <p dir="auto">As an additional issue, having rust code in doc comments be highlighted as rust code is kinda complicated - or at least not implemented in most highlighters.</p> <h1 dir="auto">Proposal</h1> <p dir="auto">Have a way in doc comments to "include" the source code of an item in the documented crate, eg:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//! docs docs docs //! docs docs docs //! ``` //! #rustdoc_include self::nice_example //! ``` ... #[test] fn nice_example() { ... }"><pre class="notranslate"><code class="notranslate">//! docs docs docs //! docs docs docs //! ``` //! #rustdoc_include self::nice_example //! ``` ... #[test] fn nice_example() { ... } </code></pre></div> <ul dir="auto"> <li>Pro: Only one copy of the actual code</li> <li>Pro: No redundancy</li> <li>Pro: Unit tests can be kept separate from the docs, even if they are nicely documented and used as example code in them.</li> <li>Pro: If the docs don't want to use that particular code example anymore, only the reference needs<br> to be deleted, and a nicely commented unit test remains.</li> <li>The one copy of the code is outside doc comments, and thus will get highlighted correctly.</li> <li>Con: More machinery for rustdoc to support</li> <li>Con: Harder to read and write the documentation directly in the source.</li> </ul>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I 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">This should work:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// in pages/index.js import { Layout } from 'layout' export default () =&gt; &lt;Layout /&gt; // in layout/index.js export { default as Layout } from './Layout'"><pre class="notranslate"><span class="pl-c">// in pages/index.js</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Layout</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'layout'</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Layout</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c">// in layout/index.js</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-v">Layout</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./Layout'</span></pre></div> <h2 dir="auto">Current Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export { default as Layout } from './Layout' ^^^^^^ SyntaxError: Unexpected token export"><pre class="notranslate"><code class="notranslate">export { default as Layout } from './Layout' ^^^^^^ SyntaxError: Unexpected token export </code></pre></div> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Create a new next app.</li> <li>Add a custom server.js.</li> <li>Create a component outside of the pages directory.</li> <li>Import that component from within pages/index.js.</li> <li><code class="notranslate">yarn dev</code></li> </ol> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>3.0.6</td> </tr> <tr> <td>node</td> <td>8.2.1</td> </tr> <tr> <td>OS</td> <td>macOS Sierra 10.12.4</td> </tr> </tbody> </table>
<p dir="auto">Hello! I'm just now getting started with next (using version 1.2.3), and I have the following folder structure:</p> <ul dir="auto"> <li>package.json</li> <li>pages <ul dir="auto"> <li>index.js</li> </ul> </li> <li>lib <ul dir="auto"> <li>components <ul dir="auto"> <li>Test.js</li> </ul> </li> </ul> </li> </ul> <p dir="auto">I have a symlink: <code class="notranslate">node_modules/lib -&gt; ../lib</code>.<br> I import my <code class="notranslate">Test</code> component with <code class="notranslate">import Test from 'lib/components/Test'</code>.</p> <p dir="auto">This works fine, but it seems to not be transpiled: if I <code class="notranslate">import</code> anything from my <code class="notranslate">Test</code> component, I get the following error: <code class="notranslate">SyntaxError: Unexpected token import</code>.</p> <p dir="auto">Any guidance here? I'd be fine having my <code class="notranslate">/components</code> under <code class="notranslate">/pages</code> but I don't want them to be able to be served up standalone.</p> <p dir="auto">Thanks!</p>
1
<p dir="auto">I like the scrollBeyondLastLine feature but it scrolls too much to my state and i often find myself beeing scared to have cleared my file :s</p> <p dir="auto">That would be great if <code class="notranslate">editor.scrollBeyondLastLine</code> could be a boolean or an integer that would represent the maximium of lines it would overscroll.</p> <p dir="auto">Thanks</p>
<p dir="auto">We want to adopt tslint for checking our typescript code.</p> <p dir="auto">Most of our <a href="https://github.com/Microsoft/vscode/wiki/Coding-Guidelines">style guide</a> should be checked by tslint.</p> <h2 dir="auto">General</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add initial tslint.json</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add tslint to our gulp script</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add a Code task with a problem matcher for tslint</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Document its use in the <a href="https://github.com/Microsoft/vscode/wiki/How-to-Contribute">Contribution Guidelines</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Implement non externalised strings rule</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add tslint to the pre-commit hygene (wait until we are down to 0 with the warnigs)</li> </ul> <h2 dir="auto">Projects</h2> <p dir="auto">Add tslint checking to other vscode projects</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vscode-omnisharp</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vscode-node-debugger-adapter</li> </ul> <p dir="auto">Others non-core projects</p> <ul dir="auto"> <li>vsce</li> <li>vscode-vscode</li> </ul> <p dir="auto">Extensions</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> vscode-tslint</li> <li>vscode-eslint</li> <li>vscode-jslint</li> <li>vscode-editorConfig</li> </ul> <h2 dir="auto">Rules</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> no-unused-expression</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> no-unreachable</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> no-duplicate-variable</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> no-unexternalized-strings</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> no-duplicate-key (in object literals)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> no-unused-variable (includes imports) - 500 instances</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> curly (braces for if/do/while, <strong>in style guide</strong>) - 70 instances</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> class-name (PacalCased class and interface names), <strong>in style guide</strong>) - 3</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> semicolon (semicolon at end of statements) - 220 instances</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> no-unnecessary-semicolons - 60 instances</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> no-duplicate-case - 3 instances</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> tripple-equals - 10 instances</li> </ul> <p dir="auto">Candidates</p> <ul dir="auto"> <li>promise-must-complete - 10 instances (false positives?)</li> <li>no-switch-case-fall-through - 25</li> <li>forin (for ... statement must be filtered with an if) - 80 instances</li> <li>prefer-const (rule is in the TS repository) - ???</li> </ul> <p dir="auto">Future</p> <ul dir="auto"> <li>no-var-keyword - 5800</li> <li>indent tabs (covered by hygene tasks, <em>in style guide</em>)</li> <li>jsdoc-format - 200</li> <li>no-trailing-whitespace</li> <li>whitespace ...</li> </ul> <p dir="auto">Rejected</p> <ul dir="auto"> <li>no-shadowed-variable - 300 instances</li> <li>no-string-literal (disallow object access via string literals) - 16</li> <li>no-unused-imports (subset of no-unused-variables) - 170 instances</li> <li>no-function-expression (use arrow functions, <strong>in style guide</strong>) - 190 instances</li> <li>missing-optional-annotation - 10 instances</li> <li>no-use-before-declare</li> <li>no-empty-interfaces (we them in our service injection patterns)</li> <li>no-multiple-var-decl</li> <li>no-missing-visibility-modifiers</li> </ul>
0
<ul dir="auto"> <li>[ x ] I tried using the latest <code class="notranslate">mongoose/mongoose.d.ts</code> <code class="notranslate">"@types/mongoose": "^4.6.1"</code> file in this repo and had problems.</li> <li>[ x ] I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li>[ x ] I want to talk about <code class="notranslate">mongoose/mongoose.d.ts</code>. <ul dir="auto"> <li>The authors of that type definition are cc/ <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/simonxca/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/simonxca">@simonxca</a></li> </ul> </li> </ul> <p dir="auto">Hi, there is the problem with mongoose middleware definitions:<br> According to the docs <a href="http://mongoosejs.com/docs/middleware.html" rel="nofollow">http://mongoosejs.com/docs/middleware.html</a> function signature for the hook post save is may looks like this (error: MongoError, doc: Document, next: (err?: NativeError) =&gt; void)</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="schema.post('save', function(error, doc, next) { if (error.name === 'MongoError' &amp;&amp; error.code === 11000) { next(new Error('There was a duplicate key error')); } else { next(error); } }); "><pre class="notranslate"><span class="pl-s1">schema</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">'save'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">,</span> <span class="pl-s1">doc</span><span class="pl-kos">,</span> <span class="pl-s1">next</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">.</span><span class="pl-c1">name</span> <span class="pl-c1">===</span> <span class="pl-s">'MongoError'</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">error</span><span class="pl-kos">.</span><span class="pl-c1">code</span> <span class="pl-c1">===</span> <span class="pl-c1">11000</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">next</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'There was a duplicate key error'</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">else</span> <span class="pl-kos">{</span> <span class="pl-s1">next</span><span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">But typings has this</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /** * Defines a post hook for the document * Post hooks fire on the event emitted from document instances of Models compiled * from this schema. * @param method name of the method to hook * @param fn callback */ post&lt;T extends Document&gt;(method: string, fn: (doc: T, next: (err?: NativeError) =&gt; void, ...otherArgs: any[]) =&gt; void): this; post&lt;T extends Document&gt;(method: string, fn: (doc: T) =&gt; void, ...args: any[]): this;"><pre class="notranslate"> <span class="pl-c">/**</span> <span class="pl-c"> * Defines a post hook for the document</span> <span class="pl-c"> * Post hooks fire on the event emitted from document instances of Models compiled</span> <span class="pl-c"> * from this schema.</span> <span class="pl-c"> * <span class="pl-k">@param</span> method name of the method to hook</span> <span class="pl-c"> * <span class="pl-k">@param</span> fn callback</span> <span class="pl-c"> */</span> <span class="pl-s1">post</span><span class="pl-c1">&lt;</span><span class="pl-v">T</span> <span class="pl-s1">extends</span> <span class="pl-v">Document</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">method</span>: <span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-s1">fn</span>: <span class="pl-kos">(</span><span class="pl-s1">doc</span>: <span class="pl-v">T</span><span class="pl-kos">,</span> <span class="pl-s1">next</span>: <span class="pl-kos">(</span><span class="pl-s1">err</span>?<span class="pl-s1"></span>: <span class="pl-v">NativeError</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-k">void</span><span class="pl-kos">,</span> ...<span class="pl-s1">otherArgs</span>: <span class="pl-s1">any</span><span class="pl-kos">[</span><span class="pl-s1"></span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-k">void</span><span class="pl-kos">)</span>: <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-s1">post</span><span class="pl-c1">&lt;</span><span class="pl-v">T</span> <span class="pl-s1">extends</span> <span class="pl-v">Document</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">method</span>: <span class="pl-s1">string</span><span class="pl-kos">,</span> <span class="pl-s1">fn</span>: <span class="pl-kos">(</span><span class="pl-s1">doc</span>: <span class="pl-v">T</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-k">void</span><span class="pl-kos">,</span> ...<span class="pl-s1">args</span>: <span class="pl-s1">any</span><span class="pl-kos">[</span><span class="pl-s1"></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></pre></div> <p dir="auto">in other words, <code class="notranslate">error</code> signature was omitted</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alloy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alloy">@alloy</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gyzerok/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gyzerok">@gyzerok</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/huhuanming/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/huhuanming">@huhuanming</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jeremistadler/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jeremistadler">@jeremistadler</a></li> </ul> </li> </ul> <hr> <p dir="auto">Hey there! I'm combining Node, React, React DOM and React Native code in the same codebase (So that I can generate simultaneously iOS, Android and Web apps with Server-side rendering support), and I'm hitting the following errors in the type definitions for React native:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:60:13 TS2451: Cannot redeclare block-scoped variable 'global'. ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:84:13 TS2300: Duplicate identifier 'require'. ERROR in [at-loader] ./node_modules/@types/react-native/index.d.ts:8872:11 TS2451: Cannot redeclare block-scoped variable 'global'. ERROR in [at-loader] ./node_modules/@types/react-native/index.d.ts:8873:14 TS2300: Duplicate identifier 'require'. ERROR in [at-loader] ./node_modules/@types/webpack-env/index.d.ts:186:13 TS2300: Duplicate identifier 'require'."><pre class="notranslate"><code class="notranslate">ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:60:13 TS2451: Cannot redeclare block-scoped variable 'global'. ERROR in [at-loader] ./node_modules/@types/node/index.d.ts:84:13 TS2300: Duplicate identifier 'require'. ERROR in [at-loader] ./node_modules/@types/react-native/index.d.ts:8872:11 TS2451: Cannot redeclare block-scoped variable 'global'. ERROR in [at-loader] ./node_modules/@types/react-native/index.d.ts:8873:14 TS2300: Duplicate identifier 'require'. ERROR in [at-loader] ./node_modules/@types/webpack-env/index.d.ts:186:13 TS2300: Duplicate identifier 'require'. </code></pre></div> <p dir="auto">It looks like React Native redefines <code class="notranslate">global</code> and <code class="notranslate">require</code>:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare global { const global: GlobalStatic; function require(name: string): any; /** * This variable is set to true when react-native is running in Dev mode * Typical usage: * &lt;code&gt; if (__DEV__) console.log('Running in dev mode')&lt;/code&gt; */ var __DEV__: boolean }"><pre class="notranslate"><span class="pl-k">declare</span> global <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">global</span>: <span class="pl-smi">GlobalStatic</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s1">name</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * This variable is set to true when react-native is running in Dev mode</span> <span class="pl-c"> * Typical usage:</span> <span class="pl-c"> * &lt;code&gt; if (__DEV__) console.log('Running in dev mode')&lt;/code&gt;</span> <span class="pl-c"> */</span> <span class="pl-k">var</span> <span class="pl-c1">__DEV__</span>: <span class="pl-smi">boolean</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Since these are already defined by <code class="notranslate">@types/node</code>, the compiler complains. I was able to work around the issue by adding the following option to my <code class="notranslate">tsconfig.json</code> file, however I'd like to avoid doing that if possible:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;skipLibCheck&quot;: true }"><pre class="notranslate">{ <span class="pl-ent">"skipLibCheck"</span>: <span class="pl-c1">true</span> }</pre></div> <p dir="auto">Thanks in advance</p>
0
<h3 dir="auto">Description</h3> <p dir="auto">Currently, there is support only for one_success trigger_rule, which starts the task instance the moment after one of the upstream tasks succeeds. The idea for the new trigger_rule is to wait for all upstream tasks to be done and at least one of them succeed.</p> <h3 dir="auto">Use case/motivation</h3> <p dir="auto">The use case is to allow a OR-like behavior to trigger_rules.<br> Maybe even XOR-like behavior could be added as a second extra trigger_rule.</p> <h3 dir="auto">Related issues</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit a PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<p dir="auto"><strong>Description</strong><br> I would like to have a trigger rule that triggers a task if all the upstream tasks have executed (<em>all_done</em>) and there is atleast one successful upstream task. This would be like the trigger rule: <em>one_success</em>, except it'll wait for all upstream tasks to finish.</p> <p dir="auto"><strong>Use case / motivation</strong><br> I have downstream tasks that should run after all the upstream tasks have finished execution. I can't trigger the downstream task if none of the upstream tasks pass, but I need to trigger it if even one of them passes.</p> <p dir="auto"><strong>Are you willing to submit a PR?</strong><br> I can work on a PR, if the feature is approved.</p>
1
<hr> <p dir="auto"><strong>STOP READING NOW</strong></p> <p dir="auto">If you get the error message from the caption, because it is useless and too generic (are you sure that you build OpenCV library and not other make project?).<br> Reason of your build problem is somewhere above this line, you need to grab it instead.<br> To get right error message you should run "make" in verbose mode:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ make VERBOSE=1"><pre class="notranslate"><code class="notranslate">$ make VERBOSE=1 </code></pre></div> <p dir="auto">(without any -j options to prevent message lines mess)</p> <hr> <h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.1</li> <li>Operating System / Platform =&gt; Elementary OS (Loki)</li> <li>Compiler =&gt; make</li> </ul> <h5 dir="auto">Detailed description</h5> <ul dir="auto"> <li>When I did just <code class="notranslate">cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..</code>, <code class="notranslate">make -j4</code> worked all right```</li> <li>When I tried to <code class="notranslate">make -j4 VERBOSE=1</code> with Examples and Modules, I got this error</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends &quot;Unix Makefiles&quot; /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/build.make modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 28%] Built target opencv_surface_matching make -f modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/build.make modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends &quot;Unix Makefiles&quot; /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/build.make modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 28%] Built target example_surface_matching_ppf_load_match make -f modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/build.make modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends &quot;Unix Makefiles&quot; /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/build.make modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 28%] Built target example_surface_matching_ppf_normal_computation make -f modules/video/CMakeFiles/opencv_video.dir/build.make modules/video/CMakeFiles/opencv_video.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends &quot;Unix Makefiles&quot; /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video/CMakeFiles/opencv_video.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/video/CMakeFiles/opencv_video.dir/build.make modules/video/CMakeFiles/opencv_video.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/video/CMakeFiles/opencv_video.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 29%] Built target opencv_video make -f modules/video/CMakeFiles/opencv_test_video.dir/build.make modules/video/CMakeFiles/opencv_test_video.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends &quot;Unix Makefiles&quot; /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video/CMakeFiles/opencv_test_video.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/video/CMakeFiles/opencv_test_video.dir/build.make modules/video/CMakeFiles/opencv_test_video.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/video/CMakeFiles/opencv_test_video.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 30%] Built target opencv_test_video make -f modules/video/CMakeFiles/opencv_perf_video.dir/build.make modules/video/CMakeFiles/opencv_perf_video.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends &quot;Unix Makefiles&quot; /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video/CMakeFiles/opencv_perf_video.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/video/CMakeFiles/opencv_perf_video.dir/build.make modules/video/CMakeFiles/opencv_perf_video.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/video/CMakeFiles/opencv_perf_video.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 31%] Built target opencv_perf_video make -f modules/dnn/CMakeFiles/opencv_dnn.dir/build.make modules/dnn/CMakeFiles/opencv_dnn.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends &quot;Unix Makefiles&quot; /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/dnn /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn/CMakeFiles/opencv_dnn.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/dnn/CMakeFiles/opencv_dnn.dir/build.make modules/dnn/CMakeFiles/opencv_dnn.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/dnn/CMakeFiles/opencv_dnn.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 33%] Built target opencv_dnn make -f modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/build.make modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends &quot;Unix Makefiles&quot; /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/dnn /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/build.make modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 33%] Linking CXX executable ../../bin/example_dnn_fcn_semsegm cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn &amp;&amp; /usr/bin/cmake -E cmake_link_script CMakeFiles/example_dnn_fcn_semsegm.dir/link.txt --verbose=1 /usr/bin/c++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-parentheses -Wno-maybe-uninitialized -Wno-sign-promo -Wno-missing-declarations -O3 -DNDEBUG -DNDEBUG CMakeFiles/example_dnn_fcn_semsegm.dir/samples/fcn_semsegm.cpp.o -o ../../bin/example_dnn_fcn_semsegm -rdynamic ../../lib/libopencv_dnn.so.3.1.0 ../../lib/libopencv_highgui.so.3.1.0 ../../lib/libopencv_videoio.so.3.1.0 ../../lib/libopencv_imgcodecs.so.3.1.0 ../../lib/libopencv_imgproc.so.3.1.0 ../../lib/libopencv_core.so.3.1.0 -Wl,-rpath,/home/flipswitch/Programs/anaconda3/pkgs/opencv/build/lib ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) const' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;))' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, google::protobuf::io::CodedOutputStream*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::Message::GetTypeName[abi:cxx11]() const' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, unsigned char*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::Message::InitializationErrorString[abi:cxx11]() const' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::empty_string_[abi:cxx11]' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, google::protobuf::io::CodedOutputStream*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, google::protobuf::io::CodedOutputStream*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const*, google::protobuf::internal::ArenaStringPtr)' collect2: error: ld returned 1 exit status modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/build.make:100: recipe for target 'bin/example_dnn_fcn_semsegm' failed make[2]: *** [bin/example_dnn_fcn_semsegm] Error 1 make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' CMakeFiles/Makefile2:3094: recipe for target 'modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/all' failed make[1]: *** [modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/all] Error 2 make[1]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 "><pre class="notranslate"><code class="notranslate">... make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/build.make modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/surface_matching/CMakeFiles/opencv_surface_matching.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 28%] Built target opencv_surface_matching make -f modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/build.make modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/build.make modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/surface_matching/CMakeFiles/example_surface_matching_ppf_load_match.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 28%] Built target example_surface_matching_ppf_load_match make -f modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/build.make modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/build.make modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/surface_matching/CMakeFiles/example_surface_matching_ppf_normal_computation.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 28%] Built target example_surface_matching_ppf_normal_computation make -f modules/video/CMakeFiles/opencv_video.dir/build.make modules/video/CMakeFiles/opencv_video.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video/CMakeFiles/opencv_video.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/video/CMakeFiles/opencv_video.dir/build.make modules/video/CMakeFiles/opencv_video.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/video/CMakeFiles/opencv_video.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 29%] Built target opencv_video make -f modules/video/CMakeFiles/opencv_test_video.dir/build.make modules/video/CMakeFiles/opencv_test_video.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video/CMakeFiles/opencv_test_video.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/video/CMakeFiles/opencv_test_video.dir/build.make modules/video/CMakeFiles/opencv_test_video.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/video/CMakeFiles/opencv_test_video.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 30%] Built target opencv_test_video make -f modules/video/CMakeFiles/opencv_perf_video.dir/build.make modules/video/CMakeFiles/opencv_perf_video.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/video/CMakeFiles/opencv_perf_video.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/video/CMakeFiles/opencv_perf_video.dir/build.make modules/video/CMakeFiles/opencv_perf_video.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/video/CMakeFiles/opencv_perf_video.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 31%] Built target opencv_perf_video make -f modules/dnn/CMakeFiles/opencv_dnn.dir/build.make modules/dnn/CMakeFiles/opencv_dnn.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/dnn /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn/CMakeFiles/opencv_dnn.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/dnn/CMakeFiles/opencv_dnn.dir/build.make modules/dnn/CMakeFiles/opencv_dnn.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make[2]: Nothing to be done for 'modules/dnn/CMakeFiles/opencv_dnn.dir/build'. make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 33%] Built target opencv_dnn make -f modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/build.make modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/depend make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build &amp;&amp; /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/flipswitch/Programs/anaconda3/pkgs/opencv /home/flipswitch/Programs/anaconda3/pkgs/opencv_contrib/modules/dnn /home/flipswitch/Programs/anaconda3/pkgs/opencv/build /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' make -f modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/build.make modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/build make[2]: Entering directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' [ 33%] Linking CXX executable ../../bin/example_dnn_fcn_semsegm cd /home/flipswitch/Programs/anaconda3/pkgs/opencv/build/modules/dnn &amp;&amp; /usr/bin/cmake -E cmake_link_script CMakeFiles/example_dnn_fcn_semsegm.dir/link.txt --verbose=1 /usr/bin/c++ -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -Wno-shadow -Wno-parentheses -Wno-maybe-uninitialized -Wno-sign-promo -Wno-missing-declarations -O3 -DNDEBUG -DNDEBUG CMakeFiles/example_dnn_fcn_semsegm.dir/samples/fcn_semsegm.cpp.o -o ../../bin/example_dnn_fcn_semsegm -rdynamic ../../lib/libopencv_dnn.so.3.1.0 ../../lib/libopencv_highgui.so.3.1.0 ../../lib/libopencv_videoio.so.3.1.0 ../../lib/libopencv_imgcodecs.so.3.1.0 ../../lib/libopencv_imgproc.so.3.1.0 ../../lib/libopencv_core.so.3.1.0 -Wl,-rpath,/home/flipswitch/Programs/anaconda3/pkgs/opencv/build/lib ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::DescriptorPool::FindFileByName(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) const' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const*, void (*)(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;))' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, google::protobuf::io::CodedOutputStream*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::ReadBytes(google::protobuf::io::CodedInputStream*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::Message::GetTypeName[abi:cxx11]() const' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, unsigned char*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::Message::InitializationErrorString[abi:cxx11]() const' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::empty_string_[abi:cxx11]' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, google::protobuf::io::CodedOutputStream*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::WireFormatLite::WriteString(int, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, google::protobuf::io::CodedOutputStream*)' ../../lib/libopencv_dnn.so.3.1.0: undefined reference to `google::protobuf::internal::ArenaStringPtr::AssignWithDefault(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const*, google::protobuf::internal::ArenaStringPtr)' collect2: error: ld returned 1 exit status modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/build.make:100: recipe for target 'bin/example_dnn_fcn_semsegm' failed make[2]: *** [bin/example_dnn_fcn_semsegm] Error 1 make[2]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' CMakeFiles/Makefile2:3094: recipe for target 'modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/all' failed make[1]: *** [modules/dnn/CMakeFiles/example_dnn_fcn_semsegm.dir/all] Error 2 make[1]: Leaving directory '/home/flipswitch/Programs/anaconda3/pkgs/opencv/build' Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 </code></pre></div> <h5 dir="auto">Steps to reproduce</h5> <ul dir="auto"> <li>Downloaded opencv and opencv_contrib</li> <li>Then <code class="notranslate">cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=~/Programs/anaconda3/pkgs/opencv_contrib/modules -D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_IPP=OFF ..</code></li> <li>Followed by <code class="notranslate">make -j4 VERBOSE=1</code></li> <li>First time I tried without using <code class="notranslate">WITH_IPP=OFF</code>, it reached 50% and errored out with the same error.</li> <li>Next time I tried with it and it errored out at 23%</li> </ul>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; :4.0.0.21:</li> <li>Operating System / Platform =&gt; : windows10:</li> <li>Compiler =&gt; :pre-build version from pip:</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">background: i wanna achieve opencv dnn model to detect face in an image<br> after accessing the model and prototxt from <a href="https://github.com/opencv/opencv_extra/blob/master/testdata/dnn/download_models.py">opencv_extra/testdata/dnn/download_models.py</a>, i learned some sample code to test whether it works or not. And then, I got the following info:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[libprotobuf ERROR C:\projects\opencv-python\opencv\3rdparty\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format opencv_caffe.NetParameter: 2:1: Invalid control characters encountered in text. [libprotobuf ERROR C:\projects\opencv-python\opencv\3rdparty\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format opencv_caffe.NetParameter: 2:2: Interpreting non ascii codepoint 162. [libprotobuf ERROR C:\projects\opencv-python\opencv\3rdparty\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format opencv_caffe.NetParameter: 2:2: Expected identifier, got: ? Traceback (most recent call last): File &quot;src/facedetect/detector.py&quot;, line 103, in &lt;module&gt; util.gainFaceByDNN(path, modelpath, deploypath) File &quot;src/facedetect/detector.py&quot;, line 26, in gainFaceByDNN net = cv2.dnn.readNetFromCaffe(modelFile, configFile) cv2.error: OpenCV(4.0.0) C:\projects\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp:1151: error: (-2:Unspecified error) FAILED: ReadProtoFromTextFile(param_file, param). Failed to parse NetParameter file: D:\project\python\IQA\src\facedetect\res10_300x300_ssd_iter_140000.caffemodel in function 'cv::dnn::ReadNetParamsFromTextFileOrDie'"><pre class="notranslate"><code class="notranslate">[libprotobuf ERROR C:\projects\opencv-python\opencv\3rdparty\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format opencv_caffe.NetParameter: 2:1: Invalid control characters encountered in text. [libprotobuf ERROR C:\projects\opencv-python\opencv\3rdparty\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format opencv_caffe.NetParameter: 2:2: Interpreting non ascii codepoint 162. [libprotobuf ERROR C:\projects\opencv-python\opencv\3rdparty\protobuf\src\google\protobuf\text_format.cc:288] Error parsing text-format opencv_caffe.NetParameter: 2:2: Expected identifier, got: ? Traceback (most recent call last): File "src/facedetect/detector.py", line 103, in &lt;module&gt; util.gainFaceByDNN(path, modelpath, deploypath) File "src/facedetect/detector.py", line 26, in gainFaceByDNN net = cv2.dnn.readNetFromCaffe(modelFile, configFile) cv2.error: OpenCV(4.0.0) C:\projects\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp:1151: error: (-2:Unspecified error) FAILED: ReadProtoFromTextFile(param_file, param). Failed to parse NetParameter file: D:\project\python\IQA\src\facedetect\res10_300x300_ssd_iter_140000.caffemodel in function 'cv::dnn::ReadNetParamsFromTextFileOrDie' </code></pre></div> <p dir="auto">i have tried to google error, and got some solutions to try but they all failed, including checking the invisible content of the deploy.prototxt, redownload the files, etc.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">below is the code i used for test and it goes wrong on the first code.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="net = cv2.dnn.readNetFromCaffe(modelFile, configFile) image = cv2.imread(imgPath) (h, w) = image.shape[:2] blob = cv2.dnn.blobFromImage(cv2.resize(image, (300,300)), 1.0, (300,300), (103.93, 116.77, 123.68), False) net.setInput(blob) detections = net.forward()"><pre class="notranslate"><code class="notranslate">net = cv2.dnn.readNetFromCaffe(modelFile, configFile) image = cv2.imread(imgPath) (h, w) = image.shape[:2] blob = cv2.dnn.blobFromImage(cv2.resize(image, (300,300)), 1.0, (300,300), (103.93, 116.77, 123.68), False) net.setInput(blob) detections = net.forward() </code></pre></div> <p dir="auto">Is there any practical solutions ? thanks ~</p>
0
<p dir="auto">.navbar-brand has max-width: 200px. Don't see why this constaint is there, because some sites may wish to have wider logos. This can affect the centering of the logo at mobile (&lt; 768px) resolution</p>
<p dir="auto">I am using the 3.0 RC1 scripts and styles and it seems the navbar-brand (bootstrap.css line 2736) has its max-width set to 200px. Text beyond 200px wrap around. For desktop mode 200px can be restrictive.</p> <p dir="auto">Was the 200px width enforced due to a previous feature request? If not, dropping the max-width (or increasing by another 100px) maybe desirable for the desktop style. Tablet and Mobiles styles can still use 200px.</p>
1
<p dir="auto">When sending OPTION requests with token requests, IE11 and below said that the list could not find the request header. They tried various methods, such as reducing the browser blocking script, using es6-primise, using babel-polyfill. All browsers except IE browser were normal, and asked for your help. Look at the reason. Thank you.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/31311845/63649116-2a34a780-c76c-11e9-9f3c-2bbec55d5483.png"><img src="https://user-images.githubusercontent.com/31311845/63649116-2a34a780-c76c-11e9-9f3c-2bbec55d5483.png" alt="DIOX$EM@O0E$YJ5B30$QSYU" style="max-width: 100%;"></a></p>
<p dir="auto">在有带token请求的情况下,IE11及以下发送OPTION请求的时候说列表找不到请求头,尝试了各种办法,比如降低浏览器阻止脚本、使用es6-primise、使用babel-polyfill都尝试了依然不行,除了IE浏览器其他浏览器都正常,求大家的帮助帮看看是什么原因啊,谢谢。<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/31311845/63649078-c1e5c600-c76b-11e9-9aad-66685995a719.png"><img src="https://user-images.githubusercontent.com/31311845/63649078-c1e5c600-c76b-11e9-9aad-66685995a719.png" alt="DIOX$EM@O0E$YJ5B30$QSYU" style="max-width: 100%;"></a></p>
1
<p dir="auto">The preview iframe on the right of the code window shows duplicate code.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/169922/11039473/73866be6-86cd-11e5-960d-feba8376fd30.png"><img src="https://cloud.githubusercontent.com/assets/169922/11039473/73866be6-86cd-11e5-960d-feba8376fd30.png" alt="preview-iframe" style="max-width: 100%;"></a></p> <p dir="auto">When I checked the source code for the iframe, I did see the code duplicated twice as well.<br> This occurs on many, if not all challenges that I have taken so far. A refresh of the screen seems to temporarily resolve the issue at times, until I go to the next challenge. At which time, the code duplicates again.</p> <p dir="auto">Using Firefox 41.0.1 on Linux Mint 17</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-line-up-form-elements-responsively-with-bootstrap" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-line-up-form-elements-responsively-with-bootstrap</a> has an issue.</p> <p dir="auto">I think the problem is happening on all Waypoint pages; the device right side of the screen where the CatPhotoApp page displays the information is being displayed duplicated;</p> <p dir="auto">Another point is that the HTML / CSS code is not completely displayed when the page is loaded, it is necessary to click or edit the code so that the code from the previous lesson is displayed correctly;</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8672039/9483149/cbe9f67c-4b72-11e5-9b2a-698deaa06a4e.png"><img src="https://cloud.githubusercontent.com/assets/8672039/9483149/cbe9f67c-4b72-11e5-9b2a-698deaa06a4e.png" alt="duplicate" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8672039/9483184/285ff19a-4b73-11e5-8601-6c5fbb58215b.png"><img src="https://cloud.githubusercontent.com/assets/8672039/9483184/285ff19a-4b73-11e5-8601-6c5fbb58215b.png" alt="lost previous code" style="max-width: 100%;"></a></p>
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/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I would like to have an Avatar component with the logged in person's image.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Does not work, only if I import the image at the top, and write a static string as src.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Here is my code. I get user.img from this.state. I checked, it is the right value.</p> <p dir="auto"><code class="notranslate">&lt;Avatar src={</code>img/${user.img}.jpg<code class="notranslate">}/&gt;</code></p> <h2 dir="auto">Your Environment</h2> <p dir="auto">Using create-react-app</p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>v0.19.2</td> </tr> <tr> <td>React</td> <td>v15.6.1</td> </tr> <tr> <td>browser</td> <td>Chrome 62</td> </tr> </tbody> </table>
<h3 dir="auto">Problem description</h3> <p dir="auto">It's inconsistence, but seems like <code class="notranslate">TabIndicator</code>'s width does not calculated correctly.</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 1.0.0-alpha.21</li> <li>React: 15.6.1</li> <li>Browser: Safari</li> </ul> <h3 dir="auto">Images &amp; references</h3> <p dir="auto">When defined with:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1577655/27951303-1ead8000-630d-11e7-8a07-5780554a4d7f.png"><img width="295" alt="screen shot 2017-07-07 at 12 08 59 pm" src="https://user-images.githubusercontent.com/1577655/27951303-1ead8000-630d-11e7-8a07-5780554a4d7f.png" style="max-width: 100%;"></a></p> <p dir="auto">You get this:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1577655/27951282-0c0be860-630d-11e7-91d2-e0c974691b39.png"><img width="136" alt="screen shot 2017-07-07 at 12 01 57 pm" src="https://user-images.githubusercontent.com/1577655/27951282-0c0be860-630d-11e7-91d2-e0c974691b39.png" style="max-width: 100%;"></a></p> <hr> <p dir="auto">When commenting out the width it works:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1577655/27951317-2a5e07da-630d-11e7-9153-df35d5788df2.png"><img width="300" alt="screen shot 2017-07-07 at 12 09 05 pm" src="https://user-images.githubusercontent.com/1577655/27951317-2a5e07da-630d-11e7-9153-df35d5788df2.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1577655/27951327-2f8dd334-630d-11e7-9905-e410f036cd78.png"><img width="176" alt="screen shot 2017-07-07 at 12 09 09 pm" src="https://user-images.githubusercontent.com/1577655/27951327-2f8dd334-630d-11e7-9905-e410f036cd78.png" style="max-width: 100%;"></a></p>
0
<p dir="auto">All of the base jumps refer us back to the "get set for basejumps" waypoint for a review of cloud9, etc to setup the appropriate environment. However, half the pages (as you step through the 14 pages for that waypoint) FORCE you to open an external site in order to progress to the next page. It's a horrible user experience the first time through, and even worse if you go back to review and just want to refresh your memory and end up with half a dozen pages open just to get to the info you wanted.</p> <p dir="auto">Also, all the base jumps say to go back to this section in order to review how to setup Heroko, and there's no instructions for Heroku.</p>
<p dir="auto">The GIF Style challenges are great for short introductions, but more challenging for longer content, like "Get Set for Basejumps" there are several improvements that would make them easier to use:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <strong>Enable "Previous" button on final screen</strong><br> Right now there is no "Previous" button on the "Finish Challenge" screen. If I accidentally double-clicked or wanted to go back, I should be able to go back from the final slide.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <strong>Add (Step X of Y) somewhere on the screen</strong><br> It would be helpful to be able to see how many steps there are and how many are to go. As I am clicking through the "Get Set for BaseJumps" set, it seems interminable and there is no clear end in sight.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <strong>Add sidebar navigation</strong><br> This would require giving each slide a title, but would make it significantly easier to go back and forth between slides if you missed something or just want to review. On first view, unvisited slides could be grayed out until visited. This would also reinforce (or possibly replace) 1 above.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <strong>Add navigable anchors and <code class="notranslate">windows.history</code> entries for each slide</strong><br> This would make it possible to link to a specific slide, ties into the navigation above.<br> Examples <code class="notranslate">#slide1</code>, <code class="notranslate">#slide-title-slug-here</code>, or <code class="notranslate">#slideX-title-here</code></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <strong>Disable force "Click To Open" if Waypoint has been previously completed</strong><br> I shouldn't be forced to click to open another window if I've completed the challenge. If I'm just looking for a specific piece of information (especially in longer step challenges), it's a drag to have to open all those windows.</li> </ul>
1
<h2 dir="auto">ℹ Computer information</h2> <ul dir="auto"> <li>PowerToys version: v0.21.1</li> <li>PowerToy Utility: Fancy Zones</li> <li>Running PowerToys as Admin: Yes</li> <li>Windows build number: [run "winver"] Win10 Version 1909 (OS Build 18363.1082)</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>Set Allow Zones to span across monitors = YES</li> <li>Set Show Zones on all Monitors while dragging = YES</li> <li>Create 8 custom zones - 3 on left monitor; 3 on middle; 2 on right.</li> <li>Apply custom zone</li> <li>Drag window<br> NOTE - Settings Toggled: "Hold-Shift" (tried both on/off); "Show Zones on all Monitors..." (tried both on/off); "Allow zones to span across monitors" (tried on/off).</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">Show zones....</p> <h3 dir="auto">❌ Actual result</h3> <p dir="auto">Does NOT show zones<br> NOTE: The App works fine IF I Turn OFF "Allow Zones to span across monitors", but it then only shows on the main monitor which is not my intent. ODDLY - despite being toggle to "NOT" span monitors - it does now in a defunct manor (see imgs)</p> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto">ZONE SETUP WORKS FINE:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67766390/94039425-b8c39000-fd95-11ea-96f3-959732e4bc8a.png"><img src="https://user-images.githubusercontent.com/67766390/94039425-b8c39000-fd95-11ea-96f3-959732e4bc8a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">8-Zone works fine if "Allow zones to span across monitors" = OFF<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67766390/94040790-5d929d00-fd97-11ea-9a22-2e0ef6ffcdb7.png"><img src="https://user-images.githubusercontent.com/67766390/94040790-5d929d00-fd97-11ea-9a22-2e0ef6ffcdb7.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">THEN I TRY - "Allow zones to span across monitors" = ON and reapply Custom zone (Fancy Zones shows NO zones)<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67766390/94040947-9468b300-fd97-11ea-8bce-c0e49cb20d83.png"><img src="https://user-images.githubusercontent.com/67766390/94040947-9468b300-fd97-11ea-8bce-c0e49cb20d83.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">THEN I SWAP BACK to "Allow zones to span across monitors" = OFF (Fancy Zones shows only 5 of the 8 zones but they're spanning the primary monitor, spilling halfway onto the right monitor - however the zones disappear if I move my mouse off of primary (middle) monitor)<br> 8-Zone Custom: <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67766390/94041418-35f00480-fd98-11ea-9658-7697e0e37e8d.png"><img src="https://user-images.githubusercontent.com/67766390/94041418-35f00480-fd98-11ea-9658-7697e0e37e8d.png" alt="image" style="max-width: 100%;"></a><br> 8-Zone Custom: MOUSE CANNOT CROSS PRIMARY MONITOR THRESHOLD without Zones disappearing; NOTE ALSO - 3 of the 8 zones are missing<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67766390/94041986-f5dd5180-fd98-11ea-9745-c9714ac5f05c.png"><img src="https://user-images.githubusercontent.com/67766390/94041986-f5dd5180-fd98-11ea-9745-c9714ac5f05c.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">SAME THING HAPPENS IF I USE MY 3-Zone Custom template --&gt; MONITOR SPAN = OFF, BUT IT'S NOW WORKING ACROSS MONITORS BUT IN A DEFUNCT MANOR - Notice Zone 2 Label is missing &amp; if drag over to Zone 2 or 3, it makes the window Cover both 2, 3, and the remaining Non-Zone left on the right monitor.<br> 3-zone Custom:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67766390/94039855-3d161300-fd96-11ea-8756-f9c71c92984b.png"><img src="https://user-images.githubusercontent.com/67766390/94039855-3d161300-fd96-11ea-8756-f9c71c92984b.png" alt="image" style="max-width: 100%;"></a><br> 3-Zone Custom: <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67766390/94040453-f83eac00-fd96-11ea-8f6d-9f00832044db.png"><img src="https://user-images.githubusercontent.com/67766390/94040453-f83eac00-fd96-11ea-8f6d-9f00832044db.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
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="W0921 21:05:38.642280 11417 docker.go:265] found a container with the &quot;k8s&quot; prefix, but too few fields (2): &quot;k8s_unidentified&quot; I0921 21:05:38.642486 11417 container_gc.go:140] Removing unidentified dead container &quot;/k8s_unidentified&quot; with ID &quot;2876&quot; I0921 21:05:38.642860 11417 disk_manager.go:114] Running out of space on disk for &quot;root&quot;: available 0 MB, threshold 250 MB I0921 21:05:38.642971 11417 disk_manager.go:114] Running out of space on disk for &quot;docker&quot;: available 1 MB, threshold 250 MB I0921 21:05:38.643086 11417 disk_manager.go:114] Running out of space on disk for &quot;root&quot;: available 9 MB, threshold 10 MB I0921 21:05:38.643267 11417 disk_manager.go:114] Running out of space on disk for &quot;root&quot;: available 9 MB, threshold 10 MB I0921 21:05:38.643675 11417 image_manager.go:255] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes I0921 21:05:38.643804 11417 image_manager.go:255] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes I0921 21:05:38.643927 11417 image_manager.go:255] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes I0921 21:05:38.644042 11417 image_manager.go:255] [ImageManager]: Removing image &quot;image-0&quot; to free 1024 bytes I0921 21:05:38.644185 11417 image_manager.go:203] [ImageManager]: Disk usage on &quot;&quot; () is at 95% which is over the high threshold (90%). Trying to free 150 bytes I0921 21:05:38.644229 11417 image_manager.go:255] [ImageManager]: Removing image &quot;image-0&quot; to free 450 bytes I0921 21:05:38.644305 11417 image_manager.go:203] [ImageManager]: Disk usage on &quot;&quot; () is at 95% which is over the high threshold (90%). Trying to free 150 bytes I0921 21:05:38.644337 11417 image_manager.go:255] [ImageManager]: Removing image &quot;image-0&quot; to free 50 bytes W0921 21:05:38.646950 11417 kubelet.go:586] Data dir for pod &quot;bothpod&quot; exists in both old and new form, using new W0921 21:05:38.647292 11417 kubelet.go:637] Data dir for pod &quot;newpod&quot;, container &quot;bothctr&quot; exists in both old and new form, using new --- FAIL: TestSyncLoopAbort-2 (0.00s) kubelet_test.go:346: expected syncLoopIteration to return !ok since update chan was closed E0921 21:05:38.663308 11417 kubelet.go:1609] Pod &quot;_&quot;: HostPort is already allocated, ignoring: [[0].port: duplicate value '81/'] E0921 21:05:38.664016 11417 kubelet.go:1609] Pod &quot;newpod_foo&quot;: HostPort is already allocated, ignoring: [[0].port: duplicate value '80/'] E0921 21:05:38.667189 11417 kubelet.go:1609] Pod &quot;pod2_&quot;: HostPort is already allocated, ignoring: [[0].port: duplicate value '80/'] E0921 21:05:38.669280 11417 kubelet.go:1201] Deleting mirror pod &quot;foo_ns&quot; because it is outdated W0921 21:05:38.673735 11417 kubelet.go:781] Port name conflicted, &quot;fooContainer-foo&quot; is defined more than once W0921 21:05:38.673801 11417 kubelet.go:781] Port name conflicted, &quot;fooContainer-TCP:80&quot; is defined more than once E0921 21:05:38.684049 11417 node_manager.go:478] Error updating node status, will retry: error getting node &quot;127.0.0.1&quot;: Node &quot;127.0.0.1&quot; not found E0921 21:05:38.684109 11417 node_manager.go:478] Error updating node status, will retry: error getting node &quot;127.0.0.1&quot;: Node &quot;127.0.0.1&quot; not found E0921 21:05:38.684211 11417 node_manager.go:478] Error updating node status, will retry: error getting node &quot;127.0.0.1&quot;: Node &quot;127.0.0.1&quot; not found E0921 21:05:38.684248 11417 node_manager.go:478] Error updating node status, will retry: error getting node &quot;127.0.0.1&quot;: Node &quot;127.0.0.1&quot; not found E0921 21:05:38.684286 11417 node_manager.go:478] Error updating node status, will retry: error getting node &quot;127.0.0.1&quot;: Node &quot;127.0.0.1&quot; not found I0921 21:05:38.784666 11417 node_manager.go:279] Node 127.0.0.1 was previously registered I0921 21:05:38.784849 11417 plugins.go:56] Registering credential provider: .dockercfg I0921 21:05:38.835534 11417 plugins.go:56] Registering credential provider: .dockercfg I0921 21:05:38.835691 11417 plugins.go:56] Registering credential provider: .dockercfg I0921 21:05:38.886180 11417 plugins.go:56] Registering credential provider: .dockercfg W0921 21:05:38.886326 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886347 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886361 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886374 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886413 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886453 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886467 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886479 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886524 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_98765_0&quot; W0921 21:05:38.886539 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_98765_0&quot; W0921 21:05:38.886553 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886564 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886594 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886631 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886644 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_98765_0&quot; W0921 21:05:38.886655 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_98765_0&quot; W0921 21:05:38.886693 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_12345678_0&quot; W0921 21:05:38.886707 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_12345678_0&quot; W0921 21:05:38.886718 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886729 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886749 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_12345678_0&quot; W0921 21:05:38.886760 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_bar.hash123_bar_new_12345678_0&quot; W0921 21:05:38.886772 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; W0921 21:05:38.886782 11417 docker.go:275] invalid container hash &quot;hash123&quot; in container &quot;k8s_POD.hash123_foo_new_12345678_0&quot; I0921 21:05:38.887038 11417 plugins.go:56] Registering credential provider: .dockercfg I0921 21:05:38.887099 11417 runonce.go:71] waiting for 1 pods I0921 21:05:38.887227 11417 runonce.go:135] Container &quot;bar&quot; not running: api.ContainerState{Waiting:(*api.ContainerStateWaiting)(0xc2081e9f80), Running:(*api.ContainerStateRunning)(nil), Terminated:(*api.ContainerStateTerminated)(nil)} I0921 21:05:38.887250 11417 runonce.go:109] pod &quot;foo&quot; containers not running: syncing E0921 21:05:38.887882 11417 manager.go:1491] DNS ResolvConfPath is empty. I0921 21:05:38.888079 11417 hairpin.go:49] Unable to find pair interface, setting up all interfaces: exec: &quot;nsenter&quot;: executable file not found in $PATH W0921 21:05:38.891155 11417 docker.go:265] found a container with the &quot;k8s&quot; prefix, but too few fields (5): &quot;k8s_net_foo.new.test_abcdefgh_42&quot; I0921 21:05:38.891249 11417 runonce.go:119] pod &quot;foo&quot; containers synced, waiting for 1ms W0921 21:05:38.892523 11417 docker.go:265] found a container with the &quot;k8s&quot; prefix, but too few fields (5): &quot;k8s_net_foo.new.test_abcdefgh_42&quot; E0921 21:05:38.892555 11417 manager.go:859] Error examining the container: parse docker container name &quot;/k8s_net_foo.new.test_abcdefgh_42&quot; error: Docker container name &quot;k8s_net_foo.new.test_abcdefgh_42&quot; has less parts than expected [k8s net foo.new.test abcdefgh 42] W0921 21:05:38.892673 11417 docker.go:265] found a container with the &quot;k8s&quot; prefix, but too few fields (5): &quot;k8s_net_foo.new.test_abcdefgh_42&quot; I0921 21:05:38.892701 11417 runonce.go:106] pod &quot;foo&quot; containers running I0921 21:05:38.892717 11417 runonce.go:81] started pod &quot;foo&quot; I0921 21:05:38.892753 11417 runonce.go:87] 1 pods started W0921 21:05:39.253084 11417 connection.go:126] Stream rejected: Unable to parse '' as a port: strconv.ParseUint: parsing &quot;&quot;: invalid syntax W0921 21:05:39.257265 11417 connection.go:126] Stream rejected: Unable to parse 'abc' as a port: strconv.ParseUint: parsing &quot;abc&quot;: invalid syntax W0921 21:05:39.273529 11417 connection.go:126] Stream rejected: Unable to parse '-1' as a port: strconv.ParseUint: parsing &quot;-1&quot;: invalid syntax W0921 21:05:39.277341 11417 connection.go:126] Stream rejected: Unable to parse '65536' as a port: strconv.ParseUint: parsing &quot;65536&quot;: value out of range W0921 21:05:39.281039 11417 connection.go:126] Stream rejected: Port '0' must be greater than 0 FAIL"><pre class="notranslate"><code class="notranslate">W0921 21:05:38.642280 11417 docker.go:265] found a container with the "k8s" prefix, but too few fields (2): "k8s_unidentified" I0921 21:05:38.642486 11417 container_gc.go:140] Removing unidentified dead container "/k8s_unidentified" with ID "2876" I0921 21:05:38.642860 11417 disk_manager.go:114] Running out of space on disk for "root": available 0 MB, threshold 250 MB I0921 21:05:38.642971 11417 disk_manager.go:114] Running out of space on disk for "docker": available 1 MB, threshold 250 MB I0921 21:05:38.643086 11417 disk_manager.go:114] Running out of space on disk for "root": available 9 MB, threshold 10 MB I0921 21:05:38.643267 11417 disk_manager.go:114] Running out of space on disk for "root": available 9 MB, threshold 10 MB I0921 21:05:38.643675 11417 image_manager.go:255] [ImageManager]: Removing image "image-0" to free 1024 bytes I0921 21:05:38.643804 11417 image_manager.go:255] [ImageManager]: Removing image "image-0" to free 1024 bytes I0921 21:05:38.643927 11417 image_manager.go:255] [ImageManager]: Removing image "image-0" to free 1024 bytes I0921 21:05:38.644042 11417 image_manager.go:255] [ImageManager]: Removing image "image-0" to free 1024 bytes I0921 21:05:38.644185 11417 image_manager.go:203] [ImageManager]: Disk usage on "" () is at 95% which is over the high threshold (90%). Trying to free 150 bytes I0921 21:05:38.644229 11417 image_manager.go:255] [ImageManager]: Removing image "image-0" to free 450 bytes I0921 21:05:38.644305 11417 image_manager.go:203] [ImageManager]: Disk usage on "" () is at 95% which is over the high threshold (90%). Trying to free 150 bytes I0921 21:05:38.644337 11417 image_manager.go:255] [ImageManager]: Removing image "image-0" to free 50 bytes W0921 21:05:38.646950 11417 kubelet.go:586] Data dir for pod "bothpod" exists in both old and new form, using new W0921 21:05:38.647292 11417 kubelet.go:637] Data dir for pod "newpod", container "bothctr" exists in both old and new form, using new --- FAIL: TestSyncLoopAbort-2 (0.00s) kubelet_test.go:346: expected syncLoopIteration to return !ok since update chan was closed E0921 21:05:38.663308 11417 kubelet.go:1609] Pod "_": HostPort is already allocated, ignoring: [[0].port: duplicate value '81/'] E0921 21:05:38.664016 11417 kubelet.go:1609] Pod "newpod_foo": HostPort is already allocated, ignoring: [[0].port: duplicate value '80/'] E0921 21:05:38.667189 11417 kubelet.go:1609] Pod "pod2_": HostPort is already allocated, ignoring: [[0].port: duplicate value '80/'] E0921 21:05:38.669280 11417 kubelet.go:1201] Deleting mirror pod "foo_ns" because it is outdated W0921 21:05:38.673735 11417 kubelet.go:781] Port name conflicted, "fooContainer-foo" is defined more than once W0921 21:05:38.673801 11417 kubelet.go:781] Port name conflicted, "fooContainer-TCP:80" is defined more than once E0921 21:05:38.684049 11417 node_manager.go:478] Error updating node status, will retry: error getting node "127.0.0.1": Node "127.0.0.1" not found E0921 21:05:38.684109 11417 node_manager.go:478] Error updating node status, will retry: error getting node "127.0.0.1": Node "127.0.0.1" not found E0921 21:05:38.684211 11417 node_manager.go:478] Error updating node status, will retry: error getting node "127.0.0.1": Node "127.0.0.1" not found E0921 21:05:38.684248 11417 node_manager.go:478] Error updating node status, will retry: error getting node "127.0.0.1": Node "127.0.0.1" not found E0921 21:05:38.684286 11417 node_manager.go:478] Error updating node status, will retry: error getting node "127.0.0.1": Node "127.0.0.1" not found I0921 21:05:38.784666 11417 node_manager.go:279] Node 127.0.0.1 was previously registered I0921 21:05:38.784849 11417 plugins.go:56] Registering credential provider: .dockercfg I0921 21:05:38.835534 11417 plugins.go:56] Registering credential provider: .dockercfg I0921 21:05:38.835691 11417 plugins.go:56] Registering credential provider: .dockercfg I0921 21:05:38.886180 11417 plugins.go:56] Registering credential provider: .dockercfg W0921 21:05:38.886326 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_foo_new_12345678_0" W0921 21:05:38.886347 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_foo_new_12345678_0" W0921 21:05:38.886361 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886374 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886413 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_foo_new_12345678_0" W0921 21:05:38.886453 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_foo_new_12345678_0" W0921 21:05:38.886467 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886479 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886524 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_98765_0" W0921 21:05:38.886539 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_98765_0" W0921 21:05:38.886553 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886564 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886594 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886631 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886644 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_98765_0" W0921 21:05:38.886655 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_98765_0" W0921 21:05:38.886693 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_12345678_0" W0921 21:05:38.886707 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_12345678_0" W0921 21:05:38.886718 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886729 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886749 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_12345678_0" W0921 21:05:38.886760 11417 docker.go:275] invalid container hash "hash123" in container "k8s_bar.hash123_bar_new_12345678_0" W0921 21:05:38.886772 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" W0921 21:05:38.886782 11417 docker.go:275] invalid container hash "hash123" in container "k8s_POD.hash123_foo_new_12345678_0" I0921 21:05:38.887038 11417 plugins.go:56] Registering credential provider: .dockercfg I0921 21:05:38.887099 11417 runonce.go:71] waiting for 1 pods I0921 21:05:38.887227 11417 runonce.go:135] Container "bar" not running: api.ContainerState{Waiting:(*api.ContainerStateWaiting)(0xc2081e9f80), Running:(*api.ContainerStateRunning)(nil), Terminated:(*api.ContainerStateTerminated)(nil)} I0921 21:05:38.887250 11417 runonce.go:109] pod "foo" containers not running: syncing E0921 21:05:38.887882 11417 manager.go:1491] DNS ResolvConfPath is empty. I0921 21:05:38.888079 11417 hairpin.go:49] Unable to find pair interface, setting up all interfaces: exec: "nsenter": executable file not found in $PATH W0921 21:05:38.891155 11417 docker.go:265] found a container with the "k8s" prefix, but too few fields (5): "k8s_net_foo.new.test_abcdefgh_42" I0921 21:05:38.891249 11417 runonce.go:119] pod "foo" containers synced, waiting for 1ms W0921 21:05:38.892523 11417 docker.go:265] found a container with the "k8s" prefix, but too few fields (5): "k8s_net_foo.new.test_abcdefgh_42" E0921 21:05:38.892555 11417 manager.go:859] Error examining the container: parse docker container name "/k8s_net_foo.new.test_abcdefgh_42" error: Docker container name "k8s_net_foo.new.test_abcdefgh_42" has less parts than expected [k8s net foo.new.test abcdefgh 42] W0921 21:05:38.892673 11417 docker.go:265] found a container with the "k8s" prefix, but too few fields (5): "k8s_net_foo.new.test_abcdefgh_42" I0921 21:05:38.892701 11417 runonce.go:106] pod "foo" containers running I0921 21:05:38.892717 11417 runonce.go:81] started pod "foo" I0921 21:05:38.892753 11417 runonce.go:87] 1 pods started W0921 21:05:39.253084 11417 connection.go:126] Stream rejected: Unable to parse '' as a port: strconv.ParseUint: parsing "": invalid syntax W0921 21:05:39.257265 11417 connection.go:126] Stream rejected: Unable to parse 'abc' as a port: strconv.ParseUint: parsing "abc": invalid syntax W0921 21:05:39.273529 11417 connection.go:126] Stream rejected: Unable to parse '-1' as a port: strconv.ParseUint: parsing "-1": invalid syntax W0921 21:05:39.277341 11417 connection.go:126] Stream rejected: Unable to parse '65536' as a port: strconv.ParseUint: parsing "65536": value out of range W0921 21:05:39.281039 11417 connection.go:126] Stream rejected: Port '0' must be greater than 0 FAIL </code></pre></div>
<p dir="auto">Hi!</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./cluster/kube-up.sh ... Starting cluster using provider: vagrant ... calling verify-prereqs ... calling kube-up Bringing machine 'master' up with 'virtualbox' provider... Bringing machine 'node-1' up with 'virtualbox' provider... ==&gt; master: Importing base box 'kube-fedora23'... ==&gt; master: Matching MAC address for NAT networking... ==&gt; master: Setting the name of the VM: kubernetes_master_1465131057159_61370 ==&gt; master: Fixed port collision for 22 =&gt; 2222. Now on port 2200. ==&gt; master: Clearing any previously set network interfaces... ==&gt; master: Preparing network interfaces based on configuration... master: Adapter 1: nat master: Adapter 2: hostonly ==&gt; master: Forwarding ports... master: 22 (guest) =&gt; 2200 (host) (adapter 1) ==&gt; master: Running 'pre-boot' VM customizations... ==&gt; master: Booting VM... ==&gt; master: Waiting for machine to boot. This may take a few minutes... master: SSH address: 127.0.0.1:2200 master: SSH username: vagrant master: SSH auth method: private key master: master: Vagrant insecure key detected. Vagrant will automatically replace master: this with a newly generated keypair for better security. master: master: Inserting generated public key within guest... master: Removing insecure key from the guest if it's present... master: Key inserted! Disconnecting and reconnecting using new SSH key... ==&gt; master: Machine booted and ready! ==&gt; master: Checking for guest additions in VM... ==&gt; master: Configuring and enabling network interfaces... ==&gt; master: Exporting NFS shared folders... ==&gt; master: Preparing to edit /etc/exports. Administrator privileges will be required... ● nfs-server.service - NFS server and services Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled) Active: active (exited) since Fri 2016-06-03 07:44:24 EDT; 2 days ago Main PID: 1029 (code=exited, status=0/SUCCESS) Tasks: 0 Memory: 0B CPU: 0 CGroup: /system.slice/nfs-server.service Jun 03 07:44:24 Monster systemd[1]: Starting NFS server and services... Jun 03 07:44:24 Monster systemd[1]: Started NFS server and services. exportfs: duplicated export entries: exportfs: 10.245.1.2:/mnt/linux-data/Code/Code9/kubernetes exportfs: 10.245.1.2:/mnt/linux-data/Code/Code9/kubernetes ==&gt; master: Mounting NFS shared folders... The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -o 'vers=3,udp' 10.245.1.1:'/mnt/linux-data/Code/Code9/kubernetes' /vagrant Stdout from the command: mount.nfs: access denied by server while mounting 10.245.1.1:/mnt/linux-data/Code/Code9/kubernetes Stderr from the command:"><pre class="notranslate"><code class="notranslate">$ ./cluster/kube-up.sh ... Starting cluster using provider: vagrant ... calling verify-prereqs ... calling kube-up Bringing machine 'master' up with 'virtualbox' provider... Bringing machine 'node-1' up with 'virtualbox' provider... ==&gt; master: Importing base box 'kube-fedora23'... ==&gt; master: Matching MAC address for NAT networking... ==&gt; master: Setting the name of the VM: kubernetes_master_1465131057159_61370 ==&gt; master: Fixed port collision for 22 =&gt; 2222. Now on port 2200. ==&gt; master: Clearing any previously set network interfaces... ==&gt; master: Preparing network interfaces based on configuration... master: Adapter 1: nat master: Adapter 2: hostonly ==&gt; master: Forwarding ports... master: 22 (guest) =&gt; 2200 (host) (adapter 1) ==&gt; master: Running 'pre-boot' VM customizations... ==&gt; master: Booting VM... ==&gt; master: Waiting for machine to boot. This may take a few minutes... master: SSH address: 127.0.0.1:2200 master: SSH username: vagrant master: SSH auth method: private key master: master: Vagrant insecure key detected. Vagrant will automatically replace master: this with a newly generated keypair for better security. master: master: Inserting generated public key within guest... master: Removing insecure key from the guest if it's present... master: Key inserted! Disconnecting and reconnecting using new SSH key... ==&gt; master: Machine booted and ready! ==&gt; master: Checking for guest additions in VM... ==&gt; master: Configuring and enabling network interfaces... ==&gt; master: Exporting NFS shared folders... ==&gt; master: Preparing to edit /etc/exports. Administrator privileges will be required... ● nfs-server.service - NFS server and services Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled) Active: active (exited) since Fri 2016-06-03 07:44:24 EDT; 2 days ago Main PID: 1029 (code=exited, status=0/SUCCESS) Tasks: 0 Memory: 0B CPU: 0 CGroup: /system.slice/nfs-server.service Jun 03 07:44:24 Monster systemd[1]: Starting NFS server and services... Jun 03 07:44:24 Monster systemd[1]: Started NFS server and services. exportfs: duplicated export entries: exportfs: 10.245.1.2:/mnt/linux-data/Code/Code9/kubernetes exportfs: 10.245.1.2:/mnt/linux-data/Code/Code9/kubernetes ==&gt; master: Mounting NFS shared folders... The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -o 'vers=3,udp' 10.245.1.1:'/mnt/linux-data/Code/Code9/kubernetes' /vagrant Stdout from the command: mount.nfs: access denied by server while mounting 10.245.1.1:/mnt/linux-data/Code/Code9/kubernetes Stderr from the command: </code></pre></div> <p dir="auto">I have already entered my password for sudo rights in that terminal in the last few minutes, but the first time I tried the command it asked me for my password.</p>
0
<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">CTCLoss occassionally causes segfault</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# model class StrippedResnet(nn.Module): def __init__(self, base_model: nn.Module, n_classes: int): super().__init__() self.base = nn.Sequential(*list(base_model.children())[:-2]) self.last_conv = nn.Conv2d( 512, n_classes, (2, 3), stride=1, padding=(10, 1), # This has to be padded to get shape of [1,95,/23/,1] bias=False ) nn.init.kaiming_normal_( self.last_conv.weight, mode='fan_out', nonlinearity='relu' ) def forward(self, x): x = self.base(x) x = self.last_conv(x) return x"><pre class="notranslate"><code class="notranslate"># model class StrippedResnet(nn.Module): def __init__(self, base_model: nn.Module, n_classes: int): super().__init__() self.base = nn.Sequential(*list(base_model.children())[:-2]) self.last_conv = nn.Conv2d( 512, n_classes, (2, 3), stride=1, padding=(10, 1), # This has to be padded to get shape of [1,95,/23/,1] bias=False ) nn.init.kaiming_normal_( self.last_conv.weight, mode='fan_out', nonlinearity='relu' ) def forward(self, x): x = self.base(x) x = self.last_conv(x) return x </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# script.py batch_size = 1 loader = get_loader() model = resnet18(pretrained=True) model = StrippedResnet(model, num_classes) criterion = nn.CTCLoss() model = model.train() for data in loader: features = data['image'].type('torch.DoubleTensor') model = model.double() labels = bat_to_tensor(data['text']) logits = model.forward(features) probs = nn.functional.log_softmax(logits, 2) _, preds = torch.max(logits, 2) pred_lens = Tensor([preds.size(0)] * batch_size).cpu() label_lens = Tensor(batch_size).cpu() probs = torch.squeeze(probs, 3).view(23, batch_size, num_classes).cpu() # line that usually causes the segfault loss = criterion(probs, labels, pred_lens, label_lens)"><pre class="notranslate"><code class="notranslate"># script.py batch_size = 1 loader = get_loader() model = resnet18(pretrained=True) model = StrippedResnet(model, num_classes) criterion = nn.CTCLoss() model = model.train() for data in loader: features = data['image'].type('torch.DoubleTensor') model = model.double() labels = bat_to_tensor(data['text']) logits = model.forward(features) probs = nn.functional.log_softmax(logits, 2) _, preds = torch.max(logits, 2) pred_lens = Tensor([preds.size(0)] * batch_size).cpu() label_lens = Tensor(batch_size).cpu() probs = torch.squeeze(probs, 3).view(23, batch_size, num_classes).cpu() # line that usually causes the segfault loss = criterion(probs, labels, pred_lens, label_lens) </code></pre></div> <p dir="auto">Bottom of the stack trace after running the script in gdb:<br> <code class="notranslate">gdb --args python script.py</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... Program received signal SIGSEGV, Segmentation fault. 0x00007fffbca762cc in std::tuple&lt;at::Tensor, at::Tensor&gt; at::native::(anonymous namespace)::ctc_loss_cpu_template&lt;double, (c10::ScalarType)3 &gt;(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) () from /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so"><pre class="notranslate"><code class="notranslate">... Program received signal SIGSEGV, Segmentation fault. 0x00007fffbca762cc in std::tuple&lt;at::Tensor, at::Tensor&gt; at::native::(anonymous namespace)::ctc_loss_cpu_template&lt;double, (c10::ScalarType)3 &gt;(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) () from /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so </code></pre></div> <p dir="auto">Valgrind finds multiple instances of this error in the program:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="valgrind --tool=memcheck \ --suppressions=valgrind-python.supp \ --error-limit=no \ python script.py"><pre class="notranslate"><code class="notranslate">valgrind --tool=memcheck \ --suppressions=valgrind-python.supp \ --error-limit=no \ python script.py </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... ==14765== Conditional jump or move depends on uninitialised value(s) ==14765== at 0x5A8B53D: __ieee754_exp_avx (e_exp.c:67) ==14765== by 0x5A51F62: exp (w_exp.c:26) ==14765== by 0x17DF6309: std::tuple&lt;at::Tensor, at::Tensor&gt; at::native::(anonymous namespace)::ctc_loss_cpu_template&lt;double, (c10::ScalarType)3&gt;(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x17DF9BFF: at::native::ctc_loss_cpu(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long)::{lambda()#1}::operator()() const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x17DFC018: at::native::ctc_loss_cpu(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x17F30CE1: at::CPUDoubleType::_ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x1C531226: torch::autograd::VariableType::_ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch.so.1) ==14765== by 0x17DF3E88: at::native::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x17DF45AA: at::native::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x1802D723: at::TypeDefault::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x1C542301: torch::autograd::VariableType::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch.so.1) ==14765== by 0x16F37E5A: ??? (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch_python.so) ==14765== ... ==29498== Use of uninitialised value of size 8 ==29498== at 0x17DF62D2: std::tuple&lt;at::Tensor, at::Tensor&gt; at::native::(anonymous namespace)::ctc_loss_cpu_template&lt;double, (c10::ScalarType)3&gt;(at::Tensor const&amp;, at::Tensorconst&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x17DF9BFF: at::native::ctc_loss_cpu(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long)::{lambda()#1}::operator()() const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x17DFC018: at::native::ctc_loss_cpu(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x17F30CE1: at::CPUDoubleType::_ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x1C531226: torch::autograd::VariableType::_ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch.so.1) ==29498== by 0x17DF3E88: at::native::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x17DF45AA: at::native::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x1802D723: at::TypeDefault::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x1C542301: torch::autograd::VariableType::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch.so.1) ==29498== by 0x16F37E5A: ??? (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch_python.so) ==29498== by 0x281003: ??? (in /data2/asher_scratch/miniconda3/envs/torch/bin/python3.7) ==29498== by 0x2A629047: ??? ... ==29498== HEAP SUMMARY: ==29498== in use at exit: 1,644,916,800 bytes in 1,389,021 blocks ==29498== total heap usage: 3,098,608 allocs, 1,709,587 frees, 2,819,434,323 bytes allocated ==29498== ==29498== LEAK SUMMARY: ==29498== definitely lost: 3,791 bytes in 34 blocks ==29498== indirectly lost: 3,024 bytes in 35 blocks ==29498== possibly lost: 629,908,519 bytes in 173,375 blocks ==29498== still reachable: 1,015,001,466 bytes in 1,215,577 blocks ==29498== suppressed: 0 bytes in 0 blocks"><pre class="notranslate"><code class="notranslate">... ==14765== Conditional jump or move depends on uninitialised value(s) ==14765== at 0x5A8B53D: __ieee754_exp_avx (e_exp.c:67) ==14765== by 0x5A51F62: exp (w_exp.c:26) ==14765== by 0x17DF6309: std::tuple&lt;at::Tensor, at::Tensor&gt; at::native::(anonymous namespace)::ctc_loss_cpu_template&lt;double, (c10::ScalarType)3&gt;(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x17DF9BFF: at::native::ctc_loss_cpu(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long)::{lambda()#1}::operator()() const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x17DFC018: at::native::ctc_loss_cpu(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x17F30CE1: at::CPUDoubleType::_ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x1C531226: torch::autograd::VariableType::_ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch.so.1) ==14765== by 0x17DF3E88: at::native::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x17DF45AA: at::native::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x1802D723: at::TypeDefault::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==14765== by 0x1C542301: torch::autograd::VariableType::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch.so.1) ==14765== by 0x16F37E5A: ??? (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch_python.so) ==14765== ... ==29498== Use of uninitialised value of size 8 ==29498== at 0x17DF62D2: std::tuple&lt;at::Tensor, at::Tensor&gt; at::native::(anonymous namespace)::ctc_loss_cpu_template&lt;double, (c10::ScalarType)3&gt;(at::Tensor const&amp;, at::Tensorconst&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x17DF9BFF: at::native::ctc_loss_cpu(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long)::{lambda()#1}::operator()() const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x17DFC018: at::native::ctc_loss_cpu(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x17F30CE1: at::CPUDoubleType::_ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x1C531226: torch::autograd::VariableType::_ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch.so.1) ==29498== by 0x17DF3E88: at::native::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;, c10::ArrayRef&lt;long&gt;, long, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x17DF45AA: at::native::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x1802D723: at::TypeDefault::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libcaffe2.so) ==29498== by 0x1C542301: torch::autograd::VariableType::ctc_loss(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, long, long) const (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch.so.1) ==29498== by 0x16F37E5A: ??? (in /data2/asher_scratch/miniconda3/envs/torch/lib/python3.7/site-packages/torch/lib/libtorch_python.so) ==29498== by 0x281003: ??? (in /data2/asher_scratch/miniconda3/envs/torch/bin/python3.7) ==29498== by 0x2A629047: ??? ... ==29498== HEAP SUMMARY: ==29498== in use at exit: 1,644,916,800 bytes in 1,389,021 blocks ==29498== total heap usage: 3,098,608 allocs, 1,709,587 frees, 2,819,434,323 bytes allocated ==29498== ==29498== LEAK SUMMARY: ==29498== definitely lost: 3,791 bytes in 34 blocks ==29498== indirectly lost: 3,024 bytes in 35 blocks ==29498== possibly lost: 629,908,519 bytes in 173,375 blocks ==29498== still reachable: 1,015,001,466 bytes in 1,215,577 blocks ==29498== suppressed: 0 bytes in 0 blocks </code></pre></div> <p dir="auto">This finds errors starting in <code class="notranslate">ctc_loss_cpu</code> and <code class="notranslate">ctc_loss_cpu_template</code>.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Normal loss calculation</p> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.0.0<br> Is debug build: No<br> CUDA used to build PyTorch: 8.0.61</p> <p dir="auto">OS: Ubuntu 14.04.5 LTS<br> GCC version: (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4<br> CMake version: version 3.2.2</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: Yes<br> CUDA runtime version: Could not collect<br> GPU models and configuration:<br> GPU 0: TITAN X (Pascal)<br> GPU 1: TITAN X (Pascal)<br> GPU 2: TITAN X (Pascal)<br> GPU 3: TITAN X (Pascal)</p> <p dir="auto">Nvidia driver version: 375.39<br> cuDNN version: Probably one of the following:<br> /usr/local/cuda-7.5_cudnn-4/lib64/libcudnn.so.4.0.7<br> /usr/local/cuda-7.5_cudnn-4/lib64/libcudnn_static.a<br> /usr/local/cuda-8.0/lib64/libcudnn.so.6.0.21<br> /usr/local/cuda-8.0/lib64/libcudnn_static.a<br> /usr/local/cuda-8.0_cudnn-4/lib64/libcudnn.so.4.0.7<br> /usr/local/cuda-8.0_cudnn-4/lib64/libcudnn_static.a<br> /usr/local/cuda-8.0_cudnn-5/lib64/libcudnn.so.5.1.5<br> /usr/local/cuda-8.0_cudnn-5/lib64/libcudnn_static.a<br> /usr/local/cuda-9.2/lib64/libcudnn.so.7.1.4<br> /usr/local/cuda-9.2/lib64/libcudnn_static.a</p> <h2 dir="auto">Additional context</h2> <p dir="auto">Does not fault every run</p>
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">torch.seed() fails with <code class="notranslate">Overflow when unpacking long</code> after a tensor is copied to cuda</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">to reproduce:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# test.py import torch print(f&quot;Torch version: {torch.__version__}&quot;) x = torch.tensor(data=[[1,2],[3,4]], dtype=torch.long, device=None) x = x.to('cuda:0') seed = torch.seed()"><pre class="notranslate"><code class="notranslate"># test.py import torch print(f"Torch version: {torch.__version__}") x = torch.tensor(data=[[1,2],[3,4]], dtype=torch.long, device=None) x = x.to('cuda:0') seed = torch.seed() </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python tests/test.py Torch version: 1.5.1 Traceback (most recent call last): File &quot;tests/test.py&quot;, line 10, in &lt;module&gt; seed = torch.seed() File &quot;/home/stas/anaconda3/envs/main/lib/python3.7/site-packages/torch/random.py&quot;, line 45, in seed torch.cuda.manual_seed_all(seed) File &quot;/home/stas/anaconda3/envs/main/lib/python3.7/site-packages/torch/cuda/random.py&quot;, line 111, in manual_seed_all _lazy_call(cb) File &quot;/home/stas/anaconda3/envs/main/lib/python3.7/site-packages/torch/cuda/__init__.py&quot;, line 99, in _lazy_call callable() File &quot;/home/stas/anaconda3/envs/main/lib/python3.7/site-packages/torch/cuda/random.py&quot;, line 109, in cb default_generator.manual_seed(seed) RuntimeError: Overflow when unpacking long"><pre class="notranslate"><code class="notranslate">$ python tests/test.py Torch version: 1.5.1 Traceback (most recent call last): File "tests/test.py", line 10, in &lt;module&gt; seed = torch.seed() File "/home/stas/anaconda3/envs/main/lib/python3.7/site-packages/torch/random.py", line 45, in seed torch.cuda.manual_seed_all(seed) File "/home/stas/anaconda3/envs/main/lib/python3.7/site-packages/torch/cuda/random.py", line 111, in manual_seed_all _lazy_call(cb) File "/home/stas/anaconda3/envs/main/lib/python3.7/site-packages/torch/cuda/__init__.py", line 99, in _lazy_call callable() File "/home/stas/anaconda3/envs/main/lib/python3.7/site-packages/torch/cuda/random.py", line 109, in cb default_generator.manual_seed(seed) RuntimeError: Overflow when unpacking long </code></pre></div> <p dir="auto">It fails about 75% of time.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">It shouldn't fail.</p> <h2 dir="auto">Additional info</h2> <p dir="auto">It seems to be related to: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="568362587" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/33546" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/33546/hovercard" href="https://github.com/pytorch/pytorch/issues/33546">#33546</a></p> <p dir="auto">While CI passes, on my machine<a href="https://github.com/huggingface/transformers/issues/5639" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/5639/hovercard"><code class="notranslate">huggingface/transformers</code> tests fail with this error</a>.</p> <h2 dir="auto">Environment</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PyTorch version: 1.5.1 Is debug build: No CUDA used to build PyTorch: 10.2 OS: Ubuntu 18.04.4 LTS GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 CMake version: version 3.10.2 Python version: 3.7 Is CUDA available: Yes CUDA runtime version: 10.0.130 GPU models and configuration: GPU 0: GeForce GTX TITAN X GPU 1: GeForce GTX TITAN X Nvidia driver version: 440.95.01 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5 Versions of relevant libraries: [pip3] numpy==1.13.3 [conda] blas 1.0 mkl [conda] cudatoolkit 10.2.89 hfd86e86_1 [conda] mkl 2020.0 166 [conda] mkl-service 2.3.0 py37he904b0f_0 [conda] mkl_fft 1.0.15 py37ha843d7b_0 [conda] mkl_random 1.1.0 py37hd6b4f25_0 [conda] numpy 1.18.1 pypi_0 pypi [conda] numpy-base 1.18.1 py37hde5b4d6_1 [conda] numpydoc 0.9.2 py_0 [conda] pytorch 1.5.1 py3.7_cuda10.2.89_cudnn7.6.5_0 pytorch [conda] pytorch-lightning 0.8.1 pypi_0 pypi [conda] pytorch-nlp 0.5.0 pypi_0 pypi [conda] pytorch-pretrained-bert 0.6.2 pypi_0 pypi [conda] pytorch-transformers 1.1.0 pypi_0 pypi [conda] torch 1.5.0 pypi_0 pypi [conda] torchtext 0.5.1 pypi_0 pypi [conda] torchvision 0.6.1 py37_cu102 pytorch"><pre class="notranslate"><code class="notranslate">PyTorch version: 1.5.1 Is debug build: No CUDA used to build PyTorch: 10.2 OS: Ubuntu 18.04.4 LTS GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 CMake version: version 3.10.2 Python version: 3.7 Is CUDA available: Yes CUDA runtime version: 10.0.130 GPU models and configuration: GPU 0: GeForce GTX TITAN X GPU 1: GeForce GTX TITAN X Nvidia driver version: 440.95.01 cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5 Versions of relevant libraries: [pip3] numpy==1.13.3 [conda] blas 1.0 mkl [conda] cudatoolkit 10.2.89 hfd86e86_1 [conda] mkl 2020.0 166 [conda] mkl-service 2.3.0 py37he904b0f_0 [conda] mkl_fft 1.0.15 py37ha843d7b_0 [conda] mkl_random 1.1.0 py37hd6b4f25_0 [conda] numpy 1.18.1 pypi_0 pypi [conda] numpy-base 1.18.1 py37hde5b4d6_1 [conda] numpydoc 0.9.2 py_0 [conda] pytorch 1.5.1 py3.7_cuda10.2.89_cudnn7.6.5_0 pytorch [conda] pytorch-lightning 0.8.1 pypi_0 pypi [conda] pytorch-nlp 0.5.0 pypi_0 pypi [conda] pytorch-pretrained-bert 0.6.2 pypi_0 pypi [conda] pytorch-transformers 1.1.0 pypi_0 pypi [conda] torch 1.5.0 pypi_0 pypi [conda] torchtext 0.5.1 pypi_0 pypi [conda] torchvision 0.6.1 py37_cu102 pytorch </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ngimel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ngimel">@ngimel</a></p>
0
<ol dir="auto"> <li>What version of Go are you using (go version)?</li> </ol> <ul dir="auto"> <li>1.4</li> <li>tip +9ef10fde754f</li> </ul> <ol start="2" dir="auto"> <li>What operating system and processor architecture are you using?</li> </ol> <p dir="auto">OS X 10.10.1 amd64</p> <ol start="3" dir="auto"> <li>What did you do?</li> </ol> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package main func main() { _ = complex(0) }"><pre class="notranslate"><span class="pl-k">package</span> main <span class="pl-k">func</span> <span class="pl-en">main</span>() { <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-en">complex</span>(<span class="pl-c1">0</span>) }</pre></div> <p dir="auto"><a href="http://play.golang.org/p/BdgB06q5te" rel="nofollow">http://play.golang.org/p/BdgB06q5te</a></p> <ol start="4" dir="auto"> <li>What did you expect to see?</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="prog.go:4: not enough arguments in call to complex [process exited with non-zero status]"><pre class="notranslate"><code class="notranslate">prog.go:4: not enough arguments in call to complex [process exited with non-zero status] </code></pre></div> <ol start="5" dir="auto"> <li>What did you see instead?</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="prog.go:4: internal compiler error: fault [process exited with non-zero status]"><pre class="notranslate"><code class="notranslate">prog.go:4: internal compiler error: fault [process exited with non-zero status] </code></pre></div>
<pre class="notranslate"><a href="http://play.golang.org/p/gOwL0S64NQ" rel="nofollow">http://play.golang.org/p/gOwL0S64NQ</a> reported by lvd package main import ( "fmt" "math" ) func main() { for i := 0; i &lt; 4; i++ { ii := float64(i) e := ii * (math.Log(4/2) - math.Log(ii)) fmt.Println(e, math.Jn(i, 4)) } var c complex128 c = math.Sqrt2 / 2 fmt.Println(c) var f float64 f = 2 c *= complex(f) fmt.Println(c) }</pre>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">On macOS with PyQt4, when placing a <code class="notranslate">FigureCanvasQTAgg</code> and a <code class="notranslate">QGraphicsView</code> in the same widget, some QWidget recursive repaint and Core Graphics errors (see below) occur when showing the widget.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from PyQt4 import Qt import matplotlib matplotlib.use('Qt4Agg') from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg from matplotlib.figure import Figure app = Qt.QApplication([]) fig = Figure() ax = fig.add_subplot(111) ax.plot([0, 1]) canvas = FigureCanvasQTAgg(fig) scene = Qt.QGraphicsScene() scene.addRect(0, 0, 10, 10) view = Qt.QGraphicsView(scene) layout = Qt.QHBoxLayout() layout.addWidget(canvas) layout.addWidget(view) widget = Qt.QWidget() widget.setLayout(layout) widget.show() app.exec_()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-v">PyQt4</span> <span class="pl-k">import</span> <span class="pl-v">Qt</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">'Qt4Agg'</span>) <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">backends</span>.<span class="pl-s1">backend_qt4agg</span> <span class="pl-k">import</span> <span class="pl-v">FigureCanvasQTAgg</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">figure</span> <span class="pl-k">import</span> <span class="pl-v">Figure</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Qt</span>.<span class="pl-v">QApplication</span>([]) <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-v">Figure</span>() <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">111</span>) <span class="pl-s1">ax</span>.<span class="pl-en">plot</span>([<span class="pl-c1">0</span>, <span class="pl-c1">1</span>]) <span class="pl-s1">canvas</span> <span class="pl-c1">=</span> <span class="pl-v">FigureCanvasQTAgg</span>(<span class="pl-s1">fig</span>) <span class="pl-s1">scene</span> <span class="pl-c1">=</span> <span class="pl-v">Qt</span>.<span class="pl-v">QGraphicsScene</span>() <span class="pl-s1">scene</span>.<span class="pl-en">addRect</span>(<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">10</span>, <span class="pl-c1">10</span>) <span class="pl-s1">view</span> <span class="pl-c1">=</span> <span class="pl-v">Qt</span>.<span class="pl-v">QGraphicsView</span>(<span class="pl-s1">scene</span>) <span class="pl-s1">layout</span> <span class="pl-c1">=</span> <span class="pl-v">Qt</span>.<span class="pl-v">QHBoxLayout</span>() <span class="pl-s1">layout</span>.<span class="pl-en">addWidget</span>(<span class="pl-s1">canvas</span>) <span class="pl-s1">layout</span>.<span class="pl-en">addWidget</span>(<span class="pl-s1">view</span>) <span class="pl-s1">widget</span> <span class="pl-c1">=</span> <span class="pl-v">Qt</span>.<span class="pl-v">QWidget</span>() <span class="pl-s1">widget</span>.<span class="pl-en">setLayout</span>(<span class="pl-s1">layout</span>) <span class="pl-s1">widget</span>.<span class="pl-en">show</span>() <span class="pl-s1">app</span>.<span class="pl-en">exec_</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">The widgets show correctly, but the following errors are displayed in the console:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="QWidget::repaint: Recursive repaint detected QWidget::repaint: Recursive repaint detected Oct 2 14:23:47 python[52865] &lt;Error&gt;: CGContextGetCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. Oct 2 14:23:47 python[52865] &lt;Error&gt;: CGContextConcatCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. [...]"><pre class="notranslate"><code class="notranslate">QWidget::repaint: Recursive repaint detected QWidget::repaint: Recursive repaint detected Oct 2 14:23:47 python[52865] &lt;Error&gt;: CGContextGetCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. Oct 2 14:23:47 python[52865] &lt;Error&gt;: CGContextConcatCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. [...] </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">This does not occur with PyQt5 (tested with 5.9).<br> This does not occur with matplotlib 2.0.2 and PyQt4.</p> <p dir="auto">Also, commenting the call to <code class="notranslate">processEvents</code> in <code class="notranslate">FigureCanvasQTAggBase .paintEvent</code> solves the issue: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/matplotlib/matplotlib/blob/793635c9e745ea91907e1e24806e28994c6a07d0/lib/matplotlib/backends/backend_qt5agg.py#L75">matplotlib/lib/matplotlib/backends/backend_qt5agg.py</a> </p> <p class="mb-0 color-fg-muted"> Line 75 in <a data-pjax="true" class="commit-tease-sha" href="/matplotlib/matplotlib/commit/793635c9e745ea91907e1e24806e28994c6a07d0">793635c</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="L75" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="75"></td> <td id="LC75" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">QtWidgets</span>.<span class="pl-v">QApplication</span>.<span class="pl-en">instance</span>().<span class="pl-en">processEvents</span>() </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating System: macOS Sierra 10.12.5</li> <li>Matplotlib Version: 2.1.0rc1</li> <li>Python Version: Tested with 2.7 (both system and macPorts) and 3.6 (macPorts)</li> <li>Jupyter Version (if applicable):</li> <li>Other Libraries: PyQt4 4.12.1</li> </ul>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">As of master,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python examples/images_contours_and_fields/plot_streamplot.py QWidget::repaint: Recursive repaint detected Fatal Python error: Segmentation fault"><pre class="notranslate"><code class="notranslate">$ python examples/images_contours_and_fields/plot_streamplot.py QWidget::repaint: Recursive repaint detected Fatal Python error: Segmentation fault </code></pre></div> <p dir="auto">(Qt5Agg backend)</p> <p dir="auto"><strong>Code for reproduction</strong></p> <p dir="auto">See above.</p> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">NA</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">Don't crash.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating System: Arch Linux</li> <li>Matplotlib Version: master</li> <li>Python Version: 3.6</li> <li>Jupyter Version (if applicable):</li> <li>Other Libraries: Qt5.9 from pypi in a venv. <em>does not occur with Arch repo PyQt5</em> (recursive repaint message occurs sometimes, but does not crash even then)</li> </ul> <p dir="auto">bisects back to <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/d0eeddb92a8097e11a8711c4997970520bf0bf9a/hovercard" href="https://github.com/matplotlib/matplotlib/commit/d0eeddb92a8097e11a8711c4997970520bf0bf9a"><tt>d0eeddb</tt></a> which is the merge commit for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="253118156" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/9103" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/9103/hovercard" href="https://github.com/matplotlib/matplotlib/pull/9103">#9103</a>; however, interestingly, the tip of that commit does <em>not</em> crash so something went wrong during the merge.</p>
1
<p dir="auto">I upgraded from ansible 1.3 to ansible 1.6 and my asynchronous tasks are not working properly when those have to be SKIPPED. (when are not skipped everything works ok). This is my task to reproduce the error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Create screen session to run dd on new disk (async mode) shell: /bin/dd if={{ ebs_device }} of=/dev/null bs=1024k async: 36000 poll: 0 tags: rundd when: ebs_iops != 0"><pre lang="ansible" class="notranslate"><code class="notranslate">- name: Create screen session to run dd on new disk (async mode) shell: /bin/dd if={{ ebs_device }} of=/dev/null bs=1024k async: 36000 poll: 0 tags: rundd when: ebs_iops != 0 </code></pre></div> <p dir="auto">This is executed as follows (Note: ebs_iops=0)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -i cluster-oe setup.yml -s --ask-vault-pass --tags rundd"><pre lang="ansible" class="notranslate"><code class="notranslate">ansible-playbook -i cluster-oe setup.yml -s --ask-vault-pass --tags rundd </code></pre></div> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [common | Create screen session to run dd on new disk (async mode)] ***** skipping: [X.X.X.X] Traceback (most recent call last): File &quot;/usr/bin/ansible-playbook&quot;, line 317, in &lt;module&gt; sys.exit(main(sys.argv[1:])) File &quot;/usr/bin/ansible-playbook&quot;, line 257, in main pb.run() File &quot;/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py&quot;, line 291, in run if not self._run_play(play): File &quot;/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py&quot;, line 644, in _run_play if not self._run_task(play, task, False): File &quot;/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py&quot;, line 421, in _run_task results = self._run_task_internal(task) File &quot;/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py&quot;, line 385, in _run_task_internal self.runner_callbacks.on_async_ok(host, res, poller.runner.vars_cache[host]['ansible_job_id']) KeyError: 'ansible_job_id' TASK: [common | Create screen session to run dd on new disk (async mode)] ***** skipping: [X.X.X.X] Traceback (most recent call last): File &quot;/usr/bin/ansible-playbook&quot;, line 317, in &lt;module&gt; sys.exit(main(sys.argv[1:])) File &quot;/usr/bin/ansible-playbook&quot;, line 257, in main pb.run() File &quot;/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py&quot;, line 291, in run if not self._run_play(play): File &quot;/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py&quot;, line 644, in _run_play if not self._run_task(play, task, False): File &quot;/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py&quot;, line 421, in _run_task results = self._run_task_internal(task) File &quot;/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py&quot;, line 385, in _run_task_internal self.runner_callbacks.on_async_ok(host, res, poller.runner.vars_cache[host]['ansible_job_id']) KeyError: 'ansible_job_id'"><pre lang="ansible" class="notranslate"><code class="notranslate">TASK: [common | Create screen session to run dd on new disk (async mode)] ***** skipping: [X.X.X.X] Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 317, in &lt;module&gt; sys.exit(main(sys.argv[1:])) File "/usr/bin/ansible-playbook", line 257, in main pb.run() File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 291, in run if not self._run_play(play): File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 644, in _run_play if not self._run_task(play, task, False): File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 421, in _run_task results = self._run_task_internal(task) File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 385, in _run_task_internal self.runner_callbacks.on_async_ok(host, res, poller.runner.vars_cache[host]['ansible_job_id']) KeyError: 'ansible_job_id' TASK: [common | Create screen session to run dd on new disk (async mode)] ***** skipping: [X.X.X.X] Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 317, in &lt;module&gt; sys.exit(main(sys.argv[1:])) File "/usr/bin/ansible-playbook", line 257, in main pb.run() File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 291, in run if not self._run_play(play): File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 644, in _run_play if not self._run_task(play, task, False): File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 421, in _run_task results = self._run_task_internal(task) File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 385, in _run_task_internal self.runner_callbacks.on_async_ok(host, res, poller.runner.vars_cache[host]['ansible_job_id']) KeyError: 'ansible_job_id' </code></pre></div> <p dir="auto">Ansible version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version ansible 1.6.1"><pre lang="ansible" class="notranslate"><code class="notranslate">ansible --version ansible 1.6.1 </code></pre></div>
<h5 dir="auto">Issue Type: Bug Report</h5> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">1.6.1, devel</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Centos 6.5, OS X 10.9.2</p> <h5 dir="auto">Summary:</h5> <p dir="auto">An async task with 'poll: 0' fails only when the 'when' condition causes it to be skipped. If I remove the poll option or set it to a number higher than 0, the task is successfully skipped. If I remove the 'when' condition, the async task is successful with 'poll' set to 0.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Create an async task with 'poll: 0' and a when condition that causes it to be skipped.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: test hosts: localhost tasks: - name: a local task shell: echo hello async: 30 poll: 0 when: a_variable is defined"><pre class="notranslate"><code class="notranslate">- name: test hosts: localhost tasks: - name: a local task shell: echo hello async: 30 poll: 0 when: a_variable is defined </code></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">The async task should be skipped.</p> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [a local task] ********************************************************** skipping: [localhost] Traceback (most recent call last): File &quot;/Users/jyoung/lib/ansible-main/bin/ansible-playbook&quot;, line 317, in &lt;module&gt; sys.exit(main(sys.argv[1:])) File &quot;/Users/jyoung/lib/ansible-main/bin/ansible-playbook&quot;, line 257, in main pb.run() File &quot;/Users/jyoung/lib/ansible-main/lib/ansible/playbook/__init__.py&quot;, line 319, in run if not self._run_play(play): File &quot;/Users/jyoung/lib/ansible-main/lib/ansible/playbook/__init__.py&quot;, line 673, in _run_play if not self._run_task(play, task, False): File &quot;/Users/jyoung/lib/ansible-main/lib/ansible/playbook/__init__.py&quot;, line 449, in _run_task results = self._run_task_internal(task) File &quot;/Users/jyoung/lib/ansible-main/lib/ansible/playbook/__init__.py&quot;, line 413, in _run_task_internal self.runner_callbacks.on_async_ok(host, res, poller.runner.vars_cache[host]['ansible_job_id']) KeyError: 'ansible_job_id'"><pre class="notranslate"><code class="notranslate">TASK: [a local task] ********************************************************** skipping: [localhost] Traceback (most recent call last): File "/Users/jyoung/lib/ansible-main/bin/ansible-playbook", line 317, in &lt;module&gt; sys.exit(main(sys.argv[1:])) File "/Users/jyoung/lib/ansible-main/bin/ansible-playbook", line 257, in main pb.run() File "/Users/jyoung/lib/ansible-main/lib/ansible/playbook/__init__.py", line 319, in run if not self._run_play(play): File "/Users/jyoung/lib/ansible-main/lib/ansible/playbook/__init__.py", line 673, in _run_play if not self._run_task(play, task, False): File "/Users/jyoung/lib/ansible-main/lib/ansible/playbook/__init__.py", line 449, in _run_task results = self._run_task_internal(task) File "/Users/jyoung/lib/ansible-main/lib/ansible/playbook/__init__.py", line 413, in _run_task_internal self.runner_callbacks.on_async_ok(host, res, poller.runner.vars_cache[host]['ansible_job_id']) KeyError: 'ansible_job_id' </code></pre></div>
1
<p dir="auto"><strong>Migrated issue, originally created by Sheer El Showk (<a href="https://github.com/sheer">@sheer</a>)</strong></p> <p dir="auto">This bug was discussed on stack overview here:</p> <p dir="auto">[http://stackoverflow.com/questions/33888539/getting-sqlalchemy-to-do-on-duplicate-key-update-inside-an-orm-cascade-in-mys?noredirect=1#comment55890922_33888539<br> ](Link URL)</p> <p dir="auto">We create a simple object hierarchy: Groups contain Users and Users have Email addresses. We want the email address to be stored uniquely even if its shared between users. Constructing two users with the same address and using session.merge() to add them has the correct behaviour (the same key is reused and no error is thrown). If, on the other hand, we add the two users to a group and then use session.merge() on the group instead them the two identical addresses lead to a unique key exception on address (due to an insert many).</p> <p dir="auto">Here is the relevant code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import create_engine, Column, types from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy.orm import Session from sqlalchemy import ForeignKey from sqlalchemy.orm import relationship, backref engine = create_engine('sqlite:///:memory:', echo=False) Base = declarative_base() session = scoped_session(sessionmaker(bind=engine)) class Group(Base): __tablename__ = &quot;groups&quot; gid = Column(types.Integer, primary_key=True) name = Column(types.String(255)) users = relationship(&quot;User&quot;, backref=&quot;group&quot;) def __repr__(self): ret = &quot;Group(name=%r)&quot; % self.name for user in self.users: ret += str(user) class User(Base): __tablename__ = &quot;users&quot; login = Column(types.String(50), primary_key=True) name = Column(types.String(255)) group_id = Column(types.Integer, ForeignKey('groups.gid')) address = Column(types.String(200), ForeignKey('addresses.email_address')) email = relationship(&quot;Address&quot;) def __repr__(self): return &quot;User(login=%r, name=%r)\n%s&quot; % (self.login, self.name, str(self.email)) class Address(Base): __tablename__ = 'addresses' email_address = Column(types.String(200), nullable=False, primary_key=True) #user_login = Column(types.String(50), ForeignKey('users.login')) def __repr__(self): return &quot;&lt;Address(email_address='%s')&gt;&quot; % self.email_address Base.metadata.create_all(engine) if __name__ == '__main__': # this works correctly even though we reuse a unique key u1 = User(login='Guy', name=&quot;Some Guy&quot;) u1.email=Address(email_address='nameless@yahoo.com') u2 = User(login='Gal', name=&quot;Some Gal&quot;) u2.email=Address(email_address='nameless@yahoo.com') session.merge(u1) session.merge(u2) session.commit() print(&quot;two users with addresses&quot;) for u in session.query(User): print(u) # though this is similar it ends up using insertmany and throws a unique key # constraint even with the merge u3 = User(login='Mr. User', name=&quot;A dude&quot;) u3.email=Address(email_address='james@yahoo.com') u4 = User(login='Mrs. User', name=&quot;A dudette&quot;) u4.email=Address(email_address='jill@yahoo.com') u5 = User(login='Mrs. User2', name=&quot;A dudette2&quot;) u5.email=Address(email_address='jill@yahoo.com') g1 = Group(name=&quot;G1&quot;) g1.users.append(u3) g1.users.append(u4) g1.users.append(u5) session.merge(g1) session.commit() print(g1)"><pre class="notranslate"><code class="notranslate">from sqlalchemy import create_engine, Column, types from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy.orm import Session from sqlalchemy import ForeignKey from sqlalchemy.orm import relationship, backref engine = create_engine('sqlite:///:memory:', echo=False) Base = declarative_base() session = scoped_session(sessionmaker(bind=engine)) class Group(Base): __tablename__ = "groups" gid = Column(types.Integer, primary_key=True) name = Column(types.String(255)) users = relationship("User", backref="group") def __repr__(self): ret = "Group(name=%r)" % self.name for user in self.users: ret += str(user) class User(Base): __tablename__ = "users" login = Column(types.String(50), primary_key=True) name = Column(types.String(255)) group_id = Column(types.Integer, ForeignKey('groups.gid')) address = Column(types.String(200), ForeignKey('addresses.email_address')) email = relationship("Address") def __repr__(self): return "User(login=%r, name=%r)\n%s" % (self.login, self.name, str(self.email)) class Address(Base): __tablename__ = 'addresses' email_address = Column(types.String(200), nullable=False, primary_key=True) #user_login = Column(types.String(50), ForeignKey('users.login')) def __repr__(self): return "&lt;Address(email_address='%s')&gt;" % self.email_address Base.metadata.create_all(engine) if __name__ == '__main__': # this works correctly even though we reuse a unique key u1 = User(login='Guy', name="Some Guy") u1.email=Address(email_address='nameless@yahoo.com') u2 = User(login='Gal', name="Some Gal") u2.email=Address(email_address='nameless@yahoo.com') session.merge(u1) session.merge(u2) session.commit() print("two users with addresses") for u in session.query(User): print(u) # though this is similar it ends up using insertmany and throws a unique key # constraint even with the merge u3 = User(login='Mr. User', name="A dude") u3.email=Address(email_address='james@yahoo.com') u4 = User(login='Mrs. User', name="A dudette") u4.email=Address(email_address='jill@yahoo.com') u5 = User(login='Mrs. User2', name="A dudette2") u5.email=Address(email_address='jill@yahoo.com') g1 = Group(name="G1") g1.users.append(u3) g1.users.append(u4) g1.users.append(u5) session.merge(g1) session.commit() print(g1) </code></pre></div>
<p dir="auto">Replace the asyncpg paramstyle from format to numeric, using <code class="notranslate">$</code> instead of the standard <code class="notranslate">:</code>.</p> <p dir="auto">The main advantage of this style is that allows repeated parameters to not be duplicated</p>
0
<h1 dir="auto">Checklist</h1> <p dir="auto">Please add the ability to specify <code class="notranslate">https</code> scheme for results backend. Right now, it seems that http is the default with no way to change it. If this already exists can you please point me to it?</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/celery/celery/blob/6be45237355f0f61ad9e68b018ea1c007fa66f78/celery/backends/elasticsearch.py#L38">celery/celery/backends/elasticsearch.py</a> </p> <p class="mb-0 color-fg-muted"> Line 38 in <a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/6be45237355f0f61ad9e68b018ea1c007fa66f78">6be4523</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="L38" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="38"></td> <td id="LC38" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">scheme</span> <span class="pl-c1">=</span> <span class="pl-s">'http'</span> </td> </tr> </tbody></table> </div> </div> <p></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <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 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%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed enhancements.</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 if the same enhancement was already implemented in the<br> 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 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> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Brief Summary</h1> <h1 dir="auto">Design</h1> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto">None</p> <h2 dir="auto">Proposed Behavior</h2> <h2 dir="auto">Proposed UI/UX</h2> <h2 dir="auto">Diagrams</h2> <p dir="auto">N/A</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">None</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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" checked=""> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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="215734015" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/3926" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3926/hovercard" href="https://github.com/celery/celery/issues/3926">#3926</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>: 4.3.0</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.4 py:3.6.0 billiard:3.6.1.0 librabbitmq:2.0.0 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.19.71-1-lts imp:CPython loader -&gt; celery.loaders.default.Loader settings -&gt; transport:librabbitmq results:disabled"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.3.0 (rhubarb) kombu:4.6.4 py:3.6.0 billiard:3.6.1.0 librabbitmq:2.0.0 platform -&gt; system:Linux arch:64bit, ELF kernel version:4.19.71-1-lts imp:CPython loader -&gt; celery.loaders.default.Loader settings -&gt; transport:librabbitmq results:disabled </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.6.0</li> <li><strong>Minimal Celery Version</strong>: 4.3.0</li> <li><strong>Minimal Kombu Version</strong>: 4.6.4</li> <li><strong>Minimal Broker Version</strong>: RabbitMQ 3.7.15</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: Linux 4.19.71-1-lts</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==2.5.1 asn1crypto==0.24.0 atomicwrites==1.3.0 attrs==19.1.0 Automat==0.7.0 backcall==0.1.0 billiard==3.6.1.0 case==1.5.3 celery==4.3.0 cffi==1.12.3 constantly==15.1.0 cryptography==2.7 cssselect==1.1.0 decorator==4.4.0 hyperlink==19.0.0 idna==2.8 importlib-metadata==0.23 incremental==17.5.0 ipython==7.8.0 ipython-genutils==0.2.0 jedi==0.15.1 kombu==4.6.4 librabbitmq==2.0.0 linecache2==1.0.0 lxml==4.4.1 mock==3.0.5 more-itertools==7.2.0 mysqlclient==1.4.4 nose==1.3.7 packaging==19.2 parsel==1.5.2 parso==0.5.1 pexpect==4.7.0 pickleshare==0.7.5 pluggy==0.13.0 prompt-toolkit==2.0.9 ptyprocess==0.6.0 py==1.8.0 pyasn1==0.4.7 pyasn1-modules==0.2.6 pycparser==2.19 PyDispatcher==2.0.5 Pygments==2.4.2 PyHamcrest==1.9.0 pyOpenSSL==19.0.0 pyparsing==2.4.2 pytest==5.2.1 pytz==2019.2 queuelib==1.5.0 Scrapy==1.7.3 scrapy-selenium==0.0.7 selenium==3.141.0 service-identity==18.1.0 six==1.12.0 SQLAlchemy==1.3.8 traceback2==1.4.0 traitlets==4.3.2 Twisted==19.7.0 unittest2==1.1.0 urllib3==1.25.6 vine==1.3.0 w3lib==1.21.0 wcwidth==0.1.7 zipp==0.6.0 zope.interface==4.6.0"><pre class="notranslate"><code class="notranslate">amqp==2.5.1 asn1crypto==0.24.0 atomicwrites==1.3.0 attrs==19.1.0 Automat==0.7.0 backcall==0.1.0 billiard==3.6.1.0 case==1.5.3 celery==4.3.0 cffi==1.12.3 constantly==15.1.0 cryptography==2.7 cssselect==1.1.0 decorator==4.4.0 hyperlink==19.0.0 idna==2.8 importlib-metadata==0.23 incremental==17.5.0 ipython==7.8.0 ipython-genutils==0.2.0 jedi==0.15.1 kombu==4.6.4 librabbitmq==2.0.0 linecache2==1.0.0 lxml==4.4.1 mock==3.0.5 more-itertools==7.2.0 mysqlclient==1.4.4 nose==1.3.7 packaging==19.2 parsel==1.5.2 parso==0.5.1 pexpect==4.7.0 pickleshare==0.7.5 pluggy==0.13.0 prompt-toolkit==2.0.9 ptyprocess==0.6.0 py==1.8.0 pyasn1==0.4.7 pyasn1-modules==0.2.6 pycparser==2.19 PyDispatcher==2.0.5 Pygments==2.4.2 PyHamcrest==1.9.0 pyOpenSSL==19.0.0 pyparsing==2.4.2 pytest==5.2.1 pytz==2019.2 queuelib==1.5.0 Scrapy==1.7.3 scrapy-selenium==0.0.7 selenium==3.141.0 service-identity==18.1.0 six==1.12.0 SQLAlchemy==1.3.8 traceback2==1.4.0 traitlets==4.3.2 Twisted==19.7.0 unittest2==1.1.0 urllib3==1.25.6 vine==1.3.0 w3lib==1.21.0 wcwidth==0.1.7 zipp==0.6.0 zope.interface==4.6.0 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> celeryconfig.py: </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="broker_url = 'amqp://guest:guest@localhost:5672//' task_default_queue = 'default' task_default_exchange = 'tasks' task_default_exchange_type = 'topic' task_default_routing_key = 'tasks.default' task_queues = ( Queue('default', routing_key='tasks.#'), Queue('test', routing_key='test.#'), )"><pre class="notranslate"><span class="pl-s1">broker_url</span> <span class="pl-c1">=</span> <span class="pl-s">'amqp://guest:guest@localhost:5672//'</span> <span class="pl-s1">task_default_queue</span> <span class="pl-c1">=</span> <span class="pl-s">'default'</span> <span class="pl-s1">task_default_exchange</span> <span class="pl-c1">=</span> <span class="pl-s">'tasks'</span> <span class="pl-s1">task_default_exchange_type</span> <span class="pl-c1">=</span> <span class="pl-s">'topic'</span> <span class="pl-s1">task_default_routing_key</span> <span class="pl-c1">=</span> <span class="pl-s">'tasks.default'</span> <span class="pl-s1">task_queues</span> <span class="pl-c1">=</span> ( <span class="pl-v">Queue</span>(<span class="pl-s">'default'</span>, <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'tasks.#'</span>), <span class="pl-v">Queue</span>(<span class="pl-s">'test'</span>, <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'test.#'</span>), )</pre></div> <p dir="auto"></p> <p dir="auto"> celery.py: </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="app = Celery('scan_worker') app.conf.task_default_exchange = 'tasks' app.conf.task_default_exchange_type = 'topic' app.config_from_object('test_celery.celeryconfig', force=True)"><pre class="notranslate"><span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'scan_worker'</span>) <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">task_default_exchange</span> <span class="pl-c1">=</span> <span class="pl-s">'tasks'</span> <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">task_default_exchange_type</span> <span class="pl-c1">=</span> <span class="pl-s">'topic'</span> <span class="pl-s1">app</span>.<span class="pl-en">config_from_object</span>(<span class="pl-s">'test_celery.celeryconfig'</span>, <span class="pl-s1">force</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">According to the <a href="http://docs.celeryproject.org/en/latest/userguide/routing.html#manual-routing" rel="nofollow">document</a>:</p> <blockquote> <p dir="auto">If you don't set the exchange or exchange type values for a key, these will be taken from the task_default_exchange and task_default_exchange_type settings</p> </blockquote> <p dir="auto">The worker should automatically create queues that binding to the exchange with <code class="notranslate">task_default_exchange</code> and <code class="notranslate">task_default_exchange_type</code></p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">The output of the command <code class="notranslate">celery worker -A test_celery -l info</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -------------- celery@arch v4.3.0 (rhubarb) ---- **** ----- --- * *** * -- Linux-4.19.71-1-lts-x86_64-with-arch 2019-10-10 20:13:55 -- * - **** --- - ** ---------- [config] - ** ---------- .&gt; app: scan_worker:0x7efdc5430a58 - ** ---------- .&gt; transport: amqp://guest:**@localhost:5672// - ** ---------- .&gt; results: disabled:// - *** --- * --- .&gt; concurrency: 9 (prefork) -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker) --- ***** ----- -------------- [queues] .&gt; default exchange=(direct) key=tasks.# .&gt; test exchange=(direct) key=test.#"><pre class="notranslate"><code class="notranslate"> -------------- celery@arch v4.3.0 (rhubarb) ---- **** ----- --- * *** * -- Linux-4.19.71-1-lts-x86_64-with-arch 2019-10-10 20:13:55 -- * - **** --- - ** ---------- [config] - ** ---------- .&gt; app: scan_worker:0x7efdc5430a58 - ** ---------- .&gt; transport: amqp://guest:**@localhost:5672// - ** ---------- .&gt; results: disabled:// - *** --- * --- .&gt; concurrency: 9 (prefork) -- ******* ---- .&gt; task events: OFF (enable -E to monitor tasks in this worker) --- ***** ----- -------------- [queues] .&gt; default exchange=(direct) key=tasks.# .&gt; test exchange=(direct) key=test.# </code></pre></div> <p dir="auto">the queues are bound to the exchange that not match <code class="notranslate">task_default_exchange</code> and <code class="notranslate">task_default_exchange_type</code></p>
0
<h2 dir="auto">Checklist</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> </ul> <h2 dir="auto">Steps to reproduce</h2> <p dir="auto"><strong>I am using celery version 3.0.23 and scheduling the tasks using apply_async the issue is that the i encountered that the tasks are being duplicated by 15x so our users are getting 15 push notifications instead of one. The duplicacy of the tasks can be seen in the file attached below:</strong><br> <a href="https://github.com/celery/celery/files/1821326/bug.txt">bug.txt</a></p> <h2 dir="auto">Expected behavior</h2> <h2 dir="auto">Actual behavior</h2>
<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 checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Issue+Type%3A+Feature+Request%22+">issues list</a><br> for similar or identical feature requests.</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?utf8=%E2%9C%93&amp;q=is%3Apr+label%3A%22PR+Type%3A+Feature%22+">pull requests list</a><br> for existing proposed implementations of this feature.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the if the same feature was already implemented in the<br> 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">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="299009247" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4551" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4551/hovercard" href="https://github.com/celery/celery/issues/4551">#4551</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="294771738" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4525" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4525/hovercard" href="https://github.com/celery/celery/issues/4525">#4525</a></li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="299009247" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4551" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4551/hovercard" href="https://github.com/celery/celery/issues/4551">#4551</a></li> </ul> <h1 dir="auto">Brief Summary</h1> <p dir="auto">Memory leaks can be difficult to track down, especially when they are caused by 3rd party packages. In theory these obviously should be fixed, but in real life, where one needs to keep things running, one might be happy enough if the memory leaks were contained.</p> <p dir="auto">So I'd like to propose a solution to <em>quarantene</em> memory leaks in task specific processes in order to avoid an increasing memory usage of the Celery workers, which appears to be a common reason for restarting the workers.</p> <h1 dir="auto">Design</h1> <h2 dir="auto">Architectural Considerations</h2> <p dir="auto">None</p> <h2 dir="auto">Proposed Behavior</h2> <p dir="auto">My proposal looks as follows:</p> <ul dir="auto"> <li>The Celery workers fork/spawn/... a new child process before executing a task.</li> <li>Task execution is done in this child process.</li> <li>The result is retrieved from the child process</li> <li>The child process is terminated.</li> <li>The results is handed to the result backend by the worker process</li> </ul> <p dir="auto">In a variation, this proposal might be extended to allow processing of a chunk in child process or the delegation of the task execution might be made optional.</p> <p dir="auto">In all other regards (e.g. errors, exceptions) this feature should behave identically to the current behavior.</p> <h2 dir="auto">Proposed UI/UX</h2> <h2 dir="auto">Diagrams</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1128117/102881655-7883b480-444d-11eb-8a47-dddb27fb8e73.png"><img src="https://user-images.githubusercontent.com/1128117/102881655-7883b480-444d-11eb-8a47-dddb27fb8e73.png" alt="scratch_1" style="max-width: 100%;"></a></p> <p dir="auto">This diagram illustrates the basic idea. If a task leaks memory, the memory consumption will rise until the Worker process (e.g. the Celery systemd service) is restarted. If the execution of such a task is contained in a separate child process, memory is freed after each task.</p> <h2 dir="auto">Alternatives</h2> <p dir="auto">Instead of including this feature in Celery itself, one could implement this feature in a subclass of <code class="notranslate">celery.Task</code>?</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Grow transition honors the enter/leave durations propagated from the Dialog component.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto"><code class="notranslate">Dialog</code> accepts enter and leaveTransitionDuration props but the <code class="notranslate">Grow</code> transition only accepts the transitionDuration prop. This effectively ignores the props given to the Dialog.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://codesandbox.io/s/l476j33mjq" rel="nofollow">https://codesandbox.io/s/l476j33mjq</a></p> <ol dir="auto"> <li>Click 'Show dialog'</li> <li>Observe that react warning in console</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">One can use props directly on a Grow transition (and in fact the defaults are great in my case) so not a super important bug but it might rear it's head in other places.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.12</td> </tr> <tr> <td>React</td> <td>16 rc3</td> </tr> <tr> <td>browser</td> <td>chrome</td> </tr> </tbody> </table>
<p dir="auto">Tooltip in a narrow table head cell wraps its content while tooltips in ordinary table cells don't.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I expect it to behave the same as a tooltip in any other table cell</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I added tooltips in the first column of the table:<br> <a href="https://codesandbox.io/s/9yqjyx68o" rel="nofollow">https://codesandbox.io/s/9yqjyx68o</a></p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.19</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; collect(Iterators.Stateful(2x for x in 1:3)) 2-element Vector{Int64}: 2 4"><pre class="notranslate"><code class="notranslate">julia&gt; collect(Iterators.Stateful(2x for x in 1:3)) 2-element Vector{Int64}: 2 4 </code></pre></div> <p dir="auto">The input has 3 elements, I would therefore expect the output also to have 3 elements, but there are only 2.</p> <p dir="auto">On the other hand, the problem disappears if</p> <ul dir="auto"> <li> <p dir="auto">we remove the generator</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="collect(Iterators.Stateful(1:3)) 3-element Vector{Int64}: 1 2 3"><pre class="notranslate"><code class="notranslate">collect(Iterators.Stateful(1:3)) 3-element Vector{Int64}: 1 2 3 </code></pre></div> </li> <li> <p dir="auto">we use <code class="notranslate">iterate</code> directly</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; s = Iterators.Stateful(2x for x in 1:3); julia&gt; iterate(s) (2, nothing) julia&gt; iterate(s, ans[2]) (4, nothing) julia&gt; iterate(s, ans[2]) (6, nothing) julia&gt; iterate(s, ans[2]) julia&gt; "><pre class="notranslate"><code class="notranslate">julia&gt; s = Iterators.Stateful(2x for x in 1:3); julia&gt; iterate(s) (2, nothing) julia&gt; iterate(s, ans[2]) (4, nothing) julia&gt; iterate(s, ans[2]) (6, nothing) julia&gt; iterate(s, ans[2]) julia&gt; </code></pre></div> </li> </ul> <h1 dir="auto">versioninfo</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; versioninfo() Julia Version 1.6.1 Commit 6aaedecc44 (2021-04-23 05:59 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-11.0.1 (ORCJIT, ivybridge) julia&gt; "><pre class="notranslate"><code class="notranslate">julia&gt; versioninfo() Julia Version 1.6.1 Commit 6aaedecc44 (2021-04-23 05:59 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-11.0.1 (ORCJIT, ivybridge) julia&gt; </code></pre></div> <p dir="auto">The problem also appears in julia 1.3.1, but it seems to be behaving as expected in 1.0.</p> <p dir="auto">Edit:</p> <p dir="auto">My 1.3.1 trial was in an online REPL (<a href="https://replit.com/languages/julia" rel="nofollow">https://replit.com/languages/julia</a>) which claims to be 1.3.1 but <code class="notranslate">versioninfo()</code> shows 1.4.1</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia version 1.3.1  versioninfo() Julia Version 1.4.1 Commit 381693d3df* (2020-04-14 17:20 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Xeon(R) CPU @ 2.30GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-8.0.1 (ORCJIT, haswell)  collect(Iterators.Stateful(2x for x in 1:3)) 2-element Array{Int64,1}: 2 4"><pre class="notranslate"><code class="notranslate">julia version 1.3.1  versioninfo() Julia Version 1.4.1 Commit 381693d3df* (2020-04-14 17:20 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Xeon(R) CPU @ 2.30GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-8.0.1 (ORCJIT, haswell)  collect(Iterators.Stateful(2x for x in 1:3)) 2-element Array{Int64,1}: 2 4 </code></pre></div>
<p dir="auto">Strage behaviour of Stateful iterator:<br> Although</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; for a in Iterators.Stateful([1,2,3]) print(a) end 123"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-k">for</span> a <span class="pl-k">in</span> Iterators<span class="pl-k">.</span><span class="pl-c1">Stateful</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>]) <span class="pl-c1">print</span>(a) <span class="pl-k">end</span> <span class="pl-c1">123</span></pre></div> <p dir="auto">works as it should,<br> With list comprehension it fails to iterate over last element</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; [a for a in Iterators.Stateful([1,2,3])] 2-element Array{Int64,1}: 1 2"><pre class="notranslate">julia<span class="pl-k">&gt;</span> [a <span class="pl-k">for</span> a <span class="pl-k">in</span> Iterators<span class="pl-k">.</span><span class="pl-c1">Stateful</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>])] <span class="pl-c1">2</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span></pre></div> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; [a for a in Iterators.Stateful([1])] ERROR: BoundsError: attempt to access 0-element Array{Int64,1} at index [1]"><pre class="notranslate">julia<span class="pl-k">&gt;</span> [a <span class="pl-k">for</span> a <span class="pl-k">in</span> Iterators<span class="pl-k">.</span><span class="pl-c1">Stateful</span>([<span class="pl-c1">1</span>])] ERROR<span class="pl-k">:</span> BoundsError<span class="pl-k">:</span> attempt to access <span class="pl-c1">0</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>} at index [<span class="pl-c1">1</span>]</pre></div> <p dir="auto">tried on Julia 1.3.1, Julia 1.4.0 and Julia 1.4.1.<br> More details in <a href="https://discourse.julialang.org/t/strange-behavior-with-list-comprehensions-using-iterators-stateful/29715" rel="nofollow">https://discourse.julialang.org/t/strange-behavior-with-list-comprehensions-using-iterators-stateful/29715</a></p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke" rel="nofollow">Oliver Drotbohm</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6467?redirect=false" rel="nofollow">SPR-6467</a></strong> and commented</p> <p dir="auto">Currently <code class="notranslate">ContentNegotiatingViewResolver</code> acts lenient as it returns <code class="notranslate">null</code> when it can not resolve any view to indicate that further <code class="notranslate">ViewResolvers</code> configured shall step in and try to resolve the view.</p> <p dir="auto">In cases when <code class="notranslate">ContentNegotiatingViewResolver</code> is the only resolver configured, not resolving the view should be answered with a <code class="notranslate">406 Not Acceptable</code> status code. A quick hack I did was to add a property <code class="notranslate">beStrict</code> to <code class="notranslate">CNVR</code> an implement an inner class to return the appropriate statuscode. See applied patch.</p> <p dir="auto">This solves the problem at a first glance but I think it would be more clean to prevent processing of the request entirely if no valid accept header was set by using the algorithm <code class="notranslate">getmediaTypes(..)</code> in <code class="notranslate">CNVR</code>. Currently this method is not public, but I could imagine a <code class="notranslate">HandlerInterceptor</code> implementation that gets a reference to the <code class="notranslate">CNVR</code> injected and call to <code class="notranslate">getMediaType(..)</code> to decide whether to process the request at all.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 RC2</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/15972/bestrict.patch" rel="nofollow">bestrict.patch</a> (<em>2.43 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="398103256" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11559" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11559/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11559">#11559</a> exotic MIME-Type leads to 500 Internal Server Error (<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/1cd0a9750da46d35a6ff8eadccb4d3be22afeb9e/hovercard" href="https://github.com/spring-projects/spring-framework/commit/1cd0a9750da46d35a6ff8eadccb4d3be22afeb9e"><tt>1cd0a97</tt></a></p>
<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-9779?redirect=false" rel="nofollow">SPR-9779</a></strong> and commented</p> <p dir="auto">Per email.</p> <hr> <p dir="auto">This issue is a sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398152666" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14349" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14349/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14349">#14349</a></p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398153157" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14417" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14417/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14417">#14417</a> Upgrade to JUnit 4.11 snapshot in support of JDK7 (<em><strong>"depends on"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398152667" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14350" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14350/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14350">#14350</a> Build against JDK 7, test against JDK 6+7 (<em><strong>"is depended on by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398154857" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14625" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14625/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14625">#14625</a> AdvisorAdapterRegistrationTests fails intermittently under Java 7 (<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="398154857" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14625" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14625/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14625">#14625</a> AdvisorAdapterRegistrationTests fails intermittently under Java 7</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/a9a90cabadfe8059bbae595645108c739362bc80/hovercard" href="https://github.com/spring-projects/spring-framework/commit/a9a90cabadfe8059bbae595645108c739362bc80"><tt>a9a90ca</tt></a></p>
0
<p dir="auto">Consider i have the following directory tree in my application:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - app.js - locale/ - es/ - module1/ - form1.json - form2.json - module2/ - form3.json - form4.json - en/ - module1/ - form1.json - form2.json - module2/ - form3.json - form4.json"><pre class="notranslate"><code class="notranslate"> - app.js - locale/ - es/ - module1/ - form1.json - form2.json - module2/ - form3.json - form4.json - en/ - module1/ - form1.json - form2.json - module2/ - form3.json - form4.json </code></pre></div> <p dir="auto">And app.js has this content:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* ... */ function loadLazyModule (moduleName) { require.ensure ([], function () { var lang = /* Browser language */; var forms = ['form1', 'form2'] /* Get dynamically the array of forms? */ for (var i = 0; i &lt; forms.length; i++) { var translations = require ( 'locale/'+ lang +'/'+ moduleName +'/'+ form[i] +'.json'); registerTranslations (translations); } }); } /* ... */"><pre class="notranslate"><code class="notranslate">/* ... */ function loadLazyModule (moduleName) { require.ensure ([], function () { var lang = /* Browser language */; var forms = ['form1', 'form2'] /* Get dynamically the array of forms? */ for (var i = 0; i &lt; forms.length; i++) { var translations = require ( 'locale/'+ lang +'/'+ moduleName +'/'+ form[i] +'.json'); registerTranslations (translations); } }); } /* ... */ </code></pre></div> <p dir="auto">I need a main chunk with the core of my app, but i need to split every language translations of every module in diferent chunks and load them only when requested from the user. Im already using the json-loader for json files and the 'split-by-name-webpack-plugin' but it doesn't works with dynamic loading (require.ensure).</p> <p dir="auto">The output should be as follows:</p> <ul dir="auto"> <li>myApp.js</li> <li>locale.module1.es.js</li> <li>locale.module2.es.js</li> <li>locale.module1.en.js</li> <li>locale.module2.en.js</li> </ul> <p dir="auto">Thanks.</p>
<p dir="auto">I'm having a hard time figuring this out. I have all these node_modules which include the css files I need but I can only get the javascript from the require.</p> <p dir="auto">For example require('bootstrap') will only return the js file and not the css.</p> <p dir="auto">I've tried</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="require(&quot;!style!css!bootstrap/dist/css&quot;);"><pre class="notranslate"><code class="notranslate">require("!style!css!bootstrap/dist/css"); </code></pre></div> <p dir="auto">but I just get this error:</p> <blockquote> <p dir="auto">ERROR in ./app/js/loader.js<br> Module not found: Error: Cannot resolve module 'bootstrap.css' in C:\Users\Administrator\Dropbox\projects\spDash\app\js<br> @ ./app/js/loader.js 10:0-24</p> <p dir="auto">ERROR in ./app/js/loader.js<br> Module not found: Error: Cannot resolve module 'bootstrap/dist/css' in C:\Users\Administrator\Dropbox\projects\spDash\app\js<br> @ ./app/js/loader.js 19:0-40</p> </blockquote> <p dir="auto">My config looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var webpack = require('webpack') module.exports = { entry: { 'spdash': './app/js/loader.js' }, output: { filename: 'bundle.js', }, devtool: 'source-map', module: { loaders: [ // the url-loader uses DataUrls. // the file-loader emits files. { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: &quot;url-loader?limit=10000&amp;minetype=application/font-woff&quot; }, { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: &quot;file-loader&quot; }, { test: /\.css$/, // Only .css files loader: 'style!css' // Run both loaders }, { test: /\.less$/, loader: 'style-loader!css-loader!less-loader' }, // use ! to chain loaders { test: /\.css$/, loader: 'style-loader!css-loader' }, {test: /\.(png|jpg)$/, loader: 'url-loader?limit=8192'} // inline base64 URLs for &lt;=8k images, direct URLs for the rest ] }, plugins: [ new webpack.optimize.UglifyJsPlugin({ minimize: true, compress: { warnings: false } }), new webpack.IgnorePlugin(/^\.\/locale$/, [/moment$/]) ] };"><pre class="notranslate"><code class="notranslate">var webpack = require('webpack') module.exports = { entry: { 'spdash': './app/js/loader.js' }, output: { filename: 'bundle.js', }, devtool: 'source-map', module: { loaders: [ // the url-loader uses DataUrls. // the file-loader emits files. { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&amp;minetype=application/font-woff" }, { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" }, { test: /\.css$/, // Only .css files loader: 'style!css' // Run both loaders }, { test: /\.less$/, loader: 'style-loader!css-loader!less-loader' }, // use ! to chain loaders { test: /\.css$/, loader: 'style-loader!css-loader' }, {test: /\.(png|jpg)$/, loader: 'url-loader?limit=8192'} // inline base64 URLs for &lt;=8k images, direct URLs for the rest ] }, plugins: [ new webpack.optimize.UglifyJsPlugin({ minimize: true, compress: { warnings: false } }), new webpack.IgnorePlugin(/^\.\/locale$/, [/moment$/]) ] }; </code></pre></div>
0
<p dir="auto">I am replacing the last softmax layer (with 1000 output units) of the original model (VGG16) with a new softmax layer (with 10 output units):<br> model.add(Dense(4096, activation='relu'))<br> model.add(Dropout(0.5))<br> model.add(Dense(1000, activation='softmax'))<br> model.load_weights('./vgg16_weights.h5')<br> model.layers.pop()<br> model.layers.pop()<br> model.add(Dropout(0.5))<br> model.add(Dense(10, activation='softmax'))<br> sgd = SGD(lr=1e-3, decay=1e-6, momentum=0.9, nesterov=True)<br> model.compile(optimizer=sgd, loss='categorical_crossentropy')</p> <p dir="auto">However, when I check input_shape and output_shape of the last three layers I find:</p> <blockquote> <blockquote> <blockquote> <p dir="auto">model.layers[-1].output_shape<br> (None, 10)<br> model.layers[-1].input_shape<br> (None, 1000)<br> model.layers[-2].input_shape<br> (None, 1000)<br> model.layers[-2].output_shape<br> (None, 1000)<br> model.layers[-3].output_shape<br> (None, 4096)<br> model.layers[-2].name<br> 'dropout_3'<br> model.layers[-3].name<br> 'dense_2'<br> model.layers[-1].name<br> 'dense_4'</p> </blockquote> </blockquote> </blockquote> <p dir="auto">Apparently, model.layers.pop() does not fully update the model. I have OS X 10.11.5 and I just updated keras and tensorflow (I cannot use Theano since it produces Illegal instruction: 4 error)</p>
<p dir="auto">I'm trying to start <a href="https://github.com/iamaaditya/VQA_Demo">https://github.com/iamaaditya/VQA_Demo</a> which uses pre-trained VGG16 model (<a href="https://github.com/iamaaditya/VQA_Demo/blob/master/models/CNN/VGG.py">https://github.com/iamaaditya/VQA_Demo/blob/master/models/CNN/VGG.py</a>). The last 2 layers are removed with layers.pop(). This doesn't seem to work, however. The message "ValueError: could not broadcast input array from shape (1000) into shape (4096)" is displayed, and I see the layers were not removed when I do "plot(image_model, to_file='model_vgg.png', show_shapes=True)". Thank you.</p>
1
<p dir="auto"><strong>Description:</strong></p> <p dir="auto">When Deno is called from a directory that used to exist but doesn't anymore (i.e. deleted externally), it will panic.</p> <p dir="auto"><strong>Steps to Reproduce:</strong></p> <ol dir="auto"> <li><code class="notranslate">mkdir /tmp/testing &amp;&amp; cd /tmp/testing</code></li> <li><code class="notranslate">deno</code> or <code class="notranslate">deno repl</code> or <code class="notranslate">deno run https://deno.land/std/examples/welcome.ts</code></li> <li>Observe that it works</li> </ol> <p dir="auto">-<em>in another terminal</em>-</p> <p dir="auto"><code class="notranslate">rm -rf /tmp/testing</code></p> <p dir="auto">-<em>back to the original terminal</em>-</p> <ol start="4" dir="auto"> <li>Re-run the command.</li> <li>Observe panic.</li> </ol> <p dir="auto"><strong>Backtrace:</strong> <a href="https://github.com/denoland/deno/files/8908708/backtrace.txt">backtrace.txt</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~ RUST_BACKTRACE=1 deno run -A cli.ts ============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: macos x86_64 Version: 1.22.3 Args: [&quot;deno&quot;, &quot;run&quot;, &quot;-A&quot;, &quot;cli.ts&quot;] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: &quot;No such file or directory&quot; }', core/module_specifier.rs:141:28 stack backtrace: 0: _rust_begin_unwind 1: core::panicking::panic_fmt 2: core::result::unwrap_failed 3: deno_core::module_specifier::resolve_path 4: deno_core::module_specifier::resolve_url_or_path 5: deno::run_command::{{closure}} 6: deno::main::{{closure}} 7: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll 8: deno_runtime::tokio_util::run_basic 9: deno::main note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace."><pre class="notranslate"><code class="notranslate">~ RUST_BACKTRACE=1 deno run -A cli.ts ============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: macos x86_64 Version: 1.22.3 Args: ["deno", "run", "-A", "cli.ts"] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', core/module_specifier.rs:141:28 stack backtrace: 0: _rust_begin_unwind 1: core::panicking::panic_fmt 2: core::result::unwrap_failed 3: deno_core::module_specifier::resolve_path 4: deno_core::module_specifier::resolve_url_or_path 5: deno::run_command::{{closure}} 6: deno::main::{{closure}} 7: &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll 8: deno_runtime::tokio_util::run_basic 9: deno::main note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~ RUST_BACKTRACE=full deno run -A cli.ts ============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: macos x86_64 Version: 1.22.3 Args: [&quot;deno&quot;, &quot;run&quot;, &quot;-A&quot;, &quot;cli.ts&quot;] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: &quot;No such file or directory&quot; }', core/module_specifier.rs:141:28 stack backtrace: 0: 0x1023aaf8b - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::h4cae82d438451481 1: 0x101a744eb - core::fmt::write::hb68c3045179d0cad 2: 0x1023a51ae - std::io::Write::write_fmt::haf84c797e63d79f0 3: 0x1023afde0 - std::panicking::default_hook::{{closure}}::he18137441e51da1f 4: 0x1023afb01 - std::panicking::default_hook::ha3efe84526f027fa 5: 0x101a076a1 - deno::setup_panic_hook::{{closure}}::h40c42abbafe06a7a 6: 0x1023b0a40 - std::panicking::rust_panic_with_hook::h429a7ddefa5f0258 7: 0x1023b0734 - std::panicking::begin_panic_handler::{{closure}}::h9b033a6b15b84a74 8: 0x1023b06a9 - std::sys_common::backtrace::__rust_end_short_backtrace::hcdd3bec8e0e38aa6 9: 0x1023b0665 - _rust_begin_unwind 10: 0x1035ee173 - core::panicking::panic_fmt::hf7d6e5207e013f69 11: 0x1035ee485 - core::result::unwrap_failed::h95d9e30ede493473 12: 0x101b575eb - deno_core::module_specifier::resolve_path::hb9a126f04a986351 13: 0x101b56cfc - deno_core::module_specifier::resolve_url_or_path::h85e8466bb4c632ef 14: 0x1019648f3 - deno::run_command::{{closure}}::h4b081d1b1f5edb22 15: 0x1016f4ceb - deno::main::{{closure}}::h9a70f756620d74a8 16: 0x1016e8d8f - &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll::h75b1e0a291c5e2cc 17: 0x1016e6049 - deno_runtime::tokio_util::run_basic::hd2be911e11342f3d 18: 0x1016e5588 - deno::main::h3ebfe1366267437f 19: 0x1016e4d9c - std::sys_common::backtrace::__rust_begin_short_backtrace::h366f15b72859e8b1 20: 0x1016e505c - _main"><pre class="notranslate"><code class="notranslate">~ RUST_BACKTRACE=full deno run -A cli.ts ============================================================ Deno has panicked. This is a bug in Deno. Please report this at https://github.com/denoland/deno/issues/new. If you can reliably reproduce this panic, include the reproduction steps and re-run with the RUST_BACKTRACE=1 env var set and include the backtrace in your report. Platform: macos x86_64 Version: 1.22.3 Args: ["deno", "run", "-A", "cli.ts"] thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', core/module_specifier.rs:141:28 stack backtrace: 0: 0x1023aaf8b - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::h4cae82d438451481 1: 0x101a744eb - core::fmt::write::hb68c3045179d0cad 2: 0x1023a51ae - std::io::Write::write_fmt::haf84c797e63d79f0 3: 0x1023afde0 - std::panicking::default_hook::{{closure}}::he18137441e51da1f 4: 0x1023afb01 - std::panicking::default_hook::ha3efe84526f027fa 5: 0x101a076a1 - deno::setup_panic_hook::{{closure}}::h40c42abbafe06a7a 6: 0x1023b0a40 - std::panicking::rust_panic_with_hook::h429a7ddefa5f0258 7: 0x1023b0734 - std::panicking::begin_panic_handler::{{closure}}::h9b033a6b15b84a74 8: 0x1023b06a9 - std::sys_common::backtrace::__rust_end_short_backtrace::hcdd3bec8e0e38aa6 9: 0x1023b0665 - _rust_begin_unwind 10: 0x1035ee173 - core::panicking::panic_fmt::hf7d6e5207e013f69 11: 0x1035ee485 - core::result::unwrap_failed::h95d9e30ede493473 12: 0x101b575eb - deno_core::module_specifier::resolve_path::hb9a126f04a986351 13: 0x101b56cfc - deno_core::module_specifier::resolve_url_or_path::h85e8466bb4c632ef 14: 0x1019648f3 - deno::run_command::{{closure}}::h4b081d1b1f5edb22 15: 0x1016f4ceb - deno::main::{{closure}}::h9a70f756620d74a8 16: 0x1016e8d8f - &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll::h75b1e0a291c5e2cc 17: 0x1016e6049 - deno_runtime::tokio_util::run_basic::hd2be911e11342f3d 18: 0x1016e5588 - deno::main::h3ebfe1366267437f 19: 0x1016e4d9c - std::sys_common::backtrace::__rust_begin_short_backtrace::h366f15b72859e8b1 20: 0x1016e505c - _main </code></pre></div>
1
<p dir="auto">With the new preview tabs, there's currently not a way to keep a tab opened without making changes to the file's contents. In sublime, double clicking a file prevents the preview from being closed when switching to another file. This would be useful behaviour in atom's preview tabs as well.</p>
<p dir="auto">Using Atom v0.206.0-4941229 on Mac OS X 10.10.3.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1038121/7951649/0ca54bf4-095f-11e5-9aa6-84c1474b35bd.png"><img src="https://cloud.githubusercontent.com/assets/1038121/7951649/0ca54bf4-095f-11e5-9aa6-84c1474b35bd.png" alt="screen shot 2015-06-02 at 7 38 29 pm" style="max-width: 100%;"></a></p> <h3 dir="auto">Repro Steps</h3> <ol dir="auto"> <li>Open Atom</li> <li>Open Settings View</li> <li>Navigate to Tabs package settings</li> <li>Ensure "Use Preview Tabs" is checked</li> <li>Close Settings View</li> <li>Double-click any file in Tree View</li> </ol> <p dir="auto"><strong>Expected:</strong> Tab's title to not be italic (italic is the indicator that it is temporary)<br> <strong>Actual:</strong> Tab's title is italic</p> <ol dir="auto"> <li>Double-click another file in Tree View</li> </ol> <p dir="auto"><strong>Expected:</strong> Second tab to open<br> <strong>Actual:</strong> New file overwrites the tab of the original file</p>
1
<ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">When using a grid that scrolls vertically, a horizontal scrollbar should not be necessary.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The grid looks like it generates double the needed spacing on the right side, resulting in a layout that is slightly too wide for the screen, and needs a horizontal scrollbar.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Add spacing to a grid container</li> <li>Sometimes the issue happens</li> </ol> <p dir="auto"><a href="https://codesandbox.io/s/6xmn89k28z" rel="nofollow">Here's the issue</a></p> <p dir="auto"><a href="https://codesandbox.io/s/6lz1jlr3vz" rel="nofollow">Adding some padding to an outer div prevents it from happening</a></p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.18</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> <tr> <td>browser</td> <td>chrome 61.0.3163.100</td> </tr> </tbody> </table>
<p dir="auto">The <code class="notranslate">&lt;Grid container&gt;</code> extends beyond its parent, with half of spacing size.<br> I have marked the extra width in red, also setting spacing to zero fixes the problem.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3260363/28355346-338983fc-6c81-11e7-9f67-fb33c7758283.png"><img src="https://user-images.githubusercontent.com/3260363/28355346-338983fc-6c81-11e7-9f67-fb33c7758283.png" alt="mobile-padding" style="max-width: 100%;"></a></p> <p dir="auto">Here is a working example: <a href="https://codesandbox.io/s/Y8nzGm5W" rel="nofollow">https://codesandbox.io/s/Y8nzGm5W</a>.<br> Similar code with a zero spacing works as expected: <a href="https://codesandbox.io/s/NxvYxvQpL" rel="nofollow">https://codesandbox.io/s/NxvYxvQpL</a>.</p>
1
<h4 dir="auto">Code Sample</h4> <p dir="auto">If test.csv file looks like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a,b,c 0,1,2 1,2,3"><pre class="notranslate"><code class="notranslate">a,b,c 0,1,2 1,2,3 </code></pre></div> <p dir="auto">Reading in the file with the header given in a list of length 0 results in no warnings or errors, but each line is interpreted as NaNs.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import pandas as pd &gt;&gt;&gt; pd.read_csv(&quot;test.csv&quot;, header=[0]) a b c 0 NaN NaN NaN 1 NaN NaN NaN"><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">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">"test.csv"</span>, <span class="pl-s1">header</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>]) <span class="pl-s1">a</span> <span class="pl-s1">b</span> <span class="pl-s1">c</span> <span class="pl-c1">0</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-c1">1</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Single-length lists are not a problem elsewhere in pandas or within read_csv. For example, passing <code class="notranslate">index_col=[0]</code> does not cause pandas to read a csv file incorrectly. Preferably pandas would read in the csv file correctly given a list of header rows with one element. Raising an error or warning would also be an improvement over the current functionality.</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="&gt;&gt;&gt; import pandas as pd &gt;&gt;&gt; pd.read_csv(&quot;test.csv&quot;, header=[0]) a b c 0 0 1 2 1 1 2 3"><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">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">"test.csv"</span>, <span class="pl-s1">header</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>]) <span class="pl-s1">a</span> <span class="pl-s1">b</span> <span class="pl-s1">c</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> OS: macOS Sierra Python: 2.7.13 pandas: 0.20.2 pytest: None pip: 9.0.1 setuptools: 27.2.0 Cython: 0.25.2 numpy: 1.13.1 scipy: 0.19.1 xarray: None IPython: 5.3.0 sphinx: None patsy: 0.4.1 dateutil: 2.6.0 pytz: 2017.2 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 2.0.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: 0.999 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.9.6 s3fs: None pandas_gbq: None pandas_datareader: None </details>
<p dir="auto"><code class="notranslate">read_csv</code> with a single-row header either breaks any names that might be on the index, or reads all data as <code class="notranslate">NaN</code>. This problem might exist because <code class="notranslate">pd.read_csv</code> hasn't caught up to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="36667985" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/7589" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/7589/hovercard" href="https://github.com/pandas-dev/pandas/issues/7589">#7589</a>.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" In [1]: import pandas as pd In [2]: from StringIO import StringIO In [3]: pd.read_csv(StringIO('''\ alpha,,A,B foo,bar,, this,x,1,2 this,y,5,6 that,x,3,4 that,y,7,8'''), header=0, index_col=[0,1]) Out[3]: A B alpha Unnamed: 1 foo bar NaN NaN this x 1 2 y 5 6 that x 3 4 y 7 8 In [4]: pd.read_csv(StringIO('''\ alpha,,A,B foo,bar,, this,x,1,2 this,y,5,6 that,x,3,4 that,y,7,8'''), header=[0], index_col=[0,1]) Out[4]: alpha A B foo bar this x NaN NaN y NaN NaN that x NaN NaN y NaN NaN In [5]: pd.read_csv(StringIO('''\ alpha,,A,B beta,,Y,Z foo,bar,, this,x,1,2 this,y,5,6 that,x,3,4 that,y,7,8'''), header=[0,1], index_col=[0,1]) Out[5]: alpha A B beta Y Z foo bar this x 1 2 y 5 6 that x 3 4 y 7 8 "><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">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">from</span> <span class="pl-v">StringIO</span> <span class="pl-k">import</span> <span class="pl-v">StringIO</span> <span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s">'''<span class="pl-cce">\</span></span> <span class="pl-s"><span class="pl-cce"></span>alpha,,A,B</span> <span class="pl-s">foo,bar,,</span> <span class="pl-s">this,x,1,2</span> <span class="pl-s">this,y,5,6</span> <span class="pl-s">that,x,3,4</span> <span class="pl-s">that,y,7,8'''</span>), <span class="pl-s1">header</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">index_col</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]) <span class="pl-v">Out</span>[<span class="pl-c1">3</span>]: <span class="pl-v">A</span> <span class="pl-v">B</span> <span class="pl-s1">alpha</span> <span class="pl-v">Unnamed</span>: <span class="pl-c1">1</span> <span class="pl-s1">foo</span> <span class="pl-s1">bar</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-s1">this</span> <span class="pl-s1">x</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-s1">y</span> <span class="pl-c1">5</span> <span class="pl-c1">6</span> <span class="pl-s1">that</span> <span class="pl-s1">x</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span> <span class="pl-s1">y</span> <span class="pl-c1">7</span> <span class="pl-c1">8</span> <span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s">'''<span class="pl-cce">\</span></span> <span class="pl-s"><span class="pl-cce"></span>alpha,,A,B</span> <span class="pl-s">foo,bar,,</span> <span class="pl-s">this,x,1,2</span> <span class="pl-s">this,y,5,6</span> <span class="pl-s">that,x,3,4</span> <span class="pl-s">that,y,7,8'''</span>), <span class="pl-s1">header</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>], <span class="pl-s1">index_col</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]) <span class="pl-v">Out</span>[<span class="pl-c1">4</span>]: <span class="pl-s1">alpha</span> <span class="pl-v">A</span> <span class="pl-v">B</span> <span class="pl-s1">foo</span> <span class="pl-s1">bar</span> <span class="pl-s1">this</span> <span class="pl-s1">x</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-s1">y</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-s1">that</span> <span class="pl-s1">x</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-s1">y</span> <span class="pl-v">NaN</span> <span class="pl-v">NaN</span> <span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s">'''<span class="pl-cce">\</span></span> <span class="pl-s"><span class="pl-cce"></span>alpha,,A,B</span> <span class="pl-s">beta,,Y,Z</span> <span class="pl-s">foo,bar,,</span> <span class="pl-s">this,x,1,2</span> <span class="pl-s">this,y,5,6</span> <span class="pl-s">that,x,3,4 </span> <span class="pl-s">that,y,7,8'''</span>), <span class="pl-s1">header</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>], <span class="pl-s1">index_col</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]) <span class="pl-v">Out</span>[<span class="pl-c1">5</span>]: <span class="pl-s1">alpha</span> <span class="pl-v">A</span> <span class="pl-v">B</span> <span class="pl-s1">beta</span> <span class="pl-v">Y</span> <span class="pl-v">Z</span> <span class="pl-s1">foo</span> <span class="pl-s1">bar</span> <span class="pl-s1">this</span> <span class="pl-s1">x</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-s1">y</span> <span class="pl-c1">5</span> <span class="pl-c1">6</span> <span class="pl-s1">that</span> <span class="pl-s1">x</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span> <span class="pl-s1">y</span> <span class="pl-c1">7</span> <span class="pl-c1">8</span></pre></div>
1
<p dir="auto">See <a href="http://babeljs.io/repl/#?experimental=true&amp;evaluate=true&amp;loose=false&amp;spec=false&amp;playground=false&amp;code=function%20autobind%28target%2C%20key%2C%20descriptor%29%20%7B%0A%20%20var%20fn%20%3D%20descriptor.value%3B%0A%20%20delete%20descriptor.value%3B%0A%20%20delete%20descriptor.writable%3B%0A%20%20descriptor.get%20%3D%20function%20%28%29%20%7B%0A%20%20%20%20return%20this%5Bkey%5D%20%3D%20fn.bind%28this%29%3B%0A%20%20%7D%3B%0A%7D%0A%0Aclass%20Person%20%7B%0A%20%20first%20%3D%20%22Sebastian%22%3B%0A%20%20last%20%3D%20%22McKenzie%22%3B%0A%0A%20%20%40autobind%0A%20%20getFullName%28%29%20%7B%0A%20%20%20%20return%20%60%24%7Bthis.first%7D%20%24%7Bthis.last%7D%60%3B%0A%20%20%7D%0A%7D%0A%0Aconsole.log%28new%20Person%28%29.getFullName%28%29%29%3B" rel="nofollow">demo code</a> which was taken straight from the blog post.</p>
<p dir="auto">The example from <a href="http://babeljs.io/blog/2015/03/31/5.0.0/" rel="nofollow">release notes</a> is not working for me with <code class="notranslate">babel --version // 5.1.13</code></p> <p dir="auto">.babelrc</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;stage&quot;: 0, &quot;optional&quot;: [ &quot;es7.decorators&quot; ] }"><pre class="notranslate">{ <span class="pl-ent">"stage"</span>: <span class="pl-c1">0</span>, <span class="pl-ent">"optional"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>es7.decorators<span class="pl-pds">"</span></span> ] }</pre></div> <p dir="auto">decorators.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function concat(...args) { let sep = args.pop(); return function(target, key, descriptor) { descriptor.initializer = function() { return args.map(arg =&gt; this[arg]).join(sep); } } } function autobind(target, key, descriptor) { var fn = descriptor.value; delete descriptor.value; delete descriptor.writable; descriptor.get = function () { return this[key] = fn.bind(this); }; } class Person { firstName = &quot;Sebastian&quot;; lastName = &quot;McKenzie&quot;; @concat(&quot;firstName&quot;, &quot;lastName&quot;, &quot; &quot;) fullName; @concat(&quot;lastName&quot;, &quot;firstName&quot;, &quot;, &quot;) formalName; @autobind getFullName() { return `${this.first} ${this.last}`; } } console.log(new Person().firstName) console.log(new Person().lastName) console.log(new Person().fullName) console.log(new Person().formalName) console.log(new Person().getFullName) assert(new Person().fullName, &quot;Sebastian McKenzie&quot;); assert(new Person().formalName, &quot;McKenzie, Sebastian&quot;); assert(new Person().getFullName.call(null), &quot;Sebastian McKenzie&quot;);"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">concat</span><span class="pl-kos">(</span>...<span class="pl-s1">args</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">sep</span> <span class="pl-c1">=</span> <span class="pl-s1">args</span><span class="pl-kos">.</span><span class="pl-en">pop</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">descriptor</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-en">initializer</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">args</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">arg</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s1">arg</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">sep</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">autobind</span><span class="pl-kos">(</span><span class="pl-s1">target</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">descriptor</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">fn</span> <span class="pl-c1">=</span> <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">;</span> <span class="pl-k">delete</span> <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">;</span> <span class="pl-k">delete</span> <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-c1">writable</span><span class="pl-kos">;</span> <span class="pl-s1">descriptor</span><span class="pl-kos">.</span><span class="pl-en">get</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">fn</span><span class="pl-kos">.</span><span class="pl-en">bind</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-k">class</span> <span class="pl-v">Person</span> <span class="pl-kos">{</span> <span class="pl-c1">firstName</span> <span class="pl-c1">=</span> <span class="pl-s">"Sebastian"</span><span class="pl-kos">;</span> <span class="pl-c1">lastName</span> <span class="pl-c1">=</span> <span class="pl-s">"McKenzie"</span><span class="pl-kos">;</span> @<span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s">"firstName"</span><span class="pl-kos">,</span> <span class="pl-s">"lastName"</span><span class="pl-kos">,</span> <span class="pl-s">" "</span><span class="pl-kos">)</span> <span class="pl-c1">fullName</span><span class="pl-kos">;</span> @<span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s">"lastName"</span><span class="pl-kos">,</span> <span class="pl-s">"firstName"</span><span class="pl-kos">,</span> <span class="pl-s">", "</span><span class="pl-kos">)</span> <span class="pl-c1">formalName</span><span class="pl-kos">;</span> @<span class="pl-s1">autobind</span> <span class="pl-en">getFullName</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-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">first</span><span class="pl-kos">}</span></span> <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">last</span><span class="pl-kos">}</span></span>`</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-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">firstName</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-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">lastName</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-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">fullName</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-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">formalName</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-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">getFullName</span><span class="pl-kos">)</span> <span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">fullName</span><span class="pl-kos">,</span> <span class="pl-s">"Sebastian McKenzie"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">formalName</span><span class="pl-kos">,</span> <span class="pl-s">"McKenzie, Sebastian"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">getFullName</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s">"Sebastian McKenzie"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">When after compilation <code class="notranslate">babel descriptors.js -o compiled.js</code> and running <code class="notranslate">node compiled.js</code> I'm getting the following error</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ node scripts/compileds.js Sebastian McKenzie , /Users/marcin.kumorek/projects/es6-today/scripts/compileds.js:32 return this[key] = fn.bind(this); ^ TypeError: Cannot set property getFullName of #&lt;Person&gt; which has only a getter at Person.descriptor.get (/Users/marcin.kumorek/projects/es6-today/scripts/compileds.js:32:22) at Object.&lt;anonymous&gt; (/Users/marcin.kumorek/projects/es6-today/scripts/compileds.js:75:25) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3"><pre class="notranslate">$ node scripts/compileds.js Sebastian McKenzie , /Users/marcin.kumorek/projects/es6-today/scripts/compileds.js:32 <span class="pl-k">return</span> this[key] = fn.bind(this)<span class="pl-k">;</span> ^ TypeError: Cannot <span class="pl-c1">set</span> property getFullName of <span class="pl-c"><span class="pl-c">#</span>&lt;Person&gt; which has only a getter</span> at Person.descriptor.get (/Users/marcin.kumorek/projects/es6-today/scripts/compileds.js:32:22) at Object.<span class="pl-k">&lt;</span>anonymous<span class="pl-k">&gt;</span> (/Users/marcin.kumorek/projects/es6-today/scripts/compileds.js:75:25) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) at startup (node.js:129:16) at node.js:814:3</pre></div> <p dir="auto">There are two issues here:</p> <ul dir="auto"> <li>first the output from console.logs are wrong (fullName returns '' and formalName ',')</li> <li>second the <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/autoBind/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/autoBind">@autoBind</a> is not working correctly resulting in a TypeError</li> </ul> <p dir="auto">I'm running <code class="notranslate">node -v0.12</code></p>
1
<p dir="auto">As of today one needs to enumerate all the directives used by a given <code class="notranslate">@View</code>. This is very verbose and repetitive process, especially for simpler cases / components where one uses only standard / built-in directives.</p> <p dir="auto">Assuming that I'm building a simple components that only consumes built-in directives I need to write:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {Component, Template, bootstrap} from 'angular2/angular2'; import {If} from 'angular2/angular2'; @Component({ .... }) @View({ inline: '...', directives: [If] }) class Simple { ... }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">Component</span><span class="pl-kos">,</span> <span class="pl-v">Template</span><span class="pl-kos">,</span> <span class="pl-s1">bootstrap</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'angular2/angular2'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">If</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'angular2/angular2'</span><span class="pl-kos">;</span> @<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> ...<span class="pl-kos">.</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> @<span class="pl-v">View</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">inline</span>: <span class="pl-s">'...'</span><span class="pl-kos">,</span> <span class="pl-c1">directives</span>: <span class="pl-kos">[</span><span class="pl-v">If</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-v">Simple</span> <span class="pl-kos">{</span> ... <span class="pl-kos">}</span></pre></div> <p dir="auto">In a nutshell it means that for every directive I need to:</p> <ul dir="auto"> <li>import it</li> <li>reference in <code class="notranslate">directives</code></li> </ul> <p dir="auto">While I understand the benefits of this approach as well as technical limitations here, it is still very repetitive in practice, especially for very often (application-wide) directives (built-ins, directives used in most of the pages, etc.).</p> <p dir="auto">Here are few ideas of how to make it easier on people:</p> <ul dir="auto"> <li>allow omit <code class="notranslate">directives</code> and assume that all built-in directives are available</li> <li>allow omit <code class="notranslate">directives</code> and assume that all directives specified by an app developer are available</li> </ul> <p dir="auto">This is not urgent / critical piece but would make things significantly easier on people.</p>
<p dir="auto">This is something that is bothering me.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;someComponent *ngfor=&quot;#video in videos&quot; [video]='video'&gt; "><pre class="notranslate"><code class="notranslate"> &lt;someComponent *ngfor="#video in videos" [video]='video'&gt; </code></pre></div> <p dir="auto">I'm repeating video 3 times, and I'm creating an extra temp variable.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;someComponent *ngfor=&quot;[video] in videos&quot;&gt; "><pre class="notranslate"><code class="notranslate"> &lt;someComponent *ngfor="[video] in videos"&gt; </code></pre></div> <p dir="auto">Makes much more sense to me. Is this something that is possible? Or is it a bad idea to begin with?</p>
0
<p dir="auto">Right now you have to type <code class="notranslate">&lt;/</code> and press enter to close the last tag it would be much simpler to just press enter and have it close</p>
<p dir="auto">in html file-type<br> vscode version 0.10.6</p> <p dir="auto">My User Settings config says:<br> "editor.autoClosingBrackets": true,</p> <p dir="auto">but it still doesn't work.</p> <p dir="auto">For example, when you type in "&lt;script" the IntelliSense suggestions pops up and you press enter on "script" it doesn't close the tag like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script&gt; &lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;script&gt; &lt;/script&gt; </code></pre></div> <p dir="auto">but it stays like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script&gt;"><pre class="notranslate"><code class="notranslate">&lt;script&gt; </code></pre></div>
1
<p dir="auto"><strong>Describe the feature</strong>: At the moment there is no single point of truth of all possible Elasticsearch settings.<br> By that i mean both settings that are configured in the <code class="notranslate">elasticsearch.yml</code> &amp; ones that are configured on a specific index (For example in a template).</p> <p dir="auto">It would be extremely helpful to have a single page where you can just search for settings and read about them.</p> <p dir="auto">Thanks</p>
<p dir="auto">We currently build pom files for elasticsearch artifacts when running <code class="notranslate">gradle assemble</code>. We should validate these pom files, eg to ensure they don't contain broken xml, duplicate sections, valid tag names, etc.</p>
0
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">nightly (1.9.0-dev.20160303)</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Foo { foo( key: string ): string; foo( keys: string[] ): string[]; } declare var foo: Foo; declare const bar: string|string[]; const baz = foo.foo( bar );"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span><span class="pl-kos">(</span> <span class="pl-s1">key</span>: <span class="pl-smi">string</span> <span class="pl-kos">)</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-c1">foo</span><span class="pl-kos">(</span> <span class="pl-s1">keys</span>: <span class="pl-smi">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-kos">)</span>: <span class="pl-smi">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">foo</span>: <span class="pl-smi">Foo</span><span class="pl-kos">;</span> <span class="pl-k">declare</span> <span class="pl-k">const</span> <span class="pl-s1">bar</span>: <span class="pl-smi">string</span><span class="pl-c1">|</span><span class="pl-smi">string</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">baz</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span> <span class="pl-s1">bar</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> The code is valid and compiles without warning, because interface <code class="notranslate">Foo</code> contains a signature for a method <code class="notranslate">foo</code> corresponding to each type in the union <code class="notranslate">string|string[]</code>. The <code class="notranslate">foo</code> method can accept a parameter list of <code class="notranslate">string</code>, and it can also accept a parameter list of <code class="notranslate">string[]</code>, therefore an argument list of <code class="notranslate">string|string[]</code> is satisfiable.</p> <p dir="auto">I would expect the return type for <code class="notranslate">foo.foo</code> invoked in this faction to be the type union of the return types of all matching signatures (so <code class="notranslate">string|string[]</code>). This code produces the same error even if all matching signatures have the same return type.</p> <p dir="auto"><strong>Actual behavior:</strong><br> <code class="notranslate">Argument of type 'string | string[]' is not assignable to parameter of type 'string[]' Type 'string' is not assignable to type 'string[]'.</code></p>
<p dir="auto">It would be enormously helpful if <code class="notranslate">this</code> recognized type parameters:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="abstract class Functor&lt;a&gt; { abstract map&lt;b&gt;(map: (value: a) =&gt; b): this&lt;b&gt;; } abstract class Monad&lt;a&gt; extends Functor&lt;a&gt; { abstract bind&lt;b&gt;(bind: (value: a) =&gt; this&lt;b&gt;): this&lt;b&gt;; }"><pre class="notranslate"><span class="pl-k">abstract</span> <span class="pl-k">class</span> <span class="pl-smi">Functor</span><span class="pl-c1">&lt;</span><span class="pl-smi">a</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">abstract</span> <span class="pl-c1">map</span><span class="pl-c1">&lt;</span><span class="pl-smi">b</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">map</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">b</span><span class="pl-kos">)</span>: <span class="pl-smi">this</span><span class="pl-c1">&lt;</span><span class="pl-smi">b</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">abstract</span> <span class="pl-k">class</span> <span class="pl-smi">Monad</span><span class="pl-c1">&lt;</span><span class="pl-smi">a</span><span class="pl-c1">&gt;</span> <span class="pl-k">extends</span> <span class="pl-smi">Functor</span><span class="pl-kos">&lt;</span><span class="pl-smi">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">abstract</span> <span class="pl-c1">bind</span><span class="pl-c1">&lt;</span><span class="pl-smi">b</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">bind</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-c1">&lt;</span><span class="pl-smi">b</span><span class="pl-c1">&gt;</span><span class="pl-kos">)</span>: <span class="pl-smi">this</span><span class="pl-c1">&lt;</span><span class="pl-smi">b</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
0
<pre class="notranslate">What does 'go version' print? go version go1.3 linux/amd64 go version devel +f7e7857afd88 Fri Aug 01 16:45:33 2014 -0700 linux/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. Run code at <a href="http://play.golang.org/p/41yjG2bL40" rel="nofollow">http://play.golang.org/p/41yjG2bL40</a> What happened? Displays errors "json: cannot unmarshal number 1e2 into Go value of type *int*" for all int types. What should have happened instead? No errors should be reported (and correct number should be unmarshaled). The behaviour clearly is inline with strconv.{ParseInt,ParseUint}, but that does arguably not agree with the JSON specification - unless int types are determined to not be numbers.</pre>
<p dir="auto">Go version: <code class="notranslate">go version go1.5.1 linux/amd64</code></p> <p dir="auto">What I did: used gofmt on my source code<br> What I expected: have spaces around bitwise <code class="notranslate">&amp;</code> everywhere<br> What I saw: in one occasion there was no spaces around the operator</p> <p dir="auto">I have put "before" and "after" code into a <a href="https://gist.github.com/RomanSaveljev/ced32bbe4324d95e6c49/revisions?diff=split">gist</a>, so from the diff you can easily see the changes applied by gofmt</p>
0
<p dir="auto">just in case this is not present as another issue<br> Details are from a discourse <a href="https://discourse.julialang.org/t/efficient-tuple-concatenation/5398/3" rel="nofollow">post</a></p>
<p dir="auto">It's interesting that this is valid syntax in Julia and Lua:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function rec() return rec() end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">rec</span>() <span class="pl-k">return</span> <span class="pl-c1">rec</span>() <span class="pl-k">end</span></pre></div> <p dir="auto">The difference is that in Lua, when you call <code class="notranslate">rec()</code> it will stare at you and engage your motherboard's built-in space heater until you ctrl-C out. In Julia:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; rec() ERROR: stack overflow in rec at none:2 (repeats 80000 times)"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">rec</span>() ERROR<span class="pl-k">:</span> stack overflow <span class="pl-k">in</span> rec at none<span class="pl-k">:</span><span class="pl-c1">2</span> (repeats <span class="pl-c1">80000</span> times)</pre></div> <p dir="auto">So the stack 80000 things deep. That's interesting.</p> <p dir="auto">Why does this matter? I'm not sure. But some people care a lot:</p> <p dir="auto"><a href="http://www.lua.org/pil/6.3.html" rel="nofollow">http://www.lua.org/pil/6.3.html</a></p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-appendto-to-move-elements-with-jquery?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.prop%28%22disabled%22%2C%20true%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.remove%28%29%3B%0A%20%20%20%20%24%28%22%23right-well%22%29.append%28%24%28%22%23target2%22%29%29%3B%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Use appendTo to Move Elements with jQuery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;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(); &lt;!-- Note that this code works because it uses the appendTo() method correctly --&gt; $(&quot;#target2&quot;).appendTo($(&quot;#right-well&quot;)); &lt;!-- Intended code based on instructions, which will not function --&gt; $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); }); &lt;/script&gt; ''' The instructions in the referenced waypoint misguide coders to use the appendTo() method of jQuery incorrectly. Github would not let me attach my screenshot :("><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-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-c1">&lt;</span><span class="pl-c1">!</span><span class="pl-c1">--</span> <span class="pl-v">Note</span> <span class="pl-s1">that</span> <span class="pl-smi">this</span> <span class="pl-s1">code</span> <span class="pl-s1">works</span> <span class="pl-s1">because</span> <span class="pl-s1">it</span> <span class="pl-s1">uses</span> <span class="pl-s1">the</span> <span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">method</span> <span class="pl-s1">correctly</span> <span class="pl-c1">--</span><span class="pl-c1">&gt;</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-en">$</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-kos">;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">!</span><span class="pl-c1">--</span> <span class="pl-v">Intended</span> <span class="pl-s1">code</span> <span class="pl-s1">based</span> <span class="pl-s1">on</span> <span class="pl-s1">instructions</span><span class="pl-kos">,</span> <span class="pl-s1">which</span> <span class="pl-s1">will</span> <span class="pl-s1">not</span> <span class="pl-k">function</span> <span class="pl-c1">--</span><span class="pl-c1">&gt;</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-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> ''' The instructions in the referenced waypoint misguide coders to use the appendTo() method of jQuery incorrectly. Github would not let me attach my screenshot :(</pre></div>
<p dir="auto">A bug seems to be present: Chrome 46.0.2490.86 m; Windows 8.1 with respect to <code class="notranslate">appendTo()</code> function.</p> <p dir="auto"><code class="notranslate">$("#target2").appendTo($("#right-well"));</code> does work, but not the <code class="notranslate">$("#target2").appendTo("#right-well");</code>, the latter being suggested in the tutorial.</p> <p dir="auto">Hard reload and cache clearing did not seem to solve the problem.</p>
1
<p dir="auto">I have a navbar-fixed-top navbar. Links that include "scroll to id" (as in href="#myid") don't adjust scroll position to account for the 50px of the navbar.</p> <p dir="auto">Can you add some JS to detect this situation on the URL and adjust the scroll position back by the height of the navbar?</p>
<p dir="auto">navbar covers first lines of a section called via &lt;a href='#section'&gt;Section&lt;/a&gt;</p>
1
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.1 (latest released)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">debian</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow==2.2.1<br> apache-airflow-providers-amazon==2.3.0<br> apache-airflow-providers-ftp==2.0.1<br> apache-airflow-providers-google==6.0.0<br> apache-airflow-providers-http==2.0.1<br> apache-airflow-providers-imap==2.0.1<br> apache-airflow-providers-jira==2.0.1<br> apache-airflow-providers-mysql==2.1.1<br> apache-airflow-providers-postgres==2.3.0<br> apache-airflow-providers-redis==2.0.1<br> apache-airflow-providers-sqlite==2.0.1<br> apache-airflow-providers-ssh==2.2.0</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other Docker-based deployment</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">Dask executor, custom-built Docker images, postgres 12.7 backend</p> <h3 dir="auto">What happened</h3> <ol dir="auto"> <li>Shut off Airflow cluster</li> <li>Upgraded database from 2.0.2 to 2.2.1</li> <li>Restarted Airflow cluster</li> <li>The scheduler failed to start</li> <li>I checked the logs, and found this:</li> </ol> <details> <pre class="notranslate">2021-11-04 21:15:35,566 ERROR - Exception when executing SchedulerJob._run_scheduler_loop Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/airflow/jobs/scheduler_job.py", line 628, in _execute self._run_scheduler_loop() File "/usr/local/lib/python3.9/site-packages/airflow/jobs/scheduler_job.py", line 709, in _run_scheduler_loop num_queued_tis = self._do_scheduling(session) File "/usr/local/lib/python3.9/site-packages/airflow/jobs/scheduler_job.py", line 782, in _do_scheduling self._create_dagruns_for_dags(guard, session) File "/usr/local/lib/python3.9/site-packages/airflow/utils/retries.py", line 76, in wrapped_function for attempt in run_with_db_retries(max_retries=retries, logger=logger, **retry_kwargs): File "/usr/local/lib/python3.9/site-packages/tenacity/__init__.py", line 382, in __iter__ do = self.iter(retry_state=retry_state) File "/usr/local/lib/python3.9/site-packages/tenacity/__init__.py", line 349, in iter return fut.result() File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 438, in result return self.__get_result() File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result raise self._exception File "/usr/local/lib/python3.9/site-packages/airflow/utils/retries.py", line 85, in wrapped_function return func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/airflow/jobs/scheduler_job.py", line 847, in _create_dagruns_for_dags self._create_dag_runs(query.all(), session) File "/usr/local/lib/python3.9/site-packages/airflow/jobs/scheduler_job.py", line 917, in _create_dag_runs self._update_dag_next_dagruns(dag, dag_model, active_runs_of_dags[dag.dag_id]) File "/usr/local/lib/python3.9/site-packages/airflow/jobs/scheduler_job.py", line 926, in _update_dag_next_dagruns if total_active_runs &gt;= dag_model.max_active_runs: TypeError: '&gt;=' not supported between instances of 'int' and 'NoneType' </pre> </details> <ol start="6" dir="auto"> <li>I checked the code and saw that dag_model.max_active_runs comes directly from the database and is nullable</li> <li>I updated all values for dag.max_active_runs to be non-null</li> <li>Restarted the scheduler</li> <li>Everything ran fine</li> </ol> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">In this case, I would expect the code to properly handle nullable columns, probably by using the default value provided in the configs.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">This is easily reproducible. Start a fresh instance of Airflow with a database at version 2.2.1 and follow these steps:</p> <ol dir="auto"> <li>Add a DAG to the instance</li> <li>Manually set dag.max_active_runs to null in the database</li> <li>Enable the DAG to cause the scheduler to attempt to parse/schedule it</li> <li>BOOM! The scheduler will crash</li> </ol> <h3 dir="auto">Anything else</h3> <p dir="auto">Newly registered DAGs have this value populated in the database with the default value, so this issue will likely only occur on a database upgrade.</p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.1 (latest released)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Linux (ubuntu 20.04)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow-providers-ftp==2.0.1 apache-airflow-providers-http==2.0.1 apache-airflow-providers-imap==2.0.1 apache-airflow-providers-microsoft-azure==3.1.0 apache-airflow-providers-microsoft-mssql==2.0.0 apache-airflow-providers-postgres==2.0.0 apache-airflow-providers-salesforce==3.1.0 apache-airflow-providers-sqlite==2.0.1 apache-airflow-providers-ssh==2.1.0"><pre class="notranslate"><code class="notranslate">apache-airflow-providers-ftp==2.0.1 apache-airflow-providers-http==2.0.1 apache-airflow-providers-imap==2.0.1 apache-airflow-providers-microsoft-azure==3.1.0 apache-airflow-providers-microsoft-mssql==2.0.0 apache-airflow-providers-postgres==2.0.0 apache-airflow-providers-salesforce==3.1.0 apache-airflow-providers-sqlite==2.0.1 apache-airflow-providers-ssh==2.1.0 </code></pre></div> <h3 dir="auto">Deployment</h3> <p dir="auto">Other</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">Airflow installed on Azure virtual machine (Standard D8s v3 (8 vcpus, 32 GiB memory)), the VM is dedicated for Airflow only</p> <h3 dir="auto">What happened</h3> <p dir="auto">After I updated Airflow from 2.1.3 to 2.2.1 and run db update, I run <code class="notranslate">airflow scheduler</code> and got an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2021-11-02 11:43:20,846] {scheduler_job.py:644} ERROR - Exception when executing SchedulerJob._run_scheduler_loop Traceback (most recent call last): File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py&quot;, line 628, in _execute self._run_scheduler_loop() File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py&quot;, line 709, in _run_scheduler_loop num_queued_tis = self._do_scheduling(session) File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py&quot;, line 782, in _do_scheduling self._create_dagruns_for_dags(guard, session) File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/utils/retries.py&quot;, line 76, in wrapped_function for attempt in run_with_db_retries(max_retries=retries, logger=logger, **retry_kwargs): File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/tenacity/__init__.py&quot;, line 382, in __iter__ do = self.iter(retry_state=retry_state) File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/tenacity/__init__.py&quot;, line 349, in iter return fut.result() File &quot;/usr/lib/python3.8/concurrent/futures/_base.py&quot;, line 437, in result return self.__get_result() File &quot;/usr/lib/python3.8/concurrent/futures/_base.py&quot;, line 389, in __get_result raise self._exception File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/utils/retries.py&quot;, line 85, in wrapped_function return func(*args, **kwargs) File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py&quot;, line 847, in _create_dagruns_for_dags self._create_dag_runs(query.all(), session) File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py&quot;, line 917, in _create_dag_runs self._update_dag_next_dagruns(dag, dag_model, active_runs_of_dags[dag.dag_id]) File &quot;/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py&quot;, line 926, in _update_dag_next_dagruns if total_active_runs &gt;= dag_model.max_active_runs: TypeError: '&gt;=' not supported between instances of 'int' and 'NoneType'"><pre class="notranslate"><code class="notranslate">[2021-11-02 11:43:20,846] {scheduler_job.py:644} ERROR - Exception when executing SchedulerJob._run_scheduler_loop Traceback (most recent call last): File "/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 628, in _execute self._run_scheduler_loop() File "/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 709, in _run_scheduler_loop num_queued_tis = self._do_scheduling(session) File "/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 782, in _do_scheduling self._create_dagruns_for_dags(guard, session) File "/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/utils/retries.py", line 76, in wrapped_function for attempt in run_with_db_retries(max_retries=retries, logger=logger, **retry_kwargs): File "/home/DataPipeline/.local/lib/python3.8/site-packages/tenacity/__init__.py", line 382, in __iter__ do = self.iter(retry_state=retry_state) File "/home/DataPipeline/.local/lib/python3.8/site-packages/tenacity/__init__.py", line 349, in iter return fut.result() File "/usr/lib/python3.8/concurrent/futures/_base.py", line 437, in result return self.__get_result() File "/usr/lib/python3.8/concurrent/futures/_base.py", line 389, in __get_result raise self._exception File "/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/utils/retries.py", line 85, in wrapped_function return func(*args, **kwargs) File "/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 847, in _create_dagruns_for_dags self._create_dag_runs(query.all(), session) File "/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 917, in _create_dag_runs self._update_dag_next_dagruns(dag, dag_model, active_runs_of_dags[dag.dag_id]) File "/home/DataPipeline/.local/lib/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 926, in _update_dag_next_dagruns if total_active_runs &gt;= dag_model.max_active_runs: TypeError: '&gt;=' not supported between instances of 'int' and 'NoneType' </code></pre></div> <p dir="auto">The scheduler is not able to run.</p> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">This behaviour happens right after the update. I have another VM with Airflow (the two machines are similar, the difference in location of the VM).</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">after the update to 2.2.1, change the config in accordance with Warnings and run <code class="notranslate">airflow scheduler</code></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
1
<p dir="auto"><strong>Symfony version(s) affected</strong>: 3.x, 4.x</p> <p dir="auto"><strong>Description</strong><br> Due to update in php-intl library this loop is infinite.<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/symfony/symfony/blob/95932df2ac5edd98db521bb6507d22edcdc602c6/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleEntryReader.php#L81">symfony/src/Symfony/Component/Intl/Data/Bundle/Reader/BundleEntryReader.php</a> </p> <p class="mb-0 color-fg-muted"> Line 81 in <a data-pjax="true" class="commit-tease-sha" href="/symfony/symfony/commit/95932df2ac5edd98db521bb6507d22edcdc602c6">95932df</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="L81" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="81"></td> <td id="LC81" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">while</span> (<span class="pl-c1">null</span> !== <span class="pl-s1"><span class="pl-c1">$</span>currentLocale</span>) { </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto"><strong>How to reproduce</strong><br> Update php-intl to the latest version and try to get country names for en locale for example.</p> <p dir="auto"><strong>Possible Solution</strong><br> For BC it would be great to loop until locale is empty so check could be !empty($currentlocale)</p> <p dir="auto"><strong>Additional context</strong><br> Ive been struggling with this all morning, later I had to code on my laptop and this error was not present, Ive updated php-intl and error became present as on my work PC.</p>
<p dir="auto">PHP 7.2.17-1+ubuntu18.04.1+deb.sury.org+3<br> SYMFONY: Symfony 4.2.4</p> <p dir="auto">locale_parse('root') now return an empty array as opposed to previos php versions which makes the Symfony\Component\Intl\Data\Bundle\Reader loop through fallback locales as</p> <p dir="auto">"en" =&gt; "root" =&gt; "" =&gt; "root" =&gt; "" and so on without it becoming null to break the loop</p> <p dir="auto">when reading from the regions because in the Symfony\Component\Intl\Locale::getFallback()<br> we never get inside the if (1 === \count($localeSubTags))</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1647204/56029378-e8f2ac80-5d22-11e9-9b2f-6a88e0d6e934.png"><img src="https://user-images.githubusercontent.com/1647204/56029378-e8f2ac80-5d22-11e9-9b2f-6a88e0d6e934.png" alt="testedLocales" style="max-width: 100%;"></a></p>
1
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Customizing Terminal settings should be allowed to be loaded from my OneDrive folder or my own github repository, just like my powershell settings are or my VIM settings.</p> <p dir="auto">Currently, when I login into a new machine I have to merge or manually copy settings for Terminal, I don't have this problem in PowerShell or VIM as all I need to do is git clone and redirect to my settings folder.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Here are some options:</p> <ol dir="auto"> <li>Allow for an arbitrary folder to be configured to read settings.</li> <li>Read from ~.terminal folder (but allow redirection)</li> </ol> <p dir="auto">After configuring the "reditected" folder, all my settings and profile are restored.</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">There should be an option for choosing default shell. Currently, If one wishes to use WSL, it has to open terminal, then open new tab with wsl. previously, one could simply pin wsl to taskbar, and when needed, one could open the wsl directly. furthermore, it would be nice to be able to pin terminal multiple times with different default shells. When pinned, it would be preferable to show default shell's icon or something that identifies what is the default shell that will be launched.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
0
<h3 dir="auto">Bug summary</h3> <p dir="auto"><code class="notranslate">contourf()</code> by default does not draw borders between adjacent levels. However, including the <code class="notranslate">alpha</code> keyword argument makes these borders visible. Desired behavior is to not draw these lines even with <code class="notranslate">alpha</code> specified.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt import numpy as np x = np.linspace(-3, 5, 150).reshape(1, -1) y = np.linspace(-3, 5, 120).reshape(-1, 1) z = np.cos(x) + np.sin(y) x, y = x.flatten(), y.flatten() fig, ax = plt.subplots(nrows=2,ncols=1) ax[0].set_title('Actual outcome') ax[0].contourf(x, y, z, levels=15, vmin=0.5, vmax=1.0, cmap='cividis', alpha=0.9) ax[1].set_title('Expected outcome') ax[1].contourf(x, y, z, levels=15, vmin=0.5, vmax=1.0, cmap='cividis') plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">3</span>, <span class="pl-c1">5</span>, <span class="pl-c1">150</span>).<span class="pl-en">reshape</span>(<span class="pl-c1">1</span>, <span class="pl-c1">-</span><span class="pl-c1">1</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">3</span>, <span class="pl-c1">5</span>, <span class="pl-c1">120</span>).<span class="pl-en">reshape</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">1</span>) <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">cos</span>(<span class="pl-s1">x</span>) <span class="pl-c1">+</span> <span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-s1">y</span>) <span class="pl-s1">x</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>.<span class="pl-en">flatten</span>(), <span class="pl-s1">y</span>.<span class="pl-en">flatten</span>() <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">nrows</span><span class="pl-c1">=</span><span class="pl-c1">2</span>,<span class="pl-s1">ncols</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-s1">ax</span>[<span class="pl-c1">0</span>].<span class="pl-en">set_title</span>(<span class="pl-s">'Actual outcome'</span>) <span class="pl-s1">ax</span>[<span class="pl-c1">0</span>].<span class="pl-en">contourf</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span>, <span class="pl-s1">levels</span><span class="pl-c1">=</span><span class="pl-c1">15</span>, <span class="pl-s1">vmin</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>, <span class="pl-s1">vmax</span><span class="pl-c1">=</span><span class="pl-c1">1.0</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">'cividis'</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.9</span>) <span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-en">set_title</span>(<span class="pl-s">'Expected outcome'</span>) <span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-en">contourf</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">z</span>, <span class="pl-s1">levels</span><span class="pl-c1">=</span><span class="pl-c1">15</span>, <span class="pl-s1">vmin</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>, <span class="pl-s1">vmax</span><span class="pl-c1">=</span><span class="pl-c1">1.0</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">'cividis'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1459933/185768358-a54285fc-8e9a-4d84-a1f3-d962888d31e2.png"><img src="https://user-images.githubusercontent.com/1459933/185768358-a54285fc-8e9a-4d84-a1f3-d962888d31e2.png" alt="actual" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1459933/185768363-521351d6-ecb4-4745-aee6-7d1afc06a94a.png"><img src="https://user-images.githubusercontent.com/1459933/185768363-521351d6-ecb4-4745-aee6-7d1afc06a94a.png" alt="expected" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional information</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Operating system</h3> <p dir="auto">Ubuntu 20.04</p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.5.1</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto">QtAgg</p> <h3 dir="auto">Python version</h3> <p dir="auto">3.8.8</p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Installation</h3> <p dir="auto">conda</p>
<p dir="auto">This is the underlying problem raised in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6572843" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1178" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/1178/hovercard" href="https://github.com/matplotlib/matplotlib/pull/1178">#1178</a>.<br> It is illustrated by the test below; note that boundary anomalies are visible in all forms--agg on the screen, and pdf and svg displayed with a viewer--but in different places depending on the viewer and the size of the figure as rendered.<br> Note that the colorbar is rendered using pcolormesh, which has its own renderer with agg but otherwise is handled by draw_path_collection.</p> <pre class="notranslate">import numpy as np import matplotlib.pyplot as plt z = np.arange(150) z.shape = (10,15) fig, axs = plt.subplots(2,2) ax = axs[0,0] cs0 = ax.contourf(z, 20) cbar0 = fig.colorbar(cs0, ax=ax) ax = axs[0,1] cs1 = ax.contourf(z, 20, alpha=0.3) cbar1 = fig.colorbar(cs1, ax=ax) ax = axs[1,0] im2 = ax.imshow(z, interpolation='nearest') cbar2 = fig.colorbar(im2, ax=ax) ax = axs[1,1] im3 = ax.imshow(z, interpolation='nearest', alpha=0.3) cbar3 = fig.colorbar(im3, ax=ax) plt.savefig("test1.pdf") plt.savefig("test1.svg") plt.show() </pre>
1
<h3 dir="auto">Describe your issue.</h3> <p dir="auto">This is fine on linux, but on OSX with an M1, <code class="notranslate">stats.beta().interval()</code> produces an overflow warning for completely reasonable values that should not cause overflow issues.</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="from scipy import stats stats.beta(4, 2).interval(0.95)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">scipy</span> <span class="pl-k">import</span> <span class="pl-s1">stats</span> <span class="pl-s1">stats</span>.<span class="pl-en">beta</span>(<span class="pl-c1">4</span>, <span class="pl-c1">2</span>).<span class="pl-en">interval</span>(<span class="pl-c1">0.95</span>)</pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/Users/twiecki/miniforge3/envs/pymc4/lib/python3.10/site-packages/scipy/stats/_continuous_distns.py:624: RuntimeWarning: overflow encountered in _beta_ppf return _boost._beta_ppf(q, a, b)"><pre class="notranslate">/Users/twiecki/miniforge3/envs/pymc4/lib/python3.10/site-packages/scipy/stats/_continuous_distns.py:624: RuntimeWarning: overflow encountered <span class="pl-k">in</span> _beta_ppf <span class="pl-k">return</span> _boost._beta_ppf(q, a, b)</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">1.7.3 1.22.4 sys.version_info(major=3, minor=10, micro=4, releaselevel='final', serial=0)</p>
<h3 dir="auto">Describe your issue</h3> <p dir="auto">Several statistical distribution methods emit warnings stemming from Boost. This issue tracks the status of all of them.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">beta.ppf</code> as reported here; should be fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1393910253" data-permission-text="Title is private" data-url="https://github.com/boostorg/math/issues/827" data-hovercard-type="pull_request" data-hovercard-url="/boostorg/math/pull/827/hovercard" href="https://github.com/boostorg/math/pull/827">boostorg/math#827</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">ncf</code> as reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1388256302" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/17101" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/17101/hovercard" href="https://github.com/scipy/scipy/issues/17101">gh-17101</a>, should be fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1410540033" data-permission-text="Title is private" data-url="https://github.com/boostorg/math/issues/846" data-hovercard-type="pull_request" data-hovercard-url="/boostorg/math/pull/846/hovercard" href="https://github.com/boostorg/math/pull/846">boostorg/math#846</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">nct</code> - I'm not sure that this has been reported separately yet. Is it caused by the same sort of thing?</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">ncx2</code> - Ditto.</li> </ul> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1418900239" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/17272" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/17272/hovercard" href="https://github.com/scipy/scipy/pull/17272">gh-17272</a> will silence <a href="https://github.com/scipy/scipy/issues/14901#issuecomment-1272504168" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/14901/hovercard">the failures in SciPy's tests</a> temporarily, but as many of these marks as possible should be removed when <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1405303062" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/17207" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/17207/hovercard" href="https://github.com/scipy/scipy/pull/17207">gh-17207</a> merges.</p> <hr> <p dir="auto"><em>Original Post</em></p> <h3 dir="auto">Describe your issue.</h3> <p dir="auto">macOS CI is failing due to an overflow. I am still trying to reproduce locally.</p> <p dir="auto">NumPy was updated to 1.21.3, could be this or another dependency.</p> <p dir="auto"><a href="https://github.com/scipy/scipy/runs/3960228039">https://github.com/scipy/scipy/runs/3960228039</a></p> <h3 dir="auto">Reproducing Code Example</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# from scipy/stats/tests/test_distributions.py:2878: in test_issue_12796 import numpy as np from scipy import stats q = 0.999995 a = np.array([ 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]) b = np.array([99999, 99998, 99997, 99996, 99995, 99994, 99993, 99992, 99991, 99990, 99989, 99988, 99987, 99986, 99985, 99984, 99983, 99982, 99981]) stats.beta.ppf(q, a, b)"><pre class="notranslate"><span class="pl-c"># from scipy/stats/tests/test_distributions.py:2878: in test_issue_12796</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">from</span> <span class="pl-s1">scipy</span> <span class="pl-k">import</span> <span class="pl-s1">stats</span> <span class="pl-s1">q</span> <span class="pl-c1">=</span> <span class="pl-c1">0.999995</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([ <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">7</span>, <span class="pl-c1">8</span>, <span class="pl-c1">9</span>, <span class="pl-c1">10</span>, <span class="pl-c1">11</span>, <span class="pl-c1">12</span>, <span class="pl-c1">13</span>, <span class="pl-c1">14</span>, <span class="pl-c1">15</span>, <span class="pl-c1">16</span>, <span class="pl-c1">17</span>, <span class="pl-c1">18</span>, <span class="pl-c1">19</span>, <span class="pl-c1">20</span>]) <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">99999</span>, <span class="pl-c1">99998</span>, <span class="pl-c1">99997</span>, <span class="pl-c1">99996</span>, <span class="pl-c1">99995</span>, <span class="pl-c1">99994</span>, <span class="pl-c1">99993</span>, <span class="pl-c1">99992</span>, <span class="pl-c1">99991</span>, <span class="pl-c1">99990</span>, <span class="pl-c1">99989</span>, <span class="pl-c1">99988</span>, <span class="pl-c1">99987</span>, <span class="pl-c1">99986</span>, <span class="pl-c1">99985</span>, <span class="pl-c1">99984</span>, <span class="pl-c1">99983</span>, <span class="pl-c1">99982</span>, <span class="pl-c1">99981</span>]) <span class="pl-s1">stats</span>.<span class="pl-s1">beta</span>.<span class="pl-en">ppf</span>(<span class="pl-s1">q</span>, <span class="pl-s1">a</span>, <span class="pl-s1">b</span>)</pre></div> <h3 dir="auto">Error message</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12635 - ... 927 FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12794 - ... 928 FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12796 - ... ... scipy/stats/_continuous_distns.py:626: in _ppf 916 return _boost._beta_ppf(q, a, b) 917 E RuntimeWarning: overflow encountered in _beta_ppf"><pre class="notranslate">FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12635 - ... 927 FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12794 - ... 928 FAILED scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12796 - ... ... scipy/stats/_continuous_distns.py:626: <span class="pl-k">in</span> _ppf 916 <span class="pl-k">return</span> _boost._beta_ppf(q, a, b) 917 E RuntimeWarning: overflow encountered <span class="pl-k">in</span> _beta_ppf</pre></div> <h3 dir="auto">SciPy/NumPy/Python version information</h3> <p dir="auto">master on macOS/CI</p>
1
<p dir="auto">The string "0.6" appears 35 times in our tree and we don't have an obvious way to eliminate this duplication. Something like <code class="notranslate">include_lit!</code> might do the job.</p>
<p dir="auto">Consider</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extern crate innercrate; //defines only one public item `from_inner_crate` pub use inner::{inner_fn, from_inner_crate}; /// Top level documentation pub fn top_level(){} pub mod inner { pub use innercrate::from_inner_crate; /// Defined inside inner module pub fn inner_fn(){} }"><pre class="notranslate"><span class="pl-k">extern</span> <span class="pl-k">crate</span> innercrate<span class="pl-kos">;</span> <span class="pl-c">//defines only one public item `from_inner_crate`</span> <span class="pl-k">pub</span> <span class="pl-k">use</span> inner<span class="pl-kos">::</span><span class="pl-kos">{</span>inner_fn<span class="pl-kos">,</span> from_inner_crate<span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">/// Top level documentation</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">top_level</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">mod</span> inner <span class="pl-kos">{</span> <span class="pl-k">pub</span> <span class="pl-k">use</span> innercrate<span class="pl-kos">::</span>from_inner_crate<span class="pl-kos">;</span> <span class="pl-c">/// Defined inside inner module</span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">inner_fn</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">Documentation renders from_inner_crate as if it was defined at the top level of crate rather than showing it as an reexport from inner module.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/679122/8765655/512f38d6-2e1f-11e5-8350-4fb1ff64c90f.png"><img src="https://cloud.githubusercontent.com/assets/679122/8765655/512f38d6-2e1f-11e5-8350-4fb1ff64c90f.png" alt="what output from rustdoc looks like" style="max-width: 100%;"></a></p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd dates = [ 20140101, 20140102, 20140103] states = [ &quot;CA&quot;, &quot;NY&quot;, &quot;CA&quot;] x = pd.DataFrame({ 'dates' : dates, 'states' : states }) #y = pandas.DataFrame({ 'state' : [ 'CA', 'OR' ], 'value' : [ 1, 2]}) y = pd.DataFrame({ 'states' : [ &quot;CA&quot;, &quot;NY&quot; ], 'stateid' : [ 1, 2]}) z = pd.merge(x, y, how='left', on='states',) x= dates states 0 20140101 CA 1 20140102 NY 2 20140103 CA y= stateid states 0 1 CA 1 2 NY z= dates states stateid 0 20140101 CA 1 1 20140103 CA 1 2 20140102 NY 2"><pre class="notranslate"><code class="notranslate">import pandas as pd dates = [ 20140101, 20140102, 20140103] states = [ "CA", "NY", "CA"] x = pd.DataFrame({ 'dates' : dates, 'states' : states }) #y = pandas.DataFrame({ 'state' : [ 'CA', 'OR' ], 'value' : [ 1, 2]}) y = pd.DataFrame({ 'states' : [ "CA", "NY" ], 'stateid' : [ 1, 2]}) z = pd.merge(x, y, how='left', on='states',) x= dates states 0 20140101 CA 1 20140102 NY 2 20140103 CA y= stateid states 0 1 CA 1 2 NY z= dates states stateid 0 20140101 CA 1 1 20140103 CA 1 2 20140102 NY 2 </code></pre></div> <hr> <p dir="auto">Note z is always sorted by "states" column whether argument sort=True or False.<br> This only happens when the x's states column is not unique. If x.states is unique(such as NY, CA, CT), sort=True and False behaves as expected.</p> <p dir="auto">This causes inconvenience when x is a time series and merge does not<br> preserve the time sequence.</p>
<p dir="auto">Using floor on a DatetimeIndex that has a timezone with DST fails when converting the result back to the tz as there may be ambiguous time (see example below).</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# create 15' date range with Brussels tz idx = pandas.date_range(&quot;2016-01-01&quot;,&quot;2017-01-01&quot;,freq=&quot;15T&quot;, tz=&quot;Europe/Brussels&quot;) # transform the index to get rid of minutes idx_h = idx.floor(&quot;H&quot;)"><pre class="notranslate"><span class="pl-c"># create 15' date range with Brussels tz</span> <span class="pl-s1">idx</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-en">date_range</span>(<span class="pl-s">"2016-01-01"</span>,<span class="pl-s">"2017-01-01"</span>,<span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">"15T"</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">"Europe/Brussels"</span>) <span class="pl-c"># transform the index to get rid of minutes</span> <span class="pl-s1">idx_h</span> <span class="pl-c1">=</span> <span class="pl-s1">idx</span>.<span class="pl-en">floor</span>(<span class="pl-s">"H"</span>)</pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto">idx_h rounded to the hour</p> <h4 dir="auto">Actual Output</h4> <p dir="auto">excepection raised when relocalizing the index after applying the rouding</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;...&quot;, line 118, in &lt;module&gt; idx_h = idx.floor(&quot;H&quot;) File &quot;...\lib\site-packages\pandas\tseries\base.py&quot;, line 98, in floor return self._round(freq, np.floor) File &quot;...\lib\site-packages\pandas\tseries\base.py&quot;, line 89, in _round result = result.tz_localize(self.tz)#, ambiguous=[d.dst() for d in self]) File &quot;...\lib\site-packages\pandas\util\decorators.py&quot;, line 91, in wrapper return func(*args, **kwargs) File &quot;...\lib\site-packages\pandas\tseries\index.py&quot;, line 1857, in tz_localize ambiguous=ambiguous) File &quot;pandas\tslib.pyx&quot;, line 4087, in pandas.tslib.tz_localize_to_utc (pandas\tslib.c:69556) pytz.exceptions.AmbiguousTimeError: Cannot infer dst time from Timestamp('2016-10-30 02:00:00'), try using the 'ambiguous' argument"><pre class="notranslate"><span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">"..."</span>, <span class="pl-s1">line</span> <span class="pl-c1">118</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">idx_h</span> <span class="pl-c1">=</span> <span class="pl-s1">idx</span>.<span class="pl-en">floor</span>(<span class="pl-s">"H"</span>) <span class="pl-v">File</span> <span class="pl-s">"...\lib\site-packages\pandas<span class="pl-cce">\t</span>series<span class="pl-cce">\b</span>ase.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">98</span>, <span class="pl-s1">in</span> <span class="pl-s1">floor</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_round</span>(<span class="pl-s1">freq</span>, <span class="pl-s1">np</span>.<span class="pl-s1">floor</span>) <span class="pl-v">File</span> <span class="pl-s">"...\lib\site-packages\pandas<span class="pl-cce">\t</span>series<span class="pl-cce">\b</span>ase.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">89</span>, <span class="pl-s1">in</span> <span class="pl-s1">_round</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">result</span>.<span class="pl-en">tz_localize</span>(<span class="pl-s1">self</span>.<span class="pl-s1">tz</span>)<span class="pl-c">#, ambiguous=[d.dst() for d in self])</span> <span class="pl-v">File</span> <span class="pl-s">"...\lib\site-packages\pandas\util\decorators.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">91</span>, <span class="pl-s1">in</span> <span class="pl-s1">wrapper</span> <span class="pl-k">return</span> <span class="pl-en">func</span>(<span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"...\lib\site-packages\pandas<span class="pl-cce">\t</span>series\index.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1857</span>, <span class="pl-s1">in</span> <span class="pl-s1">tz_localize</span> <span class="pl-s1">ambiguous</span><span class="pl-c1">=</span><span class="pl-s1">ambiguous</span>) <span class="pl-v">File</span> <span class="pl-s">"pandas<span class="pl-cce">\t</span>slib.pyx"</span>, <span class="pl-s1">line</span> <span class="pl-c1">4087</span>, <span class="pl-s1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tslib</span>.<span class="pl-en">tz_localize_to_utc</span> (<span class="pl-s1">pandas</span>\t<span class="pl-s1">slib</span>.<span class="pl-s1">c</span>:<span class="pl-c1">69556</span>) <span class="pl-s1">pytz</span>.<span class="pl-s1">exceptions</span>.<span class="pl-v">AmbiguousTimeError</span>: <span class="pl-v">Cannot</span> <span class="pl-s1">infer</span> <span class="pl-s1">dst</span> <span class="pl-s1">time</span> <span class="pl-k">from</span> <span class="pl-v">Timestamp</span>(<span class="pl-s">'2016-10-30 02:00:00'</span>), <span class="pl-k">try</span> <span class="pl-s1">using</span> <span class="pl-s1">the</span> <span class="pl-s">'ambiguous'</span> <span class="pl-s1">argument</span></pre></div> <h4 dir="auto">Possible solution</h4> <p dir="auto">The code to reconvert to local tz need to have 'ambiguous' defined and can use the original array of dst flags.<br> Lines 87-89 in ...\Lib\site-packages\pandas\tseries\base.py</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" # reconvert to local tz if getattr(self, 'tz', None) is not None: result = result.tz_localize(self.tz)"><pre class="notranslate"> <span class="pl-c"># reconvert to local tz</span> <span class="pl-k">if</span> <span class="pl-en">getattr</span>(<span class="pl-s1">self</span>, <span class="pl-s">'tz'</span>, <span class="pl-c1">None</span>) <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">result</span>.<span class="pl-en">tz_localize</span>(<span class="pl-s1">self</span>.<span class="pl-s1">tz</span>)</pre></div> <p dir="auto">to be replaced by<br> Lines 87-89 in ...\Lib\site-packages\pandas\tseries\base.py</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" # reconvert to local tz if getattr(self, 'tz', None) is not None: result = result.tz_localize(self.tz, ambiguous=[d.dst() for d in self])"><pre class="notranslate"> <span class="pl-c"># reconvert to local tz</span> <span class="pl-k">if</span> <span class="pl-en">getattr</span>(<span class="pl-s1">self</span>, <span class="pl-s">'tz'</span>, <span class="pl-c1">None</span>) <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">result</span>.<span class="pl-en">tz_localize</span>(<span class="pl-s1">self</span>.<span class="pl-s1">tz</span>, <span class="pl-s1">ambiguous</span><span class="pl-c1">=</span>[<span class="pl-s1">d</span>.<span class="pl-en">dst</span>() <span class="pl-k">for</span> <span class="pl-s1">d</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>])</pre></div> <p dir="auto">Would it be also useful to have a DatetimeIndex.dst function to return a boolean array reuseable in tz_localize ?</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> # Paste the output here ## INSTALLED VERSIONS <p dir="auto">commit: None<br> python: 2.7.11.final.0<br> python-bits: 32<br> OS: Windows<br> OS-release: 7<br> machine: AMD64<br> processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None</p> <p dir="auto">pandas: 0.18.0<br> nose: 1.3.7<br> pip: 8.1.1<br> setuptools: 20.3<br> Cython: 0.23.4<br> numpy: 1.10.4<br> scipy: 0.17.0<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 4.1.2<br> sphinx: 1.3.5<br> patsy: 0.4.0<br> dateutil: 2.5.1<br> pytz: 2016.2<br> blosc: None<br> bottleneck: 1.0.0<br> tables: 3.2.2<br> numexpr: 2.5<br> matplotlib: 1.5.1<br> openpyxl: 2.3.2<br> xlrd: 0.9.4<br> xlwt: 1.0.0<br> xlsxwriter: 0.8.4<br> lxml: 3.6.0<br> bs4: 4.4.1<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.0.12<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: 2.39.0</p> </details>
0
<p dir="auto">We can obviously have the task bar on multiple displays, but currently only one display will show system icons on one display at a time, without using third party software.</p> <p dir="auto">Would it be possible to add a feature to show them on all displays at once?</p> <p dir="auto">Thanks</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">.NET Core 3 upgrade</h1> <p dir="auto">Update all sections that use .NET to .NET Core 3</p> <h2 dir="auto">.NET Framework 4.7.2</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ColorPicker &lt;- done by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/snickler/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/snickler">@snickler</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> MarkdownPreviewHandler &lt;- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="757352734" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/8405" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/8405/hovercard" href="https://github.com/microsoft/PowerToys/issues/8405">#8405</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> PreviewHandlerCommon &lt;- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="757352734" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/8405" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/8405/hovercard" href="https://github.com/microsoft/PowerToys/issues/8405">#8405</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> SvgPreviewHandler &lt;- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="757352734" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/8405" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/8405/hovercard" href="https://github.com/microsoft/PowerToys/issues/8405">#8405</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> SVGThumbnailProvider &lt;- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="757352734" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/8405" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/8405/hovercard" href="https://github.com/microsoft/PowerToys/issues/8405">#8405</a></li> </ul> <h3 dir="auto">Tests</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Microsoft.Interop.Tests &lt;- done by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eriawan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eriawan">@eriawan</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> PreviewPaneUnitTests &lt;- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="757352734" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/8405" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/8405/hovercard" href="https://github.com/microsoft/PowerToys/issues/8405">#8405</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> UnitTests-PreviewHandlerCommon &lt;- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="757352734" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/8405" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/8405/hovercard" href="https://github.com/microsoft/PowerToys/issues/8405">#8405</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> UnitTests-SvgPreviewHandler &lt;- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="757352734" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/8405" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/8405/hovercard" href="https://github.com/microsoft/PowerToys/issues/8405">#8405</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> UnitTests-SvgThumbnailProvider &lt;- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="757352734" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/8405" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/8405/hovercard" href="https://github.com/microsoft/PowerToys/issues/8405">#8405</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> PowerToysTests &lt;- done by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/riverar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/riverar">@riverar</a> WinAppDriver tests</li> </ul> <h2 dir="auto">.NET Standard 2.0</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Managed Common</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Telemetry</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Settings.UI.Library</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> PowerLauncher.Telemetry</li> </ul> <h2 dir="auto">.NET Core 3.1</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> FancyZonesEditor</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Settings.UI.Runner</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Settings.UI.UnitTests</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> UnitTest-ColorPicker</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ImageResizerUI</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ImageResizerUITests</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> PowerLauncher</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Wox.Infrastructure</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Wox.Plugin</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Wox.Test</li> </ul> <h2 dir="auto">UWP</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Settings.UI</li> </ul> <h2 dir="auto">Things to include</h2> <ul dir="auto"> <li><strong>ReadyToRun</strong> should be timed to verify boost. <a href="https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0/" rel="nofollow">see blog post</a></li> <li><strong>PublishTrimmed</strong> to reduce file size. <a href="https://www.hanselman.com/blog/MakingATinyNETCore30EntirelySelfcontainedSingleExecutable.aspx" rel="nofollow">see blog post</a></li> </ul>
0