text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (true)
a = b
return"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span>
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span>
<span class="pl-k">return</span></pre></div>
<p dir="auto">"Return" should have the same indent as "if"</p> | <p dir="auto">This issue can include <a href="https://github.com/atom/language-javascript/issues/49" data-hovercard-type="issue" data-hovercard-url="/atom/language-javascript/issues/49/hovercard">this earlier one</a>.</p>
<p dir="auto">It seems that a lack of braces break the auto indentation. For example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (true)
i = 1;
else
i = 2;"><pre class="notranslate"><code class="notranslate">if (true)
i = 1;
else
i = 2;
</code></pre></div>
<p dir="auto">Turns into:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (true)
i = 1;
else
i = 2;"><pre class="notranslate"><code class="notranslate">if (true)
i = 1;
else
i = 2;
</code></pre></div> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=thomas.risberg" rel="nofollow">Thomas Risberg</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1384?redirect=false" rel="nofollow">SPR-1384</a></strong> and commented</p>
<p dir="auto">Deploy a MessageBean that is using BMT. The following sequence of events in the onMessage() method will cause the IllegalStateException:</p>
<ol dir="auto">
<li>create TransactionTemplate with PROPAGATION_REQUIRED</li>
<li>in the execute do this:<br>
2a. Connection conn = DataSourceUtils.getConnection(ds);<br>
2b. DataSourceUtils.releaseConnection(conn, ds);<br>
2c. call method that does the following:<br>
I. create TransactionTemplate with PROPAGATION_REQUIRES_NEW<br>
II. call execute and the exception is thrown.</li>
</ol>
<p dir="auto">Here is the debug and stacktrace:</p>
<p dir="auto">12:03:50,703 INFO [STDOUT] MyMessageBean got message!<br>
12:03:50,705 INFO [STDOUT] // obtain DataSource<br>
12:03:50,707 INFO [STDOUT] *** Create TransactionManager<br>
12:03:50,900 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Retrieving JTA UserTransaction from JNDI location [java:comp/UserTransaction]<br>
12:03:50,901 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:comp/UserTransaction]<br>
12:03:50,981 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Retrieving JTA TransactionManager from JNDI location [java:/TransactionManager]<br>
12:03:50,983 DEBUG [org.springframework.jndi.JndiTemplate] Looking up JNDI object with name [java:/TransactionManager]<br>
12:03:50,985 INFO [org.springframework.transaction.jta.JtaTransactionManager] Using JTA UserTransaction: org.jboss.ejb.EnterpriseContext$UserTransactionImpl@66d882<br>
12:03:50,987 INFO [org.springframework.transaction.jta.JtaTransactionManager] Using JTA TransactionManager: org.jboss.tm.TxManager@104e65<br>
12:03:50,988 INFO [STDOUT] *** Create TransactionTemplate<br>
12:03:50,997 INFO [STDOUT] *** Propagation=0<br>
12:03:51,005 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Using transaction object [org.springframework.transaction.jta.JtaTransactionObject@401ab1]<br>
12:03:51,007 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Creating new transaction with name [null]<br>
12:03:51,017 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Initializing transaction synchronization<br>
12:03:51,026 INFO [STDOUT] *** doInTransaction org.springframework.transaction.support.DefaultTransactionStatus@bc60f2<br>
12:03:51,056 DEBUG [org.springframework.jdbc.datasource.DataSourceUtils] Fetching JDBC Connection from DataSource<br>
12:03:53,260 DEBUG [org.springframework.jdbc.datasource.DataSourceUtils] Registering transaction synchronization for JDBC Connection<br>
12:03:53,419 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Bound value [org.springframework.jdbc.datasource.ConnectionHolder@2900c9] for key [org.jboss.resource.adapter.jdbc.WrapperDataSource@bf2c98] to thread [JMS SessionPool Worker-0]<br>
12:03:53,420 INFO [STDOUT] *** doInConnection<br>
12:03:53,420 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Retrieved value [org.springframework.jdbc.datasource.ConnectionHolder@2900c9] for key [org.jboss.resource.adapter.jdbc.WrapperDataSource@bf2c98] bound to thread [JMS SessionPool Worker-0]<br>
12:03:53,421 INFO [STDOUT] === Create TransactionTemplate 2<br>
12:03:53,422 INFO [STDOUT] === Propagation=3<br>
12:03:53,424 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Using transaction object [org.springframework.transaction.jta.JtaTransactionObject@1548ee]<br>
12:03:53,424 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Suspending current transaction, creating new transaction with name [null]<br>
12:03:53,425 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Removed value [org.springframework.jdbc.datasource.ConnectionHolder@2900c9] for key [org.jboss.resource.adapter.jdbc.WrapperDataSource@bf2c98] from thread [JMS SessionPool Worker-0]<br>
12:03:53,433 DEBUG [org.springframework.transaction.support.TransactionSynchronizationManager] Clearing transaction synchronization<br>
12:03:53,438 DEBUG [org.springframework.transaction.support.TransactionTemplate] Initiating transaction rollback on application exception<br>
java.lang.IllegalStateException: Trying to change transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=samoa.local/20, BranchQual=, localId=20] in enlist!<br>
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:551)<br>
at org.jboss.resource.connectionmanager.TxConnectionManager.transactionStarted(TxConnectionManager.java:357)<br>
at org.jboss.resource.connectionmanager.CachedConnectionManager.userTransactionStarted(CachedConnectionManager.java:403)<br>
at org.jboss.ejb.EnterpriseContext$UserTransactionImpl.begin(EnterpriseContext.java:576)<br>
at org.springframework.transaction.jta.JtaTransactionManager.doJtaBegin(JtaTransactionManager.java:664)<br>
at org.springframework.transaction.jta.JtaTransactionManager.doBegin(JtaTransactionManager.java:622)<br>
at org.springframework.transaction.support.AbstractPlatformTransactionManager.handleExistingTransaction(AbstractPlatformTransactionManager.java:320)<br>
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:262)<br>
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:111)<br>
at com.springdeveloper.ejb.MyMessageBean.testSpring2(MyMessageBean.java:95)<br>
at com.springdeveloper.ejb.MyMessageBean.access$100(MyMessageBean.java:24)<br>
at com.springdeveloper.ejb.MyMessageBean$1.doInTransactionWithoutResult(MyMessageBean.java:80)<br>
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)<br>
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114)<br>
at com.springdeveloper.ejb.MyMessageBean.testSpring(MyMessageBean.java:71)<br>
at com.springdeveloper.ejb.MyMessageBean.onMessage(MyMessageBean.java:54)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:585)<br>
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)<br>
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:475)<br>
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)<br>
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)<br>
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)<br>
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:158)<br>
at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:32)<br>
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:101)<br>
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)<br>
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)<br>
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)<br>
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)<br>
at org.jboss.ejb.Container.invoke(Container.java:873)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1379)<br>
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)<br>
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)<br>
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)<br>
at org.jboss.mq.SpySession.run(SpySession.java:333)<br>
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)<br>
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)<br>
at java.lang.Thread.run(Thread.java:613)<br>
12:03:53,447 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] Triggering beforeCompletion synchronization<br>
12:03:53,448 ERROR [org.springframework.transaction.support.TransactionTemplate] Application exception overridden by rollback exception<br>
java.lang.IllegalStateException: Trying to change transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=samoa.local/20, BranchQual=, localId=20] in enlist!<br>
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:551)<br>
at org.jboss.resource.connectionmanager.TxConnectionManager.transactionStarted(TxConnectionManager.java:357)<br>
at org.jboss.resource.connectionmanager.CachedConnectionManager.userTransactionStarted(CachedConnectionManager.java:403)<br>
at org.jboss.ejb.EnterpriseContext$UserTransactionImpl.begin(EnterpriseContext.java:576)<br>
at org.springframework.transaction.jta.JtaTransactionManager.doJtaBegin(JtaTransactionManager.java:664)<br>
at org.springframework.transaction.jta.JtaTransactionManager.doBegin(JtaTransactionManager.java:622)<br>
at org.springframework.transaction.support.AbstractPlatformTransactionManager.handleExistingTransaction(AbstractPlatformTransactionManager.java:320)<br>
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:262)<br>
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:111)<br>
at com.springdeveloper.ejb.MyMessageBean.testSpring2(MyMessageBean.java:95)<br>
at com.springdeveloper.ejb.MyMessageBean.access$100(MyMessageBean.java:24)<br>
at com.springdeveloper.ejb.MyMessageBean$1.doInTransactionWithoutResult(MyMessageBean.java:80)<br>
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)<br>
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114)<br>
at com.springdeveloper.ejb.MyMessageBean.testSpring(MyMessageBean.java:71)<br>
at com.springdeveloper.ejb.MyMessageBean.onMessage(MyMessageBean.java:54)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:585)<br>
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)<br>
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:475)<br>
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)<br>
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)<br>
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)<br>
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:158)<br>
at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:32)<br>
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:101)<br>
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)<br>
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)<br>
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)<br>
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)<br>
at org.jboss.ejb.Container.invoke(Container.java:873)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1379)<br>
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)<br>
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)<br>
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)<br>
at org.jboss.mq.SpySession.run(SpySession.java:333)<br>
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)<br>
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)<br>
at java.lang.Thread.run(Thread.java:613)<br>
12:03:53,461 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@d698d3<br>
java.lang.Throwable: STACKTRACE<br>
at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:333)<br>
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:482)<br>
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:894)<br>
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:73)<br>
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:107)<br>
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)<br>
at com.springdeveloper.ejb.MyMessageBean$1.doInTransactionWithoutResult(MyMessageBean.java:76)<br>
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)<br>
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:114)<br>
at com.springdeveloper.ejb.MyMessageBean.testSpring(MyMessageBean.java:71)<br>
at com.springdeveloper.ejb.MyMessageBean.onMessage(MyMessageBean.java:54)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:585)<br>
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)<br>
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:475)<br>
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)<br>
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)<br>
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)<br>
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:158)<br>
at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:32)<br>
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:101)<br>
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)<br>
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)<br>
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)<br>
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)<br>
at org.jboss.ejb.Container.invoke(Container.java:873)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1379)<br>
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)<br>
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)<br>
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)<br>
at org.jboss.mq.SpySession.run(SpySession.java:333)<br>
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)<br>
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)<br>
at java.lang.Thread.run(Thread.java:613)<br>
12:03:53,473 ERROR [org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT] Application error: BMT stateless bean MyMessageBean should complete transactions before returning (ejb1.1 spec, 11.6.1)<br>
12:03:53,478 ERROR [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Exception in JMSCI message listener<br>
javax.ejb.EJBException: null; CausedByException is:<br>
Application error: BMT stateless bean MyMessageBean should complete transactions before returning (ejb1.1 spec, 11.6.1)<br>
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:411)<br>
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:196)<br>
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)<br>
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)<br>
at org.jboss.ejb.Container.invoke(Container.java:873)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1379)<br>
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)<br>
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)<br>
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)<br>
at org.jboss.mq.SpySession.run(SpySession.java:333)<br>
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)<br>
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)<br>
at java.lang.Thread.run(Thread.java:613)<br>
java.rmi.RemoteException: Application error: BMT stateless bean MyMessageBean should complete transactions before returning (ejb1.1 spec, 11.6.1)<br>
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.checkStatelessDone(AbstractTxInterceptorBMT.java:225)<br>
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:165)<br>
at org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:32)<br>
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:101)<br>
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)<br>
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)<br>
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)<br>
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)<br>
at org.jboss.ejb.Container.invoke(Container.java:873)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)<br>
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1379)<br>
at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)<br>
at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)<br>
at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)<br>
at org.jboss.mq.SpySession.run(SpySession.java:333)<br>
at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)<br>
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)<br>
at java.lang.Thread.run(Thread.java:613)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.2.5</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="398089112" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9591" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9591/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9591">#9591</a> CLONE -IllegalStateException thrown by JBoss 4.0.5.11 when PROPAGATION_REQUIRES_NEW used during active transaction in MessageBean with BMT (<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="398082426" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8755" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8755/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8755">#8755</a> PROPAGATION_REQUIRES_NEW fails on JBoss 4.2.1 when using Hibernate connection release mode "on_close"</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=routis" rel="nofollow">Routis Haralampos</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2239?redirect=false" rel="nofollow">SPR-2239</a></strong> and commented</p>
<p dir="auto">At ibiblio the last version that provides source code and proper maven2 poms is 1.2.7. Thus the migration of existing projects to newer versions of the spring framework require signigicant work</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.2.8, 2.0 M1, 2.0 M2, 2.0 M3, 2.0 M4, 2.0 M5, 2.0 RC1</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="398071837" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7392" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7392/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7392">#7392</a> Create and upload Maven Source and Javadoc Bundles for Spring 2.0 (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398071855" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7393" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7393/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7393">#7393</a> Create and upload Maven Source and Javadoc Bundles for Spring 1.2.9 (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 0 watchers</p> | 0 |
<p dir="auto">The problem seems to be the inclusion of a mix of <code class="notranslate">*.c</code>, <code class="notranslate">*.h</code> and <code class="notranslate">*.c.src</code> files in <code class="notranslate">multiarray_src</code>, the list that only include <code class="notranslate">*.*.src</code> files seem to do better.</p> | <p dir="auto">Sometimes, I have a sample of data which I want to divide into bins and then sum an associated vector over all samples within each bin. This could be accomplished by creating a histogram with array-valued weights. Perhaps there are other ways to do it, but this seems to be the best conceptual match to what I want to do, and is a very natural extension of <code class="notranslate">np.histogram</code>.</p>
<p dir="auto">In the particular example that I am dealing with at the moment, I want to re-weight my samples according to a 4th-order polynomial of an associated quantity. That is, I have an array <code class="notranslate">hist_variable</code> with shape <code class="notranslate">(n,)</code>, and another array <code class="notranslate">reweighting_variable</code> also of shape <code class="notranslate">(n,)</code>. My weights are some polynomial function of <code class="notranslate">reweighting_variable</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rv = reweighting_variable
weights = a0 + a1*rv + a2*rv**2 + a3*rv**3 + a4*rv**4
counts, edges = np.histogram(hist_variable, weights=weights)"><pre class="notranslate"><code class="notranslate">rv = reweighting_variable
weights = a0 + a1*rv + a2*rv**2 + a3*rv**3 + a4*rv**4
counts, edges = np.histogram(hist_variable, weights=weights)
</code></pre></div>
<p dir="auto">This works fine, as long as <code class="notranslate">a0</code>, <code class="notranslate">a1</code>, etc. are known and fixed. If I instead want to vary <code class="notranslate">a0</code>, <code class="notranslate">a1</code>, etc., then I can create five different histograms:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="counts0, edges = np.histogram(hist_variable)
counts1 = np.histogram(hist_variable, weights=rv, bins=edges)[0]
counts2 = np.histogram(hist_variable, weights=rv**2, bins=edges)[0]
counts3 = np.histogram(hist_variable, weights=rv**3, bins=edges)[0]
counts4 = np.histogram(hist_variable, weights=rv**4, bins=edges)[0]
def weighted_counts(a0, a1, a2, a3, a4):
return a0*counts0 + a1*counts1 + a2*counts2 + a3*counts3 + a4*counts4"><pre class="notranslate"><code class="notranslate">counts0, edges = np.histogram(hist_variable)
counts1 = np.histogram(hist_variable, weights=rv, bins=edges)[0]
counts2 = np.histogram(hist_variable, weights=rv**2, bins=edges)[0]
counts3 = np.histogram(hist_variable, weights=rv**3, bins=edges)[0]
counts4 = np.histogram(hist_variable, weights=rv**4, bins=edges)[0]
def weighted_counts(a0, a1, a2, a3, a4):
return a0*counts0 + a1*counts1 + a2*counts2 + a3*counts3 + a4*counts4
</code></pre></div>
<p dir="auto">And then I can choose any <code class="notranslate">a0</code>, <code class="notranslate">a1</code>, etc. that I like, and get my weighted histogram with the function <code class="notranslate">weighted_counts</code>, without performing the expensive <code class="notranslate">np.histogram</code> step again. This works, but it is not ideal.</p>
<p dir="auto">The reason that it is not ideal is that I must re-do the binning step of <code class="notranslate">np.histogram</code> many times. This is expensive. I've tried to create a solution using <code class="notranslate">np.digitize</code> and fancy indexing, but that is also quite slow. What I wish I could do is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="weights = array([rv**0, rv**1, rv**2, rv**3, rv**4])
counts_array, edges = np.histogram(hist_variable, weights=weights)"><pre class="notranslate"><code class="notranslate">weights = array([rv**0, rv**1, rv**2, rv**3, rv**4])
counts_array, edges = np.histogram(hist_variable, weights=weights)
</code></pre></div>
<p dir="auto">Can this be implemented efficiently? It seems like summing array-valued weights shouldn't be drastically slower than summing scalar-valued weights.</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="My code is:
import {
Component,
OnInit,
animate,
transition,
trigger,
state,
style } from '@angular/core';
@Component({
selector: 'app-index',
templateUrl: 'index.component.html',
styleUrls: ['index.component.css'],
animations: [
trigger('amOne', [
state('onePro-0', style({left: 0})),
state('onePro-1', style({left: '450px'})),
transition('onePro-0 => onePro-1', [
animate('0.8s ease-in')
]),
transition('onePro-1 => onePro-0', [
animate('0.8s ease-out')
])
]),
trigger('amTwo', [
state('twoPro-0', style({left: 0})),
state('twoPro-1', style({left: '450px'})),
transition('twoPro-0 => twoPro-1', [
animate('0.8s ease-in')
]),
transition('twoPro-1 => twoPro-0', [
animate('0.8s ease-out')
])
])
]
})
export class IndexComponent implements OnInit {
private winObj: any;
onePro: string = 'onePro-0';
twoPro: string = 'twoPro-0';
constructor(){
}
amOneFn()
{
this.onePro = this.onePro == 'onePro-1' ? 'onePro-0' : 'onePro-1';
}
amTwoFn(e)
{
console.log('amOneEnd', e);
if (e.fromState != 'void') {
console.log(this.twoPro);
this.twoPro = this.twoPro == 'twoPro-1' ? 'twoPro-0' : 'twoPro-1';
console.log(this.twoPro);
}
}
twoEnd(e)
{
console.log('amTwoEnd', e);
}
amTwoFn2()
{
this.twoPro = 'twoPro-0';
}
}
index.component.html:
<button (click) = 'amOneFn()'>动画测试-amOne</button>
<div style="width:500px;height:50px;border: 1px solid #ff6600;position:relative;">
<div [@amOne]="onePro" (@amOne.done)="amTwoFn($event)" style="position:absolute;width:50px;height:40px;background:red;left:0px;top:0px;">amOne</div>
</div>
<div style="width:500px;height:50px;border: 1px solid #ff6600;margin-top:20px;position:relative;">
<div [@amTwo]="twoPro" (@amTwo.done)="twoEnd($event)" style="position:absolute;width:50px;height:40px;background:green;left:0px;top:0px;">amTwo</div>
</div>"><pre class="notranslate"><code class="notranslate">My code is:
import {
Component,
OnInit,
animate,
transition,
trigger,
state,
style } from '@angular/core';
@Component({
selector: 'app-index',
templateUrl: 'index.component.html',
styleUrls: ['index.component.css'],
animations: [
trigger('amOne', [
state('onePro-0', style({left: 0})),
state('onePro-1', style({left: '450px'})),
transition('onePro-0 => onePro-1', [
animate('0.8s ease-in')
]),
transition('onePro-1 => onePro-0', [
animate('0.8s ease-out')
])
]),
trigger('amTwo', [
state('twoPro-0', style({left: 0})),
state('twoPro-1', style({left: '450px'})),
transition('twoPro-0 => twoPro-1', [
animate('0.8s ease-in')
]),
transition('twoPro-1 => twoPro-0', [
animate('0.8s ease-out')
])
])
]
})
export class IndexComponent implements OnInit {
private winObj: any;
onePro: string = 'onePro-0';
twoPro: string = 'twoPro-0';
constructor(){
}
amOneFn()
{
this.onePro = this.onePro == 'onePro-1' ? 'onePro-0' : 'onePro-1';
}
amTwoFn(e)
{
console.log('amOneEnd', e);
if (e.fromState != 'void') {
console.log(this.twoPro);
this.twoPro = this.twoPro == 'twoPro-1' ? 'twoPro-0' : 'twoPro-1';
console.log(this.twoPro);
}
}
twoEnd(e)
{
console.log('amTwoEnd', e);
}
amTwoFn2()
{
this.twoPro = 'twoPro-0';
}
}
index.component.html:
<button (click) = 'amOneFn()'>动画测试-amOne</button>
<div style="width:500px;height:50px;border: 1px solid #ff6600;position:relative;">
<div [@amOne]="onePro" (@amOne.done)="amTwoFn($event)" style="position:absolute;width:50px;height:40px;background:red;left:0px;top:0px;">amOne</div>
</div>
<div style="width:500px;height:50px;border: 1px solid #ff6600;margin-top:20px;position:relative;">
<div [@amTwo]="twoPro" (@amTwo.done)="twoEnd($event)" style="position:absolute;width:50px;height:40px;background:green;left:0px;top:0px;">amTwo</div>
</div>
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
The following link is my demo:<br>
<a href="https://plnkr.co/edit/Kg1ecShchXeqnscFUyfX?p=preview" rel="nofollow">https://plnkr.co/edit/Kg1ecShchXeqnscFUyfX?p=preview</a></p>
<p dir="auto">When i click the button 'TestAnimation' first, the green block (amTwo) can't excute the animation.I don't know what's wrong in my code.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
I hope the animations in the finished callback of previous animation can be excuted.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.X</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all ]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [TypeScript 2.0]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p>
</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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Animation callbacks, done and start, are called in the root zone rather than being called back with the zone created by angular.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Animation callbacks are run inside of the zone created by angular.</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
<a href="http://plnkr.co/edit/kgh5fFSWIaNr2ra9hvX0?p=preview" rel="nofollow">http://plnkr.co/edit/kgh5fFSWIaNr2ra9hvX0?p=preview</a><br>
The zone of the callback is logged in the console.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Since the callbacks are meant to be back inside of the Angular application it seems to make sense that the callback should be run inside of NgZone.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Not platform specific</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.X</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all ]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [all]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p>
</li>
</ul> | 1 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[x] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[x] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
When using a parametrized route which targets a component, only this component can access those parameters.</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
It might be necessary to read the parameters in other components.</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://plnkr.co" rel="nofollow">https://plnkr.co</a> or similar (you can use this template as a starting point: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a>).<br>
Consider the following route configuration</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export const routes: RouterConfig = [
{ path: 'confirmation/:hashID', component: ConfirmationComponent, canActivate: [AuthGuard] },
];
"><pre class="notranslate"><code class="notranslate">export const routes: RouterConfig = [
{ path: 'confirmation/:hashID', component: ConfirmationComponent, canActivate: [AuthGuard] },
];
</code></pre></div>
<p dir="auto">Consider the following code as part of the ConfirmationComponent</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="this.activatedRoute.params.subscribe(params => {
var hashID = params['hashID'];
},"><pre class="notranslate"><code class="notranslate">this.activatedRoute.params.subscribe(params => {
var hashID = params['hashID'];
},
</code></pre></div>
<p dir="auto">If I use the above code in any other component, hashID won't be available. It is necessary to read location.path() and extract the hashID value.</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Although I understand that the targeted component it the ConfirmationComponent, sometimes other components might need to have access to the parameters explicitly written in the URL.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.4</li>
<li><strong>Browser:</strong> [<strong>all</strong> | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li>
<li><strong>Language:</strong> [all | <strong>TypeScript 1.8</strong> | ES6/7 | <strong>ES5</strong>]</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] feature request"><pre class="notranslate"><code class="notranslate">[x] feature request
</code></pre></div>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
Introduce a way to bundle css with the help of NgModules (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163204090" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/9726" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/9726/hovercard" href="https://github.com/angular/angular/issues/9726">#9726</a>). These styles would only be usable/scoped to the components inside the NgModules.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Sharing styles between multiple components is currently not supported out of the box. The user either has to insert these styles globally into the head, or copy them into each component's individual stylesheet. Both of these solutions are problematic.</p> | 0 |
<p dir="auto">The Collapse component's <code class="notranslate">onEntered</code> prop is not destructured in the render method. So the <code class="notranslate">onEntered</code> prop is spread into the Transition component through <code class="notranslate">...other</code>, thereby overwriting the Collapse components <code class="notranslate">this.handleEntered</code> method as the <code class="notranslate">onEntered</code> prop to Transition. So <code class="notranslate">this.handleEntered</code> is never invoked.</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"><code class="notranslate">onEntered</code> should be destructured out of <code class="notranslate">this.props</code> so it is not included in <code class="notranslate">...other</code>. Collapse <code class="notranslate">handleEntered</code> method should get invoked.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Collapse <code class="notranslate">handleEntered</code> method is never invoked.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Try to <code class="notranslate">console.log</code> something in Collapse <code class="notranslate">handleEntered</code> method and it will not log.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" render() {
const {
children,
classes,
onEnter,
onEntering, // <-- onEntered prop should be destructured somewhere here
onExit,
onExiting,
transitionDuration,
theme,
...other
} = this.props;
return (
<Transition
onEntering={this.handleEntering}
onEnter={this.handleEnter}
onEntered={this.handleEntered}
enteredClassName={classes.entered}
onExiting={this.handleExiting}
onExit={this.handleExit}
onRequestTimeout={this.handleRequestTimeout}
{...other} // <-- onEntered prop overwriting this.handleEntered
>"><pre class="notranslate"> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span>
children<span class="pl-kos">,</span>
classes<span class="pl-kos">,</span>
onEnter<span class="pl-kos">,</span>
onEntering<span class="pl-kos">,</span> <span class="pl-c">// <-- onEntered prop should be destructured somewhere here</span>
onExit<span class="pl-kos">,</span>
onExiting<span class="pl-kos">,</span>
transitionDuration<span class="pl-kos">,</span>
theme<span class="pl-kos">,</span>
...<span class="pl-s1">other</span>
<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">Transition</span>
<span class="pl-c1">onEntering</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleEntering</span><span class="pl-kos">}</span>
<span class="pl-c1">onEnter</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleEnter</span><span class="pl-kos">}</span>
<span class="pl-c1">onEntered</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleEntered</span><span class="pl-kos">}</span>
<span class="pl-c1">enteredClassName</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">classes</span><span class="pl-kos">.</span><span class="pl-c1">entered</span><span class="pl-kos">}</span>
<span class="pl-c1">onExiting</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleExiting</span><span class="pl-kos">}</span>
<span class="pl-c1">onExit</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleExit</span><span class="pl-kos">}</span>
<span class="pl-c1">onRequestTimeout</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleRequestTimeout</span><span class="pl-kos">}</span>
<span class="pl-kos">{</span>...<span class="pl-s1">other</span><span class="pl-kos">}</span> <span class="pl-c">// <-- onEntered prop overwriting this.handleEntered</span>
<span class="pl-c1">></span></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">I was trying to invoke a call back that helps measure dom elements in Collapse <code class="notranslate">onEntered</code>. I realized it was not being called in the Collapse method because the <code class="notranslate">element</code> did not have the style values that are assigned in that method.</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></td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | <p dir="auto">The following code snippet:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="React.createElement<SvgIconProps>(icon, { classes: { root: classes.nonActiveColor }});"><pre class="notranslate"><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">createElement</span><span class="pl-c1"><</span><span class="pl-v">SvgIconProps</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">icon</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">classes</span>: <span class="pl-kos">{</span> <span class="pl-c1">root</span>: <span class="pl-s1">classes</span><span class="pl-kos">.</span><span class="pl-c1">nonActiveColor</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">returns the following type error:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(36,60): error TS2345: Argument of type '{ classes: { root: string; }; }' is not assignable to parameter of type '(Attributes & SvgIconProps) | undefined'.
Object literal may only specify known properties, and 'classes' does not exist in type '(Attributes & SvgIconProps) | undefined'."><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-c1">36</span><span class="pl-kos">,</span><span class="pl-c1">60</span><span class="pl-kos">)</span>: <span class="pl-s1">error</span> TS2345: <span class="pl-v">Argument</span> <span class="pl-s1">of</span> <span class="pl-s1">type</span> '<span class="pl-kos">{</span> classes: <span class="pl-kos">{</span> root: <span class="pl-s1">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-s">' is not assignable to parameter of type '</span><span class="pl-kos">(</span><span class="pl-v">Attributes</span> <span class="pl-c1">&</span> <span class="pl-v">SvgIconProps</span><span class="pl-kos">)</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span><span class="pl-s">'.</span>
<span class="pl-s"> Object literal may only specify known properties, and '</span><span class="pl-s1">classes</span><span class="pl-s">' does not exist in type '</span><span class="pl-kos">(</span><span class="pl-v">Attributes</span> <span class="pl-c1">&</span> <span class="pl-v">SvgIconProps</span><span class="pl-kos">)</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span>'.</pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td><code class="notranslate">v1-beta.9</code></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">When I run flutter doctor, "Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses" is the only thing it's cranky about. When I run the command, and hit "y" to accept each license and rerun flutter doctor, it still complains about the android licenses.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter doctor -v
[√] Flutter (Channel beta, v0.2.3, on Microsoft Windows [Version 10.0.16299.309], locale en-US)
• Flutter version 0.2.3
• Framework revision 5a58b36e36 (2 weeks ago), 2018-03-13 13:20:13 -0700
• Engine revision e61bb9ac3a
• Dart version 2.0.0-dev.35.flutter-290c576264
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK
• Android NDK
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME
• Java binary
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
X Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Android Studio (version 3.1)
• Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] VS Code, 64-bit edition (version 1.21.1)
• VS Code
• Dart Code extension version 2.11.1
[!] Connected devices
! No devices available
! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">flutter doctor -v
[√] Flutter (Channel beta, v0.2.3, on Microsoft Windows [Version 10.0.16299.309], locale en-US)
• Flutter version 0.2.3
• Framework revision 5a58b36e36 (2 weeks ago), 2018-03-13 13:20:13 -0700
• Engine revision e61bb9ac3a
• Dart version 2.0.0-dev.35.flutter-290c576264
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK
• Android NDK
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME
• Java binary
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
X Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Android Studio (version 3.1)
• Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] VS Code, 64-bit edition (version 1.21.1)
• VS Code
• Dart Code extension version 2.11.1
[!] Connected devices
! No devices available
! Doctor found issues in 2 categories.
</code></pre></div>
<p dir="auto">I posted the same thing on the Google groups for flutter, and it was suggested this is a bug and that I should post it here.</p> | <h2 dir="auto">Steps to Reproduce</h2>
<blockquote>
<p dir="auto">Please tell us what you were doing and what went wrong. If you are running flutter tools from the command line, please try adding the <code class="notranslate">-v</code> or <code class="notranslate">--verbose</code> option to gather more information.</p>
</blockquote>
<ol dir="auto">
<li>Run <code class="notranslate">flutter upgrade</code>.</li>
</ol>
<p dir="auto"><strong>What went wrong</strong></p>
<blockquote>
<p dir="auto"><strong>✗ Android license status unknown.</strong></p>
</blockquote>
<p dir="auto"><strong>What should happen</strong><br>
There shouldn't be a problem. The build from last week did not output a problem, and this week's build shouldn't output a problem.</p>
<p dir="auto"><strong>What I tried to fix the problem</strong></p>
<ol dir="auto">
<li>Upgraded Android Studio</li>
<li>Added a few random SDK in the SDK Manager</li>
<li><code class="notranslate">sudo chown -R $USER:$USER /opt/*</code></li>
<li><code class="notranslate">flutter doctor --android-licenses</code></li>
</ol>
<blockquote>
<p dir="auto"><del>If the problem is with your application's rendering, please attach a screenshot and any relevant source code.</del><br>
<del>If you are getting an exception in the logs, and your code is implicated in the first few frames, then please include the source code for the functions involved.</del></p>
</blockquote>
<h2 dir="auto">Logs</h2>
<blockquote>
<p dir="auto">Run your application with <code class="notranslate">flutter run</code> and attach all the log output.</p>
</blockquote>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on Nexus 5 in debug mode...
Initializing gradle... 0.8s
Resolving dependencies... 11.8s
Running 'gradlew assembleDebug'... 4.7s
Built build/app/outputs/apk/debug/app-debug.apk (26.9MB)."><pre class="notranslate">Launching lib/main.dart on Nexus 5 <span class="pl-k">in</span> debug mode...
Initializing gradle... 0.8s
Resolving dependencies... 11.8s
Running <span class="pl-s"><span class="pl-pds">'</span>gradlew assembleDebug<span class="pl-pds">'</span></span>... 4.7s
Built build/app/outputs/apk/debug/app-debug.apk (26.9MB).</pre></div>
<p dir="auto">The app then opens in the device and immediately crashes.</p>
<blockquote>
<p dir="auto">Run <code class="notranslate">flutter analyze</code> and attach any output of that command also.</p>
</blockquote>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Analyzing /home/users/n.gendron/GitLab/n.gendron/techno_store...
lint • Close instances of `dart.core.Sink` at lib/server.dart:10:20 • close_sinks
hint • 'BASE64' is deprecated and shouldn't be used at lib/edit.dart:85:9 • deprecated_member_use
hint • 'JSON' is deprecated and shouldn't be used at lib/globals.dart:70:12 • deprecated_member_use
hint • 'JSON' is deprecated and shouldn't be used at lib/globals.dart:80:19 • deprecated_member_use
hint • 'BASE64' is deprecated and shouldn't be used at lib/item.dart:83:11 • deprecated_member_use
hint • 'JSON' is deprecated and shouldn't be used at lib/server.dart:50:36 • deprecated_member_use
hint • 'JSON' is deprecated and shouldn't be used at lib/server.dart:129:17 • deprecated_member_use
7 issues found.
(Ran in 8.2s)"><pre class="notranslate">Analyzing /home/users/n.gendron/GitLab/n.gendron/techno_store...
lint • Close instances of <span class="pl-s"><span class="pl-pds">`</span>dart.core.Sink<span class="pl-pds">`</span></span> at lib/server.dart:10:20 • close_sinks
hint • <span class="pl-s"><span class="pl-pds">'</span>BASE64<span class="pl-pds">'</span></span> is deprecated and shouldn<span class="pl-s"><span class="pl-pds">'</span>t be used at lib/edit.dart:85:9 • deprecated_member_use</span>
<span class="pl-s"> hint • <span class="pl-pds">'</span></span>JSON<span class="pl-s"><span class="pl-pds">'</span> is deprecated and shouldn<span class="pl-pds">'</span></span>t be used at lib/globals.dart:70:12 • deprecated_member_use
hint • <span class="pl-s"><span class="pl-pds">'</span>JSON<span class="pl-pds">'</span></span> is deprecated and shouldn<span class="pl-s"><span class="pl-pds">'</span>t be used at lib/globals.dart:80:19 • deprecated_member_use</span>
<span class="pl-s"> hint • <span class="pl-pds">'</span></span>BASE64<span class="pl-s"><span class="pl-pds">'</span> is deprecated and shouldn<span class="pl-pds">'</span></span>t be used at lib/item.dart:83:11 • deprecated_member_use
hint • <span class="pl-s"><span class="pl-pds">'</span>JSON<span class="pl-pds">'</span></span> is deprecated and shouldn<span class="pl-s"><span class="pl-pds">'</span>t be used at lib/server.dart:50:36 • deprecated_member_use</span>
<span class="pl-s"> hint • <span class="pl-pds">'</span></span>JSON<span class="pl-s"><span class="pl-pds">'</span> is deprecated and shouldn<span class="pl-pds">'</span></span>t be used at lib/server.dart:129:17 • deprecated_member_use
7 issues found.
(Ran <span class="pl-k">in</span> 8.2s)</pre></div>
<p dir="auto">Oh, what happened the last two days?</p>
<h2 dir="auto">Flutter Doctor</h2>
<blockquote>
<p dir="auto">Paste the output of running <code class="notranslate">flutter doctor -v</code> here.</p>
</blockquote>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.2.3, on Linux, locale en_US.UTF-8)
• Flutter version 0.2.3 at /home/users/n.gendron/GitHub/flutter
• Framework revision 5a58b36e36 (2 weeks ago), 2018-03-13 13:20:13 -0700
• Engine revision e61bb9ac3a
• Dart version 2.0.0-dev.35.flutter-290c576264
[!] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /opt/android-sdk/
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /opt/android-sdk/
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
✗ Android license status unknown.
[✓] Android Studio (version 3.1)
• Android Studio at /opt/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] Connected devices (1 available)
• Nexus 5 • 05473ea90a673764 • android-arm • Android 7.1.2 (API 25)
! Doctor found issues in 1 category."><pre class="notranslate">[✓] Flutter (Channel beta, v0.2.3, on Linux, locale en_US.UTF-8)
• Flutter version 0.2.3 at /home/users/n.gendron/GitHub/flutter
• Framework revision 5a58b36e36 (2 weeks ago), 2018-03-13 13:20:13 -0700
• Engine revision e61bb9ac3a
• Dart version 2.0.0-dev.35.flutter-290c576264
[<span class="pl-k">!</span>] Android toolchain - develop <span class="pl-k">for</span> Android devices (Android SDK 27.0.3)
• Android SDK at /opt/android-sdk/
• Android NDK location not configured (optional<span class="pl-k">;</span> useful <span class="pl-k">for</span> native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /opt/android-sdk/
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
✗ Android license status unknown.
[✓] Android Studio (version 3.1)
• Android Studio at /opt/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] Connected devices (1 available)
• Nexus 5 • 05473ea90a673764 • android-arm • Android 7.1.2 (API 25)
<span class="pl-k">!</span> Doctor found issues <span class="pl-k">in</span> 1 category.</pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="flutter doctor --android-licenses
Warning: java.net.ConnectException: Connection timed out (Connection timed out)
Warning: Failed to download any source lists! Fetch remote repository...
Warning: File /home/users/n.gendron/.android/repositories.cfg could not be loaded.
All SDK package licenses accepted.======] 100% Computing updates... "><pre class="notranslate">flutter doctor --android-licenses
Warning: java.net.ConnectException: Connection timed out (Connection timed out)
Warning: Failed to download any <span class="pl-c1">source</span> lists<span class="pl-k">!</span> Fetch remote repository...
Warning: File /home/users/n.gendron/.android/repositories.cfg could not be loaded.
All SDK package licenses accepted.======] 100% Computing updates... </pre></div>
<blockquote>
<p dir="auto">For more information about diagnosing and reporting Flutter bugs, please see <a href="https://flutter.io/bug-reports/" rel="nofollow">https://flutter.io/bug-reports/</a>.</p>
</blockquote>
<p dir="auto"><strong>Edit :</strong> Oh hey, I forgot to add some info about my system. It should probably be noted somewhere in the template to add it.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="OS: Ubuntu 16.04.4 LTS x86_64
Kernel: 4.13.0-38-generic
Uptime: 17 hours, 31 mins
Packages: 3069
Shell: bash 4.3.48
Resolution: 1024x768, 1920x1080
DE: GNOME 3.18.5
WM: GNOME Shell
WM Theme: Adwaita
Theme: Greybird [GTK2/3]
Icons: Elementary-xfce-darker [GTK2/3]
CPU: Intel i5 660 (4) @ 2.035GHz
GPU: NVIDIA GeForce 8400 GS Rev. 2
Memory: 4576MiB / 7840MiB "><pre class="notranslate"><span class="pl-ent">OS</span>: <span class="pl-s">Ubuntu 16.04.4 LTS x86_64 </span>
<span class="pl-ent">Kernel</span>: <span class="pl-s">4.13.0-38-generic </span>
<span class="pl-ent">Uptime</span>: <span class="pl-s">17 hours, 31 mins </span>
<span class="pl-ent">Packages</span>: <span class="pl-c1">3069</span>
<span class="pl-ent">Shell</span>: <span class="pl-s">bash 4.3.48 </span>
<span class="pl-ent">Resolution</span>: <span class="pl-s">1024x768, 1920x1080 </span>
<span class="pl-ent">DE</span>: <span class="pl-s">GNOME 3.18.5 </span>
<span class="pl-ent">WM</span>: <span class="pl-s">GNOME Shell </span>
<span class="pl-ent">WM Theme</span>: <span class="pl-s">Adwaita </span>
<span class="pl-ent">Theme</span>: <span class="pl-s">Greybird [GTK2/3] </span>
<span class="pl-ent">Icons</span>: <span class="pl-s">Elementary-xfce-darker [GTK2/3] </span>
<span class="pl-ent">CPU</span>: <span class="pl-s">Intel i5 660 (4) @ 2.035GHz </span>
<span class="pl-ent">GPU</span>: <span class="pl-s">NVIDIA GeForce 8400 GS Rev. 2 </span>
<span class="pl-ent">Memory</span>: <span class="pl-s">4576MiB / 7840MiB </span></pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)"><pre class="notranslate">java -version
openjdk version <span class="pl-s"><span class="pl-pds">"</span>1.8.0_151<span class="pl-pds">"</span></span>
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)</pre></div>
<p dir="auto"><strong>Edit :</strong> Most people stumbling here had a different problem from the one I had, <a href="https://github.com/flutter/flutter/issues/16025#issuecomment-468009198" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/16025/hovercard">and its solution is here</a>.</p>
<blockquote>
<p dir="auto">Modify <code class="notranslate">sdkmanager</code> to use Java 8 by setting <code class="notranslate">JAVA_HOME</code> <em>inside</em> <code class="notranslate">sdkmanager</code> to a Java 8 installation. It's, by default, at <code class="notranslate">~/Android/Sdk/tools/bin/sdkmanager</code>.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Add default JVM options here. You can also use JAVA_OPTS and SDKMANAGER_OPTS to pass JVM options $
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME" -XX:+IgnoreUnrecognizedVMOptions'"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> Add default JVM options here. You can also use JAVA_OPTS and SDKMANAGER_OPTS to pass JVM options $</span>
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
DEFAULT_JVM_OPTS=<span class="pl-s"><span class="pl-pds">'</span>"-Dcom.android.sdklib.toolsdir=$APP_HOME" -XX:+IgnoreUnrecognizedVMOptions<span class="pl-pds">'</span></span></pre></div>
<div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@rem Add default JVM options here. You can also use JAVA_OPTS and SDKMANAGER_OPTS to pass JVM options to this script.
set JAVA_HOME="C:\ProgramData\scoop\apps\android-studio\current\jre"
set DEFAULT_JVM_OPTS="-Dcom.android.sdklib.toolsdir=%~dp0\..""><pre class="notranslate"><span class="pl-k">@</span><span class="pl-c"><span class="pl-k">rem</span> Add default JVM options here. You can also use JAVA_OPTS and SDKMANAGER_OPTS to pass JVM options to this script.</span>
<span class="pl-k">set</span> <span class="pl-smi">JAVA_HOME</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>C:\ProgramData\scoop\apps\android-studio\current\jre<span class="pl-pds">"</span></span>
<span class="pl-k">set</span> <span class="pl-smi">DEFAULT_JVM_OPTS</span><span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">"</span>-Dcom.android.sdklib.toolsdir=<span class="pl-v">%~dp0</span>\..<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">This way, you can keep using a sane and maintained version of Java on your system while simultaneously using <code class="notranslate">sdkmanager</code>.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Java
export JAVA_HOME=/usr/lib/jvm/default-java"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> Java</span>
<span class="pl-k">export</span> JAVA_HOME=/usr/lib/jvm/default-java</pre></div>
<p dir="auto">And now I've got some <a href="https://user-images.githubusercontent.com/10495562/53575275-3504db80-3b3f-11e9-810a-ca49ef9373c4.png" rel="nofollow">pipelines</a> to repair.</p>
</blockquote> | 1 |
<p dir="auto"><strong>Description</strong></p>
<p dir="auto">When using <code class="notranslate">KubernetesPodOperator</code> with the option <code class="notranslate">do_xcom_push=True</code>, I would also like to be able to change the image being used by the sidecar container that extracts the JSON file from the main container.</p>
<p dir="auto"><strong>Use case / motivation</strong></p>
<p dir="auto">I would like to have all images pulled from a private repository. Main reason being that I've seen rate limiting issues with Docker Hub, since the image being pulled for the sidecar container is <code class="notranslate">alpine:latest</code>. It would be helpful if I can set Airflow's behaviour to pull a mirror of this image from ECR.</p> | <h3 dir="auto">Description</h3>
<p dir="auto"><strong>Problem</strong></p>
<p dir="auto">It is not easy to rename dags.</p>
<p dir="auto"><strong>Suggestion</strong></p>
<p dir="auto">It would be better if dag can have both id and name. Id could be some guid/uuid. If not given then id can be generated. At least when required the id can be queried from the database. This way we can change the dag name without changing the id.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="DAG_ID = '76c9eb30-4f9c-4806-aad8-931c03679726'
DAG_NAME = 'test'
with DAG(dag_id=DAG_ID, dag_name=DAG_NAME, ...):
# some tasks"><pre class="notranslate"><span class="pl-v">DAG_ID</span> <span class="pl-c1">=</span> <span class="pl-s">'76c9eb30-4f9c-4806-aad8-931c03679726'</span>
<span class="pl-v">DAG_NAME</span> <span class="pl-c1">=</span> <span class="pl-s">'test'</span>
<span class="pl-k">with</span> <span class="pl-v">DAG</span>(<span class="pl-s1">dag_id</span><span class="pl-c1">=</span><span class="pl-v">DAG_ID</span>, <span class="pl-s1">dag_name</span><span class="pl-c1">=</span><span class="pl-v">DAG_NAME</span>, ...):
<span class="pl-c"># some tasks</span></pre></div>
<p dir="auto">If I want to rename the dag then I can simply change the name and I can still get the dag history and not running into the risk of backfilling the dag again.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="DAG_ID = '76c9eb30-4f9c-4806-aad8-931c03679726'
DAG_NAME = 'test_edited'
with DAG(dag_id=DAG_ID, dag_name=DAG_NAME, ...):
# some tasks"><pre class="notranslate"><span class="pl-v">DAG_ID</span> <span class="pl-c1">=</span> <span class="pl-s">'76c9eb30-4f9c-4806-aad8-931c03679726'</span>
<span class="pl-v">DAG_NAME</span> <span class="pl-c1">=</span> <span class="pl-s">'test_edited'</span>
<span class="pl-k">with</span> <span class="pl-v">DAG</span>(<span class="pl-s1">dag_id</span><span class="pl-c1">=</span><span class="pl-v">DAG_ID</span>, <span class="pl-s1">dag_name</span><span class="pl-c1">=</span><span class="pl-v">DAG_NAME</span>, ...):
<span class="pl-c"># some tasks</span></pre></div>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto">So that dag can be easily renamed.</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"> 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> | 0 |
<h3 dir="auto">First check</h3>
<ul dir="auto">
<li>[*] I added a very descriptive title to this issue.</li>
<li>[*] I used the GitHub search to find a similar issue and didn't find it.</li>
<li>[*] I searched the FastAPI documentation, with the integrated search.</li>
<li>[*] I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li>[*] I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li>[*] I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li>[*] I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li>[*] I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
<li>[*] After submitting this, I commit to one of:
<ul dir="auto">
<li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li>
<li>I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.</li>
<li>Implement a Pull Request for a confirmed bug.</li>
</ul>
</li>
</ul>
<h3 dir="auto">Example</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class FactoryDependency:
# go through api_key validation
def call_api_key(self, a= Depends(get_api_key)):
...
# go through jwt validation
def call_jwt(self, b = Depends(auth)):
...
async def __call__(self, request: Request):
headers = request.headers
api_key = case_insensitive_search(headers, "API-KEY")
if api_key:
self.call_api_key()
else:
self.call_jwt()
..."><pre class="notranslate"><code class="notranslate">class FactoryDependency:
# go through api_key validation
def call_api_key(self, a= Depends(get_api_key)):
...
# go through jwt validation
def call_jwt(self, b = Depends(auth)):
...
async def __call__(self, request: Request):
headers = request.headers
api_key = case_insensitive_search(headers, "API-KEY")
if api_key:
self.call_api_key()
else:
self.call_jwt()
...
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">I would like to use a factory dependency for authenticating users to access backend endpoints. Currently, my system supports two ways of authentication: one using api-key and one using jwt. If the user provides either one of them (first check for api-key in the header and if its not, then check for bearer token), the authentication is passed. Would it be possible to have such dependency that performs the check and calls the correct authentication dependency (JWT dependency or Key dependency)? I've gone through Dependencies section of the documentation, but not really sure if calling other dependencies inside a dependency is supported in FastAPI. I tried the above example, but when either of the two methods (<code class="notranslate">call_api_key</code> or <code class="notranslate">call_jwt</code> is called, the dependency doesn't seem to work). Any insights would be greatly appreciated!</p> | <h3 dir="auto">First check</h3>
<ul dir="auto">
<li>[*] I added a very descriptive title to this issue.</li>
<li>[*] I used the GitHub search to find a similar issue and didn't find it.</li>
<li>[*] I searched the FastAPI documentation, with the integrated search.</li>
<li>[*] I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li>[*] I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li>[*] I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li>[*] I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li>[*] I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
<li>[*] After submitting this, I commit to one of:
<ul dir="auto">
<li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li>
<li>I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.</li>
<li>Implement a Pull Request for a confirmed bug.</li>
</ul>
</li>
</ul>
<h3 dir="auto">Example (with a brief explanation)</h3>
<p dir="auto">I currently have JWT dependency named jwt which makes sure it passes JWT authentication stage before hitting the endpoint like this:</p>
<p dir="auto"><code class="notranslate">sample_endpoint.py</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from fastapi import APIRouter, Depends, Request
from JWTBearer import JWTBearer
from jwt import jwks
router = APIRouter()
jwt = JWTBearer(jwks)
@router.get("/test_jwt", dependencies=[Depends(jwt)])
async def test_endpoint(request: Request):
return True"><pre class="notranslate"><code class="notranslate">from fastapi import APIRouter, Depends, Request
from JWTBearer import JWTBearer
from jwt import jwks
router = APIRouter()
jwt = JWTBearer(jwks)
@router.get("/test_jwt", dependencies=[Depends(jwt)])
async def test_endpoint(request: Request):
return True
</code></pre></div>
<p dir="auto">Below is the JWT dependency which authenticate users using JWT (source: <a href="https://medium.com/datadriveninvestor/jwt-authentication-with-fastapi-and-aws-cognito-1333f7f2729e" rel="nofollow">https://medium.com/datadriveninvestor/jwt-authentication-with-fastapi-and-aws-cognito-1333f7f2729e</a>):</p>
<p dir="auto"><code class="notranslate">JWTBearer.py</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from typing import Dict, Optional, List
from fastapi import HTTPException
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
from jose import jwt, jwk, JWTError
from jose.utils import base64url_decode
from pydantic import BaseModel
from starlette.requests import Request
from starlette.status import HTTP_403_FORBIDDEN
JWK = Dict[str, str]
class JWKS(BaseModel):
keys: List[JWK]
class JWTAuthorizationCredentials(BaseModel):
jwt_token: str
header: Dict[str, str]
claims: Dict[str, str]
signature: str
message: str
class JWTBearer(HTTPBearer):
def __init__(self, jwks: JWKS, auto_error: bool = True):
super().__init__(auto_error=auto_error)
self.kid_to_jwk = {jwk["kid"]: jwk for jwk in jwks.keys}
def verify_jwk_token(self, jwt_credentials: JWTAuthorizationCredentials) -> bool:
try:
public_key = self.kid_to_jwk[jwt_credentials.header["kid"]]
except KeyError:
raise HTTPException(
status_code=HTTP_403_FORBIDDEN, detail="JWK public key not found"
)
key = jwk.construct(public_key)
decoded_signature = base64url_decode(jwt_credentials.signature.encode())
return key.verify(jwt_credentials.message.encode(), decoded_signature)
async def __call__(self, request: Request) -> Optional[JWTAuthorizationCredentials]:
credentials: HTTPAuthorizationCredentials = await super().__call__(request)
if credentials:
if not credentials.scheme == "Bearer":
raise HTTPException(
status_code=HTTP_403_FORBIDDEN, detail="Wrong authentication method"
)
jwt_token = credentials.credentials
message, signature = jwt_token.rsplit(".", 1)
try:
jwt_credentials = JWTAuthorizationCredentials(
jwt_token=jwt_token,
header=jwt.get_unverified_header(jwt_token),
claims=jwt.get_unverified_claims(jwt_token),
signature=signature,
message=message,
)
except JWTError:
raise HTTPException(status_code=HTTP_403_FORBIDDEN, detail="JWK invalid")
if not self.verify_jwk_token(jwt_credentials):
raise HTTPException(status_code=HTTP_403_FORBIDDEN, detail="JWK invalid")
return jwt_credentials "><pre class="notranslate"><code class="notranslate">from typing import Dict, Optional, List
from fastapi import HTTPException
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
from jose import jwt, jwk, JWTError
from jose.utils import base64url_decode
from pydantic import BaseModel
from starlette.requests import Request
from starlette.status import HTTP_403_FORBIDDEN
JWK = Dict[str, str]
class JWKS(BaseModel):
keys: List[JWK]
class JWTAuthorizationCredentials(BaseModel):
jwt_token: str
header: Dict[str, str]
claims: Dict[str, str]
signature: str
message: str
class JWTBearer(HTTPBearer):
def __init__(self, jwks: JWKS, auto_error: bool = True):
super().__init__(auto_error=auto_error)
self.kid_to_jwk = {jwk["kid"]: jwk for jwk in jwks.keys}
def verify_jwk_token(self, jwt_credentials: JWTAuthorizationCredentials) -> bool:
try:
public_key = self.kid_to_jwk[jwt_credentials.header["kid"]]
except KeyError:
raise HTTPException(
status_code=HTTP_403_FORBIDDEN, detail="JWK public key not found"
)
key = jwk.construct(public_key)
decoded_signature = base64url_decode(jwt_credentials.signature.encode())
return key.verify(jwt_credentials.message.encode(), decoded_signature)
async def __call__(self, request: Request) -> Optional[JWTAuthorizationCredentials]:
credentials: HTTPAuthorizationCredentials = await super().__call__(request)
if credentials:
if not credentials.scheme == "Bearer":
raise HTTPException(
status_code=HTTP_403_FORBIDDEN, detail="Wrong authentication method"
)
jwt_token = credentials.credentials
message, signature = jwt_token.rsplit(".", 1)
try:
jwt_credentials = JWTAuthorizationCredentials(
jwt_token=jwt_token,
header=jwt.get_unverified_header(jwt_token),
claims=jwt.get_unverified_claims(jwt_token),
signature=signature,
message=message,
)
except JWTError:
raise HTTPException(status_code=HTTP_403_FORBIDDEN, detail="JWK invalid")
if not self.verify_jwk_token(jwt_credentials):
raise HTTPException(status_code=HTTP_403_FORBIDDEN, detail="JWK invalid")
return jwt_credentials
</code></pre></div>
<p dir="auto"><code class="notranslate">jwt.py</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import os
import requests
from dotenv import load_dotenv
from fastapi import Depends, HTTPException
from starlette.status import HTTP_403_FORBIDDEN
from app.JWTBearer import JWKS, JWTBearer, JWTAuthorizationCredentials
load_dotenv() # Automatically load environment variables from a '.env' file.
jwks = JWKS.parse_obj(
requests.get(
f"https://cognito-idp.{os.environ.get('COGNITO_REGION')}.amazonaws.com/"
f"{os.environ.get('COGNITO_POOL_ID')}/.well-known/jwks.json"
).json()
)
jwt = JWTBearer(jwks)
async def get_current_user(
credentials: JWTAuthorizationCredentials = Depends(auth)
) -> str:
try:
return credentials.claims["username"]
except KeyError:
HTTPException(status_code=HTTP_403_FORBIDDEN, detail="Username missing") "><pre class="notranslate"><code class="notranslate">import os
import requests
from dotenv import load_dotenv
from fastapi import Depends, HTTPException
from starlette.status import HTTP_403_FORBIDDEN
from app.JWTBearer import JWKS, JWTBearer, JWTAuthorizationCredentials
load_dotenv() # Automatically load environment variables from a '.env' file.
jwks = JWKS.parse_obj(
requests.get(
f"https://cognito-idp.{os.environ.get('COGNITO_REGION')}.amazonaws.com/"
f"{os.environ.get('COGNITO_POOL_ID')}/.well-known/jwks.json"
).json()
)
jwt = JWTBearer(jwks)
async def get_current_user(
credentials: JWTAuthorizationCredentials = Depends(auth)
) -> str:
try:
return credentials.claims["username"]
except KeyError:
HTTPException(status_code=HTTP_403_FORBIDDEN, detail="Username missing")
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Depending on the situation, I would like to first check if it has API Key in the header (I will create a separate dependency for this), and if its present, use that to authenticate. Otherwise, I would like to use jwt dependency for authentication. I want to make sure that if either api-key authentication or jwt authentication passes, the user is authenticated. Would this be possible in FastAPI (i.e. having multiple dependencies and if one of them passes, authentication passed). Thank you!</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>
<p dir="auto">OS: Ubuntu</p>
</li>
<li>
<p dir="auto">FastAPI Version: 0.61.2</p>
</li>
<li>
<p dir="auto">Python version: 3.6.9</p>
</li>
</ul> | 1 |
<p dir="auto">I have searched the issues of this repository and believe that this is not a duplicate.<br>
I have checked the FAQ of this repository and believe that this is not a duplicate.<br>
Environment<br>
Dubbo version: 2.6.x<br>
Operating System version: all<br>
Java version: all<br>
Steps to reproduce this issue<br>
fastjson <= 1.2.48 considers vulnerable, see <a href="https://www.anquanke.com/post/id/181874" rel="nofollow">https://www.anquanke.com/post/id/181874</a><br>
we are using 1.2.46, I think it's better to use the latest version fastjson-1.2.58 if possible.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version:Linux version 4.4.190-1.el7.elrepo.x86_64 (mockbuild@Build64R7) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5423124" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/1/hovercard" href="https://github.com/apache/dubbo/pull/1">#1</a> SMP Sun Aug 25 07:32:44 EDT 2019</li>
<li>Java version: 1.8.0_144</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">2019-11-22 20:52:12 [WARN] - [org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation:76] - [DUBBO] Decode rpc invocation failed: Read invocation data failed.<br>
java.lang.ClassNotFoundException: com.xxx.search.api.SearchRequest<br>
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)<br>
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:92)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)<br>
at java.lang.Class.forName0(Native Method)<br>
at java.lang.Class.forName(Class.java:348)<br>
at org.apache.dubbo.common.utils.ReflectUtils.desc2class(ReflectUtils.java:807)<br>
at org.apache.dubbo.common.utils.ReflectUtils.desc2classArray(ReflectUtils.java:841)<br>
at org.apache.dubbo.common.utils.ReflectUtils.desc2classArray(ReflectUtils.java:821)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:112)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:73)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:132)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:122)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:82)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:48)<br>
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalDecoder.decode(NettyCodecAdapter.java:90)<br>
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:505)<br>
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444)<br>
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:283)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)<br>
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352)<br>
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1421)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)<br>
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)<br>
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:697)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549)<br>
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511)<br>
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918)<br>
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)<br>
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)<br>
at java.lang.Thread.run(Thread.java:748)<br>
, dubbo version: 2.7.3, current host: 192.168.11.129<br>
java.io.IOException: Read invocation data failed.<br>
java.lang.ClassNotFoundException: com.mfw.search.api.SearchRequest<br>
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)<br>
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:92)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)<br>
at java.lang.Class.forName0(Native Method)<br>
at java.lang.Class.forName(Class.java:348)<br>
at org.apache.dubbo.common.utils.ReflectUtils.desc2class(ReflectUtils.java:807)<br>
at org.apache.dubbo.common.utils.ReflectUtils.desc2classArray(ReflectUtils.java:841)<br>
at org.apache.dubbo.common.utils.ReflectUtils.desc2classArray(ReflectUtils.java:821)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:112)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:73)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:132)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:122)<br>
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:82)<br>
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:48)<br>
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalDecoder.decode(NettyCodecAdapter.java:90)<br>
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:505)<br>
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444)<br>
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:283)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)<br>
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352)<br>
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1421)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)<br>
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)<br>
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)<br>
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:697)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632)<br>
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549)<br>
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511)<br>
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918)<br>
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)<br>
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)<br>
at java.lang.Thread.run(Thread.java:748)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:143)
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:73)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:132)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:122)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:82)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:48)
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalDecoder.decode(NettyCodecAdapter.java:90)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:505)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:283)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1421)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:697)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)"><pre class="notranslate"><code class="notranslate"> at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:143)
at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:73)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:132)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:122)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:82)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:48)
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalDecoder.decode(NettyCodecAdapter.java:90)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:505)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:283)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1421)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:697)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
</code></pre></div>
<p dir="auto"><code class="notranslate">public class SearchRequest extends BaseRequest { /** * 搜索词 */ private String keyword; /** * 页码 */ private int pageIndex; /** * 页数量 */ private int pageSize; /** * bool must */ private String must; /** * bool must not */ private String mustNot; /** * bool should */ private String should; /** * 请求ID,每一次请求的请求ID都要不同 */ private String requestId; /** * 包含的出参字段 */ private String[] include; /** * 排除的出参字段 */ private String[] exclude; }</code></p>
<p dir="auto"><code class="notranslate">public class BaseRequest implements Serializable { /** * 用于鉴权,可以解析出appId */ private String token; /** * 用户标识,获取用户登录态,个性化搜索需要 */ private String uid; /** * 1 用户ID,2设备ID,3Cookie */ private int type; /** * 调用来源IP */ private String ip; }</code></p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: xxx</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>xxx</li>
<li>xxx</li>
<li>xxx</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | <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: master branch</li>
<li>Operating System version: windows 10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>run FileNetworkerTest on windows platform</li>
<li>UT failed</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">UT passed</p>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?<br>
exception thrown<br>
ref <a href="https://en.wikipedia.org/wiki/File_URI_scheme" rel="nofollow">File_URI_scheme</a></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="java.lang.NumberFormatException: For input string: "\Users\XXX\AppData\Local\Temp\junit7860990268511022074\junit2976714168777395029.tmp"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at org.apache.dubbo.common.URL.valueOf(URL.java:249)
at org.apache.dubbo.remoting.p2p.support.FileNetworkerTest.testJoin(FileNetworkerTest.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)"><pre class="notranslate"><code class="notranslate">java.lang.NumberFormatException: For input string: "\Users\XXX\AppData\Local\Temp\junit7860990268511022074\junit2976714168777395029.tmp"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at org.apache.dubbo.common.URL.valueOf(URL.java:249)
at org.apache.dubbo.remoting.p2p.support.FileNetworkerTest.testJoin(FileNetworkerTest.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
</code></pre></div> | 0 |
<ul dir="auto">
<li>OpenCV => master</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">A typo in the get_duration_sec method is possible - two times the same condition is written.</p>
<p dir="auto"><a href="https://github.com/opencv/opencv/blob/3.3.1/modules/videoio/src/cap_ffmpeg_impl.hpp#L1103">https://github.com/opencv/opencv/blob/3.3.1/modules/videoio/src/cap_ffmpeg_impl.hpp#L1103</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" double CvCapture_FFMPEG::get_duration_sec() const
{
double sec = (double)ic->duration / (double)AV_TIME_BASE;
if (sec < eps_zero)
{
sec = (double)ic->streams[video_stream]->duration * r2d(ic->streams[video_stream]->time_base);
}
if (sec < eps_zero) // repeat?
{
sec = (double)ic->streams[video_stream]->duration * r2d(ic->streams[video_stream]->time_base);
}
return sec;
}"><pre class="notranslate"><code class="notranslate"> double CvCapture_FFMPEG::get_duration_sec() const
{
double sec = (double)ic->duration / (double)AV_TIME_BASE;
if (sec < eps_zero)
{
sec = (double)ic->streams[video_stream]->duration * r2d(ic->streams[video_stream]->time_base);
}
if (sec < eps_zero) // repeat?
{
sec = (double)ic->streams[video_stream]->duration * r2d(ic->streams[video_stream]->time_base);
}
return sec;
}
</code></pre></div> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/opencv/opencv
cd opencv
mkdir build
cd build
pwd
#prints: /Users/username/opencv/build
python ../platforms/js/build_js.py . --build_wasm
DESTDIR=/tmp/build make install"><pre class="notranslate"><code class="notranslate">git clone https://github.com/opencv/opencv
cd opencv
mkdir build
cd build
pwd
#prints: /Users/username/opencv/build
python ../platforms/js/build_js.py . --build_wasm
DESTDIR=/tmp/build make install
</code></pre></div>
<p dir="auto">this builds under /tmp/build/Users/username/opencv/build/install/{lib,include,...}<br>
instead of /tmp/build/usr/local/{lib,include,...}<br>
(eg that'd be the behavior of other software like libjpeg)</p>
<p dir="auto">NOTE: this is independent building via ../platforms/js/build_js.py, would've been same with standard build followed by <code class="notranslate">DESTDIR=/tmp/build make install</code></p> | 0 |
<p dir="auto">It would be nice if the HistGradientBoostingClassifier works takes the same input as the GradientBoostingClassifier.<br>
The following script on sklearn 0.23.0 raises:<br>
<code class="notranslate">TypeError: A sparse matrix was passed, but dense data is required. Use X.toarray() to convert to a dense numpy array.</code></p>
<p dir="auto">Switching to GradientBoostingClassifier makes the script work.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.experimental import enable_hist_gradient_boosting # noqa
from sklearn.ensemble import HistGradientBoostingClassifier, GradientBoostingClassifier
import numpy as np
from scipy import sparse
arr = np.array([[0, 1, 0, 1],
[1, 0, 1, 0]])
labels = [0, 1]
clf = HistGradientBoostingClassifier()
# clf = GradientBoostingClassifier()
arr = sparse.csr_matrix(arr)
clf.fit(arr,labels)"><pre class="notranslate"><code class="notranslate">from sklearn.experimental import enable_hist_gradient_boosting # noqa
from sklearn.ensemble import HistGradientBoostingClassifier, GradientBoostingClassifier
import numpy as np
from scipy import sparse
arr = np.array([[0, 1, 0, 1],
[1, 0, 1, 0]])
labels = [0, 1]
clf = HistGradientBoostingClassifier()
# clf = GradientBoostingClassifier()
arr = sparse.csr_matrix(arr)
clf.fit(arr,labels)
</code></pre></div> | <p dir="auto">This is a placeholder issue for sparse matrices support in the Histogram-based GBDT estimators.</p>
<p dir="auto">I guess <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="518378130" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/15550" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/15550/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/15550">#15550</a> should be tackled first.</p>
<hr>
<p dir="auto">Below are my thoughts and potential plan on the matter, feel free to ignore.</p>
<p dir="auto">Binning:</p>
<p dir="auto">We need a utility to compute quantiles on sparse data, and we need to map a float sparse matrix to a binned sparse matrix given those quantiles. To avoid having to densify <code class="notranslate">X_binned</code>, the zeros in <code class="notranslate">X</code> should be mapped to bin 0, even if that's not their actual bin (called <code class="notranslate">actual_bin_zeros</code>). I guess that means all the bins in <code class="notranslate">range(0, actual_bin_zeros)</code> have an offset of 1, i.e. now they're actually mapped to <code class="notranslate">range(1, actual_bin_zeros + 1)</code>. Though maybe we can avoid the offset by distinguishing between explicit and implicit zeros, IDK.</p>
<p dir="auto">Histograms:</p>
<p dir="auto">We need a histogram builder that can handle sparse data <em>and</em> that is aware of <code class="notranslate">actual_bin_zeros</code> in some way. We can't just build the histograms as usual, because that would mean that the zeros would be treated as the lowest value in the splitter. In the histogram, the zeros should be placed in their proper bin, i.e. at index <code class="notranslate">actual_bin_zeros</code>. This way, the splitter can be left unchanged. The offset of the bins in <code class="notranslate">range(1, actual_bin_zeros)</code> should also be canceled here.</p>
<p dir="auto">When building a histogram, we can focus only on the non-zeros entries. We already know the totals <code class="notranslate">sum_gradients</code>, <code class="notranslate">sum_hessians</code>, and <code class="notranslate">count</code> at any given node. So we can just go through the samples that have non-zero values and fill-in the histogram at their respective bins, and then set <code class="notranslate">hist[actual_bin_zeros]['grad'] = total_sum_gradients - hist[:]['grad'].sum()</code>.</p> | 1 |
<p dir="auto">The real problem is that <code class="notranslate">flutter test</code> command on linux requires <code class="notranslate">libGLU.so.1</code> but it's lack is neither detected by doctor nor listed as a requirement in documentation.</p>
<p dir="auto">According to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="211125859" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/8493" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/8493/hovercard" href="https://github.com/flutter/flutter/issues/8493">#8493</a> there should be no dependency on that shared library. So either <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Hixie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Hixie">@Hixie</a>'s assumption from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="211125859" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/8493" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/8493/hovercard?comment_id=351237672&comment_type=issue_comment" href="https://github.com/flutter/flutter/issues/8493#issuecomment-351237672">#8493 (comment)</a> is wrong or it was just introduced again in the meantime.</p>
<p dir="auto">Fix consists of installing <code class="notranslate">libglu1-mesa</code>.</p>
<p dir="auto">Here are the logs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@dc2bcbfdb26b:/bitrise/src/flutter-app-example# flutter test
00:05 +0: loading /bitrise/src/flutter-app-example/test/widget_test.dart Shell: /bitrise/src/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
00:05 +0 -1: loading /bitrise/src/flutter-app-example/test/widget_test.dart [E]
Failed to load "/bitrise/src/flutter-app-example/test/widget_test.dart":
Shell subprocess crashed with unexpected exit code 127 before connecting to test harness.
Test: /bitrise/src/flutter-app-example/test/widget_test.dart
Shell: /bitrise/src/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester
00:05 +0 -1: Some tests failed.
root@dc2bcbfdb26b:/bitrise/src/flutter-app-example# ldd /bitrise/src/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester |grep libGLU
libGLU.so.1 => not found
root@dc2bcbfdb26b:/bitrise/src/flutter-app-example# flutter --version
Flutter 0.3.1 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 12bbaba9ae (2 weeks ago) • 2018-04-19 23:36:15 -0700
Engine • revision 09d05a3891
Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b"><pre class="notranslate"><code class="notranslate">root@dc2bcbfdb26b:/bitrise/src/flutter-app-example# flutter test
00:05 +0: loading /bitrise/src/flutter-app-example/test/widget_test.dart Shell: /bitrise/src/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
00:05 +0 -1: loading /bitrise/src/flutter-app-example/test/widget_test.dart [E]
Failed to load "/bitrise/src/flutter-app-example/test/widget_test.dart":
Shell subprocess crashed with unexpected exit code 127 before connecting to test harness.
Test: /bitrise/src/flutter-app-example/test/widget_test.dart
Shell: /bitrise/src/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester
00:05 +0 -1: Some tests failed.
root@dc2bcbfdb26b:/bitrise/src/flutter-app-example# ldd /bitrise/src/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester |grep libGLU
libGLU.so.1 => not found
root@dc2bcbfdb26b:/bitrise/src/flutter-app-example# flutter --version
Flutter 0.3.1 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 12bbaba9ae (2 weeks ago) • 2018-04-19 23:36:15 -0700
Engine • revision 09d05a3891
Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b
</code></pre></div> | <p dir="auto">We'd like to build Flutter test runner with GPU support disabled in Skia, by setting the <code class="notranslate">skia_enable_gpu = false</code> GN argument. However, today that results in the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[12253/19539] CXX host_x64/obj/third_party/flutter/shell/gpu/gpu.gpu_surface_gl.o
FAILED: host_x64/obj/third_party/flutter/shell/gpu/gpu.gpu_surface_gl.o
../../buildtools/linux-x64/clang/bin/clang++ -MD -MF host_x64/obj/third_party/flutter/shell/gpu/gpu.gpu_surface_gl.o.d -DSK_HAS_JPEG_LIBRARY -DSK_SUPPORT_PDF -DSK_HAS_PNG_LIBRARY -DSK_USE_SKCMS -DSK_XML -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DENABLE_OPENTYPE_VERTICAL=1 -DSK_SAMPLES_FOR_X -DSK_DISABLE_EXPLICIT_GPU_RESOURCE_ALLOCATION -DSK_DISABLE_RENDER_TARGET_SORTING -DSK_SUPPORT_LEGACY_BACKEND_OBJECTS -DSK_DONT_OPTIMIZE_SRC_PROFILES_FOR_SPEED -DSK_DONT_OPTIMIZE_DST_PROFILES_FOR_SPEED -DSK_SUPPORT_GPU=0 -I../.. -Ihost_x64/gen -I../../third_party -I../../garnet/public -I../../peridot/public -I../../topaz/public -Ihost_x64/gen/garnet/public -Ihost_x64/gen/peridot/public -Ihost_x64/gen/topaz/public -I../../topaz -I../../third_party/dart/runtime -I../../third_party/skia/include/android -I../../third_party/skia/include/c -I../../third_party/skia/include/codec -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/gpu/gl -I../../third_party/skia/include/atlastext -I../../third_party/skia/include/pathops -I../../third_party/skia/include/ports -I../../third_party/skia/include/svg -I../../third_party/skia/include/utils -I../../third_party/skia/include/utils/mac -g --sysroot=/usr/local/google/home/phosek/fuchsia/buildtools/linux-x64/sysroot -fdebug-prefix-map=/usr/local/google/home/phosek/fuchsia=../.. -no-canonical-prefixes -Wall -Wextra -Wno-unused-parameter -fvisibility=hidden -g -Og -fvisibility-inlines-hidden -std=c++14 -stdlib=libc++ -fno-exceptions -fno-rtti -c ../../third_party/flutter/shell/gpu/gpu_surface_gl.cc -o host_x64/obj/third_party/flutter/shell/gpu/gpu.gpu_surface_gl.o
../../third_party/flutter/shell/gpu/gpu_surface_gl.cc:115:25: error: no matching constructor for initialization of 'GrBackendRenderTarget'
GrBackendRenderTarget render_target(size.fWidth, // width
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/skia/include/gpu/GrBackendSurface.h:32:14: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class SK_API GrBackendRenderTarget {
^
../../third_party/skia/include/gpu/GrBackendSurface.h:32:14: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
../../third_party/skia/include/gpu/GrBackendSurface.h:34:5: note: candidate constructor not viable: requires 0 arguments, but 5 were provided
GrBackendRenderTarget() {}
^
1 error generated.
[12310/19539] ACTION //topaz/shell/userpicker_device_shell:userpicker_device_shell_dart_library_identify_sources(//build/dart:dartlang)
ninja: build stopped: subcommand failed."><pre class="notranslate"><code class="notranslate">[12253/19539] CXX host_x64/obj/third_party/flutter/shell/gpu/gpu.gpu_surface_gl.o
FAILED: host_x64/obj/third_party/flutter/shell/gpu/gpu.gpu_surface_gl.o
../../buildtools/linux-x64/clang/bin/clang++ -MD -MF host_x64/obj/third_party/flutter/shell/gpu/gpu.gpu_surface_gl.o.d -DSK_HAS_JPEG_LIBRARY -DSK_SUPPORT_PDF -DSK_HAS_PNG_LIBRARY -DSK_USE_SKCMS -DSK_XML -DFLUTTER_RUNTIME_MODE_DEBUG=1 -DFLUTTER_RUNTIME_MODE_PROFILE=2 -DFLUTTER_RUNTIME_MODE_RELEASE=3 -DFLUTTER_RUNTIME_MODE=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DENABLE_OPENTYPE_VERTICAL=1 -DSK_SAMPLES_FOR_X -DSK_DISABLE_EXPLICIT_GPU_RESOURCE_ALLOCATION -DSK_DISABLE_RENDER_TARGET_SORTING -DSK_SUPPORT_LEGACY_BACKEND_OBJECTS -DSK_DONT_OPTIMIZE_SRC_PROFILES_FOR_SPEED -DSK_DONT_OPTIMIZE_DST_PROFILES_FOR_SPEED -DSK_SUPPORT_GPU=0 -I../.. -Ihost_x64/gen -I../../third_party -I../../garnet/public -I../../peridot/public -I../../topaz/public -Ihost_x64/gen/garnet/public -Ihost_x64/gen/peridot/public -Ihost_x64/gen/topaz/public -I../../topaz -I../../third_party/dart/runtime -I../../third_party/skia/include/android -I../../third_party/skia/include/c -I../../third_party/skia/include/codec -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/gpu/gl -I../../third_party/skia/include/atlastext -I../../third_party/skia/include/pathops -I../../third_party/skia/include/ports -I../../third_party/skia/include/svg -I../../third_party/skia/include/utils -I../../third_party/skia/include/utils/mac -g --sysroot=/usr/local/google/home/phosek/fuchsia/buildtools/linux-x64/sysroot -fdebug-prefix-map=/usr/local/google/home/phosek/fuchsia=../.. -no-canonical-prefixes -Wall -Wextra -Wno-unused-parameter -fvisibility=hidden -g -Og -fvisibility-inlines-hidden -std=c++14 -stdlib=libc++ -fno-exceptions -fno-rtti -c ../../third_party/flutter/shell/gpu/gpu_surface_gl.cc -o host_x64/obj/third_party/flutter/shell/gpu/gpu.gpu_surface_gl.o
../../third_party/flutter/shell/gpu/gpu_surface_gl.cc:115:25: error: no matching constructor for initialization of 'GrBackendRenderTarget'
GrBackendRenderTarget render_target(size.fWidth, // width
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/skia/include/gpu/GrBackendSurface.h:32:14: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided
class SK_API GrBackendRenderTarget {
^
../../third_party/skia/include/gpu/GrBackendSurface.h:32:14: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided
../../third_party/skia/include/gpu/GrBackendSurface.h:34:5: note: candidate constructor not viable: requires 0 arguments, but 5 were provided
GrBackendRenderTarget() {}
^
1 error generated.
[12310/19539] ACTION //topaz/shell/userpicker_device_shell:userpicker_device_shell_dart_library_identify_sources(//build/dart:dartlang)
ninja: build stopped: subcommand failed.
</code></pre></div>
<p dir="auto">This is when building Flutter test running for host as part of Fuchsia.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">The SW-Precache demo should precache all .next folder's ressources?</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The SW-Precache demo cache nothing.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Clone the repo</li>
<li>Go in the demo's folder <strong>with-sw-precache</strong></li>
<li>Run <code class="notranslate">npm build</code></li>
<li>The result is:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using "webpack" config function defined in next.config.js.
Total precache size is about 0 B for 0 resources."><pre class="notranslate"><code class="notranslate">Using "webpack" config function defined in next.config.js.
Total precache size is about 0 B for 0 resources.
</code></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">I would like to use sw-precache with NextJS</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.1.4</td>
</tr>
<tr>
<td>React</td>
<td>16.2</td>
</tr>
<tr>
<td>node</td>
<td>8.9.0</td>
</tr>
<tr>
<td>OS</td>
<td>MacOSX</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | <p dir="auto">I followed <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="201124877" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/799" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/799/hovercard" href="https://github.com/vercel/next.js/issues/799">#799</a> but couldn't get a clean way to have a styled-component link, I had to duplicate the href:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const StyledLink = styled.a`
color: red;
background: blue;
`
export default ({ href, name }) => (
<Link prefetch href={href}>
<StyledLink href={href}>{name}</StyledLink>
</Link>
)"><pre class="notranslate"><code class="notranslate">const StyledLink = styled.a`
color: red;
background: blue;
`
export default ({ href, name }) => (
<Link prefetch href={href}>
<StyledLink href={href}>{name}</StyledLink>
</Link>
)
</code></pre></div>
<p dir="auto">What's the proper way to make styled-component links?</p>
<p dir="auto">Using next.js 2.3.1.</p> | 0 |
<p dir="auto">Some programming languages leave binary compiled files to the source tree by default. <code class="notranslate">.pyc</code> files in Python being the most notably example.</p>
<p dir="auto">Together with <code class="notranslate">tree-view</code> <code class="notranslate">hideIgnoredNames</code> being false by default this makes navigation in the source tree little bit cumbersome due to scrolling through unnecessary <code class="notranslate">.pyc</code> duplicates, as demonstrated in the screenshot below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/49922/3311919/c71be7c0-f6ca-11e3-90b4-e39d89fcb45d.png"><img src="https://cloud.githubusercontent.com/assets/49922/3311919/c71be7c0-f6ca-11e3-90b4-e39d89fcb45d.png" alt="screen shot 2014-06-18 at 12 27 00" style="max-width: 100%;"></a></p>
<p dir="auto">What is Atom stance towards "sane defaults"? Could it be acceptable patch to have <code class="notranslate">.pyc</code> in the ignored files by default (thus giving better out of the box experience), or should things like that go to a separate package which all Python developers then install? (Though Python highlighter comes with the default installation.) I am not sure if I want to make a pull request on this, as I am not aware of the authors stance on the matter like this.</p>
<p dir="auto">For comparison, Sublime Text & co. seem to hide <code class="notranslate">.pyc</code> files by default.</p> | <p dir="auto">Suppose I have a package that's only activated in response to the <code class="notranslate">my-package:start</code> command, and in response to that command, it adds an instance of <code class="notranslate">MyPackageView</code> as a new item in the current <code class="notranslate">Pane</code>.</p>
<p dir="auto">If I want that view to be serialized when the editor closes, it seems like I'd just register deserialization like this:</p>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyPackageView
atom.deserializers.add(this)
constructor: (@data) -> #property assigned
serialize: -> { deserializer: 'MyPackageView', data: @data }
@deserialize: ({data}) -> new MyPackageView(data)"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-en">MyPackageView</span>
<span class="pl-smi">atom</span>.<span class="pl-smi">deserializers</span>.<span class="pl-c1">add</span>(<span class="pl-c1">this</span>)
<span class="pl-en">constructor</span><span class="pl-k">:</span> (<span class="pl-smi">@data</span>) <span class="pl-k">-></span> <span class="pl-c"><span class="pl-c">#</span>property assigned</span>
<span class="pl-en">serialize</span><span class="pl-k">:</span> <span class="pl-k">-></span> { <span class="pl-v">deserializer</span><span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">'</span>MyPackageView<span class="pl-pds">'</span></span>, <span class="pl-v">data</span><span class="pl-k">:</span> <span class="pl-smi">@data</span> }
<span class="pl-en"><span class="pl-smi">@</span>deserialize</span><span class="pl-k">:</span> ({data}) <span class="pl-k">-></span> <span class="pl-k">new</span> <span class="pl-en">MyPackageView</span>(data)</pre></div>
<p dir="auto">(from <a href="https://atom.io/docs/latest/advanced/serialization" rel="nofollow">serialization docs</a>, see also <a href="https://github.com/atom/atom/blob/v0.133.0/src/deserializer-manager.coffee#L24">DeserializeManager</a>)</p>
<p dir="auto">But the problem with this is that, if we add this view and then close/reopen Atom, it can't find <code class="notranslate">MyPackageView</code> when trying to deserialize this pane item.</p>
<p dir="auto">It seems that instead of loading the package but then waiting until activation event to call <code class="notranslate">activate()</code>, the package isn't even being <em>loaded</em> until the activation event fires. I'm not sure whether this is the intended behavior or not, but based on the comments about deferring <code class="notranslate">require</code>s in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="36014873" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/2654" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/2654/hovercard" href="https://github.com/atom/atom/issues/2654">#2654</a> and also in <a href="https://discuss.atom.io/t/how-to-speed-up-your-packages/10903" rel="nofollow">How To Speed Up Your Packages</a>, it appears to be a change, one consequence of this is that deferring <code class="notranslate">require</code> until <code class="notranslate">activate()</code> makes no difference to application load time. (Although, deferring it until some point even later than that could still speed up <em>package</em> activation time.)</p>
<p dir="auto">If this is actually the intended behavior of the package loading system, then one approach would be to register your package (or have it automatically inferred) when doing <code class="notranslate">deseralizers.add()</code>, so that the package could be stored as deserializer metadata, and then loaded during deserialization if necessary.</p> | 0 |
<p dir="auto">I have a TextField inside a stacked scafold (the outer one contains a bottombar and the inner one a tabbar with a pageView below it containing the textfield), I've had to set <code class="notranslate">resizeToAvoidBottomPadding: false</code> in order to keep the textfield from disappearing when the keyboard pops-up.<br>
I need to have the textfield occupy the whole available pageview's area, which I can accomplish visually with <code class="notranslate">maxLines = null</code> and <code class="notranslate">InputDecoration.collapsed</code>, The issue that I have (might be related to the scafold flag) is that when the keyboard pops-up, the textview does not resize, so the keyboard appears over what you're writing.<br>
I tried Enveloping the Textfield in a container with a <code class="notranslate">BoxConstraints.loose</code> and that allows me to limit it's height, but then it never spans the rest of the pageview.</p>
<p dir="auto">What's the correct way to have the TextField occupy the whole pageView and have it resize when the keyboard pops-up? is the container approach the appropriate one? Maybe there's a way to change the boxContraints when the keyboard pops-up, although that seems a lot of work.</p> | <p dir="auto">I use flutter framework with following revisions:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Flutter 0.4.4 • channel beta • https://github.com/flutter/flutter.git
Framework • revision f9bb4289e9 (4 weeks ago) • 2018-05-11 21:44:54 -0700
Engine • revision 06afdfe54e
Tools • Dart 2.0.0-dev.54.0.flutter-46ab040e58"><pre class="notranslate"><code class="notranslate">Flutter 0.4.4 • channel beta • https://github.com/flutter/flutter.git
Framework • revision f9bb4289e9 (4 weeks ago) • 2018-05-11 21:44:54 -0700
Engine • revision 06afdfe54e
Tools • Dart 2.0.0-dev.54.0.flutter-46ab040e58
</code></pre></div>
<p dir="auto">I cannot use ListView or ListViewBuilder inside Column widget. No list item is shown until I remove Column wrapper. Is it supposed not to work in that way, or is it a bug?</p>
<p dir="auto">Here it is my test widget.</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new Container(
child: new Column(
children: <Widget>[
new ListView.builder(
itemCount: 3,
padding: const EdgeInsets.only(top: 10.0),
itemBuilder: (context, index) {
return new Text(" asdasd");
})
],
))"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-c1">Container</span>(
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Column</span>(
children<span class="pl-k">:</span> <span class="pl-k"><</span><span class="pl-c1">Widget</span><span class="pl-k">></span>[
<span class="pl-k">new</span> <span class="pl-c1">ListView</span>.<span class="pl-en">builder</span>(
itemCount<span class="pl-k">:</span> <span class="pl-c1">3</span>,
padding<span class="pl-k">:</span> <span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">only</span>(top<span class="pl-k">:</span> <span class="pl-c1">10.0</span>),
itemBuilder<span class="pl-k">:</span> (context, index) {
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">" asdasd"</span>);
})
],
))</pre></div> | 1 |
<h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">Sorry, the following content is not translated accurately, so use Chinese.</p>
<p dir="auto"><a href="https://jsfiddle.net/_MT_/6zscxLpj/7/" rel="nofollow">Example</a></p>
<p dir="auto">当程序中出现链式计算属性依赖时,我们可能希望的是仅当被依赖的计算属性变更时,它所依赖的计算属性才会重新去计算。而不是因为被依赖的计算属性重新计算链了,所以所有依赖它的计算属性都要重新计算。这样在链式的依赖的计算属性中,可以节省很多计算工作。</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto">仅当被依赖的计算属性变更时,它所依赖的计算属性才会重新去计算。</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.5.13</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/72gzmayL/" rel="nofollow">https://jsfiddle.net/72gzmayL/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Open the jsfiddle link, see console output.</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">Render function isn't called.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Render function is called even when nothing is changed.</p>
<hr>
<p dir="auto">This creates unnecessary render function calls, which leads to performance issues when the component is complex and render function calls aren't cheap.</p> | 1 |
<p dir="auto">Uncaught Exception:<br>
Error: EPERM, operation not permitted '/tmp/atom.sock'<br>
at Error (native)<br>
at Object.fs.unlinkSync (fs.js:807:18)<br>
at AtomApplication.module.exports.AtomApplication.deleteSocketFile (/usr/share/atom/resources/app/src/browser/atom-application.js:193:21)<br>
at AtomApplication.module.exports.AtomApplication.listenForArgumentsFromNewProcess (/usr/share/atom/resources/app/src/browser/atom-application.js:172:12)<br>
at new AtomApplication (/usr/share/atom/resources/app/src/browser/atom-application.js:88:12)<br>
at Socket.createAtomApplication (/usr/share/atom/resources/app/src/browser/atom-application.js:43:16)<br>
at Socket.emit (events.js:107:17)<br>
at net.js:436:14<br>
at process._tickCallback (node.js:378:11)</p>
<p dir="auto">Whenever I try to start atom, I get this error.</p>
<p dir="auto">Running on: Archlinux 64 bit.<br>
Atom version is 0.165.0-1</p> | <p dir="auto">When I start it from my user, it gives me this error:</p>
<p dir="auto"><strong>A JavaScript error occured in the browser process</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught Exception:
Error: EPERM, operation not permitted '/tmp/atom.sock'
at Error (native)
at Object.fs.unlinkSync (fs.js:807:18)
at AtomApplication.module.exports.AtomApplication.deleteSocketFile (/usr/share/atom/resources/app/src/browser/atom-application.js:193:21)
at AtomApplication.module.exports.AtomApplication.listenForArgumentsFromNewProcess (/usr/share/atom/resources/app/src/browser/atom-application.js:172:12)
at new AtomApplication (/usr/share/atom/resources/app/src/browser/atom-application.js:88:12)
at Socket.createAtomApplication (/usr/share/atom/resources/app/src/browser/atom-application.js:43:16)
at Socket.emit (events.js:107:17)
at net.js:436:14
at process._tickCallback (node.js:378:11)"><pre class="notranslate"><code class="notranslate">Uncaught Exception:
Error: EPERM, operation not permitted '/tmp/atom.sock'
at Error (native)
at Object.fs.unlinkSync (fs.js:807:18)
at AtomApplication.module.exports.AtomApplication.deleteSocketFile (/usr/share/atom/resources/app/src/browser/atom-application.js:193:21)
at AtomApplication.module.exports.AtomApplication.listenForArgumentsFromNewProcess (/usr/share/atom/resources/app/src/browser/atom-application.js:172:12)
at new AtomApplication (/usr/share/atom/resources/app/src/browser/atom-application.js:88:12)
at Socket.createAtomApplication (/usr/share/atom/resources/app/src/browser/atom-application.js:43:16)
at Socket.emit (events.js:107:17)
at net.js:436:14
at process._tickCallback (node.js:378:11)
</code></pre></div>
<p dir="auto">Once I close this message, a debug tools window launches:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/140983/5234076/d9fed9d4-77bb-11e4-88c2-b371410254d6.png"><img src="https://cloud.githubusercontent.com/assets/140983/5234076/d9fed9d4-77bb-11e4-88c2-b371410254d6.png" alt="atom_debug_tools" style="max-width: 100%;"></a></p>
<p dir="auto">However, when I start it as root, it launches just fine. Except it is running as root, of course.</p> | 1 |
<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.3</li>
<li>Operating System version: win10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>dubbo client is web project deployed in tomcat,and start up successfull。</li>
<li>when i call _ roleInterface.getRole(new RoleDTO());_</li>
<li>an exception raised ,here my code and stack trace followed,</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>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public interface RoleInterface {
public RoleDTO getRole(long id);
public RoleDTO getRole(RoleDTO dto);
}
public class RoleDTO implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private long id;
private String code;
private String name;
private long parentId;
private long orgId;
private int type;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public long getParentId() {
return parentId;
}
public void setParentId(long parentId) {
this.parentId = parentId;
}
public long getOrgId() {
return orgId;
}
public void setOrgId(long orgId) {
this.orgId = orgId;
}
}
@Service
public class RoleServiceImpl implements RoleInterface {
@Override
public RoleDTO getRole(long id) {
String token = RpcContext.getContext().getAttachment("token");
RoleDTO dto = new RoleDTO();
dto.setId(id);
dto.setName("test");
return dto;
}
@Override
public RoleDTO getRole(RoleDTO dto) {
// TODO Auto-generated method stub
return null;
}
}
@Reference(url="dubbo://192.168.12.129:20812",check=false)
public RoleInterface roleInterface;
public Object getRole(long id) {
return roleInterface.getRole(new RoleDTO());
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">interface</span> <span class="pl-smi">RoleInterface</span> {
<span class="pl-k">public</span> <span class="pl-smi">RoleDTO</span> <span class="pl-en">getRole</span>(<span class="pl-smi">long</span> <span class="pl-s1">id</span>);
<span class="pl-k">public</span> <span class="pl-smi">RoleDTO</span> <span class="pl-en">getRole</span>(<span class="pl-smi">RoleDTO</span> <span class="pl-s1">dto</span>);
}
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">RoleDTO</span> <span class="pl-k">implements</span> <span class="pl-smi">Serializable</span> {
<span class="pl-c">/**</span>
<span class="pl-c"> * </span>
<span class="pl-c"> */</span>
<span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-k">final</span> <span class="pl-smi">long</span> <span class="pl-s1">serialVersionUID</span> = <span class="pl-c1">1L</span>;
<span class="pl-k">private</span> <span class="pl-smi">long</span> <span class="pl-s1">id</span>;
<span class="pl-k">private</span> <span class="pl-smi">String</span> <span class="pl-s1">code</span>;
<span class="pl-k">private</span> <span class="pl-smi">String</span> <span class="pl-s1">name</span>;
<span class="pl-k">private</span> <span class="pl-smi">long</span> <span class="pl-s1">parentId</span>;
<span class="pl-k">private</span> <span class="pl-smi">long</span> <span class="pl-s1">orgId</span>;
<span class="pl-k">private</span> <span class="pl-smi">int</span> <span class="pl-s1">type</span>;
<span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-en">getCode</span>() {
<span class="pl-k">return</span> <span class="pl-s1">code</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">setCode</span>(<span class="pl-smi">String</span> <span class="pl-s1">code</span>) {
<span class="pl-smi">this</span>.<span class="pl-s1">code</span> = <span class="pl-s1">code</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">int</span> <span class="pl-en">getType</span>() {
<span class="pl-k">return</span> <span class="pl-s1">type</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">setType</span>(<span class="pl-smi">int</span> <span class="pl-s1">type</span>) {
<span class="pl-smi">this</span>.<span class="pl-s1">type</span> = <span class="pl-s1">type</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">long</span> <span class="pl-en">getId</span>() {
<span class="pl-k">return</span> <span class="pl-s1">id</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">setId</span>(<span class="pl-smi">long</span> <span class="pl-s1">id</span>) {
<span class="pl-smi">this</span>.<span class="pl-s1">id</span> = <span class="pl-s1">id</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-en">getName</span>() {
<span class="pl-k">return</span> <span class="pl-s1">name</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">setName</span>(<span class="pl-smi">String</span> <span class="pl-s1">name</span>) {
<span class="pl-smi">this</span>.<span class="pl-s1">name</span> = <span class="pl-s1">name</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">long</span> <span class="pl-en">getParentId</span>() {
<span class="pl-k">return</span> <span class="pl-s1">parentId</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">setParentId</span>(<span class="pl-smi">long</span> <span class="pl-s1">parentId</span>) {
<span class="pl-smi">this</span>.<span class="pl-s1">parentId</span> = <span class="pl-s1">parentId</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">long</span> <span class="pl-en">getOrgId</span>() {
<span class="pl-k">return</span> <span class="pl-s1">orgId</span>;
}
<span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">setOrgId</span>(<span class="pl-smi">long</span> <span class="pl-s1">orgId</span>) {
<span class="pl-smi">this</span>.<span class="pl-s1">orgId</span> = <span class="pl-s1">orgId</span>;
}
}
<span class="pl-c1">@</span><span class="pl-c1">Service</span>
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">RoleServiceImpl</span> <span class="pl-k">implements</span> <span class="pl-smi">RoleInterface</span> {
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">RoleDTO</span> <span class="pl-en">getRole</span>(<span class="pl-smi">long</span> <span class="pl-s1">id</span>) {
<span class="pl-smi">String</span> <span class="pl-s1">token</span> = <span class="pl-smi">RpcContext</span>.<span class="pl-en">getContext</span>().<span class="pl-en">getAttachment</span>(<span class="pl-s">"token"</span>);
<span class="pl-smi">RoleDTO</span> <span class="pl-s1">dto</span> = <span class="pl-k">new</span> <span class="pl-smi">RoleDTO</span>();
<span class="pl-s1">dto</span>.<span class="pl-en">setId</span>(<span class="pl-s1">id</span>);
<span class="pl-s1">dto</span>.<span class="pl-en">setName</span>(<span class="pl-s">"test"</span>);
<span class="pl-k">return</span> <span class="pl-s1">dto</span>;
}
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">RoleDTO</span> <span class="pl-en">getRole</span>(<span class="pl-smi">RoleDTO</span> <span class="pl-s1">dto</span>) {
<span class="pl-c">// TODO Auto-generated method stub</span>
<span class="pl-k">return</span> <span class="pl-c1">null</span>;
}
}
<span class="pl-c1">@</span><span class="pl-c1">Reference</span>(<span class="pl-s1">url</span>=<span class="pl-s">"dubbo://192.168.12.129:20812"</span>,<span class="pl-s1">check</span>=<span class="pl-c1">false</span>)
<span class="pl-k">public</span> <span class="pl-smi">RoleInterface</span> <span class="pl-s1">roleInterface</span>;
<span class="pl-k">public</span> <span class="pl-smi">Object</span> <span class="pl-s1">getRole</span>(<span class="pl-smi">long</span> <span class="pl-s1">id</span>) {
<span class="pl-k">return</span> <span class="pl-s1">roleInterface</span>.<span class="pl-en">getRole</span>(<span class="pl-k">new</span> <span class="pl-smi">RoleDTO</span>());
}</pre></div>
<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!
org.apache.dubbo.rpc.RpcException: Failed to invoke remote method: getRole, provider: dubbo://192.168.12.129:20812/com.hrpackage.hrssc.security.interfaces.RoleInterface?application=hrssc-web-portal&check=false&dubbo=2.0.2&interface=com.hrpackage.hrssc.security.interfaces.RoleInterface&lazy=false&methods=getRole&pid=8856&register.ip=192.168.12.129&revision=1.0.0-SNAPSHOT&side=consumer&sticky=false&timeout=100000000&timestamp=1564397818303, cause: org.apache.dubbo.remoting.RemotingException: io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:129)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.handler.timeout.IdleStateHandler.write(IdleStateHandler.java:265)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:106)
at org.apache.dubbo.remoting.transport.netty4.NettyClientHandler.write(NettyClientHandler.java:87)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.access$2000(DefaultChannelHandlerContext.java:28)
at io.netty.channel.DefaultChannelHandlerContext$WriteTask.run(DefaultChannelHandlerContext.java:891)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.buffer.AbstractByteBuf.writerIndex(AbstractByteBuf.java:87)
at org.apache.dubbo.remoting.transport.netty4.NettyBackedChannelBuffer.writerIndex(NettyBackedChannelBuffer.java:440)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeRequest(ExchangeCodec.java:232)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:69)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:40)
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:70)
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:111)
... 16 more
at org.apache.dubbo.rpc.protocol.AsyncToSyncInvoker.invoke(AsyncToSyncInvoker.java:63)
at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:92)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:82)
at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:82)
at org.apache.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:58)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:82)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$CallbackRegistrationInvoker.invoke(ProtocolFilterWrapper.java:150)
at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:78)
at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:55)
at org.apache.dubbo.common.bytecode.proxy0.getRole(proxy0.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.invoke(ReferenceAnnotationBeanPostProcessor.java:164)
at com.sun.proxy.$Proxy29.getRole(Unknown Source)
at com.hrpackage.hrssc.web.filter.Config.getRole(Config.java:25)
at com.hrpackage.hrssc.web.filter.TokenFilter.doFilter(TokenFilter.java:35)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.ExecutionException: org.apache.dubbo.remoting.RemotingException: io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:129)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.handler.timeout.IdleStateHandler.write(IdleStateHandler.java:265)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:106)
at org.apache.dubbo.remoting.transport.netty4.NettyClientHandler.write(NettyClientHandler.java:87)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.access$2000(DefaultChannelHandlerContext.java:28)
at io.netty.channel.DefaultChannelHandlerContext$WriteTask.run(DefaultChannelHandlerContext.java:891)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.buffer.AbstractByteBuf.writerIndex(AbstractByteBuf.java:87)
at org.apache.dubbo.remoting.transport.netty4.NettyBackedChannelBuffer.writerIndex(NettyBackedChannelBuffer.java:440)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeRequest(ExchangeCodec.java:232)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:69)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:40)
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:70)
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:111)
... 16 more
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
at org.apache.dubbo.rpc.protocol.AsyncToSyncInvoker.invoke(AsyncToSyncInvoker.java:54)
... 37 more
Caused by: org.apache.dubbo.remoting.RemotingException: io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:129)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.handler.timeout.IdleStateHandler.write(IdleStateHandler.java:265)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:106)
at org.apache.dubbo.remoting.transport.netty4.NettyClientHandler.write(NettyClientHandler.java:87)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.access$2000(DefaultChannelHandlerContext.java:28)
at io.netty.channel.DefaultChannelHandlerContext$WriteTask.run(DefaultChannelHandlerContext.java:891)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.buffer.AbstractByteBuf.writerIndex(AbstractByteBuf.java:87)
at org.apache.dubbo.remoting.transport.netty4.NettyBackedChannelBuffer.writerIndex(NettyBackedChannelBuffer.java:440)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeRequest(ExchangeCodec.java:232)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:69)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:40)
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:70)
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:111)
... 16 more
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.doReceived(DefaultFuture.java:191)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:153)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:141)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleResponse(HeaderExchangeHandler.java:62)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:199)
at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
... 1 more"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
org.apache.dubbo.rpc.RpcException: Failed to invoke remote method: getRole, provider: dubbo://192.168.12.129:20812/com.hrpackage.hrssc.security.interfaces.RoleInterface?application=hrssc-web-portal&check=false&dubbo=2.0.2&interface=com.hrpackage.hrssc.security.interfaces.RoleInterface&lazy=false&methods=getRole&pid=8856&register.ip=192.168.12.129&revision=1.0.0-SNAPSHOT&side=consumer&sticky=false&timeout=100000000&timestamp=1564397818303, cause: org.apache.dubbo.remoting.RemotingException: io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:129)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.handler.timeout.IdleStateHandler.write(IdleStateHandler.java:265)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:106)
at org.apache.dubbo.remoting.transport.netty4.NettyClientHandler.write(NettyClientHandler.java:87)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.access$2000(DefaultChannelHandlerContext.java:28)
at io.netty.channel.DefaultChannelHandlerContext$WriteTask.run(DefaultChannelHandlerContext.java:891)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.buffer.AbstractByteBuf.writerIndex(AbstractByteBuf.java:87)
at org.apache.dubbo.remoting.transport.netty4.NettyBackedChannelBuffer.writerIndex(NettyBackedChannelBuffer.java:440)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeRequest(ExchangeCodec.java:232)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:69)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:40)
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:70)
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:111)
... 16 more
at org.apache.dubbo.rpc.protocol.AsyncToSyncInvoker.invoke(AsyncToSyncInvoker.java:63)
at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:92)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:82)
at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:82)
at org.apache.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:58)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:82)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$CallbackRegistrationInvoker.invoke(ProtocolFilterWrapper.java:150)
at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:78)
at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:55)
at org.apache.dubbo.common.bytecode.proxy0.getRole(proxy0.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.invoke(ReferenceAnnotationBeanPostProcessor.java:164)
at com.sun.proxy.$Proxy29.getRole(Unknown Source)
at com.hrpackage.hrssc.web.filter.Config.getRole(Config.java:25)
at com.hrpackage.hrssc.web.filter.TokenFilter.doFilter(TokenFilter.java:35)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.ExecutionException: org.apache.dubbo.remoting.RemotingException: io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:129)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.handler.timeout.IdleStateHandler.write(IdleStateHandler.java:265)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:106)
at org.apache.dubbo.remoting.transport.netty4.NettyClientHandler.write(NettyClientHandler.java:87)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.access$2000(DefaultChannelHandlerContext.java:28)
at io.netty.channel.DefaultChannelHandlerContext$WriteTask.run(DefaultChannelHandlerContext.java:891)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.buffer.AbstractByteBuf.writerIndex(AbstractByteBuf.java:87)
at org.apache.dubbo.remoting.transport.netty4.NettyBackedChannelBuffer.writerIndex(NettyBackedChannelBuffer.java:440)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeRequest(ExchangeCodec.java:232)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:69)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:40)
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:70)
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:111)
... 16 more
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
at org.apache.dubbo.rpc.protocol.AsyncToSyncInvoker.invoke(AsyncToSyncInvoker.java:54)
... 37 more
Caused by: org.apache.dubbo.remoting.RemotingException: io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
io.netty.handler.codec.EncoderException: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:129)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.handler.timeout.IdleStateHandler.write(IdleStateHandler.java:265)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:698)
at io.netty.channel.DefaultChannelHandlerContext.write(DefaultChannelHandlerContext.java:637)
at io.netty.channel.ChannelDuplexHandler.write(ChannelDuplexHandler.java:106)
at org.apache.dubbo.remoting.transport.netty4.NettyClientHandler.write(NettyClientHandler.java:87)
at io.netty.channel.DefaultChannelHandlerContext.invokeWrite(DefaultChannelHandlerContext.java:644)
at io.netty.channel.DefaultChannelHandlerContext.access$2000(DefaultChannelHandlerContext.java:28)
at io.netty.channel.DefaultChannelHandlerContext$WriteTask.run(DefaultChannelHandlerContext.java:891)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:348)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IndexOutOfBoundsException: writerIndex: 16 (expected: readerIndex(0) <= writerIndex <= capacity(0))
at io.netty.buffer.AbstractByteBuf.writerIndex(AbstractByteBuf.java:87)
at org.apache.dubbo.remoting.transport.netty4.NettyBackedChannelBuffer.writerIndex(NettyBackedChannelBuffer.java:440)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeRequest(ExchangeCodec.java:232)
at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:69)
at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:40)
at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:70)
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:111)
... 16 more
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.doReceived(DefaultFuture.java:191)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:153)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.received(DefaultFuture.java:141)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleResponse(HeaderExchangeHandler.java:62)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:199)
at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
... 1 more
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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: master</li>
<li>Operating System version: any</li>
<li>Java version: any</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>no step</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package org.apache.dubbo.config;
public class RegistryConfig extends AbstractConfig {
......
public void setUsername(String username) {
checkName("username", username);
this.username = username;
}
......
public void setPassword(String password) {
checkLength("password", password);
this.password = password;
}
......
}"><pre class="notranslate"><code class="notranslate">package org.apache.dubbo.config;
public class RegistryConfig extends AbstractConfig {
......
public void setUsername(String username) {
checkName("username", username);
this.username = username;
}
......
public void setPassword(String password) {
checkLength("password", password);
this.password = password;
}
......
}
</code></pre></div>
<p dir="auto">some property name use hard code String. actually they was defined in org.apache.dubbo.common.Constants.</p>
<p dir="auto">the following is a list of hard code Strings in RegistryConfig and the correct Constrants.<br>
"username" - >Constants.USERNAME_KEY<br>
"password" - >Constants.PASSWORD_KEY<br>
"file" - > Constants.FILE_KEY<br>
"client" - > Constants.CLIENT_KEY</p>
<p dir="auto">What do you expected from the above steps?</p>
<p dir="auto">the hard code String should be replace by constants</p>
<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=""><pre class="notranslate"><code class="notranslate">
</code></pre></div> | 0 |
<p dir="auto">The current implementation is frankly embarrassing.</p> | <p dir="auto">The libuv build seems to work fine, with no errors or warnings, but when the build gets to compiling Julia, I'm getting some uv issues. It's saying <code class="notranslate">/usr/local/include/uv.h</code> though, so maybe it's not using the downloaded libuv?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" CC src/init.o
In file included from /usr/home/alex/repos/julia/src/init.c:22:
In file included from ./julia_internal.h:520:
In file included from /usr/local/include/libunwind.h:23:
/usr/local/include/libunwind-x86_64.h:111:9: warning: empty struct has size 0 in C, size 1 in C++ [-Wc++-compat]
typedef struct unw_tdep_save_loc
^
/usr/local/include/libunwind-x86_64.h:120:9: warning: empty struct has size 0 in C, size 1 in C++ [-Wc++-compat]
typedef struct
^
/usr/home/alex/repos/julia/src/init.c:111:9: warning: implicit declaration of function 'pthread_attr_get_np' is
invalid in C99 [-Wimplicit-function-declaration]
pthread_attr_get_np(pthread_self(), &attr);
^
/usr/home/alex/repos/julia/src/init.c:268:22: error: use of undeclared identifier 'UV_RAW_FD'
case UV_RAW_FD:
^
/usr/home/alex/repos/julia/src/init.c:269:22: error: use of undeclared identifier 'UV_RAW_HANDLE'; did you mean
'UV_HANDLE'?
case UV_RAW_HANDLE:
^~~~~~~~~~~~~
UV_HANDLE
/usr/local/include/uv.h:183:22: note: 'UV_HANDLE' declared here
UV_HANDLE_TYPE_MAP(XX)
^
/usr/home/alex/repos/julia/src/init.c:269:22: error: duplicate case value 'UV_HANDLE'
case UV_RAW_HANDLE:
^
/usr/home/alex/repos/julia/src/init.c:264:22: note: previous case defined here
case UV_HANDLE:
^
/usr/home/alex/repos/julia/src/init.c:349:72: error: use of undeclared identifier 'UV_PIPE_READABLE'; did you mean
'UV_READABLE'?
if (uv_pipe_init(jl_io_loop, (uv_pipe_t*)handle, (readable?UV_PIPE_READABLE:UV_PIPE_WRITABLE))) {
^~~~~~~~~~~~~~~~
UV_READABLE
/usr/local/include/uv.h:717:3: note: 'UV_READABLE' declared here
UV_READABLE = 1,
^
/usr/home/alex/repos/julia/src/init.c:349:89: error: use of undeclared identifier 'UV_PIPE_WRITABLE'; did you mean
'UV_WRITABLE'?
if (uv_pipe_init(jl_io_loop, (uv_pipe_t*)handle, (readable?UV_PIPE_READABLE:UV_PIPE_WRITABLE))) {
^~~~~~~~~~~~~~~~
UV_WRITABLE
/usr/local/include/uv.h:718:3: note: 'UV_WRITABLE' declared here
UV_WRITABLE = 2,
^
3 warnings and 5 errors generated.
gmake[1]: *** [Makefile:129: init.o] Error 1
gmake: *** [Makefile:90: julia-src-release] Error 2"><pre class="notranslate"><code class="notranslate"> CC src/init.o
In file included from /usr/home/alex/repos/julia/src/init.c:22:
In file included from ./julia_internal.h:520:
In file included from /usr/local/include/libunwind.h:23:
/usr/local/include/libunwind-x86_64.h:111:9: warning: empty struct has size 0 in C, size 1 in C++ [-Wc++-compat]
typedef struct unw_tdep_save_loc
^
/usr/local/include/libunwind-x86_64.h:120:9: warning: empty struct has size 0 in C, size 1 in C++ [-Wc++-compat]
typedef struct
^
/usr/home/alex/repos/julia/src/init.c:111:9: warning: implicit declaration of function 'pthread_attr_get_np' is
invalid in C99 [-Wimplicit-function-declaration]
pthread_attr_get_np(pthread_self(), &attr);
^
/usr/home/alex/repos/julia/src/init.c:268:22: error: use of undeclared identifier 'UV_RAW_FD'
case UV_RAW_FD:
^
/usr/home/alex/repos/julia/src/init.c:269:22: error: use of undeclared identifier 'UV_RAW_HANDLE'; did you mean
'UV_HANDLE'?
case UV_RAW_HANDLE:
^~~~~~~~~~~~~
UV_HANDLE
/usr/local/include/uv.h:183:22: note: 'UV_HANDLE' declared here
UV_HANDLE_TYPE_MAP(XX)
^
/usr/home/alex/repos/julia/src/init.c:269:22: error: duplicate case value 'UV_HANDLE'
case UV_RAW_HANDLE:
^
/usr/home/alex/repos/julia/src/init.c:264:22: note: previous case defined here
case UV_HANDLE:
^
/usr/home/alex/repos/julia/src/init.c:349:72: error: use of undeclared identifier 'UV_PIPE_READABLE'; did you mean
'UV_READABLE'?
if (uv_pipe_init(jl_io_loop, (uv_pipe_t*)handle, (readable?UV_PIPE_READABLE:UV_PIPE_WRITABLE))) {
^~~~~~~~~~~~~~~~
UV_READABLE
/usr/local/include/uv.h:717:3: note: 'UV_READABLE' declared here
UV_READABLE = 1,
^
/usr/home/alex/repos/julia/src/init.c:349:89: error: use of undeclared identifier 'UV_PIPE_WRITABLE'; did you mean
'UV_WRITABLE'?
if (uv_pipe_init(jl_io_loop, (uv_pipe_t*)handle, (readable?UV_PIPE_READABLE:UV_PIPE_WRITABLE))) {
^~~~~~~~~~~~~~~~
UV_WRITABLE
/usr/local/include/uv.h:718:3: note: 'UV_WRITABLE' declared here
UV_WRITABLE = 2,
^
3 warnings and 5 errors generated.
gmake[1]: *** [Makefile:129: init.o] Error 1
gmake: *** [Makefile:90: julia-src-release] Error 2
</code></pre></div>
<p dir="auto">The system is FreeBSD 11.0-release-p1 amd64. Let me know what other information is needed.</p> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.0</p>
<p dir="auto"><strong>Code</strong></p>
<p dir="auto">I'm porting my ASP.NET MVC app platform (Serenity) which were using Saltaralle C# -> JS transpiler to TypeScript. Currently TS is an alternate option but hoping to make it primary soon, after resolving some issues.</p>
<p dir="auto">Saltaralle and its predecessor Script# uses some code similar to TypeScript internal modules or namespaces. So it was natural for me to choose this model over more complicated AMD/CommonJS etc. modules, which is a bit overkill for web apps in my humble opinion. Also it is much easier to explain to novice users.</p>
<p dir="auto">I'm using tsconfig.json with outFile option, and no "files" list, so all .ts files in all subfolders are included by default.</p>
<p dir="auto">If you have <em>A.ts</em>:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace Some {
export class A {
}
}"><pre class="notranslate"><span class="pl-k">namespace</span> <span class="pl-smi">Some</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">and <strong>B.ts</strong>:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace Some {
export class B extends A {
}
}"><pre class="notranslate"><span class="pl-k">namespace</span> <span class="pl-smi">Some</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">I'd expect combined output.js file to have A defined before B, otherwise it would cause a javascript error.</p>
<p dir="auto">But, sometimes this is true, sometimes opposite. I know that you'd suggest me to put /// references or put files in correct order in tsconfig.json files property, or use external modules, but this exactly what i'm trying to avoid. I've read among several issues reported here, and workarounds offered like these, but dependency order resolving shouldn't be the job of developer, compilers are specially made for this.</p>
<p dir="auto">I'd handle these workarounds myself, for my own projects, but my targeted users (devs) usually don't have the skills to understand what this ordering is all about. They'll simply report a bug with details: "not working", and without looking at their output file, i can't even guess what it is really about.</p>
<p dir="auto">I understand that in some edge cases this might be difficult, but please offer an option to perform topological sort on input files for basic cases like this, e.g. a class extends another, references it in a decorator argument etc.</p>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">I'd expect internal modules to be topologically sorted based on dependencies.</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">Sometimes it is not. Derived class outputted before base class.</p> | <p dir="auto">There are cases, where a property can not just be any string (or a set of strings), but needs to match a pattern.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let fontStyle: 'normal' | 'italic' = 'normal'; // already available in master
let fontColor: /^#([0-9a-f]{3}|[0-9a-f]{6})$/i = '#000'; // my suggestion"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">fontStyle</span>: <span class="pl-s">'normal'</span> <span class="pl-c1">|</span> <span class="pl-s">'italic'</span> <span class="pl-c1">=</span> <span class="pl-s">'normal'</span><span class="pl-kos">;</span> <span class="pl-c">// already available in master</span>
<span class="pl-k">let</span> <span class="pl-s1">fontColor</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">^</span>#<span class="pl-kos">(</span><span class="pl-kos">[</span>0-9a-f<span class="pl-kos">]</span><span class="pl-kos">{</span>3<span class="pl-kos">}</span><span class="pl-c1">|</span><span class="pl-kos">[</span>0-9a-f<span class="pl-kos">]</span><span class="pl-kos">{</span>6<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span>i</span> <span class="pl-c1">=</span> <span class="pl-s">'#000'</span><span class="pl-kos">;</span> <span class="pl-c">// my suggestion</span></pre></div>
<p dir="auto">It's common practice in JavaScript to store color values in css notation, such as in the css style reflection of DOM nodes or various 3rd party libraries.</p>
<p dir="auto">What do you think?</p> | 0 |
<p dir="auto">The contrast ratio of Bootstrap's default alert boxes do not conform to WCAG 2.0 standards.</p>
<p dir="auto">By using this tool: <a href="http://webaim.org/resources/contrastchecker/" rel="nofollow">http://webaim.org/resources/contrastchecker/</a> it can be shown that both AAA and AA levels aren't met for all alert boxes (.alert, .alert-danger, .alert-error, .alert-info, .alert-success).</p>
<p dir="auto">I have customised the alert boxes to suit my needs, however I felt I should mention my findings for your consideration.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/8af9bfaabba1e9f95a3c63c4a2bba8eba9a53cd6dcf576e630447acf2e571ce2/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323033393333372f313034303134362f34393930386633362d306661642d313165332d386637662d3664366130313231333533622e504e47"><img src="https://camo.githubusercontent.com/8af9bfaabba1e9f95a3c63c4a2bba8eba9a53cd6dcf576e630447acf2e571ce2/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f323033393333372f313034303134362f34393930386633362d306661642d313165332d386637662d3664366130313231333533622e504e47" alt="alert-info" data-canonical-src="https://f.cloud.github.com/assets/2039337/1040146/49908f36-0fad-11e3-8f7f-6d6a0121353b.PNG" style="max-width: 100%;"></a></p> | <p dir="auto">Hello,</p>
<p dir="auto">For the AA level in WCAG2 : Using a contrast ratio of 3:1 for large text and 4,5:1 for small text and providing additional visual cues on focus for links or controls where color alone is used to identify them - <a href="http://www.w3.org/TR/2012/NOTE-WCAG20-TECHS-20120103/G183" rel="nofollow">http://www.w3.org/TR/2012/NOTE-WCAG20-TECHS-20120103/G183</a>. <a href="http://www.paciellogroup.com/blog/2012/05/whats-large-text-in-wcag-2-0-parlance/" rel="nofollow">http://www.paciellogroup.com/blog/2012/05/whats-large-text-in-wcag-2-0-parlance/</a></p>
<p dir="auto">For exemple, the warning alert box have a contrast of 2,5 (background-color: #FCF8E3; color: #C09853;).<br>
We should have at least (background-color: #FCF8E3; color: #A16B0F;).</p>
<p dir="auto">you can use contrast-a <a href="http://www.dasplankton.de/ContrastA/" rel="nofollow">http://www.dasplankton.de/ContrastA/</a> or the Juicy Studio: Colour Contrast Analyser <a href="https://addons.mozilla.org/en-US/firefox/addon/juicy-studio-accessibility-too/" rel="nofollow">https://addons.mozilla.org/en-US/firefox/addon/juicy-studio-accessibility-too/</a></p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">I cannot find a way to define multiple tasks which executes different commands in the <code class="notranslate">.vscode/tasks.json</code> file of my project directory.</p>
<p dir="auto">From what I understood, I can only declare a single TaskConfiguration within this file. Am I wrong?</p>
<p dir="auto">To make my problem more understandable, let's say I would like to define 3 tasks with their own set of arguments:</p>
<ul dir="auto">
<li>foo: <code class="notranslate">foo --arg</code></li>
<li>bar1: <code class="notranslate">bar --arg 1</code></li>
<li>bar2: <code class="notranslate">bar --arg 2</code></li>
</ul>
<p dir="auto">How can I make <code class="notranslate">tasks.json</code> reflect this need?</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var express = require('express');
var app = express();
var port = process.env.PORT || 3000;
app.listen(port);"><pre class="notranslate"><code class="notranslate">var express = require('express');
var app = express();
var port = process.env.PORT || 3000;
app.listen(port);
</code></pre></div>
<p dir="auto">In the following code I required express but when I enter app and press crtl + space it shows no suggestions.</p>
<p dir="auto">It would be nice to have code assist for installed packages because nodejs developers always play with packages.</p> | 0 |
<h2 dir="auto">Bug Report</h2>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">master <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/shardingsphere/commit/6cf1f1e8352d7be5c501a5626ef44e708a5b0d2b/hovercard" href="https://github.com/apache/shardingsphere/commit/6cf1f1e8352d7be5c501a5626ef44e708a5b0d2b"><tt>6cf1f1e</tt></a></p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-Proxy</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto"><code class="notranslate">CREATE READWRITE_SPLITTING RULE</code> failed.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Got an exception but <code class="notranslate">CREATE READWRITE_SPLITTING RULE</code> success.</p>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<ol dir="auto">
<li>Create <code class="notranslate">ms_group_0</code>, use <code class="notranslate">resource_0</code></li>
</ol>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CREATE READWRITE_SPLITTING RULE ms_group_0 (
WRITE_RESOURCE=resource_0,
READ_RESOURCES(resource_1),TYPE(NAME=random)
);"><pre class="notranslate">CREATE READWRITE_SPLITTING RULE ms_group_0 (
WRITE_RESOURCE<span class="pl-k">=</span>resource_0,
READ_RESOURCES(resource_1),TYPE(NAME<span class="pl-k">=</span>random)
);</pre></div>
<ol start="2" dir="auto">
<li>Create <code class="notranslate">ms_group_1</code>, use <code class="notranslate">resource_0</code> too</li>
</ol>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CREATE READWRITE_SPLITTING RULE ms_group_1` (
WRITE_RESOURCE=resource_0,
READ_RESOURCES(resource_1),TYPE(NAME=random)
);"><pre class="notranslate">CREATE READWRITE_SPLITTING RULE ms_group_1<span class="pl-s"><span class="pl-pds">`</span> (</span>
<span class="pl-s">WRITE_RESOURCE=resource_0,</span>
<span class="pl-s">READ_RESOURCES(resource_1),TYPE(NAME=random)</span>
<span class="pl-s">);</span></pre></div>
<h3 dir="auto">log</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR 1999 (42000): Unknown exception: Can not config duplicate write data source `resource_0` in database `test1`."><pre class="notranslate"><code class="notranslate">ERROR 1999 (42000): Unknown exception: Can not config duplicate write data source `resource_0` in database `test1`.
</code></pre></div>
<p dir="auto">But when I execute <code class="notranslate">show readwrite_splitting rules</code>, <code class="notranslate">ms_group_1</code> exists.</p> | <p dir="auto">For English only, other languages we will close it directly.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<p dir="auto">Before submit a new issue, please check existed issue first, to make sure your issue is not a duplicated one.</p>
<h3 dir="auto">Which version of Sharding-Sphere do you using?</h3>
<p dir="auto">3.0.0.M3</p>
<h3 dir="auto">Which project do you using? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">my use orchestraion regcenter configuration sharding<br>
but thorw ShardingConfigurationException: No available data source configuration to load<br>
my debugger find this problem is YAML.load(dataSourceMapYamlString) throw exception<br>
the dataSourceMapYamlString is not null</p>
<p dir="auto">can you help my see the problem, thank you!</p>
<p dir="auto">sharding configuration:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<import resource="classpath:/applicationContext-sharding-reg-center.xml"/>
<orchestraion:sharding-data-source id="shardingDatabasesTablesDataSource" registry-center-ref="regCenter" />"><pre class="notranslate"><<span class="pl-ent">import</span> <span class="pl-e">resource</span>=<span class="pl-s"><span class="pl-pds">"</span>classpath:/applicationContext-sharding-reg-center.xml<span class="pl-pds">"</span></span>/>
<<span class="pl-ent">orchestraion</span><span class="pl-ent">:</span><span class="pl-ent">sharding-data-source</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>shardingDatabasesTablesDataSource<span class="pl-pds">"</span></span> <span class="pl-e">registry-center-ref</span>=<span class="pl-s"><span class="pl-pds">"</span>regCenter<span class="pl-pds">"</span></span> /></pre></div>
<p dir="auto">applicationContext-sharding-reg-center.xml:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<orchestration:zookeeper id="regCenter" server-lists="172.28.1.60:2181" namespace="rdb-orche" base-sleep-time-milliseconds="1000" max-sleep-time-milliseconds="3000" max-retries="3" />"><pre class="notranslate"><<span class="pl-ent">orchestration</span><span class="pl-ent">:</span><span class="pl-ent">zookeeper</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>regCenter<span class="pl-pds">"</span></span> <span class="pl-e">server-lists</span>=<span class="pl-s"><span class="pl-pds">"</span>172.28.1.60:2181<span class="pl-pds">"</span></span> <span class="pl-e">namespace</span>=<span class="pl-s"><span class="pl-pds">"</span>rdb-orche<span class="pl-pds">"</span></span> <span class="pl-e">base-sleep-time-milliseconds</span>=<span class="pl-s"><span class="pl-pds">"</span>1000<span class="pl-pds">"</span></span> <span class="pl-e">max-sleep-time-milliseconds</span>=<span class="pl-s"><span class="pl-pds">"</span>3000<span class="pl-pds">"</span></span> <span class="pl-e">max-retries</span>=<span class="pl-s"><span class="pl-pds">"</span>3<span class="pl-pds">"</span></span> /></pre></div>
<p dir="auto">see my zookeeper datasource string is:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dataSource: !!com.jolbox.bonecp.BoneCPDataSource
acquireIncrement: 5
acquireRetryAttempts: 5
acquireRetryDelayInMs: 7000
closeConnectionWatchTimeout: 0
closeConnectionWatchTimeoutInMs: 0
configFile:
connectionHookClassName:
connectionTestStatement:
connectionTimeout: 0
connectionTimeoutInMs: 0
defaultAutoCommit: true
defaultCatalog:
defaultReadOnly: false
defaultTransactionIsolation:
driverClass: com.mysql.jdbc.Driver
idleConnectionTestPeriod: 60
idleConnectionTestPeriodInMinutes: 60
idleMaxAge: 240
idleMaxAgeInMinutes: 240
initSQL:
jdbcUrl: jdbc:mysql://localhost:3306/dayi_spot?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
maxConnectionAge: 0
maxConnectionAgeInSeconds: 0
maxConnectionsPerPartition: 10
minConnectionsPerPartition: 5
partitionCount: 3
password: '123456'
poolAvailabilityThreshold: 0
poolName:
poolStrategy: DEFAULT
preparedStatementsCacheSize: 100
queryExecuteTimeLimitInMs: 0
releaseHelperThreads: 0
serviceOrder: FIFO
statementCacheSize: 100
statementReleaseHelperThreads: 0
statementsCacheSize: 100
statementsCachedPerConnection: 0
user: root
username: root
ds-2016: !!com.jolbox.bonecp.BoneCPDataSource
acquireIncrement: 5
acquireRetryAttempts: 5
acquireRetryDelayInMs: 7000
closeConnectionWatchTimeout: 0
closeConnectionWatchTimeoutInMs: 0
configFile:
connectionHookClassName:
connectionTestStatement:
connectionTimeout: 0
connectionTimeoutInMs: 0
defaultAutoCommit: true
defaultCatalog:
defaultReadOnly: false
defaultTransactionIsolation:
driverClass: com.mysql.jdbc.Driver
idleConnectionTestPeriod: 60
idleConnectionTestPeriodInMinutes: 60
idleMaxAge: 240
idleMaxAgeInMinutes: 240
initSQL:
jdbcUrl: jdbc:mysql://localhost:3306/dayi_spot_2016?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
maxConnectionAge: 0
maxConnectionAgeInSeconds: 0
maxConnectionsPerPartition: 10
minConnectionsPerPartition: 5
partitionCount: 3
password: '123456'
poolAvailabilityThreshold: 0
poolName:
poolStrategy: DEFAULT
preparedStatementsCacheSize: 100
queryExecuteTimeLimitInMs: 0
releaseHelperThreads: 0
serviceOrder: FIFO
statementCacheSize: 100
statementReleaseHelperThreads: 0
statementsCacheSize: 100
statementsCachedPerConnection: 0
user: root
username: root
ds-2017: !!com.jolbox.bonecp.BoneCPDataSource
acquireIncrement: 5
acquireRetryAttempts: 5
acquireRetryDelayInMs: 7000
closeConnectionWatchTimeout: 0
closeConnectionWatchTimeoutInMs: 0
configFile:
connectionHookClassName:
connectionTestStatement:
connectionTimeout: 0
connectionTimeoutInMs: 0
defaultAutoCommit: true
defaultCatalog:
defaultReadOnly: false
defaultTransactionIsolation:
driverClass: com.mysql.jdbc.Driver
idleConnectionTestPeriod: 60
idleConnectionTestPeriodInMinutes: 60
idleMaxAge: 240
idleMaxAgeInMinutes: 240
initSQL:
jdbcUrl: jdbc:mysql://localhost:3306/dayi_spot_2017?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
maxConnectionAge: 0
maxConnectionAgeInSeconds: 0
maxConnectionsPerPartition: 10
minConnectionsPerPartition: 5
partitionCount: 3
password: '123456'
poolAvailabilityThreshold: 0
poolName:
poolStrategy: DEFAULT
preparedStatementsCacheSize: 100
queryExecuteTimeLimitInMs: 0
releaseHelperThreads: 0
serviceOrder: FIFO
statementCacheSize: 100
statementReleaseHelperThreads: 0
statementsCacheSize: 100
statementsCachedPerConnection: 0
user: root
username: root"><pre class="notranslate"><span class="pl-ent">dataSource</span>: <span class="pl-s">!!com.jolbox.bonecp.BoneCPDataSource</span>
<span class="pl-ent">acquireIncrement</span>: <span class="pl-c1">5</span>
<span class="pl-ent">acquireRetryAttempts</span>: <span class="pl-c1">5</span>
<span class="pl-ent">acquireRetryDelayInMs</span>: <span class="pl-c1">7000</span>
<span class="pl-ent">closeConnectionWatchTimeout</span>: <span class="pl-c1">0</span>
<span class="pl-ent">closeConnectionWatchTimeoutInMs</span>: <span class="pl-c1">0</span>
<span class="pl-ent">configFile</span>:
<span class="pl-ent">connectionHookClassName</span>:
<span class="pl-ent">connectionTestStatement</span>:
<span class="pl-ent">connectionTimeout</span>: <span class="pl-c1">0</span>
<span class="pl-ent">connectionTimeoutInMs</span>: <span class="pl-c1">0</span>
<span class="pl-ent">defaultAutoCommit</span>: <span class="pl-c1">true</span>
<span class="pl-ent">defaultCatalog</span>:
<span class="pl-ent">defaultReadOnly</span>: <span class="pl-c1">false</span>
<span class="pl-ent">defaultTransactionIsolation</span>:
<span class="pl-ent">driverClass</span>: <span class="pl-s">com.mysql.jdbc.Driver</span>
<span class="pl-ent">idleConnectionTestPeriod</span>: <span class="pl-c1">60</span>
<span class="pl-ent">idleConnectionTestPeriodInMinutes</span>: <span class="pl-c1">60</span>
<span class="pl-ent">idleMaxAge</span>: <span class="pl-c1">240</span>
<span class="pl-ent">idleMaxAgeInMinutes</span>: <span class="pl-c1">240</span>
<span class="pl-ent">initSQL</span>:
<span class="pl-ent">jdbcUrl</span>: <span class="pl-s">jdbc:mysql://localhost:3306/dayi_spot?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull</span>
<span class="pl-ent">maxConnectionAge</span>: <span class="pl-c1">0</span>
<span class="pl-ent">maxConnectionAgeInSeconds</span>: <span class="pl-c1">0</span>
<span class="pl-ent">maxConnectionsPerPartition</span>: <span class="pl-c1">10</span>
<span class="pl-ent">minConnectionsPerPartition</span>: <span class="pl-c1">5</span>
<span class="pl-ent">partitionCount</span>: <span class="pl-c1">3</span>
<span class="pl-ent">password</span>: <span class="pl-s"><span class="pl-pds">'</span>123456<span class="pl-pds">'</span></span>
<span class="pl-ent">poolAvailabilityThreshold</span>: <span class="pl-c1">0</span>
<span class="pl-ent">poolName</span>:
<span class="pl-ent">poolStrategy</span>: <span class="pl-s">DEFAULT</span>
<span class="pl-ent">preparedStatementsCacheSize</span>: <span class="pl-c1">100</span>
<span class="pl-ent">queryExecuteTimeLimitInMs</span>: <span class="pl-c1">0</span>
<span class="pl-ent">releaseHelperThreads</span>: <span class="pl-c1">0</span>
<span class="pl-ent">serviceOrder</span>: <span class="pl-s">FIFO</span>
<span class="pl-ent">statementCacheSize</span>: <span class="pl-c1">100</span>
<span class="pl-ent">statementReleaseHelperThreads</span>: <span class="pl-c1">0</span>
<span class="pl-ent">statementsCacheSize</span>: <span class="pl-c1">100</span>
<span class="pl-ent">statementsCachedPerConnection</span>: <span class="pl-c1">0</span>
<span class="pl-ent">user</span>: <span class="pl-s">root</span>
<span class="pl-ent">username</span>: <span class="pl-s">root</span>
<span class="pl-ent">ds-2016</span>: <span class="pl-s">!!com.jolbox.bonecp.BoneCPDataSource</span>
<span class="pl-ent">acquireIncrement</span>: <span class="pl-c1">5</span>
<span class="pl-ent">acquireRetryAttempts</span>: <span class="pl-c1">5</span>
<span class="pl-ent">acquireRetryDelayInMs</span>: <span class="pl-c1">7000</span>
<span class="pl-ent">closeConnectionWatchTimeout</span>: <span class="pl-c1">0</span>
<span class="pl-ent">closeConnectionWatchTimeoutInMs</span>: <span class="pl-c1">0</span>
<span class="pl-ent">configFile</span>:
<span class="pl-ent">connectionHookClassName</span>:
<span class="pl-ent">connectionTestStatement</span>:
<span class="pl-ent">connectionTimeout</span>: <span class="pl-c1">0</span>
<span class="pl-ent">connectionTimeoutInMs</span>: <span class="pl-c1">0</span>
<span class="pl-ent">defaultAutoCommit</span>: <span class="pl-c1">true</span>
<span class="pl-ent">defaultCatalog</span>:
<span class="pl-ent">defaultReadOnly</span>: <span class="pl-c1">false</span>
<span class="pl-ent">defaultTransactionIsolation</span>:
<span class="pl-ent">driverClass</span>: <span class="pl-s">com.mysql.jdbc.Driver</span>
<span class="pl-ent">idleConnectionTestPeriod</span>: <span class="pl-c1">60</span>
<span class="pl-ent">idleConnectionTestPeriodInMinutes</span>: <span class="pl-c1">60</span>
<span class="pl-ent">idleMaxAge</span>: <span class="pl-c1">240</span>
<span class="pl-ent">idleMaxAgeInMinutes</span>: <span class="pl-c1">240</span>
<span class="pl-ent">initSQL</span>:
<span class="pl-ent">jdbcUrl</span>: <span class="pl-s">jdbc:mysql://localhost:3306/dayi_spot_2016?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull</span>
<span class="pl-ent">maxConnectionAge</span>: <span class="pl-c1">0</span>
<span class="pl-ent">maxConnectionAgeInSeconds</span>: <span class="pl-c1">0</span>
<span class="pl-ent">maxConnectionsPerPartition</span>: <span class="pl-c1">10</span>
<span class="pl-ent">minConnectionsPerPartition</span>: <span class="pl-c1">5</span>
<span class="pl-ent">partitionCount</span>: <span class="pl-c1">3</span>
<span class="pl-ent">password</span>: <span class="pl-s"><span class="pl-pds">'</span>123456<span class="pl-pds">'</span></span>
<span class="pl-ent">poolAvailabilityThreshold</span>: <span class="pl-c1">0</span>
<span class="pl-ent">poolName</span>:
<span class="pl-ent">poolStrategy</span>: <span class="pl-s">DEFAULT</span>
<span class="pl-ent">preparedStatementsCacheSize</span>: <span class="pl-c1">100</span>
<span class="pl-ent">queryExecuteTimeLimitInMs</span>: <span class="pl-c1">0</span>
<span class="pl-ent">releaseHelperThreads</span>: <span class="pl-c1">0</span>
<span class="pl-ent">serviceOrder</span>: <span class="pl-s">FIFO</span>
<span class="pl-ent">statementCacheSize</span>: <span class="pl-c1">100</span>
<span class="pl-ent">statementReleaseHelperThreads</span>: <span class="pl-c1">0</span>
<span class="pl-ent">statementsCacheSize</span>: <span class="pl-c1">100</span>
<span class="pl-ent">statementsCachedPerConnection</span>: <span class="pl-c1">0</span>
<span class="pl-ent">user</span>: <span class="pl-s">root</span>
<span class="pl-ent">username</span>: <span class="pl-s">root</span>
<span class="pl-ent">ds-2017</span>: <span class="pl-s">!!com.jolbox.bonecp.BoneCPDataSource</span>
<span class="pl-ent">acquireIncrement</span>: <span class="pl-c1">5</span>
<span class="pl-ent">acquireRetryAttempts</span>: <span class="pl-c1">5</span>
<span class="pl-ent">acquireRetryDelayInMs</span>: <span class="pl-c1">7000</span>
<span class="pl-ent">closeConnectionWatchTimeout</span>: <span class="pl-c1">0</span>
<span class="pl-ent">closeConnectionWatchTimeoutInMs</span>: <span class="pl-c1">0</span>
<span class="pl-ent">configFile</span>:
<span class="pl-ent">connectionHookClassName</span>:
<span class="pl-ent">connectionTestStatement</span>:
<span class="pl-ent">connectionTimeout</span>: <span class="pl-c1">0</span>
<span class="pl-ent">connectionTimeoutInMs</span>: <span class="pl-c1">0</span>
<span class="pl-ent">defaultAutoCommit</span>: <span class="pl-c1">true</span>
<span class="pl-ent">defaultCatalog</span>:
<span class="pl-ent">defaultReadOnly</span>: <span class="pl-c1">false</span>
<span class="pl-ent">defaultTransactionIsolation</span>:
<span class="pl-ent">driverClass</span>: <span class="pl-s">com.mysql.jdbc.Driver</span>
<span class="pl-ent">idleConnectionTestPeriod</span>: <span class="pl-c1">60</span>
<span class="pl-ent">idleConnectionTestPeriodInMinutes</span>: <span class="pl-c1">60</span>
<span class="pl-ent">idleMaxAge</span>: <span class="pl-c1">240</span>
<span class="pl-ent">idleMaxAgeInMinutes</span>: <span class="pl-c1">240</span>
<span class="pl-ent">initSQL</span>:
<span class="pl-ent">jdbcUrl</span>: <span class="pl-s">jdbc:mysql://localhost:3306/dayi_spot_2017?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull</span>
<span class="pl-ent">maxConnectionAge</span>: <span class="pl-c1">0</span>
<span class="pl-ent">maxConnectionAgeInSeconds</span>: <span class="pl-c1">0</span>
<span class="pl-ent">maxConnectionsPerPartition</span>: <span class="pl-c1">10</span>
<span class="pl-ent">minConnectionsPerPartition</span>: <span class="pl-c1">5</span>
<span class="pl-ent">partitionCount</span>: <span class="pl-c1">3</span>
<span class="pl-ent">password</span>: <span class="pl-s"><span class="pl-pds">'</span>123456<span class="pl-pds">'</span></span>
<span class="pl-ent">poolAvailabilityThreshold</span>: <span class="pl-c1">0</span>
<span class="pl-ent">poolName</span>:
<span class="pl-ent">poolStrategy</span>: <span class="pl-s">DEFAULT</span>
<span class="pl-ent">preparedStatementsCacheSize</span>: <span class="pl-c1">100</span>
<span class="pl-ent">queryExecuteTimeLimitInMs</span>: <span class="pl-c1">0</span>
<span class="pl-ent">releaseHelperThreads</span>: <span class="pl-c1">0</span>
<span class="pl-ent">serviceOrder</span>: <span class="pl-s">FIFO</span>
<span class="pl-ent">statementCacheSize</span>: <span class="pl-c1">100</span>
<span class="pl-ent">statementReleaseHelperThreads</span>: <span class="pl-c1">0</span>
<span class="pl-ent">statementsCacheSize</span>: <span class="pl-c1">100</span>
<span class="pl-ent">statementsCachedPerConnection</span>: <span class="pl-c1">0</span>
<span class="pl-ent">user</span>: <span class="pl-s">root</span>
<span class="pl-ent">username</span>: <span class="pl-s">root</span></pre></div>
<h3 dir="auto">Actual behavior</h3>
<h3 dir="auto">Reason analyze</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc</h3>
<h3 dir="auto">For bug report, please <em>MUST</em> provide the reproduce example codes (such as a github link).</h3> | 0 |
<p dir="auto">Unless I am missing an existing configuration option (searched through the default settings, nothing jumped out at me), VS Code will always default to CRLF (at least on Windows).</p>
<p dir="auto">For developers targeting cross platform (particularly with publishing packages to npm, for example) it would be nice to be able to set a user setting to default to LF instead of CRLF (or vice versa for other scenarios).</p> | <p dir="auto">twitter thread <a href="https://twitter.com/domenic/status/697921719529398272" rel="nofollow">https://twitter.com/domenic/status/697921719529398272</a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/172399/13174587/02e38508-d705-11e5-92c5-372e75ff500d.png"><img src="https://cloud.githubusercontent.com/assets/172399/13174587/02e38508-d705-11e5-92c5-372e75ff500d.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">We've been collecting data on which packages have deprecations since 0.201. This is a list of the packages using deprecated APIs, their owners and each package's impact. This data reflects a subset of the user population (those who have upgraded to 201). Affected numbers are based on unique users catching the deprecations.</p>
<p dir="auto">If you are a maintainer on this list please note that we will be removing deprecated APIs on <strong>June 1st</strong>. See the <a href="http://blog.atom.io/2015/05/01/removing-deprecated-apis.html" rel="nofollow">blog post</a> for more info. Note that upgrading to the new APIs will decrease breakage, increase speed, and generally be better for everyone.</p>
<h3 dir="auto">Upgrading your package</h3>
<p dir="auto">We have a few guides for upgrading your package or theme:</p>
<ul dir="auto">
<li><a href="https://atom.io/docs/latest/upgrading-to-1-0-apis-upgrading-your-package" rel="nofollow">Upgrading your package</a></li>
<li><a href="https://atom.io/docs/latest/upgrading-to-1-0-apis-upgrading-your-ui-theme-or-package-selectors" rel="nofollow">Upgrading your package styles or UI theme</a></li>
<li><a href="https://atom.io/docs/latest/upgrading-to-1-0-apis-upgrading-your-syntax-theme" rel="nofollow">Upgrading your syntax theme</a></li>
<li>If you do only one thing, use <a href="https://github.com/atom/atom-space-pen-views">atom-space-pen-views</a> for the <code class="notranslate">View</code> class rather than importing them from atom. See the <a href="https://atom.io/docs/latest/upgrading-to-1-0-apis-upgrading-your-package#upgrading-your-views" rel="nofollow">package upgrade guide</a> for details.</li>
<li>Not sure what deprecations your package is generating? See <a href="https://gist.github.com/benogle/6d09e295c84b717ef9b4">https://gist.github.com/benogle/6d09e295c84b717ef9b4</a> for a list</li>
</ul>
<h3 dir="auto">Need help upgrading?</h3>
<p dir="auto">The community and the core team can offer some help:</p>
<ul dir="auto">
<li>Post an issue on the <a href="https://discuss.atom.io/" rel="nofollow">forum</a></li>
<li>Get help in the <a href="http://atom-slack.herokuapp.com/" rel="nofollow">slack room</a></li>
<li>If you're stuck, post an issue on <a href="https://github.com/atom/atom/issues">atom/atom</a></li>
</ul>
<h3 dir="auto">Package abandoned?</h3>
<p dir="auto">If your package is abandoned or supplanted by something in core, please comment with the package name and we can take steps to remove it from the package listing and people's install.</p>
<p dir="auto">However, <strong>_do not delete the package repo from GitHub before unpublishing</strong>_, as this will make it so that you can't unpublish from the package registry.</p>
<h3 dir="auto">Notes</h3>
<ul dir="auto">
<li>We are currently working on ways to minimize pain from deprecations. We will try hard to keep things going smoothly through the transition</li>
<li>It appears there are many many people still using outdated packages. We have taken steps in v0.200 to be more aggressive about upgrading packages.</li>
<li>If you want to tinker with the data, it is all here: <a href="https://github.com/benogle/deprecation-data">https://github.com/benogle/deprecation-data</a></li>
</ul>
<p dir="auto"><em>Generated: Wed Jun 03 2015 18:15:00 GMT-0700 (PDT)</em></p>
<table role="table">
<thead>
<tr>
<th>n</th>
<th>Package</th>
<th>Owner</th>
<th>Total Affected</th>
<th>Affected On Latest</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><a href="https://github.com/execjosh/atom-file-types">file-types</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/execjosh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/execjosh">@execjosh</a></td>
<td>20670</td>
<td>0.3.0 : 20670</td>
</tr>
<tr>
<td>2</td>
<td><a href="https://github.com/griiin/atom-auto-indent">auto-indent</a></td>
<td>@griiin</td>
<td>19527</td>
<td>0.1.0 : 19527</td>
</tr>
<tr>
<td>3</td>
<td><a href="https://github.com/rev087/fancy-new-file">fancy-new-file</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rev087/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rev087">@rev087</a></td>
<td>14661</td>
<td>0.7.0 : 14661</td>
</tr>
<tr>
<td>4</td>
<td><a href="https://github.com/guillaume86/tab-history">tab-history</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guillaume86/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guillaume86">@guillaume86</a></td>
<td>13499</td>
<td>0.4.0 : 13499</td>
</tr>
<tr>
<td>5</td>
<td><a href="https://github.com/tomkadwill/atom-rails">atom-rails</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tomkadwill/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tomkadwill">@tomkadwill</a></td>
<td>12921</td>
<td>0.4.0 : 12891</td>
</tr>
<tr>
<td>6</td>
<td><a href="https://github.com/yujinakayama/atom-auto-update-packages">auto-update-packages</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yujinakayama/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yujinakayama">@yujinakayama</a></td>
<td>11173</td>
<td>0.2.2 : 11173</td>
</tr>
<tr>
<td>7</td>
<td><a href="https://github.com/sommerper/filetype-color">filetype-color</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sommerper/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sommerper">@sommerper</a></td>
<td>10927</td>
<td>0.1.4 : 10822</td>
</tr>
<tr>
<td>8</td>
<td><a href="https://github.com/gabceb/atom-web-view">web-view</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gabceb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gabceb">@gabceb</a></td>
<td>9876</td>
<td>0.3.0 : 9756</td>
</tr>
<tr>
<td>9</td>
<td><a href="https://github.com/RokkinCat/ionic-atom">ionic-atom</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/RokkinCat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RokkinCat">@RokkinCat</a></td>
<td>8678</td>
<td>0.3.1 : 8678</td>
</tr>
<tr>
<td>10</td>
<td><a href="https://github.com/craig-o/atom-jsdoc">jsdoc</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/craig-o/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/craig-o">@craig-o</a></td>
<td>8676</td>
<td>0.9.0 : 8646</td>
</tr>
<tr>
<td>11</td>
<td><a href="https://github.com/havber/comment">comment</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/havber/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/havber">@havber</a></td>
<td>8297</td>
<td>0.2.7 : 8297</td>
</tr>
<tr>
<td>12</td>
<td><a href="https://github.com/fcoury/atom-rspec">rspec</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fcoury/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fcoury">@fcoury</a></td>
<td>8995</td>
<td>0.3.0 : 8083</td>
</tr>
<tr>
<td>13</td>
<td><a href="https://github.com/wonnage/highlight-css-color">highlight-css-color</a></td>
<td>@wonnage</td>
<td>7913</td>
<td>1.3.0 : 7913</td>
</tr>
<tr>
<td>14</td>
<td><a href="https://github.com/weskinner/symbol-gen">symbol-gen</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/weskinner/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/weskinner">@weskinner</a></td>
<td>7686</td>
<td>0.3.0 : 7458</td>
</tr>
<tr>
<td>15</td>
<td><a href="https://github.com/mirek/atom-html2jade">html2jade</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mirek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mirek">@mirek</a></td>
<td>6499</td>
<td>0.7.0 : 6469</td>
</tr>
<tr>
<td>16</td>
<td><a href="https://github.com/Exter-N/recent-projects">recent-projects</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Exter-N/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Exter-N">@Exter-N</a></td>
<td>6359</td>
<td>0.3.0 : 6359</td>
</tr>
<tr>
<td>17</td>
<td><a href="https://github.com/Nicolab/atom-local-history">local-history</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Nicolab/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Nicolab">@Nicolab</a></td>
<td>6928</td>
<td>3.1.0 : 6072</td>
</tr>
<tr>
<td>18</td>
<td><a href="https://github.com/p-e-w/language-javascript-semantic">language-javascript-semantic</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/p-e-w/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/p-e-w">@p-e-w</a></td>
<td>5906</td>
<td>0.1.0 : 5906</td>
</tr>
<tr>
<td>19</td>
<td><a href="https://github.com/badsyntax/atom-sassbeautify">sassbeautify</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/badsyntax/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/badsyntax">@badsyntax</a></td>
<td>5071</td>
<td>0.2.0 : 5071</td>
</tr>
<tr>
<td>20</td>
<td><a href="https://github.com/j4ys0n/atom-html-helper">html-helper</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/j4ys0n/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/j4ys0n">@j4ys0n</a></td>
<td>5054</td>
<td>0.2.3 : 5054</td>
</tr>
<tr>
<td>21</td>
<td><a href="https://github.com/wylst/atom-minifier">minifier</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/wylst/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wylst">@wylst</a></td>
<td>4899</td>
<td>0.2.0 : 4809</td>
</tr>
<tr>
<td>22</td>
<td><a href="https://github.com/jhutchins/virtualenv">virtualenv</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jhutchins/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jhutchins">@jhutchins</a></td>
<td>4746</td>
<td>0.6.2 : 4746</td>
</tr>
<tr>
<td>23</td>
<td><a href="https://github.com/minodisk/html-img">html-img</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/minodisk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/minodisk">@minodisk</a></td>
<td>4715</td>
<td>0.4.0 : 4505</td>
</tr>
<tr>
<td>24</td>
<td><a href="https://github.com/strikingcode/rails-navigation">rails-navigation</a></td>
<td>@strikingcode</td>
<td>4503</td>
<td>0.1.1 : 4458</td>
</tr>
<tr>
<td>25</td>
<td><a href="https://github.com/iancmyers/atom-eslint">eslint</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/iancmyers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/iancmyers">@iancmyers</a></td>
<td>4444</td>
<td>0.15.0 : 4444</td>
</tr>
<tr>
<td>26</td>
<td><a href="https://github.com/k9ordon/yosemite-unity-ui">yosemite-unity-ui</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/k9ordon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/k9ordon">@k9ordon</a></td>
<td>4035</td>
<td>0.3.13 : 4035</td>
</tr>
<tr>
<td>27</td>
<td><a href="https://github.com/tjmehta/atom-term">term</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tjmehta/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tjmehta">@tjmehta</a></td>
<td>3840</td>
<td>0.2.2 : 3840</td>
</tr>
<tr>
<td>28</td>
<td><a href="https://github.com/pandarison/Atom-Localization">localization</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pandarison/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pandarison">@pandarison</a></td>
<td>3516</td>
<td>1.16.1 : 3516</td>
</tr>
<tr>
<td>29</td>
<td><a href="https://github.com/jakemarsh/atom-spotify">atom-spotify</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jakemarsh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jakemarsh">@jakemarsh</a></td>
<td>3258</td>
<td>1.2.0 : 3258</td>
</tr>
<tr>
<td>30</td>
<td><a href="https://github.com/miaopeng/atom-closure-linter">closure-linter</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/miaopeng/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miaopeng">@miaopeng</a></td>
<td>3149</td>
<td>0.2.5 : 3149</td>
</tr>
<tr>
<td>31</td>
<td><a href="https://github.com/Problematic/omni-ruler">omni-ruler</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Problematic/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Problematic">@Problematic</a></td>
<td>2939</td>
<td>0.3.1 : 2939</td>
</tr>
<tr>
<td>32</td>
<td><a href="https://github.com/klorenz/atom-max-tabs">max-tabs</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/klorenz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/klorenz">@klorenz</a></td>
<td>2877</td>
<td>0.3.0 : 2877</td>
</tr>
<tr>
<td>33</td>
<td><a href="https://github.com/bruce/atom-csscomb">csscomb</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bruce/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bruce">@bruce</a></td>
<td>2738</td>
<td>0.1.2 : 2738</td>
</tr>
<tr>
<td>34</td>
<td><a href="https://github.com/gaslight/atom-cucumber-runner">cucumber-runner</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gaslight/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaslight">@gaslight</a></td>
<td>2733</td>
<td>0.1.1 : 2733</td>
</tr>
<tr>
<td>35</td>
<td><a href="https://github.com/atom/tree-view">tree-view</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/atom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/atom">@atom</a></td>
<td>2722</td>
<td>0.172.0 : 2557</td>
</tr>
<tr>
<td>36</td>
<td><a href="https://github.com/torsten/execute-as-ruby">execute-as-ruby</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/torsten/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/torsten">@torsten</a></td>
<td>2496</td>
<td>0.1.1 : 2496</td>
</tr>
<tr>
<td>37</td>
<td><a href="https://github.com/taggon/livereload">livereload</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/taggon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/taggon">@taggon</a></td>
<td>2422</td>
<td>0.2.0 : 2422</td>
</tr>
<tr>
<td>38</td>
<td><a href="https://github.com/florianb/atom-gradle-ci">gradle-ci</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/florianb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/florianb">@florianb</a></td>
<td>2411</td>
<td>0.2.3 : 2411</td>
</tr>
<tr>
<td>39</td>
<td><a href="https://github.com/gaslight/atom-cucumber-step">cucumber-step</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gaslight/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaslight">@gaslight</a></td>
<td>2406</td>
<td>0.1.2 : 2406</td>
</tr>
<tr>
<td>40</td>
<td><a href="https://github.com/sueastside/python-coverage">python-coverage</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sueastside/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sueastside">@sueastside</a></td>
<td>2361</td>
<td>0.2.0 : 2361</td>
</tr>
<tr>
<td>41</td>
<td><a href="https://github.com/raviraa/browser-refresh">browser-refresh</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raviraa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raviraa">@raviraa</a></td>
<td>3166</td>
<td>0.8.3 : 2312</td>
</tr>
<tr>
<td>42</td>
<td><a href="https://github.com/postcasio/error-status">error-status</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/postcasio/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/postcasio">@postcasio</a></td>
<td>2300</td>
<td>0.3.3 : 2300</td>
</tr>
<tr>
<td>43</td>
<td><a href="https://github.com/santip/layout-manager">layout-manager</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/santip/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/santip">@santip</a></td>
<td>2191</td>
<td>0.2.3 : 2191</td>
</tr>
<tr>
<td>44</td>
<td><a href="https://github.com/wmadden/select-scope">select-scope</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wmadden/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wmadden">@wmadden</a></td>
<td>2160</td>
<td>0.2.0 : 2160</td>
</tr>
<tr>
<td>45</td>
<td><a href="https://github.com/hafen/atom-r-exec">r-exec</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hafen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hafen">@hafen</a></td>
<td>2036</td>
<td>0.1.0 : 2036</td>
</tr>
<tr>
<td>46</td>
<td><a href="https://github.com/francodacosta/atom-function-name-status-bar">function-name-in-status-bar</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/francodacosta/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/francodacosta">@francodacosta</a></td>
<td>1858</td>
<td>0.2.6 : 1858</td>
</tr>
<tr>
<td>47</td>
<td><a href="https://github.com/anaptfox/atom-beautifier">atom-beautifier</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/anaptfox/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/anaptfox">@anaptfox</a></td>
<td>1827</td>
<td>0.5.0 : 1827</td>
</tr>
<tr>
<td>48</td>
<td><a href="https://github.com/captainwz/true-color">true-color</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/captainwz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/captainwz">@captainwz</a></td>
<td>1812</td>
<td>0.4.1 : 1812</td>
</tr>
<tr>
<td>49</td>
<td><a href="https://github.com/santip/maximize-panes">maximize-panes</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/santip/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/santip">@santip</a></td>
<td>1690</td>
<td>0.1.0 : 1690</td>
</tr>
<tr>
<td>50</td>
<td><a href="https://github.com/typester/atom-gocode">gocode</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/typester/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/typester">@typester</a></td>
<td>1596</td>
<td>0.2.1 : 1596</td>
</tr>
<tr>
<td>51</td>
<td><a href="https://github.com/cannikin/ruby-strftime-reference">ruby-strftime-reference</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cannikin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cannikin">@cannikin</a></td>
<td>1582</td>
<td>0.3.0 : 1522</td>
</tr>
<tr>
<td>52</td>
<td><a href="https://github.com/baconscript/github-issues">github-issues</a></td>
<td>@baconscript</td>
<td>1737</td>
<td>0.5.0 : 1497</td>
</tr>
<tr>
<td>53</td>
<td><a href="https://github.com/ddavison/rest-client">rest-client</a></td>
<td>@ddavison</td>
<td>1461</td>
<td>0.3.3 : 1461</td>
</tr>
<tr>
<td>54</td>
<td><a href="https://github.com/kristenmills/atom-hipster-ipsum">hipster-ipsum</a></td>
<td>@kristenmills</td>
<td>1324</td>
<td>0.1.0 : 1324</td>
</tr>
<tr>
<td>55</td>
<td><a href="https://github.com/gstack/atom-browser-webview">atom-browser-webview</a></td>
<td>@gstack</td>
<td>1308</td>
<td>0.6.0 : 1308</td>
</tr>
<tr>
<td>56</td>
<td><a href="https://github.com/mrolla/expand-selection">expand-selection</a></td>
<td>@mrolla</td>
<td>1246</td>
<td>0.2.1 : 1246</td>
</tr>
<tr>
<td>57</td>
<td><a href="https://github.com/fallenhitokiri/autocomplete-plus-jedi">autocomplete-plus-jedi</a></td>
<td>@fallenhitokiri</td>
<td>1188</td>
<td>0.0.9 : 1188</td>
</tr>
<tr>
<td>58</td>
<td><a href="https://github.com/TonkWorks/pepper-autocomplete-atom-package">pepper-autocomplete</a></td>
<td>@TonkWorks</td>
<td>1109</td>
<td>0.6.0 : 1109</td>
</tr>
<tr>
<td>59</td>
<td><a href="https://github.com/chick-chains/atom-big-cursor">big-cursor</a></td>
<td>@chick-chains</td>
<td>1096</td>
<td>0.1.0 : 1096</td>
</tr>
<tr>
<td>60</td>
<td><a href="https://github.com/roe/status-tab-spacing">status-tab-spacing</a></td>
<td>@roe</td>
<td>1095</td>
<td>0.3.1 : 1095</td>
</tr>
<tr>
<td>61</td>
<td><a href="https://github.com/MartinPeverelli/erb-snippets">erb-snippets</a></td>
<td>@MartinPeverelli</td>
<td>1263</td>
<td>0.5.0 : 1081</td>
</tr>
<tr>
<td>62</td>
<td><a href="https://github.com/benastan/quick-move-file">quick-move-file</a></td>
<td>@benastan</td>
<td>1080</td>
<td>0.7.0 : 1080</td>
</tr>
<tr>
<td>63</td>
<td><a href="https://github.com/catacgc/markdown-helpers">markdown-helpers</a></td>
<td>@catacgc</td>
<td>1125</td>
<td>0.2.2 : 1035</td>
</tr>
<tr>
<td>64</td>
<td><a href="https://github.com/sgade/atom-sloc">sloc</a></td>
<td>@sgade</td>
<td>1020</td>
<td>0.1.3 : 1020</td>
</tr>
<tr>
<td>65</td>
<td><a href="https://github.com/jgarth/runcoderun">runcoderun</a></td>
<td>@jgarth</td>
<td>1002</td>
<td>0.5.1 : 1002</td>
</tr>
<tr>
<td>66</td>
<td><a href="https://github.com/mark-hahn/line-count">line-count</a></td>
<td>@mark-hahn</td>
<td>1293</td>
<td>0.3.3 : 989</td>
</tr>
<tr>
<td>67</td>
<td><a href="https://github.com/js-padavan/atom-enhanced-tabs">enhanced-tabs</a></td>
<td>@js-padavan</td>
<td>974</td>
<td>1.1.0 : 974</td>
</tr>
<tr>
<td>68</td>
<td><a href="https://github.com/skulled/timekeeper">timekeeper</a></td>
<td>@skulled</td>
<td>959</td>
<td>0.4.0 : 959</td>
</tr>
<tr>
<td>69</td>
<td><a href="https://github.com/7even/atom-indentation-jumper">indentation-jumper</a></td>
<td>@7even</td>
<td>958</td>
<td>0.1.1 : 958</td>
</tr>
<tr>
<td>70</td>
<td><a href="https://github.com/rsense/atom-rsense">rsense</a></td>
<td>@rsense</td>
<td>914</td>
<td>0.6.0 : 914</td>
</tr>
<tr>
<td>71</td>
<td><a href="https://github.com/codeship/atom-codeship-status">codeship-status</a></td>
<td>@codeship</td>
<td>912</td>
<td>0.1.1 : 912</td>
</tr>
<tr>
<td>72</td>
<td><a href="https://github.com/masnun/atom-devdocs">devdocs</a></td>
<td>@masnun</td>
<td>821</td>
<td>0.2.0 : 821</td>
</tr>
<tr>
<td>73</td>
<td><a href="https://github.com/jerp/mocha">mocha</a></td>
<td>@jerp</td>
<td>792</td>
<td>0.0.5 : 792</td>
</tr>
<tr>
<td>74</td>
<td><a href="https://github.com/mgbatchelor/atom-go-to-view">go-to-view</a></td>
<td>@mgbatchelor</td>
<td>791</td>
<td>0.1.2 : 791</td>
</tr>
<tr>
<td>75</td>
<td><a href="https://github.com/tachiba/atom-swift-playground">swift-playground</a></td>
<td>@tachiba</td>
<td>761</td>
<td>0.2.0 : 761</td>
</tr>
<tr>
<td>76</td>
<td><a href="https://github.com/MarcoPolo/atom-paredit">paredit</a></td>
<td>@MarcoPolo</td>
<td>732</td>
<td>1.0.0 : 732</td>
</tr>
<tr>
<td>77</td>
<td><a href="https://github.com/kenokabe/markdown-stream">markdown-stream</a></td>
<td>@kenokabe</td>
<td>732</td>
<td>0.6.0 : 732</td>
</tr>
<tr>
<td>78</td>
<td><a href="https://github.com/firebase/atom-firepad">firepad</a></td>
<td>@firebase</td>
<td>714</td>
<td>0.3.1 : 714</td>
</tr>
<tr>
<td>79</td>
<td><a href="https://github.com/aronj/space-block-jumper">space-block-jumper</a></td>
<td>@aronj</td>
<td>685</td>
<td>0.4.3 : 685</td>
</tr>
<tr>
<td>80</td>
<td><a href="https://github.com/Problematic/atom-word-count">word-count</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Problematic/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Problematic">@Problematic</a></td>
<td>670</td>
<td>0.1.0 : 670</td>
</tr>
<tr>
<td>81</td>
<td><a href="https://github.com/VoiceCode/atom-voicecode">voicecode</a></td>
<td>@VoiceCode</td>
<td>715</td>
<td>0.9.0 : 670</td>
</tr>
<tr>
<td>82</td>
<td><a href="https://github.com/remanc/mechanical-keyboard">mechanical-keyboard</a></td>
<td>@remanc</td>
<td>670</td>
<td>0.1.0 : 670</td>
</tr>
<tr>
<td>83</td>
<td><a href="https://github.com/fuqcool/atom-emacs-mode">emacs-mode</a></td>
<td>@fuqcool</td>
<td>657</td>
<td>0.0.29 : 657</td>
</tr>
<tr>
<td>84</td>
<td><a href="https://github.com/postcasio/slash-closer">slash-closer</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/postcasio/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/postcasio">@postcasio</a></td>
<td>639</td>
<td>0.7.1 : 639</td>
</tr>
<tr>
<td>85</td>
<td><a href="https://github.com/cybertk/atom-raml-preview">atom-raml-preview</a></td>
<td>@cybertk</td>
<td>639</td>
<td>0.0.1 : 639</td>
</tr>
<tr>
<td>86</td>
<td><a href="https://github.com/mojombo/asteroids">asteroids</a></td>
<td>@mojombo</td>
<td>638</td>
<td>0.2.0 : 638</td>
</tr>
<tr>
<td>87</td>
<td><a href="https://github.com/void-main/atom-2048">atom-2048</a></td>
<td>@void-main</td>
<td>623</td>
<td>1.2.3 : 623</td>
</tr>
<tr>
<td>88</td>
<td><a href="https://github.com/suda/spark-dfu-util">spark-dfu-util</a></td>
<td>@suda</td>
<td>608</td>
<td>0.4.0 : 608</td>
</tr>
<tr>
<td>89</td>
<td><a href="https://github.com/adrian-budau/easy-motion">easy-motion</a></td>
<td>@adrian-budau</td>
<td>638</td>
<td>1.1.4 : 608</td>
</tr>
<tr>
<td>90</td>
<td><a href="https://github.com/ardcore/atom-safe-eval">eval</a></td>
<td>@ardcore</td>
<td>608</td>
<td>0.2.0 : 608</td>
</tr>
<tr>
<td>91</td>
<td><a href="https://github.com/codingtwinky/atom-ungit">atom-ungit</a></td>
<td>@codingtwinky</td>
<td>606</td>
<td>0.4.3 : 606</td>
</tr>
<tr>
<td>92</td>
<td><a href="https://github.com/jhonaker/mark-ring">mark-ring</a></td>
<td>@jhonaker</td>
<td>578</td>
<td>3.0.0 : 578</td>
</tr>
<tr>
<td>93</td>
<td><a href="https://github.com/postcasio/custom-title">custom-title</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/postcasio/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/postcasio">@postcasio</a></td>
<td>578</td>
<td>0.7.1 : 578</td>
</tr>
<tr>
<td>94</td>
<td><a href="https://github.com/dsuket/atom-increment-number">increment-number</a></td>
<td>@dsuket</td>
<td>548</td>
<td>0.1.0 : 548</td>
</tr>
<tr>
<td>95</td>
<td><a href="https://github.com/deusanyjunior/atom-supercopair">supercopair</a></td>
<td>@deusanyjunior</td>
<td>546</td>
<td>0.9.34 : 546</td>
</tr>
<tr>
<td>96</td>
<td><a href="https://github.com/leny/atom-pane-layout-switcher">pane-layout-switcher</a></td>
<td>@leny</td>
<td>608</td>
<td>0.0.3 : 532</td>
</tr>
<tr>
<td>97</td>
<td><a href="https://github.com/weskinner/path">path</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/weskinner/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/weskinner">@weskinner</a></td>
<td>438</td>
<td>0.4.1 : 438</td>
</tr>
<tr>
<td>98</td>
<td><a href="https://github.com/Snake231088/atom-html5-boilerplate">atom-html5-boilerplate</a></td>
<td>@Snake231088</td>
<td>410</td>
<td>0.2.0 : 410</td>
</tr>
<tr>
<td>99</td>
<td><a href="https://github.com/webBoxio/atom-htmlizer">atom-htmlizer</a></td>
<td>@webBoxio</td>
<td>410</td>
<td>0.1.1 : 410</td>
</tr>
<tr>
<td>100</td>
<td><a href="https://github.com/wenlock/atom-git-review">git-review</a></td>
<td>@wenlock</td>
<td>409</td>
<td>0.2.1 : 409</td>
</tr>
<tr>
<td>101</td>
<td><a href="https://github.com/lohek/local-server">local-server</a></td>
<td>@lohek</td>
<td>396</td>
<td>0.1.0 : 396</td>
</tr>
<tr>
<td>102</td>
<td><a href="https://github.com/nfo/atom-open-in-gitx">open-in-gitx</a></td>
<td>@nfo</td>
<td>396</td>
<td>0.1.1 : 396</td>
</tr>
<tr>
<td>103</td>
<td><a href="https://github.com/fxdgear/atom-python-debugger">atom-python-debugger</a></td>
<td>@fxdgear</td>
<td>2528</td>
<td>0.3.0 : 395</td>
</tr>
<tr>
<td>104</td>
<td><a href="https://github.com/creynders/atom-grunt-configs">atom-grunt-configs</a></td>
<td>@creynders</td>
<td>380</td>
<td>0.1.0 : 380</td>
</tr>
<tr>
<td>105</td>
<td><a href="https://github.com/travs/icon-font-picker">icon-font-picker</a></td>
<td>@travs</td>
<td>441</td>
<td>0.0.2 : 365</td>
</tr>
<tr>
<td>106</td>
<td><a href="https://github.com/erbmicha/ruby-hash-rocket">ruby-hash-rocket</a></td>
<td>@erbmicha</td>
<td>336</td>
<td>1.1.2 : 336</td>
</tr>
<tr>
<td>107</td>
<td><a href="https://github.com/manuclementz/atom-faker">atom-faker</a></td>
<td>@manuclementz</td>
<td>335</td>
<td>0.2.0 : 335</td>
</tr>
<tr>
<td>108</td>
<td><a href="https://github.com/lzrski/atomic-rest">atomic-rest</a></td>
<td>@lzrski</td>
<td>333</td>
<td>0.2.1 : 333</td>
</tr>
<tr>
<td>109</td>
<td><a href="https://github.com/Kraoz/atom-auto-replace-in-selection">auto-replace-in-selection</a></td>
<td>@Kraoz</td>
<td>320</td>
<td>2.1.0 : 320</td>
</tr>
<tr>
<td>110</td>
<td><a href="https://github.com/alairock/Composer-AtomEditor">composer</a></td>
<td>@alairock</td>
<td>305</td>
<td>0.3.1 : 305</td>
</tr>
<tr>
<td>111</td>
<td><a href="https://github.com/131/atom-explicit-reload">explicit-reload</a></td>
<td>@131</td>
<td>304</td>
<td>0.2.0 : 304</td>
</tr>
<tr>
<td>112</td>
<td><a href="https://github.com/nickstark/atom-keycodes">keycodes</a></td>
<td>@nickstark</td>
<td>304</td>
<td>0.1.2 : 304</td>
</tr>
<tr>
<td>113</td>
<td><a href="https://github.com/Trudko/package-list-downloader">package-list-downloader</a></td>
<td>@Trudko</td>
<td>303</td>
<td>0.2.1 : 303</td>
</tr>
<tr>
<td>114</td>
<td><a href="https://github.com/asciidoctor/atom-asciidoc-preview">asciidoc-preview</a></td>
<td>@asciidoctor</td>
<td>442</td>
<td>0.5.0 : 289</td>
</tr>
<tr>
<td>115</td>
<td><a href="https://github.com/benjamine/highlight-cov">highlight-cov</a></td>
<td>@benjamine</td>
<td>288</td>
<td>0.1.0 : 288</td>
</tr>
<tr>
<td>116</td>
<td><a href="https://github.com/balupton/atom-semicolons">atom-semicolons</a></td>
<td>@balupton</td>
<td>274</td>
<td>0.1.5 : 274</td>
</tr>
<tr>
<td>117</td>
<td><a href="https://github.com/kristenmills/atom-permute">permute</a></td>
<td>@kristenmills</td>
<td>259</td>
<td>0.1.0 : 259</td>
</tr>
<tr>
<td>118</td>
<td><a href="https://github.com/alexand7u/run-file">run-file</a></td>
<td>@alexand7u</td>
<td>258</td>
<td>0.9.0 : 258</td>
</tr>
<tr>
<td>119</td>
<td><a href="https://github.com/mark-hahn/coffee-trace">coffee-trace</a></td>
<td>@mark-hahn</td>
<td>243</td>
<td>0.2.2 : 243</td>
</tr>
<tr>
<td>120</td>
<td><a href="https://github.com/ddavison/kinetic">kinetic</a></td>
<td>@ddavison</td>
<td>213</td>
<td>0.2.5 : 213</td>
</tr>
<tr>
<td>121</td>
<td><a href="https://github.com/mizchi/webview-pane">webview-pane</a></td>
<td>@mizchi</td>
<td>213</td>
<td>0.0.1 : 213</td>
</tr>
<tr>
<td>122</td>
<td><a href="https://github.com/Floobits/floobits-atom">floobits</a></td>
<td>@Floobits</td>
<td>197</td>
<td>0.4.2 : 197</td>
</tr>
<tr>
<td>123</td>
<td><a href="https://github.com/dreid93/atom-playlist">playlist</a></td>
<td>@dreid93</td>
<td>195</td>
<td>0.1.7 : 195</td>
</tr>
<tr>
<td>124</td>
<td><a href="https://github.com/iambald/ruler">ruler</a></td>
<td>@iambald</td>
<td>184</td>
<td>0.2.3 : 184</td>
</tr>
<tr>
<td>125</td>
<td><a href="https://github.com/leny/atom-inc-dec-value">inc-dec-value</a></td>
<td>@leny</td>
<td>244</td>
<td>0.0.7 : 183</td>
</tr>
<tr>
<td>126</td>
<td><a href="https://github.com/unDemian/clipboard-history">clipboard-history</a></td>
<td>@unDemian</td>
<td>501</td>
<td>0.6.5 : 182</td>
</tr>
<tr>
<td>127</td>
<td><a href="https://github.com/leejarvis/assign-align">assign-align</a></td>
<td>@leejarvis</td>
<td>167</td>
<td>0.1.0 : 167</td>
</tr>
<tr>
<td>128</td>
<td><a href="https://github.com/soulglo/ti-alloy-related">ti-alloy-related</a></td>
<td>@soulglo</td>
<td>304</td>
<td>0.8.0 : 138</td>
</tr>
<tr>
<td>129</td>
<td><a href="https://github.com/Glavin001/atom-gitter">gitter</a></td>
<td>@Glavin001</td>
<td>135</td>
<td>0.6.2 : 135</td>
</tr>
<tr>
<td>130</td>
<td><a href="https://github.com/JsonHunt/save-commands">save-commands</a></td>
<td>@JsonHunt</td>
<td>107</td>
<td>0.6.1 : 107</td>
</tr>
<tr>
<td>131</td>
<td><a href="https://github.com/hanachin/atom-turnip-step">turnip-step</a></td>
<td>@hanachin</td>
<td>105</td>
<td>1.0.0 : 105</td>
</tr>
<tr>
<td>132</td>
<td><a href="https://github.com/ibigbug/support-gbk">support-gbk</a></td>
<td>@ibigbug</td>
<td>105</td>
<td>1.1.0 : 105</td>
</tr>
<tr>
<td>133</td>
<td><a href="https://github.com/raviraa/related-files">related-files</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raviraa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raviraa">@raviraa</a></td>
<td>92</td>
<td>0.3.0 : 92</td>
</tr>
<tr>
<td>134</td>
<td><a href="https://github.com/philipgiuliani/coverage">coverage</a></td>
<td>@philipgiuliani</td>
<td>181</td>
<td>0.6.0 : 91</td>
</tr>
<tr>
<td>135</td>
<td><a href="https://github.com/capaj/npm-autocomplete">npm-autocomplete</a></td>
<td>@capaj</td>
<td>91</td>
<td>0.1.2 : 91</td>
</tr>
<tr>
<td>136</td>
<td><a href="https://github.com/oggy/tab-switcher">tab-switcher</a></td>
<td>@oggy</td>
<td>90</td>
<td>0.2.0 : 90</td>
</tr>
<tr>
<td>137</td>
<td><a href="https://github.com/RyanNielson/laravel-facades">laravel-facades</a></td>
<td>@RyanNielson</td>
<td>76</td>
<td>1.0.0 : 76</td>
</tr>
<tr>
<td>138</td>
<td><a href="https://github.com/thislooksfun/clone-cursor">clone-cursor</a></td>
<td>@thislooksfun</td>
<td>76</td>
<td>1.0.0 : 76</td>
</tr>
<tr>
<td>139</td>
<td><a href="https://github.com/suda/yuno-commit">yuno-commit</a></td>
<td>@suda</td>
<td>75</td>
<td>0.0.2 : 75</td>
</tr>
<tr>
<td>140</td>
<td><a href="https://github.com/robhurring/atom-change-case">change-case</a></td>
<td>@robhurring</td>
<td>76</td>
<td>0.5.1 : 61</td>
</tr>
<tr>
<td>141</td>
<td><a href="https://github.com/cliffrowley/atom-marked">marked</a></td>
<td>@cliffrowley</td>
<td>394</td>
<td>0.1.8 : 60</td>
</tr>
<tr>
<td>142</td>
<td><a href="https://github.com/gladimdim/weather-package">weather-package</a></td>
<td>@gladimdim</td>
<td>60</td>
<td>1.5.4 : 60</td>
</tr>
<tr>
<td>143</td>
<td><a href="https://github.com/leijou/php-server">php-server</a></td>
<td>@leijou</td>
<td>60</td>
<td>0.4.0 : 60</td>
</tr>
<tr>
<td>144</td>
<td><a href="https://github.com/chadmoore/atom-toggle-tabs">toggle-tabs</a></td>
<td>@chadmoore</td>
<td>60</td>
<td>0.1.8 : 60</td>
</tr>
<tr>
<td>145</td>
<td><a href="https://github.com/ka-ka-xyz/atom-charcode">atom-charcode</a></td>
<td>@ka-ka-xyz</td>
<td>46</td>
<td>0.4.0 : 46</td>
</tr>
<tr>
<td>146</td>
<td><a href="https://github.com/nickclaw/atom-lorem-ipsum">lorem-ipsum</a></td>
<td>@nickclaw</td>
<td>2510</td>
<td>0.5.0 : 45</td>
</tr>
<tr>
<td>147</td>
<td><a href="https://github.com/sidorares/atom-vnc">vnc</a></td>
<td>@sidorares</td>
<td>45</td>
<td>0.1.3 : 45</td>
</tr>
<tr>
<td>148</td>
<td><a href="https://github.com/pi-coder/php-doc-atom">php-documentation-online</a></td>
<td>@pi-coder</td>
<td>45</td>
<td>0.2.1 : 45</td>
</tr>
<tr>
<td>149</td>
<td><a href="https://github.com/noraesae/party-hard">party-hard</a></td>
<td>@noraesae</td>
<td>45</td>
<td>0.3.3 : 45</td>
</tr>
<tr>
<td>150</td>
<td><a href="https://github.com/dongri/convert-to-utf8">convert-to-utf8</a></td>
<td>@dongri</td>
<td>75</td>
<td>0.1.0 : 45</td>
</tr>
<tr>
<td>151</td>
<td><a href="https://github.com/PierreVannier/pair-programming">pair-programming</a></td>
<td>@PierreVannier</td>
<td>45</td>
<td>0.7.0 : 45</td>
</tr>
<tr>
<td>152</td>
<td><a href="https://github.com/orlaqp/angularjs-helper">angularjs-helper</a></td>
<td>@orlaqp</td>
<td>228</td>
<td>0.9.2 : 45</td>
</tr>
<tr>
<td>153</td>
<td><a href="https://github.com/webBoxio/atom-html-preview">atom-html-preview</a></td>
<td>@webBoxio</td>
<td>2631</td>
<td>0.1.6 : 30</td>
</tr>
<tr>
<td>154</td>
<td><a href="https://github.com/adambutler/atom-prettify">atom-prettify</a></td>
<td>@adambutler</td>
<td>365</td>
<td>0.1.1 : 30</td>
</tr>
<tr>
<td>155</td>
<td><a href="https://github.com/mark-hahn/view-tail-large-files">view-tail-large-files</a></td>
<td>@mark-hahn</td>
<td>1608</td>
<td>0.1.17 : 30</td>
</tr>
<tr>
<td>156</td>
<td><a href="https://github.com/skandasoft/preview-plus">preview-plus</a></td>
<td>@skandasoft</td>
<td>180</td>
<td>1.1.42 : 30</td>
</tr>
<tr>
<td>157</td>
<td><a href="https://github.com/cliffrowley/atom-open-in-sourcetree">open-in-sourcetree</a></td>
<td>@cliffrowley</td>
<td>274</td>
<td>0.1.3 : 30</td>
</tr>
<tr>
<td>158</td>
<td><a href="https://github.com/peterdotjs/atom-synced-sidebar">synced-sidebar</a></td>
<td>@peterdotjs</td>
<td>30</td>
<td>0.2.3 : 30</td>
</tr>
<tr>
<td>159</td>
<td><a href="https://github.com/zhuochun/md-writer">markdown-writer</a></td>
<td>@zhuochun</td>
<td>137</td>
<td>1.3.2 : 15</td>
</tr>
<tr>
<td>160</td>
<td><a href="https://github.com/hmatsuda/open-git-modified-files">open-git-modified-files</a></td>
<td>@hmatsuda</td>
<td>15</td>
<td>0.1.0 : 15</td>
</tr>
<tr>
<td>161</td>
<td><a href="https://github.com/cliffrowley/atom-open-in-github-app">open-in-github-app</a></td>
<td>@cliffrowley</td>
<td>167</td>
<td>0.2.3 : 15</td>
</tr>
<tr>
<td>162</td>
<td><a href="https://github.com/vellerefond/project-ring">project-ring</a></td>
<td>@vellerefond</td>
<td>300</td>
<td>0.20.5 : 15</td>
</tr>
<tr>
<td>163</td>
<td><a href="https://github.com/ezhilvendhan/import">import</a></td>
<td>@ezhilvendhan</td>
<td>227</td>
<td>1.3.0 : 15</td>
</tr>
<tr>
<td>164</td>
<td><a href="https://github.com/verytired/atom-processing">atom-processing</a></td>
<td>@verytired</td>
<td>15</td>
<td>0.1.0 : 15</td>
</tr>
<tr>
<td>165</td>
<td><a href="https://github.com/jefkoslowski/gitignore-snippets">gitignore-snippets</a></td>
<td>@jefkoslowski</td>
<td>288</td>
<td>0.2.3 : 15</td>
</tr>
<tr>
<td>166</td>
<td><a href="https://github.com/kenwheeler/gulp-helper">gulp-helper</a></td>
<td>@kenwheeler</td>
<td>364</td>
<td>4.1.0 : 15</td>
</tr>
<tr>
<td>167</td>
<td><a href="https://github.com/mafiuss/atom-cli-diff">atom-cli-diff</a></td>
<td>@mafiuss</td>
<td>75</td>
<td>0.11.0 : 15</td>
</tr>
<tr>
<td>168</td>
<td><a href="https://github.com/gstack/apex-ui-personalize">apex-ui-personalize</a></td>
<td>@gstack</td>
<td>15</td>
<td>0.1.0 : 15</td>
</tr>
<tr>
<td>169</td>
<td><a href="https://github.com/hemanth/atom-mdurl">mdurl</a></td>
<td>@hemanth</td>
<td>15</td>
<td>0.2.0 : 15</td>
</tr>
<tr>
<td>170</td>
<td><a href="https://github.com/francodacosta/atom-php-getters-setters">php-getters-setters</a></td>
<td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/francodacosta/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/francodacosta">@francodacosta</a></td>
<td>5098</td>
<td>0.5.0 : 15</td>
</tr>
<tr>
<td>171</td>
<td><a href="https://github.com/jerp/elixir-cmd">elixir-cmd</a></td>
<td>@jerp</td>
<td>165</td>
<td>0.2.6 : 15</td>
</tr>
<tr>
<td>172</td>
<td><a href="https://github.com/Levia/get-routes">get-routes</a></td>
<td>@Levia</td>
<td>75</td>
<td>0.2.0 : 15</td>
</tr>
</tbody>
</table> | <p dir="auto">Making Ctrl+Shift+s into save-all. I noticed that if I changed int under keymaps.cson (the suggested method) the keymaps would overload, not override the default save-as. This means that when I do the command both actions take place, which is not what I intended to do. I wanted it to only execute the save-all instead of save-as ot both.</p>
<p dir="auto">If I change it in the local keymap.json it works fine but every time I update atom the change gets reset to default. Which is pretty annoying having to do every update. If there is a fix let me know.</p>
<p dir="auto">Atom v0.136.0<br>
Win 7</p> | 0 |
<p dir="auto">The code base seems to use lots of identifiers for private member objects or functions that start with an underscore, followed by an uppercase letter, such as <code class="notranslate">IslandWindow::_ApplyWindowSize</code> (<a href="https://github.com/microsoft/terminal/blob/db797580923472c08613f054364097be06d73229/src/cascadia/WindowsTerminal/IslandWindow.h#L99">/src/cascadia/WindowsTerminal/IslandWindow.h#L99</a>).</p>
<p dir="auto">The C++ standard however says:</p>
<blockquote>
<p dir="auto">In addition, some identifiers are reserved for use by C++ implementations and shall not be used otherwise; no diagnostic is required. Each identifier that contains a double underscore __ or begins with an underscore followed by an uppercase letter is reserved to the implementation for any use.</p>
</blockquote>
<p dir="auto">(From <a href="https://eel.is/c++draft/lex.name#3.1" rel="nofollow">https://eel.is/c++draft/lex.name#3.1</a>)</p>
<p dir="auto">Using such identifiers is technically an invocation of undefined behavior.</p> | <p dir="auto">Back in the XAML days and when I first learned PowerShell, I fantasized about being able to write a little control that would take some inputs and render a graphic, and then perhaps even stream into that control and have the graphic change in realtime.</p>
<p dir="auto">Imagine a little chart printed out in the console as the result of a command. People could write little graphical widgets and package them up.</p>
<p dir="auto">A bit like <code class="notranslate">Out-Grid</code> in PowerShell but a little rectangle graphic would pop out in the console itself on the next line. Today we have Jupyter Notebooks which are a similar idea.</p>
<p dir="auto">I guess this could be done with SVG today?</p>
<p dir="auto">Perhaps if SVG can be rendered inline within a bounding rect and if the SVG source markup can be referenced and updated and then dynamically the UI redraws, then people will figure out a way to build up the pieces from other stuff already out there.</p>
<p dir="auto">Or perhaps printing bitmap/rasters into the console is all that's needed, so long as the source bitmap can be dynamically updated (to animate it), and then the vector rasterization part is something pluggable in the pipeline before it.</p> | 0 |
<p dir="auto">The Code of Conduct link at the following node is a deadend:</p>
<p dir="auto"><a href="https://github.com/numpy/numpy/blob/v1.19.0/.github/CODE_OF_CONDUCT.md">https://github.com/numpy/numpy/blob/v1.19.0/.github/CODE_OF_CONDUCT.md</a></p> | <h2 dir="auto">Documentation</h2>
<p dir="auto">Not sure where to file this. The github template for the Code Of Conduct <a href="https://github.com/numpy/numpy/blob/master/.github/CODE_OF_CONDUCT.md">https://github.com/numpy/numpy/blob/master/.github/CODE_OF_CONDUCT.md</a> (<a href="https://github.com/numpy/numpy/blame/master/.github/CODE_OF_CONDUCT.md#L1">https://github.com/numpy/numpy/blame/master/.github/CODE_OF_CONDUCT.md#L1</a>) refers to an address that 404s, namely<br>
<a href="https://www.numpy.org/devdocs/dev/conduct/code_of_conduct.html" rel="nofollow">https://www.numpy.org/devdocs/dev/conduct/code_of_conduct.html</a>, not sure if this an issue with the URL or the place to which it points.</p> | 1 |
<h3 dir="auto">Describe the workflow you want to enable</h3>
<p dir="auto">I want to use a pipleine that includes</p>
<ul dir="auto">
<li>a feature selection step (like SelectKBest)</li>
<li>a HistGradientBoostingEstimator with monotonicity and/or categorical features</li>
</ul>
<p dir="auto">The problem is that specifying the features for this requires indices or a boolean mask, but the feature selection means the mask/indices will be off.</p>
<p dir="auto">You can do this with a custom class/FunctionTransformer, and you can do it without a pipeline, but it would be nicer to have it in a pipeline.</p>
<h3 dir="auto">Describe your proposed solution</h3>
<p dir="auto">Allow specifying categorical features or monotonicity constraints via feature names.</p>
<h3 dir="auto">Describe alternatives you've considered, if relevant</h3>
<ul dir="auto">
<li>A custom class</li>
<li>Not using a pipeline</li>
</ul>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p> | <h3 dir="auto">Describe the workflow you want to enable</h3>
<p dir="auto">As of current version, we need to specify monotonicity constraints for each feature as an array-like object ( e.g. [0,1,1] ) in HistGradientBoostingClassifier/Regressor. It would be a good quality of life improvement if we can specify the constraint as dict (e.g. {"feature_name1":0, "feature_name2":1 ...}) if the input X is a dataframe.</p>
<p dir="auto">References:</p>
<ul dir="auto">
<li><a href="https://scikit-learn.org/stable/modules/ensemble.html#monotonic-cst-gbdt" rel="nofollow">https://scikit-learn.org/stable/modules/ensemble.html#monotonic-cst-gbdt</a></li>
<li><a href="https://scikit-learn.org/stable/auto_examples/ensemble/plot_monotonic_constraints.html" rel="nofollow">https://scikit-learn.org/stable/auto_examples/ensemble/plot_monotonic_constraints.html</a></li>
<li><a href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.HistGradientBoostingClassifier.html#sklearn.ensemble.HistGradientBoostingClassifier" rel="nofollow">https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.HistGradientBoostingClassifier.html#sklearn.ensemble.HistGradientBoostingClassifier</a></li>
</ul>
<h3 dir="auto">Describe your proposed solution</h3>
<p dir="auto">Make the following changes inside fit function for HistGradientBoostingClassifier/Regressor:</p>
<ul dir="auto">
<li>Change input type for monotonic_cst to array-like or dict.</li>
<li>If constraint is specified as a dict, add a validation check for verifying if X is a dataframe with string column names.</li>
<li>Iterate through column names in X, add constraint if specified in the dict to array-like object or add default value if no constraint is specified explicitly. Return array-like object in place of original dict.</li>
</ul>
<h3 dir="auto">Describe alternatives you've considered, if relevant</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p> | 1 |
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">Hi - I'm working in a react-three-fiber project but I can reproduce the issue in threejs standalone.</p>
<p dir="auto">Context: I have a scene with many objects loaded in via gltfLoader, some of which are instanced and some of which aren't. A background environment model, non-instanced, and lots of smaller objects instanced many times. It all works fine until I try to add ambient occlusion. If I just have the background model it works, and similarly if I only have instanced meshes and no background model it also works. It's the combination of the two where it fails with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught TypeError: Cannot read property 'isInterleavedBufferAttribute' of undefined
at Object.get (three.module.js:10446)
at setupVertexAttributes (three.module.js:17652)
at WebGLRenderer.renderBufferDirect (three.module.js:17538)
at renderObject (three.module.js:17976)
at renderObjects (three.module.js:17957)
at WebGLRenderer.render (three.module.js:17830)
at SSAOPass.renderOverride (SSAOPass.js:231)
at SSAOPass.render (SSAOPass.js:142)
at EffectComposer.render (EffectComposer.js:91)
at Object.current (Effects.js:22)
at web.js:81
at Array.forEach (<anonymous>)
at renderGl (web.js:81)
at web.js:100
at Map.forEach (<anonymous>)
at renderLoop (web.js:97)"><pre class="notranslate"><code class="notranslate">Uncaught TypeError: Cannot read property 'isInterleavedBufferAttribute' of undefined
at Object.get (three.module.js:10446)
at setupVertexAttributes (three.module.js:17652)
at WebGLRenderer.renderBufferDirect (three.module.js:17538)
at renderObject (three.module.js:17976)
at renderObjects (three.module.js:17957)
at WebGLRenderer.render (three.module.js:17830)
at SSAOPass.renderOverride (SSAOPass.js:231)
at SSAOPass.render (SSAOPass.js:142)
at EffectComposer.render (EffectComposer.js:91)
at Object.current (Effects.js:22)
at web.js:81
at Array.forEach (<anonymous>)
at renderGl (web.js:81)
at web.js:100
at Map.forEach (<anonymous>)
at renderLoop (web.js:97)
</code></pre></div>
<p dir="auto">I can reproduce the error (I took the dynamic instancedmesh example and added two boxes and ambient occlusion) :<br>
<a href="https://jsfiddle.net/threedian/kLve6f1g/12/" rel="nofollow">https://jsfiddle.net/threedian/kLve6f1g/12/</a></p>
<p dir="auto">Some other info/observations:</p>
<ul dir="auto">
<li>
<p dir="auto">Similar issue reported here (with NormalPass instead of SSAOPass) where <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drcmda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drcmda">@drcmda</a> thinks the issue might be in the post-processing code:<br>
<a href="https://spectrum.chat/react-three-fiber/general/why-does-instancedmesh-not-allow-to-have-other-meshes-in-canvas~6a231bd5-3437-405c-97ed-7260cfc17bd7" rel="nofollow">https://spectrum.chat/react-three-fiber/general/why-does-instancedmesh-not-allow-to-have-other-meshes-in-canvas~6a231bd5-3437-405c-97ed-7260cfc17bd7</a></p>
</li>
<li>
<p dir="auto">In the jsfiddle example I can fix the issue by creating my non-instanced meshes outside of the gltfLoader success callback. It's not immediately obvious to me how this helps me in my react-three-fiber project though so I've just listed it as an observation.</p>
</li>
</ul>
<p dir="auto">Appreciate any advice or nudges in the right direction</p>
<p dir="auto">Thanks!</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"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r115</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r117</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 (untested)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer (untested)</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" checked=""> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS (untested)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux (untested)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android (untested)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS (untested)</li>
</ul> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">I'm having a problem where the InstancedMesh method <code class="notranslate">setMatrixAt</code> seems to fail (the matrix positions doesn't change visually) whenever I add another object with the same material object (not a clone) in the scene. No log/warning/errors are emitted.</p>
<p dir="auto">The following briefly illustrates:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var geometry = new THREE.BoxBufferGeometry();
var material = new THREE.MeshStandardMaterial( { roughness: 0, envMap: texture });
var mesh1 = new THREE.Mesh( geometry, material );
mesh1.position.set(0, 1, 0);
scene.add( mesh1 ); // removing this line makes the instanced mesh work as intended
mesh = new THREE.InstancedMesh( geometry, material, 9 ); // same material usage
scene.add( mesh ); // This works and I can see both meshes in the scene.
var dummy = new THREE.Object3D();
dummy.position.set( 1, 5, 1 );
dummy.updateMatrix();
mesh.setMatrixAt( 0, dummy.matrix ); // Nope, doesn't work, it just stays where it's at.
mesh.setMatrixAt( 1, dummy.matrix ); // Rotation seems to be applied, but position doesn't.
// It looks like every instance is at the same place, but I don't know."><pre class="notranslate"> <span class="pl-k">var</span> <span class="pl-s1">geometry</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">BoxBufferGeometry</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">material</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">MeshStandardMaterial</span><span class="pl-kos">(</span> <span class="pl-kos">{</span> <span class="pl-c1">roughness</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">envMap</span>: <span class="pl-s1">texture</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">mesh1</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Mesh</span><span class="pl-kos">(</span> <span class="pl-s1">geometry</span><span class="pl-kos">,</span> <span class="pl-s1">material</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mesh1</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">scene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span> <span class="pl-s1">mesh1</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// removing this line makes the instanced mesh work as intended</span>
<span class="pl-s1">mesh</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">InstancedMesh</span><span class="pl-kos">(</span> <span class="pl-s1">geometry</span><span class="pl-kos">,</span> <span class="pl-s1">material</span><span class="pl-kos">,</span> <span class="pl-c1">9</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// same material usage</span>
<span class="pl-s1">scene</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span> <span class="pl-s1">mesh</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// This works and I can see both meshes in the scene.</span>
<span class="pl-k">var</span> <span class="pl-s1">dummy</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Object3D</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-c1">position</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">1</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-en">updateMatrix</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mesh</span><span class="pl-kos">.</span><span class="pl-en">setMatrixAt</span><span class="pl-kos">(</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-c1">matrix</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Nope, doesn't work, it just stays where it's at.</span>
<span class="pl-s1">mesh</span><span class="pl-kos">.</span><span class="pl-en">setMatrixAt</span><span class="pl-kos">(</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s1">dummy</span><span class="pl-kos">.</span><span class="pl-c1">matrix</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Rotation seems to be applied, but position doesn't.</span>
<span class="pl-c">// It looks like every instance is at the same place, but I don't know.</span></pre></div>
<p dir="auto">Note that if I use material.clone() at the instanced mesh declaration, the problem also goes away / is fixed, but now I have two materials, and I intend to have one for performance reasons.</p>
<p dir="auto">A live example is available here:</p>
<ul dir="auto">
<li><a href="https://jsfiddle.net/ghmrdk4z/4/" rel="nofollow">jsfiddle</a> (The problem is that you should see multiple boxes, but only 1 or 2 are visible, remove line 41 to fix)</li>
</ul>
<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=""> r109</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r108</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" checked=""> 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" checked=""> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">(Not applicable, as far as I know)</p> | 1 |
<p dir="auto">If you set the facecolor of a patch with an alpha value, e.g.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="facecolor=(1,0,0,0.5)"><pre class="notranslate"><code class="notranslate">facecolor=(1,0,0,0.5)
</code></pre></div>
<p dir="auto">the alpha value is ignored; only the patch's <code class="notranslate">_alpha</code> property is used. This makes it impossible to have a patch with an opaque edge and a (partially) transparent fill.</p>
<p dir="auto">I've only tested this on the TkAgg backend.</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>duplicate pick events occurring in 3.4.rc1</strong></p>
<p dir="auto">In MNE-Python, our CIs that test against 3.4.rc1 are failing, because pick events are getting fired twice for every time an artist is picked (this is not happening on 3.3.4). It's happening in a very complicated interactive figure, and I haven't yet managed to work up an MWE that doesn't depend on MNE-Python. But, I've used <code class="notranslate">git bisect</code> to isolate the first test failure to matplotlib commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/6d79e6eddfe14a10141bab3ce421b2b43bc9a57a/hovercard" href="https://github.com/matplotlib/matplotlib/commit/6d79e6eddfe14a10141bab3ce421b2b43bc9a57a"><tt>6d79e6e</tt></a>. I will continue trying to further isolate this, but in the meantime if anyone is familiar with MPL changes in the last 4 months, I'd be happy to hear ideas about what might be going on here.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">This code mirrors what we're doing but is too minimal, in that it doesn't yield doubled pick events:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
from matplotlib.text import Text
def pick_handler(event):
if isinstance(event.artist, Text):
print("PICKED")
fig, ax = plt.subplots()
_ = ax.plot((0, 1), (0, 1))
for lab in ax.get_yticklabels():
lab.set_picker(True)
fig.canvas.mpl_connect('pick_event', pick_handler)"><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">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">text</span> <span class="pl-k">import</span> <span class="pl-v">Text</span>
<span class="pl-k">def</span> <span class="pl-en">pick_handler</span>(<span class="pl-s1">event</span>):
<span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">event</span>.<span class="pl-s1">artist</span>, <span class="pl-v">Text</span>):
<span class="pl-en">print</span>(<span class="pl-s">"PICKED"</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">_</span> <span class="pl-c1">=</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-c1">0</span>, <span class="pl-c1">1</span>))
<span class="pl-k">for</span> <span class="pl-s1">lab</span> <span class="pl-c1">in</span> <span class="pl-s1">ax</span>.<span class="pl-en">get_yticklabels</span>():
<span class="pl-s1">lab</span>.<span class="pl-en">set_picker</span>(<span class="pl-c1">True</span>)
<span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">mpl_connect</span>(<span class="pl-s">'pick_event'</span>, <span class="pl-s1">pick_handler</span>)</pre></div>
<p dir="auto">This code reproduces, but with <code class="notranslate">mne</code> dependency:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib.pyplot as plt
import mne
# make fake data
data = np.random.standard_normal((2, 100))
info = mne.create_info(['ch1', 'ch2'], 1000)
raw = mne.io.RawArray(data, info)
# plot it
fig = raw.plot()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">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">mne</span>
<span class="pl-c"># make fake data</span>
<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">standard_normal</span>((<span class="pl-c1">2</span>, <span class="pl-c1">100</span>))
<span class="pl-s1">info</span> <span class="pl-c1">=</span> <span class="pl-s1">mne</span>.<span class="pl-en">create_info</span>([<span class="pl-s">'ch1'</span>, <span class="pl-s">'ch2'</span>], <span class="pl-c1">1000</span>)
<span class="pl-s1">raw</span> <span class="pl-c1">=</span> <span class="pl-s1">mne</span>.<span class="pl-s1">io</span>.<span class="pl-v">RawArray</span>(<span class="pl-s1">data</span>, <span class="pl-s1">info</span>)
<span class="pl-c"># plot it</span>
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">raw</span>.<span class="pl-en">plot</span>()</pre></div>
<p dir="auto">In the resulting figure, clicking on one of the yticklabels (the channel names) is supposed to mark the channel as bad (which among other effects, will turn it light grey). This doesn't happen because the pick event is fired twice, effectively marking and then unmarking the bad channel before a redraw can happen (I have confirmed this by simply inserting a <code class="notranslate">print</code> statement in the pick handler; it prints twice for each click). There is nothing wrong with the code that marks bad channels; you can do it by clicking on the channel trace itself (which responds to <code class="notranslate">button_press_event</code> instead of <code class="notranslate">pick_event</code>, for complicated reasons).</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system:</li>
<li>Matplotlib version (<code class="notranslate">import matplotlib; print(matplotlib.__version__)</code>): 3.3.2.post1516+g6d79e6edd</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li>
<li>Python version: 3.8.8</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries: mne: current <code class="notranslate">main</code> (0.23.dev0)</li>
</ul>
<p dir="auto">matplotlib installed via <code class="notranslate">pip install -e .</code> from a git clone.</p> | 0 |
<p dir="auto">Test case. Fails for <code class="notranslate">score_func=f_classif</code> as well.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Fixed already, I had an old .11-git release
import numpy as np
from sklearn.feature_selection import *
X = np.array([[-0.35407973, -0.73858161, -1.21871862, 0.01362241, -0.3565459 ],
[-2.92151461, -0.64259241, -0.43849487, 1.01860028, -0.84427892],
[-0.83171833, -0.0852727 , -1.89007728, -1.31564981, 0.1420426 ],
[-0.62100712, 0.86350539, -0.49176233, -0.51831504, 1.98832398],
[ 1.2643767 , 0.33973403, -0.82126126, -0.08305002, -0.4985046 ]])
y = np.array([-0.17966557, -0.19387233, 1.77140599, 0.78315866, -1.40862817])
transformer = SelectKBest(score_func=chi2, k=3)
transformer.fit(X, y)
transformer.transform(X).shape[1]
assert transformer.transform(X).shape[1] == 3"><pre class="notranslate"><span class="pl-c"># Fixed already, I had an old .11-git release</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">sklearn</span>.<span class="pl-s1">feature_selection</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-c1">-</span><span class="pl-c1">0.35407973</span>, <span class="pl-c1">-</span><span class="pl-c1">0.73858161</span>, <span class="pl-c1">-</span><span class="pl-c1">1.21871862</span>, <span class="pl-c1">0.01362241</span>, <span class="pl-c1">-</span><span class="pl-c1">0.3565459</span> ],
[<span class="pl-c1">-</span><span class="pl-c1">2.92151461</span>, <span class="pl-c1">-</span><span class="pl-c1">0.64259241</span>, <span class="pl-c1">-</span><span class="pl-c1">0.43849487</span>, <span class="pl-c1">1.01860028</span>, <span class="pl-c1">-</span><span class="pl-c1">0.84427892</span>],
[<span class="pl-c1">-</span><span class="pl-c1">0.83171833</span>, <span class="pl-c1">-</span><span class="pl-c1">0.0852727</span> , <span class="pl-c1">-</span><span class="pl-c1">1.89007728</span>, <span class="pl-c1">-</span><span class="pl-c1">1.31564981</span>, <span class="pl-c1">0.1420426</span> ],
[<span class="pl-c1">-</span><span class="pl-c1">0.62100712</span>, <span class="pl-c1">0.86350539</span>, <span class="pl-c1">-</span><span class="pl-c1">0.49176233</span>, <span class="pl-c1">-</span><span class="pl-c1">0.51831504</span>, <span class="pl-c1">1.98832398</span>],
[ <span class="pl-c1">1.2643767</span> , <span class="pl-c1">0.33973403</span>, <span class="pl-c1">-</span><span class="pl-c1">0.82126126</span>, <span class="pl-c1">-</span><span class="pl-c1">0.08305002</span>, <span class="pl-c1">-</span><span class="pl-c1">0.4985046</span> ]])
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">0.17966557</span>, <span class="pl-c1">-</span><span class="pl-c1">0.19387233</span>, <span class="pl-c1">1.77140599</span>, <span class="pl-c1">0.78315866</span>, <span class="pl-c1">-</span><span class="pl-c1">1.40862817</span>])
<span class="pl-s1">transformer</span> <span class="pl-c1">=</span> <span class="pl-v">SelectKBest</span>(<span class="pl-s1">score_func</span><span class="pl-c1">=</span><span class="pl-s1">chi2</span>, <span class="pl-s1">k</span><span class="pl-c1">=</span><span class="pl-c1">3</span>)
<span class="pl-s1">transformer</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">transformer</span>.<span class="pl-en">transform</span>(<span class="pl-v">X</span>).<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>]
<span class="pl-k">assert</span> <span class="pl-s1">transformer</span>.<span class="pl-en">transform</span>(<span class="pl-v">X</span>).<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>] <span class="pl-c1">==</span> <span class="pl-c1">3</span></pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
from sklearn.feature_selection import *
X = np.array([[-0.35407973, -0.73858161, -1.21871862, 0.01362241, -0.3565459 ],
[-2.92151461, -0.64259241, -0.43849487, 1.01860028, -0.84427892],
[-0.83171833, -0.0852727 , -1.89007728, -1.31564981, 0.1420426 ],
[-0.62100712, 0.86350539, -0.49176233, -0.51831504, 1.98832398],
[ 1.2643767 , 0.33973403, -0.82126126, -0.08305002, -0.4985046 ]])
y = np.array([-0.17966557, -0.19387233, 1.77140599, 0.78315866, -1.40862817])
transformer = SelectPercentile(score_func=chi2, percentile=60)
transformer.fit(X, y)
transformer.transform(X).shape[1]
assert transformer.transform(X).shape[1] == 3"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">feature_selection</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-c1">-</span><span class="pl-c1">0.35407973</span>, <span class="pl-c1">-</span><span class="pl-c1">0.73858161</span>, <span class="pl-c1">-</span><span class="pl-c1">1.21871862</span>, <span class="pl-c1">0.01362241</span>, <span class="pl-c1">-</span><span class="pl-c1">0.3565459</span> ],
[<span class="pl-c1">-</span><span class="pl-c1">2.92151461</span>, <span class="pl-c1">-</span><span class="pl-c1">0.64259241</span>, <span class="pl-c1">-</span><span class="pl-c1">0.43849487</span>, <span class="pl-c1">1.01860028</span>, <span class="pl-c1">-</span><span class="pl-c1">0.84427892</span>],
[<span class="pl-c1">-</span><span class="pl-c1">0.83171833</span>, <span class="pl-c1">-</span><span class="pl-c1">0.0852727</span> , <span class="pl-c1">-</span><span class="pl-c1">1.89007728</span>, <span class="pl-c1">-</span><span class="pl-c1">1.31564981</span>, <span class="pl-c1">0.1420426</span> ],
[<span class="pl-c1">-</span><span class="pl-c1">0.62100712</span>, <span class="pl-c1">0.86350539</span>, <span class="pl-c1">-</span><span class="pl-c1">0.49176233</span>, <span class="pl-c1">-</span><span class="pl-c1">0.51831504</span>, <span class="pl-c1">1.98832398</span>],
[ <span class="pl-c1">1.2643767</span> , <span class="pl-c1">0.33973403</span>, <span class="pl-c1">-</span><span class="pl-c1">0.82126126</span>, <span class="pl-c1">-</span><span class="pl-c1">0.08305002</span>, <span class="pl-c1">-</span><span class="pl-c1">0.4985046</span> ]])
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">-</span><span class="pl-c1">0.17966557</span>, <span class="pl-c1">-</span><span class="pl-c1">0.19387233</span>, <span class="pl-c1">1.77140599</span>, <span class="pl-c1">0.78315866</span>, <span class="pl-c1">-</span><span class="pl-c1">1.40862817</span>])
<span class="pl-s1">transformer</span> <span class="pl-c1">=</span> <span class="pl-v">SelectPercentile</span>(<span class="pl-s1">score_func</span><span class="pl-c1">=</span><span class="pl-s1">chi2</span>, <span class="pl-s1">percentile</span><span class="pl-c1">=</span><span class="pl-c1">60</span>)
<span class="pl-s1">transformer</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">transformer</span>.<span class="pl-en">transform</span>(<span class="pl-v">X</span>).<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>]
<span class="pl-k">assert</span> <span class="pl-s1">transformer</span>.<span class="pl-en">transform</span>(<span class="pl-v">X</span>).<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>] <span class="pl-c1">==</span> <span class="pl-c1">3</span></pre></div> | <p dir="auto">error: Command "aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/nvidia/.local/lib/python3.5/site-packages/numpy/core/include -I/home/nvidia/.local/lib/python3.5/site-packages/numpy/core/include -I/usr/include/python3.5m -c sklearn/neighbors/quad_tree.c -o build/temp.linux-aarch64-3.5/sklearn/neighbors/quad_tree.o -MMD -MF build/temp.linux-aarch64-3.5/sklearn/neighbors/quad_tree.o.d" failed with exit status 1</p> | 0 |
<p dir="auto">by <strong>mdriley</strong>:</p>
<pre class="notranslate">307 means "try the same verb on this new URL".
Client allows callers to define a redirect policy (CheckRedirect) for whether a given
HTTP redirect should or shouldn't be followed. However, Client.Do() passes an additional
policy to doFollowingRedirects() for GET, HEAD, PUT, and POST that is called before
CheckRedirect. For PUT and POST, that policy only redirects on 302 and 303. Further,
doFollowingRedirects() explicitly changes the verb from POST or PUT to GET on redirect.
As a result, the API provides no way for callers to follow a 307 redirect and keep the
verb.
I imagine the code was written not to follow these redirects because the spec for this
case says "the user agent MUST NOT automatically redirect the request unless it can
be confirmed by the user". The API should allow the CheckRedirect policy to say
such redirects are okay.
wget and curl both support these redirects.</pre> | <pre class="notranslate">Running gc for go 1.0.3.
In this code
<a href="http://play.golang.org/p/ePVOi7HdkD" rel="nofollow">http://play.golang.org/p/ePVOi7HdkD</a>
the compiler gives a syntax error of "prog.go:7: syntax error: unexpected name,
expecting semicolon or newline or }", but in the code given, the actual problem is
that there is a comma missing between the integer and the error return values. Might be
worth adding as a possible case.</pre> | 0 |
<p dir="auto">Hi community,</p>
<p dir="auto">Now the subproject <code class="notranslate">examples</code> has used the <code class="notranslate">flatten-maven-plugin</code> to reduce duplicate version declarations (since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1048139912" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/13512" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/13512/hovercard" href="https://github.com/apache/shardingsphere/issues/13512">#13512</a>).<br>
It is valuable, otherwise we still have to change a lot of version numbers during release (like this <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1412794506" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/21625" data-hovercard-type="pull_request" data-hovercard-url="/apache/shardingsphere/pull/21625/hovercard" href="https://github.com/apache/shardingsphere/pull/21625">#21625</a>)</p>
<p dir="auto">Therefore, I am going to use <code class="notranslate">${revision}</code> to define the version number in the same way for ShardingSphere, to facilitate maintenance.</p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before report a bug, make sure you have:</p>
<ul dir="auto">
<li>Searched open and closed <a href="https://github.com/apache/incubator-shardingsphere/issues">GitHub issues</a>.</li>
<li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li>
</ul>
<p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br>
If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">4.0.0-RC2 binary</p>
<h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-Proxy</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">insert into table return ok</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">ERROR 10002 (C1000): 2Unknown exception: [no table route info]</p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<p dir="auto">conf/server.yaml</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="authentication:
users:
cofree_dev:
password: cofree_dev
props:
sql.show: true"><pre class="notranslate"><span class="pl-ent">authentication</span>:
<span class="pl-ent">users</span>:
<span class="pl-ent">cofree_dev</span>:
<span class="pl-ent">password</span>: <span class="pl-s">cofree_dev</span>
<span class="pl-ent">props</span>:
<span class="pl-ent">sql.show</span>: <span class="pl-c1">true</span></pre></div>
<p dir="auto">conf/config-mydemo.yaml</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="schemaName: testdb
dataSources:
ds_Default:
url: jdbc:mysql://127.0.0.1:3306/testdb?characterEncoding=utf8&serverTimezone=UTC&useSSL=false
username: cofree_dev
password: cofree_dev
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
ds_0:
url: jdbc:mysql://127.0.0.1:3306/testdb_d0?characterEncoding=utf8&serverTimezone=UTC&useSSL=false
username: cofree_dev
password: cofree_dev
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
ds_1:
url: jdbc:mysql://127.0.0.1:3306/testdb_d1?characterEncoding=utf8&serverTimezone=UTC&useSSL=false
username: cofree_dev
password: cofree_dev
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
ds_2:
url: jdbc:mysql://127.0.0.1:3306/testdb_d2?characterEncoding=utf8&serverTimezone=UTC&useSSL=false
username: cofree_dev
password: cofree_dev
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
shardingRule:
tables:
common_regions:
actualDataNodes: ds_Default.common_regions
myexample_op_log:
actualDataNodes: ds_${0..2}.myexample_op_log
databaseStrategy:
inline:
shardingColumn: organization_id
algorithmExpression: ds${organization_id % 3}
tableStrategy:
none:
keyGenerator:
type: SNOWFLAKE
column: id
my_demos:
actualDataNodes: ds_${0..2}.my_demos
databaseStrategy:
inline:
shardingColumn: organization_id
algorithmExpression: ds${organization_id % 3}
tableStrategy:
none:
keyGenerator:
type: SNOWFLAKE
column: id
my_demo_items:
actualDataNodes: ds_${0..2}.my_demo_items_${0..2}
databaseStrategy:
inline:
shardingColumn: organization_id
algorithmExpression: ds${organization_id % 3}
tableStrategy:
inline:
shardingColumn: organization_id
algorithmExpression: my_demo_items_${organization_id % 2}
keyGenerator:
type: SNOWFLAKE
column: id
bindingTables:
- common_regions,myexample_op_log,my_demos,my_demo_items
defaultDatabaseStrategy:
none:
# inline:
# shardingColumn: organization_id
# algorithmExpression: ds_${organization_id % 3}
defaultTableStrategy:
none:"><pre class="notranslate"><span class="pl-ent">schemaName</span>: <span class="pl-s">testdb</span>
<span class="pl-ent">dataSources</span>:
<span class="pl-ent">ds_Default</span>:
<span class="pl-ent">url</span>: <span class="pl-s">jdbc:mysql://127.0.0.1:3306/testdb?characterEncoding=utf8&serverTimezone=UTC&useSSL=false</span>
<span class="pl-ent">username</span>: <span class="pl-s">cofree_dev</span>
<span class="pl-ent">password</span>: <span class="pl-s">cofree_dev</span>
<span class="pl-ent">connectionTimeoutMilliseconds</span>: <span class="pl-c1">30000</span>
<span class="pl-ent">idleTimeoutMilliseconds</span>: <span class="pl-c1">60000</span>
<span class="pl-ent">maxLifetimeMilliseconds</span>: <span class="pl-c1">1800000</span>
<span class="pl-ent">maxPoolSize</span>: <span class="pl-c1">50</span>
<span class="pl-ent">ds_0</span>:
<span class="pl-ent">url</span>: <span class="pl-s">jdbc:mysql://127.0.0.1:3306/testdb_d0?characterEncoding=utf8&serverTimezone=UTC&useSSL=false</span>
<span class="pl-ent">username</span>: <span class="pl-s">cofree_dev</span>
<span class="pl-ent">password</span>: <span class="pl-s">cofree_dev</span>
<span class="pl-ent">connectionTimeoutMilliseconds</span>: <span class="pl-c1">30000</span>
<span class="pl-ent">idleTimeoutMilliseconds</span>: <span class="pl-c1">60000</span>
<span class="pl-ent">maxLifetimeMilliseconds</span>: <span class="pl-c1">1800000</span>
<span class="pl-ent">maxPoolSize</span>: <span class="pl-c1">50</span>
<span class="pl-ent">ds_1</span>:
<span class="pl-ent">url</span>: <span class="pl-s">jdbc:mysql://127.0.0.1:3306/testdb_d1?characterEncoding=utf8&serverTimezone=UTC&useSSL=false</span>
<span class="pl-ent">username</span>: <span class="pl-s">cofree_dev</span>
<span class="pl-ent">password</span>: <span class="pl-s">cofree_dev</span>
<span class="pl-ent">connectionTimeoutMilliseconds</span>: <span class="pl-c1">30000</span>
<span class="pl-ent">idleTimeoutMilliseconds</span>: <span class="pl-c1">60000</span>
<span class="pl-ent">maxLifetimeMilliseconds</span>: <span class="pl-c1">1800000</span>
<span class="pl-ent">maxPoolSize</span>: <span class="pl-c1">50</span>
<span class="pl-ent">ds_2</span>:
<span class="pl-ent">url</span>: <span class="pl-s">jdbc:mysql://127.0.0.1:3306/testdb_d2?characterEncoding=utf8&serverTimezone=UTC&useSSL=false</span>
<span class="pl-ent">username</span>: <span class="pl-s">cofree_dev</span>
<span class="pl-ent">password</span>: <span class="pl-s">cofree_dev</span>
<span class="pl-ent">connectionTimeoutMilliseconds</span>: <span class="pl-c1">30000</span>
<span class="pl-ent">idleTimeoutMilliseconds</span>: <span class="pl-c1">60000</span>
<span class="pl-ent">maxLifetimeMilliseconds</span>: <span class="pl-c1">1800000</span>
<span class="pl-ent">maxPoolSize</span>: <span class="pl-c1">50</span>
<span class="pl-ent">shardingRule</span>:
<span class="pl-ent">tables</span>:
<span class="pl-ent">common_regions</span>:
<span class="pl-ent">actualDataNodes</span>: <span class="pl-s">ds_Default.common_regions</span>
<span class="pl-ent">myexample_op_log</span>:
<span class="pl-ent">actualDataNodes</span>: <span class="pl-s">ds_${0..2}.myexample_op_log</span>
<span class="pl-ent">databaseStrategy</span>:
<span class="pl-ent">inline</span>:
<span class="pl-ent">shardingColumn</span>: <span class="pl-s">organization_id</span>
<span class="pl-ent">algorithmExpression</span>: <span class="pl-s">ds${organization_id % 3}</span>
<span class="pl-ent">tableStrategy</span>:
<span class="pl-ent">none</span>:
<span class="pl-ent">keyGenerator</span>:
<span class="pl-ent">type</span>: <span class="pl-s">SNOWFLAKE</span>
<span class="pl-ent">column</span>: <span class="pl-s">id</span>
<span class="pl-ent">my_demos</span>:
<span class="pl-ent">actualDataNodes</span>: <span class="pl-s">ds_${0..2}.my_demos</span>
<span class="pl-ent">databaseStrategy</span>:
<span class="pl-ent">inline</span>:
<span class="pl-ent">shardingColumn</span>: <span class="pl-s">organization_id</span>
<span class="pl-ent">algorithmExpression</span>: <span class="pl-s">ds${organization_id % 3}</span>
<span class="pl-ent">tableStrategy</span>:
<span class="pl-ent">none</span>:
<span class="pl-ent">keyGenerator</span>:
<span class="pl-ent">type</span>: <span class="pl-s">SNOWFLAKE</span>
<span class="pl-ent">column</span>: <span class="pl-s">id</span>
<span class="pl-ent">my_demo_items</span>:
<span class="pl-ent">actualDataNodes</span>: <span class="pl-s">ds_${0..2}.my_demo_items_${0..2}</span>
<span class="pl-ent">databaseStrategy</span>:
<span class="pl-ent">inline</span>:
<span class="pl-ent">shardingColumn</span>: <span class="pl-s">organization_id</span>
<span class="pl-ent">algorithmExpression</span>: <span class="pl-s">ds${organization_id % 3}</span>
<span class="pl-ent">tableStrategy</span>:
<span class="pl-ent">inline</span>:
<span class="pl-ent">shardingColumn</span>: <span class="pl-s">organization_id</span>
<span class="pl-ent">algorithmExpression</span>: <span class="pl-s">my_demo_items_${organization_id % 2}</span>
<span class="pl-ent">keyGenerator</span>:
<span class="pl-ent">type</span>: <span class="pl-s">SNOWFLAKE</span>
<span class="pl-ent">column</span>: <span class="pl-s">id</span>
<span class="pl-ent">bindingTables</span>:
- <span class="pl-s">common_regions,myexample_op_log,my_demos,my_demo_items</span>
<span class="pl-ent">defaultDatabaseStrategy</span>:
<span class="pl-ent">none</span>:
<span class="pl-c"><span class="pl-c">#</span> inline:</span>
<span class="pl-c"><span class="pl-c">#</span> shardingColumn: organization_id</span>
<span class="pl-c"><span class="pl-c">#</span> algorithmExpression: ds_${organization_id % 3}</span>
<span class="pl-ent">defaultTableStrategy</span>:
<span class="pl-ent">none</span>:</pre></div>
<p dir="auto">sql to create database:</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CREATE DATABASE `testdb` DEFAULT CHARACTER SET = `utf8` DEFAULT COLLATE = `utf8_general_ci`;
CREATE DATABASE `testdb_d0` DEFAULT CHARACTER SET = `utf8` DEFAULT COLLATE = `utf8_general_ci`;
CREATE DATABASE `testdb_d1` DEFAULT CHARACTER SET = `utf8` DEFAULT COLLATE = `utf8_general_ci`;
CREATE DATABASE `testdb_d2` DEFAULT CHARACTER SET = `utf8` DEFAULT COLLATE = `utf8_general_ci`;"><pre class="notranslate"><span class="pl-k">CREATE</span> <span class="pl-k">DATABASE</span> `<span class="pl-en">testdb</span>` DEFAULT CHARACTER <span class="pl-k">SET</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">`</span>utf8<span class="pl-pds">`</span></span> DEFAULT COLLATE <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">`</span>utf8_general_ci<span class="pl-pds">`</span></span>;
<span class="pl-k">CREATE</span> <span class="pl-k">DATABASE</span> `<span class="pl-en">testdb_d0</span>` DEFAULT CHARACTER <span class="pl-k">SET</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">`</span>utf8<span class="pl-pds">`</span></span> DEFAULT COLLATE <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">`</span>utf8_general_ci<span class="pl-pds">`</span></span>;
<span class="pl-k">CREATE</span> <span class="pl-k">DATABASE</span> `<span class="pl-en">testdb_d1</span>` DEFAULT CHARACTER <span class="pl-k">SET</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">`</span>utf8<span class="pl-pds">`</span></span> DEFAULT COLLATE <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">`</span>utf8_general_ci<span class="pl-pds">`</span></span>;
<span class="pl-k">CREATE</span> <span class="pl-k">DATABASE</span> `<span class="pl-en">testdb_d2</span>` DEFAULT CHARACTER <span class="pl-k">SET</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">`</span>utf8<span class="pl-pds">`</span></span> DEFAULT COLLATE <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">`</span>utf8_general_ci<span class="pl-pds">`</span></span>;</pre></div>
<p dir="auto">sql to create tables:</p>
<p dir="auto">testdb:</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use testdb;
DROP TABLE IF EXISTS `common_regions`;
CREATE TABLE `common_regions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`parent_id` int(11) DEFAULT NULL,
`lft` int(11) DEFAULT NULL,
`rgt` int(11) DEFAULT NULL,
`depth` int(11) DEFAULT NULL,
`scope` int(11) NOT NULL DEFAULT '0',
`code` varchar(255) NOT NULL DEFAULT '' COMMENT '唯一代码标识',
`code_alias` varchar(255) DEFAULT NULL COMMENT '标识别名',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '标题名称',
`name_en` varchar(255) NOT NULL DEFAULT '' COMMENT '标题名称英文',
`description` varchar(255) DEFAULT NULL COMMENT '说明备注',
`created_at` datetime NOT NULL COMMENT '创建时间',
`created_name` varchar(255) NOT NULL DEFAULT '' COMMENT '创建者名称',
`created_by` int(11) NOT NULL DEFAULT '0' COMMENT '创建者id',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间',
`updated_name` varchar(255) NOT NULL DEFAULT '' COMMENT '更新者名称',
`updated_by` int(11) NOT NULL DEFAULT '0' COMMENT '更新者id',
`disabled_at` int(11) NOT NULL DEFAULT '0' COMMENT '禁用时间戳',
`disabled_by` int(11) NOT NULL DEFAULT '0' COMMENT '禁用者id',
`disabled_name` varchar(255) NOT NULL DEFAULT '' COMMENT '禁用者名称',
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`parent_id`,`scope`,`code`),
UNIQUE KEY `name` (`parent_id`,`scope`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=274 DEFAULT CHARSET=utf8;"><pre class="notranslate">use testdb;
<span class="pl-k">DROP</span> <span class="pl-k">TABLE</span> IF EXISTS <span class="pl-s"><span class="pl-pds">`</span>common_regions<span class="pl-pds">`</span></span>;
<span class="pl-k">CREATE</span> <span class="pl-k">TABLE</span> `<span class="pl-en">common_regions</span>` (
<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">10</span>) unsigned <span class="pl-k">NOT NULL</span> AUTO_INCREMENT,
<span class="pl-s"><span class="pl-pds">`</span>parent_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) DEFAULT <span class="pl-k">NULL</span>,
<span class="pl-s"><span class="pl-pds">`</span>lft<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) DEFAULT <span class="pl-k">NULL</span>,
<span class="pl-s"><span class="pl-pds">`</span>rgt<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) DEFAULT <span class="pl-k">NULL</span>,
<span class="pl-s"><span class="pl-pds">`</span>depth<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) DEFAULT <span class="pl-k">NULL</span>,
<span class="pl-s"><span class="pl-pds">`</span>scope<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>唯一代码标识<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>code_alias<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>标识别名<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>标题名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>name_en<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>标题名称英文<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>description<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>说明备注<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_at<span class="pl-pds">`</span></span> datetime <span class="pl-k">NOT NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建时间<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_at<span class="pl-pds">`</span></span> datetime DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新时间<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>disabled_at<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>禁用时间戳<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>disabled_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>禁用者id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>disabled_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>禁用者名称<span class="pl-pds">'</span></span>,
<span class="pl-k">PRIMARY KEY</span> (<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span>),
UNIQUE KEY <span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>parent_id<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>scope<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span>),
UNIQUE KEY <span class="pl-s"><span class="pl-pds">`</span>name<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>parent_id<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>scope<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>name<span class="pl-pds">`</span></span>)
) ENGINE<span class="pl-k">=</span>InnoDB AUTO_INCREMENT<span class="pl-k">=</span><span class="pl-c1">274</span> DEFAULT CHARSET<span class="pl-k">=</span>utf8;</pre></div>
<p dir="auto">testdb_d0-testdb_d2:</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# ************************************************************
# Sequel Pro SQL dump
# Version 481
#
# https://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.26-0ubuntu0.18.04.1-log)
# Database: testdb_d0
# Generation Time: 2019-11-21 12:00:59 +0000
# ************************************************************
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
SET NAMES utf8mb4;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
# Dump of table my_demo_items_0
# ------------------------------------------------------------
DROP TABLE IF EXISTS `my_demo_items_0`;
CREATE TABLE `my_demo_items_0` (
`id` int(11) NOT NULL,
`organization_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属组织id',
`head_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属主条目id',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '条目名称',
`code` varchar(40) NOT NULL DEFAULT '' COMMENT '条目标识',
`price` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '价格',
`description` varchar(255) NOT NULL DEFAULT '' COMMENT '样例详细说明',
`created_by` int(11) NOT NULL DEFAULT '0' COMMENT '创建者ID',
`created_name` varchar(255) NOT NULL DEFAULT '' COMMENT '创建者名称',
`created_at` datetime NOT NULL COMMENT '创建时间戳',
`updated_by` int(11) DEFAULT '0' COMMENT '更新者ID',
`updated_name` varchar(255) DEFAULT NULL COMMENT '更新者名称',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间戳',
PRIMARY KEY (`id`),
KEY `organization_id` (`organization_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='我的样例条目';
# Dump of table my_demo_items_1
# ------------------------------------------------------------
DROP TABLE IF EXISTS `my_demo_items_1`;
CREATE TABLE `my_demo_items_1` (
`id` int(11) NOT NULL,
`organization_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属组织id',
`head_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属主条目id',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '条目名称',
`code` varchar(40) NOT NULL DEFAULT '' COMMENT '条目标识',
`price` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '价格',
`description` varchar(255) NOT NULL DEFAULT '' COMMENT '样例详细说明',
`created_by` int(11) NOT NULL DEFAULT '0' COMMENT '创建者ID',
`created_name` varchar(255) NOT NULL DEFAULT '' COMMENT '创建者名称',
`created_at` datetime NOT NULL COMMENT '创建时间戳',
`updated_by` int(11) DEFAULT '0' COMMENT '更新者ID',
`updated_name` varchar(255) DEFAULT NULL COMMENT '更新者名称',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间戳',
PRIMARY KEY (`id`),
KEY `organization_id` (`organization_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='我的样例条目';
# Dump of table my_demo_items_2
# ------------------------------------------------------------
DROP TABLE IF EXISTS `my_demo_items_2`;
CREATE TABLE `my_demo_items_2` (
`id` int(11) NOT NULL,
`organization_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属组织id',
`head_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属主条目id',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '条目名称',
`code` varchar(40) NOT NULL DEFAULT '' COMMENT '条目标识',
`price` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '价格',
`description` varchar(255) NOT NULL DEFAULT '' COMMENT '样例详细说明',
`created_by` int(11) NOT NULL DEFAULT '0' COMMENT '创建者ID',
`created_name` varchar(255) NOT NULL DEFAULT '' COMMENT '创建者名称',
`created_at` datetime NOT NULL COMMENT '创建时间戳',
`updated_by` int(11) DEFAULT '0' COMMENT '更新者ID',
`updated_name` varchar(255) DEFAULT NULL COMMENT '更新者名称',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间戳',
PRIMARY KEY (`id`),
KEY `organization_id` (`organization_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='我的样例条目';
# Dump of table my_demos
# ------------------------------------------------------------
DROP TABLE IF EXISTS `my_demos`;
CREATE TABLE `my_demos` (
`id` int(11) NOT NULL,
`organization_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属组织id',
`assign_id` int(11) NOT NULL DEFAULT '0' COMMENT '负责人id',
`process_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '处理状态 0初始化/1已提交/2已审核/3已退回/4处理中/5处理失败/6处理成功/7已取消/8已关闭',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题(组织内唯一)',
`code` varchar(40) DEFAULT '' COMMENT 'Code标识(组织内唯一)',
`price` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '价格',
`description` varchar(255) NOT NULL DEFAULT '' COMMENT '样例详细说明',
`meta` text NOT NULL COMMENT '附加属性',
`created_by` int(11) NOT NULL DEFAULT '0' COMMENT '创建者ID',
`created_name` varchar(255) NOT NULL DEFAULT '' COMMENT '创建者名称',
`created_at` datetime NOT NULL COMMENT '创建时间戳',
`updated_by` int(11) DEFAULT '0' COMMENT '更新者ID',
`updated_name` varchar(255) DEFAULT NULL COMMENT '更新者名称',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间戳',
`disabled_by` int(11) DEFAULT '0' COMMENT '删除者ID',
`disabled_name` varchar(255) DEFAULT NULL COMMENT '删除者名称',
`disabled_at` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间戳',
PRIMARY KEY (`id`),
UNIQUE KEY `title` (`title`,`organization_id`,`disabled_at`),
UNIQUE KEY `code` (`code`,`organization_id`,`disabled_at`),
KEY `organization_id` (`organization_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='我的样例';
# Dump of table myexample_op_log
# ------------------------------------------------------------
DROP TABLE IF EXISTS `myexample_op_log`;
CREATE TABLE `myexample_op_log` (
`id` int(11) unsigned NOT NULL,
`system_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属系统ID',
`organization_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属组织ID',
`op_user_id` int(10) NOT NULL DEFAULT '0' COMMENT '操作人员ID',
`op_user_name` varchar(50) NOT NULL COMMENT '操作人员名称',
`op_model` varchar(50) NOT NULL DEFAULT '' COMMENT '操作模块',
`op_action` varchar(50) NOT NULL DEFAULT '' COMMENT '操作类型',
`op_data` varchar(2048) DEFAULT '' COMMENT '操作相关数据',
`op_remark` varchar(255) NOT NULL DEFAULT '' COMMENT '操作说明',
`op_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '操作触发时间戳',
`created_at` datetime NOT NULL COMMENT '创建时间',
`created_by` int(11) NOT NULL DEFAULT '0' COMMENT '创建者id',
`created_name` varchar(255) NOT NULL DEFAULT '' COMMENT '创建者名称',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间',
`updated_by` int(11) NOT NULL DEFAULT '0' COMMENT '更新者id',
`updated_name` varchar(255) NOT NULL DEFAULT '' COMMENT '更新者名称',
PRIMARY KEY (`id`),
KEY `op_model` (`system_id`,`organization_id`,`op_model`) USING BTREE,
KEY `op_user_id` (`op_user_id`) USING BTREE,
KEY `organization_id` (`organization_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='库存分配操作日志';
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> ************************************************************</span>
<span class="pl-c"><span class="pl-c">#</span> Sequel Pro SQL dump</span>
<span class="pl-c"><span class="pl-c">#</span> Version 481</span>
<span class="pl-c"><span class="pl-c">#</span></span>
<span class="pl-c"><span class="pl-c">#</span> https://www.sequelpro.com/</span>
<span class="pl-c"><span class="pl-c">#</span> https://github.com/sequelpro/sequelpro</span>
<span class="pl-c"><span class="pl-c">#</span></span>
<span class="pl-c"><span class="pl-c">#</span> Host: 127.0.0.1 (MySQL 5.7.26-0ubuntu0.18.04.1-log)</span>
<span class="pl-c"><span class="pl-c">#</span> Database: testdb_d0</span>
<span class="pl-c"><span class="pl-c">#</span> Generation Time: 2019-11-21 12:00:59 +0000</span>
<span class="pl-c"><span class="pl-c">#</span> ************************************************************</span>
<span class="pl-c"><span class="pl-c">/*</span>!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40101 SET NAMES utf8 <span class="pl-c">*/</span></span>;
<span class="pl-k">SET</span> NAMES utf8mb4;
<span class="pl-c"><span class="pl-c">/*</span>!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">#</span> Dump of table my_demo_items_0</span>
<span class="pl-c"><span class="pl-c">#</span> ------------------------------------------------------------</span>
<span class="pl-k">DROP</span> <span class="pl-k">TABLE</span> IF EXISTS <span class="pl-s"><span class="pl-pds">`</span>my_demo_items_0<span class="pl-pds">`</span></span>;
<span class="pl-k">CREATE</span> <span class="pl-k">TABLE</span> `<span class="pl-en">my_demo_items_0</span>` (
<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span>,
<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>所属组织id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>head_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>所属主条目id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>条目名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">40</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>条目标识<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>price<span class="pl-pds">`</span></span> <span class="pl-k">decimal</span>(<span class="pl-c1">9</span>,<span class="pl-c1">2</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0.00<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>价格<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>description<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>样例详细说明<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_at<span class="pl-pds">`</span></span> datetime <span class="pl-k">NOT NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建时间戳<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_at<span class="pl-pds">`</span></span> datetime DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新时间戳<span class="pl-pds">'</span></span>,
<span class="pl-k">PRIMARY KEY</span> (<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span>),
KEY <span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span>)
) ENGINE<span class="pl-k">=</span>InnoDB DEFAULT CHARSET<span class="pl-k">=</span>utf8 COMMENT<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>我的样例条目<span class="pl-pds">'</span></span>;
<span class="pl-c"><span class="pl-c">#</span> Dump of table my_demo_items_1</span>
<span class="pl-c"><span class="pl-c">#</span> ------------------------------------------------------------</span>
<span class="pl-k">DROP</span> <span class="pl-k">TABLE</span> IF EXISTS <span class="pl-s"><span class="pl-pds">`</span>my_demo_items_1<span class="pl-pds">`</span></span>;
<span class="pl-k">CREATE</span> <span class="pl-k">TABLE</span> `<span class="pl-en">my_demo_items_1</span>` (
<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span>,
<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>所属组织id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>head_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>所属主条目id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>条目名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">40</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>条目标识<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>price<span class="pl-pds">`</span></span> <span class="pl-k">decimal</span>(<span class="pl-c1">9</span>,<span class="pl-c1">2</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0.00<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>价格<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>description<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>样例详细说明<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_at<span class="pl-pds">`</span></span> datetime <span class="pl-k">NOT NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建时间戳<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_at<span class="pl-pds">`</span></span> datetime DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新时间戳<span class="pl-pds">'</span></span>,
<span class="pl-k">PRIMARY KEY</span> (<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span>),
KEY <span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span>)
) ENGINE<span class="pl-k">=</span>InnoDB DEFAULT CHARSET<span class="pl-k">=</span>utf8 COMMENT<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>我的样例条目<span class="pl-pds">'</span></span>;
<span class="pl-c"><span class="pl-c">#</span> Dump of table my_demo_items_2</span>
<span class="pl-c"><span class="pl-c">#</span> ------------------------------------------------------------</span>
<span class="pl-k">DROP</span> <span class="pl-k">TABLE</span> IF EXISTS <span class="pl-s"><span class="pl-pds">`</span>my_demo_items_2<span class="pl-pds">`</span></span>;
<span class="pl-k">CREATE</span> <span class="pl-k">TABLE</span> `<span class="pl-en">my_demo_items_2</span>` (
<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span>,
<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>所属组织id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>head_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>所属主条目id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>条目名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">40</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>条目标识<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>price<span class="pl-pds">`</span></span> <span class="pl-k">decimal</span>(<span class="pl-c1">9</span>,<span class="pl-c1">2</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0.00<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>价格<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>description<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>样例详细说明<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_at<span class="pl-pds">`</span></span> datetime <span class="pl-k">NOT NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建时间戳<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_at<span class="pl-pds">`</span></span> datetime DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新时间戳<span class="pl-pds">'</span></span>,
<span class="pl-k">PRIMARY KEY</span> (<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span>),
KEY <span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span>)
) ENGINE<span class="pl-k">=</span>InnoDB DEFAULT CHARSET<span class="pl-k">=</span>utf8 COMMENT<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>我的样例条目<span class="pl-pds">'</span></span>;
<span class="pl-c"><span class="pl-c">#</span> Dump of table my_demos</span>
<span class="pl-c"><span class="pl-c">#</span> ------------------------------------------------------------</span>
<span class="pl-k">DROP</span> <span class="pl-k">TABLE</span> IF EXISTS <span class="pl-s"><span class="pl-pds">`</span>my_demos<span class="pl-pds">`</span></span>;
<span class="pl-k">CREATE</span> <span class="pl-k">TABLE</span> `<span class="pl-en">my_demos</span>` (
<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span>,
<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>所属组织id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>assign_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>负责人id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>process_status<span class="pl-pds">`</span></span> <span class="pl-k">tinyint</span>(<span class="pl-c1">4</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>处理状态 0初始化/1已提交/2已审核/3已退回/4处理中/5处理失败/6处理成功/7已取消/8已关闭<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>title<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>标题(组织内唯一)<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">40</span>) DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>Code标识(组织内唯一)<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>price<span class="pl-pds">`</span></span> <span class="pl-k">decimal</span>(<span class="pl-c1">9</span>,<span class="pl-c1">2</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0.00<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>价格<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>description<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>样例详细说明<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>meta<span class="pl-pds">`</span></span> <span class="pl-k">text</span> <span class="pl-k">NOT NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>附加属性<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_at<span class="pl-pds">`</span></span> datetime <span class="pl-k">NOT NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建时间戳<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_at<span class="pl-pds">`</span></span> datetime DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新时间戳<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>disabled_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>删除者ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>disabled_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>删除者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>disabled_at<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>删除时间戳<span class="pl-pds">'</span></span>,
<span class="pl-k">PRIMARY KEY</span> (<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span>),
UNIQUE KEY <span class="pl-s"><span class="pl-pds">`</span>title<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>title<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>disabled_at<span class="pl-pds">`</span></span>),
UNIQUE KEY <span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>disabled_at<span class="pl-pds">`</span></span>),
KEY <span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span>)
) ENGINE<span class="pl-k">=</span>InnoDB DEFAULT CHARSET<span class="pl-k">=</span>utf8 COMMENT<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>我的样例<span class="pl-pds">'</span></span>;
<span class="pl-c"><span class="pl-c">#</span> Dump of table myexample_op_log</span>
<span class="pl-c"><span class="pl-c">#</span> ------------------------------------------------------------</span>
<span class="pl-k">DROP</span> <span class="pl-k">TABLE</span> IF EXISTS <span class="pl-s"><span class="pl-pds">`</span>myexample_op_log<span class="pl-pds">`</span></span>;
<span class="pl-k">CREATE</span> <span class="pl-k">TABLE</span> `<span class="pl-en">myexample_op_log</span>` (
<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) unsigned <span class="pl-k">NOT NULL</span>,
<span class="pl-s"><span class="pl-pds">`</span>system_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>所属系统ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>所属组织ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>op_user_id<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">10</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>操作人员ID<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>op_user_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">50</span>) <span class="pl-k">NOT NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>操作人员名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>op_model<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">50</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>操作模块<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>op_action<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">50</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>操作类型<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>op_data<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">2048</span>) DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>操作相关数据<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>op_remark<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>操作说明<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>op_at<span class="pl-pds">`</span></span> <span class="pl-k">timestamp</span> <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-c1">CURRENT_TIMESTAMP</span> <span class="pl-k">ON</span> <span class="pl-k">UPDATE</span> <span class="pl-c1">CURRENT_TIMESTAMP</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>操作触发时间戳<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_at<span class="pl-pds">`</span></span> datetime <span class="pl-k">NOT NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建时间<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>创建者名称<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_at<span class="pl-pds">`</span></span> datetime DEFAULT <span class="pl-k">NULL</span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新时间<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_by<span class="pl-pds">`</span></span> <span class="pl-k">int</span>(<span class="pl-c1">11</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span>0<span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者id<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_name<span class="pl-pds">`</span></span> <span class="pl-k">varchar</span>(<span class="pl-c1">255</span>) <span class="pl-k">NOT NULL</span> DEFAULT <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> COMMENT <span class="pl-s"><span class="pl-pds">'</span>更新者名称<span class="pl-pds">'</span></span>,
<span class="pl-k">PRIMARY KEY</span> (<span class="pl-s"><span class="pl-pds">`</span>id<span class="pl-pds">`</span></span>),
KEY <span class="pl-s"><span class="pl-pds">`</span>op_model<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>system_id<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span>,<span class="pl-s"><span class="pl-pds">`</span>op_model<span class="pl-pds">`</span></span>) USING BTREE,
KEY <span class="pl-s"><span class="pl-pds">`</span>op_user_id<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>op_user_id<span class="pl-pds">`</span></span>) USING BTREE,
KEY <span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span> (<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span>)
) ENGINE<span class="pl-k">=</span>InnoDB DEFAULT CHARSET<span class="pl-k">=</span>utf8 COMMENT<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>库存分配操作日志<span class="pl-pds">'</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40111 SET SQL_NOTES=@OLD_SQL_NOTES <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40101 SET SQL_MODE=@OLD_SQL_MODE <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS <span class="pl-c">*/</span></span>;
<span class="pl-c"><span class="pl-c">/*</span>!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION <span class="pl-c">*/</span></span>;
</pre></div>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">mysql client connect console:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mysql -ucofree_dev -pcofree_dev -h127.0.0.1 -P3307"><pre class="notranslate">mysql -ucofree_dev -pcofree_dev -h127.0.0.1 -P3307</pre></div>
<p dir="auto">My SQL try to insert into my_demos table GOT failed:</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use testdb;
INSERT INTO `my_demos` (
`organization_id`,
`assign_id`,
`process_status`,
`title`,
`code`,
`price`,
`description`,
`meta`,
`created_by`,
`created_name`,
`created_at`,
`updated_by`,
`updated_name`,
`updated_at`,
`disabled_by`,
`disabled_name`,
`disabled_at`
) VALUES (
1, 123, 4, 'devt1', 'devt1', '0.00', 'devt1', 'devt1meta', 9527, 'aaa', '2019-11-21 19:26:00', 9527, 'aaa', '2019-11-21 19:26:00', 0, 'aaa', 0);
"><pre class="notranslate">use testdb;
<span class="pl-k">INSERT INTO</span> <span class="pl-s"><span class="pl-pds">`</span>my_demos<span class="pl-pds">`</span></span> (
<span class="pl-s"><span class="pl-pds">`</span>organization_id<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>assign_id<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>process_status<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>title<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>code<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>price<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>description<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>meta<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_by<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_name<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>created_at<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_by<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_name<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>updated_at<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>disabled_by<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>disabled_name<span class="pl-pds">`</span></span>,
<span class="pl-s"><span class="pl-pds">`</span>disabled_at<span class="pl-pds">`</span></span>
) <span class="pl-k">VALUES</span> (
<span class="pl-c1">1</span>, <span class="pl-c1">123</span>, <span class="pl-c1">4</span>, <span class="pl-s"><span class="pl-pds">'</span>devt1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>devt1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>0.00<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>devt1<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>devt1meta<span class="pl-pds">'</span></span>, <span class="pl-c1">9527</span>, <span class="pl-s"><span class="pl-pds">'</span>aaa<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>2019-11-21 19:26:00<span class="pl-pds">'</span></span>, <span class="pl-c1">9527</span>, <span class="pl-s"><span class="pl-pds">'</span>aaa<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>2019-11-21 19:26:00<span class="pl-pds">'</span></span>, <span class="pl-c1">0</span>, <span class="pl-s"><span class="pl-pds">'</span>aaa<span class="pl-pds">'</span></span>, <span class="pl-c1">0</span>);
</pre></div>
<p dir="auto">logs/stdout.log</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[INFO ] 12:06:46.045 [epollEventLoopGroup-2-1] i.n.handler.logging.LoggingHandler - [id: 0xbd58bd68, L:/0.0.0.0:3307] READ: [id: 0xf0cbf665, L:/127.0.0.1:3307 - R:/127.0.0.1:46694]
[INFO ] 12:06:46.046 [epollEventLoopGroup-2-1] i.n.handler.logging.LoggingHandler - [id: 0xbd58bd68, L:/0.0.0.0:3307] READ COMPLETE
line 1:7 extraneous input 'DATABASE' expecting {'!', '~', '+', '-', '*', '.', '(', '{', '?', '@', TRUNCATE, POSITION, VIEW, DISTINCT, CASE, CAST, TRIM, SUBSTRING, IF, NOT, NULL, TRUE, FALSE, EXISTS, ALL, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, CHAR, INTERVAL, DATE, TIME, TIMESTAMP, LOCALTIME, LOCALTIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, REPLACE, MODIFY, DISTINCTROW, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, ROW, WITHOUT, BINARY, ESCAPE, SUBPARTITION, STORAGE, SUPER, SUBSTR, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, CONVERT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, EXTRACT, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MATCH, MEMORY, NONE, NOW, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, HIGH_PRIORITY, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_CALC_FOUND_ROWS, SQL_NO_CACHE, SQL_SMALL_RESULT, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, STRAIGHT_JOIN, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, CURRENT_TIMESTAMP, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, IDENTIFIER_, STRING_, NUMBER_, HEX_DIGIT_, BIT_NUM_}
line 1:16 no viable alternative at input '()'
[INFO ] 12:06:51.549 [ShardingSphere-Command-8] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.550 [ShardingSphere-Command-8] ShardingSphere-SQL - Logic SQL: show tables
[INFO ] 12:06:51.550 [ShardingSphere-Command-8] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[], schema=Optional.absent()))
[INFO ] 12:06:51.550 [ShardingSphere-Command-8] ShardingSphere-SQL - Actual SQL: ds_Default ::: show tables
[INFO ] 12:06:51.550 [ShardingSphere-Command-8] ShardingSphere-SQL - Actual SQL: ds_2 ::: show tables
[INFO ] 12:06:51.569 [ShardingSphere-Command-9] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.569 [ShardingSphere-Command-9] ShardingSphere-SQL - Logic SQL: SHOW COLUMNS FROM common_regions FROM testdb
[INFO ] 12:06:51.569 [ShardingSphere-Command-9] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[Table(name=common_regions, alias=Optional.absent())], schema=Optional.absent()))
[INFO ] 12:06:51.570 [ShardingSphere-Command-9] ShardingSphere-SQL - Actual SQL: ds_Default ::: SHOW COLUMNS FROM common_regions
[INFO ] 12:06:51.579 [ShardingSphere-Command-10] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.580 [ShardingSphere-Command-10] ShardingSphere-SQL - Logic SQL: SHOW COLUMNS FROM my_demo_items FROM testdb
[INFO ] 12:06:51.580 [ShardingSphere-Command-10] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[Table(name=my_demo_items, alias=Optional.absent())], schema=Optional.absent()))
[INFO ] 12:06:51.580 [ShardingSphere-Command-10] ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW COLUMNS FROM my_demo_items_0
[INFO ] 12:06:51.590 [ShardingSphere-Command-11] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.590 [ShardingSphere-Command-11] ShardingSphere-SQL - Logic SQL: SHOW COLUMNS FROM my_demos FROM testdb
[INFO ] 12:06:51.590 [ShardingSphere-Command-11] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[Table(name=my_demos, alias=Optional.absent())], schema=Optional.absent()))
[INFO ] 12:06:51.590 [ShardingSphere-Command-11] ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW COLUMNS FROM my_demos
[INFO ] 12:06:51.599 [ShardingSphere-Command-12] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.599 [ShardingSphere-Command-12] ShardingSphere-SQL - Logic SQL: SHOW COLUMNS FROM myexample_op_log FROM testdb
[INFO ] 12:06:51.600 [ShardingSphere-Command-12] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[Table(name=myexample_op_log, alias=Optional.absent())], schema=Optional.absent()))
[INFO ] 12:06:51.600 [ShardingSphere-Command-12] ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW COLUMNS FROM myexample_op_log
[ERROR] 12:07:13.902 [ShardingSphere-Command-13] o.a.s.s.f.c.CommandExecutorTask - Exception occur:
java.lang.IllegalStateException: no table route info
at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.routeTables(StandardRoutingEngine.java:209)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.route(StandardRoutingEngine.java:190)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.routeByShardingConditionsWithCondition(StandardRoutingEngine.java:117)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.routeByShardingConditions(StandardRoutingEngine.java:111)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.getDataNodes(StandardRoutingEngine.java:96)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.route(StandardRoutingEngine.java:74)
at org.apache.shardingsphere.core.route.router.sharding.ParsingSQLRouter.route(ParsingSQLRouter.java:78)
at org.apache.shardingsphere.core.route.StatementRoutingEngine.route(StatementRoutingEngine.java:56)
at org.apache.shardingsphere.core.SimpleQueryShardingEngine.route(SimpleQueryShardingEngine.java:60)
at org.apache.shardingsphere.core.BaseShardingEngine.executeRoute(BaseShardingEngine.java:86)
at org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:70)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.doShardingRoute(StatementExecutorWrapper.java:75)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.route(StatementExecutorWrapper.java:61)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:80)
at org.apache.shardingsphere.shardingproxy.backend.text.query.QueryBackendHandler.execute(QueryBackendHandler.java:54)
at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:72)
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:86)
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
"><pre lang="log" class="notranslate"><code class="notranslate">[INFO ] 12:06:46.045 [epollEventLoopGroup-2-1] i.n.handler.logging.LoggingHandler - [id: 0xbd58bd68, L:/0.0.0.0:3307] READ: [id: 0xf0cbf665, L:/127.0.0.1:3307 - R:/127.0.0.1:46694]
[INFO ] 12:06:46.046 [epollEventLoopGroup-2-1] i.n.handler.logging.LoggingHandler - [id: 0xbd58bd68, L:/0.0.0.0:3307] READ COMPLETE
line 1:7 extraneous input 'DATABASE' expecting {'!', '~', '+', '-', '*', '.', '(', '{', '?', '@', TRUNCATE, POSITION, VIEW, DISTINCT, CASE, CAST, TRIM, SUBSTRING, IF, NOT, NULL, TRUE, FALSE, EXISTS, ALL, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, CHAR, INTERVAL, DATE, TIME, TIMESTAMP, LOCALTIME, LOCALTIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, REPLACE, MODIFY, DISTINCTROW, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, ROW, WITHOUT, BINARY, ESCAPE, SUBPARTITION, STORAGE, SUPER, SUBSTR, TEMPORARY, THAN, UNBOUNDED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, CONVERT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, EXTRACT, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MATCH, MEMORY, NONE, NOW, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, HIGH_PRIORITY, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_CALC_FOUND_ROWS, SQL_NO_CACHE, SQL_SMALL_RESULT, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, STRAIGHT_JOIN, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, CURRENT_TIMESTAMP, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, IDENTIFIER_, STRING_, NUMBER_, HEX_DIGIT_, BIT_NUM_}
line 1:16 no viable alternative at input '()'
[INFO ] 12:06:51.549 [ShardingSphere-Command-8] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.550 [ShardingSphere-Command-8] ShardingSphere-SQL - Logic SQL: show tables
[INFO ] 12:06:51.550 [ShardingSphere-Command-8] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[], schema=Optional.absent()))
[INFO ] 12:06:51.550 [ShardingSphere-Command-8] ShardingSphere-SQL - Actual SQL: ds_Default ::: show tables
[INFO ] 12:06:51.550 [ShardingSphere-Command-8] ShardingSphere-SQL - Actual SQL: ds_2 ::: show tables
[INFO ] 12:06:51.569 [ShardingSphere-Command-9] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.569 [ShardingSphere-Command-9] ShardingSphere-SQL - Logic SQL: SHOW COLUMNS FROM common_regions FROM testdb
[INFO ] 12:06:51.569 [ShardingSphere-Command-9] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[Table(name=common_regions, alias=Optional.absent())], schema=Optional.absent()))
[INFO ] 12:06:51.570 [ShardingSphere-Command-9] ShardingSphere-SQL - Actual SQL: ds_Default ::: SHOW COLUMNS FROM common_regions
[INFO ] 12:06:51.579 [ShardingSphere-Command-10] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.580 [ShardingSphere-Command-10] ShardingSphere-SQL - Logic SQL: SHOW COLUMNS FROM my_demo_items FROM testdb
[INFO ] 12:06:51.580 [ShardingSphere-Command-10] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[Table(name=my_demo_items, alias=Optional.absent())], schema=Optional.absent()))
[INFO ] 12:06:51.580 [ShardingSphere-Command-10] ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW COLUMNS FROM my_demo_items_0
[INFO ] 12:06:51.590 [ShardingSphere-Command-11] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.590 [ShardingSphere-Command-11] ShardingSphere-SQL - Logic SQL: SHOW COLUMNS FROM my_demos FROM testdb
[INFO ] 12:06:51.590 [ShardingSphere-Command-11] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[Table(name=my_demos, alias=Optional.absent())], schema=Optional.absent()))
[INFO ] 12:06:51.590 [ShardingSphere-Command-11] ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW COLUMNS FROM my_demos
[INFO ] 12:06:51.599 [ShardingSphere-Command-12] ShardingSphere-SQL - Rule Type: sharding
[INFO ] 12:06:51.599 [ShardingSphere-Command-12] ShardingSphere-SQL - Logic SQL: SHOW COLUMNS FROM myexample_op_log FROM testdb
[INFO ] 12:06:51.600 [ShardingSphere-Command-12] ShardingSphere-SQL - SQLStatement: TransparentOptimizedStatement(tables=Tables(tables=[Table(name=myexample_op_log, alias=Optional.absent())], schema=Optional.absent()))
[INFO ] 12:06:51.600 [ShardingSphere-Command-12] ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW COLUMNS FROM myexample_op_log
[ERROR] 12:07:13.902 [ShardingSphere-Command-13] o.a.s.s.f.c.CommandExecutorTask - Exception occur:
java.lang.IllegalStateException: no table route info
at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.routeTables(StandardRoutingEngine.java:209)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.route(StandardRoutingEngine.java:190)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.routeByShardingConditionsWithCondition(StandardRoutingEngine.java:117)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.routeByShardingConditions(StandardRoutingEngine.java:111)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.getDataNodes(StandardRoutingEngine.java:96)
at org.apache.shardingsphere.core.route.type.standard.StandardRoutingEngine.route(StandardRoutingEngine.java:74)
at org.apache.shardingsphere.core.route.router.sharding.ParsingSQLRouter.route(ParsingSQLRouter.java:78)
at org.apache.shardingsphere.core.route.StatementRoutingEngine.route(StatementRoutingEngine.java:56)
at org.apache.shardingsphere.core.SimpleQueryShardingEngine.route(SimpleQueryShardingEngine.java:60)
at org.apache.shardingsphere.core.BaseShardingEngine.executeRoute(BaseShardingEngine.java:86)
at org.apache.shardingsphere.core.BaseShardingEngine.shard(BaseShardingEngine.java:70)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.doShardingRoute(StatementExecutorWrapper.java:75)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.wrapper.StatementExecutorWrapper.route(StatementExecutorWrapper.java:61)
at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:80)
at org.apache.shardingsphere.shardingproxy.backend.text.query.QueryBackendHandler.execute(QueryBackendHandler.java:54)
at org.apache.shardingsphere.shardingproxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:72)
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:86)
at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
</code></pre></div> | 0 |
<ul dir="auto">
<li>OpenCV => 4.2</li>
<li>Operating System / Platform => Windows 64 Bit</li>
<li>opencv-contrib-python 4.2.0.34</li>
<li>opencv-python 4.2.0.34</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Video is 06.933 sec long with 25 FPS, what makes 173 frames (observed in video player)</p>
<p dir="auto">However :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cap = cv2.VideoCapture(video_path)
cap.get(cv2.CAP_PROP_FRAME_COUNT)"><pre class="notranslate"><code class="notranslate">cap = cv2.VideoCapture(video_path)
cap.get(cv2.CAP_PROP_FRAME_COUNT)
</code></pre></div>
<p dir="auto">gives 172 frames. And while counting manual:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="while(cap.isOpened()):
ret, frame = cap.read()
if ret == True:
frame_index += 1
else:
break"><pre class="notranslate"><code class="notranslate">while(cap.isOpened()):
ret, frame = cap.read()
if ret == True:
frame_index += 1
else:
break
</code></pre></div>
<p dir="auto">it can't go any further than 168 frame</p>
<p dir="auto">Sadly I can't share the video file</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => tag 4.1.0</li>
<li>Operating System / Platform => ubuntu 16.04 x64</li>
<li>Compiler => gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">i have installed llvm/halide, and build opencv with halide support (with debug version).<br>
i use the source code exactly the same as <a href="https://docs.opencv.org/3.3.1/de/d37/tutorial_dnn_halide.html" rel="nofollow">https://docs.opencv.org/3.3.1/de/d37/tutorial_dnn_halide.html</a></p>
<p dir="auto">and download the files from <a href="https://raw.githubusercontent.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.1/train_val.prototxt" rel="nofollow">https://raw.githubusercontent.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.1/train_val.prototxt</a> and <a href="https://github.com/DeepScale/SqueezeNet/raw/master/SqueezeNet_v1.1/squeezenet_v1.1.caffemodel">https://github.com/DeepScale/SqueezeNet/raw/master/SqueezeNet_v1.1/squeezenet_v1.1.caffemodel</a></p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">just to run the application compiled from the above source code, it crashes. And so gdb it to get the bt:<br>
...<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5915756" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/4" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/4/hovercard" href="https://github.com/opencv/opencv/pull/4">#4</a> 0x00007ffff5a66701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5931862" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/5" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/5/hovercard" href="https://github.com/opencv/opencv/pull/5">#5</a> 0x00007ffff5a66919 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5936931" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/6" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/6/hovercard" href="https://github.com/opencv/opencv/pull/6">#6</a> 0x00007ffff5f6af51 in cv::error (exc=...) at /work/media/opencv_work/opencv/modules/core/src/system.cpp:1032<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6069994" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/7" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/7/hovercard" href="https://github.com/opencv/opencv/pull/7">#7</a> 0x00007ffff5f6b01e in cv::error (_code=-5, _err="Duplicate blobs produced by multiple sources", _func=0x7ffff7a35c10 <cv::dnn::dnn<br>
4_v20190122::(anonymous namespace)::CaffeImporter::addOutput(opencv_caffe::LayerParameter const&, int, int)::<strong>func</strong>> "addOutput", _file=0x7ffff7a35470 "/work/media/opencv_work/opencv/modules/dnn/src/caffe/caffe_importer.cpp", _line=427) at /work/media/opencv_work/opencv/modules/core/src/system.cpp:1044<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6103928" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/8" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/8/hovercard" href="https://github.com/opencv/opencv/pull/8">#8</a> 0x00007ffff7786f9f in cv::dnn::dnn4_v20190122::(anonymous namespace)::CaffeImporter::addOutput (this=0x7fffffffdd10, layer=..., layerId=2, outNum=0) at /work/media/opencv_work/opencv/modules/dnn/src/caffe/caffe_importer.cpp:427<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6120770" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/9" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/9/hovercard" href="https://github.com/opencv/opencv/pull/9">#9</a> 0x00007ffff7786ae2 in cv::dnn::dnn4_v20190122::(anonymous namespace)::CaffeImporter::populateNet (this=0x7fffffffdd10, dstNet=...)<br>
at /work/media/opencv_work/opencv/modules/dnn/src/caffe/caffe_importer.cpp:402<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6291469" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/10" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/10/hovercard" href="https://github.com/opencv/opencv/pull/10">#10</a> 0x00007ffff77872e9 in cv::dnn::dnn4_v20190122::readNetFromCaffe (prototxt="train_val.prototxt", caffeModel="squeezenet_v1.1.caffemodel") at /work/media/opencv_work/opencv/modules/dnn/src/caffe/caffe_importer.cpp:458<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6311084" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/11" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/11/hovercard" href="https://github.com/opencv/opencv/pull/11">#11</a> 0x0000000000404c22 in main (argc=1, argv=0x7fffffffe1f8) at /work/media/opencv_work/halide_try/classprob.cpp:43</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mnoda" rel="nofollow">Mauricio Noda</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6744?redirect=false" rel="nofollow">SPR-6744</a></strong> and commented</p>
<p dir="auto">While creating a custom Spring Security AuthenticationProvider I stumbled on the need for instances of both HttpServletRequest and HttpServletResponse. There´s no way to easily access them. Modifying org.springframework.web.context.request.RequestContextListener to register both instances in Spring request scope would be ideal.</p>
<p dir="auto">I´m trying to integrate Spring Security with Weblogic Servlet Authentication. (<a href="http://download.oracle.com/docs/cd/E15051_01/wls/docs103/javadocs/weblogic/servlet/security/ServletAuthentication.html" rel="nofollow">http://download.oracle.com/docs/cd/E15051_01/wls/docs103/javadocs/weblogic/servlet/security/ServletAuthentication.html</a>)</p>
<p dir="auto">I see it becoming a major issue for any web container as JSR-196, which has the same problem, made its way into JEE 1.6 specification.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 GA</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="398102258" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11409" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11409/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11409">#11409</a> Make HttpServlertRequest and HttpServletResponse available for injection (<em><strong>"is duplicated by"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sgarlatm" rel="nofollow">Matthew Sgarlata</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-637?redirect=false" rel="nofollow">SPR-637</a></strong> and commented</p>
<p dir="auto">I recently went on a little odyssey fixing a bug that ended up giving me much more insight into the JavaMail framework than I ever wanted ;)</p>
<p dir="auto">To make a long story short, I think we should include additional file extension to mime type mappings in Spring. I think this is in line with Spring's goal of simplifying J2EE APIs, because providing mappings for these simple file types will alleviate reading up on the Java Activation Framework when you just want to send an email :)</p>
<p dir="auto">Now the whole story:</p>
<p dir="auto">JavaMail (and Spring... good work!) use the Java Activation Framework to resolve filename extensions to mime types. The default mime types built into the framework are defined in activation.jar\META-INF\mimetypes.default. They are rather meager, and don't even include types in widespread use such as PNG and CSS. Here are the types that are included in the Java Activation Framework version 1.0.2:</p>
<p dir="auto">text/html html htm HTML HTM<br>
text/plain txt text TXT TEXT java c c++ pl cc h<br>
image/gif gif GIF<br>
image/ief ief<br>
image/jpeg jpeg jpg jpe JPG<br>
image/tiff tiff tif<br>
image/x-xwindowdump xwd<br>
application/postscript ai eps ps<br>
application/rtf rtf<br>
application/x-tex tex<br>
application/x-texinfo texinfo texi<br>
application/x-troff t tr roff<br>
audio/basic au<br>
audio/midi midi mid<br>
audio/x-aifc aifc<br>
audio/x-aiff aif aiff<br>
audio/x-mpeg mpeg mpg<br>
audio/x-wav wav<br>
video/mpeg mpeg mpg mpe<br>
video/quicktime qt mov<br>
video/x-msvideo avi</p>
<p dir="auto">Fortunately, there is a simple mechanism to extend the list of file types. Just drop a mime.types file in your META-INF folder. (See <a href="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/activation/MimetypesFileTypeMap.html" rel="nofollow">http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/activation/MimetypesFileTypeMap.html</a> for more information).</p>
<p dir="auto">Attached is such a file, based on the types listed at <a href="http://www.utoronto.ca/webdocs/HTMLdocs/Book/Book-3ed/appb/mimetype.html" rel="nofollow">http://www.utoronto.ca/webdocs/HTMLdocs/Book/Book-3ed/appb/mimetype.html</a>. I used my discretion to remove some of the types listed, but hopefully the attached mime.types file will work for most use cases.</p>
<p dir="auto">In terms of packaging this file with Spring, I'm not really sure the best approach. Here are two thoughts:</p>
<ul dir="auto">
<li>Place the file in dist/META-INF</li>
<li>Include the file in spring.jar/META-INF</li>
</ul>
<hr>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/10460/mime.types" rel="nofollow">mime.types</a> (<em>7.11 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/10435/mime.types" rel="nofollow">mime.types</a> (<em>7.60 kB</em>)</li>
</ul> | 0 |
<p dir="auto">browser.min.js is empty as well.</p> | <p dir="auto">I installed with npm the babel-core and this files are empty, i need them for system js.</p> | 1 |
<p dir="auto">It is already possible to use functions with lambda bodies as class properties:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class C {
currentTime = () => Date.time();
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span>
<span class="pl-c1">currentTime</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">Date</span><span class="pl-kos">.</span><span class="pl-en">time</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">Perhaps they could also be used with getters and setters?</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class C {
..
get currentTime = () => Date.time();
set endTime = (time) => this.timer.setEndTime(time);
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span>
<span class="pl-kos">.</span><span class="pl-kos">.</span>
<span class="pl-c1">get</span> <span class="pl-c1">currentTime</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">Date</span><span class="pl-kos">.</span><span class="pl-en">time</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">set</span> <span class="pl-c1">endTime</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">time</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">timer</span><span class="pl-kos">.</span><span class="pl-en">setEndTime</span><span class="pl-kos">(</span><span class="pl-s1">time</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><em>Edit</em>: or using an even cleaner syntax suggested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kitsonk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kitsonk">@kitsonk</a></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class C {
..
get currentTime() => Date.time();
set endTime(time) => this.timer.setEndTime(time);
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span>
<span class="pl-kos">.</span><span class="pl-kos">.</span>
<span class="pl-k">get</span> <span class="pl-c1">currentTime</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1">Date</span><span class="pl-kos">.</span><span class="pl-c1">time</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">set</span> <span class="pl-c1">endTime</span><span class="pl-kos">(</span><span class="pl-s1">time</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-s1">timer</span><span class="pl-kos">.</span><span class="pl-c1">setEndTime</span><span class="pl-kos">(</span><span class="pl-s1">time</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Since getters and setters (especially getters) are frequently one-liners, this may turn out to be a very handy feature.</p>
<p dir="auto">I'm not sure whether ES6/7 already supports/plans to support this though, but if this would turn out to make sense in general, perhaps they could consider it as well?</p> | 0 |
|
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A</li>
<li>TensorFlow installed from (source or binary): binary</li>
<li>TensorFlow version: 1.13.0rc0</li>
<li>Python version: 3.6.8</li>
<li>Installed using virtualenv? pip? conda?: pip</li>
<li>Bazel version (if compiling from source): N/A</li>
<li>GCC/Compiler version (if compiling from source): N/A</li>
<li>CUDA/cuDNN version: CUDA 10.0, CUDNN 7.4.1</li>
<li>GPU model and memory: GeForce GTX 980 Ti</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<p dir="auto">The 1.13 release candidate requires a minimum compute capability of 6.0 (so it ignores lower-level devices). Is this an intentional change that we can expect to see in the full release? Or just an artifact of the release candidate build?</p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from tensorflow.python.client import device_lib
device_lib.list_local_devices()"><pre class="notranslate"><code class="notranslate">from tensorflow.python.client import device_lib
device_lib.list_local_devices()
</code></pre></div>
<p dir="auto"><strong>Any other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-01-30 14:29:07.690292: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2019-01-30 14:29:07.883552: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1433] Found device 0 with properties:
name: GeForce GTX 980 Ti major: 5 minor: 2 memoryClockRate(GHz): 1.291
pciBusID: 0000:01:00.0
totalMemory: 6.00GiB freeMemory: 4.97GiB
2019-01-30 14:29:07.888807: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1483] Ignoring visible gpu device (device: 0, name: GeForce GTX 980 Ti, pci bus id: 0000:01:00.0, compute capability: 5.2) with Cuda compute capability 5.2. The minimum required Cuda capability is 6.0.
2019-01-30 14:29:07.894771: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-01-30 14:29:07.898191: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0
2019-01-30 14:29:07.901776: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0: N
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 8036038049545966896
]"><pre class="notranslate"><code class="notranslate">2019-01-30 14:29:07.690292: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2019-01-30 14:29:07.883552: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1433] Found device 0 with properties:
name: GeForce GTX 980 Ti major: 5 minor: 2 memoryClockRate(GHz): 1.291
pciBusID: 0000:01:00.0
totalMemory: 6.00GiB freeMemory: 4.97GiB
2019-01-30 14:29:07.888807: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1483] Ignoring visible gpu device (device: 0, name: GeForce GTX 980 Ti, pci bus id: 0000:01:00.0, compute capability: 5.2) with Cuda compute capability 5.2. The minimum required Cuda capability is 6.0.
2019-01-30 14:29:07.894771: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-01-30 14:29:07.898191: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0
2019-01-30 14:29:07.901776: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1003] 0: N
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 8036038049545966896
]
</code></pre></div> | <p dir="auto">I noticed that tensorflow always takes about ~2min before it actually starts to compute. I've been trying to find out, why this happens, and nothing really worked so far.</p>
<p dir="auto"><a href="https://www.tensorflow.org/install/install_windows" rel="nofollow">Tensorflow site</a> says, I should use CUDA® Toolkit 9.0 and cuDNN v7.0. I have CUDA 9.0, so I downloaded CuDNN 7.0.5 for CUDA 9.0 and pasted the files to *C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0*, overwriting the ones form cuDNN 7.1.2, which I tested earlier. To make sure, I pip-installed tensorflow-gpu into a fresh anaconda env. See install <a href="https://pastebin.com/rjiV1s3b" rel="nofollow">here</a>. The issue is still the same.</p>
<p dir="auto">CUDA works, since it prints the <em>'Hello, TensorFlow!'</em>, when I use the official test example, but before that it takes like 2minutes every time!</p>
<p dir="auto">When I tested this with <a href="https://drive.google.com/drive/folders/1lVK_ABvVHzVYKs7X5SUhcZFBgKpC41Qw" rel="nofollow">another wheel</a> (<a href="http://www.python36.com/install-tensorflow-gpu-windows/" rel="nofollow">which is linked in this tutorial</a>, I did not compile it myself.) on cuda 9.1/cudnn7.0.5, I had the same issues. A NVIDIA employee <a href="https://stackoverflow.com/questions/49770217/why-does-cuda-initialisation-take-so-long-python-vscode-anaconda-tensorflow" rel="nofollow">on stackoverflow</a> suggested, I may be hitting a lengthy JIT compile step, because the GTX 1080 has compute capability of 6.1, which the wheel I used may not be compiled for.</p>
<p dir="auto">So I tried to find wheels for tensorflow with compute capability 6.1 for windows, but <a href="https://github.com/fo40225/tensorflow-windows-wheel/tree/master/1.5.0/py36/GPU/cuda91cudnn7avx2">the only one I found</a> and tested produced the same problem.</p>
<p dir="auto">Am I doing something wrong here, or do I just have to accept the 2min delay everytime I start my tensorflow/keras scripts?</p>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:<br>
Code:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import time
start_time = time.time()
import tensorflow as tf
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
c = tf.matmul(a, b)
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
print(sess.run(c))
timer = time.time()
print(timer - start_time)"><pre class="notranslate"><code class="notranslate">import time
start_time = time.time()
import tensorflow as tf
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
c = tf.matmul(a, b)
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
print(sess.run(c))
timer = time.time()
print(timer - start_time)
</code></pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(tf_clean) C:\python_code\test>C:/anaconda/envs/tf_clean/python.exe c:/python_code/test/tf_test.py
2018-04-18 14:36:04.376661: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this
TensorFlow binary was not compiled to use: AVX2
2018-04-18 14:36:04.689661: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1344] Found device 0 with properties:
name: GeForce GTX 1080 major: 6 minor: 1 memoryClockRate(GHz): 1.7335
pciBusID: 0000:01:00.0
totalMemory: 8.00GiB freeMemory: 6.60GiB
2018-04-18 14:36:04.699485: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1423] Adding visible gpu devices: 0
2018-04-18 14:38:12.227561: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:911] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-04-18 14:38:12.234504: I T:\src\github\tens2018-04-18 14:38:12.237156: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:930] 0: N
2018-04-18 14:38:12.240997: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1041] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 6379 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1)
Device mapping:
/job:localhost/replica:0/task:0/device:GPU:0 -> device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1
2018-04-18 14:38:12.548288: I T:\src\github\tensorflow\tensorflow\core\common_runtime\direct_session.cc:297] Device mapping:
/job:localhost/replica:0/task:0/device:GPU:0 -> device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1
MatMul: (MatMul): /job:localhost/replica:0/task:0/device:GPU:0
2018-04-18 14:38:12.559262: I T:\src\github\tensorflow\tensorflow\core\common_runtime\placer.cc:884] MatMul: (MatMul)/job:localhost/replica:0/task:0/device:GPU:0
b: (Const): /job:localhost/replica:0/task:0/device:GPU:0
2018-04-18 14:38:12.564847: I T:\src\github\tensorflow\tensorflow\core\common_runtime\placer.cc:884] b: (Const)/job:localhost/replica:0/task:0/device:GPU:0
a: (Const): /job:localhost/replica:0/task:0/device:GPU:0
2018-04-18 14:38:12.570545: I T:\src\github\tensorflow\tensorflow\core\common_runtime\placer.cc:884] a: (Const)/job:localhost/replica:0/task:0/device:GPU:0
[[22. 28.]
[49. 64.]]
129.14624643325806"><pre class="notranslate"><code class="notranslate">(tf_clean) C:\python_code\test>C:/anaconda/envs/tf_clean/python.exe c:/python_code/test/tf_test.py
2018-04-18 14:36:04.376661: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this
TensorFlow binary was not compiled to use: AVX2
2018-04-18 14:36:04.689661: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1344] Found device 0 with properties:
name: GeForce GTX 1080 major: 6 minor: 1 memoryClockRate(GHz): 1.7335
pciBusID: 0000:01:00.0
totalMemory: 8.00GiB freeMemory: 6.60GiB
2018-04-18 14:36:04.699485: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1423] Adding visible gpu devices: 0
2018-04-18 14:38:12.227561: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:911] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-04-18 14:38:12.234504: I T:\src\github\tens2018-04-18 14:38:12.237156: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:930] 0: N
2018-04-18 14:38:12.240997: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1041] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 6379 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1)
Device mapping:
/job:localhost/replica:0/task:0/device:GPU:0 -> device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1
2018-04-18 14:38:12.548288: I T:\src\github\tensorflow\tensorflow\core\common_runtime\direct_session.cc:297] Device mapping:
/job:localhost/replica:0/task:0/device:GPU:0 -> device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1
MatMul: (MatMul): /job:localhost/replica:0/task:0/device:GPU:0
2018-04-18 14:38:12.559262: I T:\src\github\tensorflow\tensorflow\core\common_runtime\placer.cc:884] MatMul: (MatMul)/job:localhost/replica:0/task:0/device:GPU:0
b: (Const): /job:localhost/replica:0/task:0/device:GPU:0
2018-04-18 14:38:12.564847: I T:\src\github\tensorflow\tensorflow\core\common_runtime\placer.cc:884] b: (Const)/job:localhost/replica:0/task:0/device:GPU:0
a: (Const): /job:localhost/replica:0/task:0/device:GPU:0
2018-04-18 14:38:12.570545: I T:\src\github\tensorflow\tensorflow\core\common_runtime\placer.cc:884] a: (Const)/job:localhost/replica:0/task:0/device:GPU:0
[[22. 28.]
[49. 64.]]
129.14624643325806
</code></pre></div>
<ul dir="auto">
<li>
<p dir="auto"><strong>OS Platform and Distribution</strong>:<br>
Windows 10 Education (Version 10.0.16299 Build 16299)<br>
Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz, 3408 MHz, 4 Cores</p>
</li>
<li>
<p dir="auto"><strong>TensorFlow installed from (source or binary)</strong>:<br>
binary</p>
</li>
<li>
<p dir="auto"><strong>TensorFlow version</strong>:<br>
tensorflow-gpu 1.5.0, 1.7.0</p>
</li>
<li>
<p dir="auto"><strong>Python version</strong>:<br>
3.5.5 & 3.6 (via anaconda, conda 4.5.1.)</p>
</li>
<li>
<p dir="auto"><strong>Bazel Version</strong>:<br>
N/A</p>
</li>
<li>
<p dir="auto"><strong>CUDA/cuDNN version</strong>:<br>
Tested combinations:<br>
CUDA 9.0 and CuDNN 7.1.2 (tested on tensorflow 1.5.0, 1.7.0 and 1.8.0-dev20180329)<br>
CUDA 9.1 and CuDNN 7.0.5 (tested on tensorflow 1.5.0 and 1.7.0)</p>
</li>
<li>
<p dir="auto"><strong>GPU model and memory</strong>:<br>
NVIDIA GeForce GTX 1080 (GP104-400) [Hewlett-Packard], 8192 MBytes of GDDR5X SDRAM [Micron]</p>
</li>
<li>
<p dir="auto"><strong>Exact command to reproduce</strong>:<br>
See: <em>Have I written custom code...</em></p>
</li>
</ul>
<p dir="auto">=================================================================<br>
EDIT:</p>
<p dir="auto">Threadstarter here, hello.</p>
<blockquote>
<p dir="auto">Could you try with the latest nightly?<br>
<a href="https://files.pythonhosted.org/packages/67/c0/e68a4f0400340b54c887703baa8eee188042c3d65a0cf535dda71abffbc2/tf_nightly_gpu-1.13.0.dev20190205-cp37-cp37m-win_amd64.whl" rel="nofollow">https://files.pythonhosted.org/packages/67/c0/e68a4f0400340b54c887703baa8eee188042c3d65a0cf535dda71abffbc2/tf_nightly_gpu-1.13.0.dev20190205-cp37-cp37m-win_amd64.whl</a></p>
</blockquote>
<p dir="auto"><strong>This works!</strong> I checked with that wheel, and then with <code class="notranslate">tf-nightly-gpu-2.0-preview</code> on PYPI, which also worked.<br>
I initially wanted to use the anaconda cudatoolkit and cudnn packages, but currently, cudnn is only available up to version 7.3.1 on anaconda-cloud. Tensorflow 2.0 however, is compiled with 7.4.1, so I had to do this the oldschool way, and download the setups from Nvidia.<br>
Soon, though...<a href="https://imgur.com/a/A2jZizt" rel="nofollow">soon</a>.</p>
<p dir="auto">For everyone, here's what I did, as a guide:</p>
<h3 dir="auto">How to install Tensorflow Nightly 2.0 GPU in Anaconda on Windows 10 x64</h3>
<p dir="auto">• I installed these CUDA/CuDnn Versions:<br>
– cuda_10.0.130_win10_network (Nvidia CUDA Download: <a href="https://developer.nvidia.com/cuda-toolkit" rel="nofollow">https://developer.nvidia.com/cuda-toolkit</a>)<br>
– cuDNN v7.4.1 (Nov 8, 2018), for CUDA 10.0 (Nvidia CuDnn Download: <a href="https://developer.nvidia.com/cudnn" rel="nofollow">https://developer.nvidia.com/cudnn</a>)<br>
– Don't forget to check, whether the Cuda setup has correctly written itself to the PATH system variable.<br>
– Reboot.<br>
• Now make a new environment in Anaconda and activate it:<br>
– <code class="notranslate">conda create --name tf2-nightly-gpu python=3.6</code><br>
– <code class="notranslate">activate tf2-nightly-gpu</code><br>
• Now, with the new env still activated, install the latest Tensorflow 2.0 nightly GPU build from PYPI:<br>
– <code class="notranslate">pip install tf-nightly-gpu-2.0-preview</code><br>
• For machine learning in Jupyter notebook (or Jupyter Lab) , you need these as well:<br>
– <code class="notranslate">conda install nb_conda matplotlib scipy Pillow pandas scikit-learn</code><br>
• Check, if your GPU is recognized by Tensorflow. Open the Anaconda prompt, activate the new environment and type <code class="notranslate">python</code>, then press Enter. Now type:<br>
<code class="notranslate">import tensorflow as tf</code><br>
<code class="notranslate">tf.test.is_gpu_available(cuda_only=False,min_cuda_compute_capability=None) </code><br>
• Output should be something like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(tf2-nightly-gpu) C:\Users\___>python
>>> import tensorflow as tf
>>> tf.test.is_gpu_available(cuda_only=False,min_cuda_compute_capability=None)
2019-03-19 17:46:25.722209: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2019-03-19 17:46:25.729724: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library nvcuda.dll
2019-03-19 17:46:25.922934: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1551] Found device 0 with properties:
name: GeForce GTX 1080 major: 6 minor: 1 memoryClockRate(GHz): 1.7335
pciBusID: 0000:01:00.0
totalMemory: 8.00GiB freeMemory: 6.61GiB
2019-03-19 17:46:25.938231: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1674] Adding visible gpu devices: 0
2019-03-19 17:46:26.539185: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1082] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-03-19 17:46:26.546009: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1088] 0
2019-03-19 17:46:26.550123: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1101] 0: N
2019-03-19 17:46:26.554188: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1222] Created TensorFlow device (/device:GPU:0 with 6360 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1)
True"><pre class="notranslate"><code class="notranslate">(tf2-nightly-gpu) C:\Users\___>python
>>> import tensorflow as tf
>>> tf.test.is_gpu_available(cuda_only=False,min_cuda_compute_capability=None)
2019-03-19 17:46:25.722209: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2019-03-19 17:46:25.729724: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library nvcuda.dll
2019-03-19 17:46:25.922934: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1551] Found device 0 with properties:
name: GeForce GTX 1080 major: 6 minor: 1 memoryClockRate(GHz): 1.7335
pciBusID: 0000:01:00.0
totalMemory: 8.00GiB freeMemory: 6.61GiB
2019-03-19 17:46:25.938231: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1674] Adding visible gpu devices: 0
2019-03-19 17:46:26.539185: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1082] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-03-19 17:46:26.546009: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1088] 0
2019-03-19 17:46:26.550123: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1101] 0: N
2019-03-19 17:46:26.554188: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1222] Created TensorFlow device (/device:GPU:0 with 6360 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0, compute capability: 6.1)
True
</code></pre></div>
<p dir="auto">• Done.</p> | 1 |
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">Just messing around with the basic template, but since you asked for a report, here you go. :)</p>
<p dir="auto">The assertion occurred when I added <code class="notranslate">[100]</code> to <code class="notranslate">Colors.teal</code>:</p>
<p dir="auto"><em>main.dart</em></p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Demo',
theme: new ThemeData(
primarySwatch: Colors.teal[100],
),
home: new MyHomePage(title: 'Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => new _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
_counter++;
});
}
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text(widget.title),
),
body: new Center(
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text(
'You have pushed the blue button ',
),
new Text(
'$_counter',
style: Theme.of(context).textTheme.display1,
),
new Text(
_counter == 1 ? 'time' : 'times'
),
],
),
),
floatingActionButton: new FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'încrement',
child: new Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>;
<span class="pl-k">void</span> <span class="pl-en">main</span>() <span class="pl-k">=></span> <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MyApp</span>());
<span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> {
<span class="pl-c">// This widget is the root of your application.</span>
<span class="pl-k">@override</span>
<span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>(
title<span class="pl-k">:</span> <span class="pl-s">'Demo'</span>,
theme<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">ThemeData</span>(
primarySwatch<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.teal[<span class="pl-c1">100</span>],
),
home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">MyHomePage</span>(title<span class="pl-k">:</span> <span class="pl-s">'Demo Home Page'</span>),
);
}
}
<span class="pl-k">class</span> <span class="pl-c1">MyHomePage</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> {
<span class="pl-c1">MyHomePage</span>({<span class="pl-c1">Key</span> key, <span class="pl-c1">this</span>.title}) <span class="pl-k">:</span> <span class="pl-c1">super</span>(key<span class="pl-k">:</span> key);
<span class="pl-k">final</span> <span class="pl-c1">String</span> title;
<span class="pl-k">@override</span>
<span class="pl-c1">_MyHomePageState</span> <span class="pl-en">createState</span>() <span class="pl-k">=></span> <span class="pl-k">new</span> <span class="pl-c1">_MyHomePageState</span>();
}
<span class="pl-k">class</span> <span class="pl-c1">_MyHomePageState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span><<span class="pl-c1">MyHomePage</span>> {
<span class="pl-c1">int</span> _counter <span class="pl-k">=</span> <span class="pl-c1">0</span>;
<span class="pl-k">void</span> <span class="pl-en">_incrementCounter</span>() {
<span class="pl-en">setState</span>(() {
_counter<span class="pl-k">++</span>;
});
}
<span class="pl-k">@override</span>
<span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Scaffold</span>(
appBar<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">AppBar</span>(
title<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(widget.title),
),
body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>(
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Column</span>(
mainAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">MainAxisAlignment</span>.center,
children<span class="pl-k">:</span> <span class="pl-k"><</span><span class="pl-c1">Widget</span><span class="pl-k">></span>[
<span class="pl-k">new</span> <span class="pl-c1">Text</span>(
<span class="pl-s">'You have pushed the blue button '</span>,
),
<span class="pl-k">new</span> <span class="pl-c1">Text</span>(
<span class="pl-s">'$<span class="pl-v">_counter</span>'</span>,
style<span class="pl-k">:</span> <span class="pl-c1">Theme</span>.<span class="pl-en">of</span>(context).textTheme.display1,
),
<span class="pl-k">new</span> <span class="pl-c1">Text</span>(
_counter <span class="pl-k">==</span> <span class="pl-c1">1</span> <span class="pl-k">?</span> <span class="pl-s">'time'</span> <span class="pl-k">:</span> <span class="pl-s">'times'</span>
),
],
),
),
floatingActionButton<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">FloatingActionButton</span>(
onPressed<span class="pl-k">:</span> _incrementCounter,
tooltip<span class="pl-k">:</span> <span class="pl-s">'încrement'</span>,
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Icon</span>(<span class="pl-c1">Icons</span>.add),
), <span class="pl-c">// This trailing comma makes auto-formatting nicer for build methods.</span>
);
}
}</pre></div>
<h2 dir="auto">Logs</h2>
<p dir="auto"><em>DEBUG CONSOLE output</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> Launching lib/main.dart on Chris's 7+ in debug mode...
> Signing iOS app for device deployment using developer identity: "iPhone Developer: noah HURWITZ (L236D3NJ9F)"
> Xcode build done
> Reloaded 466 of 482 libraries in 2,277ms.
>
> _counter++
> global evaluation not supported
> [VERBOSE-1:FlutterAppDelegate.mm(77)]
> Reloaded 1 of 482 libraries in 790ms.
> Reloaded 1 of 482 libraries in 1,922ms.
> Reloaded 1 of 482 libraries in 710ms.
> Reloaded 1 of 482 libraries in 750ms.
> Reloaded 1 of 482 libraries in 872ms.
> Reloaded 1 of 482 libraries in 746ms.
> ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
> The following assertion was thrown building MyApp(dirty):
> type 'Color' is not a subtype of type 'MaterialColor' of 'primarySwatch' where
> Color is from dart:ui
> MaterialColor is from package:flutter/src/material/colors.dart
> int is from dart:core
> Either the assertion indicates an error in the framework itself, or we should provide substantially
> more information in this error message to help you determine and fix the underlying cause.
> In either case, please report this assertion by filing a bug on GitHub:
> https://github.com/flutter/flutter/issues/new
> When the exception was thrown, this was the stack:
> #0 new ThemeData (package:flutter/src/material/theme_data.dart:78:19)
> #1 MyApp.build (/private/var/mobile/Containers/Data/Application/D21E0705-8433-45E8-8459-EAA541373594/tmp/fluttertestSMPzry/fluttertest/lib/main.dart:11:18)
> #2 StatelessElement.build (package:flutter/src/widgets/framework.dart:3678:28)
> #3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3625:15)
> #4 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
> #5 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2225:33)
> #6 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:621:20)
> #7 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
> #8 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
> #9 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
> #10 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
> #12 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382)
> #13 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416)
> #14 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)
> (elided one frame from package dart:async-patch)
> ════════════════════════════════════════════════════════════════════════════════════════════════════
> Reloaded 1 of 482 libraries in 913ms."><pre class="notranslate"><code class="notranslate">> Launching lib/main.dart on Chris's 7+ in debug mode...
> Signing iOS app for device deployment using developer identity: "iPhone Developer: noah HURWITZ (L236D3NJ9F)"
> Xcode build done
> Reloaded 466 of 482 libraries in 2,277ms.
>
> _counter++
> global evaluation not supported
> [VERBOSE-1:FlutterAppDelegate.mm(77)]
> Reloaded 1 of 482 libraries in 790ms.
> Reloaded 1 of 482 libraries in 1,922ms.
> Reloaded 1 of 482 libraries in 710ms.
> Reloaded 1 of 482 libraries in 750ms.
> Reloaded 1 of 482 libraries in 872ms.
> Reloaded 1 of 482 libraries in 746ms.
> ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
> The following assertion was thrown building MyApp(dirty):
> type 'Color' is not a subtype of type 'MaterialColor' of 'primarySwatch' where
> Color is from dart:ui
> MaterialColor is from package:flutter/src/material/colors.dart
> int is from dart:core
> Either the assertion indicates an error in the framework itself, or we should provide substantially
> more information in this error message to help you determine and fix the underlying cause.
> In either case, please report this assertion by filing a bug on GitHub:
> https://github.com/flutter/flutter/issues/new
> When the exception was thrown, this was the stack:
> #0 new ThemeData (package:flutter/src/material/theme_data.dart:78:19)
> #1 MyApp.build (/private/var/mobile/Containers/Data/Application/D21E0705-8433-45E8-8459-EAA541373594/tmp/fluttertestSMPzry/fluttertest/lib/main.dart:11:18)
> #2 StatelessElement.build (package:flutter/src/widgets/framework.dart:3678:28)
> #3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3625:15)
> #4 Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)
> #5 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2225:33)
> #6 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:621:20)
> #7 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
> #8 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
> #9 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
> #10 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
> #12 _Timer._runTimers (dart:isolate-patch/dart:isolate/timer_impl.dart:382)
> #13 _Timer._handleMessage (dart:isolate-patch/dart:isolate/timer_impl.dart:416)
> #14 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)
> (elided one frame from package dart:async-patch)
> ════════════════════════════════════════════════════════════════════════════════════════════════════
> Reloaded 1 of 482 libraries in 913ms.
</code></pre></div>
<p dir="auto"><em>flutter analyze</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> Analyzing /Users/clozach/Documents/fluttertest...
> No issues found!
> Ran in 5.9s"><pre class="notranslate"><code class="notranslate">> Analyzing /Users/clozach/Documents/fluttertest...
> No issues found!
> Ran in 5.9s
</code></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> [✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.12.6 16G1212, locale en-US)
> • Flutter version 0.1.5 at /Users/clozach/Documents/flutter
> • Framework revision 3ea4d06340 (3 weeks ago), 2018-02-22 11:12:39 -0800
> • Engine revision ead227f118
> • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759
>
> [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)
> • Android SDK at /Users/clozach/Library/Android/sdk
> • Android NDK at /Users/clozach/Library/Android/sdk/ndk-bundle
> • Platform android-25, build-tools 25.0.3
> • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
> • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
>
> [✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
> • Xcode at /Applications/Xcode.app/Contents/Developer
> • Xcode 9.2, Build version 9C40b
> • ios-deploy 1.9.2
> • CocoaPods version 1.4.0
>
> [✓] Android Studio (version 2.3)
> • Android Studio at /Applications/Android Studio.app/Contents
> • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
>
> [✓] VS Code (version 1.21.1)
> • VS Code at /Users/clozach/Applications/Visual Studio Code.app/Contents
> • Dart Code extension version 2.10.0
>
> [✓] Connected devices (2 available)
> • Chris's 7+ • 70ac7560f7462ec1c00624e5caea54391427c752 • ios • iOS 11.2.5
> • iPhone X • CB912A56-5869-4312-9977-E00B6B7BF326 • ios • iOS 11.2 (simulator)
>
> • No issues found!"><pre class="notranslate"><code class="notranslate">> [✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.12.6 16G1212, locale en-US)
> • Flutter version 0.1.5 at /Users/clozach/Documents/flutter
> • Framework revision 3ea4d06340 (3 weeks ago), 2018-02-22 11:12:39 -0800
> • Engine revision ead227f118
> • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759
>
> [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)
> • Android SDK at /Users/clozach/Library/Android/sdk
> • Android NDK at /Users/clozach/Library/Android/sdk/ndk-bundle
> • Platform android-25, build-tools 25.0.3
> • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
> • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
>
> [✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
> • Xcode at /Applications/Xcode.app/Contents/Developer
> • Xcode 9.2, Build version 9C40b
> • ios-deploy 1.9.2
> • CocoaPods version 1.4.0
>
> [✓] Android Studio (version 2.3)
> • Android Studio at /Applications/Android Studio.app/Contents
> • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
>
> [✓] VS Code (version 1.21.1)
> • VS Code at /Users/clozach/Applications/Visual Studio Code.app/Contents
> • Dart Code extension version 2.10.0
>
> [✓] Connected devices (2 available)
> • Chris's 7+ • 70ac7560f7462ec1c00624e5caea54391427c752 • ios • iOS 11.2.5
> • iPhone X • CB912A56-5869-4312-9977-E00B6B7BF326 • ios • iOS 11.2 (simulator)
>
> • No issues found!
</code></pre></div> | <p dir="auto">We should hide the message saying this could be a framework bug if the first stack frame is not in the framework. In fact we should probably figure out which package is to blame and then explicitly name that.</p>
<p dir="auto">Depends on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="155609978" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/4021" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/4021/hovercard" href="https://github.com/flutter/flutter/issues/4021">#4021</a>.</p> | 1 |
<p dir="auto">When babel transforms ES6 module format into CommonJS format, the variable names become mangled, e.g.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import _ from 'underscore'"><pre class="notranslate"><code class="notranslate">import _ from 'underscore'
</code></pre></div>
<p dir="auto">becomes</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var _underscore = require('./underscore')
var _underscore2 = _interopRequireDefault(_underscore)"><pre class="notranslate"><code class="notranslate">var _underscore = require('./underscore')
var _underscore2 = _interopRequireDefault(_underscore)
</code></pre></div>
<p dir="auto">.. _underscore is only used once, and <code class="notranslate">_underscore2</code> is now the module (almost - see below). This makes debugging difficult since the source maps at present do not support symbol name mapping, and may not for some time: see <a href="https://code.google.com/p/chromium/issues/detail?id=327092" rel="nofollow">https://code.google.com/p/chromium/issues/detail?id=327092</a></p>
<p dir="auto">The benefits of using ES6 module format go away pretty quickly when they come at the consequence of effective debugging. While I guess you can sort of "know" that they get transmogrified into "_variablename2", the gui tools in the debugger don't work, and it just makes it harder to work with the code.</p>
<p dir="auto">Probably related: every reference to a default import within the code now refers to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_underscore2["default"]"><pre class="notranslate"><code class="notranslate">_underscore2["default"]
</code></pre></div>
<p dir="auto">... I can't think why the symbol wouldn't be defined as the property referenced inline up front, same as the original import statement, rather than requiring all the references in code to be de-optimized this way.</p>
<p dir="auto">I assume this all has to do with some implementation detail of the module transformation process, and I imagine if it was easy not to do this, then it wouldn't already :) But it would be a big help to fix it - it's kind of a showstopper for switching to ES6 module format.</p> | <p dir="auto">X-post from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="113064352" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/1544" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/1544/hovercard" href="https://github.com/webpack/webpack/issues/1544">webpack/webpack#1544</a>:</p>
<p dir="auto">For example, if I have the js:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" import React, {PropTypes} from "react";
import Branding from "./Branding";
const Layout = ({children, customSignIn}) => (
<div className="container" style={{marginTop: 60}}>
<div className="well" style={{padding: 50}}>
<div className="panel-body">
<div className="col-lg-6" style={{textAlign: "center"}}>
<Branding customSignIn={customSignIn} />
</div>
<div className="col-lg-6">
{children}
</div>
</div>
</div>
</div>
);
Layout.propTypes = {
children: PropTypes.node,
customSignIn: PropTypes.string,
};
export {Layout as default};"><pre class="notranslate"> <span class="pl-k">import</span> <span class="pl-v">React</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-v">PropTypes</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">Branding</span> <span class="pl-k">from</span> <span class="pl-s">"./Branding"</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">Layout</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>children<span class="pl-kos">,</span> customSignIn<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"container"</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span><span class="pl-c1">marginTop</span>: <span class="pl-c1">60</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"well"</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span><span class="pl-c1">padding</span>: <span class="pl-c1">50</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"panel-body"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"col-lg-6"</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span><span class="pl-c1">textAlign</span>: <span class="pl-s">"center"</span><span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">Branding</span> <span class="pl-c1">customSignIn</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">customSignIn</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"col-lg-6"</span><span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-s1">children</span><span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-v">Layout</span><span class="pl-kos">.</span><span class="pl-c1">propTypes</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">children</span>: <span class="pl-v">PropTypes</span><span class="pl-kos">.</span><span class="pl-c1">node</span><span class="pl-kos">,</span>
<span class="pl-c1">customSignIn</span>: <span class="pl-v">PropTypes</span><span class="pl-kos">.</span><span class="pl-c1">string</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-v">Layout</span> <span class="pl-k">as</span> <span class="pl-s1">default</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Webpack+babel produces:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _react = __webpack_require__(3);
var _react2 = _interopRequireDefault(_react);
var _Branding = __webpack_require__(283);
var _Branding2 = _interopRequireDefault(_Branding);
var Layout = function Layout(_ref) {
var children = _ref.children;
var customSignIn = _ref.customSignIn;
return _react2["default"].createElement(
"div",
{ className: "container", style: { marginTop: 60 } },
_react2["default"].createElement(
"div",
{ className: "well", style: { padding: 50 } },
_react2["default"].createElement(
"div",
{ className: "panel-body" },
_react2["default"].createElement(
"div",
{ className: "col-lg-6", style: { textAlign: "center" } },
_react2["default"].createElement(_Branding2["default"], { customSignIn: customSignIn })
),
_react2["default"].createElement(
"div",
{ className: "col-lg-6" },
children
)
)
)
);
};
Layout.propTypes = {
children: _react.PropTypes.node,
customSignIn: _react.PropTypes.string
};
exports["default"] = Layout;
module.exports = exports["default"];"><pre class="notranslate"> <span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">obj</span> <span class="pl-c1">&&</span> <span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">__esModule</span> ? <span class="pl-s1">obj</span> : <span class="pl-kos">{</span> <span class="pl-s">"default"</span>: <span class="pl-s1">obj</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">_react</span> <span class="pl-c1">=</span> <span class="pl-en">__webpack_require__</span><span class="pl-kos">(</span><span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_react2</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_react</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_Branding</span> <span class="pl-c1">=</span> <span class="pl-en">__webpack_require__</span><span class="pl-kos">(</span><span class="pl-c1">283</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_Branding2</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_Branding</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-v">Layout</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-v">Layout</span><span class="pl-kos">(</span><span class="pl-s1">_ref</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">children</span> <span class="pl-c1">=</span> <span class="pl-s1">_ref</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">customSignIn</span> <span class="pl-c1">=</span> <span class="pl-s1">_ref</span><span class="pl-kos">.</span><span class="pl-c1">customSignIn</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">_react2</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span>
<span class="pl-s">"div"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">className</span>: <span class="pl-s">"container"</span><span class="pl-kos">,</span> <span class="pl-c1">style</span>: <span class="pl-kos">{</span> <span class="pl-c1">marginTop</span>: <span class="pl-c1">60</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s1">_react2</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span>
<span class="pl-s">"div"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">className</span>: <span class="pl-s">"well"</span><span class="pl-kos">,</span> <span class="pl-c1">style</span>: <span class="pl-kos">{</span> <span class="pl-c1">padding</span>: <span class="pl-c1">50</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s1">_react2</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span>
<span class="pl-s">"div"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">className</span>: <span class="pl-s">"panel-body"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s1">_react2</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span>
<span class="pl-s">"div"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">className</span>: <span class="pl-s">"col-lg-6"</span><span class="pl-kos">,</span> <span class="pl-c1">style</span>: <span class="pl-kos">{</span> <span class="pl-c1">textAlign</span>: <span class="pl-s">"center"</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s1">_react2</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">_Branding2</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">customSignIn</span>: <span class="pl-s1">customSignIn</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">_react2</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span>
<span class="pl-s">"div"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">className</span>: <span class="pl-s">"col-lg-6"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s1">children</span>
<span class="pl-kos">)</span>
<span class="pl-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-v">Layout</span><span class="pl-kos">.</span><span class="pl-c1">propTypes</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">children</span>: <span class="pl-s1">_react</span><span class="pl-kos">.</span><span class="pl-c1">PropTypes</span><span class="pl-kos">.</span><span class="pl-c1">node</span><span class="pl-kos">,</span>
<span class="pl-c1">customSignIn</span>: <span class="pl-s1">_react</span><span class="pl-kos">.</span><span class="pl-c1">PropTypes</span><span class="pl-kos">.</span><span class="pl-c1">string</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-v">Layout</span><span class="pl-kos">;</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-s1">exports</span><span class="pl-kos">[</span><span class="pl-s">"default"</span><span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Notice all the instances of <code class="notranslate">_react2["default"]</code>... these don't minify well because the "default" is not minified. What would be better would be if webpack added a <code class="notranslate">var _reactDefault = _react2["default"];</code> declaration at the top and used that instead.</p>
<p dir="auto">Notice it also "inlined" my PropTypes definition and the usage became <code class="notranslate">_react.PropTypes</code>. Again, this is less minifiable than if it had generated <code class="notranslate">var _reactPropTypes = _react.PropTypes</code>.</p>
<p dir="auto">This pattern isn't specific to React, but React code certainly suffers greatly from it.</p> | 1 |
<h3 dir="auto">Problem description</h3>
<p dir="auto">Floating label text is overlapping the pre-populated value of a <code class="notranslate">SelectField</code> component</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Look at the <a href="http://www.material-ui.com/#/components/select-field" rel="nofollow">component page</a><br>
I'm using Chrome.</p>
<h3 dir="auto">Images & references</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2460681/17422137/7df3c6d8-5af2-11e6-87d4-eeff954a1d6c.png"><img src="https://cloud.githubusercontent.com/assets/2460681/17422137/7df3c6d8-5af2-11e6-87d4-eeff954a1d6c.png" alt="image" style="max-width: 100%;"></a></p> | <h3 dir="auto">Problem description</h3>
<p dir="auto">Floating Labels (0.15.3) render like this:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1571918/17381333/404a271e-5980-11e6-8a85-fc3d53b3b1a6.png"><img width="389" alt="screen shot 2016-08-03 at 1 39 15 pm" src="https://cloud.githubusercontent.com/assets/1571918/17381333/404a271e-5980-11e6-8a85-fc3d53b3b1a6.png" style="max-width: 100%;"></a></p>
<p dir="auto">in 0.15.2 they looked like this:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1571918/17381337/431daaa6-5980-11e6-91d6-fb9c8e008e9f.png"><img width="355" alt="screen shot 2016-08-03 at 1 43 08 pm" src="https://cloud.githubusercontent.com/assets/1571918/17381337/431daaa6-5980-11e6-91d6-fb9c8e008e9f.png" style="max-width: 100%;"></a></p>
### Steps to reproduce
<p dir="auto">Go to <a href="http://www.material-ui.com/#/components/select-field" rel="nofollow">http://www.material-ui.com/#/components/select-field</a> and go to the Floating Label section.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const items = [
<MenuItem key={1} value={1} primaryText="Never" />,
<MenuItem key={2} value={2} primaryText="Every Night" />,
<MenuItem key={3} value={3} primaryText="Weeknights" />,
<MenuItem key={4} value={4} primaryText="Weekends" />,
<MenuItem key={5} value={5} primaryText="Weekly" />,
];
<SelectField
value={this.state.value}
onChange={this.handleChange}
floatingLabelText="Floating Label Text"
>
{items}
</SelectField>"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">items</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">1</span><span class="pl-kos">}</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">1</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Never"</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">,</span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">2</span><span class="pl-kos">}</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">2</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Every Night"</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">,</span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">3</span><span class="pl-kos">}</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">3</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Weeknights"</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">,</span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">4</span><span class="pl-kos">}</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">4</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Weekends"</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">,</span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">5</span><span class="pl-kos">}</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">5</span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Weekly"</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-c1"><</span><span class="pl-ent">SelectField</span>
<span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">}</span>
<span class="pl-c1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleChange</span><span class="pl-kos">}</span>
<span class="pl-c1">floatingLabelText</span><span class="pl-c1">=</span><span class="pl-s">"Floating Label Text"</span>
<span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-s1">items</span><span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">SelectField</span><span class="pl-c1">></span></pre></div>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.15.3</li>
<li>React: 15.3.0</li>
<li>Browser: Chrome</li>
</ul> | 1 |
<p dir="auto">In some cases, we may want to have a function that read one field of an object identified by a parameter. Here is a small synthetic use case, for the purpose of the discussion:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Help {
brief: string;
detailed: string;
contextual: string;
}
function getHelpString(help: Help, format: string): string
{
return help[format];
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Help</span> <span class="pl-kos">{</span>
<span class="pl-c1">brief</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">detailed</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">contextual</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">getHelpString</span><span class="pl-kos">(</span><span class="pl-s1">help</span>: <span class="pl-smi">Help</span><span class="pl-kos">,</span> <span class="pl-s1">format</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-k">return</span> <span class="pl-s1">help</span><span class="pl-kos">[</span><span class="pl-s1">format</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">In that particular case, the type checker cannot ensure that we are doing things right. In order to make the type checker happy, we need a way to tell it that <code class="notranslate">format</code> is actually part of an implicit enumeration that only contains the names of the fields of the interface <code class="notranslate">Help</code>. This could be done by introducing a new type inference operator, for example <code class="notranslate">fieldof</code>.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function getHelpString(help: Help, format: fieldof Help): string
{
return help[format];
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">getHelpString</span><span class="pl-kos">(</span><span class="pl-s1">help</span>: <span class="pl-smi">Help</span><span class="pl-kos">,</span> <span class="pl-s1">format</span>: <span class="pl-smi">fieldof</span> <span class="pl-smi">Help</span><span class="pl-kos">)</span>: <span class="pl-smi">string</span>
<span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">help</span><span class="pl-kos">[</span><span class="pl-s1">format</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">This may not look like a very common use case, but I hoped to have such an operator in order to port incrementally a large amount of javascript code to typescript.</p> | <p dir="auto">When I create a blank node.js console app then in the project properties select "redirect to output folder" the output continues going to the default location.</p>
<p dir="auto">You can see this in the small project at: <a href="https://github.com/kevinpas/Klib6">https://github.com/kevinpas/Klib6</a><br>
(look at branch AddVS15)</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.4.1</li>
<li>Operating System version: ANY</li>
<li>Java version: ANY</li>
</ul>
<h3 dir="auto">Description</h3>
<p dir="auto">We started using "registry-multiple" for high availability of Registry Center, but found that "multiple-registry" configuration was not beautiful enough.<br>
We wish to transform like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<dubbo:registry protocol="multiple">
<dubbo:child-registry key="z1" protocol="zookeeper" address="12.34.56.1:2181,12.34.56.2:2181,12.34.56.3:2181"/>
<dubbo:child-registry key="z2" protocol="zookeeper" address="12.34.56.4:2181" register="false"/><!-- subscribe only-->
<dubbo:child-registry key="r1" protocol="redis" address="9.8.7.6:3030"/>
</dubbo:registry>"><pre class="notranslate"><code class="notranslate"><dubbo:registry protocol="multiple">
<dubbo:child-registry key="z1" protocol="zookeeper" address="12.34.56.1:2181,12.34.56.2:2181,12.34.56.3:2181"/>
<dubbo:child-registry key="z2" protocol="zookeeper" address="12.34.56.4:2181" register="false"/><!-- subscribe only-->
<dubbo:child-registry key="r1" protocol="redis" address="9.8.7.6:3030"/>
</dubbo:registry>
</code></pre></div>
<p dir="auto">And we have completed code.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.2~2.7.3</li>
<li>Operating System version: Mac</li>
<li>Java version: JDK1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Use GenericService to call $echo</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Echo what you send.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">Consumer:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failed to check the status of the service com.alibaba.dubbo.monitor.MonitorService. No provider available for the service hesc/com.alibaba.dubbo.monitor.MonitorService from the url zookeeper://192.168.99.51:2183/com.alibaba.dubbo.registry.RegistryService?application=dime-test&dubbo=2.6.2&generic=true&group=hesc&interface=com.alibaba.dubbo.monitor.MonitorService&pid=92150&register.ip=172.28.58.146&side=consumer&timestamp=1564539016305 to the consumer 172.28.58.146 use dubbo version 2.6.2"><pre class="notranslate"><code class="notranslate">Failed to check the status of the service com.alibaba.dubbo.monitor.MonitorService. No provider available for the service hesc/com.alibaba.dubbo.monitor.MonitorService from the url zookeeper://192.168.99.51:2183/com.alibaba.dubbo.registry.RegistryService?application=dime-test&dubbo=2.6.2&generic=true&group=hesc&interface=com.alibaba.dubbo.monitor.MonitorService&pid=92150&register.ip=172.28.58.146&side=consumer&timestamp=1564539016305 to the consumer 172.28.58.146 use dubbo version 2.6.2
</code></pre></div>
<p dir="auto">Producer: no $echo method error</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<p dir="auto"><em>Method method = ReflectUtils.findMethodByMethodSignature(invoker.getInterface(), name, types);</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.NoSuchMethodException: com.alibaba.dubbo.monitor.MonitorService.$echo(java.lang.String)"><pre class="notranslate"><code class="notranslate">java.lang.NoSuchMethodException: com.alibaba.dubbo.monitor.MonitorService.$echo(java.lang.String)
</code></pre></div>
<p dir="auto">Code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@GetMapping("/test")
public Result<String> test() {
try {
ReferenceConfig<GenericService> reference = new ReferenceConfig<GenericService>();
// 弱类型接口名
reference.setInterface("com.alibaba.dubbo.monitor.MonitorService");
// reference.setInterface("com.alibaba.dubbo.rpc.service.EchoService");
// 声明为泛化接口
reference.setGeneric(true);
ApplicationConfig applicationConfig = new ApplicationConfig();
applicationConfig.setName("dime-test");
reference.setApplication(applicationConfig);
reference.setGroup("hesc");
RegistryConfig registryConfig = new RegistryConfig();
registryConfig.setAddress("zookeeper://192.168.99.51:2183?backup=192.168.99.37:2183");
reference.setRegistry(registryConfig);
// 用org.apache.dubbo.rpc.service.GenericService可以替代所有接口引用
GenericService genericService = reference.get();
EchoService echoService = (EchoService) genericService;
// 基本类型以及Date,List,Map等不需要转换,直接调用
Object result = genericService
.$invoke("$echo", new String[] { "java.lang.String" }, new Object[] { "Haha" });
// Object result = echoService.$echo("Haha");
return Results.success(result.toString());
} catch (Exception e) {
return Results.error(e);
}
}"><pre class="notranslate"><code class="notranslate">@GetMapping("/test")
public Result<String> test() {
try {
ReferenceConfig<GenericService> reference = new ReferenceConfig<GenericService>();
// 弱类型接口名
reference.setInterface("com.alibaba.dubbo.monitor.MonitorService");
// reference.setInterface("com.alibaba.dubbo.rpc.service.EchoService");
// 声明为泛化接口
reference.setGeneric(true);
ApplicationConfig applicationConfig = new ApplicationConfig();
applicationConfig.setName("dime-test");
reference.setApplication(applicationConfig);
reference.setGroup("hesc");
RegistryConfig registryConfig = new RegistryConfig();
registryConfig.setAddress("zookeeper://192.168.99.51:2183?backup=192.168.99.37:2183");
reference.setRegistry(registryConfig);
// 用org.apache.dubbo.rpc.service.GenericService可以替代所有接口引用
GenericService genericService = reference.get();
EchoService echoService = (EchoService) genericService;
// 基本类型以及Date,List,Map等不需要转换,直接调用
Object result = genericService
.$invoke("$echo", new String[] { "java.lang.String" }, new Object[] { "Haha" });
// Object result = echoService.$echo("Haha");
return Results.success(result.toString());
} catch (Exception e) {
return Results.error(e);
}
}
</code></pre></div> | 0 |
<p dir="auto">If a child component requires an input (like the HeroDetailsComponent has, which is the selectedHero), it can't be loaded dynamically. There's no way to instantiate a child component with inputs this way.</p> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Throwing error during runtime: <code class="notranslate">ORIGINAL EXCEPTION: not implemented</code></p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
Working router with angular 2 in web worker</p>
<p dir="auto"><strong>Reproduction of the problem</strong></p>
<ol dir="auto">
<li>Set up bootstrapping angular 2 on web worker like so: <a href="https://github.com/angular/angular/tree/master/modules/playground/src/web_workers/kitchen_sink">https://github.com/angular/angular/tree/master/modules/playground/src/web_workers/kitchen_sink</a></li>
<li>Add and use <code class="notranslate">"@angular/router": "3.0.0-alpha.6"</code></li>
</ol>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Working without errors.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Using web workers with the new router</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.2</li>
<li><strong>Browser:</strong> all</li>
<li><strong>Language:</strong> TypeScript</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/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">Get the input html tag under select</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Get only an object with value field</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Try to render MySelect from</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const setData = (e) => console.log(e.target)
export const MySelect = () => (
<FormControl fullWidth>
<InputLabel htmlFor="age-simple">Civilité</InputLabel>
<Select
value={'Monsieur'}
onChange={setData}
input={<Input />}
label={'Civilité'}
name='civility'
>
<MenuItem value={'Mr'}>Monsieur</MenuItem>
<MenuItem value={'Mme'}>Madame</MenuItem>
</Select>
</FormControl>
)"><pre class="notranslate"><code class="notranslate">const setData = (e) => console.log(e.target)
export const MySelect = () => (
<FormControl fullWidth>
<InputLabel htmlFor="age-simple">Civilité</InputLabel>
<Select
value={'Monsieur'}
onChange={setData}
input={<Input />}
label={'Civilité'}
name='civility'
>
<MenuItem value={'Mr'}>Monsieur</MenuItem>
<MenuItem value={'Mme'}>Madame</MenuItem>
</Select>
</FormControl>
)
</code></pre></div>
<ol start="2" dir="auto">
<li>Look at your console</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I need to get the name field of my Select<br>
However this one is not present in the triggered event</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">Ubuntu 17.04 (64bit)</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.12</td>
</tr>
<tr>
<td>React</td>
<td>15.6.1</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 61.0.3163.100 (64bit)</td>
</tr>
<tr>
<td>node</td>
<td>8.1.4</td>
</tr>
<tr>
<td>npm</td>
<td>5.4.2 </td>
</tr>
<tr>
<td>create-react-app </td>
<td>1.4.0 </td>
</tr>
</tbody>
</table> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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">Their should be a method to compensate for the dialogs bahavior when it opens. The dialog remove the scroll bar when it opens. When the site contains fixed elements that causes the element to move slightly.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">I was not able to find a method to solve this issue with the current possibilities.</p>
<p dir="auto">One way to solve the problem is to stop the removal of the scrollbar. This approach requires a way to diable the compensation in element like the AppBar etc.</p>
<p dir="auto">The other method could be some kind of Component og props that allows the fixed element to compensate in the same way as the AppBar.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Go to <a href="https://codesandbox.io/s/znwvvwq404" rel="nofollow">https://codesandbox.io/s/znwvvwq404</a></li>
<li>Observe the face icon and the "right" text in the red box.</li>
<li>Click the "Open Dialog" button</li>
<li>Observe the position of the face icon and the "right" text in the red box.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I tried to have fixed tabs right below the AppBar. In order to do that i wrapped the tabs in a div and fixed it. After that i used flexbox to center the Tabs.</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.16</td>
</tr>
<tr>
<td>React</td>
<td>15.6.1</td>
</tr>
<tr>
<td>browser</td>
<td>Google Chrome Version 61.0.3163.100</td>
</tr>
</tbody>
</table> | 0 |
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var a = [1, 'abc'] as [number, string];
var [b, c] = a;
[a].forEach(([d, e]) => {
alert(d);
alert(e);
});"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-s">'abc'</span><span class="pl-kos">]</span> <span class="pl-s1">as</span> <span class="pl-kos">[</span><span class="pl-s1">number</span><span class="pl-kos">,</span> <span class="pl-s1">string</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-kos">[</span><span class="pl-s1">b</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span><span class="pl-kos">;</span>
<span class="pl-kos">[</span><span class="pl-s1">a</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">forEach</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s1">d</span><span class="pl-kos">,</span> <span class="pl-s1">e</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-en">alert</span><span class="pl-kos">(</span><span class="pl-s1">d</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">alert</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-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">There's something amiss with the typing in the above code snippet. TypeScript can figure out that <code class="notranslate">b</code> is a <code class="notranslate">number</code> and <code class="notranslate">c</code> is a <code class="notranslate">string</code>, it can even figure out that the <code class="notranslate">callbackFn</code> of my <code class="notranslate">forEach</code> is a <code class="notranslate">(value: [number, string], index: number, ...) => void</code>, but it says <code class="notranslate">d</code> and <code class="notranslate">e</code> are <code class="notranslate">any</code>. I'd have expected it to also know that these are <code class="notranslate">number</code> and <code class="notranslate">string</code> respectively.</p> | <p dir="auto">Paste this snippet in the <a href="http://www.typescriptlang.org/Playground" rel="nofollow">playground</a>:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const result = [{ foo: 'hello' }]
.map(({ foo }) => foo)
.map(foo => foo);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">{</span> <span class="pl-c1">foo</span>: <span class="pl-s">'hello'</span> <span class="pl-kos">}</span><span class="pl-kos">]</span>
<span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">{</span> foo <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">foo</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">foo</span> <span class="pl-c1">=></span> <span class="pl-s1">foo</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">If you hover over <code class="notranslate">foo</code> in the first <code class="notranslate">map()</code> call, you'll notice that its type is <code class="notranslate">any</code> (should be <code class="notranslate">string</code>).</p>
<p dir="auto">The type of <code class="notranslate">result</code> is correctly inferred to be <code class="notranslate">string[]</code>, though. It just seems that there is no type information for destructured function parameters.</p> | 1 |
<p dir="auto">The e2e framework <code class="notranslate">deleteNs</code> needs to be smarter to better help triage issues in this space, as they all typically tend to be unique snowflakes particular to a problem with the node, pod, container runtime itself and rarely the controller that fundamentally drives deletes.</p>
<p dir="auto">Ideas:</p>
<ul dir="auto">
<li>deleteNS caches the set of Events in the namespace prior to invoking deletion, in cases of failure, logs all events that occurred in that namespace prior to the delete to know if there was an unexpected error event</li>
<li>log all pods in YAML or JSON in internal API version to see their state as observed from the API server to give clues as to why they are hung. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lavalamp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lavalamp">@lavalamp</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a> - is there a good one liner that I can reference that takes a pod and outputs to YAML?</li>
<li>log all information about nodes in YAML or JSON format that have pods actively scheduled against them that are not terminating (would help us know if there was a node problem encountered).</li>
</ul>
<p dir="auto">Input from others would be appreciated, but this seems like the general purpose issue that is often really hard to diagnose and debug during each release since we don't capture any information to help localize why the error happened.</p>
<p dir="auto">@kubernetes/sig-api-machinery @kubernetes/rh-cluster-infra</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Get all -l'app=cassandra' {{range.items}}{{range .metadata.labels}}{{.}}:{{end}}{{end}}
Expected: cassandra:cassandra:cassandra:
Got: cassandra:cassandra:cassandra:cassandra:"><pre class="notranslate"><code class="notranslate">Get all -l'app=cassandra' {{range.items}}{{range .metadata.labels}}{{.}}:{{end}}{{end}}
Expected: cassandra:cassandra:cassandra:
Got: cassandra:cassandra:cassandra:cassandra:
</code></pre></div> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.5.1</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/tbonz/0xx2wxjn/" rel="nofollow">https://jsfiddle.net/tbonz/0xx2wxjn/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">In the provided jsfiddle, choose option 'three' from the dropdown, the selected option displayed instead shows 'one'.</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">It is expected that the option selected would be displayed. Using a unique key for each option has no effect either.</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">It's not showing the option selected, and instead choosing another option with the same value.</p> | <h3 dir="auto">Vue.js version</h3>
<p dir="auto">2.0.3</p>
<h3 dir="auto">Reproduction Link</h3>
<p dir="auto"><a href="https://jsfiddle.net/dede89/rq049kpp/" rel="nofollow">https://jsfiddle.net/dede89/rq049kpp/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Click on change button to update the array.</p>
<h3 dir="auto">What is Expected?</h3>
<p dir="auto">The dom should update and display "James" and "Bill"</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Only "James" is displayed. The following warning is logged on the console:</p>
<p dir="auto">[Vue warn]: It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key.</p>
<p dir="auto">And then an exception is the raised:<br>
Uncaught (in promise) TypeError: Cannot read property 'tag' of undefined(…) lign 4044</p> | 0 |
<p dir="auto">Currently, we can perform a limited set of logic in the type definition, such as:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type A
a::eltype(Vector{Int})
end"><pre class="notranslate">type A
a<span class="pl-k">::</span><span class="pl-c1">eltype</span>(Vector{Int})
<span class="pl-k">end</span></pre></div>
<p dir="auto">but we can't involve a type parameter, such as:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type B{V <: AbstractVector}
a::eltype(V)
end"><pre class="notranslate">type B{V <span class="pl-k"><:</span> <span class="pl-c1">AbstractVector</span>}
a<span class="pl-k">::</span><span class="pl-c1">eltype</span>(V)
<span class="pl-k">end</span></pre></div>
<p dir="auto">AFAICT, at the moment the field types <code class="notranslate">A.types</code> is calculated when the type is defined and type parameters are inserted into the correct slots as they become known.</p>
<p dir="auto">However, it would be nice if the types could be calculated by arbitrary inferrable or <code class="notranslate">@pure</code> functions. Another simple example (close to my heart) would be:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="immutable StaticMatrix{M,N,T}
data::NTuple{M*N, T}
end"><pre class="notranslate">immutable StaticMatrix{M,N,T}
data<span class="pl-k">::</span><span class="pl-c1">NTuple{M*N, T}</span>
<span class="pl-k">end</span></pre></div>
<p dir="auto">However this results in an error that multiplication is not defined for <code class="notranslate">TypeVar</code>s. Instead, I need all of this code:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="immutable StaticMatrix{M,N,T,L}
data::NTuple{L, T}
function StaticMatrix(d)
check_params(Val{L}, Val{M}, Val{N})
new(d)
end
end
@generated function check_params{L,M,N}(::Type{Val{L}}, ::Type{Val{M}}, ::Type{Val{N}}) # could also be `@pure` in v0.5
if L != M*N
error("Type parameters don't match")
end
end"><pre class="notranslate">immutable StaticMatrix{M,N,T,L}
data<span class="pl-k">::</span><span class="pl-c1">NTuple{L, T}</span>
<span class="pl-k">function</span> <span class="pl-en">StaticMatrix</span>(d)
<span class="pl-c1">check_params</span>(Val{L}, Val{M}, Val{N})
<span class="pl-c1">new</span>(d)
<span class="pl-k">end</span>
<span class="pl-k">end</span>
<span class="pl-c1">@generated</span> <span class="pl-k">function</span> <span class="pl-en">check_params</span><span class="pl-c1">{L,M,N}</span>(<span class="pl-k">::</span><span class="pl-c1">Type{Val{L}}</span>, <span class="pl-k">::</span><span class="pl-c1">Type{Val{M}}</span>, <span class="pl-k">::</span><span class="pl-c1">Type{Val{N}}</span>) <span class="pl-c"><span class="pl-c">#</span> could also be `@pure` in v0.5</span>
<span class="pl-k">if</span> L <span class="pl-k">!=</span> M<span class="pl-k">*</span>N
<span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>Type parameters don't match<span class="pl-pds">"</span></span>)
<span class="pl-k">end</span>
<span class="pl-k">end</span></pre></div>
<p dir="auto">and my users need to foist around the redundant <code class="notranslate">L</code> paramater when they need to specify a concrete type.</p>
<p dir="auto">For abstract types, I'm hoping that inference itself could still be used to come up with a least-pessimistic approximation of each field, or otherwise just use <code class="notranslate">Any</code> when that's not possible. If that makes it difficult to avoid regressions, straight types (combinations of types and the relevant <code class="notranslate">TypeVar</code>s with <code class="notranslate">apply_type</code> but no other functions) could keep functioning as they currently do.</p> | <p dir="auto">Now that we have staged functions (or whatever name that will converge out of the discussion in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="36826392" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/7474" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/7474/hovercard" href="https://github.com/JuliaLang/julia/pull/7474">#7474</a>), can we be more greedy and request something similar to define types, i.e. where the type definition depends on the value of the parameters in a more general way than can currently be expressed?</p>
<p dir="auto">This would allow the easy implementation of fixed size / stack allocated arrays ( <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="37695185" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/7568" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/7568/hovercard" href="https://github.com/JuliaLang/julia/pull/7568">#7568</a> ), and the construction of <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/timholy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/timholy">@timholy</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43323777" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/8432" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/8432/hovercard" href="https://github.com/JuliaLang/julia/pull/8432">#8432</a> to build custom types to be used in the cartesian iterators clearly expresses the need for this. It can also have many other interesting uses. <code class="notranslate">NTuple{N,Int}</code> and <code class="notranslate">Tuple{Int,Int,Float}</code> (in the notation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43838745" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/8470" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/8470/hovercard" href="https://github.com/JuliaLang/julia/issues/8470">#8470</a> ) could be special cases (although I guess there are technical reasons that they need to be implemented separately?).</p> | 1 |
<p dir="auto">Hello together,</p>
<p dir="auto">the -= assignment seems to break for matrices > (90,90).</p>
<p dir="auto"><strong>Reproduction</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
for a in xrange(200):
px=np.arange(a)
#px=np.random.random(a)
dx = np.repeat(px[np.newaxis, :], a, axis=0) - np.repeat(px[:, np.newaxis], a, axis=1)
dx2 = np.repeat(px[np.newaxis, :], a, axis=0)
dx2 -= dx2.T
if len(np.nonzero(dx-dx2)[0]) != 0:
print a
break"><pre class="notranslate"><code class="notranslate">import numpy as np
for a in xrange(200):
px=np.arange(a)
#px=np.random.random(a)
dx = np.repeat(px[np.newaxis, :], a, axis=0) - np.repeat(px[:, np.newaxis], a, axis=1)
dx2 = np.repeat(px[np.newaxis, :], a, axis=0)
dx2 -= dx2.T
if len(np.nonzero(dx-dx2)[0]) != 0:
print a
break
</code></pre></div>
<p dir="auto">I'm using <code class="notranslate">numpy</code> version 1.8.1.</p>
<p dir="auto">Cheers,<br>
Stephan</p>
<h1 dir="auto">-------</h1>
<p dir="auto">Edit: I tested it on different machines:</p>
<p dir="auto">It gives out</p>
<ul dir="auto">
<li>91 on<code class="notranslate">numpy</code> version 1.6.2, 1.8.0 and 1.8.1.</li>
<li>3 on 1.3.0</li>
</ul> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/2075" rel="nofollow">http://projects.scipy.org/numpy/ticket/2075</a> on 2012-03-07 by trac user lxop, assigned to unknown.</em></p>
<p dir="auto">When I try to write to the transpose of an array, I get</p>
<p dir="auto"><code class="notranslate">AttributeError: attribute 'T' of 'numpy.ndarray' objects is not writable</code></p>
<p dir="auto">which seems fine, but the write <em>has</em> actually taken place.<br>
In particular, this occurs with in-place operations (+= etc).</p>
<p dir="auto">Test code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a = np.array ([1,2,3]).reshape ((1,3))
b = np.array ([4,5,6]).reshape ((3,1))
a.T += b"><pre class="notranslate"><code class="notranslate">a = np.array ([1,2,3]).reshape ((1,3))
b = np.array ([4,5,6]).reshape ((3,1))
a.T += b
</code></pre></div>
<p dir="auto">The result is the above error is raised and the operation actually goes ahead anyway. I would expect only one or the other.</p> | 1 |
<p dir="auto">Dropdown not working on the navigation bar on Android.</p>
<p dir="auto">I'm testing in some browsers for Android.</p>
<p dir="auto">Links within the dropbox dont work.</p> | <p dir="auto">Dropdown not working on the navigation bar on Android.</p>
<p dir="auto">I'm testing in some browsers for Android.</p>
<p dir="auto">Links within the dropbox dont work.</p> | 1 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codesandbox.io/s/vue-template-7rsmp" rel="nofollow">https://codesandbox.io/s/vue-template-7rsmp</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">componentInstance via this.$slots.foo[bar] which are filled with new v-slot syntax is undefined.</p>
<p dir="auto">For example:<br>
this.$slots.myslot[0].componentInstance // returns undefined</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">Should return VueComponent instance</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">undefined is returned</p>
<hr>
<p dir="auto">Old slot="xxx" syntax properly returns VueComponent instance in componentInstance property</p> | <h3 dir="auto">Version</h3>
<p dir="auto">2.5.17-beta.0<br>
2.5.16</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codepen.io/anon/pen/rKwWXq?editors=1010" rel="nofollow">https://codepen.io/anon/pen/rKwWXq?editors=1010</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Open the console</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">An instance of <code class="notranslate">MyComponent</code> should be logged</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto"><code class="notranslate">undefined</code> is logged</p>
<hr>
<p dir="auto">This worked in 2.5.15<br>
It also works if you change <code class="notranslate">RootComponent</code> to be non-functional:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const content = h(MyComponent, {}, this.slots.default)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">content</span> <span class="pl-c1">=</span> <span class="pl-en">h</span><span class="pl-kos">(</span><span class="pl-v">MyComponent</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">slots</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">I'm guessing this was caused by <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/vuejs/vue/commit/62a922e865f5e578f67b386cb614abfc173d7851/hovercard" href="https://github.com/vuejs/vue/commit/62a922e865f5e578f67b386cb614abfc173d7851"><tt>62a922e</tt></a>, <code class="notranslate">cloneVNode</code> doesn't include that property.</p> | 1 |
<p dir="auto">The following MWE shows a @test_throws regression. The throw is not anymore detected (this occurs also with Julia 1.6):</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> import ParallelStencil.ParallelKernel.parallel_indices
julia> using ParallelStencil.ParallelKernel.Exceptions
julia> using Test
julia> @test_throws ArgumentError parallel_indices(:((ix,iy,iz)), :(f()=(99; if x return y end; return)))
Test Failed at none:1
Expression: parallel_indices(:((ix, iy, iz)), :(f() = begin
99
if x
return y
end
return
end))
Expected: ArgumentError
Thrown: UndefVarError
ERROR: There was an error during testing"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-k">import</span> ParallelStencil<span class="pl-k">.</span>ParallelKernel<span class="pl-k">.</span>parallel_indices
julia<span class="pl-k">></span> <span class="pl-k">using</span> ParallelStencil<span class="pl-k">.</span>ParallelKernel<span class="pl-k">.</span>Exceptions
julia<span class="pl-k">></span> <span class="pl-k">using</span> Test
julia<span class="pl-k">></span> <span class="pl-c1">@test_throws</span> ArgumentError <span class="pl-en">parallel_indices</span>(:((ix,iy,iz)), :(<span class="pl-en">f</span>()<span class="pl-k">=</span>(<span class="pl-c1">99</span>; <span class="pl-k">if</span> x <span class="pl-k">return</span> y <span class="pl-k">end</span>; <span class="pl-k">return</span>)))
Test Failed at none<span class="pl-k">:</span><span class="pl-c1">1</span>
Expression<span class="pl-k">:</span> <span class="pl-en">parallel_indices</span>(:((ix, iy, iz)), :(<span class="pl-en">f</span>() <span class="pl-k">=</span> <span class="pl-k">begin</span>
<span class="pl-c1">99</span>
<span class="pl-k">if</span> x
<span class="pl-k">return</span> y
<span class="pl-k">end</span>
<span class="pl-k">return</span>
<span class="pl-k">end</span>))
Expected<span class="pl-k">:</span> ArgumentError
Thrown<span class="pl-k">:</span> UndefVarError
ERROR<span class="pl-k">:</span> There was an error during testing</pre></div>
<p dir="auto">If we call the function directly with these arguments, we see that it does throw an ArgumentError:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> parallel_indices(:((ix,iy,iz)), :(f()=(99; if x return y end; return)))
ERROR: ArgumentError: invalid kernel in @parallel kernel definition: only one return statement is allowed in the kernel and it must return nothing and be the last statement (required to ensure equal behaviour with different packages for parallellization).
Stacktrace:
[1] remove_return(body::Expr)
@ ParallelStencil.ParallelKernel ~/.julia/dev/ParallelStencil/src/ParallelKernel/shared.jl:80
[2] parallel_kernel(package::Symbol, numbertype::DataType, indices::Expr, kernel::Expr)
@ ParallelStencil.ParallelKernel ~/.julia/dev/ParallelStencil/src/ParallelKernel/parallel.jl:130
[3] parallel_indices(::Expr, ::Vararg{Expr, N} where N; package::Symbol, async::Bool)
@ ParallelStencil.ParallelKernel ~/.julia/dev/ParallelStencil/src/ParallelKernel/parallel.jl:113
[4] parallel_indices(::Expr, ::Vararg{Expr, N} where N)
@ ParallelStencil.ParallelKernel ~/.julia/dev/ParallelStencil/src/ParallelKernel/parallel.jl:112
[5] top-level scope
@ none:1"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-en">parallel_indices</span>(:((ix,iy,iz)), :(<span class="pl-en">f</span>()<span class="pl-k">=</span>(<span class="pl-c1">99</span>; <span class="pl-k">if</span> x <span class="pl-k">return</span> y <span class="pl-k">end</span>; <span class="pl-k">return</span>)))
ERROR<span class="pl-k">:</span> ArgumentError<span class="pl-k">:</span> invalid kernel <span class="pl-k">in</span> <span class="pl-c1">@parallel</span> kernel definition<span class="pl-k">:</span> only one <span class="pl-k">return</span> statement is allowed <span class="pl-k">in</span> the kernel and it must <span class="pl-k">return</span> <span class="pl-c1">nothing</span> and be the last statement (required to ensure equal behaviour with different packages <span class="pl-k">for</span> parallellization).
Stacktrace<span class="pl-k">:</span>
[<span class="pl-c1">1</span>] <span class="pl-c1">remove_return</span>(body<span class="pl-k">::</span><span class="pl-c1">Expr</span>)
@ ParallelStencil<span class="pl-k">.</span>ParallelKernel <span class="pl-k">~</span><span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>dev<span class="pl-k">/</span>ParallelStencil<span class="pl-k">/</span>src<span class="pl-k">/</span>ParallelKernel<span class="pl-k">/</span>shared<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">80</span>
[<span class="pl-c1">2</span>] <span class="pl-c1">parallel_kernel</span>(package<span class="pl-k">::</span><span class="pl-c1">Symbol</span>, numbertype<span class="pl-k">::</span><span class="pl-c1">DataType</span>, indices<span class="pl-k">::</span><span class="pl-c1">Expr</span>, kernel<span class="pl-k">::</span><span class="pl-c1">Expr</span>)
@ ParallelStencil<span class="pl-k">.</span>ParallelKernel <span class="pl-k">~</span><span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>dev<span class="pl-k">/</span>ParallelStencil<span class="pl-k">/</span>src<span class="pl-k">/</span>ParallelKernel<span class="pl-k">/</span>parallel<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">130</span>
[<span class="pl-c1">3</span>] <span class="pl-c1">parallel_indices</span>(<span class="pl-k">::</span><span class="pl-c1">Expr</span>, <span class="pl-k">::</span><span class="pl-c1">Vararg{Expr, N}</span> <span class="pl-k">where</span> N; package<span class="pl-k">::</span><span class="pl-c1">Symbol</span>, async<span class="pl-k">::</span><span class="pl-c1">Bool</span>)
@ ParallelStencil<span class="pl-k">.</span>ParallelKernel <span class="pl-k">~</span><span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>dev<span class="pl-k">/</span>ParallelStencil<span class="pl-k">/</span>src<span class="pl-k">/</span>ParallelKernel<span class="pl-k">/</span>parallel<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">113</span>
[<span class="pl-c1">4</span>] <span class="pl-c1">parallel_indices</span>(<span class="pl-k">::</span><span class="pl-c1">Expr</span>, <span class="pl-k">::</span><span class="pl-c1">Vararg{Expr, N}</span> <span class="pl-k">where</span> N)
@ ParallelStencil<span class="pl-k">.</span>ParallelKernel <span class="pl-k">~</span><span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>dev<span class="pl-k">/</span>ParallelStencil<span class="pl-k">/</span>src<span class="pl-k">/</span>ParallelKernel<span class="pl-k">/</span>parallel<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">112</span>
[<span class="pl-c1">5</span>] top<span class="pl-k">-</span>level scope
@ none<span class="pl-k">:</span><span class="pl-c1">1</span></pre></div>
<p dir="auto">Note that the other similar tests in the testsuite, it still works fine, e.g.:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> @test_throws ArgumentError parallel_indices(:((ix,iy,iz)), :(f()=(99; return something)))
Test Passed
Thrown: ArgumentError
julia> parallel_indices(:((ix,iy,iz)), :(f()=(99; return something)))
ERROR: ArgumentError: invalid kernel in @parallel kernel definition: the last statement must be a `return nothing` statement ('return' or 'return nothing' or 'nothing') as required for any CUDA kernels.
Stacktrace:
[1] remove_return(body::Expr)
@ ParallelStencil.ParallelKernel ~/.julia/dev/ParallelStencil/src/ParallelKernel/shared.jl:76
[2] parallel_kernel(package::Symbol, numbertype::DataType, indices::Expr, kernel::Expr)
@ ParallelStencil.ParallelKernel ~/.julia/dev/ParallelStencil/src/ParallelKernel/parallel.jl:130
[3] parallel_indices(::Expr, ::Vararg{Expr, N} where N; package::Symbol, async::Bool)
@ ParallelStencil.ParallelKernel ~/.julia/dev/ParallelStencil/src/ParallelKernel/parallel.jl:113
[4] parallel_indices(::Expr, ::Vararg{Expr, N} where N)
@ ParallelStencil.ParallelKernel ~/.julia/dev/ParallelStencil/src/ParallelKernel/parallel.jl:112
[5] top-level scope
@ none:1"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">@test_throws</span> ArgumentError <span class="pl-en">parallel_indices</span>(:((ix,iy,iz)), :(<span class="pl-en">f</span>()<span class="pl-k">=</span>(<span class="pl-c1">99</span>; <span class="pl-k">return</span> something)))
Test Passed
Thrown<span class="pl-k">:</span> ArgumentError
julia<span class="pl-k">></span> <span class="pl-en">parallel_indices</span>(:((ix,iy,iz)), :(<span class="pl-en">f</span>()<span class="pl-k">=</span>(<span class="pl-c1">99</span>; <span class="pl-k">return</span> something)))
ERROR<span class="pl-k">:</span> ArgumentError<span class="pl-k">:</span> invalid kernel <span class="pl-k">in</span> <span class="pl-c1">@parallel</span> kernel definition<span class="pl-k">:</span> the last statement must be a <span class="pl-s"><span class="pl-pds">`</span>return nothing<span class="pl-pds">`</span></span> statement (<span class="pl-s"><span class="pl-pds">'</span>return<span class="pl-pds">'</span></span> or <span class="pl-s"><span class="pl-pds">'</span>return nothing<span class="pl-pds">'</span></span> or <span class="pl-s"><span class="pl-pds">'</span>nothing<span class="pl-pds">'</span></span>) as required <span class="pl-k">for</span> any CUDA kernels.
Stacktrace<span class="pl-k">:</span>
[<span class="pl-c1">1</span>] <span class="pl-c1">remove_return</span>(body<span class="pl-k">::</span><span class="pl-c1">Expr</span>)
@ ParallelStencil<span class="pl-k">.</span>ParallelKernel <span class="pl-k">~</span><span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>dev<span class="pl-k">/</span>ParallelStencil<span class="pl-k">/</span>src<span class="pl-k">/</span>ParallelKernel<span class="pl-k">/</span>shared<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">76</span>
[<span class="pl-c1">2</span>] <span class="pl-c1">parallel_kernel</span>(package<span class="pl-k">::</span><span class="pl-c1">Symbol</span>, numbertype<span class="pl-k">::</span><span class="pl-c1">DataType</span>, indices<span class="pl-k">::</span><span class="pl-c1">Expr</span>, kernel<span class="pl-k">::</span><span class="pl-c1">Expr</span>)
@ ParallelStencil<span class="pl-k">.</span>ParallelKernel <span class="pl-k">~</span><span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>dev<span class="pl-k">/</span>ParallelStencil<span class="pl-k">/</span>src<span class="pl-k">/</span>ParallelKernel<span class="pl-k">/</span>parallel<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">130</span>
[<span class="pl-c1">3</span>] <span class="pl-c1">parallel_indices</span>(<span class="pl-k">::</span><span class="pl-c1">Expr</span>, <span class="pl-k">::</span><span class="pl-c1">Vararg{Expr, N}</span> <span class="pl-k">where</span> N; package<span class="pl-k">::</span><span class="pl-c1">Symbol</span>, async<span class="pl-k">::</span><span class="pl-c1">Bool</span>)
@ ParallelStencil<span class="pl-k">.</span>ParallelKernel <span class="pl-k">~</span><span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>dev<span class="pl-k">/</span>ParallelStencil<span class="pl-k">/</span>src<span class="pl-k">/</span>ParallelKernel<span class="pl-k">/</span>parallel<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">113</span>
[<span class="pl-c1">4</span>] <span class="pl-c1">parallel_indices</span>(<span class="pl-k">::</span><span class="pl-c1">Expr</span>, <span class="pl-k">::</span><span class="pl-c1">Vararg{Expr, N}</span> <span class="pl-k">where</span> N)
@ ParallelStencil<span class="pl-k">.</span>ParallelKernel <span class="pl-k">~</span><span class="pl-k">/</span><span class="pl-k">.</span>julia<span class="pl-k">/</span>dev<span class="pl-k">/</span>ParallelStencil<span class="pl-k">/</span>src<span class="pl-k">/</span>ParallelKernel<span class="pl-k">/</span>parallel<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">112</span>
[<span class="pl-c1">5</span>] top<span class="pl-k">-</span>level scope
@ none<span class="pl-k">:</span><span class="pl-c1">1</span></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> core.jl (setfield on an immutable throws a different error message)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> checked.jl (runtime-intrinsic implementation problems?)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ~errorshow.jl (dispatch or type-system mistake? shows up as recursive StackOverflow)~~ moving to separate issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="371280115" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/29695" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/29695/hovercard" href="https://github.com/JuliaLang/julia/issues/29695">#29695</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <del>math.jl (incorrect answers in sinh/cosh)</del> duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="364623018" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/29400" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/29400/hovercard" href="https://github.com/JuliaLang/julia/issues/29400">#29400</a> / fixed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="364650394" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/29401" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/29401/hovercard" href="https://github.com/JuliaLang/julia/pull/29401">#29401</a>.</li>
</ul> | 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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Changing value of enabled <code class="notranslate"><input type="file"></code> doesn't trigger any validators. Only need to change type to "text" and everything is working as expected.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Changing value of <code class="notranslate"><input type="file"></code> should trigger validators.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
View</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<md-card>
<md-card-title>Audio test creator</md-card-title>
<md-card-content>
<form [formGroup]="creationForm" (ngSubmit)="onSubmit(creationForm)">
<select (change)="onChange($event.target.value)" class="custom-select" formControlName="method">
<option value="" selected disabled>Test method</option>
<option *ngFor="let testMethod of testMethods" [value]="testMethod.value">
{{testMethod.display}}
</option>
</select>
<md-input placeholder="Test name" type="text" formControlName="name"></md-input>
<div [formGroup]="abxForm" >
<input type="file" formControlName="soundA" (change)="onInputChange($event.target.value)">
</div>
<button type="submit" [disabled]="!creationForm.valid">Submit</button>
</form>
</md-card-content>
</md-card>
"><pre class="notranslate"><code class="notranslate"><md-card>
<md-card-title>Audio test creator</md-card-title>
<md-card-content>
<form [formGroup]="creationForm" (ngSubmit)="onSubmit(creationForm)">
<select (change)="onChange($event.target.value)" class="custom-select" formControlName="method">
<option value="" selected disabled>Test method</option>
<option *ngFor="let testMethod of testMethods" [value]="testMethod.value">
{{testMethod.display}}
</option>
</select>
<md-input placeholder="Test name" type="text" formControlName="name"></md-input>
<div [formGroup]="abxForm" >
<input type="file" formControlName="soundA" (change)="onInputChange($event.target.value)">
</div>
<button type="submit" [disabled]="!creationForm.valid">Submit</button>
</form>
</md-card-content>
</md-card>
</code></pre></div>
<p dir="auto">Component class</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class SoundTestCreatorComponent implements OnInit {
readonly ABX_SECTION = "abxForm";
abxForm: FormGroup;
creationForm : FormGroup;
testMethods = [
{value: SoundTestEnum[SoundTestEnum.ABX], display: SoundTestEnum[SoundTestEnum.ABX]},
{value: SoundTestEnum[SoundTestEnum.MUSHRA], display: SoundTestEnum[SoundTestEnum.MUSHRA]}
];
constructor(private fb: FormBuilder) {
this.creationForm = this.fb.group({
"name": ["", Validators.required],
"method": ["", Validators.required],
});
this.abxForm = this.fb.group({
"soundA": ["", CustomValidators.fileInputRequired]
});
}
ngOnInit() { }
onSubmit(creationForm : any) {
console.log('Test creation form submitted');
console.log(creationForm);
}
onChange(selectedMethod : string) {
this.removeFormSections();
if(selectedMethod === SoundTestEnum[SoundTestEnum.ABX]) {
this.addAbxFormSection();
}
if(selectedMethod === SoundTestEnum[SoundTestEnum.MUSHRA]) {
}
console.log(selectedMethod);
}
private addAbxFormSection() {
this.creationForm.addControl(this.ABX_SECTION, this.abxForm);
}
private removeFormSections() {
this.creationForm.removeControl(this.ABX_SECTION);
}
onInputChange(val) {
console.log(val);
console.log(this.abxForm.enabled);
}"><pre class="notranslate"><code class="notranslate">export class SoundTestCreatorComponent implements OnInit {
readonly ABX_SECTION = "abxForm";
abxForm: FormGroup;
creationForm : FormGroup;
testMethods = [
{value: SoundTestEnum[SoundTestEnum.ABX], display: SoundTestEnum[SoundTestEnum.ABX]},
{value: SoundTestEnum[SoundTestEnum.MUSHRA], display: SoundTestEnum[SoundTestEnum.MUSHRA]}
];
constructor(private fb: FormBuilder) {
this.creationForm = this.fb.group({
"name": ["", Validators.required],
"method": ["", Validators.required],
});
this.abxForm = this.fb.group({
"soundA": ["", CustomValidators.fileInputRequired]
});
}
ngOnInit() { }
onSubmit(creationForm : any) {
console.log('Test creation form submitted');
console.log(creationForm);
}
onChange(selectedMethod : string) {
this.removeFormSections();
if(selectedMethod === SoundTestEnum[SoundTestEnum.ABX]) {
this.addAbxFormSection();
}
if(selectedMethod === SoundTestEnum[SoundTestEnum.MUSHRA]) {
}
console.log(selectedMethod);
}
private addAbxFormSection() {
this.creationForm.addControl(this.ABX_SECTION, this.abxForm);
}
private removeFormSections() {
this.creationForm.removeControl(this.ABX_SECTION);
}
onInputChange(val) {
console.log(val);
console.log(this.abxForm.enabled);
}
</code></pre></div>
<p dir="auto">CustomValidator to check calls.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function isEmptyInputValue(value: any) {
return value == null || typeof value === 'string' && value.length === 0;
}
export class CustomValidators {
static fileInputRequired(c: FormControl) {
return (isEmptyInputValue(c.value)) ? {
fileInputRequired: {
valid: false
}
} : null;
}
}"><pre class="notranslate"><code class="notranslate">function isEmptyInputValue(value: any) {
return value == null || typeof value === 'string' && value.length === 0;
}
export class CustomValidators {
static fileInputRequired(c: FormControl) {
return (isEmptyInputValue(c.value)) ? {
fileInputRequired: {
valid: false
}
} : null;
}
}
</code></pre></div>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.1</li>
<li><strong>Browser:</strong> ALL</li>
<li><strong>Language:</strong> [ TypeScript 2.0.2 ]</li>
<li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.0.0</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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto">I am submitting this as a bug report but it may turn out to be a general limitation in how Angular apps can be built and bundled. Given that there is <a href="https://github.com/systemjs/builder/issues/739" data-hovercard-type="issue" data-hovercard-url="/systemjs/builder/issues/739/hovercard">a similar issue posted on the SystemJS-Builder issue tracker</a> my use case may not be so unique and of interest to a wider community.</p>
<p dir="auto"><strong>Use Case and Current behavior</strong><br>
Consider an NgModule <code class="notranslate">LazyFeatureModule</code>. The feature implements a workflow with a few View Components that may be used in multiple applications.</p>
<p dir="auto">It was transpiled against Angular 2.4.6 and bundled with <a href="http://rollupjs.org" rel="nofollow">Rollup</a>. The entry file to Rollup is <code class="notranslate">foo-feature/index.js</code> which only exports <code class="notranslate">LazyFeatureModule</code>. From this Rollup generates <code class="notranslate">foo-feature/bundle.js</code> which contains all the dependencies required by <code class="notranslate">LazyFeatureModule</code> - including all (ES2015-imported) Angular dependencies - and which eventually exports <code class="notranslate">LazyFeatureModule</code> again. <code class="notranslate">bundle.js</code> was meant to become a pre-bundled Angular module shipped with an npm-package, such that applications which lazily load the bundle don't need to be rebuilt when updating the feature. They should be fine with running an <code class="notranslate">npm update foo-feature</code> on their side.</p>
<p dir="auto">The application which aims to incorporate the pre-bundled feature has a routing configuration which lazily loads the feature like so:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{path: 'my-foo-feature', loadChildren: './node_modules/foo-feature/bundle.js#LazyFeatureModule'}"><pre class="notranslate"><span class="pl-kos">{</span><span class="pl-c1">path</span>: <span class="pl-s">'my-foo-feature'</span><span class="pl-kos">,</span> <span class="pl-c1">loadChildren</span>: <span class="pl-s">'./node_modules/foo-feature/bundle.js#LazyFeatureModule'</span><span class="pl-kos">}</span></pre></div>
<p dir="auto">The bundle gets loaded, so the paths are correct, but I get an error stating <code class="notranslate">No NgModule metadata found for LazyFeatureModule</code>.</p>
<p dir="auto">Rollup builds the feature-bundle without warnings and the export produced by Rollup actually looks quite good. These are the last few lines in <code class="notranslate">bundle.js</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// ...
exports.LazyFeatureModule = (function () {
function LazyFeatureModule() {
}
return LazyFeatureModule;
}());
exports.LazyFeatureModule = __decorate([
NgModule({
imports: [
CommonModule,
RouterModule.forChild(ROUTES)
],
declarations: [
HelloView
]
})
], exports.LazyFeatureModule);"><pre class="notranslate"><span class="pl-c">// ...</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">LazyFeatureModule</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">function</span> <span class="pl-v">LazyFeatureModule</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">return</span> <span class="pl-v">LazyFeatureModule</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">LazyFeatureModule</span> <span class="pl-c1">=</span> <span class="pl-en">__decorate</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
<span class="pl-v">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">imports</span>: <span class="pl-kos">[</span>
<span class="pl-v">CommonModule</span><span class="pl-kos">,</span>
<span class="pl-v">RouterModule</span><span class="pl-kos">.</span><span class="pl-en">forChild</span><span class="pl-kos">(</span><span class="pl-c1">ROUTES</span><span class="pl-kos">)</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">declarations</span>: <span class="pl-kos">[</span>
<span class="pl-v">HelloView</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">LazyFeatureModule</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">So LazyFeatureModule is actually decorated with NgModule metadata and exported. I could track down the problem and the reason seems to be that when Metadata is resolved, a function</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" function _isNgModuleMetadata(obj) {
return obj instanceof NgModule;
}
"><pre class="notranslate"><code class="notranslate"> function _isNgModuleMetadata(obj) {
return obj instanceof NgModule;
}
</code></pre></div>
<p dir="auto">is called and returns <em>false</em>.</p>
<p dir="auto">Above function is included in both bundles. When the error happens it is called inside of <em>app-bundle</em> but <code class="notranslate">obj</code> is a <code class="notranslate">DecoratorFactory</code> of the lazy-loaded feature bundle. Since the feature bundle has been bundled separately, there's not only one but two<code class="notranslate">NgModule</code> definitions, one in <em>app-bundle</em> and one in <em>feature-bundle</em>. So we got two bundles with two <code class="notranslate">NgModule</code> class definitions. Therefore I suspect that when above code in <em>app-bundle</em> tests a <code class="notranslate">DecoratorFactory</code> of <em>feature-bundle</em> it will test against a different NgModule constructor function reference and therefore returns <em>false</em> for the feature bundle.</p>
<p dir="auto">As "fix" for the problem at hand I could suggest that above function replaces a hard <em>instanceof</em> check for a test against a special property which indicates that <code class="notranslate">obj</code> is a valid NgModule (something which TypeScript Reference calls <em>Discriminant Properties</em>). However I wonder if my intended use case is possible at all or whether code duplication may also affect dependency injection (which compares against constructor references).</p>
<p dir="auto">One of the motivations of shipping <em>pre-bundled</em> features was to enable apps to npm-update the feature without the need for a complete rebuild and to ease the build configuration for applications incorporating the feature.</p>
<p dir="auto">However, as of today <em>deduplication</em> seems to be a strong requirement when building apps out of multiple chunks (multiple chunks are a logical consequence when aiming for lazy-loading). Now the questions which remain for me:</p>
<ul dir="auto">
<li>Do you consider this issue a bug or did Angular never intend to support the given use case?</li>
<li>Do you agree with the analysis given in the issue or may I am wrong? If code duplication is a problem should <em>deduplication</em> be mentioned in guides on bundling Angular apps?</li>
</ul>
<p dir="auto"><strong>Angular version:</strong> 2.4.6<br>
... bundles use JIT compiler at the moment</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li>[email protected]</li>
<li>[email protected]</li>
<li>rollup configured with<br>
format: <code class="notranslate">"iife"</code> for app-bundle<br>
format: <code class="notranslate">"cjs"</code> for feature-bundle</li>
<li>gulp 3.9.1</li>
</ul>
<ul dir="auto">
<li><strong>Browser:</strong> [all]</li>
<li><strong>Language:</strong> [TypeScript | ES6 | ES5]</li>
</ul> | 0 |
<p dir="auto">Search for “AUTO_STYLE” returns two API entries in the search results. Both link to the same API page.</p>
<p dir="auto">Searching for that in the API search revealed two entries as well: (1) in core, which is deprecated and (2) in animations.</p>
<p dir="auto">Curiously BOTH pages present the SAME content … the content for the one in animations. The info about the deprecated <code class="notranslate">AUTO_STYLE</code> in core doesn’t appear. The browser address bar shows the two different paths to that content.</p>
<p dir="auto">There is an API filter for deprecated so clearly we intend to show deprecated objects in the API search. The bug there is that we show the non-deprecated animations content in the deprecated core link.</p>
<p dir="auto">This may be <strong>a symptom of a deeper problem with API pages</strong> that have the same title. It is unusual ... perhaps bad ... but not impossible for two different modules to have an object with the same name (that's what is happening here with <code class="notranslate">AUTO_STYLE</code>). If that is OK, then the content should be different. I think a bug is causing the last-generated content to be assigned to all links with the same title.</p>
<hr>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div> | <p dir="auto">While playing with Angular 2, I realized that the order of providers at bootstrapping is important, but I did not understood why. It would be great if someone can explain it.</p>
<p dir="auto">HASHLOCATIONSTRATEGY DID NOT WORK</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="bootstrap(APP, [JSONP_PROVIDERS, provide(LocationStrategy, { useClass: HashLocationStrategy }), provide(APP_BASE_HREF, {useValue: '/'}), ROUTER_PROVIDERS]);"><pre class="notranslate"><span class="pl-en">bootstrap</span><span class="pl-kos">(</span><span class="pl-c1">APP</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">JSONP_PROVIDERS</span><span class="pl-kos">,</span> <span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-v">LocationStrategy</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">useClass</span>: <span class="pl-v">HashLocationStrategy</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-c1">APP_BASE_HREF</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">useValue</span>: <span class="pl-s">'/'</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">ROUTER_PROVIDERS</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">HASHLOCATIONSTRATEGY WORKED</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="bootstrap(APP, [JSONP_PROVIDERS, ROUTER_PROVIDERS, provide(LocationStrategy, { useClass: HashLocationStrategy }),provide(APP_BASE_HREF, {useValue: '/'})]);"><pre class="notranslate"><span class="pl-en">bootstrap</span><span class="pl-kos">(</span><span class="pl-c1">APP</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">JSONP_PROVIDERS</span><span class="pl-kos">,</span> <span class="pl-c1">ROUTER_PROVIDERS</span><span class="pl-kos">,</span> <span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-v">LocationStrategy</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">useClass</span>: <span class="pl-v">HashLocationStrategy</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-c1">APP_BASE_HREF</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">useValue</span>: <span class="pl-s">'/'</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | 0 |
<h1 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature request</h1>
<p dir="auto">Google has recently released PEGASUS, a new model for text summarization: <a href="https://ai.googleblog.com/2020/06/pegasus-state-of-art-model-for.html" rel="nofollow">https://ai.googleblog.com/2020/06/pegasus-state-of-art-model-for.html</a>. I think It would be interesting to have it included in Transformers library. The code and checkpoints are here: <a href="https://github.com/google-research/pegasus">https://github.com/google-research/pegasus</a>. This model seems to accomplish human-like summarization.</p> | <h1 dir="auto"><g-emoji class="g-emoji" alias="star2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f31f.png">🌟</g-emoji> New model addition</h1>
<h2 dir="auto">Model description</h2>
<p dir="auto"><a href="https://ai.googleblog.com/2020/06/pegasus-state-of-art-model-for.html?m=1" rel="nofollow">https://ai.googleblog.com/2020/06/pegasus-state-of-art-model-for.html?m=1</a></p>
<p dir="auto"><a href="https://arxiv.org/abs/1912.08777" rel="nofollow">https://arxiv.org/abs/1912.08777</a></p>
<p dir="auto">Abstract<br>
Recent work pre-training Transformers with self-supervised objectives on large text corpora has shown great success when fine-tuned on downstream NLP tasks including text summarization. However, pre-training objectives tailored for abstractive text summarization have not been explored. Furthermore there is a lack of systematic evaluation across diverse domains. In this work, we propose pre-training large Transformer-based encoder-decoder models on massive text corpora with a new self-supervised objective. In PEGASUS, important sentences are removed/masked from an input document and are generated together as one output sequence from the remaining sentences, similar to an extractive summary. We evaluated our best PEGASUS model on 12 downstream summarization tasks spanning news, science, stories, instructions, emails, patents, and legislative bills. Experiments demonstrate it achieves state-of-the-art performance on all 12 downstream datasets measured by ROUGE scores. Our model also shows surprising performance on low-resource summarization, surpassing previous state-of-the-art results on 6 datasets with only 1000 examples. Finally we validated our results using human evaluation and show that our model summaries achieve human performance on multiple datasets.</p>
<h2 dir="auto">Open source status</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> the model implementation is available: <a href="https://github.com/google-research/pegasus">https://github.com/google-research/pegasus</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> the model weights are available: <a href="https://github.com/google-research/pegasus">https://github.com/google-research/pegasus</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> who are the authors: Jingqing Zhang <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JingqingZ/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JingqingZ">@JingqingZ</a>, Yao Zhao <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yaozhaogoogle/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yaozhaogoogle">@yaozhaogoogle</a>, Mohammad Saleh and Peter J. Liu</li>
</ul> | 1 |
<ol dir="auto">
<li>Open new atom window.</li>
<li>Cmd+w (leaves behind a empty window)</li>
<li>Cmd+r</li>
</ol>
<p dir="auto">Causes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught ReferenceError: jQuery is not defined /Applications/Atom.app/Contents/Resources/app/node_modules/bootstrap/js/tooltip.js:213"><pre class="notranslate"><code class="notranslate">Uncaught ReferenceError: jQuery is not defined /Applications/Atom.app/Contents/Resources/app/node_modules/bootstrap/js/tooltip.js:213
</code></pre></div> | <p dir="auto">Since I updated to 0.45.0 today, I'm getting the following error in the console after using Atom for a few minutes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught ReferenceError: jQuery is not defined
/Applications/Atom.app/Contents/Resources/app/node_modules/bootstrap/js/tooltip.js:213"><pre class="notranslate"><code class="notranslate">Uncaught ReferenceError: jQuery is not defined
/Applications/Atom.app/Contents/Resources/app/node_modules/bootstrap/js/tooltip.js:213
</code></pre></div>
<p dir="auto">Atom version: 0.45.0<br>
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.45.0 Atom-Shell/0.7.6 Safari/537.36</p> | 1 |
<p dir="auto">In step 11 of the "Build a Personal Portfolio Webpage" the word "several" is repeated.</p> | <h4 dir="auto">Challenge Name</h4>
<p dir="auto">Slice and Spice</p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">Using the Chrome debugging tools I looked at the result, arr1 and arr2 and they seem to meet the expected output. To clone the array I have tried arr2.slice() and Array.from(arr2), but the test results stay the same.<br>
Expected results</p>
<ol dir="auto">
<li>Results say that response is not in the right order<br>
frankenSplice([1, 2], ["a", "b"], 1) should return ["a", 1, 2, "b"]</li>
<li>The first array should remain the same after the function runs.</li>
<li>The second array should remain the same after the function runs.</li>
</ol>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Browser Name, Version: Chrome Version 52.0.2743.116 m</li>
<li>Operating System: windows 7 64 bit</li>
<li>Mobile, Desktop, or Tablet:</li>
</ul>
<h4 dir="auto">Your Code</h4>
<p dir="auto">function frankenSplice(arr1, arr2, n) {</p>
<p dir="auto">var result = Array.from(arr2);<br>
for (var i=0;i<arr1.length;i++)<br>
{<br>
result.splice(n+i,0,arr1[i]);<br>
}</p>
<p dir="auto">return result;<br>
}</p>
<p dir="auto">frankenSplice([1, 2], ["a", "b"], 1);</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
"><pre class="notranslate"></pre></div>
<h4 dir="auto">Screenshot</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/20459783/18397886/388f0a82-7698-11e6-8002-6e078055c3bc.png"><img src="https://cloud.githubusercontent.com/assets/20459783/18397886/388f0a82-7698-11e6-8002-6e078055c3bc.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto"><strong>Elasticsearch version</strong>:<br>
2.3<br>
<strong>JVM version</strong>:<br>
1.8.0<br>
<strong>OS version</strong>:<br>
Windows 7<br>
<strong>Description of the problem including expected versus actual behavior</strong>:<br>
I have set cors conf in elasticsearch.yml like this<br>
<code class="notranslate">http.cors.enabled : true http.cors.allow-origin : "*" http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length</code></p>
<p dir="auto">When requesting elasticsearch from file:///C:/elastic/index.html i got the following error<br>
<code class="notranslate">Request header field Content-Type is not allowed by Access-Control-Allow-Headers</code></p>
<p dir="auto">I switched to 2.2 version and i set the same parameters and it works like a charm</p>
<p dir="auto"><strong>Steps to reproduce</strong>:<br>
1.Set cors parameters in elasticsearch.yml<br>
2.Request elasticsearch from an url like this: file:///c:/..</p> | <p dir="auto"><strong>Elasticsearch version</strong>: 2.3.0<br>
<strong>JVM version</strong>: 1.8.0_31<br>
<strong>OS version</strong>: MAC OS X 10.10.5<br>
<strong>Description of the problem including expected versus actual behavior</strong>:<br>
Definition of an accepted a custom header does not seem to work.</p>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>Add the following lines to the configuration file</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User""><pre class="notranslate"><code class="notranslate">http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User"
</code></pre></div>
<ol dir="auto">
<li>Ran an ajax POST request with X-User header.</li>
<li>Getting response "Request header field x-user is not allowed by Access-Control-Allow-Headers in preflight response."</li>
</ol> | 1 |
<p dir="auto">I upgraded to python 3.7.</p>
<p dir="auto">Now when I try to run it in jupyter notebook or in terminal, I receive following errors:</p>
<p dir="auto">Traceback (most recent call last):</p>
<p dir="auto">File "/usr/local/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 2963, in run_code<br>
exec(code_obj, self.user_global_ns, self.user_ns)</p>
<p dir="auto">File "", line 4, in <br>
import tensorflow as tf</p>
<p dir="auto">File "/usr/local/lib/python3.7/site-packages/tensorflow/<strong>init</strong>.py", line 22, in <br>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import</p>
<p dir="auto">File "/usr/local/lib/python3.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow</p>
<p dir="auto">File "/usr/local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *</p>
<p dir="auto">File "/usr/local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 114<br>
def TFE_ContextOptionsSetAsync(arg1, async):<br>
^<br>
SyntaxError: invalid syntax</p> | <p dir="auto">I'm sure developers are working hard to catch up with Python 3.7.<br>
Is there any timeline?</p>
<p dir="auto">pip3 install tensorflow - apparently does not work, building from source:</p>
<p dir="auto">OS Platform and Distribution: Mac OS X 10.13.5<br>
Python: Python 3.7.0 (Homebrew)<br>
TensorFlow installed from: source (<a href="https://github.com/tensorflow/tensorflow.git">https://github.com/tensorflow/tensorflow.git</a>)<br>
TensorFlow version: TensorFlow 1.9.0-rc2<br>
Bazel version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Build label: 0.15.0-homebrew
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 26 12:42:27 2018 (1530016947)
Build timestamp: 1530016947
Build timestamp as int: 1530016947"><pre class="notranslate"><code class="notranslate">Build label: 0.15.0-homebrew
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 26 12:42:27 2018 (1530016947)
Build timestamp: 1530016947
Build timestamp as int: 1530016947
</code></pre></div>
<p dir="auto">CUDA/cuDNN version: None<br>
GPU model and memory: None<br>
Exact command to reproduce:<br>
<code class="notranslate">bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Starting local Bazel server and connecting to it...
...........................
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_common.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_decode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/BUILD:356:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries:ar_model: target '//tensorflow/contrib/timeseries/python/timeseries:ar_model' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:73:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:230:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/bayesflow/BUILD:17:1: in py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target '//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/kfac/python/ops/BUILD:80:1: in py_library rule //tensorflow/contrib/kfac/python/ops:loss_functions: target '//tensorflow/contrib/kfac/python/ops:loss_functions' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/BUILD:14:1: in py_library rule //tensorflow/contrib:contrib_py: target '//tensorflow/contrib:contrib_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (303 packages loaded).
INFO: Found 1 target...
INFO: From Linking external/grpc/libgrpc_base_c.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(ev_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(fork_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_fallback.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_host_name_max.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iocp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iomgr_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_set_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(resolve_address_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_client_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_utils_posix_noifaddrs.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(timer_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(unix_sockets_posix_noop.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(wakeup_fd_eventfd.o) has no symbols
INFO: From Linking external/grpc/libalts_util.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_windows.o) has no symbols
INFO: From Linking external/grpc/libtsi.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libtsi.a(ssl_session_openssl.o) has no symbols
INFO: From Linking external/grpc/libgrpc++_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc++_base.a(rpc_method.o) has no symbols
INFO: From Linking external/grpc/libgpr_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_iphone.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_android.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_util_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(sync_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(time_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tls_pthread.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_msys.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(wrap_memcpy.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(thd_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(stap_timers.o) has no symbols
INFO: From Linking external/grpc/third_party/address_sorting/libaddress_sorting.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/third_party/address_sorting/libaddress_sorting.a(address_sorting_windows.o) has no symbols
ERROR: /Users/zardoz/Projects/tensorflow/tensorflow/python/BUILD:5315:1: Executing genrule //tensorflow/python:framework/fast_tensor_util.pyx_cython_translation failed (Exit 1)
Traceback (most recent call last):
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/execroot/org_tensorflow/bazel-out/host/bin/external/cython/cython_binary.runfiles/cython/cython.py", line 17, in <module>
main(command_line = 1)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 720, in main
result = compile(sources, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 695, in compile
return compile_multiple(source, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 666, in compile_multiple
context = options.create_context()
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 590, in create_context
self.cplus, self.language_level, options=self)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 75, in __init__
from . import Builtin, CythonScope
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Visitor.py", line 15, in <module>
from . import ExprNodes
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/ExprNodes.py", line 2875
await = None
^
SyntaxError: invalid syntax
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 179.318s, Critical Path: 6.38s
INFO: 413 processes: 413 local.
FAILED: Build did NOT complete successfully"><pre class="notranslate"><code class="notranslate">Starting local Bazel server and connecting to it...
...........................
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_common.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_decode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/BUILD:356:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries:ar_model: target '//tensorflow/contrib/timeseries/python/timeseries:ar_model' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:73:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:230:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/bayesflow/BUILD:17:1: in py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target '//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/kfac/python/ops/BUILD:80:1: in py_library rule //tensorflow/contrib/kfac/python/ops:loss_functions: target '//tensorflow/contrib/kfac/python/ops:loss_functions' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/BUILD:14:1: in py_library rule //tensorflow/contrib:contrib_py: target '//tensorflow/contrib:contrib_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (303 packages loaded).
INFO: Found 1 target...
INFO: From Linking external/grpc/libgrpc_base_c.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(ev_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(fork_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_fallback.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_host_name_max.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iocp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iomgr_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_set_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(resolve_address_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_client_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_utils_posix_noifaddrs.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(timer_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(unix_sockets_posix_noop.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(wakeup_fd_eventfd.o) has no symbols
INFO: From Linking external/grpc/libalts_util.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_windows.o) has no symbols
INFO: From Linking external/grpc/libtsi.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libtsi.a(ssl_session_openssl.o) has no symbols
INFO: From Linking external/grpc/libgrpc++_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc++_base.a(rpc_method.o) has no symbols
INFO: From Linking external/grpc/libgpr_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_iphone.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_android.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_util_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(sync_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(time_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tls_pthread.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_msys.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(wrap_memcpy.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(thd_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(stap_timers.o) has no symbols
INFO: From Linking external/grpc/third_party/address_sorting/libaddress_sorting.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/third_party/address_sorting/libaddress_sorting.a(address_sorting_windows.o) has no symbols
ERROR: /Users/zardoz/Projects/tensorflow/tensorflow/python/BUILD:5315:1: Executing genrule //tensorflow/python:framework/fast_tensor_util.pyx_cython_translation failed (Exit 1)
Traceback (most recent call last):
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/execroot/org_tensorflow/bazel-out/host/bin/external/cython/cython_binary.runfiles/cython/cython.py", line 17, in <module>
main(command_line = 1)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 720, in main
result = compile(sources, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 695, in compile
return compile_multiple(source, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 666, in compile_multiple
context = options.create_context()
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 590, in create_context
self.cplus, self.language_level, options=self)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 75, in __init__
from . import Builtin, CythonScope
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Visitor.py", line 15, in <module>
from . import ExprNodes
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/ExprNodes.py", line 2875
await = None
^
SyntaxError: invalid syntax
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 179.318s, Critical Path: 6.38s
INFO: 413 processes: 413 local.
FAILED: Build did NOT complete successfully
</code></pre></div> | 1 |
<ul dir="auto">
<li>Electron version: 1.3</li>
<li>Operating system: Windows</li>
</ul>
<p dir="auto">My app load images every 1 minute and RAM memory is full in electronjs.</p> | <p dir="auto">This might be more an issue with Chrome than Electron but in VS Code we notice that opening a large image (e.g. BMP) in the editor adds a lot of memory to the process. Now, when we close the editor we release the DOM elements from the document but the memory does not go down instead it just stays. So you can get into an out of memory situation by continuing to open the image and closing it.</p>
<p dir="auto">Is this known already by other users? Is there a programmatic way to release the image and free it?</p>
<p dir="auto">Btw I am seeing this in the same way in Atom and can make it crash by closing and opening a tab with a large image:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/900690/16422055/53f0a5a8-3d57-11e6-89c2-fa2359463122.png"><img src="https://cloud.githubusercontent.com/assets/900690/16422055/53f0a5a8-3d57-11e6-89c2-fa2359463122.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="215316030" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/15738" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/15738/hovercard?comment_id=287843016&comment_type=issue_comment" href="https://github.com/pandas-dev/pandas/pull/15738#issuecomment-287843016">#15738 (comment)</a></p>
<p dir="auto">Currently bool data is passed to the generic python object hashtable for the following methods, making them all very slow.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">value_counts</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">rank</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">unique</code></li>
</ul>
<p dir="auto">Linked PR casts to int for <code class="notranslate">factorize</code>, <code class="notranslate">duplicated</code>, <code class="notranslate">drop_duplicates</code></p>
<p dir="auto">We could skip the hashing altogether and take advantage of the fixed set of values, e.g. below is a fastpath for unique.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="%%cython
from numpy cimport uint8_t
cimport cython
import numpy as np
@cython.boundscheck(False)
@cython.wraparound(False)
def unique(uint8_t[:] data):
cdef:
bint seen_true = False
bint seen_false = False
Py_ssize_t i, N = len(data)
uint8_t val
with nogil:
for i in range(N):
val = data[i]
if val == 0:
seen_false = True
elif val == 1:
seen_true = True
if seen_true and seen_false:
break
if seen_true and seen_false:
return np.array([True, False])
elif seen_true:
return np.array([True])
elif seen_false:
return np.array([False])
else:
return np.array([], dtype=bool)
In [35]: bools = np.array([False, True] * 100000)
In [36]: %timeit pd.unique(bools.view('uint8')).astype(bool)
1000 loops, best of 3: 1.74 ms per loop
In [37]: %timeit unique(bools.view('uint8'))
100000 loops, best of 3: 3.47 µs per loop"><pre class="notranslate"><span class="pl-c1">%</span><span class="pl-c1">%</span><span class="pl-s1">cython</span>
<span class="pl-k">from</span> <span class="pl-s1">numpy</span> <span class="pl-s1">cimport</span> <span class="pl-s1">uint8_t</span>
<span class="pl-s1">cimport</span> <span class="pl-s1">cython</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-en">@<span class="pl-s1">cython</span>.<span class="pl-en">boundscheck</span>(<span class="pl-c1">False</span>)</span>
<span class="pl-en">@<span class="pl-s1">cython</span>.<span class="pl-en">wraparound</span>(<span class="pl-c1">False</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">unique</span>(<span class="pl-s1">uint8_t</span>[:] <span class="pl-s1">data</span>):
<span class="pl-s1">cdef</span>:
<span class="pl-s1">bint</span> <span class="pl-s1">seen_true</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>
<span class="pl-s1">bint</span> <span class="pl-s1">seen_false</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span>
<span class="pl-v">Py_ssize_t</span> <span class="pl-s1">i</span>, <span class="pl-v">N</span> <span class="pl-c1">=</span> <span class="pl-en">len</span>(<span class="pl-s1">data</span>)
<span class="pl-s1">uint8_t</span> <span class="pl-s1">val</span>
<span class="pl-k">with</span> <span class="pl-s1">nogil</span>:
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-v">N</span>):
<span class="pl-s1">val</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>[<span class="pl-s1">i</span>]
<span class="pl-k">if</span> <span class="pl-s1">val</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>:
<span class="pl-s1">seen_false</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">elif</span> <span class="pl-s1">val</span> <span class="pl-c1">==</span> <span class="pl-c1">1</span>:
<span class="pl-s1">seen_true</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">if</span> <span class="pl-s1">seen_true</span> <span class="pl-c1">and</span> <span class="pl-s1">seen_false</span>:
<span class="pl-k">break</span>
<span class="pl-k">if</span> <span class="pl-s1">seen_true</span> <span class="pl-c1">and</span> <span class="pl-s1">seen_false</span>:
<span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">True</span>, <span class="pl-c1">False</span>])
<span class="pl-k">elif</span> <span class="pl-s1">seen_true</span>:
<span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">True</span>])
<span class="pl-k">elif</span> <span class="pl-s1">seen_false</span>:
<span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">False</span>])
<span class="pl-k">else</span>:
<span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">bool</span>)
<span class="pl-v">In</span> [<span class="pl-c1">35</span>]: <span class="pl-s1">bools</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">False</span>, <span class="pl-c1">True</span>] <span class="pl-c1">*</span> <span class="pl-c1">100000</span>)
<span class="pl-v">In</span> [<span class="pl-c1">36</span>]: <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">pd</span>.<span class="pl-en">unique</span>(<span class="pl-s1">bools</span>.<span class="pl-en">view</span>(<span class="pl-s">'uint8'</span>)).<span class="pl-en">astype</span>(<span class="pl-s1">bool</span>)
<span class="pl-c1">1000</span> <span class="pl-s1">loops</span>, <span class="pl-s1">best</span> <span class="pl-s1">of</span> <span class="pl-c1">3</span>: <span class="pl-c1">1.74</span> <span class="pl-s1">ms</span> <span class="pl-s1">per</span> <span class="pl-s1">loop</span>
<span class="pl-v">In</span> [<span class="pl-c1">37</span>]: <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-en">unique</span>(<span class="pl-s1">bools</span>.<span class="pl-en">view</span>(<span class="pl-s">'uint8'</span>))
<span class="pl-c1">100000</span> <span class="pl-s1">loops</span>, <span class="pl-s1">best</span> <span class="pl-s1">of</span> <span class="pl-c1">3</span>: <span class="pl-c1">3.47</span> <span class="pl-s1">µs</span> <span class="pl-s1">per</span> <span class="pl-s1">loop</span></pre></div> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
import numpy as np
s = pd.Series(np.random.randint(0, 1000000, size=100000).astype('datetime64[ns]')).sort_values()
s[s.duplicated()].head()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>, <span class="pl-c1">1000000</span>, <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-c1">100000</span>).<span class="pl-en">astype</span>(<span class="pl-s">'datetime64[ns]'</span>)).<span class="pl-en">sort_values</span>()
<span class="pl-s1">s</span>[<span class="pl-s1">s</span>.<span class="pl-en">duplicated</span>()].<span class="pl-en">head</span>()</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">Random output on my system:</p>
<p dir="auto">70570 1970-01-01 00:00:00.000000159<br>
90556 1970-01-01 00:00:00.000000248<br>
28781 1970-01-01 00:00:00.000000274<br>
73616 1970-01-01 00:00:00.000000276<br>
31370 1970-01-01 00:00:00.000000409</p>
<p dir="auto">I am not sure why I see duplicates for sub-second values. Adding small random nanosecond deltas seems like a perfect way to de-dupe an index. it does not seem to work though.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Empty.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 2.7.11.final.0<br>
python-bits: 64<br>
OS: Darwin<br>
OS-release: 16.7.0<br>
machine: x86_64<br>
processor: i386<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: en_US.UTF-8<br>
LOCALE: None.None</p>
<p dir="auto">pandas: 0.20.3<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 18.7.1<br>
Cython: None<br>
numpy: 1.13.1<br>
scipy: 0.15.1<br>
xarray: None<br>
IPython: 3.0.0<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
feather: None<br>
matplotlib: 1.4.3<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.7.3<br>
s3fs: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p> | 0 |
<p dir="auto">I've stumbled over many sites that are using "weak" ciphers, and deno doesn't provide a mechanism to make fetch calls to those sites, it instead errors out with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TLS alert received: Message {
typ: Alert,
version: TLSv1_2,
payload: Alert(
AlertMessagePayload {
level: Fatal,
description: HandshakeFailure,
},
),
}"><pre class="notranslate"><code class="notranslate">TLS alert received: Message {
typ: Alert,
version: TLSv1_2,
payload: Alert(
AlertMessagePayload {
level: Fatal,
description: HandshakeFailure,
},
),
}
</code></pre></div>
<p dir="auto">I've checked <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="872657154" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/10447" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/10447/hovercard" href="https://github.com/denoland/deno/issues/10447">#10447</a> and while it's related, this is more of a broad issue rather than a single site, because contacting every affected website operator and get them to upgrade their suite is not feasible. Instead, having an option to disable cipher alerts and proceed with the connection would be ideal, especially for those that are coming from node (where this limitation doesn't exists) and want to migrate/create an API based on deno.</p> | <p dir="auto">Namely exports from <a href="https://deno.land/[email protected]/path/glob.ts" rel="nofollow">https://deno.land/[email protected]/path/glob.ts</a>, <a href="https://deno.land/[email protected]/path/separator.ts" rel="nofollow">https://deno.land/[email protected]/path/separator.ts</a> and some others. Also missing circular references like <code class="notranslate">path.posix.posix === path.posix</code>.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import path from "node:path";
console.assert(path.SEP === undefined);
console.assert(path.SEP_PATTERN === undefined);
console.assert(path.fromFileUrl === undefined);
console.assert(path.globToRegExp === undefined);
console.assert(path.isGlob === undefined);
console.assert(path.joinGlobs === undefined);
console.assert(path.normalizeGlob === undefined);
console.assert(path.toFileUrl === undefined);
console.assert(path.posix.fromFileUrl === undefined);
console.assert(path.posix.toFileUrl === undefined);
console.assert(path.win32.fromFileUrl === undefined);
console.assert(path.win32.toFileUrl === undefined);
console.assert(path.posix.posix === path.posix);
console.assert(path.posix.win32 === path.win32);
console.assert(path.win32.posix === path.posix);
console.assert(path.win32.win32 === path.win32);
if (Deno.build.os == "windows") {
console.assert(path === path.win32);
} else {
console.assert(path === path.posix);
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">path</span> <span class="pl-k">from</span> <span class="pl-s">"node:path"</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">SEP</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">SEP_PATTERN</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">fromFileUrl</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">globToRegExp</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">isGlob</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">joinGlobs</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">normalizeGlob</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">toFileUrl</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">posix</span><span class="pl-kos">.</span><span class="pl-c1">fromFileUrl</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">posix</span><span class="pl-kos">.</span><span class="pl-c1">toFileUrl</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">win32</span><span class="pl-kos">.</span><span class="pl-c1">fromFileUrl</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">win32</span><span class="pl-kos">.</span><span class="pl-c1">toFileUrl</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">posix</span><span class="pl-kos">.</span><span class="pl-c1">posix</span> <span class="pl-c1">===</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">posix</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">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">posix</span><span class="pl-kos">.</span><span class="pl-c1">win32</span> <span class="pl-c1">===</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">win32</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">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">win32</span><span class="pl-kos">.</span><span class="pl-c1">posix</span> <span class="pl-c1">===</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">posix</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">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">win32</span><span class="pl-kos">.</span><span class="pl-c1">win32</span> <span class="pl-c1">===</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">win32</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-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">build</span><span class="pl-kos">.</span><span class="pl-c1">os</span> <span class="pl-c1">==</span> <span class="pl-s">"windows"</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">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span> <span class="pl-c1">===</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">win32</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-s1">path</span> <span class="pl-c1">===</span> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-c1">posix</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | 0 |
<p dir="auto">This is a tracking issue for the unstable <code class="notranslate">result_expect</code> feature in the standard library. This is likely ready to just be stabilized as-is</p> | <p dir="auto">GDB backtrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 0x00007ffff1e5fe60 in __cxa_throw () from /usr/lib/libstdc++.so.6
#1 0x00007ffff2ffea2a in rust_begin_unwind (token=839147) at /home/rust/rust/src/rt/rust_builtin.cpp:533
#2 0x00007ffff7612586 in std::rt::task::Unwinder::begin_unwind () at src/libstd/rt/task.rs:477
#3 0x00007ffff75b8925 in std::rt::task::begin_unwind () at src/libstd/rt/task.rs:612
#4 0x00007ffff75b8a33 in fn46407 () at src/libstd/sys.rs:40
#5 0x00007ffff75b7e09 in fn46394 () at src/libstd/c_str.rs:307
#6 0x00007ffff75b7d5b in std::vec::MutableVector$__extensions__::as_mut_buf<u8> () at src/libstd/vec.rs:2017
#7 0x00007ffff75b7b45 in std::c_str::with_c_str<!> () at src/libstd/c_str.rs:307
#8 0x00007ffff75b7939 in std::c_str::ToCStr$__extensions__::with_c_str<!> () at src/libstd/c_str.rs:287
#9 0x00007ffff75b7897 in std::c_str::ToCStr$__extensions__::with_c_str<!> () at src/libstd/c_str.rs:249
#10 0x00007ffff75b89b1 in fn46404 () at src/libstd/sys.rs:40
#11 0x00007ffff75b7e09 in fn46394 () at src/libstd/c_str.rs:307
#12 0x00007ffff75b7d5b in std::vec::MutableVector$__extensions__::as_mut_buf<u8> () at src/libstd/vec.rs:2017
#13 0x00007ffff75b7b45 in std::c_str::with_c_str<!> () at src/libstd/c_str.rs:307
#14 0x00007ffff75b7939 in std::c_str::ToCStr$__extensions__::with_c_str<!> () at src/libstd/c_str.rs:287
#15 0x00007ffff75b7897 in std::c_str::ToCStr$__extensions__::with_c_str<!> () at src/libstd/c_str.rs:249
#16 0x00007ffff7482ecd in std::sys::FailWithCause$__extensions__::fail_with () at src/libstd/sys.rs:40
#17 0x00007ffff64f7348 in syntax::diagnostic::handler$HandlerT::fatal () at src/libsyntax/diagnostic.rs:29
#18 0x00007ffff64f82d9 in syntax::diagnostic::handler$HandlerT::bug () at src/libsyntax/diagnostic.rs:135
#19 0x00007ffff4e8abcb in rustc::driver::session::Session_::bug () at src/librustc/driver/session.rs:256
#20 0x00007ffff4e8cf57 in rustc::middle::ty::node_id_to_type () at src/librustc/middle/ty.rs:2799
#21 0x00007ffff5072738 in rustc::middle::ty::expr_ty () at src/librustc/middle/ty.rs:2960
#22 0x00007ffff583db8b in rustc::middle::const_eval::ConstEvalVisitor::lookup_constness ()
at src/librustc/middle/const_eval.rs:262
#23 0x00007ffff583bec3 in rustc::middle::const_eval::ConstEvalVisitor::classify ()
at src/librustc/middle/const_eval.rs:249
#24 0x00007ffff58407a7 in rustc::middle::const_eval::Visitor$ConstEvalVisitor::visit_expr_post ()
at src/librustc/middle/const_eval.rs:277
#25 0x00007ffff5845404 in visit::walk_expr::hfa295b274c17508aay::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#26 0x00007ffff5842268 in visit::Visitor::visit_expr::h1a24411352624b7ax::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#27 0x00007ffff5845628 in visit::walk_exprs::h1467dd839791d97aaz::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#28 0x00007ffff5843b98 in visit::walk_expr::hfa295b274c17508aay::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#29 0x00007ffff5842268 in visit::Visitor::visit_expr::h1a24411352624b7ax::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#30 0x00007ffff5843db7 in visit::walk_expr::hfa295b274c17508aay::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#31 0x00007ffff5842268 in visit::Visitor::visit_expr::h1a24411352624b7ax::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#32 0x00007ffff5844102 in visit::walk_expr::hfa295b274c17508aay::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#33 0x00007ffff5842268 in visit::Visitor::visit_expr::h1a24411352624b7ax::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#34 0x00007ffff5845f18 in visit::walk_stmt::hee2bec38e02f8aaF::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#35 0x00007ffff5845d52 in visit::Visitor::visit_stmt::hb94918db37abda88aE::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#36 0x00007ffff5845c91 in visit::walk_block::h4984e27ce75811daD::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#37 0x00007ffff58459fa in visit::Visitor::visit_block::h7e3e6d1942d24c33aC::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#38 0x00007ffff5847e10 in visit::walk_fn::h9fa0431031d49545aR::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#39 0x00007ffff5847bff in visit::Visitor::visit_fn::h93d4aa2ed2db35aeaQ::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#40 0x00007ffff5848f5b in visit::walk_method_helper::hfc8bf51419c0129aa4::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#41 0x00007ffff5841e9c in visit::walk_item::hda6dd8554fcbf892av::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#42 0x00007ffff5841212 in visit::Visitor::visit_item::h7ca8716289d5d081au::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#43 0x00007ffff58410ba in visit::walk_mod::h31802ca0457d14bar::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#44 0x00007ffff5840de1 in visit::Visitor::visit_mod::h1a5c2e2e645974aq::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#45 0x00007ffff5840d52 in visit::walk_crate::h57a183286ea062b4ap::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#46 0x00007ffff58408bc in rustc::middle::const_eval::process_crate () at src/librustc/middle/const_eval.rs:287
#47 0x00007ffff5bc28f7 in fn104129 () at src/librustc/driver/driver.rs:262
#48 0x00007ffff564f30d in rustc::util::common::time<(),()> () at src/librustc/util/common.rs:21
#49 0x00007ffff5bc0372 in rustc::driver::driver::phase_3_run_analysis_passes ()
at src/librustc/driver/driver.rs:262
#50 0x00007ffff5bc629c in rustc::driver::driver::compile_input () at src/librustc/driver/driver.rs:442
#51 0x00007ffff5c106b4 in rustc::run_compiler () at src/librustc/rustc.rs:288
#52 0x00007ffff5c44805 in fn108099 () at src/librustc/rustc.rs:408
#53 0x00007ffff5c40c67 in fn108021 () at src/librustc/rustc.rs:367
#54 0x00007ffff5c38eca in task::TaskBuilder::try::anon::expr_fn::_7naSaB () at src/librustc/rustc.rs:349
#55 0x00007ffff752bb97 in fn42662 () at src/libstd/task/spawn.rs:587
#56 0x00007ffff7611f2f in fn49538 () at src/libstd/rt/task.rs:412
#57 0x00007ffff74cb51c in std::unstable::finally::Finally$__extensions__::finally ()
at src/libstd/unstable/finally.rs:53
#58 0x00007ffff760ed73 in fn49466 () at src/libstd/rt/task.rs:275
#59 0x00007ffff761245d in std::rt::task::Unwinder::try::try_fn () at src/libstd/rt/task.rs:460
#60 0x00007ffff76123c7 in rt::task::Unwinder::try::try_fn::h917a6157155e2cnCaR::v0.9$x2dpre ()
at src/libstd/rt/task.rs:460
#61 0x00007ffff2ffe9a4 in rust_try (f=<optimized out>, fptr=<optimized out>, env=<optimized out>)
at /home/rust/rust/src/rt/rust_builtin.cpp:523
#62 0x00007ffff760ec2c in std::rt::task::Unwinder::try () at src/libstd/rt/task.rs:449
#63 0x00007ffff760eade in std::rt::task::Task::run () at src/libstd/rt/task.rs:275
#64 0x00007ffff7611bab in fn49531 () at src/libstd/rt/task.rs:412
#65 0x00007ffff76f2b4d in std::rt::context::Context::new::task_start_wrapper () at src/libstd/rt/context.rs:52
#66 0x00007ffff76f2af7 in rt::context::Context::new::task_start_wrapper::h1b9fdc38dc3bcfa4eta0::v0.9$x2dpre ()
at src/libstd/rt/context.rs:52
#67 0x0000000000000000 in ?? ()"><pre class="notranslate"><code class="notranslate">#0 0x00007ffff1e5fe60 in __cxa_throw () from /usr/lib/libstdc++.so.6
#1 0x00007ffff2ffea2a in rust_begin_unwind (token=839147) at /home/rust/rust/src/rt/rust_builtin.cpp:533
#2 0x00007ffff7612586 in std::rt::task::Unwinder::begin_unwind () at src/libstd/rt/task.rs:477
#3 0x00007ffff75b8925 in std::rt::task::begin_unwind () at src/libstd/rt/task.rs:612
#4 0x00007ffff75b8a33 in fn46407 () at src/libstd/sys.rs:40
#5 0x00007ffff75b7e09 in fn46394 () at src/libstd/c_str.rs:307
#6 0x00007ffff75b7d5b in std::vec::MutableVector$__extensions__::as_mut_buf<u8> () at src/libstd/vec.rs:2017
#7 0x00007ffff75b7b45 in std::c_str::with_c_str<!> () at src/libstd/c_str.rs:307
#8 0x00007ffff75b7939 in std::c_str::ToCStr$__extensions__::with_c_str<!> () at src/libstd/c_str.rs:287
#9 0x00007ffff75b7897 in std::c_str::ToCStr$__extensions__::with_c_str<!> () at src/libstd/c_str.rs:249
#10 0x00007ffff75b89b1 in fn46404 () at src/libstd/sys.rs:40
#11 0x00007ffff75b7e09 in fn46394 () at src/libstd/c_str.rs:307
#12 0x00007ffff75b7d5b in std::vec::MutableVector$__extensions__::as_mut_buf<u8> () at src/libstd/vec.rs:2017
#13 0x00007ffff75b7b45 in std::c_str::with_c_str<!> () at src/libstd/c_str.rs:307
#14 0x00007ffff75b7939 in std::c_str::ToCStr$__extensions__::with_c_str<!> () at src/libstd/c_str.rs:287
#15 0x00007ffff75b7897 in std::c_str::ToCStr$__extensions__::with_c_str<!> () at src/libstd/c_str.rs:249
#16 0x00007ffff7482ecd in std::sys::FailWithCause$__extensions__::fail_with () at src/libstd/sys.rs:40
#17 0x00007ffff64f7348 in syntax::diagnostic::handler$HandlerT::fatal () at src/libsyntax/diagnostic.rs:29
#18 0x00007ffff64f82d9 in syntax::diagnostic::handler$HandlerT::bug () at src/libsyntax/diagnostic.rs:135
#19 0x00007ffff4e8abcb in rustc::driver::session::Session_::bug () at src/librustc/driver/session.rs:256
#20 0x00007ffff4e8cf57 in rustc::middle::ty::node_id_to_type () at src/librustc/middle/ty.rs:2799
#21 0x00007ffff5072738 in rustc::middle::ty::expr_ty () at src/librustc/middle/ty.rs:2960
#22 0x00007ffff583db8b in rustc::middle::const_eval::ConstEvalVisitor::lookup_constness ()
at src/librustc/middle/const_eval.rs:262
#23 0x00007ffff583bec3 in rustc::middle::const_eval::ConstEvalVisitor::classify ()
at src/librustc/middle/const_eval.rs:249
#24 0x00007ffff58407a7 in rustc::middle::const_eval::Visitor$ConstEvalVisitor::visit_expr_post ()
at src/librustc/middle/const_eval.rs:277
#25 0x00007ffff5845404 in visit::walk_expr::hfa295b274c17508aay::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#26 0x00007ffff5842268 in visit::Visitor::visit_expr::h1a24411352624b7ax::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#27 0x00007ffff5845628 in visit::walk_exprs::h1467dd839791d97aaz::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#28 0x00007ffff5843b98 in visit::walk_expr::hfa295b274c17508aay::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#29 0x00007ffff5842268 in visit::Visitor::visit_expr::h1a24411352624b7ax::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#30 0x00007ffff5843db7 in visit::walk_expr::hfa295b274c17508aay::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#31 0x00007ffff5842268 in visit::Visitor::visit_expr::h1a24411352624b7ax::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#32 0x00007ffff5844102 in visit::walk_expr::hfa295b274c17508aay::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#33 0x00007ffff5842268 in visit::Visitor::visit_expr::h1a24411352624b7ax::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#34 0x00007ffff5845f18 in visit::walk_stmt::hee2bec38e02f8aaF::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#35 0x00007ffff5845d52 in visit::Visitor::visit_stmt::hb94918db37abda88aE::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#36 0x00007ffff5845c91 in visit::walk_block::h4984e27ce75811daD::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#37 0x00007ffff58459fa in visit::Visitor::visit_block::h7e3e6d1942d24c33aC::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#38 0x00007ffff5847e10 in visit::walk_fn::h9fa0431031d49545aR::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#39 0x00007ffff5847bff in visit::Visitor::visit_fn::h93d4aa2ed2db35aeaQ::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#40 0x00007ffff5848f5b in visit::walk_method_helper::hfc8bf51419c0129aa4::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#41 0x00007ffff5841e9c in visit::walk_item::hda6dd8554fcbf892av::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#42 0x00007ffff5841212 in visit::Visitor::visit_item::h7ca8716289d5d081au::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#43 0x00007ffff58410ba in visit::walk_mod::h31802ca0457d14bar::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#44 0x00007ffff5840de1 in visit::Visitor::visit_mod::h1a5c2e2e645974aq::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#45 0x00007ffff5840d52 in visit::walk_crate::h57a183286ea062b4ap::v0.9$x2dpre ()
at src/librustc/middle/const_eval.rs:287
#46 0x00007ffff58408bc in rustc::middle::const_eval::process_crate () at src/librustc/middle/const_eval.rs:287
#47 0x00007ffff5bc28f7 in fn104129 () at src/librustc/driver/driver.rs:262
#48 0x00007ffff564f30d in rustc::util::common::time<(),()> () at src/librustc/util/common.rs:21
#49 0x00007ffff5bc0372 in rustc::driver::driver::phase_3_run_analysis_passes ()
at src/librustc/driver/driver.rs:262
#50 0x00007ffff5bc629c in rustc::driver::driver::compile_input () at src/librustc/driver/driver.rs:442
#51 0x00007ffff5c106b4 in rustc::run_compiler () at src/librustc/rustc.rs:288
#52 0x00007ffff5c44805 in fn108099 () at src/librustc/rustc.rs:408
#53 0x00007ffff5c40c67 in fn108021 () at src/librustc/rustc.rs:367
#54 0x00007ffff5c38eca in task::TaskBuilder::try::anon::expr_fn::_7naSaB () at src/librustc/rustc.rs:349
#55 0x00007ffff752bb97 in fn42662 () at src/libstd/task/spawn.rs:587
#56 0x00007ffff7611f2f in fn49538 () at src/libstd/rt/task.rs:412
#57 0x00007ffff74cb51c in std::unstable::finally::Finally$__extensions__::finally ()
at src/libstd/unstable/finally.rs:53
#58 0x00007ffff760ed73 in fn49466 () at src/libstd/rt/task.rs:275
#59 0x00007ffff761245d in std::rt::task::Unwinder::try::try_fn () at src/libstd/rt/task.rs:460
#60 0x00007ffff76123c7 in rt::task::Unwinder::try::try_fn::h917a6157155e2cnCaR::v0.9$x2dpre ()
at src/libstd/rt/task.rs:460
#61 0x00007ffff2ffe9a4 in rust_try (f=<optimized out>, fptr=<optimized out>, env=<optimized out>)
at /home/rust/rust/src/rt/rust_builtin.cpp:523
#62 0x00007ffff760ec2c in std::rt::task::Unwinder::try () at src/libstd/rt/task.rs:449
#63 0x00007ffff760eade in std::rt::task::Task::run () at src/libstd/rt/task.rs:275
#64 0x00007ffff7611bab in fn49531 () at src/libstd/rt/task.rs:412
#65 0x00007ffff76f2b4d in std::rt::context::Context::new::task_start_wrapper () at src/libstd/rt/context.rs:52
#66 0x00007ffff76f2af7 in rt::context::Context::new::task_start_wrapper::h1b9fdc38dc3bcfa4eta0::v0.9$x2dpre ()
at src/libstd/rt/context.rs:52
#67 0x0000000000000000 in ?? ()
</code></pre></div>
<p dir="auto">rustc version: <code class="notranslate">rustc 0.9-pre (950add4 2013-10-26 02:16:08 -0700)</code></p>
<p dir="auto">Host OS: Arch Linux x86_64</p>
<p dir="auto">Sorry for no isolated test case, error appears when compiling a 500ish line source file and I have no idea what is triggering the issue.</p> | 0 |
<p dir="auto">Eval_const_expr is used in the front end in several places. This code quasi-duplicates stuff that trans should probably be doing (in Graydon's words).</p>
<p dir="auto">Any evaluation of compile-time values should likely be moved to a pass somewhere in the middle end. I assume there is a way to get a compile-time value out of LLVM, but I'm not sure.</p> | <p dir="auto">For TLS and named service keys, making the keys types would be a very convenient way to make the interfaces type safe, e.g. <code class="notranslate">let my_value: MyType = get_tls_value()</code>. Unfortunately we don't have a way of comparing type descriptors right now, and type descriptors may be duplicated in each crate (I think). If type descriptors stored a unique hash, then we could compare types.</p> | 0 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/basic-javascript/generate-random-whole-numbers-within-a-range" rel="nofollow">generate-random-whole-numbers-within-a-range</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (X11; CrOS x86_64 8350.68.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36</code>.</p>
<p dir="auto">I and several others in the JavaScript chat page are running into an issue with this challenge; the code you can see below won't make the tests pass even though it's logically sound and seems like the obvious answer. The tests that aren't passing for me are the top two:</p>
<p dir="auto">The lowest random number that can be generated by randomRange should be equal to your minimum number, myMin.</p>
<p dir="auto">The highest random number that can be generated by randomRange should be equal to your maximum number, myMax.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" \ file:
// Example
function ourRandomRange(ourMin, ourMax) {
return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;
}
ourRandomRange(1, 9);
// Only change code below this line.
function randomRange(myMin, myMax) {
return Math.floor(Math.random() * (myMax - myMin + 1)) + myMin; // Change this line
}
// Change these values to test your function
var myRandom = randomRange(5, 15);"><pre class="notranslate"> \ file:
<span class="pl-c">// Example</span>
<span class="pl-k">function</span> <span class="pl-en">ourRandomRange</span><span class="pl-kos">(</span><span class="pl-s1">ourMin</span><span class="pl-kos">,</span> <span class="pl-s1">ourMax</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">floor</span><span class="pl-kos">(</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-s1">ourMax</span> <span class="pl-c1">-</span> <span class="pl-s1">ourMin</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-s1">ourMin</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">ourRandomRange</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">9</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// Only change code below this line.</span>
<span class="pl-k">function</span> <span class="pl-en">randomRange</span><span class="pl-kos">(</span><span class="pl-s1">myMin</span><span class="pl-kos">,</span> <span class="pl-s1">myMax</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">floor</span><span class="pl-kos">(</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-s1">myMax</span> <span class="pl-c1">-</span> <span class="pl-s1">myMin</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-s1">myMin</span><span class="pl-kos">;</span> <span class="pl-c">// Change this line</span>
<span class="pl-kos">}</span>
<span class="pl-c">// Change these values to test your function</span>
<span class="pl-k">var</span> <span class="pl-s1">myRandom</span> <span class="pl-c1">=</span> <span class="pl-en">randomRange</span><span class="pl-kos">(</span><span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">15</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | <h4 dir="auto">Challenge Name</h4>
<p dir="auto">Generate Random Whole Numbers within a Range</p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">I think my code is correct. It meets the conditions if I log out the results to console but it will not pass the tests.</p>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // Example
function ourRandomRange(ourMin, ourMax) {
return Math.floor(Math.random() * (ourMax - ourMin + 1)) + ourMin;
}
ourRandomRange(1, 9);
// Only change code below this line.
function randomRange(myMin, myMax) {
return Math.floor( Math.random() * (myMax - myMin + 1)) + myMin; // Change this line
}
// Change these values to test your function
var myRandom = randomRange(5, 15);
"><pre class="notranslate"> <span class="pl-c">// Example</span>
<span class="pl-k">function</span> <span class="pl-en">ourRandomRange</span><span class="pl-kos">(</span><span class="pl-s1">ourMin</span><span class="pl-kos">,</span> <span class="pl-s1">ourMax</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">floor</span><span class="pl-kos">(</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-s1">ourMax</span> <span class="pl-c1">-</span> <span class="pl-s1">ourMin</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-s1">ourMin</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">ourRandomRange</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">9</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// Only change code below this line.</span>
<span class="pl-k">function</span> <span class="pl-en">randomRange</span><span class="pl-kos">(</span><span class="pl-s1">myMin</span><span class="pl-kos">,</span> <span class="pl-s1">myMax</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">floor</span><span class="pl-kos">(</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-s1">myMax</span> <span class="pl-c1">-</span> <span class="pl-s1">myMin</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-s1">myMin</span><span class="pl-kos">;</span> <span class="pl-c">// Change this line</span>
<span class="pl-kos">}</span>
<span class="pl-c">// Change these values to test your function</span>
<span class="pl-k">var</span> <span class="pl-s1">myRandom</span> <span class="pl-c1">=</span> <span class="pl-en">randomRange</span><span class="pl-kos">(</span><span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">15</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
</pre></div>
<h4 dir="auto">Screenshot</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/21320527/18397729/1c051cac-768f-11e6-9b58-8c470689492f.png"><img src="https://cloud.githubusercontent.com/assets/21320527/18397729/1c051cac-768f-11e6-9b58-8c470689492f.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using example directory):</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): CentOS7.3</li>
<li>TensorFlow backend (yes / no): yes</li>
<li>TensorFlow version: v1.14.0-rc1-22-gaf24dc91b5 1.14.0</li>
<li>Keras version: 2.3.1</li>
<li>Python version: 3.6</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto">You can obtain the TensorFlow version with:<br>
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"<br>
You can obtain the Keras version with:<br>
python -c 'import keras as k; print(k.<strong>version</strong>)'</p>
<p dir="auto"><strong>Describe the current behavior</strong><br>
I want concatenate two model to a fully connected layer,and then train it,but keras.fit reporte an assert error like this:<br>
==> Training model...<br>
Traceback (most recent call last):<br>
File "train-2dcnn-1dcnn.py", line 295, in <br>
main()<br>
File "train-2dcnn-1dcnn.py", line 219, in main<br>
model.fit([x_train_1dcnn, x_train_2dcnn], y_train, batch_size=args.batch_size, epochs=args.epochs, validation_split=0.1, callbacks=callback_lists)<br>
File "/usr/local/anaconda3/envs/tensorflow-1.0/lib/python3.6/site-packages/keras/engine/training.py", line 1154, in fit<br>
batch_size=batch_size)<br>
File "/usr/local/anaconda3/envs/tensorflow-1.0/lib/python3.6/site-packages/keras/engine/training.py", line 504, in _standardize_user_data<br>
self._set_inputs(x)<br>
File "/usr/local/anaconda3/envs/tensorflow-1.0/lib/python3.6/site-packages/keras/engine/training.py", line 414, in _set_inputs<br>
assert len(inputs) == 1<br>
AssertionError</p>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
No error occur</p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Provide a reproducible test case that is the bare minimum necessary to generate the problem.<br>
import keras<br>
from keras import layers<br>
from keras.models import Model<br>
from keras.utils import to_categorical<br>
from keras.models import load_model<br>
from keras.callbacks import Callback, ModelCheckpoint, TensorBoard, LearningRateScheduler, EarlyStopping<br>
import keras.backend as K</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print('==> Building model...')
model1 = keras.Sequential()
model1.add(layers.Conv1D(32, 3, activation='relu', input_shape=(1, 39), padding='same', name='data1'))
model1.add(layers.MaxPooling1D(2, 2, padding='same'))
model1.add(layers.Conv1D(64, 3, activation='relu', padding='same'))
model1.add(layers.MaxPooling1D(2, 2, padding='same'))
model1.add(layers.Flatten())
model1.build((None, 1, 39))
model2 = keras.Sequential()
model2.add(layers.Conv2D(32, 5, activation='relu', input_shape=(28, 28, 3), padding='same', name="data2"))
model2.add(layers.MaxPooling2D((2, 2), (2, 2), padding='same'))
model2.add(layers.Conv2D(64, 5, activation='relu', padding='same'))
model2.add(layers.MaxPooling2D(2, 2, padding='same'))
model2.add(layers.Conv2D(64, 7, activation='relu', padding='same'))
model2.add(layers.Flatten())
model2.build((None, 28, 28, 3))
model = keras.Sequential()
model.add(layers.Concatenate([model1.output, model2.output]))
model.add(layers.Dense(1024, activation='relu'))
model.add(layers.Dense(128, activation='relu'))
model.add(layers.Dense(len(class_names), activation='softmax', name="output"))
model.compile(optimizer=keras.optimizers.RMSprop(),
loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
print('==> Training model...')
filepath = "little_class_2dcnn_1dcnn_tf2.h5"
checkpoint = ModelCheckpoint(
filepath, monitor='val_accuracy', verbose=0, save_best_only=True, mode='max')
lr_scheduler = LearningRateScheduler(schedule)
callback_lists = [lr_scheduler, checkpoint]
model.fit([x_train_1dcnn, x_train_2dcnn], y_train, batch_size=args.batch_size, epochs=args.epochs, validation_split=0.1, callbacks=callback_lists)"><pre class="notranslate"><code class="notranslate">print('==> Building model...')
model1 = keras.Sequential()
model1.add(layers.Conv1D(32, 3, activation='relu', input_shape=(1, 39), padding='same', name='data1'))
model1.add(layers.MaxPooling1D(2, 2, padding='same'))
model1.add(layers.Conv1D(64, 3, activation='relu', padding='same'))
model1.add(layers.MaxPooling1D(2, 2, padding='same'))
model1.add(layers.Flatten())
model1.build((None, 1, 39))
model2 = keras.Sequential()
model2.add(layers.Conv2D(32, 5, activation='relu', input_shape=(28, 28, 3), padding='same', name="data2"))
model2.add(layers.MaxPooling2D((2, 2), (2, 2), padding='same'))
model2.add(layers.Conv2D(64, 5, activation='relu', padding='same'))
model2.add(layers.MaxPooling2D(2, 2, padding='same'))
model2.add(layers.Conv2D(64, 7, activation='relu', padding='same'))
model2.add(layers.Flatten())
model2.build((None, 28, 28, 3))
model = keras.Sequential()
model.add(layers.Concatenate([model1.output, model2.output]))
model.add(layers.Dense(1024, activation='relu'))
model.add(layers.Dense(128, activation='relu'))
model.add(layers.Dense(len(class_names), activation='softmax', name="output"))
model.compile(optimizer=keras.optimizers.RMSprop(),
loss='sparse_categorical_crossentropy',
metrics=['accuracy'])
print('==> Training model...')
filepath = "little_class_2dcnn_1dcnn_tf2.h5"
checkpoint = ModelCheckpoint(
filepath, monitor='val_accuracy', verbose=0, save_best_only=True, mode='max')
lr_scheduler = LearningRateScheduler(schedule)
callback_lists = [lr_scheduler, checkpoint]
model.fit([x_train_1dcnn, x_train_2dcnn], y_train, batch_size=args.batch_size, epochs=args.epochs, validation_split=0.1, callbacks=callback_lists)
</code></pre></div>
<p dir="auto">The dataset shape is as follows:<br>
x_train_1dcnn.shape: (322819, 1, 39)<br>
x_train_2dcnn.shape: (322819, 28, 28, 3)<br>
y_train.shape: (322819, 1)</p>
<p dir="auto"><strong>Other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | <p dir="auto"><strong>Important note:</strong> the development of Keras is currently taking place at <a href="https://github.com/tensorflow/tensorflow"><code class="notranslate">github.com/tensorflow/tensorflow</code></a>. Please file your bug report by creating a new issue in the TensorFlow repository.</p>
<p dir="auto">Please note that multi-backend Keras development has been discontinued. Do not report issues about multi-backend Keras (Keras 2.3.1 and lower), only report issues about the TensorFlow implementation of Keras (tf.keras).</p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): pip</li>
<li>TensorFlow version (use command below): 2.2</li>
<li>Python version: 3.6.10</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: CUDA 10.1, cuDNN 7.6.5</li>
<li>GPU model and memory: GeForce GTX Titan X, 12 GB</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong></p>
<p dir="auto">After migrating some Keras code from Theano backend (Keras 2.0.7, Theano 1.0.0) to pure TensorFlow, the model is unable to train with the same success as it did before. I did not change anything about the model architecture, hyper parameters, or parameters in the fit function. All that changed were import statements (ex: keras.layers -> tensorflow.keras.layers)</p>
<p dir="auto">With TensorFlow:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2020-07-10 23:12:37 WARNING Using a generator with use_multiprocessing=True and multiple workers may duplicate your data. Please consider using the tf.data.Dataset.
Epoch 1/8
2020-07-10 23:12:38.795744: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
2020-07-10 23:12:38 WARNING multiprocessing can interact badly with TensorFlow, causing nondeterministic deadlocks. For high performance data pipelines tf.data is recommended.
2020-07-10 23:12:39.211689: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
100/100 [==============================] - 10s 103ms/step - loss: 5.1734 - accuracy: 0.1002
Epoch 2/8
100/100 [==============================] - 10s 102ms/step - loss: 6.1694 - accuracy: 0.1079
Epoch 3/8
100/100 [==============================] - 10s 102ms/step - loss: 13.4283 - accuracy: 0.0830
Epoch 4/8
100/100 [==============================] - 10s 101ms/step - loss: 22.0164 - accuracy: 0.0838
Epoch 5/8
100/100 [==============================] - 10s 102ms/step - loss: 44.7066 - accuracy: 0.0575
Epoch 6/8
100/100 [==============================] - 10s 102ms/step - loss: 38.3269 - accuracy: 0.0690
Epoch 7/8
100/100 [==============================] - 10s 102ms/step - loss: 53.5934 - accuracy: 0.0641
Epoch 8/8
100/100 [==============================] - 10s 101ms/step - loss: 66.5487 - accuracy: 0.0673"><pre class="notranslate"><code class="notranslate">2020-07-10 23:12:37 WARNING Using a generator with use_multiprocessing=True and multiple workers may duplicate your data. Please consider using the tf.data.Dataset.
Epoch 1/8
2020-07-10 23:12:38.795744: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
2020-07-10 23:12:38 WARNING multiprocessing can interact badly with TensorFlow, causing nondeterministic deadlocks. For high performance data pipelines tf.data is recommended.
2020-07-10 23:12:39.211689: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7
100/100 [==============================] - 10s 103ms/step - loss: 5.1734 - accuracy: 0.1002
Epoch 2/8
100/100 [==============================] - 10s 102ms/step - loss: 6.1694 - accuracy: 0.1079
Epoch 3/8
100/100 [==============================] - 10s 102ms/step - loss: 13.4283 - accuracy: 0.0830
Epoch 4/8
100/100 [==============================] - 10s 101ms/step - loss: 22.0164 - accuracy: 0.0838
Epoch 5/8
100/100 [==============================] - 10s 102ms/step - loss: 44.7066 - accuracy: 0.0575
Epoch 6/8
100/100 [==============================] - 10s 102ms/step - loss: 38.3269 - accuracy: 0.0690
Epoch 7/8
100/100 [==============================] - 10s 102ms/step - loss: 53.5934 - accuracy: 0.0641
Epoch 8/8
100/100 [==============================] - 10s 101ms/step - loss: 66.5487 - accuracy: 0.0673
</code></pre></div>
<p dir="auto"><strong>Describe the expected behavior</strong></p>
<p dir="auto">Expected training behavior should be similar to that of Keras with Theano backend:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/lib/python3.6/site-packages/keras/engine/training.py:1984: UserWarning: Using a generator with use_multiprocessing=True and multiple workers may duplicate your data. Please consider using the keras.utils.Sequence class.
UserWarning('Using a generator with use_multiprocessing=True')
Epoch 1/8
100/100 [==============================] - 14s - loss: 4.8412 - acc: 0.1197
Epoch 2/8
100/100 [==============================] - 13s - loss: 3.7391 - acc: 0.2454
Epoch 3/8
100/100 [==============================] - 13s - loss: 3.2523 - acc: 0.3528
Epoch 4/8
100/100 [==============================] - 13s - loss: 2.9821 - acc: 0.3923
Epoch 5/8
100/100 [==============================] - 13s - loss: 2.8871 - acc: 0.4059
Epoch 6/8
100/100 [==============================] - 13s - loss: 2.8087 - acc: 0.4177
Epoch 7/8
100/100 [==============================] - 13s - loss: 2.7203 - acc: 0.4290
Epoch 8/8
100/100 [==============================] - 13s - loss: 2.6507 - acc: 0.4351"><pre class="notranslate"><code class="notranslate">/usr/local/lib/python3.6/site-packages/keras/engine/training.py:1984: UserWarning: Using a generator with use_multiprocessing=True and multiple workers may duplicate your data. Please consider using the keras.utils.Sequence class.
UserWarning('Using a generator with use_multiprocessing=True')
Epoch 1/8
100/100 [==============================] - 14s - loss: 4.8412 - acc: 0.1197
Epoch 2/8
100/100 [==============================] - 13s - loss: 3.7391 - acc: 0.2454
Epoch 3/8
100/100 [==============================] - 13s - loss: 3.2523 - acc: 0.3528
Epoch 4/8
100/100 [==============================] - 13s - loss: 2.9821 - acc: 0.3923
Epoch 5/8
100/100 [==============================] - 13s - loss: 2.8871 - acc: 0.4059
Epoch 6/8
100/100 [==============================] - 13s - loss: 2.8087 - acc: 0.4177
Epoch 7/8
100/100 [==============================] - 13s - loss: 2.7203 - acc: 0.4290
Epoch 8/8
100/100 [==============================] - 13s - loss: 2.6507 - acc: 0.4351
</code></pre></div>
<p dir="auto"><strong>Standalone code to reproduce the issue</strong></p>
<p dir="auto">Model architecture:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow.keras.backend as K
from tensorflow.keras import Model, Sequential, Input
from tensorflow.keras.layers import Dense, Lambda, Embedding, LSTM
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.losses import CategoricalCrossentropy
from tensorflow.keras.metrics import Accuracy
epoch = 1
batch_size = 2048
validation_batch_size = 1024
one_hot_dim = 80000
embedding_dim = 128
max_seq_len = 50
hidden_layer_dim = 512
max_q_size = 5000
nb_worker = 5
one_indexing = False
featurizer = "sequence"
featurizer_parameters = [one_hot_dim, max_seq_len, one_indexing]
def create_model_architecture(num_classes):
# build model architecture
model = Sequential(
[
Input(shape=(max_seq_len,), name="query_input"),
Embedding(output_dim=embedding_dim, input_dim=one_hot_dim, input_length=max_seq_len),
LSTM(embedding_dim, input_shape=(max_seq_len, embedding_dim)),
Lambda(lambda x: K.cast(x, "float32")),
Dense(units=hidden_layer_dim, kernel_initializer="he_normal", activation="relu"),
Dense(units=num_classes, kernel_initializer="normal", activation="softmax", name="prediction")
]
)
model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy']
model.summary()
return model"><pre class="notranslate"><code class="notranslate">import tensorflow.keras.backend as K
from tensorflow.keras import Model, Sequential, Input
from tensorflow.keras.layers import Dense, Lambda, Embedding, LSTM
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.losses import CategoricalCrossentropy
from tensorflow.keras.metrics import Accuracy
epoch = 1
batch_size = 2048
validation_batch_size = 1024
one_hot_dim = 80000
embedding_dim = 128
max_seq_len = 50
hidden_layer_dim = 512
max_q_size = 5000
nb_worker = 5
one_indexing = False
featurizer = "sequence"
featurizer_parameters = [one_hot_dim, max_seq_len, one_indexing]
def create_model_architecture(num_classes):
# build model architecture
model = Sequential(
[
Input(shape=(max_seq_len,), name="query_input"),
Embedding(output_dim=embedding_dim, input_dim=one_hot_dim, input_length=max_seq_len),
LSTM(embedding_dim, input_shape=(max_seq_len, embedding_dim)),
Lambda(lambda x: K.cast(x, "float32")),
Dense(units=hidden_layer_dim, kernel_initializer="he_normal", activation="relu"),
Dense(units=num_classes, kernel_initializer="normal", activation="softmax", name="prediction")
]
)
model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy']
model.summary()
return model
</code></pre></div>
<p dir="auto">In model.compile, I have tried also using the classes for optimizer, loss, and metrics (such as Adam, CategoricalCrossentropy, Accuracy). It causes the accuracy to be much higher but the loss still increases exponentially.</p>
<p dir="auto">Model fit call:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="model.fit(data_generator_train.generate(),
steps_per_epoch=args.step_log,
epochs=8,
validation_data=data_generator_validate.generate() if data_generator_validate else None,
validation_steps=data_generator_validate.num_batches if data_generator_validate else None,
max_queue_size=model_module.max_q_size,
shuffle=True,
use_multiprocessing=True,
workers=model_module.nb_worker,
callbacks=[check_pointer])"><pre class="notranslate"><code class="notranslate">model.fit(data_generator_train.generate(),
steps_per_epoch=args.step_log,
epochs=8,
validation_data=data_generator_validate.generate() if data_generator_validate else None,
validation_steps=data_generator_validate.num_batches if data_generator_validate else None,
max_queue_size=model_module.max_q_size,
shuffle=True,
use_multiprocessing=True,
workers=model_module.nb_worker,
callbacks=[check_pointer])
</code></pre></div>
<p dir="auto">Data generator function:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@threadsafe_generator
def generate(self):
while True:
for filename in glob.glob(self.dataset_files):
with open(filename) as fr:
while True:
lines = list(islice(fr, self.batch_size))
if not lines:
break
x, y, w = self.get_train_vectors(lines)
yield x, y, w"><pre class="notranslate"><code class="notranslate">@threadsafe_generator
def generate(self):
while True:
for filename in glob.glob(self.dataset_files):
with open(filename) as fr:
while True:
lines = list(islice(fr, self.batch_size))
if not lines:
break
x, y, w = self.get_train_vectors(lines)
yield x, y, w
</code></pre></div>
<p dir="auto"><strong>Other info / logs</strong></p>
<p dir="auto">Other things I have tried:</p>
<p dir="auto">Using tensorflow.keras.utils.Sequence instead of a generator, and including shuffle=True<br>
Not using multiprocessing<br>
Not using Sequential<br>
Using classes instead of names in model.compile()<br>
Changing parameters like batch size, steps_per_epoch, etc.</p>
<p dir="auto">Other notes:</p>
<p dir="auto">I am using a custom Docker image to run the model. I have made volume mountings from the local machine, including CUDA, cuDNN, etc. under /usr/local/cuda. TensorFlow 2.2 also has a library (libcublas.so) which is not located there, so I have an additional mapping under /usr/lib/x86_64-linux-gnu.</p> | 0 |
<h4 dir="auto">Challenge Name</h4>
<p dir="auto">Noticing this in the Applied Visual Design track, probably elsewhere too</p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">When you complete a challenge, the next one loads but the right-hand display remains the same. It's not possible to see the initial display of the new challenge unless you manually hit "run code." This isn't an issue when subsequent challenges build off of each other, but it's noticeable in the Applied Visual Design track since most of the challenges are quite different from each other.</p>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Browser Name, Version: Version 55.0.2883.87 m (64-bit)</li>
<li>Operating System: Windows 10</li>
<li>Mobile, Desktop, or Tablet: Desktop</li>
</ul> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-import-a-google-font" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-import-a-google-font</a> has an issue. Please describe how to reproduce it, and include links to screen shots if possible.</p>
<p dir="auto">I started the next tutorial.<br>
Clicked outside of the text editor (anywhere outside will do).<br>
Hit backspace.<br>
Returned to the previous lesson.<br>
Only way to advance is to complete the lesson.<br>
Complete the lesson.<br>
Skipped over incomplete lesson to next lesson, automagically.</p>
<p dir="auto">I duplicated this a few times.<br>
Each time it skipped yet another lesson forward.</p>
<p dir="auto">Replication:<br>
Went back to Basic HTML and CSS <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53945043" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/14" data-hovercard-type="pull_request" data-hovercard-url="/freeCodeCamp/freeCodeCamp/pull/14/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/pull/14">#14</a><br>
Completed lesson<br>
Skipped much further forward to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54062633" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/18" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/18/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/18">#18</a> (add images to your website)</p>
<p dir="auto">Work around:</p>
<p dir="auto">Go back to the map and select lessons without a check mark (bullet). No credit is given for incomplete tasks.</p> | 0 |
<p dir="auto">After an object was removed from scene, it is still referenced by renderItems. I clear renderItems as below. But the object may be referenced by opaque or transparent. Once I clear opaque and transparent, nothing is rendered(only background color)! I don't how to get it fixed. Could you please double check if the original code is correct and if not how to fix it?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="`function WebGLRenderList() {
var renderItems = [];
var renderItemsIndex = 0;
var opaque = [];
var transparent = [];
function init() {
renderItemsIndex = 0;
opaque.length = 0;
transparent.length = 0;
# renderItems = [];
}`"><pre class="notranslate"><code class="notranslate">`function WebGLRenderList() {
var renderItems = [];
var renderItemsIndex = 0;
var opaque = [];
var transparent = [];
function init() {
renderItemsIndex = 0;
opaque.length = 0;
transparent.length = 0;
# renderItems = [];
}`
</code></pre></div>
<h5 dir="auto">Three.js version</h5>
<ul dir="auto">
<li>r88</li>
</ul> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">The created objects (mesh/material/geometry) are not released, after disposed in Three.js R87, while all released in Three.js R86, with the same code.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var container;
var camera, scene, renderer;
init();
animate();
function init() {
container = document.createElement( 'div' );
document.body.appendChild( container );
camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 1, 10000 );
camera.position.z = 100;
scene = new THREE.Scene();
renderer = new THREE.WebGLRenderer();
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
}
function animate() {
requestAnimationFrame( animate );
renderer.render( scene, camera );
}
var planes = [];
function testplanes(){
for(var i=0; i<100; i++){
var m = new THREE.Mesh( new THREE.PlaneBufferGeometry( 1, 1 ),
new THREE.MeshBasicMaterial( {color: 0x010101*i } ));
m.position.x = -50+i;
scene.add( m );
planes.push(m);
}
}
function delplanes(){
for(var i=0; i<100; i++){
scene.remove(planes[i]);
planes[i].geometry.dispose();
planes[i].material.dispose();
planes[i] = null;
}
}"><pre class="notranslate"><code class="notranslate">var container;
var camera, scene, renderer;
init();
animate();
function init() {
container = document.createElement( 'div' );
document.body.appendChild( container );
camera = new THREE.PerspectiveCamera( 60, window.innerWidth / window.innerHeight, 1, 10000 );
camera.position.z = 100;
scene = new THREE.Scene();
renderer = new THREE.WebGLRenderer();
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
container.appendChild( renderer.domElement );
}
function animate() {
requestAnimationFrame( animate );
renderer.render( scene, camera );
}
var planes = [];
function testplanes(){
for(var i=0; i<100; i++){
var m = new THREE.Mesh( new THREE.PlaneBufferGeometry( 1, 1 ),
new THREE.MeshBasicMaterial( {color: 0x010101*i } ));
m.position.x = -50+i;
scene.add( m );
planes.push(m);
}
}
function delplanes(){
for(var i=0; i<100; i++){
scene.remove(planes[i]);
planes[i].geometry.dispose();
planes[i].material.dispose();
planes[i] = null;
}
}
</code></pre></div>
<p dir="auto">Typing testplanes() in console, then typing delplanes();<br>
100 Meshes, 100 MeshBasicMaterial, and 100 PlaneBufferGeometry, remain in memory, with memory profiling of heap snapshot, in Three.js R87. While all released in Three.js R86.</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"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r87</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" checked=""> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> | 1 |
<p dir="auto">As an alternative, the “switch window” option may be useful if the selected application is already running. If option is enabled - window should be switched instead of opening a new one.</p> | <p dir="auto">PowerToys version: v0.24.0<br>
PowerToy Utility: Fancy Zones<br>
Running PowerToys as Admin: No<br>
Windows build number: 19042.572</p>
<h2 dir="auto">📝 Provide detailed reproduction steps (if any)</h2>
<ol dir="auto">
<li>Enable Fancy Zones (new machine or delete config files from previous)</li>
<li>Clear "hold shift key to active zones while dragging" option</li>
<li>Place mouse on desired screen<br>
4 Press Win + '<br>
5 Create custom zone for screen</li>
<li>Drag window to OTHER screen and see the default 3 column zone</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">No custom zones on screens ive not created or chosen them for _</p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3>
<p dir="auto">Custom zones shown on all screens</p> | 0 |
<p dir="auto">When Flutter is running in CI under a minimalist Docker container that bizarrely decided to use C as its locale setting, many commands blow up</p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li><code class="notranslate">docker run -ti circleci/android:api-27-alpha bash</code></li>
<li><code class="notranslate">git clone https://github.com/flutter/flutter && export PATH="$PATH:$PWD/flutter/bin"</code></li>
<li><code class="notranslate">flutter create foo</code></li>
</ol>
<p dir="auto">Crashes with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="## exception
ArgumentError: Invalid argument(s): Invalid locale 'C.UTF-8'
#0 Intl._throwLocaleError (package:intl/intl.dart:231)
#1 Intl.verifiedLocale (package:intl/intl.dart:225)
#2 Intl.verifiedLocale (package:intl/intl.dart:210)
#3 new NumberFormat._forPattern (package:intl/src/intl/number_format.dart:486)
#4 new NumberFormat.decimalPattern (package:intl/src/intl/number_format.dart:175)
#5 kMillisecondsFormat (package:flutter_tools/src/base/utils.dart:103)
#6 kMillisecondsFormat (package:flutter_tools/src/base/utils.dart:103)
#7 getElapsedAsMilliseconds (package:flutter_tools/src/base/utils.dart:111)
#8 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:217)
<asynchronous suspension>
#9 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#10 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:284)
<asynchronous suspension>
#11 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#12 new Future.sync (dart:async/future.dart:222)
#13 CommandRunner.run (package:args/command_runner.dart:109)
#14 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:166)
#15 run.<anonymous closure> (package:flutter_tools/runner.dart:89)
<asynchronous suspension>
#16 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#17 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#18 _rootRun (dart:async/zone.dart:1126)
#19 _CustomZone.run (dart:async/zone.dart:1023)
#20 runZoned (dart:async/zone.dart:1501)
#21 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)"><pre class="notranslate"><code class="notranslate">## exception
ArgumentError: Invalid argument(s): Invalid locale 'C.UTF-8'
#0 Intl._throwLocaleError (package:intl/intl.dart:231)
#1 Intl.verifiedLocale (package:intl/intl.dart:225)
#2 Intl.verifiedLocale (package:intl/intl.dart:210)
#3 new NumberFormat._forPattern (package:intl/src/intl/number_format.dart:486)
#4 new NumberFormat.decimalPattern (package:intl/src/intl/number_format.dart:175)
#5 kMillisecondsFormat (package:flutter_tools/src/base/utils.dart:103)
#6 kMillisecondsFormat (package:flutter_tools/src/base/utils.dart:103)
#7 getElapsedAsMilliseconds (package:flutter_tools/src/base/utils.dart:111)
#8 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:217)
<asynchronous suspension>
#9 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#10 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:284)
<asynchronous suspension>
#11 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#12 new Future.sync (dart:async/future.dart:222)
#13 CommandRunner.run (package:args/command_runner.dart:109)
#14 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:166)
#15 run.<anonymous closure> (package:flutter_tools/runner.dart:89)
<asynchronous suspension>
#16 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#17 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#18 _rootRun (dart:async/zone.dart:1126)
#19 _CustomZone.run (dart:async/zone.dart:1023)
#20 runZoned (dart:async/zone.dart:1501)
#21 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
</code></pre></div> | <h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Follow the first six steps of <a href="https://codelabs.developers.google.com/codelabs/flutter-firebase/" rel="nofollow">https://codelabs.developers.google.com/codelabs/flutter-firebase/</a></li>
<li>Mess up on the step to add <code class="notranslate"><key>CFBundleURLTypes</key></code>, for example paste it at the wrong location in the XML tree</li>
<li>Run app</li>
</ol>
<p dir="auto">=> the app crashes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Syncing files to device iPhone X... 1.0s
🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
An Observatory debugger and profiler on iPhone X is available at: http://127.0.0.1:8112/
For a more detailed help message, press "h". To quit, press "q".
[Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
[Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
)
*** First throw call stack:
(
0 CoreFoundation 0x000000010d12d1cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00000001120cbf41 objc_exception_throw + 48
2 CoreFoundation 0x000000010d1a1b95 +[NSException raise:format:] + 197
3 Runner 0x000000010c062681 -[GIDSignIn signInWithOptions:] + 242
4 Runner 0x000000010c05f06d -[GIDSignIn signIn] + 64
5 Runner 0x000000010befa555 -[GoogleSignInPlugin handleMethodCall:result:] + 1461
6 Flutter 0x000000010d9fe9b1 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 118
7 Flutter 0x000000010da11667 _ZN5shell15P<…>
Lost connection to device."><pre class="notranslate"><code class="notranslate">Syncing files to device iPhone X... 1.0s
🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
An Observatory debugger and profiler on iPhone X is available at: http://127.0.0.1:8112/
For a more detailed help message, press "h". To quit, press "q".
[Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
[Firebase/Analytics][I-ACS023012] Firebase Analytics enabled
)
*** First throw call stack:
(
0 CoreFoundation 0x000000010d12d1cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00000001120cbf41 objc_exception_throw + 48
2 CoreFoundation 0x000000010d1a1b95 +[NSException raise:format:] + 197
3 Runner 0x000000010c062681 -[GIDSignIn signInWithOptions:] + 242
4 Runner 0x000000010c05f06d -[GIDSignIn signIn] + 64
5 Runner 0x000000010befa555 -[GoogleSignInPlugin handleMethodCall:result:] + 1461
6 Flutter 0x000000010d9fe9b1 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 118
7 Flutter 0x000000010da11667 _ZN5shell15P<…>
Lost connection to device.
</code></pre></div>
<p dir="auto">Can we fail more graciously?</p> | 0 |
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary):</li>
<li>TensorFlow version:</li>
<li>Python version:</li>
<li>Installed using virtualenv? pip? conda?:</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<p dir="auto"><strong>Any other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | <p dir="auto">I am trying to solve the problem of running a retrained model on iOS described in issue <a href="https://github.com/tensorflow/tensorflow/issues/2883" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/2883/hovercard">2883</a>. However when I call this command I run into linker error:</p>
<blockquote>
<p dir="auto">bazel build tensorflow/python/tools:strip_unused</p>
</blockquote>
<p dir="auto">The linker error says:</p>
<blockquote>
<p dir="auto">bazel-out/local-fastbuild/bin/tensorflow/core/libversion_lib.a(version_info.pic.o): In function <code class="notranslate">tf_git_version()': version_info.cc:(.text+0x0): multiple definition of</code>tf_git_version()'<br>
bazel-out/local-fastbuild/bin/tensorflow/core/libframework_internal.lo(version_info.pic.o):version_info.cc:(.text+0x0): first defined here<br>
bazel-out/local-fastbuild/bin/tensorflow/core/libversion_lib.a(version_info.pic.o): In function <code class="notranslate">tf_compiler_version()': version_info.cc:(.text+0xd): multiple definition of</code>tf_compiler_version()'<br>
bazel-out/local-fastbuild/bin/tensorflow/core/libframework_internal.lo(version_info.pic.o):version_info.cc:(.text+0xd): first defined here<br>
collect2: error: ld returned 1 exit status<br>
Target //tensorflow/python/tools:strip_unused failed to build</p>
</blockquote>
<p dir="auto">I tried it on both Mac and Ubuntu Linux with the same error. I am operating on git commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/a6c5f8e4e013e54fed8dfcf49fb6de365f018022/hovercard" href="https://github.com/tensorflow/tensorflow/commit/a6c5f8e4e013e54fed8dfcf49fb6de365f018022"><tt>a6c5f8e</tt></a>. Can someone help me how to build this tool?</p> | 0 |
<p dir="auto">Atom attempts to comment HTML script tags with JavaScript comments:</p>
<p dir="auto">Example Code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<script src="script.js"></script>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">script.js</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span></pre></div>
<p dir="auto">First toggle comment (Edit > Toggle Comments/ ctrl+/)</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// <script src="script.js"></script>"><pre class="notranslate">// <span class="pl-kos"><</span><span class="pl-ent">script</span> <span class="pl-c1">src</span>="<span class="pl-s">script.js</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span></pre></div>
<p dir="auto">Second toggle comment (Edit > Toggle Comments/ ctrl+/)</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!-- // <script src="script.js"></script> -->"><pre class="notranslate"><span class="pl-c"><!-- // <script src="script.js"></script> --></span></pre></div> | <p dir="auto">Attempting to comment out a line with a script reference in the head of a document behaves strangely. It first attempts to comment out the line with two forward slashes. Toggle comments again then adds the correct html comments, but the forward slashes are still there. Activating toggle comments a third time removes the html comment but still leaves the forward slashes, you have to remove them manually.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: mac 10.15</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Spring start app</li>
</ol>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@SpringBootApplication
@EnableDubbo(multipleConfig = false)
public class RunApp {
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">SpringBootApplication</span>
<span class="pl-c1">@</span><span class="pl-c1">EnableDubbo</span>(<span class="pl-s1">multipleConfig</span> = <span class="pl-c1">false</span>)
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">RunApp</span> {
}</pre></div>
<ol start="2" dir="auto">
<li>application.yml</li>
</ol>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dubbo:
protocol:
register: false"><pre class="notranslate"><span class="pl-ent">dubbo</span>:
<span class="pl-ent">protocol</span>:
<span class="pl-ent">register</span>: <span class="pl-c1">false</span></pre></div>
<ol start="3" dir="auto">
<li>start RunApp</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Providers don't register to registry center</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">Providers registered to registry center.<br>
Checked from dubbo admin</p>
<h3 dir="auto">Problems</h3>
<p dir="auto"><a href="http://dubbo.apache.org/en-us/docs/user/references/xml/dubbo-service.html" rel="nofollow">http://dubbo.apache.org/en-us/docs/user/references/xml/dubbo-service.html</a><br>
Attribute <code class="notranslate">register</code> is not required, should be null when not set.</p>
<p dir="auto">The default value in <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/service/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/service">@service</a> is <code class="notranslate">true</code> in v2.7.3.</p>
<h4 dir="auto">v2.6.2</h4>
<p dir="auto">com.alibaba.dubbo.config.annotation.Service</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="boolean register() default false;"><pre class="notranslate"><span class="pl-smi">boolean</span> <span class="pl-s1">register</span>() <span class="pl-s1">default</span> <span class="pl-c1">false</span>;</pre></div>
<h4 dir="auto">v2.7.3</h4>
<p dir="auto">org.apache.dubbo.config.annotation.Service</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/**
* Whether to register the service to register center, default value is true
*/
boolean register() default true;"><pre class="notranslate"><span class="pl-c">/**</span>
<span class="pl-c"> * Whether to register the service to register center, default value is true</span>
<span class="pl-c"> */</span>
<span class="pl-smi">boolean</span> <span class="pl-s1">register</span>() <span class="pl-s1">default</span> <span class="pl-c1">true</span>;</pre></div>
<p dir="auto">org.apache.dubbo.config.AbstractServiceConfig</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/**
* Whether to register
*/
private Boolean register = true;"><pre class="notranslate"><span class="pl-c">/**</span>
<span class="pl-c"> * Whether to register</span>
<span class="pl-c"> */</span>
<span class="pl-k">private</span> <span class="pl-smi">Boolean</span> <span class="pl-s1">register</span> = <span class="pl-c1">true</span>;</pre></div>
<p dir="auto">ServiceBean.register default value is true。(should be null)</p>
<p dir="auto">org.apache.dubbo.config.ServiceConfig</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="doExportUrlsFor1Protocol(ProtocolConfig protocolConfig, List<URL> registryURLs){
......
appendParameters(map, provider);
appendParameters(map, protocolConfig);
appendParameters(map, this);// default: this.register=true (unset on @Service)
......
}"><pre class="notranslate"><span class="pl-en">doExportUrlsFor1Protocol</span>(<span class="pl-smi">ProtocolConfig</span> <span class="pl-s1">protocolConfig</span>, <span class="pl-s1">List</span><<span class="pl-c1">URL</span>> <span class="pl-s1">registryURLs</span>){
......
<span class="pl-en">appendParameters</span>(<span class="pl-s1">map</span>, <span class="pl-s1">provider</span>);
<span class="pl-en">appendParameters</span>(<span class="pl-s1">map</span>, <span class="pl-s1">protocolConfig</span>);
<span class="pl-en">appendParameters</span>(<span class="pl-s1">map</span>, <span class="pl-smi">this</span>);<span class="pl-c">// default: this.register=true (unset on @Service)</span>
......
}</pre></div>
<p dir="auto"><code class="notranslate">this.register</code> has default value(from AbstractServiceConfig), can't be overrided by protocolConfig.</p>
<h3 dir="auto">fix</h3>
<p dir="auto">org.apache.dubbo.config.AbstractServiceConfig</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/**
* Whether to register
*/
private Boolean register;"><pre class="notranslate"><span class="pl-c">/**</span>
<span class="pl-c"> * Whether to register</span>
<span class="pl-c"> */</span>
<span class="pl-k">private</span> <span class="pl-smi">Boolean</span> <span class="pl-s1">register</span>;</pre></div>
<p dir="auto">Change to null on unset.</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"> 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.1</li>
<li>Operating System version: any</li>
<li>Java version: any</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">Code:<br>
NetUtils.java</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" static boolean isValidPublicAddress(InetAddress address) {
return !address.isSiteLocalAddress() && !address.isLoopbackAddress();
}"><pre class="notranslate"> <span class="pl-k">static</span> <span class="pl-smi">boolean</span> <span class="pl-s1">isValidPublicAddress</span>(<span class="pl-smi">InetAddress</span> <span class="pl-s1">address</span>) {
<span class="pl-k">return</span> !<span class="pl-s1">address</span>.<span class="pl-en">isSiteLocalAddress</span>() && !<span class="pl-s1">address</span>.<span class="pl-en">isLoopbackAddress</span>();
}</pre></div>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">A link local address like 169.254.0.0/16 should not pass the check.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">The link local address can be taken to publish service.</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18363.836]
PowerToys version: I tried on v `0.18.1`, but downgraded to `0.17` (because of #3357)
PowerToy module for which you are reporting the bug (if applicable): Image Resizer, File Explorer"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.836]
PowerToys version: I tried on v `0.18.1`, but downgraded to `0.17` (because of #3357)
PowerToy module for which you are reporting the bug (if applicable): Image Resizer, File Explorer
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">First of all, it's important to mention I didn't install Power Toys via the .exe, but I used <a href="https://github.com/lukesampson/scoop">scoop</a> to install and keep up to date with each release.</p>
<ol dir="auto">
<li>Open Power Toys -> General settings -> enable File Explorer and Image Resizer</li>
<li>Open File explorer and check the preview panel</li>
<li>Select an image, right click on it to open the context menu and look for the "Image resize" option</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">I expected to see the new entry for Image Resizer in the context menu and for the Preview panel to work according to the specs</p>
<p dir="auto">#Mentions</p>
<ul dir="auto">
<li>I have already checked <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="593509140" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/1922" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/1922/hovercard" href="https://github.com/microsoft/PowerToys/issues/1922">#1922</a>. I have no entry in the Registry for anything like <code class="notranslate">ImageResizer</code>.</li>
<li>I tried uninstalling Power Toys and re-installing it. (Again, via scoop).</li>
<li>I tried both with and without Administrator rights</li>
</ul>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29982205/83618259-decce680-a592-11ea-8f69-24bd1fe48e40.png"><img src="https://user-images.githubusercontent.com/29982205/83618259-decce680-a592-11ea-8f69-24bd1fe48e40.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29982205/83618345-0459f000-a593-11ea-97c8-e68e9ea619af.png"><img src="https://user-images.githubusercontent.com/29982205/83618345-0459f000-a593-11ea-97c8-e68e9ea619af.png" alt="image" style="max-width: 100%;"></a></p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">Distribute releases in a zip file. When extracted the command can be executed right away without any installation process. At first run, the necessary integration with explorer etc. can be installed.</p>
<p dir="auto">This would make it easier to use across multiple machines as I can simply update in one place and synchronize files (like via OneDrive).</p> | 1 |
<p dir="auto">In Angular1 when we have ng-model="obj.prop" and if obj does not exist, It will not throw any error. If user type anything on that input new obj Object created with prop.</p>
<p dir="auto">However, In Angular 2 when we pass undefined object from parent to child component as <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> and use as [(ngModel)]="obj.prop", If obj is defined in parent it works and even sync data with parent component. But, if it is not defined there it give an error : "Cannot read property 'prop' of undefined"</p>
<p dir="auto">If I use elvis operator as [ngModel]="field?.value" (ngModelChange)="field ? field.value = $event : null" It eliminate error but then it does not sync with parent component.</p>
<p dir="auto">We are using this as part of dynamic component. And we does not know if that object is defined or not. If not it should be like it does in Angular 1.</p> | <ul dir="auto">
<li><strong>I'm submitting a ...</strong><br>
[ ] bug report<br>
[x] feature request<br>
[ ] support request</li>
<li><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></li>
</ul>
<p dir="auto">Feature</p>
<ul dir="auto">
<li><strong>What is the current behavior?</strong></li>
</ul>
<p dir="auto">A2 supports the elvis operator (?.) in property bindings but not "two-way" bindings.</p>
<p dir="auto">This is ok: <code class="notranslate">[ngModel]="hero?.name"</code>.</p>
<p dir="auto">A2 throws an error if I write <code class="notranslate">[(ngModel)]="hero?.name"</code> because this de-sugars (in part) to <code class="notranslate">(ngModelChange)="hero?.name=$event"</code> and the elvis operator (?.) is not supported in assignments.</p>
<p dir="auto">Today's workaround is <code class="notranslate">[ngModel]="hero && hero.name"</code>. We can do better.</p>
<ul dir="auto">
<li><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem</strong> via<br>
<a href="https://plnkr.co" rel="nofollow">https://plnkr.co</a> or similar (you can use this template as a starting point: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a>).</li>
<li><strong>What is the expected behavior?</strong></li>
</ul>
<p dir="auto">Recommend that template statements support elvis in assignments.</p>
<p dir="auto">For example, the following <code class="notranslate"><input></code> element event binding — <code class="notranslate">(input)="hero?.name = $event.target.value"</code> — should assign the value to <code class="notranslate">hero.name</code> if <code class="notranslate">hero != null</code>; if <code class="notranslate">hero == null</code> it should do nothing.</p>
<p dir="auto">It follows that we will then support <code class="notranslate">[(ngModel)]="hero?.name"</code> which was the original motivation for this request.</p>
<ul dir="auto">
<li><strong>What is the motivation / use case for changing the behavior?</strong></li>
</ul>
<p dir="auto">Elvis is useful in binding syntax ... both in property binding template expressions and event binding template statements involving assignment.</p>
<p dir="auto">The 2-way binding syntax today prevents usage of elvis, even if we only wanted it for the property binding half of that syntax.</p>
<ul dir="auto">
<li><strong>Please tell us about your environment:</strong></li>
<li>Angular version: 2.0.0-beta.11 everywhere</li>
</ul> | 1 |
<p dir="auto">I love your editor guys!<br>
One of the feature I like more is the git support, with highlights of lines/files changed.</p>
<p dir="auto">Unfortunately, I don't use only git, but also <a href="http://bazaar.canonical.com/en/" rel="nofollow">bazaar</a>. Could be possible to add a (basic) support for it?</p> | <p dir="auto">Right now, Project populates "<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/repo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/repo">@repo</a>" only with the result GitRepository.open. There is no way to make Atom support other VCS like Subversion or Mercurial from a plugin because of that. Also, subclassing GitRepository is difficult because it does far more than simply forwarding Git status information, for example subscribing to window focus changes in the constructor.</p>
<p dir="auto">There should be a simple, generic base class for VCS support, with a mean for Project to ask each VCS module if the current project has any repository for its directory, and a clean API to refresh any item status.</p> | 1 |
<p dir="auto">Hello,</p>
<p dir="auto">I dont know if that is possible, but it would great to find a way to speed up the <code class="notranslate">to_csv</code> method in Pandas.</p>
<p dir="auto">In my admittedly large dataframe with 20 million observations and 50 variables, it takes <strong>literally hours</strong> to export the data to a csv file.</p>
<p dir="auto">Reading the <code class="notranslate">csv</code> in Pandas is much faster though. I wonder what is the bottleneck here and what can be done to improve the data transfer.</p>
<p dir="auto">Csv files are ubiquitous, and a great way to share data (without being too nerdy with <code class="notranslate">hdf5</code>and other subtleties). What do you think?</p> | <p dir="auto">iotop and a simple-mined c program indicates we're nowhere<br>
near IO-bound in df.to_csv, at about ~10-15x.</p>
<p dir="auto">It might be possible to speed things up considerably with a fast path<br>
for special cases (numerical only) that don't need fancy quoting and other<br>
bells and whistles provided by the underlying csv python module.</p>
<div class="highlight highlight-source-c notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include <stdio.h>
#include <stdlib.h>
int main(int argc,char **argv)
{
int i;
FILE *f;
char fmt[] = "%f,%f,%f,%f,%f\n";
while (1) {
f = fopen("out.csv","wb");
for(i=0;i<1000000;i++) {
fprintf(f,fmt, 1.0,2.0,3.0,4.0,5.0);
}
fclose(f);
}
}"><pre class="notranslate"><span class="pl-k">#include</span> <span class="pl-s"><stdio.h></span>
<span class="pl-k">#include</span> <span class="pl-s"><stdlib.h></span>
<span class="pl-smi">int</span> <span class="pl-en">main</span>(<span class="pl-smi">int</span> <span class="pl-s1">argc</span>,<span class="pl-smi">char</span> <span class="pl-c1">*</span><span class="pl-c1">*</span><span class="pl-s1">argv</span>)
{
<span class="pl-smi">int</span> <span class="pl-s1">i</span>;
<span class="pl-smi">FILE</span> <span class="pl-c1">*</span><span class="pl-s1">f</span>;
<span class="pl-smi">char</span> <span class="pl-s1">fmt</span>[] <span class="pl-c1">=</span> <span class="pl-s">"%f,%f,%f,%f,%f\n"</span>;
<span class="pl-k">while</span> (<span class="pl-c1">1</span>) {
<span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-en">fopen</span>(<span class="pl-s">"out.csv"</span>,<span class="pl-s">"wb"</span>);
<span class="pl-k">for</span>(<span class="pl-s1">i</span><span class="pl-c1">=</span><span class="pl-c1">0</span>;<span class="pl-s1">i</span><span class="pl-c1"><</span><span class="pl-c1">1000000</span>;<span class="pl-s1">i</span><span class="pl-c1">++</span>) {
<span class="pl-en">fprintf</span>(<span class="pl-s1">f</span>,<span class="pl-s1">fmt</span>, <span class="pl-c1">1.0</span>,<span class="pl-c1">2.0</span>,<span class="pl-c1">3.0</span>,<span class="pl-c1">4.0</span>,<span class="pl-c1">5.0</span>);
}
<span class="pl-en">fclose</span>(<span class="pl-s1">f</span>);
}
}</pre></div>
<p dir="auto">sustains about 30MB/s on my machine (without even batching writes)<br>
vs ~2-3MB/s for the new (0.11.0) cython df.to_csv().</p>
<p dir="auto">need to check if it's the stringifying, quoting logic, memory layout, or something<br>
else that constitutes the difference.</p>
<p dir="auto">Should also yield insights for any future binary serialization format<br>
implemented.</p> | 1 |
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6951266" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/5180" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/5180/hovercard" href="https://github.com/twbs/bootstrap/issues/5180">#5180</a></p>
<blockquote>
<p dir="auto">Pills with dropdowns and button dropdowns: On my iPhone the dropdown opens OK, but touching a menu item causes it to close - not link to another page.</p>
</blockquote>
<p dir="auto">Wanted to ask if this will be fixed in 2.1.2, otherwise I'll work around it? My testing in 2.1.2-wip shows there is still a problem.</p>
<p dir="auto">Thanks a lot!<br>
Lee</p> | <p dir="auto">Well, every author knows about she's baby that it is not perfect... But please let me identify few (high level) issues with current approach in Bootstrap, which could be quite easily fixed.</p>
<ol dir="auto">
<li>HTML is for semantic elements, and CSS is for visual formatting. It is well known for everyone... But when I was looking for best CSS framework over there, I found following answer on Stackoverflow:<br>
<a href="http://stackoverflow.com/questions/203069/what-is-the-best-css-framework-and-are-they-worth-the-effort" rel="nofollow">http://stackoverflow.com/questions/203069/what-is-the-best-css-framework-and-are-they-worth-the-effort</a></li>
</ol>
<p dir="auto">Accepted answer has a good merits, so I was starting thinking how to solve it cleanly...</p>
<p dir="auto">My conclusion was that using Less preprocessor it is quite easy. It's enough to have a whole framework as mixins and it is possible to make your own *.less, which will just import visual elements from bootstrap. Then no visual elements need to migrate into HTML.</p>
<p dir="auto">E.g.</p>
<h2 dir="auto">my.html</h2>
<div dir="auto"></div>
## my.less
<p dir="auto">.menu {<br>
.nav;<br>
.nav-pills;<br>
.nav-stackable;<br>
}</p>
<p dir="auto">instead of writing in HTML:</p>
<div dir="auto"></div>
<p dir="auto">Above solution partially works. But only partially. Currently problem is that Bootstrap is not defined properly to mix classes into user LESS files. In above example there is e.g. error importing .nav-stackable. It is because .nav-stackable is not defined in "nested way" but traditionally:</p>
<p dir="auto">// Stacked tabs and pills<br>
.nav-stacked > li {<br>
float: none;<br>
}<br>
.nav-stacked > li > a {<br>
margin-right: 0; // no need for the gap between nav items<br>
}</p>
<p dir="auto">Because of that you can not mixin this class into your own *.less stylesheet (there is no simple .nav-stackable class - just descendants).</p>
<p dir="auto">If it works it will be possible to completely get rid of visual elements from HTML, as you can always use your own having semantic meaning in your *.less file. There will be still problems with other selectors basing on .nav-stackable (which will be effectively renamed after mixin into client code), but I think it is a way to go nevertheless. Changing even part of Bootstrap can much improve situation.</p>
<ol dir="auto">
<li>It is another positive consequence of point 1.</li>
</ol>
<p dir="auto">Currently I am trying to create Joomla template using Bootstrap. Unfortunately it is not possible to get it right. The problem is that Joomla uses it's own tags in HTML, which are expanded into other HTML.</p>
<p dir="auto">E.g.<br>
<jdoc:include type="modules" name="menu" /></p>
<p dir="auto">is expanded into:</p>
<ul dir="auto">
<li><a href="#">Home</a></li>
<li><a href="#">test 1</a></li>
</ul>
<p dir="auto">and now I can not apply nav styles to ul list! It is generated by Joomla and I can not change it.</p>
<p dir="auto">With Bootstrap defined as mixins it would be possible to make it in own *.less file as presented above:</p>
<p dir="auto">.menu {<br>
.nav;<br>
.nav-pills;<br>
.nav-stackable;<br>
}</p>
<p dir="auto">After these changes code in less files and in user HTML should be much cleaner and just better.</p> | 0 |
<p dir="auto">I'm trying to implement a 3d fully convolutional network on my GPU. But for some reason I get a crash.</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: Ubuntu 14.04 LTS<br>
GPU: GeForce Titan X .</p>
<p dir="auto">Installed version of CUDA and cuDNN: 8.0 and 5<br>
(attach the output of `ls -l /path/to/cuda/lib/libcud*<br>
<a href="https://github.com/tensorflow/tensorflow/files/599236/cud.filelist.txt">cud.filelist.txt</a> )</p>
<p dir="auto">I installed tensorflow version 0.11.0rc2, and it also reproduce in docker installation (gcr.io/tensorflow/tensorflow:latest-gpu)</p>
<h3 dir="auto">Example code</h3>
<p dir="auto">The following code reproduce the problem:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import tensorflow as tf
graph = tf.Graph()
with graph.as_default():
tf_dataset = tf.placeholder(tf.float32, shape=(1, 512, 512, 512, 1))
tf_label = tf.placeholder(tf.float32, shape=(1, 512, 512, 512, 1))
layer1_weights = tf.Variable(tf.truncated_normal((2, 2, 2, 1, 1), stddev=0.1))
layer1_bias = tf.Variable(tf.zeros(1))
conv = tf.nn.conv3d(tf_dataset, layer1_weights, (1, 1, 1, 1, 1), padding='SAME')
logits = tf.nn.relu(conv+layer1_bias)
loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits, tf_label))
optimizer = tf.train.GradientDescentOptimizer(0.05).minimize(loss)
with tf.Session(graph=graph) as session:
tf.initialize_all_variables().run()
batchData = np.random.rand(1, 512, 512, 512, 1).astype(np.float32)
batchLabels = (np.random.rand(1, 512, 512, 512, 1)>0.5).astype(np.float32)
feed_dict = {tf_dataset : batchData, tf_label : batchLabels}
_ = session.run((optimizer, ), feed_dict=feed_dict)"><pre class="notranslate"><code class="notranslate">import numpy as np
import tensorflow as tf
graph = tf.Graph()
with graph.as_default():
tf_dataset = tf.placeholder(tf.float32, shape=(1, 512, 512, 512, 1))
tf_label = tf.placeholder(tf.float32, shape=(1, 512, 512, 512, 1))
layer1_weights = tf.Variable(tf.truncated_normal((2, 2, 2, 1, 1), stddev=0.1))
layer1_bias = tf.Variable(tf.zeros(1))
conv = tf.nn.conv3d(tf_dataset, layer1_weights, (1, 1, 1, 1, 1), padding='SAME')
logits = tf.nn.relu(conv+layer1_bias)
loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits, tf_label))
optimizer = tf.train.GradientDescentOptimizer(0.05).minimize(loss)
with tf.Session(graph=graph) as session:
tf.initialize_all_variables().run()
batchData = np.random.rand(1, 512, 512, 512, 1).astype(np.float32)
batchLabels = (np.random.rand(1, 512, 512, 512, 1)>0.5).astype(np.float32)
feed_dict = {tf_dataset : batchData, tf_label : batchLabels}
_ = session.run((optimizer, ), feed_dict=feed_dict)
</code></pre></div>
<p dir="auto">with the following output:</p>
<blockquote>
<p dir="auto">I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally<br>
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so locally<br>
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:<br>
name: GeForce GTX TITAN X<br>
major: 5 minor: 2 memoryClockRate (GHz) 1.076<br>
pciBusID 0000:01:00.0<br>
Total memory: 11.92GiB<br>
Free memory: 11.68GiB<br>
I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0: Y<br>
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:01:00.0)<br>
F tensorflow/stream_executor/cuda/cuda_dnn.cc:2440] failed to enqueue convolution on stream: CUDNN_STATUS_NOT_SUPPORTED</p>
</blockquote> | <p dir="auto">when my graph has the digamma function</p> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.30.0</p>
<p dir="auto"><strong>Issue</strong><br>
We have a solution with a number of web projects. We recently made a new project which used a tsconfig.json file.</p>
<p dir="auto">This affected other projects to believe they had a tsconfig.json file, overriding our project typescript settings for those projects.</p>
<p dir="auto">"One or more tsconfig.json files detected. Project properties are disabled."</p>
<p dir="auto">I've checked and the project file itself does not contain any reference to any tsconfig.json files nor does the project folder contain a tsconfig file.</p>
<p dir="auto"><strong>Reproduce</strong></p>
<ol dir="auto">
<li>Create two new Web Api projects in same solution.</li>
<li>Add a typescript file to each project and accept that they are converted into a typescript project.</li>
<li>Add a tsconfig.json to the second project.</li>
<li>Open properties for the first project and go to the TypeScript Build Tab. Observe "One or more tsconfig.json files detected. Project properties are disabled."</li>
</ol>
<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="
// None
"><pre class="notranslate"><span class="pl-c">// None</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">tsconfig.json detection to only work within project folder or files defined in the project file.</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">tsconfig,json detection aparently appears on a solution level or at least a project will detect tsconfig files that are in other projects folders.</p> | <p dir="auto">Allow a declarative way of adding members to an existing type's prototype</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
class Shape {
// ...
}
/* ...elsewhere...*/
extension class Shape { // Syntax??
getArea() { return /* ... */; }
}
var x = new Shape();
console.log(x.getArea()); // OK"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Shape</span> <span class="pl-kos">{</span>
<span class="pl-c">// ...</span>
<span class="pl-kos">}</span>
<span class="pl-c">/* ...elsewhere...*/</span>
<span class="pl-s1">extension</span><span class="pl-kos"></span> <span class="pl-k">class</span> <span class="pl-smi">Shape</span> <span class="pl-kos">{</span> <span class="pl-c">// Syntax??</span>
<span class="pl-en">getArea</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-c">/* ... */</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Shape</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-s1">x</span><span class="pl-kos">.</span><span class="pl-en">getArea</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// OK</span></pre></div> | 0 |
<ul dir="auto">
<li>What version of Go are you using (<code class="notranslate">go version</code>)?</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">go version
go version go1.6 windows/amd64"><pre class="notranslate"><code class="notranslate">>go version
go version go1.6 windows/amd64
</code></pre></div>
<ul dir="auto">
<li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">go env
set GOARCH=amd64
set GOBIN=C:\Users\<user>\Development\GoSource\bin
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\<user>\Development\GoSource
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GO15VENDOREXPERIMENT=1
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1"><pre class="notranslate"><code class="notranslate">>go env
set GOARCH=amd64
set GOBIN=C:\Users\<user>\Development\GoSource\bin
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\<user>\Development\GoSource
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GO15VENDOREXPERIMENT=1
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
</code></pre></div>
<ul dir="auto">
<li>What did you do?</li>
</ul>
<p dir="auto">The <a href="https://golang.org/pkg/path/#Base" rel="nofollow">documentation</a> gives an example on the expected behaviour of <code class="notranslate">path.Base()</code>, however, it does not actually split the trailing path element. Also, <code class="notranslate">path.Base()</code> duplicates the <code class="notranslate">\</code> in the path.</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package main
import (
"fmt"
"path"
"strings"
)
func main() {
base := `c:\users\username`
fmt.Println(path.Base(base))
fmt.Println(fmt.Sprintf("%q\n", strings.SplitAfter(base, `\`)))
lines := strings.SplitAfter(base, `\`)
fmt.Println(lines[len(lines)-1])
}"><pre class="notranslate"><span class="pl-k">package</span> main
<span class="pl-k">import</span> (
<span class="pl-s">"fmt"</span>
<span class="pl-s">"path"</span>
<span class="pl-s">"strings"</span>
)
<span class="pl-k">func</span> <span class="pl-en">main</span>() {
<span class="pl-s1">base</span> <span class="pl-c1">:=</span> <span class="pl-s">`c:\users\username`</span>
<span class="pl-s1">fmt</span>.<span class="pl-en">Println</span>(<span class="pl-s1">path</span>.<span class="pl-en">Base</span>(<span class="pl-s1">base</span>))
<span class="pl-s1">fmt</span>.<span class="pl-en">Println</span>(<span class="pl-s1">fmt</span>.<span class="pl-en">Sprintf</span>(<span class="pl-s">"%q<span class="pl-cce">\n</span>"</span>, <span class="pl-s1">strings</span>.<span class="pl-en">SplitAfter</span>(<span class="pl-s1">base</span>, <span class="pl-s">`\`</span>)))
<span class="pl-s1">lines</span> <span class="pl-c1">:=</span> <span class="pl-s1">strings</span>.<span class="pl-en">SplitAfter</span>(<span class="pl-s1">base</span>, <span class="pl-s">`\`</span>)
<span class="pl-s1">fmt</span>.<span class="pl-en">Println</span>(<span class="pl-s1">lines</span>[<span class="pl-en">len</span>(<span class="pl-s1">lines</span>)<span class="pl-c1">-</span><span class="pl-c1">1</span>])
}</pre></div>
<ul dir="auto">
<li>What did you expect to see?</li>
</ul>
<p dir="auto">The expected behaviour should be consistent with the <a href="https://golang.org/pkg/path/#Base" rel="nofollow">documentation examples</a>; <code class="notranslate">path.Base()</code> should return the trailing path element.</p>
<ul dir="auto">
<li>What did you see instead?</li>
</ul>
<p dir="auto"><code class="notranslate">path.Base()</code> returns the full path instead of the final path element.</p> | <p dir="auto">by <strong>steve.wangbin</strong>:</p>
<pre class="notranslate">Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:
Run "go version" and compare against
<a href="http://golang.org/doc/devel/release.html" rel="nofollow">http://golang.org/doc/devel/release.html</a> If a newer version of Go exists,
install it and retry what you did to reproduce the problem.
Thanks.
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
My program is too large to post here. the relavent function is below:
line 58: func (p *channelChatCase) prepare(account string, pos *position) (player
*gameserver.Player, err error) {
line 59: player, err = gameserver.Login(&p.env.Param, account, p.env.Password,
"")
line 60: if err != nil {
line 61: return nil, err
line 62: }
line 63: defer func() {
line 64: if err != nil {
line 65: player.Close()
line 66: }
line 67: }()
line 68: if err := player.WaitChannel(p.channeltype); err != nil {
line 69: return nil, err
line 70: }
line 71: if err := player.NewWorld(pos.mapid, pos.x, pos.y); err != nil {
line 72: return nil, err
line 73: }
line 74: return player, nil
line 75: }
This function returned at line 68 and caused a panic, but the stack trace told me that
the line number where the function returns is 61.
What is the expected output?
main._func_002(0x261af0, 0x261ae8, 0xf8400009f0, 0xf840207000)
D:/svnroot/devtool/robot/case_channelchat.go:65 +0x36
main.(*channelChatCase).prepare(0xf840217600, 0xf84006c0a9, 0x8, 0xf840217620, 0x0, ...)
D:/svnroot/devtool/robot/case_channelchat.go:69 +0xf4
What do you see instead?
main._func_002(0x261af0, 0x261ae8, 0xf8400009f0, 0xf840207000)
D:/svnroot/devtool/robot/case_channelchat.go:65 +0x36
main.(*channelChatCase).prepare(0xf840217600, 0xf84006c0a9, 0x8, 0xf840217620, 0x0, ...)
D:/svnroot/devtool/robot/case_channelchat.go:61 +0xf4
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
windows7 64bit
Which version are you using? (run 'go version')
go 1.0.3
Please provide any additional information below.</pre> | 0 |
<p dir="auto">currently, there's no way to extend the Schema with statics, because it's being exported as a class. It would require converting to an interface then make the schema class implement the interface. The reason is that mongoose plugins usually apply either to <code class="notranslate">statics</code> member of the Schema, or using <code class="notranslate">Schema.static('name', fn)</code>. Doing a</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module 'mongoose' {
export class Schema {
static paginate(/*...*/);
}
}"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-s">'mongoose'</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Schema</span> <span class="pl-kos">{</span>
<span class="pl-k">static</span> <span class="pl-c1">paginate</span><span class="pl-kos">(</span><span class="pl-c">/*...*/</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">gives a duplicate declaration error. applying the extra methods to the model doesn't seem to work.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export interface IModelTest extends mongoose.Document, ITimestamp, ITest { }
export var TestSchema = new mongoose.Schema({
/*...*/
});
TestSchema.plugin(require('../modules/pagination'));
/* does
module.exports = function(Schema) {
Schema.static('pagination', function(){
return this.paginate({hide: {$ne: true}}, 1, 10, { populate: 'user' });
});
}
*/
export var model = mongoose.model<IModelTest>('Test', TestSchema);
model.pagination; // error "><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">IModelTest</span> <span class="pl-k">extends</span> <span class="pl-s1">mongoose</span><span class="pl-kos">.</span><span class="pl-smi">Document</span><span class="pl-kos">,</span> <span class="pl-smi">ITimestamp</span><span class="pl-kos">,</span> <span class="pl-smi">ITest</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-smi">TestSchema</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">mongoose</span><span class="pl-kos">.</span><span class="pl-c1">Schema</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c">/*...*/</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">TestSchema</span><span class="pl-kos">.</span><span class="pl-en">plugin</span><span class="pl-kos">(</span><span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'../modules/pagination'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">/* does </span>
<span class="pl-c">module.exports = function(Schema) {</span>
<span class="pl-c"> Schema.static('pagination', function(){</span>
<span class="pl-c"> return this.paginate({hide: {$ne: true}}, 1, 10, { populate: 'user' });</span>
<span class="pl-c"> });</span>
<span class="pl-c">}</span>
<span class="pl-c">*/</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">mongoose</span><span class="pl-kos">.</span><span class="pl-en">model</span><span class="pl-kos"><</span><span class="pl-smi">IModelTest</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s">'Test'</span><span class="pl-kos">,</span> <span class="pl-smi">TestSchema</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">model</span><span class="pl-kos">.</span><span class="pl-c1">pagination</span><span class="pl-kos">;</span> <span class="pl-c">// error </span></pre></div> | <p dir="auto">my IEntityModel definition:<br>
<code class="notranslate">interface IEntityModel extends mongoose.Document { }</code><br>
my method fefinition:<br>
<code class="notranslate">create(item: T): Promise<IEnityModel>{ return this._model.create(item); }</code><br>
How can I fix this problem?<br>
here is error tips by VSCODE:</p>
<blockquote>
<p dir="auto">[ts] Type 'Promise' is not assignable to type 'Promise'.<br>
Types of property 'then' are incompatible.<br>
Type '(onFulFill: (result: IEntityModel) => void | U | Promise, onReject?: (err: any) => void | U...' is not assignable to type '{ (onfulfilled?: (value: IEntityModel) => TResult | PromiseLike, onrejected?: (...'.<br>
Type 'Promise' is not assignable to type 'Promise'.<br>
Property 'catch' is missing in type 'Promise'.<br>
(method) mongoose.Model.create(doc: Object, fn?: (err: any, res: IEnityModel) => void): mongoose.Promise (+3 overloads)</p>
</blockquote> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>all</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>ubuntu 19.04</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>none</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The webview 'console-message' event doesn't have an 'args'</p>
<p dir="auto"><a href="https://electronjs.org/docs/api/webview-tag#event-console-message" rel="nofollow">https://electronjs.org/docs/api/webview-tag#event-console-message</a></p>
<p dir="auto">If you want to listen to what's happening in a webview you can only get the message.</p>
<p dir="auto">For example if you do:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="log.info("hello: ", "electron"); "><pre class="notranslate"><span class="pl-s1">log</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">"hello: "</span><span class="pl-kos">,</span> <span class="pl-s">"electron"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </pre></div>
<p dir="auto">You can only get 'hello: ' not the "electron" string because there isn't an args.</p>
<p dir="auto">This makes it very very difficult to debug what's happening in a webview.</p>
<p dir="auto">Normally what I do is forward the console message from the child webview to the parent console so I can see what's happening there but I can't get 'args' which really breaks things.</p>
<p dir="auto">I can fix my own code but I can't fix the code of others.</p> | <ul dir="auto">
<li>Electron version: 1.4.2<br>
[email protected]<br>
[email protected]<br>
[email protected]<br>
[email protected]</li>
<li>Operating system: Windows 10</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">In Javascript you can chain messages together in the console.log function by adding multiple arguments. I would like to be able to capture this functionality in the webview 'console-message' listener.</p>
<p dir="auto"><i>console.log("testing",4,new Object());</i></p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">When re-directing messages to the webview like so...</p>
<p dir="auto"><i>webview.addEventListener('console-message', function(e) { console.log(e.message); });</i></p>
<p dir="auto">The listener event message only gets the first argument sent from the console.log in the webview. From my example, it would only print "testing".</p>
<h3 dir="auto">Things I have tried</h3>
<ul dir="auto">
<li>
I looked around inside the event object to see if the other arguments had been captured in another part of the object (outside of e.message), but I didn't see anything.
</li>
<li>
I tried sending, <i>webview.addEventListener('console-message', function(a,b,c...) </i> the extra arguments were undefined.
</li>
</ul>
<h3 dir="auto">Note</h3>
<p dir="auto">I could use the + operator instead of sending multiple arguments, but the results would not be the same. For instance, sending an Object allows you to expand the Object.</p> | 1 |
<p dir="auto">I am trying to use the bootstrap modal feature, but get a little bug on toggling the modal on.</p>
<p dir="auto">This problem exists also on bootstrap 3 documentation page: <a href="http://getbootstrap.com/javascript/#modals" rel="nofollow">http://getbootstrap.com/javascript/#modals</a></p>
<p dir="auto">If you click on the button to open modal, you can see the background position changing by approximately 1 cm to the left.</p>
<p dir="auto">Tested on latest Safari & Chrome.</p>
<p dir="auto">Thanks in advance.</p> | <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">when i tried to use this. FirebaseAuth.instance.signInWithEmailAndPassword(email:credEmail,password:credPassword);<br>
the result is :</p>
<p dir="auto"><code class="notranslate">/AndroidRuntime(13937): java.lang.NullPointerException: null value in entry: uid=null E/AndroidRuntime(13937): at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:34) E/AndroidRuntime(13937): at com.google.common.collect.ImmutableMapEntry.<init>(ImmutableMapEntry.java:49) E/AndroidRuntime(13937): at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:122) E/AndroidRuntime(13937): at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:198) E/AndroidRuntime(13937): at io.flutter.plugins.firebaseauth.FirebaseAuthPlugin.userInfoToMap(FirebaseAuthPlugin.java:422) E/AndroidRuntime(13937): at io.flutter.plugins.firebaseauth.FirebaseAuthPlugin.mapFromUser(FirebaseAuthPlugin.java:440) E/AndroidRuntime(13937): at io.flutter.plugins.firebaseauth.FirebaseAuthPlugin.access$000(FirebaseAuthPlugin.java:25) E/AndroidRuntime(13937): at io.flutter.plugins.firebaseauth.FirebaseAuthPlugin$SignInCompleteListener.onComplete(FirebaseAuthPlugin.java:375) E/AndroidRuntime(13937): at com.google.android.gms.tasks.zzj.run(Unknown Source) E/AndroidRuntime(13937): at android.os.Handler.handleCallback(Handler.java:754) E/AndroidRuntime(13937): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime(13937): at android.os.Looper.loop(Looper.java:163) E/AndroidRuntime(13937): at android.app.ActivityThread.main(ActivityThread.java:6379) E/AndroidRuntime(13937): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(13937): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) E/AndroidRuntime(13937): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)</code></p>
<p dir="auto">and then my the debug apps is stopped working.<br>
i try it from folder example on github, For google and faceebook signin is working well. except for this.<br>
is it a bugs or i miss something from that ?</p>
<p dir="auto">Thank you for your attention :)</p> | <h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">I'm using the 'master' branch.</p>
<p dir="auto">Ran these commands:<br>
$ flutter create demoApp<br>
$ cd demoApp<br>
$ flutter build apk</p>
<h2 dir="auto">Flutter Doctor</h2>
<p dir="auto">Paste the output of running <code class="notranslate">flutter doctor</code> here.</p>
<p dir="auto">[✓] Flutter (on Linux, channel master)<br>
• Flutter at /usr/local/google/home/quddusc/flutter<br>
• Framework revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/2f642ce9083c3354b985d956bd57145d2006bc79/hovercard" href="https://github.com/flutter/flutter/commit/2f642ce9083c3354b985d956bd57145d2006bc79"><tt>2f642ce</tt></a> (85 minutes ago), engine revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/57edc534d69031b03409e7af37cbc492cb135086/hovercard" href="https://github.com/flutter/flutter/commit/57edc534d69031b03409e7af37cbc492cb135086"><tt>57edc53</tt></a></p>
<p dir="auto">[✓] Android toolchain - develop for Android devices (Android SDK 24.0.0-preview)<br>
• Android SDK at /usr/local/google/home/quddusc/Android/Sdk<br>
• Platform android-N, build-tools 24.0.0-preview<br>
• OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)</p>
<p dir="auto">[✓] Atom - a lightweight development environment for Flutter<br>
• Atom installed; Flutter plugin version 0.2.2</p>
<h2 dir="auto">Logs and Crash Reports</h2>
<p dir="auto">Please attach any relevent logs or crash reports.</p>
<p dir="auto">Building APK in debug mode (android-arm)...<br>
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0<br>
at java.lang.ClassLoader.defineClass1(Native Method)<br>
at java.lang.ClassLoader.defineClass(ClassLoader.java:803)<br>
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)<br>
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)<br>
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)<br>
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)<br>
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)<br>
at java.security.AccessController.doPrivileged(Native Method)<br>
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)<br>
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)<br>
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)</p>
<p dir="auto">Oops; flutter has exited unexpectedly: "Exit code 1 from: /usr/local/google/home/quddusc/Android/Sdk/build-tools/24.0.0-preview/dx --dex --force-jumbo --output /tmp/flutter_toolsb75eKg/classes.dex /usr/local/google/home/quddusc/flutter/bin/cache/artifacts/engine/android-arm/classes.dex.jar".</p> | 0 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong><br>
The <code class="notranslate">npx size-limit</code> command fails with the following error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ ts-react-components-lib git:(hhimanshu/update-deps) ✗ npx size-limit
✖ Adding to empty webpack project
ERROR WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.entry['index'] should be an non-empty array.
-> A non-empty array of non-empty strings
at webpack (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/webpack/lib/webpack.js:31:9)
at /Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/@size-limit/webpack/run-webpack.js:5:20
at new Promise (<anonymous>)
at runWebpack (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/@size-limit/webpack/run-webpack.js:4:10)
at Object.step40 (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/@size-limit/webpack/index.js:88:38)
at /Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/size-limit/calc.js:17:47
at Array.map (<anonymous>)
at step (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/size-limit/calc.js:16:29)
at calc (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/size-limit/calc.js:44:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
"><pre class="notranslate"><code class="notranslate">➜ ts-react-components-lib git:(hhimanshu/update-deps) ✗ npx size-limit
✖ Adding to empty webpack project
ERROR WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.entry['index'] should be an non-empty array.
-> A non-empty array of non-empty strings
at webpack (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/webpack/lib/webpack.js:31:9)
at /Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/@size-limit/webpack/run-webpack.js:5:20
at new Promise (<anonymous>)
at runWebpack (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/@size-limit/webpack/run-webpack.js:4:10)
at Object.step40 (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/@size-limit/webpack/index.js:88:38)
at /Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/size-limit/calc.js:17:47
at Array.map (<anonymous>)
at step (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/size-limit/calc.js:16:29)
at calc (/Users/hhimanshu/code/prsnl/ts/ts-react-components-lib/node_modules/size-limit/calc.js:44:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
</code></pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<ul dir="auto">
<li>Please checkout <code class="notranslate">hhimanshu/update-deps</code> branch from <a href="https://github.com/hhimanshu/ts-react-components-lib">https://github.com/hhimanshu/ts-react-components-lib</a></li>
<li>Run <code class="notranslate">yarn install</code></li>
<li>Run <code class="notranslate">yarn size</code></li>
</ul>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
The command should have ran successfully</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
The <code class="notranslate">package.json</code> is available at <a href="https://github.com/hhimanshu/ts-react-components-lib/blob/hhimanshu/update-deps/package.json">https://github.com/hhimanshu/ts-react-components-lib/blob/hhimanshu/update-deps/package.json</a></p>
<p dir="auto">webpack version:<br>
Node.js version</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ ts-react-components-lib git:(hhimanshu/update-deps) ✗ node -v
v14.17.0
➜ ts-react-components-lib git:(hhimanshu/update-deps) npm -v
7.17.0
➜ ts-react-components-lib git:(hhimanshu/update-deps)"><pre class="notranslate"><code class="notranslate">➜ ts-react-components-lib git:(hhimanshu/update-deps) ✗ node -v
v14.17.0
➜ ts-react-components-lib git:(hhimanshu/update-deps) npm -v
7.17.0
➜ ts-react-components-lib git:(hhimanshu/update-deps)
</code></pre></div>
<p dir="auto">Operating System: Mac<br>
Additional tools:</p> | <p dir="auto">🎉 Thanks for being brave and donating your valuable time to testing unfinished beta software 🎉</p>
<p dir="auto">webpack 5 is in beta phase now. This means major changes and features are done. Major breaking changes have been added. Basic backward-compatibility has been added.</p>
<p dir="auto">We want to use the beta phase to do the following:</p>
<ul dir="auto">
<li>Let a boarder range of users test the beta version.</li>
<li>Find bugs in new features.</li>
<li>Find regressions in old features.</li>
<li>Find places where a compat-layer can be added to avoid breaking changes.</li>
<li>Improve the <a href="https://github.com/webpack/changelog-v5/blob/master/MIGRATION%20GUIDE.md">migration guide</a> and <a href="https://github.com/webpack/changelog-v5/blob/master/README.md">changelog</a>.</li>
</ul>
<p dir="auto">We want to reach these goals after the beta phase:</p>
<ul dir="auto">
<li>Old features are very stable</li>
<li>New features are a bit stable</li>
<li>Backward-compatibility layer allows most existing plugins/loader to work unmodified (potentially with deprecation warnings)</li>
<li>There clear way how to migrate from webpack 4 to 5</li>
<li>There are experimental webpack 5 branches for higher-level tools (like angular-cli, vue-cli, create-react-app, ...) (at least 2)</li>
</ul>
<p dir="auto">To help with testing you can do the following:</p>
<ul dir="auto">
<li>Always test with the latest webpack beta version, as problems might already be fixed there</li>
<li>When using webpack directly:
<ul dir="auto">
<li>Follow the <a href="https://github.com/webpack/changelog-v5/blob/master/MIGRATION%20GUIDE.md">migration guide</a></li>
<li>Report or add missing steps in the migration guide</li>
<li>Report problems during the migration</li>
<li>Report problems with the build after the migration</li>
</ul>
</li>
<li>When using a higher-level tool:
<ul dir="auto">
<li>Check if there is a branch/Pull Request for webpack 5</li>
<li>Follow guide there</li>
<li>Report problems in the Pull Request</li>
</ul>
</li>
<li>Make sure to also report (positive) experience
<ul dir="auto">
<li>Performance comparison</li>
<li>Size comparison</li>
<li>DX comparison</li>
</ul>
</li>
<li>Try new features
<ul dir="auto">
<li>Enable persistent caching -> <a href="https://github.com/webpack/changelog-v5/blob/master/guides/persistent-caching.md">guide</a></li>
<li>Enable Top Level Await</li>
<li>Enable the new <code class="notranslate">asset</code> module type</li>
<li>Enable Long Term Caching</li>
<li>Try to break filesystem watching</li>
</ul>
</li>
<li>Trace back deprecation warnings with <code class="notranslate">node --trace-deprecation</code>
<ul dir="auto">
<li>Help upgrading plugins/loaders</li>
</ul>
</li>
<li>Make sure to follow beta releases
<ul dir="auto">
<li>Retest newer version to avoid regressions in beta versions</li>
</ul>
</li>
<li>Consider sponsoring webpack when this version
<ul dir="auto">
<li>increases your productivity with better build performance</li>
<li>increases your productivity with better developer experience</li>
<li>increases your consumer happiness with better application performance</li>
<li>make you happy in some other way...</li>
</ul>
</li>
</ul>
<p dir="auto">Known problems:</p>
<ul dir="auto">
<li><code class="notranslate">eval()</code> causes problems with the <code class="notranslate">optimization.innerGraph</code> (production).</li>
<li><code class="notranslate">libraryTarget: "module"</code> is not implemented yet</li>
<li><code class="notranslate">devtool</code>s don't support persistent caching yet</li>
<li>Persistent Cache file include absolute paths are are not portable yet</li>
<li><code class="notranslate">import.meta</code> is still missing</li>
<li>prefetching doesn't work for WASM yet</li>
<li>CLI arguments doesn't contribute to cache version</li>
<li><del><a href="https://github.com/webpack/webpack/issues/9802#issuecomment-541209889" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/9802/hovercard">stack trace is incorrectly displayed in stats</a></del></li>
<li>Build Time is a bit higher for non-cached builds. Possible reasons:
<ul dir="auto">
<li>tracking extra information in the resolver for safe caching</li>
</ul>
</li>
<li><a href="https://github.com/webpack/webpack/issues/9802#issuecomment-541303173" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/9802/hovercard">mini-css-extract-plugin is not able to persistent cache yet</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="506047258" data-permission-text="Title is private" data-url="https://github.com/webpack-contrib/stylelint-webpack-plugin/issues/187" data-hovercard-type="issue" data-hovercard-url="/webpack-contrib/stylelint-webpack-plugin/issues/187/hovercard" href="https://github.com/webpack-contrib/stylelint-webpack-plugin/issues/187">webpack-contrib/stylelint-webpack-plugin#187</a></li>
<li><a href="https://github.com/webpack/webpack/issues/9802#issuecomment-541468003" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/9802/hovercard">svg-sprite-loader doesn't work</a></li>
<li>There is no warning for Buffer or process yet.</li>
</ul>
<p dir="auto">Planned breaking changes:</p>
<ul dir="auto">
<li><del>devtool options will be more restrictive</del></li>
<li>Internal HMR API for plugins will probably change</li>
<li><del>Disable some webpack-only syntax by default: <code class="notranslate">require.ensure</code>, <code class="notranslate">require.include</code></del></li>
<li>terser-webpack-plugin will be upgraded</li>
<li><del>cache.store != "pack" will be removed</del></li>
</ul> | 0 |
<p dir="auto">See build dashboard.<br>
<a href="http://build.golang.org/log/b02e6aaa2fe497fadf898192d5425e7201569703" rel="nofollow">http://build.golang.org/log/b02e6aaa2fe497fadf898192d5425e7201569703</a><br>
<a href="http://build.golang.org/log/350de48b4c0e31390ac02f7a1af96c22401a5628" rel="nofollow">http://build.golang.org/log/350de48b4c0e31390ac02f7a1af96c22401a5628</a><br>
<a href="http://build.golang.org/log/58502b25b5c6dc158954ba111690223cb5bc078f" rel="nofollow">http://build.golang.org/log/58502b25b5c6dc158954ba111690223cb5bc078f</a><br>
<a href="http://build.golang.org/log/2bb42bac80498052be38e335298d05b43d370f1a" rel="nofollow">http://build.golang.org/log/2bb42bac80498052be38e335298d05b43d370f1a</a></p>
<p dir="auto">No errors at the package API, looks like timeoutTransmitter goroutine is not scheduled well, not sure the reason but seems like it needs further investigation.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="process continue
Process 580 resuming
--- FAIL: TestWriteTimeoutFluctuation (1.89s)
timeout_test.go:706: Write took over 1s; expected 0.1s
FAIL
Process 580 exited with status = 1 (0x00000001)
go_darwin_arm_exec: timeout running tests"><pre class="notranslate"><code class="notranslate">process continue
Process 580 resuming
--- FAIL: TestWriteTimeoutFluctuation (1.89s)
timeout_test.go:706: Write took over 1s; expected 0.1s
FAIL
Process 580 exited with status = 1 (0x00000001)
go_darwin_arm_exec: timeout running tests
</code></pre></div> | <p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p>
<pre class="notranslate">gofmt should have an option to enable putting left brace/parenthesis on the
next line.
I find this coding style more readable:
func (p *printer) writeNewlines(n int)
{
if n > 0
{
if n > maxNewlines
{
n = maxNewlines
}
p.write(newlines[0:n]);
}
}
I made a modification that adds option -nextline to gofmt. See attached patch.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/99/0/gofmt_nextline.patch" rel="nofollow">gofmt_nextline.patch</a> (2406 bytes)</li>
</ol> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362
Windows Terminal version (if applicable): 0.4.2382.0
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362
Windows Terminal version (if applicable): 0.4.2382.0
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ul dir="auto">
<li>
<p dir="auto">Open Terminal.</p>
</li>
<li>
<p dir="auto">Open new tab of powershell.</p>
</li>
<li>
<p dir="auto">Run VS Code as a child process of the tab (just <code class="notranslate">code .</code> as long as no other VS Code windows are open).</p>
</li>
<li>
<p dir="auto">Close tab with GUI child process.</p>
</li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Tab is closed, child process is killed.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto"><code class="notranslate">WindowsTerminal.exe is not responding</code>.</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal: 0.2.1831.0
Remote OS: Raspbian GNU/Linux 9.8 (stretch) armv7l
Emacs 25.1.1 with rust-mode
Vim 8.0.707 "><pre class="notranslate"><code class="notranslate">Windows: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal: 0.2.1831.0
Remote OS: Raspbian GNU/Linux 9.8 (stretch) armv7l
Emacs 25.1.1 with rust-mode
Vim 8.0.707
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open Windows Terminal</li>
<li>Run ssh to remote GNU/Linux</li>
<li>Download <a href="https://file.veer66.rocks/windows/re.rs" rel="nofollow">https://file.veer66.rocks/windows/re.rs</a></li>
<li>Run emacs</li>
<li>Install rust-mode to Emacs</li>
<li>In Emacs, open file re.rs</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Windows Terminal should display this code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="lazy_static! {
static ref DATE_RE: Regex = Regex::new(r"(\d{4})(\d{2})(\d{2})").unwrap();
static ref CHUNK_RE: Regex = Regex::new(r"[ก-์]+|\([^\)]+\)").unwrap();
static ref THAI_RE: Regex = Regex::new(r"[ก-์]+").unwrap();
}"><pre class="notranslate"><span class="pl-en">lazy_static</span><span class="pl-en">!</span> <span class="pl-kos">{</span>
<span class="pl-k">static</span> ref <span class="pl-v">DATE_RE</span>: <span class="pl-v">Regex</span> = <span class="pl-v">Regex</span>::new<span class="pl-kos">(</span><span class="pl-s">r"(\d{4})(\d{2})(\d{2})"</span><span class="pl-kos">)</span>.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span>;
<span class="pl-k">static</span> ref <span class="pl-v">CHUNK_RE</span>: <span class="pl-v">Regex</span> = <span class="pl-v">Regex</span>::new<span class="pl-kos">(</span><span class="pl-s">r"[ก-์]+|\([^\)]+\)"</span><span class="pl-kos">)</span>.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span>;
<span class="pl-k">static</span> ref <span class="pl-v">THAI_RE</span>: <span class="pl-v">Regex</span> = <span class="pl-v">Regex</span>::new<span class="pl-kos">(</span><span class="pl-s">r"[ก-์]+"</span><span class="pl-kos">)</span>.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span>;
<span class="pl-kos">}</span></pre></div>
<p dir="auto">like below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/370688/61382821-a8816c80-a8d7-11e9-9555-0a2b122bcddd.png"><img src="https://user-images.githubusercontent.com/370688/61382821-a8816c80-a8d7-11e9-9555-0a2b122bcddd.png" alt="xfce_term_emacs" style="max-width: 100%;"></a></p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Line 3 was broken.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/370688/61382857-bd5e0000-a8d7-11e9-8240-cf6a62abe92c.png"><img src="https://user-images.githubusercontent.com/370688/61382857-bd5e0000-a8d7-11e9-8240-cf6a62abe92c.png" alt="win-term-emacs" style="max-width: 100%;"></a></p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0 (Store Version)
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.2.1831.0 (Store Version)
Any other software? No
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Start Windows Terminal and try to invoke <code class="notranslate">ColorTool</code> in the Store Version of the app - not built from source.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Invoke <code class="notranslate">ColorTool</code> correctly</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Not found.</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [版本 10.0.18362.356]
Windows Terminal version (if applicable):
Windows Terminal (Preview)
Version: 0.5.2681.0
# Steps to reproduce
<!-- 1. input "dir" in the Terminal, copy some thing from the Terminal by select and right click mouse 2. Pause in the Wechat input windows-->
# Expected behavior
<!--Pause success -->
# Actual behavior
<!-- Pause none -->"><pre lang="none" class="notranslate"><code class="notranslate">Microsoft Windows [版本 10.0.18362.356]
Windows Terminal version (if applicable):
Windows Terminal (Preview)
Version: 0.5.2681.0
# Steps to reproduce
<!-- 1. input "dir" in the Terminal, copy some thing from the Terminal by select and right click mouse 2. Pause in the Wechat input windows-->
# Expected behavior
<!--Pause success -->
# Actual behavior
<!-- Pause none -->
</code></pre></div> | 0 |
<p dir="auto">When using <code class="notranslate">withStyles()</code> hoc in typescript, I am getting the following error when trying to use the returned component:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Type '{}' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<App> & Readonly<{ children?: ReactNode; }> & Reado...'.
Type '{}' is not assignable to type 'Readonly<WithStyles<"main">>'.
Property 'classes' is missing in type '{}'."><pre class="notranslate"><code class="notranslate">Type '{}' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<App> & Readonly<{ children?: ReactNode; }> & Reado...'.
Type '{}' is not assignable to type 'Readonly<WithStyles<"main">>'.
Property 'classes' is missing in type '{}'.
</code></pre></div>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">It appears <a href="https://github.com/callemall/material-ui/pull/8399" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/8399/hovercard">this change</a> to the type definition might be related to this issue.</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Given the <code class="notranslate">App</code> component code below, I should be able to use the component <code class="notranslate"><App /></code> without the type error as I did in 1.0.0-beta.10.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Given the <code class="notranslate">App</code> component code below, trying to use <code class="notranslate"><App /></code> results in the aforementioned error.</p>
<h2 dir="auto">The Code</h2>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as React from 'react';
import { withStyles } from 'material-ui/styles';
const styles = {
main: {
marginTop: 48,
padding: 10,
},
foo: {
margin: 0,
},
};
interface Props {
message: string;
};
type ClassNames = { classes: { [className in keyof typeof styles]: string } };
class App extends React.Component<Props & ClassNames> {
render() {
const { classes, message } = this.props;
return (
<div className={classes.main}>
<div className={classes.foo} >
Hello World! {message}
</div>
</div>
);
}
}
export default withStyles(styles)(App);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-smi">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">withStyles</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui/styles'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">styles</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">main</span>: <span class="pl-kos">{</span>
<span class="pl-c1">marginTop</span>: <span class="pl-c1">48</span><span class="pl-kos">,</span>
<span class="pl-c1">padding</span>: <span class="pl-c1">10</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">foo</span>: <span class="pl-kos">{</span>
<span class="pl-c1">margin</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">interface</span> <span class="pl-smi">Props</span> <span class="pl-kos">{</span>
<span class="pl-c1">message</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">type</span> <span class="pl-smi">ClassNames</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">classes</span>: <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-smi">className</span> <span class="pl-k">in</span> <span class="pl-k">keyof</span> <span class="pl-k">typeof</span> <span class="pl-s1">styles</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-k">class</span> <span class="pl-smi">App</span> <span class="pl-k">extends</span> <span class="pl-smi">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span><span class="pl-kos"><</span><span class="pl-smi">Props</span> <span class="pl-c1">&</span> <span class="pl-smi">ClassNames</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> classes<span class="pl-kos">,</span> message <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-s1">div</span> <span class="pl-smi">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">classes</span><span class="pl-kos">.</span><span class="pl-s1">main</span><span class="pl-kos">}</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-s1">div</span> <span class="pl-smi">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">classes</span><span class="pl-kos">.</span><span class="pl-s1">foo</span><span class="pl-kos">}</span> <span class="pl-c1">></span>
<span class="pl-smi">Hello</span> <span class="pl-smi">World</span><span class="pl-c1">!</span> <span class="pl-kos">{</span>message<span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-pds"><span class="pl-c1">/</span>div></span>
<span class="pl-pds"> <span class="pl-c1"><</span><span class="pl-c1">/</span>div</span><span class="pl-c1">></span><span class="pl-s1"></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">withStyles</span><span class="pl-kos">(</span><span class="pl-s1">styles</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-smi">App</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">The code worked fine in 1.0.0-beta.10, when I upgraded to 1.0.0-beta.12 I got the type error.</p>
<p dir="auto">In the code snippet provided I used the <code class="notranslate">keyof typeof styles</code> trick so that I would not need to define a list of class names twice (I strongly dislike the repetitiveness). I have also tried other variations:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type ClassNames = WithStyles<keyof typeof styles>;"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">ClassNames</span> <span class="pl-c1">=</span> <span class="pl-smi">WithStyles</span><span class="pl-kos"><</span><span class="pl-k">keyof</span> <span class="pl-k">typeof</span> <span class="pl-s1">styles</span><span class="pl-kos">></span><span class="pl-kos">;</span></pre></div>
<p dir="auto">and doing it the more common way (as seen in <a href="https://github.com/sebald/material-ui/blob/db1a42102097344c2614a9163cd9a0125bfd655a/test/typescript/styles.spec.tsx#L58-L61">styles.spec.tsx</a>):</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type ComponentClassNames = 'main' | 'foo';
type ClassNames = WithStyles<ComponentClassNames>;"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">ComponentClassNames</span> <span class="pl-c1">=</span> <span class="pl-s">'main'</span> <span class="pl-c1">|</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span>
<span class="pl-k">type</span> <span class="pl-smi">ClassNames</span> <span class="pl-c1">=</span> <span class="pl-smi">WithStyles</span><span class="pl-kos"><</span><span class="pl-smi">ComponentClassNames</span><span class="pl-kos">></span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I still get the same error.</p>
<p dir="auto">It seems the previous type definition would return a component whose props type would be <code class="notranslate">StyledComponentProps</code> which has an optional <code class="notranslate">classes</code> property. The new definition...</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<P, C extends React.ComponentClass<P & StyledComponentProps<Names>>>(
component: C
): C;"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-smi">P</span><span class="pl-kos">,</span> <span class="pl-smi">C</span> <span class="pl-k">extends</span> <span class="pl-smi">React</span><span class="pl-kos">.</span><span class="pl-smi">ComponentClass</span><span class="pl-kos"><</span><span class="pl-smi">P</span> <span class="pl-c1">&</span> <span class="pl-smi">StyledComponentProps</span><span class="pl-kos"><</span><span class="pl-smi">Names</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-c1">></span><span class="pl-kos">(</span>
<span class="pl-s1">component</span>: <span class="pl-smi">C</span>
<span class="pl-kos">)</span>: <span class="pl-smi">C</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">...returns the same type <code class="notranslate">C</code> as the component, this means that passing <code class="notranslate">ClassNames</code> which is not marked optional propagates to the returned component. I see mentioned <a href="https://github.com/callemall/material-ui/pull/8399" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/8399/hovercard">here</a> the use of <code class="notranslate">Partial<></code> which I think it an unsightly hack.</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>15.6.1</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 61.0.3163.100</td>
</tr>
</tbody>
</table> | <h3 dir="auto">Problem description</h3>
<p dir="auto">Cannot ad <code class="notranslate">xs</code> prop on <code class="notranslate">Grid</code> in Typescript (it works in 1.0.0-beta.6, according to the docs, the prop is still there: <a href="https://material-ui-1dab0.firebaseapp.com/api/grid/" rel="nofollow">https://material-ui-1dab0.firebaseapp.com/api/grid/</a>).</p>
<h3 dir="auto">Steps to reproduce</h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as ui from 'material-ui';
function Grid() {
return (
<ui.Grid container>
<ui.Grid item xs={12} />
</ui.Grid>
);
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">ui</span> <span class="pl-k">from</span> <span class="pl-s">'material-ui'</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-smi">Grid</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-kos"><</span><span class="pl-s1">ui</span><span class="pl-kos">.</span><span class="pl-smi">Grid</span> <span class="pl-smi">container</span><span class="pl-kos">></span>
<span class="pl-c1"><</span><span class="pl-s1">ui</span><span class="pl-kos">.</span><span class="pl-smi">Grid</span> <span class="pl-s1">item</span> <span class="pl-smi">xs</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">12</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-s1">ui</span><span class="pl-kos">.</span><span class="pl-c1">Grid</span><span class="pl-c1">></span><span class="pl-s1"></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Code above emits following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Property 'xs' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Grid> & Readonly<{ children?: ReactNode; }> & Read...'."><pre class="notranslate"><code class="notranslate">Property 'xs' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Grid> & Readonly<{ children?: ReactNode; }> & Read...'.
</code></pre></div>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 1.0.0-beta.7</li>
<li>typescript: 2.5.2</li>
</ul> | 0 |
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10</li>
<li>TensorFlow installed from (source or binary): Source</li>
<li>TensorFlow version: 1.13</li>
<li>Python version: 3.7.2</li>
<li>Installed using virtualenv? pip? conda?: pip</li>
<li>Bazel version (if compiling from source): 0.21.0</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: 10.1/7.5.0</li>
<li>GPU model and memory: rtx 2070 moblie version (none maxq) 8gb</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
I have solved all the previous issues while finishing the build those two last errors have appeared please help me with that it's starting to get morally painful here is the output after the second run:</p>
<p dir="auto"><strong>Any other info / logs</strong><br>
C:\tensorflow\tensorflow>bazel build --config=opt --config=cuda --define=no_tensorflow_py_deps=true //tensorflow/tools/pip_package:build_pip_package<br>
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:<br>
c:\tensorflow\tensorflow/.bazelrc<br>
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.<br>
WARNING: Option 'experimental_shortened_obj_file_path' is deprecated<br>
INFO: Invocation ID: 078842cd-7467-4a1e-8aa2-c216dbc9c091<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/python/BUILD:2986:1: in py_library rule //tensorflow/python:standard_ops: target '//tensorflow/python:standard_ops' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/python/BUILD:77:1: in py_library rule //tensorflow/python:no_contrib: target '//tensorflow/python:no_contrib' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/metrics/BUILD:16:1: in py_library rule //tensorflow/contrib/metrics:metrics_py: target '//tensorflow/contrib/metrics:metrics_py' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/timeseries/python/timeseries/BUILD:356:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries:ar_model: target '//tensorflow/contrib/timeseries/python/timeseries:ar_model' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:233:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:76:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/bayesflow/BUILD:17:1: in py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target '//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/gan/BUILD:136:1: in py_library rule //tensorflow/contrib/gan:losses_impl: target '//tensorflow/contrib/gan:losses_impl' depends on deprecated target '//tensorflow/python/ops/distributions:distributions': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.distributions will not receive new features, and will be removed by early 2019. You should update all usage of <code class="notranslate">tf.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
WARNING: C:/tensorflow/tensorflow/tensorflow/contrib/BUILD:13:1: in py_library rule //tensorflow/contrib:contrib_py: target '//tensorflow/contrib:contrib_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (<a href="https://github.com/tensorflow/probability">https://github.com/tensorflow/probability</a>). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of <code class="notranslate">tf.contrib.distributions</code> to <code class="notranslate">tfp.distributions</code>.<br>
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded, 0 targets configured).<br>
INFO: Found 1 target...<br>
ERROR: C:/users/moura/_bazel_moura/wvk7snnt/external/protobuf_archive/BUILD:626:1: Linking of rule '@protobuf_archive//:python/google/protobuf/internal/_api_implementation.so' failed (Exit 1120): link.exe failed: error executing command<br>
cd C:/users/moura/_bazel_moura/wvk7snnt/execroot/org_tensorflow<br>
SET CUDA_TOOLKIT_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
SET CUDNN_INSTALL_PATH=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1<br>
SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\8.1\include\shared;C:\Program Files (x86)\Windows Kits\8.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\include\winrt;<br>
SET LIB=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64;<br>
SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;;C:\WINDOWS\system32<br>
SET PWD=/proc/self/cwd<br>
SET PYTHON_BIN_PATH=C:/Users/moura/AppData/Local/Programs/Python/Python37-32/python.exe<br>
SET PYTHON_LIB_PATH=C:/Users/moura/AppData/Local/Programs/Python/Python37-32/lib/site-packages<br>
SET TEMP=C:\Users\moura\AppData\Local\Temp<br>
SET TF_CUDA_CLANG=0<br>
SET TF_CUDA_COMPUTE_CAPABILITIES=7.5<br>
SET TF_CUDA_VERSION=10.1<br>
SET TF_CUDNN_VERSION=7<br>
SET TF_NEED_CUDA=1<br>
SET TF_NEED_OPENCL_SYCL=0<br>
SET TF_NEED_ROCM=0<br>
SET TMP=C:\Users\moura\AppData\Local\Temp<br>
C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/link.exe /nologo /DLL /SUBSYSTEM:CONSOLE /MACHINE:X64 @bazel-out/x64_windows-opt/bin/external/protobuf_archive/python/google/protobuf/internal/_api_implementation.so-2.params<br>
Execution platform: @bazel_tools//platforms:host_platform<br>
Creating library bazel-out/x64_windows-opt/bin/external/protobuf_archive/python/google/protobuf/internal/python/google/protobuf/internal/lib_api_implementation.so.ifso and object bazel-out/x64_windows-opt/bin/external/protobuf_archive/python/google/protobuf/internal/python/google/protobuf/internal/lib_api_implementation.so.exp<br>
api_implementation.o : error LNK2019: unresolved external symbol __imp_PyModule_AddIntConstant referenced in function PyInit__api_implementation<br>
api_implementation.o : error LNK2019: unresolved external symbol __imp_PyModule_Create2 referenced in function PyInit__api_implementation<br>
bazel-out/x64_windows-opt/genfiles/external/local_config_python/python37.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64'<br>
bazel-out/x64_windows-opt/bin/external/protobuf_archive/python/google/protobuf/internal/_api_implementation.so : fatal error LNK1120: 2 unresolved externals<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
INFO: Elapsed time: 3.046s, Critical Path: 0.15s<br>
INFO: 0 processes.<br>
FAILED: Build did NOT complete successfully</p> | <p dir="auto">The code <a href="https://www.tensorflow.org/code/tensorflow/examples/tutorials/mnist/mnist_softmax.py" rel="nofollow">https://www.tensorflow.org/code/tensorflow/examples/tutorials/mnist/mnist_softmax.py</a><br>
does not run on TensorFlow (Windows installation)</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto">Quite similar problem reported here: <a href="http://stackoverflow.com/questions/40467893/running-mnist-softmax-py-on-tensorflow-installed-with-docker" rel="nofollow">http://stackoverflow.com/questions/40467893/running-mnist-softmax-py-on-tensorflow-installed-with-docker</a> However, no solution there...</p>
<h3 dir="auto">Environment info</h3>
<h2 dir="auto">Operating System: Windows 10 pro (Intel(R) Core(TM) i7 6500U CPU)<br>
TensorFlow installed: pip install -U tensorflow; Python 3.5.2 :: Anaconda custom (64-bit)</h2>
<p dir="auto">Traceback (most recent call last):<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1254, in do_open<br>
h.request(req.get_method(), req.selector, req.data, headers)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 1106, in request<br>
self._send_request(method, url, body, headers)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 1151, in _send_request<br>
self.endheaders(body)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 1102, in endheaders<br>
self._send_output(message_body)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 934, in _send_output<br>
self.send(msg)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 877, in send<br>
self.connect()<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\http\client.py", line 849, in connect<br>
(self.host,self.port), self.timeout, self.source_address)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\socket.py", line 711, in create_connection<br>
raise err<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\socket.py", line 702, in create_connection<br>
sock.connect(sa)<br>
TimeoutError: [WinError 10060]</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile<br>
execfile(filename, namespace)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 89, in execfile<br>
exec(compile(f.read(), filename, 'exec'), namespace)<br>
File "C:/Users/natlun/Documents/Python Scripts/mnist_softmax03.py", line 92, in <br>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 44, in run<br>
_sys.exit(main(_sys.argv[:1] + flags_passthrough))<br>
File "C:/Users/natlun/Documents/Python Scripts/mnist_softmax03.py", line 20, in main<br>
mnist = input_data.read_data_sets(FLAGS.data_dir, one_hot=True)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py", line 211, in read_data_sets<br>
SOURCE_URL + TRAIN_IMAGES)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 208, in maybe_download<br>
temp_file_name, _ = urlretrieve_with_retry(source_url)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 165, in wrapped_fn<br>
return fn(*args, **kwargs)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 190, in urlretrieve_with_retry<br>
return urllib.request.urlretrieve(url, filename)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 188, in urlretrieve<br>
with contextlib.closing(urlopen(url, data)) as fp:<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 163, in urlopen<br>
return opener.open(url, data, timeout)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 466, in open<br>
response = self._open(req, data)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 484, in _open<br>
'_open', req)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 444, in _call_chain<br>
result = func(*args)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1282, in http_open<br>
return self.do_open(http.client.HTTPConnection, req)<br>
File "C:\Users\natlun\AppData\Local\Continuum\Anaconda3\lib\urllib\request.py", line 1256, in do_open<br>
raise URLError(err)<br>
urllib.error.URLError: <urlopen error [WinError 10060]></p> | 0 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">7.1.1</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">macOS Big Sur 11.5</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">7.1.1</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Macos app work well in webRTC call</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">AudioRtpReceiver::OnSetVolume: No audio channel exists.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I am building one macos app has webview loads an domain. In that webview use webRTC to make a call. But whenever I make a call i receive this issue <code class="notranslate">AudioRtpReceiver::OnSetVolume: No audio channel exists.</code></p> | <h3 dir="auto">Issue Details</h3>
<p dir="auto">Error in console when using WebRTC APIs.</p>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>9.0.0-beta.24</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 10</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">No error in console</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">[304:0512/163130.458:ERROR:audio_rtp_receiver.cc(89)] AudioRtpReceiver::OnSetVolume: No audio channel exists.</p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">How to reproduce and other details are here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="273612853" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/11112" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/11112/hovercard?comment_id=517856363&comment_type=issue_comment" href="https://github.com/electron/electron/issues/11112#issuecomment-517856363">#11112 (comment)</a></p> | 1 |
<p dir="auto">When adding to a collection of form elements, the collection is empty after calling $form->createView() on the parent form.</p>
<p dir="auto">I noticed this after switching from 2.2.1 to 2.3.0-RC1. It could be intended behavior but I haven't noticed any documentation indicating a change.</p>
<p dir="auto">To duplicate the problem, I created a new symfony project via composer create-project for versions 2.2.1 and 2.3.0-RC1. I then added to the buildForm method in src/DemoBundle/Form/ContactForm.php:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" $builder->add('foo', 'collection', array('type' => 'text'));
for ($i = 0; $i < 5; $i++) {
$builder->get('foo')->add("bar{$i}", 'text');
}"><pre class="notranslate"> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>-><span class="pl-en">add</span>(<span class="pl-s">'foo'</span>, <span class="pl-s">'collection'</span>, <span class="pl-en">array</span>(<span class="pl-s">'type'</span> => <span class="pl-s">'text'</span>));
for (<span class="pl-s1"><span class="pl-c1">$</span>i</span> = <span class="pl-c1">0</span>; <span class="pl-s1"><span class="pl-c1">$</span>i</span> < <span class="pl-c1">5</span>; <span class="pl-s1"><span class="pl-c1">$</span>i</span>++) {
<span class="pl-s1"><span class="pl-c1">$</span>builder</span>-><span class="pl-en">get</span>(<span class="pl-s">'foo'</span>)-><span class="pl-en">add</span>("<span class="pl-s">bar</span>{<span class="pl-s1"><span class="pl-c1">$</span>i</span>}", <span class="pl-s">'text'</span>);
}</pre></div>
<p dir="auto">In 2.2.1, the form displayed when rendering the /demo/contact url contains the expected 5 text elements. In 2.3.0, the label for "contact_foo" element is displayed, but none of the sub-elements are displayed.</p>
<p dir="auto">I believe the cause for this something that occurs during the $form->createView() call. If you var_dump($form->get('foo')->count()) before and after calling createView(), you'll get 5/0, respectively in 2.3.0-RC1, and 5/5 in 2.2.1. So far I've not been able to determine the exact cause of the problem. I am using php 5.4.9-4ubuntu2 with the built-in web-server for this test.</p> | <p dir="auto">I am running Symfony 2.7 and I have found that non unique form choice labels are being removed from my choices. I have a choice which shows labels in a parent/child format. e.g:</p>
<ul dir="auto">
<li>Header Nav
<ul dir="auto">
<li>Page 1</li>
<li>Page 2</li>
<li>Page 3</li>
</ul>
</li>
<li>Footer Nav
<ul dir="auto">
<li>Page 1</li>
<li>Page 2</li>
<li>Page 4</li>
</ul>
</li>
</ul>
<p dir="auto">In the above example, "Page 1" and "Page 2" are stripped from the choice because it isn't unique. <strong>However, the actual ID within the choice is different.</strong></p>
<p dir="auto">I have created an example of this from the Symfony Standard repo: <a href="https://github.com/trsteel88/symfony-standard/tree/unique-choices-bug">https://github.com/trsteel88/symfony-standard/tree/unique-choices-bug</a></p>
<p dir="auto">Here is the form:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$form = $this->createFormBuilder(array())
->add('choice', 'choice', array(
'mapped' => false,
'choices' => array(
1 => 'Header Nav',
2 => ' - Page 1',
3 => ' - Page 2',
4 => ' - Page 3',
5 => 'Footer Nav',
6 => ' - Page 1',
7 => ' - Page 2',
8 => ' - Page 4',
)
))
->getForm()
;"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>form</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">createFormBuilder</span>(<span class="pl-en">array</span>())
-><span class="pl-en">add</span>(<span class="pl-s">'choice'</span>, <span class="pl-s">'choice'</span>, <span class="pl-en">array</span>(
<span class="pl-s">'mapped'</span> => <span class="pl-c1">false</span>,
<span class="pl-s">'choices'</span> => <span class="pl-en">array</span>(
<span class="pl-c1">1</span> => <span class="pl-s">'Header Nav'</span>,
<span class="pl-c1">2</span> => <span class="pl-s">' - Page 1'</span>,
<span class="pl-c1">3</span> => <span class="pl-s">' - Page 2'</span>,
<span class="pl-c1">4</span> => <span class="pl-s">' - Page 3'</span>,
<span class="pl-c1">5</span> => <span class="pl-s">'Footer Nav'</span>,
<span class="pl-c1">6</span> => <span class="pl-s">' - Page 1'</span>,
<span class="pl-c1">7</span> => <span class="pl-s">' - Page 2'</span>,
<span class="pl-c1">8</span> => <span class="pl-s">' - Page 4'</span>,
)
))
-><span class="pl-en">getForm</span>()
;</pre></div>
<p dir="auto">Here is the output:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<select id="form_choice" name="form[choice]">
<option value="1" >Header Nav</option>
<option value="6" > - Page 1</option>
<option value="7" > - Page 2</option>
<option value="4" > - Page 3</option>
<option value="5" >Footer Nav</option>
<option value="8" > - Page 4</option>
</select>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">select</span> <span class="pl-c1">id</span>="<span class="pl-s">form_choice</span>" <span class="pl-c1">name</span>="<span class="pl-s">form[choice]</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1</span>" <span class="pl-kos">></span>Header Nav<span class="pl-kos"></</span><span class="pl-ent">option</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">6</span>" <span class="pl-kos">></span> - Page 1<span class="pl-kos"></</span><span class="pl-ent">option</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">7</span>" <span class="pl-kos">></span> - Page 2<span class="pl-kos"></</span><span class="pl-ent">option</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">4</span>" <span class="pl-kos">></span> - Page 3<span class="pl-kos"></</span><span class="pl-ent">option</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">5</span>" <span class="pl-kos">></span>Footer Nav<span class="pl-kos"></</span><span class="pl-ent">option</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">8</span>" <span class="pl-kos">></span> - Page 4<span class="pl-kos"></</span><span class="pl-ent">option</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">select</span><span class="pl-kos">></span></pre></div>
<p dir="auto">You will notice that the id for "2" and "3" is now missing, and it has been shifted up and is sitting in the wrong position.</p> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1772" rel="nofollow">http://projects.scipy.org/numpy/ticket/1772</a> on 2011-03-15 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rgommers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rgommers">@rgommers</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>.</em></p>
<p dir="auto">The methods and attributes sections are wrong, because sphinx tries to import numpy.methodname instead of numpy.classname.methodname. See numpy.chararray for example.</p>
<p dir="auto">This is probably a Sphinx bug (in autosummary/generate.py), but currently we duplicate/extend the autosummary class template in doc/source/reference/_templates. That class template should probably be completely removed anyway, this is fixed in Sphinx. I tried removing it, and the generated pdf got 20 pages longer while the number of warnings went from 1600 down to 800.</p> | <p dir="auto">Is this behavior expected?</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> print type(np.uint32(0) + int(0))
<type 'numpy.int64'>
>>> print type(np.uint64(0) + int(0))
<type 'numpy.float64'>"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">print</span> <span class="pl-en">type</span>(<span class="pl-s1">np</span>.<span class="pl-en">uint32</span>(<span class="pl-c1">0</span>) <span class="pl-c1">+</span> <span class="pl-en">int</span>(<span class="pl-c1">0</span>))
<span class="pl-c1"><</span><span class="pl-s1">type</span> <span class="pl-s">'numpy.int64'</span><span class="pl-c1">></span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">print</span> <span class="pl-en">type</span>(<span class="pl-s1">np</span>.<span class="pl-en">uint64</span>(<span class="pl-c1">0</span>) <span class="pl-c1">+</span> <span class="pl-en">int</span>(<span class="pl-c1">0</span>))
<span class="pl-c1"><</span><span class="pl-s1">type</span> <span class="pl-s">'numpy.float64'</span><span class="pl-c1">></span></pre></div>
<p dir="auto">The latter took me by surprise!</p> | 0 |
<p dir="auto">Copy and paste pop-up boxes will only appear above the textfield cursor, and if the textfield is below the status bar, it will be blocked by the status bar and can not be touched.<br>
If the screen overlaps between this pop and iPhone x, The main part of the pop is not visible in the physical screen.</p>
<p dir="auto">like the screenshot</p>
<p dir="auto">cupertino<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7cbb9fbc71ee81523956e86d84e9ba7eb2d1e466128d5347649ec1874b508d25/68747470733a2f2f7773312e73696e61696d672e636e2f6c617267652f38343430333662396c793166783068657665766d376a323075303037386d79352e6a7067"><img src="https://camo.githubusercontent.com/7cbb9fbc71ee81523956e86d84e9ba7eb2d1e466128d5347649ec1874b508d25/68747470733a2f2f7773312e73696e61696d672e636e2f6c617267652f38343430333662396c793166783068657665766d376a323075303037386d79352e6a7067" alt="" data-canonical-src="https://ws1.sinaimg.cn/large/844036b9ly1fx0hevevm7j20u0078my5.jpg" style="max-width: 100%;"></a></p>
<p dir="auto">material<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/57c180e004911602fc46bac07b743bfed1c1b82b81376eaba97513b44a4c6e4a/68747470733a2f2f7773312e73696e61696d672e636e2f6c617267652f38343430333662396c7931667830686a3779307a396a323075303037366161752e6a7067"><img src="https://camo.githubusercontent.com/57c180e004911602fc46bac07b743bfed1c1b82b81376eaba97513b44a4c6e4a/68747470733a2f2f7773312e73696e61696d672e636e2f6c617267652f38343430333662396c7931667830686a3779307a396a323075303037366161752e6a7067" alt="" data-canonical-src="https://ws1.sinaimg.cn/large/844036b9ly1fx0hj7y0z9j20u0076aau.jpg" style="max-width: 100%;"></a></p>
<hr>
<p dir="auto">flutter doctor -v</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.10.2, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
• Flutter version 0.10.2 at /Users/cai/fluttersdk/flutter
• Framework revision d8cbb80206 (13 days ago), 2018-10-26 01:30:21 -0400
• Engine revision 6c2ade9fa2
• Dart version 2.1.0-dev.8.0.flutter-bf26f760b1
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/cai/Library/Android/sdk
• Android NDK at /Users/cai/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 29.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.4)
• IntelliJ at /Users/cai/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
• Flutter plugin version 27.1.2
• Dart plugin version 181.4892.1
[✓] VS Code (version 1.28.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.20.0
[✓] Connected device (1 available)
• MI 8 • b6ec3684 • android-arm64 • Android 8.1.0 (API 27)
"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.10.2, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
• Flutter version 0.10.2 at /Users/cai/fluttersdk/flutter
• Framework revision d8cbb80206 (13 days ago), 2018-10-26 01:30:21 -0400
• Engine revision 6c2ade9fa2
• Dart version 2.1.0-dev.8.0.flutter-bf26f760b1
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/cai/Library/Android/sdk
• Android NDK at /Users/cai/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 29.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.4)
• IntelliJ at /Users/cai/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
• Flutter plugin version 27.1.2
• Dart plugin version 181.4892.1
[✓] VS Code (version 1.28.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.20.0
[✓] Connected device (1 available)
• MI 8 • b6ec3684 • android-arm64 • Android 8.1.0 (API 27)
</code></pre></div> | <p dir="auto">This might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="345549867" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/19954" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/19954/hovercard" href="https://github.com/flutter/flutter/issues/19954">#19954</a></p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Create <code class="notranslate">TextField</code> and put it on the top side of the screen. Wrap it with <code class="notranslate">SafeArea</code></li>
<li>Type some text then tap and hold it until tooltip menu appear</li>
</ol>
<h2 dir="auto">Expected Result</h2>
<p dir="auto">Tooltip menu appears below TextField, avoiding notch and status bar<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3488542/49633654-c2e39580-fa2c-11e8-810e-5b1ef0d74fb6.png"><img width="342" alt="screen shot 2018-12-07 at 14 03 37" src="https://user-images.githubusercontent.com/3488542/49633654-c2e39580-fa2c-11e8-810e-5b1ef0d74fb6.png" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3488542/49633655-c37c2c00-fa2c-11e8-8159-5b8b5f9d16df.png"><img width="389" alt="screen shot 2018-12-07 at 14 27 23" src="https://user-images.githubusercontent.com/3488542/49633655-c37c2c00-fa2c-11e8-8159-5b8b5f9d16df.png" style="max-width: 100%;"></a></p>
<h2 dir="auto">Actual Result</h2>
<p dir="auto">Tooltip menu taking space behind notch / status bar, even after I use <code class="notranslate">SafeArea</code> to wrap everything (see first screenshot)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3488542/49633771-34234880-fa2d-11e8-8f41-2607217ddd33.png"><img width="339" alt="screen shot 2018-12-07 at 14 01 50" src="https://user-images.githubusercontent.com/3488542/49633771-34234880-fa2d-11e8-8f41-2607217ddd33.png" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3488542/49633772-34bbdf00-fa2d-11e8-8924-b2342c6df63b.png"><img width="388" alt="screen shot 2018-12-07 at 14 27 08" src="https://user-images.githubusercontent.com/3488542/49633772-34bbdf00-fa2d-11e8-8924-b2342c6df63b.png" style="max-width: 100%;"></a><br>
This happened on both iOS and Android</p>
<h2 dir="auto"><code class="notranslate">flutter doctor -v</code> Output</h2>
<p dir="auto">(dont mind the license status, it's related to issue where I need to execute sdkmanager update)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter doctor -v
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14.1 18B75, locale en-ID)
• Flutter version 1.0.0 at /Users/iqbal/dev/flutter
• Framework revision 5391447fae (7 days ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/iqbal/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/iqbal/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
✗ Android license status unknown.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 31.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] VS Code (version 1.29.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.21.1
[✓] Connected device (1 available)
• iPhone XR • FD82670D-E505-4E7B-834A-DC428D7DE457 • ios • iOS 12.1 (simulator)
! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">$ flutter doctor -v
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14.1 18B75, locale en-ID)
• Flutter version 1.0.0 at /Users/iqbal/dev/flutter
• Framework revision 5391447fae (7 days ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/iqbal/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/iqbal/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
✗ Android license status unknown.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 31.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] VS Code (version 1.29.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.21.1
[✓] Connected device (1 available)
• iPhone XR • FD82670D-E505-4E7B-834A-DC428D7DE457 • ios • iOS 12.1 (simulator)
! Doctor found issues in 1 category.
</code></pre></div> | 1 |
<p dir="auto">Hello,</p>
<p dir="auto">there are lot's of class which is not covered in DOC. am i right or is there any other URL for complete DOC</p> | <p dir="auto">We've already had a couple reported as having slipped thru the cracks; we should check whether there are any more.</p> | 1 |
<p dir="auto">I posted this issue on the ASP.NET Project:</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="138848669" data-permission-text="Title is private" data-url="https://github.com/aspnet/Mvc/issues/4236" data-hovercard-type="issue" data-hovercard-url="/aspnet/Mvc/issues/4236/hovercard" href="https://github.com/aspnet/Mvc/issues/4236#issue-138848669">aspnet/Mvc#4236 (comment)</a></p>
<p dir="auto">When can we expect to be able to debug server side code on the Mac?</p>
<p dir="auto">JP</p> | <p dir="auto">Not sure this is the right place to ask that.</p>
<p dir="auto">Do you guys have any update on this issue?<br>
<a href="https://code.visualstudio.com/Issues/Detail/18573" rel="nofollow">https://code.visualstudio.com/Issues/Detail/18573</a></p>
<p dir="auto">This is currently a <strong>blocker</strong> for my SharePoint plugin, as I can't open project folders (which are network folders on SharePoint sites)</p> | 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.